/* ============================================================
   EVA AI 宣传官网 · 设计令牌取自产品 DESIGN.md（夜色 / 白昼共用一套语义变量）
   ============================================================ */
:root {
  --ease: cubic-bezier(.2,.7,.3,1);
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
}
html[data-theme='dark'] {
  --ink-950: #050709;
  --ink-900: #0A0D11;
  --ink-750: #171D23;
  --ink-700: #1C242B;
  --line: rgba(255,255,255,.075);
  --line-strong: rgba(255,255,255,.14);
  --text: #F3F0E7;
  --text-dim: #AFA792;
  --text-faint: #7D7768;
  --cyan: #22D3EE;
  --cyan-dim: rgba(34,211,238,.14);
  --gold: #B87E19;
  --gold-bright: #D6A545;
  --red: #B0212A;
  --emergency: #C2333C;
  --card: #12171C;
  --card-hi: #171D23;
  --screen-glow: rgba(34,211,238,.10);
  --grid-line: rgba(255,255,255,.035);
  --sheen: rgba(255,255,255,.5);
  --ok: #3FB27F;
}
html[data-theme='light'] {
  --ink-950: #FFFFFF;
  --ink-900: #F7FAFD;
  --ink-750: #F1F5FB;
  --ink-700: #E8EFF8;
  --line: rgba(15,23,42,.09);
  --line-strong: rgba(15,23,42,.16);
  --text: #0F172A;
  --text-dim: #57697F;
  --text-faint: #64748B;
  --cyan: #0E9BB8;
  --cyan-dim: rgba(14,155,184,.10);
  --gold: #A8761B;
  --gold-bright: #8A5F10;
  --red: #B0212A;
  --emergency: #C2333C;
  --card: #FFFFFF;
  --card-hi: #F7FAFD;
  --screen-glow: rgba(14,155,184,.08);
  --grid-line: rgba(15,23,42,.05);
  --sheen: rgba(15,23,42,.35);
  --ok: #2E8C63;
}
* { margin:0; padding:0; box-sizing:border-box; }
/* hidden 必须真的隐藏：组件类里一旦写了 display:inline-block/flex，
   就会盖掉浏览器默认的 [hidden]{display:none}，于是「隐藏」的元素照样显示。 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.serif { font-family: var(--font-serif); }

/* ---------- 背景：网格 + 青光晕 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
}
main, nav, footer { position: relative; z-index: 1; }

/* ---------- 导航 ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink-950) 78%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .4s var(--ease);
}
nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { width: 100%; max-width: 1120px; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.nav-brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 13px; color: var(--text-dim); transition: color .25s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.theme-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .icon-moon { display: none; }
html[data-theme='light'] .theme-btn .icon-sun { display: none; }
html[data-theme='light'] .theme-btn .icon-moon { display: block; }
.nav-cta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px;
  background: var(--cyan); color: #05131A; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px var(--cyan-dim); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; left: 50%; top: -220px; width: 900px; height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--cyan-dim), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.chip.gold .dot { background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-bright); }
.hero h1 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.18; letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero h1 i { font-style: normal; color: var(--gold-bright); }
.hero-sub { font-size: 16px; color: var(--text-dim); line-height: 1.85; max-width: 30em; margin-bottom: 34px; }
.hero-sub code {
  font-family: var(--font-mono); font-size: .88em; color: var(--text);
  background: var(--ink-750); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--cyan); color: #05131A; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--cyan-dim); }
.hero-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-dim);
  padding: 13px 6px; transition: color .25s var(--ease);
}
.hero-link span { font-family: var(--font-mono); transition: transform .25s var(--ease); }
.hero-link:hover { color: var(--cyan); }
.hero-link:hover span { transform: translateX(3px); }
.hero-stats {
  display: flex; gap: 40px; margin: 34px 0 26px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b {
  font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--cyan); line-height: 1;
}
.hero-stats span { font-size: 12px; color: var(--text-faint); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 12px; height: 12px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 首屏截图（静态，窗口质感 + 氛围光） ---------- */
.hero-shot { position: relative; }
.hero-glow {
  position: absolute; inset: -34% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--cyan-dim), transparent 70%);
  filter: blur(38px);
}
.shot-frame {
  border-radius: 14px; padding: 8px;
  background: linear-gradient(160deg, var(--ink-750), var(--ink-900));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 var(--sheen), 0 42px 90px rgba(0,0,0,.42);
}
html[data-theme='light'] .shot-frame { box-shadow: inset 0 1px 0 var(--sheen), 0 36px 80px rgba(15,23,42,.16); }
.shot-frame .dots { display: flex; gap: 6px; padding: 2px 4px 8px; }
.shot-frame .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.shot-frame .dots i:first-child { background: color-mix(in srgb, var(--red) 70%, transparent); }
.shot-frame .dots i:nth-child(2) { background: color-mix(in srgb, var(--gold) 80%, transparent); }
.shot-frame .dots i:nth-child(3) { background: color-mix(in srgb, var(--ok) 70%, transparent); }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 8px; }
html[data-theme='dark'] .shot-light, html[data-theme='light'] .shot-dark { display: none; }


