/* ============================================================
   有道翻译官网 · 套1「清新蓝绿学习风」
   居中式 Hero + 功能卡片网格，主色：晴空蓝 + 薄荷绿
   ============================================================ */

:root {
  --blue-900: #0c3a6b;
  --blue-700: #1a5fc4;
  --blue-600: #2f6fed;
  --blue-500: #4a84ff;
  --blue-100: #e8f0ff;
  --blue-50: #f4f8ff;
  --mint-600: #0ea88a;
  --mint-500: #14c39d;
  --mint-100: #d9f7ee;
  --ink-900: #14213a;
  --ink-700: #33415c;
  --ink-500: #647089;
  --ink-300: #9aa6bc;
  --line: #e4ebf7;
  --bg: #ffffff;
  --bg-soft: #f6f9fe;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 80, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 40, 80, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 40, 80, 0.14);
  --container: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; }

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  color: var(--mint-600); background: var(--mint-100);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: 34px; color: var(--ink-900); font-weight: 800; line-height: 1.35; }
.section-head p { margin-top: 14px; font-size: 16px; color: var(--ink-500); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 999px;
  border: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(120deg, var(--blue-600), var(--mint-500)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: #fff; color: var(--blue-700); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--blue-700); padding: 10px 6px; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn:disabled { opacity: .75; cursor: default; transform: none; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--ink-900); flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-menu a {
  position: relative; padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--ink-500);
  border-radius: 999px; transition: color .18s, background .18s;
}
.nav-menu a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-menu a.active { color: var(--blue-700); background: var(--blue-100); }
.nav-menu .nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.nav-cta { flex-shrink: 0; }
.nav-hamburger { display: none; }

/* ---------- Hero（居中） ---------- */
.hero { padding: 76px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -160px; left: 50%; width: 900px; height: 500px;
  background: radial-gradient(closest-side, rgba(47,111,237,.14), transparent 70%);
  transform: translateX(-50%); pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  background: var(--blue-100); color: var(--blue-700); font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-500); }
.hero h1 { font-size: 52px; font-weight: 800; color: var(--ink-900); line-height: 1.3; max-width: 820px; margin: 0 auto; }
.hero h1 .hl { color: var(--blue-600); position: relative; }
.hero-desc { max-width: 620px; margin: 22px auto 0; font-size: 17px; color: var(--ink-500); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat-num { font-size: 30px; font-weight: 800; color: var(--ink-900); }
.hero-stat-num span { color: var(--mint-600); }
.hero-stat-label { font-size: 14px; color: var(--ink-500); margin-top: 4px; }
.hero-shot {
  margin: 56px auto 0; max-width: 880px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blue-50), var(--mint-100));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left;
}
.hero-shot-card { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.hero-shot-card .cap { font-size: 12px; color: var(--ink-300); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.hero-shot-card .txt { font-size: 15px; color: var(--ink-700); }
.hero-shot-arrow { display: flex; align-items: center; justify-content: center; color: var(--mint-600); }

/* ---------- 功能卡片网格 ---------- */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-700); margin-bottom: 18px;
}
.feat-icon.mint { background: var(--mint-100); color: var(--mint-600); }
.feat-icon svg { width: 26px; height: 26px; }
.feat-card h3 { font-size: 19px; color: var(--ink-900); font-weight: 700; margin-bottom: 10px; }
.feat-card p { font-size: 14.5px; color: var(--ink-500); }

