/* ======== 通用子页面 ======== */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 2rem 0;
}

.page-hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 0.92rem; }
}

/* ======== 文本翻译页 ======== */
.translator-box {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.translator-toolbar {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.translator-toolbar .swap-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.translator-toolbar .swap-icon:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.translator-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

@media (max-width: 768px) {
  .translator-panels { grid-template-columns: 1fr; }
}

.translator-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.source-panel {
  border-right: 1px solid var(--border);
}

@media (max-width: 768px) {
  .source-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.translator-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  resize: none;
  flex: 1;
}

.translator-textarea::placeholder {
  color: var(--text-muted);
}

.translator-result {
  flex: 1;
}

.translator-result p {
  font-size: 0.95rem;
  color: var(--brand);
  line-height: 1.8;
  opacity: 0.85;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.action-btns {
  display: flex;
  gap: 0.2rem;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.88rem;
  transition: all 0.15s;
}

.action-btn:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .features-row { grid-template-columns: repeat(2, 1fr); }
}

.tf-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.tf-card i {
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 1rem;
  display: block;
}

.tf-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tf-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ======== 文档翻译页 ======== */
.upload-area {
  background: var(--bg-card);
  border: 2px dashed rgba(229, 57, 53, 0.25);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  margin-bottom: 2.5rem;
}

.upload-area:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.upload-icon {
  font-size: 3.5rem;
  color: var(--brand);
  margin-bottom: 1.2rem;
}

.upload-area h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.upload-area > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.upload-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.2);
}

.upload-btn i {
  margin-right: 0.3rem;
}

.doc-lang-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.doc-lang-item {
  text-align: center;
}

.doc-lang-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.doc-lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1.8rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.doc-lang-btn:hover {
  border-color: var(--brand);
}

.doc-lang-btn i {
  color: var(--brand);
}

.doc-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: 1.2rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .format-grid { grid-template-columns: repeat(2, 1fr); }
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.format-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.format-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.format-icon .fa-file-word { color: #2b579a; }
.format-icon .fa-file-pdf { color: #e53935; }
.format-icon .fa-file-powerpoint { color: #d04423; }
.format-icon .fa-file-excel { color: #217346; }
.format-icon .fa-file-lines { color: var(--text-muted); }

.format-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.format-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.format-badge {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
}

.doc-advantages {
  margin-bottom: 2rem;
}

.doc-advantages h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .advantages-grid { grid-template-columns: 1fr; }
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.adv-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.adv-icon i {
  font-size: 1.2rem;
  color: var(--brand);
}

.adv-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.adv-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======== 有道词典页 ======== */
.dict-search-box {
  max-width: 700px;
  margin: 0 auto 3rem;
}

.dict-search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.3rem 0.3rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dict-search-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 4px 20px var(--brand-glow);
}

.dict-search-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-right: 0.8rem;
}

.dict-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0;
}

.dict-search-input::placeholder {
  color: var(--text-muted);
}

.dict-search-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.dict-search-btn:hover {
  opacity: 0.9;
}

.dict-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
  margin-bottom: 3rem;
}

.dict-word-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.dict-word-main {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.dict-word {
  font-size: 2.5rem;
  font-weight: 900;
}

.dict-pos {
  font-size: 0.85rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-weight: 600;
}

.dict-phonetic {
  display: flex;
  gap: 1.5rem;
}

.dict-phonetic span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.dict-phonetic span:hover {
  color: var(--brand);
}

.dict-phonetic i {
  color: var(--brand);
  margin-right: 0.3rem;
  font-size: 0.78rem;
}

.dict-sections {
  padding: 2rem 2.5rem;
}

.dict-section {
  margin-bottom: 2.5rem;
}

.dict-section:last-child {
  margin-bottom: 0;
}

.dict-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.dict-section h3 i {
  color: var(--brand);
  margin-right: 0.5rem;
  font-size: 0.88rem;
}

.dict-defs {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dict-def {
  display: flex;
  gap: 1rem;
}

.def-num {
  width: 26px;
  height: 26px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.def-text {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.def-en {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dict-examples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dict-example {
  background: var(--bg-section);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--brand);
}

.ex-en {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-style: italic;
}

.ex-cn {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.ex-source {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dict-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
}

.dict-form {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dict-form strong {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.3rem;
}

.dict-synonyms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.synonym-tag {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.synonym-tag:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ======== 帮助中心页 ======== */
.help-search {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.help-search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 0.9rem 1.5rem;
  gap: 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.help-search-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 4px 20px var(--brand-glow);
}

.help-search-wrap i {
  color: var(--text-muted);
}

.help-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
}

.help-search-wrap input::placeholder {
  color: var(--text-muted);
}

.help-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .help-categories { grid-template-columns: repeat(3, 1fr); }
}

.help-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.help-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.help-cat-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.7rem;
}

.help-cat-icon i {
  font-size: 1.2rem;
  color: var(--brand);
}

.help-cat h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.page-section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(229, 57, 53, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item[open] summary {
  color: var(--brand);
}

.faq-answer {
  padding: 0 1.5rem 1.3rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer p { margin-bottom: 0.7rem; }
.faq-answer ol, .faq-answer ul { padding-left: 1.2rem; margin-bottom: 0.7rem; }
.faq-answer li { margin-bottom: 0.35rem; }
.faq-answer a { color: var(--brand); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer strong { color: var(--text); font-weight: 600; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-icon i {
  font-size: 1.4rem;
  color: var(--brand);
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.contact-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--brand-glow);
}

/* ======== 下载中心页 ======== */
.dl-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

@media (max-width: 1000px) {
  .dl-platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .dl-platforms { grid-template-columns: 1fr; }
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.dl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.dl-card-featured {
  border-color: rgba(229, 57, 53, 0.2);
  box-shadow: 0 8px 30px var(--brand-glow);
}

.dl-card-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 0 0 8px 8px;
}

.dl-card-icon {
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.dl-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.dl-version {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.dl-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.dl-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  flex: 1;
}

.dl-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
}

.dl-features li i {
  color: var(--brand);
  margin-right: 0.4rem;
  font-size: 0.72rem;
}

.dl-btn {
  display: block;
  background: var(--brand);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px var(--brand-glow);
}

.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.2);
}

.dl-btn i {
  margin-right: 0.3rem;
}

.version-history {
  margin-bottom: 2rem;
}

.version-history h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

.version-timeline {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.version-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.version-item:last-child { padding-bottom: 0; }

.version-dot {
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: var(--brand);
  border-radius: 50%;
  transform: translateX(calc(-50% + 1px));
  box-shadow: 0 0 0 4px var(--bg-main);
}

.version-content {
  padding-left: 1.2rem;
}

.version-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.version-num {
  font-size: 1.05rem;
  font-weight: 700;
}

.version-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.version-tag {
  font-size: 0.68rem;
  background: var(--brand);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-weight: 700;
}

.version-content ul {
  list-style: none;
}

.version-content li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.version-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.safe-section {
  margin-top: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.safe-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.safe-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.safe-item i {
  color: var(--brand);
  font-size: 1rem;
}