/* 未开放的下载卡 */

/* ---------- 主题扩散层（沿用卡片官网那套：从按钮位置晕开） ---------- */
.theme-overlay {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background: #050709; opacity: 0;
  clip-path: circle(0px at 100% 0px);
}
.theme-overlay.light { background: #FFFFFF; }
.theme-overlay.active { opacity: 1; }

/* ---------- EVA 核心环（产品里的状态环，官网拿来做标志件） ---------- */
.core {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--card);
}
.core::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--cyan) 78% 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  animation: coreSpin 2.6s linear infinite;
}
.core img { width: 25px; height: 25px; border-radius: 50%; }
@keyframes coreSpin { to { transform: rotate(360deg); } }
.core--lg { width: 64px; height: 64px; }
.core--lg img { width: 38px; height: 38px; }

/* ---------- 通用区块 ---------- */
.sec { padding: 110px 0; position: relative; }
.sec--soft { background: var(--ink-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold-bright); opacity: .75; }
.sec-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.26; letter-spacing: -.01em; margin-bottom: 16px; text-wrap: balance; }
.sec-lede { color: var(--text-dim); max-width: 44em; font-size: 15.5px; }
.sec-head { margin-bottom: 54px; }

/* ---------- 言灵卡墙 ---------- */
.spells { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
/* 跟随鼠标在卡片间滑动的发光框 */
.spell-glow {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 0; height: 0; border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  background: color-mix(in srgb, var(--cyan) 5%, transparent);
  box-shadow: 0 20px 46px var(--cyan-dim), 0 0 0 1px var(--cyan-dim) inset;
  opacity: 0; transform: translate(0, 0);
  transition: transform .36s cubic-bezier(.22,.9,.28,1),
              width .36s cubic-bezier(.22,.9,.28,1),
              height .36s cubic-bezier(.22,.9,.28,1),
              opacity .24s var(--ease);
  will-change: transform, width, height;
}
.spell-glow.on { opacity: 1; }
.spell {
  position: relative; z-index: 1; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 18px 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.spell::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--risk, var(--cyan)), transparent 78%);
  opacity: .55; transition: opacity .3s var(--ease);
}
.spell .no-ghost {
  position: absolute; right: 10px; bottom: -6px;
  font-family: var(--font-serif); font-size: 56px; font-weight: 700; line-height: 1;
  color: var(--line-strong); opacity: .5; pointer-events: none; user-select: none;
}
.spell:hover .no-ghost { opacity: .8; }
.spell:hover { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.spell:hover::before { opacity: 1; }
.spell-no { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--text-faint); margin-bottom: 12px; display: flex; justify-content: space-between; }
.spell-no .risk { padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.risk.r1 { color: var(--cyan); } .risk.r2 { color: var(--gold-bright); } .risk.r3 { color: #D98A94; } .risk.r4 { color: var(--emergency); }
.spell h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.spell .tool { font-family: var(--font-mono); font-size: 10.5px; color: var(--cyan); margin-bottom: 10px; }
.spell .args {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 12px;
  opacity: 0; transform: translateY(5px);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}
.spell:hover .args { opacity: 1; transform: none; }
.spell .args i {
  font-style: normal; font-family: var(--font-mono); font-size: 10px;
  color: var(--text-faint); background: var(--ink-900);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.spell:hover .args i { color: var(--text-dim); border-color: var(--line-strong); }
/* 默认压住的次要信息：hover 才浮出 */
.spell .spell-no { transition: color .3s var(--ease); }
.spell .no-ghost { transition: opacity .3s var(--ease); }
.spell p {
  font-size: 12.5px; color: var(--text-dim); line-height: 1.7;
  max-height: 1.75em; overflow: hidden; flex: 0 0 auto;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent);
  mask-image: linear-gradient(180deg, #000 45%, transparent);
  transition: max-height .42s var(--ease), color .3s var(--ease), -webkit-mask-image .3s var(--ease), mask-image .3s var(--ease);
}
.spell:hover p {
  max-height: 6em; color: var(--text);
  -webkit-mask-image: none; mask-image: none;
}
/* 量高时模拟展开态：不压缩描述、不跑过渡，保证量到悬停后的真实高度 */
.spell.measuring, .spell.measuring p, .spell.measuring .args { transition: none !important; }
.spell.measuring p {
  max-height: 6em;
  -webkit-mask-image: none; mask-image: none;
}
/* 触屏没有悬停：描述与参数直接给全，否则内容永远看不到 */
@media (hover: none) {
  .spell p { max-height: 6em; color: var(--text); -webkit-mask-image: none; mask-image: none; }
  .spell .args { opacity: 1; transform: none; }
}

/* ---------- 驾驶舱三图 ---------- */
.cockpit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.cockpit figure { margin: 0; }
.cockpit .frame {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--card); transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.cockpit figure:hover .frame {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--cyan) 40%, transparent);
  box-shadow: 0 22px 50px rgba(0,0,0,.32), 0 0 0 1px var(--cyan-dim);
}
.cockpit img { display: block; width: 100%; height: auto; }
html[data-theme='dark'] .cockpit .shot-day, html[data-theme='light'] .cockpit .shot-night { display: none; }
.cockpit figcaption { margin-top: 14px; }
.cockpit figcaption b { font-size: 14.5px; font-weight: 600; display: block; margin-bottom: 4px; }
.cockpit figcaption span { font-size: 12.5px; color: var(--text-dim); }

/* ---------- 审批 ---------- */
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.gate-points { display: grid; gap: 16px; margin-top: 26px; }
.gate-point { display: flex; gap: 14px; align-items: flex-start; }
.gate-point .ic {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--cyan);
}
.gate-point .ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gate-point b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.gate-point span { font-size: 13px; color: var(--text-dim); }
.redline { margin-top: 34px; border: 1px solid color-mix(in srgb, var(--red) 55%, transparent); border-radius: var(--r-md); padding: 18px 20px; background: color-mix(in srgb, var(--red) 7%, transparent); }
.redline .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--emergency); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.redline code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); background: var(--ink-750); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; margin: 2px 4px 2px 0; display: inline-block; }