/* ---------- 平台下载 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; }
.plat-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--blue-700); }
.plat-icon svg { width: 28px; height: 28px; }
.plat-card h3 { font-size: 16px; color: var(--ink-900); margin-bottom: 6px; }
.plat-card .plat-desc { font-size: 13px; color: var(--ink-500); margin-bottom: 18px; min-height: 40px; }
.plat-card .btn { width: 100%; }

/* ---------- 深度介绍（交替图文） ---------- */
.deep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.deep-row:last-child { margin-bottom: 0; }
.deep-row.reverse .deep-media { order: 2; }
.deep-row.reverse .deep-text { order: 1; }
.deep-index { font-size: 13px; font-weight: 800; color: var(--mint-600); letter-spacing: 1px; margin-bottom: 12px; }
.deep-text h3 { font-size: 26px; color: var(--ink-900); font-weight: 800; margin-bottom: 16px; line-height: 1.4; }
.deep-text p { font-size: 15.5px; color: var(--ink-500); margin-bottom: 12px; }
.deep-text .deep-points { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.deep-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-700); }
.deep-points svg { width: 18px; height: 18px; color: var(--mint-600); flex-shrink: 0; margin-top: 2px; }
.deep-media {
  border-radius: var(--radius-lg); background: linear-gradient(155deg, var(--blue-50), #fff 60%);
  border: 1px solid var(--line); padding: 30px; box-shadow: var(--shadow-sm); min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.deep-media svg { width: 100%; height: auto; max-width: 300px; }

/* ---------- 数据统计 ---------- */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 30px 10px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.stat-num { font-size: 34px; font-weight: 800; background: linear-gradient(120deg, var(--blue-600), var(--mint-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 14px; color: var(--ink-500); margin-top: 8px; }

/* ---------- 对比表 ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
table.compare th, table.compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.compare th { background: var(--bg-soft); color: var(--ink-900); font-weight: 700; font-size: 14px; }
table.compare td:first-child, table.compare th:first-child { text-align: left; color: var(--ink-700); font-weight: 600; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .col-us { background: var(--mint-100); color: var(--mint-600); font-weight: 800; }
table.compare th.col-us { background: var(--mint-500); color: #fff; }
.ico-yes { color: var(--mint-600); }
.ico-no { color: var(--ink-300); }

/* ---------- 用户评价 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.review-stars { display: flex; gap: 3px; color: #f5b942; margin-bottom: 14px; }
.review-stars svg { width: 16px; height: 16px; }
.review-text { font-size: 14.5px; color: var(--ink-700); margin-bottom: 18px; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.review-name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.review-role { font-size: 12.5px; color: var(--ink-300); }

/* ---------- FAQ（details/summary，纯 HTML+CSS） ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue-600); transition: transform .2s ease; }
.faq-item[open] summary .q-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; font-size: 14.5px; color: var(--ink-500); }

/* ---------- CTA 区块 ---------- */
.cta-block {
  border-radius: 28px; background: linear-gradient(120deg, var(--blue-700), var(--mint-600));
  padding: 64px 40px; text-align: center; color: #fff;
}
.cta-block h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.cta-block p { font-size: 15.5px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 30px; }
.cta-block .btn-primary { background: #fff; color: var(--blue-700); box-shadow: none; }
.cta-block .btn-primary:hover { box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand-desc { font-size: 13.5px; max-width: 320px; color: rgba(255,255,255,.55); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-security {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.06); font-size: 13.5px; color: rgba(255,255,255,.75); margin-bottom: 22px;
}
.footer-security svg { width: 20px; height: 20px; color: var(--mint-500); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.8; }

/* ---------- 通用组块 ---------- */
.tag-pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); }
.divider-line { height: 1px; background: var(--line); margin: 0; }
.article-block { padding: 90px 0; }
.article-block + .article-block { border-top: 1px solid var(--line); }

/* ---------- 下载页专用 ---------- */
.dl-hero {
  padding: 64px 0 56px; background: linear-gradient(180deg, var(--blue-50), #fff);
}
.dl-hero-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 44px; display: grid; grid-template-columns: 100px 1fr auto; gap: 28px; align-items: center;
}
.dl-hero-icon { width: 100px; height: 100px; border-radius: 24px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; color: var(--blue-700); }
.dl-hero-icon svg { width: 52px; height: 52px; }
.dl-hero-info h1 { font-size: 26px; color: var(--ink-900); font-weight: 800; margin-bottom: 8px; }
.dl-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-500); margin-top: 10px; }
.dl-hero-meta b { color: var(--ink-900); }
.dl-hero-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dl-hero-note { font-size: 12.5px; color: var(--ink-300); }

.steps { display: flex; flex-direction: column; gap: 0; }
.step-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
.step-item:last-child::before { display: none; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; z-index: 1; }
.step-body h3 { font-size: 17px; color: var(--ink-900); font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 14.5px; color: var(--ink-500); }

.req-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.req-table th, .req-table td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.req-table th { background: var(--bg-soft); color: var(--ink-900); width: 160px; }
.req-table tr:last-child td { border-bottom: none; }

.changelog-item { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.changelog-item:last-child { border-bottom: none; }
.changelog-ver { flex-shrink: 0; width: 140px; }
.changelog-ver .v { font-size: 18px; font-weight: 800; color: var(--ink-900); }
.changelog-ver .d { font-size: 13px; color: var(--ink-300); margin-top: 4px; }
.changelog-body ul { display: flex; flex-direction: column; gap: 8px; }
.changelog-body li { font-size: 14.5px; color: var(--ink-500); padding-left: 18px; position: relative; }
.changelog-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-500); }

.safe-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.safe-badge { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-700); }
.safe-badge svg { width: 22px; height: 22px; color: var(--mint-600); }

/* ---------- 中文页专用 ---------- */
.zh-article h2 { font-size: 24px; color: var(--ink-900); font-weight: 800; margin: 44px 0 16px; }
.zh-article h2:first-child { margin-top: 0; }
.zh-article p { font-size: 15.5px; color: var(--ink-700); margin-bottom: 16px; }
.zh-article .lead { font-size: 17px; color: var(--ink-500); }
.zh-tip-card { background: var(--bg-soft); border-radius: var(--radius-md); padding: 22px 26px; margin: 20px 0; border-left: 4px solid var(--mint-500); }
.zh-tip-card h4 { font-size: 15px; color: var(--ink-900); margin-bottom: 6px; }
.zh-tip-card p { font-size: 14.5px; color: var(--ink-500); margin: 0; }
.zh-cta { text-align: center; padding: 70px 0; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-6, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .deep-row { grid-template-columns: 1fr; gap: 32px; }
  .deep-row.reverse .deep-media, .deep-row.reverse .deep-text { order: initial; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
  .hero-shot { grid-template-columns: 1fr; }
  .dl-hero-card { grid-template-columns: 1fr; text-align: center; }
  .dl-hero-action { align-items: center; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-hamburger span { width: 20px; height: 2px; background: var(--ink-900); }
}
@media (max-width: 640px) {
  .grid-6, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero h1 { font-size: 30px; }
  .footer-top { flex-direction: column; }
}
