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

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

  --text-primary: #16182E;
  --text-secondary: #5B6178;
  --text-tertiary: #9AA0B4;

  --border: #E8E9F1;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 60px;
  --shadow-md: 0 10px 26px rgba(41, 47, 105, 0.09);

  --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: 14px 30px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); z-index: 30; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; min-width: 125px; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-size: 16px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.btn-vip { background: var(--gold-grad); color: #7A4A12; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: var(--radius-pill); border: none; }

.breadcrumb { max-width: 1080px; margin: 16px auto 0; padding: 0 24px; font-size: 12px; color: var(--text-tertiary); }
.breadcrumb a { color: var(--text-secondary); }

.hero { padding: 40px 24px 0; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.hero-title { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.hero-sub { font-size: 14px; color: var(--text-secondary); max-width: 660px; margin: 0 auto; line-height: 1.75; }

.section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.section-kicker { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; text-align: center; }
.section-title { font-size: 24px; font-weight: 800; margin: 0 0 10px; text-align: center; }
.section-intro { font-size: 14px; color: var(--text-secondary); line-height: 1.8; max-width: 700px; margin: 0 auto 36px; text-align: center; }

/* ---------- Decision cards ---------- */
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.decision-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.decision-card.recommended { border-color: var(--accent-green); box-shadow: 0 0 0 2px var(--accent-green-light); }
.decision-ribbon { position: absolute; top: -12px; left: 24px; background: var(--accent-green); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); }
.decision-card h3 { font-size: 17px; font-weight: 800; margin: 6px 0 4px; }
.decision-for { font-size: 12px; color: var(--text-tertiary); margin-bottom: 16px; }
.decision-list { margin-bottom: 18px; }
.decision-list li { font-size: 13px; color: var(--text-secondary); padding-left: 22px; position: relative; margin-bottom: 8px; line-height: 1.6; }
.decision-list li.yes::before { content: "✓"; position: absolute; left: 0; color: var(--accent-green); font-weight: 700; }
.decision-list li.no::before { content: "–"; position: absolute; left: 0; color: var(--text-tertiary); font-weight: 700; }
.decision-cta { display: block; text-align: center; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; padding: 10px; border-radius: var(--radius-pill); }
.decision-card.recommended .decision-cta { background: var(--accent-green); }

/* ---------- Full compare table ---------- */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table th { background: var(--bg-soft); font-weight: 700; }
.compare-table td { color: var(--text-secondary); }
.compare-table tr:last-child td { border-bottom: none; }
.dot-yes { color: var(--accent-green); font-weight: 700; }
.dot-no { color: var(--text-tertiary); }

/* ---------- Translate widget ---------- */
.translate-box { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.translate-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pane { padding: 20px 24px; min-height: 200px; display: flex; flex-direction: column; }
.pane-source { border-right: 1px solid var(--border); }
.pane-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lang-select { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.lang-select svg { width: 14px; height: 14px; color: var(--text-tertiary); }
.pane-textarea { flex: 1; border: none; outline: none; resize: none; font-size: 15px; line-height: 1.6; font-family: inherit; color: var(--text-primary); }
.pane-textarea::placeholder { color: var(--text-tertiary); }
.pane-result { flex: 1; font-size: 15px; line-height: 1.6; }
.pane-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
.char-count { font-size: 12px; color: var(--text-tertiary); }

/* ---------- Scenario grid ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scenario-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.scenario-card .scenario-tag { font-size: 10.5px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 9px; border-radius: var(--radius-pill); display: inline-block; margin-bottom: 10px; }
.scenario-card h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.scenario-card p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 20px; }
.faq-item summary { cursor: pointer; padding: 15px 0; font-size: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-tertiary); font-size: 18px; font-weight: 400; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.75; margin: 0 0 16px; }

/* ---------- shared (document/vip) ---------- */
.upload-panel { border: 1.5px dashed var(--border); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; background: var(--bg-soft); }
.upload-icon { width: 52px; height: 52px; 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: 26px; height: 26px; }
.upload-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.upload-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-pill); padding: 11px 24px; font-size: 14px; font-weight: 700; }
.filetype-row { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.filetype-chip { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-secondary); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; text-align: center; position: relative; }
.plan-card.featured { border-color: var(--accent-green); box-shadow: 0 0 0 2px var(--accent-green-light); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent-green); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: var(--radius-pill); }
.plan-name { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.plan-price { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
.plan-desc { font-size: 12px; color: var(--text-tertiary); margin-bottom: 16px; }

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

@media (max-width: 900px) {
  .navbar { padding: 12px 16px; }
  .brand { flex-shrink: 0; min-width: 110px; }
  .nav-links { display: none; }
  .decision-grid { grid-template-columns: 1fr; }
  .translate-grid { grid-template-columns: 1fr; }
  .pane-source { border-right: none; border-bottom: 1px solid var(--border); }
  .plan-grid { grid-template-columns: 1fr; }
}

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