/* ---------- 语音 ---------- */
.voice { display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: center; }
.voice-list { margin-top: 26px; display: grid; gap: 12px; }
.voice-list li { list-style: none; display: flex; gap: 12px; font-size: 13.5px; color: var(--text-dim); }
.voice-list li b { color: var(--text); font-weight: 600; flex-shrink: 0; }
.voice-list .mk { color: var(--cyan); font-family: var(--font-mono); flex-shrink: 0; }

/* ---------- 主题对比 ---------- */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.theme-card { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.theme-card .cap { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.theme-card .cap b { font-size: 14px; }
.theme-card .cap span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.theme-card img { display: block; width: 100%; height: auto; }

/* ---------- 规格 ---------- */
.spec-list { display: grid; gap: 0; margin-top: 8px; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); padding-top: 3px; }
.spec-row dd { font-size: 14px; color: var(--text-dim); }
.spec-row dd b { color: var(--text); font-weight: 600; }
.spec-row dd code { font-family: var(--font-mono); font-size: 12px; color: var(--text); background: var(--ink-750); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; transition: border-color .3s var(--ease); }
.faq details[open], .faq details:hover { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .x { font-family: var(--font-mono); color: var(--cyan); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq details[open] summary .x { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; font-size: 13.5px; color: var(--text-dim); max-width: 60em; }
.faq .a code { font-family: var(--font-mono); font-size: 12px; color: var(--text); background: var(--ink-750); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

/* ---------- 下载 ---------- */
.dl { text-align: center; }
.cta-core { display: flex; justify-content: center; margin-bottom: 26px; }
.dl .eyebrow { display: inline-flex; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: center; }
.dl-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--card); transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.dl-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 20px 44px rgba(0,0,0,.28); }
/* 本机检测：对应版本放大高亮，其余收小退到一边 */
.dl-card .badge {
  display: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #05131A; background: var(--cyan); border-radius: 999px; padding: 3px 10px; margin-bottom: 6px;
}
html.os-mac .dl-card[data-os="mac"], html.os-win .dl-card[data-os="win"] {
  border-color: var(--cyan); transform: scale(1.05);
  box-shadow: 0 30px 70px var(--cyan-dim), 0 0 0 1px var(--cyan) inset;
  padding: 40px 24px;
}
html.os-mac .dl-card[data-os="mac"] .badge, html.os-win .dl-card[data-os="win"] .badge { display: inline-block; }
html.os-mac .dl-card[data-os="mac"] b, html.os-win .dl-card[data-os="win"] b { font-size: 24px; }
html.os-mac .dl-card:not([data-os="mac"]), html.os-win .dl-card:not([data-os="win"]) {
  opacity: .55; transform: scale(.92); padding: 22px 14px;
}
html.os-mac .dl-card:not([data-os="mac"]) b, html.os-win .dl-card:not([data-os="win"]) b { font-size: 15px; }
.dl-card .os { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.dl-card b { font-family: var(--font-serif); font-size: 18px; }
.dl-card span { font-size: 12.5px; color: var(--text-dim); }
.dl-note { margin-top: 24px; font-size: 12.5px; color: var(--text-faint); }
.dl-detect {
  display: none; margin: 0 auto 30px; width: fit-content;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  border-radius: 999px; padding: 8px 16px; background: var(--cyan-dim);
}
.dl-detect.show { display: block; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 44px; }
.footer-crumb { padding-bottom: 26px; font-size: 12.5px; color: var(--text-dim); }
.footer-crumb a { color: var(--text-dim); text-decoration: none; transition: color .25s var(--ease); }
.footer-crumb a:hover { color: var(--text); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.foot-brand img { width: 24px; height: 24px; }
.foot-grid p { font-size: 12.5px; color: var(--text-faint); max-width: 28em; }
.foot-col b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 12px; }
.foot-col a { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--text); }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-faint); }

