/* 有道翻译 — 官方网站 */

:root {
  --primary: #4C5FFF;
  --primary-light: #EEF0FF;
  --gold-grad: linear-gradient(270deg, #FFD8B7 0%, #FFE2C1 100%);

  --text-primary: #17181F;
  --text-secondary: #6B6F80;
  --text-tertiary: #A3A6B5;

  --border: #EAEAEF;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFC;

  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 60px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 14px 34px rgba(20,20,40,.08);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 125px; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions a { font-size: 13px; color: var(--text-tertiary); }
.btn-vip { background: var(--gold-grad); color: #7A4A12; font-size: 12.5px; font-weight: 700; padding: 7px 15px; border-radius: var(--radius-pill); border: none; }

/* ---------- App download stage ---------- */
.app-stage { max-width: 560px; margin: 8vh auto 0; padding: 0 20px; text-align: center; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--primary); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.app-icon svg { width: 32px; height: 32px; }
.app-stage-title { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.app-stage-sub { font-size: 13.5px; color: var(--text-tertiary); margin: 0 0 26px; line-height: 1.7; }
.app-badge-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.btn-app { display: inline-flex; align-items: center; gap: 7px; background: var(--text-primary); color: #fff; padding: 11px 20px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; }
.btn-app svg { width: 15px; height: 15px; }
.btn-app.secondary { background: var(--bg-soft); color: var(--text-primary); border: 1px solid var(--border); }

.lite-toggle-wrap { max-width: 560px; margin: 30px auto 0; padding: 0 20px 60px; }
.lite-toggle {
  width: 100%; text-align: center; background: none; border: 1px dashed var(--border); border-radius: var(--radius-md); color: var(--text-tertiary);
  font-size: 12.5px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.lite-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.lite-chat { display: none; margin-top: 14px; }
.lite-chat.open { display: block; }

/* ---------- Center stage ---------- */
.stage { max-width: 720px; margin: 6vh auto 0; padding: 0 20px; text-align: center; }
.stage-title { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.stage-sub { font-size: 13.5px; color: var(--text-tertiary); margin: 0 0 30px; }
.hero-eyebrow { display: inline-flex; font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px; }

.chat-box { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px; text-align: left; background: var(--bg); }
.chat-toolbar { display: flex; gap: 8px; margin-bottom: 14px; }
.chat-chip { font-size: 12.5px; color: var(--text-secondary); padding: 6px 13px; border-radius: var(--radius-pill); background: var(--bg-soft); }
.chat-chip.active { background: var(--primary); color: #fff; font-weight: 600; }
.chat-textarea { width: 100%; min-height: 96px; border: none; outline: none; resize: none; font-size: 15px; font-family: inherit; color: var(--text-primary); }
.chat-textarea::placeholder { color: var(--text-tertiary); }
.chat-divider { border-top: 1px solid var(--border); margin: 12px 0; }
.chat-result { font-size: 14.5px; color: var(--text-secondary); min-height: 24px; line-height: 1.7; }
.chat-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.chat-footer .char-count { font-size: 11.5px; color: var(--text-tertiary); }
.btn-send { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-pill); padding: 9px 20px; font-size: 13px; font-weight: 700; }

.quick-row { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.quick-chip { font-size: 12.5px; color: var(--text-secondary); border: 1px solid var(--border); padding: 7px 14px; border-radius: var(--radius-pill); }
.quick-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Collapsible SEO content ---------- */
.seo-toggle-wrap { max-width: 720px; margin: 56px auto 0; padding: 0 20px 60px; }
.seo-toggle {
  width: 100%; text-align: center; background: none; border: none; color: var(--text-tertiary);
  font-size: 13px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.seo-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.seo-content { display: none; text-align: left; margin-top: 18px; }
.seo-content.open { display: block; }
.seo-content h2 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; margin: 0 0 12px; }
.seo-content ul { margin: 0 0 12px; padding-left: 20px; }
.seo-content li { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 4px; }
.seo-content table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.seo-content th, .seo-content td { padding: 9px 12px; border: 1px solid var(--border); text-align: left; }
.seo-content th { background: var(--bg-soft); }

/* ---------- shared pages ---------- */
.upload-panel { border: 1.5px dashed var(--border); border-radius: var(--radius-lg); padding: 44px 24px; text-align: center; background: var(--bg-soft); max-width: 720px; margin: 0 auto; }
.upload-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.upload-icon svg { width: 24px; height: 24px; }
.upload-title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.upload-sub { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 16px; }
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-pill); padding: 10px 22px; font-size: 13.5px; font-weight: 700; }
.filetype-row { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.filetype-chip { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: var(--text-secondary); }

.plan-row { display: flex; gap: 14px; max-width: 720px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.plan-chip { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; text-align: center; flex: 1; min-width: 160px; }
.plan-chip.featured { border-color: var(--primary); background: var(--primary-light); }
.plan-chip .plan-name { font-size: 12.5px; color: var(--text-tertiary); margin-bottom: 6px; }
.plan-chip .plan-price { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.plan-chip .plan-price span { font-size: 11px; font-weight: 400; color: var(--text-tertiary); }

.footer { border-top: 1px solid var(--border); padding: 26px 24px; text-align: center; font-size: 11.5px; color: var(--text-tertiary); }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); }

@media (max-width: 640px) {
  .navbar { padding: 12px 16px; }
  .brand { flex-shrink: 0; min-width: 110px; }
  .nav-actions a { display: none; }
}

.brand-logo {
  height: 28px;
  width: auto;
  aspect-ratio: 1280 / 285;
  display: block;
  max-width: none;
  object-fit: contain;
}
