/* ==========================================================================
   DeepL 下载站 · 主样式表
   目录：static/css/style.css
   ========================================================================== */

:root {
  --navy-900: #0b1f33;
  --navy-800: #0f2b46;
  --navy-700: #163a5c;
  --blue-600: #1456a0;
  --blue-500: #1e6fd9;
  --blue-400: #3d8bef;
  --blue-100: #e7f0fb;
  --blue-50:  #f2f7fd;
  --ink-900:  #16222f;
  --ink-700:  #33465a;
  --ink-500:  #5a6b7b;
  --ink-400:  #7d8c9a;
  --line:     #e3ebf2;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fa;
  --white:    #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 43, 70, .08);
  --shadow-md: 0 12px 32px rgba(15, 43, 70, .12);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, .18);
  --container: 1180px;
  --font: "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei",
          "Noto Sans SC", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(20, 86, 160, .32);
}
.btn-primary:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 86, 160, .4); }
.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.btn-outline {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 区块标题 ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.25;
  color: var(--navy-800);
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-500); font-size: 17px; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
.brand-name { font-size: 22px; font-weight: 700; color: var(--navy-800); letter-spacing: -.5px; }
.nav-menu { display: flex; gap: 34px; }
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color .2s;
}
.nav-menu a:hover { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 10px 20px; font-size: 14.5px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy-800);
  border-radius: 2px; transition: .25s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(61, 139, 239, .35), transparent 60%),
    radial-gradient(800px 420px at 10% 110%, rgba(30, 111, 217, .25), transparent 55%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 104px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px #4ade80;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #7cc0ff, #b8dcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, .78);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: #7cc0ff; }

/* 翻译界面 mockup */
.hero-visual { position: relative; }
.translator-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.tc-langs { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.tc-langs .from { color: var(--white); }
.tc-langs .to { color: rgba(255,255,255,.55); }
.tc-dot { display: flex; gap: 6px; }
.tc-dot i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.tc-body { padding: 22px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tc-col h4 { font-size: 12.5px; color: rgba(255,255,255,.5); margin-bottom: 12px; font-weight: 600; letter-spacing: .5px; }
.tc-col p { font-size: 14.5px; line-height: 1.8; }
.tc-col.src p { color: rgba(255,255,255,.85); }
.tc-col.dst p { color: #b8dcff; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tc-tags i {
  font-style: normal; font-size: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 11px; border-radius: 8px; color: rgba(255,255,255,.7);
}
.hero-float {
  position: absolute;
  background: var(--white);
  color: var(--navy-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  animation: float 5s ease-in-out infinite;
}
.hero-float.f1 { top: -22px; right: 12px; }
.hero-float.f2 { bottom: -20px; left: -14px; animation-delay: 1.6s; }
.hero-float .ic {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.hero-float .ic svg { width: 20px; height: 20px; }
.hero-float strong { display: block; font-size: 15px; }
.hero-float small { color: var(--ink-500); font-size: 12.5px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   信任数据条
   ========================================================================== */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
  text-align: center;
}
.stat b { display: block; font-size: 32px; color: var(--navy-800); letter-spacing: -.5px; }
.stat span { color: var(--ink-500); font-size: 14.5px; }

/* ==========================================================================
   平台下载卡片
   ========================================================================== */
.platforms { background: var(--white); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.platform-card .p-icon {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.platform-card .p-icon svg { width: 28px; height: 28px; }
.platform-card h3 { font-size: 19px; color: var(--navy-800); margin-bottom: 6px; }
.platform-card .p-sub { font-size: 14px; color: var(--ink-500); margin-bottom: 18px; }
.p-meta { margin: 0 0 22px; border-top: 1px dashed var(--line); padding-top: 16px; }
.p-meta li {
  display: flex; justify-content: space-between;
  font-size: 13.5px; padding: 6px 0; color: var(--ink-500);
}
.p-meta li b { color: var(--ink-900); font-weight: 600; }
.platform-card .btn { margin-top: auto; }

/* ==========================================================================
   核心功能
   ========================================================================== */
.features { background: var(--bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card .f-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .f-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; color: var(--navy-800); margin-bottom: 10px; }
.feature-card p { color: var(--ink-500); font-size: 15px; }

/* ==========================================================================
   产品套件
   ========================================================================== */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.suite-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  overflow: hidden;
}
.suite-card::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.suite-card .s-tag { font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #7cc0ff; margin-bottom: 14px; }
.suite-card h3 { font-size: 20px; margin-bottom: 12px; }
.suite-card p { font-size: 14.5px; color: rgba(255,255,255,.75); }

/* ==========================================================================
   语言标签
   ========================================================================== */
.lang-cloud {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; max-width: 860px; margin: 0 auto;
}
.lang-cloud li {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14.5px;
  color: var(--ink-700);
  transition: all .2s;
}
.lang-cloud li:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }

/* ==========================================================================
   版本对比
   ========================================================================== */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  background: var(--white);
}
.compare-card.pro {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
}
.compare-card h3 { font-size: 22px; margin-bottom: 8px; }
.compare-card .price { font-size: 15px; margin-bottom: 24px; color: var(--ink-500); }
.compare-card.pro .price { color: rgba(255,255,255,.7); }
.compare-card ul li {
  display: flex; gap: 12px; padding: 11px 0;
  font-size: 15px; border-top: 1px solid var(--line);
}
.compare-card.pro ul li { border-top-color: rgba(255,255,255,.12); }
.compare-card ul li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-500); margin-top: 3px; }
.compare-card.pro ul li svg { color: #7cc0ff; }
.compare-card .btn { margin-top: 26px; }

/* ==========================================================================
   使用步骤
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step-card { position: relative; padding: 30px 28px; }
.step-card .num {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--blue-100); color: var(--blue-600);
  font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 18px; color: var(--navy-800); margin-bottom: 10px; }
.step-card p { color: var(--ink-500); font-size: 15px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-size: 16.5px; font-weight: 600; color: var(--navy-800);
  text-align: left;
}
.faq-q .arrow {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .25s;
}
.faq-q .arrow svg { width: 14px; height: 14px; color: var(--blue-600); }
.faq-item.open .arrow { transform: rotate(180deg); background: var(--blue-100); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p { padding: 0 26px 22px; color: var(--ink-500); font-size: 15px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background:
    radial-gradient(700px 360px at 80% 20%, rgba(61,139,239,.3), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; letter-spacing: -.5px; }
.cta p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 30px; }
.cta .hero-downloads { justify-content: center; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  padding: 64px 0 0;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 18px;
}
.footer-logo-wrap img { height: 34px; width: auto; }
.footer-logo-wrap span { color: var(--navy-800); font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #7cc0ff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--blue-600); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: .25s;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .platform-grid, .suite-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 4%;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--bg-soft); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .platform-grid, .suite-grid, .feature-grid, .steps-grid,
  .compare-wrap, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tc-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-float.f1 { right: 0; }
  .hero-float.f2 { left: 0; }
}