/* ---------- 滚动显现 ---------- */
/* 初始隐藏只在 JS 正常工作时生效（html.js-io 由首帧那段内联脚本加上、
   一旦有脚本报错就摘掉）。否则内容会永久停在 opacity:0 —— 那是最糟的失败方式。 */
html.js-io .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js-io .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .gate, .voice { grid-template-columns: 1fr; gap: 40px; }
  .spells { grid-template-columns: repeat(2, 1fr); }
  .cockpit { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap, .nav-inner { padding: 0 18px; }
  .hero { padding: 120px 0 70px; }
  .sec { padding: 76px 0; }
  .spells { grid-template-columns: 1fr; }
  .themes, .dl-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js-io .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   多页面共用组件（下载页 / 安装指引 / 版本记录）
   与上面同一套令牌，不引入任何新颜色
   ============================================================ */

/* ---------- 导航：当前页高亮 ---------- */
.nav-links a { position: relative; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--cyan);
}

/* ---------- 子页头部 ---------- */
.page-head { padding: 138px 0 52px; position: relative; }
.page-head::before {
  content: ''; position: absolute; left: 50%; top: -180px; width: 820px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--cyan-dim), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.crumb { font-size: 12.5px; color: var(--text-faint); margin-bottom: 20px; }
.crumb a { color: var(--text-dim); transition: color .25s var(--ease); }
.crumb a:hover { color: var(--text); text-decoration: underline; }
.crumb i { font-style: normal; opacity: .45; margin: 0 7px; }
.page-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 50px); line-height: 1.2; letter-spacing: -.01em;
  margin-bottom: 14px; text-wrap: balance;
}
.page-lede { color: var(--text-dim); font-size: 16px; max-width: 44em; }

/* ---------- 通用小组件 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px;
}
.card + .card { margin-top: 14px; }
.mono-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-bright);
}
.note {
  border: 1px solid var(--line); border-left: 2px solid var(--gold-bright);
  border-radius: var(--r-sm); background: var(--card);
  padding: 14px 18px; font-size: 13.5px; color: var(--text-dim);
}
.note b { color: var(--text); }
.note + .note { margin-top: 10px; }
.note--warn { border-left-color: var(--emergency); }
.note code, .card code, .page-lede code, .step code, .faq .a code, td code, li code {
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  background: var(--ink-750); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}
.code-block {
  position: relative; background: var(--ink-900); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; overflow-x: auto;
}
.code-block pre {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.75;
  color: var(--text-dim); white-space: pre; margin: 0;
}
.code-block pre b { color: var(--cyan); font-weight: 500; }
.copy-btn {
  position: absolute; right: 8px; top: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }

/* ---------- 下载页：主推卡 ---------- */
.dl-hero { margin-bottom: 34px; }
.dl-detect-line {
  display: inline-flex; align-items: center; gap: 8px;
  /* 不开 uppercase：系统名要按原样写（macOS / Windows），全大写会把 macOS 变成 MACOS */
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--text-faint); margin-bottom: 16px;
}
.dl-detect-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dl-detect-line.unknown .dot { background: var(--text-faint); box-shadow: none; }
.dl-primary {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(150deg, var(--card-hi), var(--card));
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: 26px 28px; box-shadow: inset 0 1px 0 var(--sheen);
}
.dl-primary__icon {
  width: 54px; height: 54px; border-radius: var(--r-md); flex-shrink: 0;
  display: grid; place-items: center; background: var(--ink-750); border: 1px solid var(--line);
}
.dl-primary__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dl-primary__body { flex: 1 1 260px; min-width: 0; }
.dl-primary__body h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.dl-primary__meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}
.dl-primary__meta b { color: var(--text-dim); font-weight: 500; }
.dl-primary .btn { flex-shrink: 0; }
.dl-alt { margin-top: 14px; font-size: 13px; color: var(--text-faint); }
.dl-alt a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.dl-alt a:hover { color: var(--cyan); }

/* ---------- 下载页：全部版本列表 ---------- */
.dl-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.dl-item {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) auto;
  gap: 8px 22px; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.dl-item:last-child { border-bottom: none; }
.dl-item:hover { background: var(--card-hi); }
.dl-item__name { min-width: 0; }
.dl-item__name b { display: block; font-size: 14.5px; font-weight: 600; }
.dl-item__name span { font-size: 12.5px; color: var(--text-faint); }
.dl-item__facts {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}
.dl-item__hash { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-item__hash code {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
  word-break: break-all; background: none; border: none; padding: 0;
}
.dl-item__hash .copy-btn { position: static; }
.dl-item .btn { justify-self: end; }
.dl-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-left: 8px;
  border: 1px solid var(--line-strong); color: var(--text-faint); vertical-align: 2px;
}
.dl-badge--here { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }

/* ---------- 系统要求 ---------- */
.req { display: grid; gap: 0; }
.req-row { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.req-row:last-child { border-bottom: none; }
.req-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); padding-top: 3px; }
.req-row dd { font-size: 14px; color: var(--text-dim); }
.req-row dd b { color: var(--text); font-weight: 600; }

/* ---------- 分步指引 ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--cyan);
  border: 1px solid var(--line-strong); background: var(--card);
}
.step h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-dim); }
.step p + .code-block, .step .code-block { margin-top: 10px; }

/* ---------- 平台切换（macOS / Windows） ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); margin-bottom: 26px; }
.seg button {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; border: none; background: transparent; color: var(--text-dim);
  cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--cyan); color: #05131A; font-weight: 600; }
.seg-panel[hidden] { display: none; }

/* ---------- 版本记录 ---------- */
.release { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.release:last-child { border-bottom: none; }
.release__meta { position: sticky; top: 84px; align-self: start; }
.release__ver { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--cyan); }
.release__date { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.release__tag {
  display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-faint);
}
.release__body h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.release__body p { font-size: 14px; color: var(--text-dim); }
.release__body ul { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.release__body li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--text-dim); }
.release__body li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--cyan); }
.release__body li b { color: var(--text); font-weight: 600; }
.release__body .code-block { margin-top: 12px; }

/* ---------- 下载页：底部 CTA ---------- */
.cta-band { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); }
.cta-band p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 980px) {
  .dl-primary { padding: 22px; }
  .dl-primary .btn { width: 100%; justify-content: center; margin-left: 0; }
  .dl-item { grid-template-columns: 1fr; }
  .dl-item .btn { justify-self: start; }
  .req-row { grid-template-columns: 1fr; gap: 6px; }
  .release { grid-template-columns: 1fr; gap: 12px; }
  .release__meta { position: static; }
}
@media (max-width: 620px) {
  .page-head { padding: 118px 0 40px; }
  .dl-primary { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ── Android 下载卡 ── */
.apk-dl {
  margin: 18px 0 8px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong, rgba(255,255,255,.16));
  background: var(--card, rgba(255,255,255,.03));
}
.apk-dl__btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--cyan, #22d3ee);
  color: #04202a !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.apk-dl__btn:hover { filter: brightness(1.08); }
.apk-dl__alt {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-faint, #7d8b9c);
}
.apk-dl__alt a { color: var(--cyan, #22d3ee); }
.apk-dl__meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-faint, #7d8b9c);
  word-break: break-all;
}
.apk-dl__meta code { font-size: 11.5px; }
