/* ══════════════════════════════════════════════════════════════════
   学术星轨 · 官网落地页样式 v2（2026-09-10 重写）
   对标基线：Material 3 Expressive（动效/状态层/触控下限）
            + ChatGPT（克制、留白、无装饰）
            + Anthropic（表面色调分层 + ring 取代投影 + 编辑式排版）
   重写要点见文件末尾「v2 改造说明」。
   v2.1（2026-09-11）：首页内容从「对比矩阵单点工具」升位为「全流程科研工作台」——
   新增 .stats 数字带与 .flow 全流程八阶段步骤卡（.step/.tools），其余复用 v2 令牌体系。
   ══════════════════════════════════════════════════════════════════ */

/* ── 设计令牌 ──
   品牌色与主应用（frontend/src/styles/index.css）统一为 #5b6afb，
   文本场合一律走 --accent-text（#4653e8，白底 5.15:1 ≥ 4.5），
   --accent 只用于填充/描边/装饰（因 #5b6afb 白底仅 4.27:1，不适合做正文色）。 */
:root {
  /* 中性阶（与主应用同源，保证两站并排看是同一套灰） */
  --bg: #f5f5f7;
  --bg-soft: #efeff3;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --muted: #5f6470;
  --faint: #8a8f9a;
  --hairline: rgba(17, 17, 20, 0.07);
  --border: rgba(17, 17, 20, 0.1);
  --border-strong: rgba(17, 17, 20, 0.2);

  /* 品牌色（canonical = 主应用 --accent） */
  --accent: #5b6afb;
  --accent-hover: #4653e8;
  --accent-active: #3844cf;
  --accent-text: #4653e8;
  --accent-soft: rgba(91, 106, 251, 0.09);
  --accent-soft-strong: rgba(91, 106, 251, 0.16);
  --ring: rgba(91, 106, 251, 0.9);

  /* 语义色（与主应用一致） */
  --ok: #1f9d6b;
  --ok-soft: rgba(31, 157, 107, 0.12);
  --ok-text: #10714c;
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.13);
  --warn-text: #8a4b06;

  /* 深色 CTA 色带（不作正文底，只作强调带） */
  --band-a: #16181d;
  --band-b: #23262e;

  /* 间距：8px 基栅格（旧版无体系，散落 62/84/34/26/18 等魔法数字） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 20px;
  --sp-5: 28px;
  --sp-6: 40px;
  --sp-7: 56px;
  --sp-8: 72px;
  --sp-9: 96px;

  /* 字号刻度（旧版混用 12.5/13.5/14.5/15.5/17 等 6 种半像素） */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-30: 30px;
  --fs-38: 38px;
  --fs-48: 48px;
  --lh-tight: 1.18;
  --lh-base: 1.65;

  /* 圆角梯度（M3 shape scale 对齐；旧版 9/12/14/18/22/26px 六档无序） */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* 动效：M3 Expressive —— spatial 可过冲回弹，effects 不过冲 */
  --mt-spatial-fast: cubic-bezier(0.34, 1.46, 0.64, 1);
  --mt-spatial-default: cubic-bezier(0.26, 1.22, 0.44, 1);
  --mt-spatial-slow: cubic-bezier(0.2, 1.1, 0.34, 1);
  --mt-effects-fast: cubic-bezier(0.3, 0, 0.8, 0.15);
  --mt-effects-default: cubic-bezier(0.2, 0, 0, 1);
  --dur-quick: 120ms;
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;

  /* 状态层叠加强度（M3 state layer，深色主题符号翻转） */
  --state-hover: 0.045;
  --state-press: 0.1;

  /* 高度：Anthropic 式 ring（发丝边框即层级）+ 极淡柔影，不用重投影 */
  --shot-1: 0 1px 2px rgba(17, 17, 20, 0.04);
  --shot-2: 0 1px 2px rgba(17, 17, 20, 0.04), 0 8px 24px -12px rgba(17, 17, 20, 0.16);
  --shot-3: 0 1px 3px rgba(17, 17, 20, 0.05), 0 24px 48px -24px rgba(17, 17, 20, 0.22);

  /* 触控目标下限（WCAG 2.5.5 / M3 48dp） */
  --tap-min: 44px;

  --maxw: 1160px;
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Roboto', system-ui, sans-serif;
  --font-serif:
    Georgia, 'Times New Roman', 'Songti SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'SimSun',
    serif;
}

/* ── 暗色：中性阶与主应用 Apple Dark 对齐（旧版是自成一体的深海军蓝，与产品内不是一套色） ── */
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #1c1c1e;
  --bg-soft: #232326;
  --panel: #2c2c2e;
  --ink: #f5f5f7;
  --muted: #b6b6bd;
  --faint: #8e8e93;
  --hairline: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #5b6afb;
  --accent-hover: #6f7cff;
  --accent-active: #7a85ff;
  --accent-text: #9aa4ff;
  --accent-soft: rgba(91, 106, 251, 0.16);
  --accent-soft-strong: rgba(91, 106, 251, 0.24);
  --ring: rgba(122, 133, 255, 0.6);
  --ok: #30d158;
  --ok-soft: rgba(48, 209, 88, 0.1);
  --ok-text: #30d158;
  --warn: #ff9f0a;
  --warn-soft: rgba(255, 159, 10, 0.18);
  --warn-text: #ffb340;
  --band-a: #26262a;
  --band-b: #33333a;
  --state-hover: 0.06;
  --state-press: 0.12;
  --shot-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shot-2: 0 1px 3px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.5);
  --shot-3: 0 2px 6px rgba(0, 0, 0, 0.34), 0 28px 56px -24px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh-base);
  font-size: var(--fs-16);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* 焦点环：全站唯一来源（旧版在文件末尾又声明了一次，靠源码序决胜） */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ── 排版：Anthropic 式编辑层级（大标题紧字距 + 大行高正文） ── */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
}
h1,
h2,
h3,
h4 {
  letter-spacing: -0.022em;
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}
h2,
h3 {
  text-wrap: pretty;
}
.grad {
  /* 单色强调（强调色小面积原则：渐变字会稀释"唯一强调色"的记忆点） */
  color: var(--accent-text);
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: var(--fs-18);
  letter-spacing: -0.02em;
  /* 触控目标：热区撑到 44px 而不改视觉盒（padding+负 margin 回位） */
  padding: 8px 0;
  margin: -8px 0;
}
.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  display: block;
  transition: transform var(--dur-base) var(--mt-spatial-default);
}
.brand:hover .mark {
  transform: rotate(-6deg) scale(1.04);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  font-size: var(--fs-14);
  color: var(--muted);
}
.nav-links > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 var(--sp-1);
  border-radius: var(--r-xs);
  transition: color var(--dur-fast) var(--mt-effects-fast);
}
.nav-links > a:not(.btn):hover {
  color: var(--ink);
}

/* ---------- Button（统一状态层：hover 色调位移 / press 弹簧下沉） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-15);
  font-family: inherit;
  padding: var(--sp-3) var(--sp-5);
  min-height: var(--tap-min);
  border-radius: var(--r-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--dur-fast) var(--mt-effects-fast),
    border-color var(--dur-fast) var(--mt-effects-fast),
    color var(--dur-fast) var(--mt-effects-fast),
    box-shadow var(--dur-fast) var(--mt-effects-fast),
    transform var(--dur-fast) var(--mt-spatial-fast);
}
.btn:active {
  transform: translateY(0.5px) scale(0.97);
}
.btn-primary {
  /* 白字压 accent 直配 4.37 <4.5——掺黑加深（Web 端 accent-solid 同思路，axe 实测驱动） */
  background: color-mix(in srgb, var(--accent) 88%, #000);
  color: #fff;
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-primary:active {
  background: var(--accent-active);
}
.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover {
  background: color-mix(in srgb, var(--ink) 88%, var(--bg));
}
.nav .btn {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-14);
  min-height: 40px;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* 背景光晕：Anthropic「不用色洗」原则下压到极淡（旧版 alpha 0.16/0.14 → 0.08/0.06），
   只保留一点纵深，不构成彩色底 */
.hero::before {
  content: '';
  position: absolute;
  inset: -30% 0 auto 0;
  height: 540px;
  z-index: -1;
  background:
    radial-gradient(
      60% 80% at 20% 0%,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 70%
    ),
    radial-gradient(
      50% 70% at 85% 10%,
      color-mix(in srgb, var(--accent) 6%, transparent),
      transparent 70%
    );
}
.hero h1 {
  font-size: clamp(2.375rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: var(--sp-4) auto 0;
  max-width: 18ch;
}
.hero p.sub {
  font-size: clamp(var(--fs-16), 2.2vw, var(--fs-20));
  color: var(--muted);
  max-width: 60ch;
  margin: var(--sp-4) auto 0;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}
.btn-lg {
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-16);
  min-height: 52px;
}
.cta-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-13);
  color: var(--muted);
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-5);
  color: var(--muted);
  font-size: var(--fs-13);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.trust .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- App window mock ---------- */
.visual {
  margin: var(--sp-8) auto 0;
  max-width: 880px;
  perspective: 1400px;
}
.appwin {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shot-3);
  overflow: hidden;
  text-align: left;
  transform: rotateX(3deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: rotateX(3deg) translateY(0);
  }
  50% {
    transform: rotateX(3deg) translateY(-9px);
  }
}
.winbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-soft);
}
.winbar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.winbar i:nth-child(1) {
  background: #ff5f57;
}
.winbar i:nth-child(2) {
  background: #febc2e;
}
.winbar i:nth-child(3) {
  background: #28c840;
}
.winbar .wt {
  margin-left: var(--sp-2);
  font-size: var(--fs-13);
  color: var(--muted);
  font-weight: 600;
}
.winbody {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 300px;
}
.side {
  border-right: 1px solid var(--hairline);
  padding: var(--sp-3) var(--sp-2);
  background: var(--bg-soft);
}
.side .si {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-13);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--muted);
}
.side .si.on {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}
.side .si svg {
  flex: none;
}
.main-area {
  padding: var(--sp-4);
}
.main-area .mt {
  font-size: var(--fs-15);
  font-weight: 700;
}
.main-area .ms {
  font-size: var(--fs-13);
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
table.mc {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-13);
}
table.mc th,
table.mc td {
  padding: var(--sp-3) var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
table.mc th {
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-12);
}
table.mc td.row {
  font-weight: 700;
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-12);
  font-weight: 600;
}
.pill.ok {
  background: var(--ok-soft);
  color: var(--ok-text);
}
.pill.warn {
  background: var(--warn-soft);
  color: var(--warn-text);
}
.pill.evi {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.cell-hl {
  background: var(--warn-soft);
  border-radius: var(--r-xs);
}

/* ---------- Stats strip（hero 之下的可核实数字带：大数字走 --accent-text 保证正文级对比度） ---------- */
.stats-wrap {
  padding: var(--sp-6) 0 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sp-4) var(--sp-5);
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats b {
  display: block;
  font-size: var(--fs-30);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.stats span {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-13);
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Flow：全流程步骤卡（复用 .card 外观，加编号与工具清单） ---------- */
.flow {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.step-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.step-top .no {
  flex: none;
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: var(--r-xs);
  padding: 2px 8px;
  line-height: 1.6;
}
.card .tools {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
}
.card .tools li {
  position: relative;
  padding: var(--sp-1) 0 var(--sp-1) 14px;
  font-size: var(--fs-13);
  color: var(--muted);
  line-height: 1.55;
}
.card .tools li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Sections（节间距走 M3 的"大块呼吸"，收紧时同步降档） ---------- */
section.block {
  padding: var(--sp-9) 0;
}
.center {
  text-align: center;
}
.section-h {
  max-width: 62ch;
  margin: 0 auto;
}
.section-h h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-top: var(--sp-3);
}
.section-h p {
  color: var(--muted);
  margin: var(--sp-3) auto 0;
  font-size: var(--fs-18);
  line-height: 1.7;
}

/* ---------- 卡片体系：统一用状态层叠加强度，不用重投影 ---------- */
.grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
.examples {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
/* .ex / .card 共用一套交互语言：hover 时表面色升一档 + 边框染色 + 弹簧上浮 */
.ex,
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left;
  transition:
    transform var(--dur-base) var(--mt-spatial-default),
    border-color var(--dur-base) var(--mt-effects-default),
    background var(--dur-fast) var(--mt-effects-fast),
    box-shadow var(--dur-base) var(--mt-effects-default);
}
.ex::after,
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--mt-effects-fast);
}
@media (hover: hover) {
  .ex:hover,
  .card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
    box-shadow: var(--shot-2);
  }
  .ex:hover::after,
  .card:hover::after {
    opacity: 0.02;
  }
}
.ex:active,
.card:active {
  transform: translateY(-1px) scale(0.995);
}
.ex {
  padding: var(--sp-5);
}
.ex .q {
  font-size: var(--fs-15);
  font-weight: 700;
  line-height: 1.5;
}
.ex .a {
  font-size: var(--fs-14);
  color: var(--muted);
  margin-top: var(--sp-2);
}

/* Feature cards（8 卡：250px 下限让 1440 内容宽 1104px 成 4×2，与全流程/示例两区节奏一致） */
.features {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  padding: var(--sp-5);
}
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: var(--sp-4);
}
.card h3 {
  font-size: var(--fs-18);
  font-weight: 700;
}
.card p {
  color: var(--muted);
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-14);
}

/* ---------- Download section ---------- */
.dl-wrap {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.dl-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  grid-template-columns: 1.05fr 1fr 0.85fr;
  align-items: stretch;
}
.dl-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shot-1);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition:
    transform var(--dur-base) var(--mt-spatial-default),
    border-color var(--dur-base) var(--mt-effects-default),
    box-shadow var(--dur-base) var(--mt-effects-default);
}
/* 旧版下载卡完全没有交互态（同为可点的卡片，.ex/.card 有抬升而它没有）——补齐 */
@media (hover: hover) {
  .dl-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    box-shadow: var(--shot-2);
  }
}
.dl-card:focus-within {
  border-color: var(--accent);
}
.dl-card.hero-dl {
  border: 1.5px solid color-mix(in srgb, var(--accent) 38%, transparent);
  overflow: hidden;
}
.dl-card .dl-tag {
  align-self: flex-start;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
}
.dl-card h3 {
  font-size: var(--fs-24);
  margin: var(--sp-3) 0 var(--sp-1);
}
.dl-card .spec {
  font-size: var(--fs-13);
  color: var(--muted);
}
.dl-card ul {
  margin: var(--sp-4) 0 0;
  padding: 0 0 0 2px;
  list-style: none;
}
.dl-card li {
  font-size: var(--fs-14);
  color: var(--ink);
  padding: var(--sp-1) 0;
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.dl-card li svg {
  flex: none;
  margin-top: 4px;
  color: var(--ok);
}
.dl-card .cta-row {
  margin-top: auto;
  padding-top: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}
.dl-card .cta-row.btns {
  gap: var(--sp-2);
}
.dl-card .cta-row.btns .btn {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-14);
  flex: 1 1 auto;
}
.dl-card .ver {
  font-size: var(--fs-12);
  color: var(--muted);
}
.dl-card .ver a,
#changelog p.center a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  /* 触控目标外扩：padding 撑热区 + 负 margin 回位，视觉节奏不变（M3 44dp 触控规范） */
  display: inline-block;
  padding: 13px 8px;
  margin: -13px -8px;
}
.dl-card .ver a:hover {
  color: var(--accent-text);
}
.dl-card .platform-icos {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
}
.dl-card .platform-icos span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.win-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-1);
}

/* Mobile band (Android + iOS) */
.dl-card.mobile-band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.dl-card.mobile-band:hover {
  transform: none;
}
.dl-card.mobile-band .mb-side {
  padding: var(--sp-5) var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
}
.dl-card.mobile-band .mb-side + .mb-side {
  border-left: 1px solid var(--hairline);
}
.dl-card.mobile-band .mb-top {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}
.dl-card.mobile-band .mb-top .ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.dl-card.mobile-band .mb-top h3 {
  margin: 0 0 2px;
  font-size: var(--fs-20);
}
.dl-card.mobile-band .mb-top .spec {
  font-size: var(--fs-13);
}
.dl-card.mobile-band ul {
  margin: var(--sp-4) 0 0;
  padding: 0 0 0 2px;
  list-style: none;
}
.dl-card.mobile-band li {
  font-size: var(--fs-14);
  color: var(--ink);
  padding: var(--sp-1) 0;
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.dl-card.mobile-band li svg {
  flex: none;
  margin-top: 4px;
  color: var(--ok);
}
.dl-card.mobile-band .cta-row {
  margin-top: auto;
  padding-top: var(--sp-4);
}
.dl-card.mobile-band .btn-soon {
  cursor: default;
  opacity: 0.58;
}
.dl-card.mobile-band .btn-soon:hover,
.dl-card.mobile-band .btn-soon:active {
  background: var(--panel);
  transform: none;
  box-shadow: none;
}

/* ---------- Local-first band（Anthropic 原则：层级靠表面色调，不靠重投影） ---------- */
.band {
  background: linear-gradient(135deg, var(--band-a), var(--band-b));
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  margin: 0 auto;
  box-shadow: var(--shot-3);
  position: relative;
  overflow: hidden;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 80% 0%, rgba(255, 255, 255, 0.07), transparent 60%);
}
.band > * {
  position: relative;
  z-index: 1;
}
.band .badge {
  display: inline-block;
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.16);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
}
.band h2 {
  font-size: clamp(1.625rem, 3.6vw, 2.375rem);
  font-weight: 800;
}
.band p {
  max-width: 58ch;
  margin: var(--sp-4) auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-18);
}
.band .mini {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: center;
  margin-top: var(--sp-5);
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.9);
}
.band .mini b {
  font-weight: 700;
}

/* ---------- FAQ / Changelog（共用折叠骨架） ---------- */
.faq {
  max-width: 780px;
  margin: var(--sp-7) auto 0;
  text-align: left;
}
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  transition:
    border-color var(--dur-base) var(--mt-effects-default),
    box-shadow var(--dur-base) var(--mt-effects-default);
}
.faq details:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.faq details[open] {
  box-shadow: var(--shot-1);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-16);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--tap-min);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: var(--fs-20);
  color: var(--accent);
  font-weight: 600;
  flex: none;
  transition: transform var(--dur-base) var(--mt-spatial-default);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: var(--sp-3) 0 0;
  color: var(--muted);
  font-size: var(--fs-14);
}
.faq .check-list {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-4);
}
.faq .check-list li {
  color: var(--muted);
  font-size: var(--fs-14);
  padding-left: 22px;
  position: relative;
}
.faq .check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-weight: 700;
}
.faq summary .cl-meta {
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-13);
  white-space: nowrap;
}

/* ---------- CTA ---------- */
.cta-final {
  text-align: center;
  padding: var(--sp-9) 0;
}
.cta-final h2 {
  font-size: clamp(1.875rem, 4.4vw, 2.75rem);
  font-weight: 800;
}
.cta-final p {
  color: var(--muted);
  margin: var(--sp-4) auto var(--sp-5);
  max-width: 48ch;
  font-size: var(--fs-18);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-soft);
  padding: var(--sp-7) 0 var(--sp-6);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  justify-content: space-between;
}
.foot-brand {
  max-width: 320px;
}
.foot-brand .brand {
  margin-bottom: var(--sp-3);
}
.foot-brand p {
  color: var(--muted);
  font-size: var(--fs-13);
  margin: 0;
}
.foot-cols {
  display: flex;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.foot-col h4 {
  font-size: var(--fs-13);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--sp-3);
}
.foot-col a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--ink);
  font-size: var(--fs-14);
  transition: color var(--dur-fast) var(--mt-effects-fast);
}
.foot-col a:hover {
  color: var(--accent-text);
}
.foot-note {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: var(--fs-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
}

/* ---------- Reveal（js 门控：脚本未就绪时内容保持可见） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--mt-effects-default),
    transform 640ms var(--mt-spatial-slow);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ Collaborate section ============ */
.band a.email {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  word-break: break-all;
}
.band a.email:hover {
  opacity: 0.85;
}
.band .check-list {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-4);
}
.band .check-list li {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-14);
  padding-left: 22px;
  position: relative;
  text-align: left; /* band 整体居中会把 li 文字推离 ::before 的 ✓ 勾，须显式左对齐 */
}
.band .check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #93c5fd;
  font-weight: 700;
}

/* 锚点跳转不被 sticky 导航遮标题（导航 64px + 呼吸 16px） */
#examples,
#flow,
#features,
#download,
#collaborate,
#faq,
#about,
#changelog {
  scroll-margin-top: 80px;
}
/* 选区品牌淡染 */
::selection {
  background: var(--accent-soft-strong);
}

/* ============ 响应式断点 ============
   旧版只有 980 / 720 / 560 三档，1024（小笔记本）与 375（小屏手机）缺位。
   现按内容断裂点补齐：1280 / 1024 / 820 / 620 / 400。 */
@media (max-width: 1280px) {
  .wrap {
    padding: 0 var(--sp-4);
  }
}
@media (max-width: 1024px) {
  :root {
    --sp-9: 72px;
    --sp-8: 56px;
  }
  .dl-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dl-card.hero-dl {
    grid-column: 1 / -1;
  }
  .nav-links {
    gap: var(--sp-4);
  }
}
@media (max-width: 820px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .dl-card.hero-dl {
    grid-column: auto;
  }
  .dl-card.mobile-band {
    grid-template-columns: 1fr;
  }
  .dl-card.mobile-band .mb-side + .mb-side {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
  /* 收窄时导航隐藏末两个锚点（保留"全流程/核心功能/下载/合作"这四个高频入口） */
  .nav-links > a:not(.btn):nth-child(n + 5) {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: var(--sp-4) var(--sp-2);
  }
  .hero {
    padding: var(--sp-7) 0 var(--sp-6);
  }
  section.block {
    padding: var(--sp-7) 0;
  }
  .band {
    padding: var(--sp-6) var(--sp-4);
    border-radius: var(--r-lg);
  }
  .visual {
    margin-top: var(--sp-6);
  }
  .winbody {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
}
@media (max-width: 620px) {
  :root {
    --sp-9: 56px;
    --sp-8: 40px;
    --sp-7: 40px;
  }
  .nav-links > a:not(.btn) {
    display: none;
  }
  .faq .check-list,
  .band .check-list {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }
  /* 320–400px 实测：矩阵首列「论文 A」被挤成竖排单字 → 首列禁换行 + 格内边距收紧 */
  table.mc {
    font-size: var(--fs-12);
  }
  table.mc th,
  table.mc td {
    padding: var(--sp-2) var(--sp-1);
  }
  table.mc td.row {
    white-space: nowrap;
  }
  .dl-card {
    padding: var(--sp-5) var(--sp-4);
  }
  .dl-card .cta-row.btns .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 400px) {
  .hero h1 {
    font-size: 2rem;
  }
  .brand {
    font-size: var(--fs-16);
  }
  .eyebrow {
    letter-spacing: 0.08em;
  }
}

/* ============ 减弱动效（M3 规定：保留状态变化，只去掉位移与回弹） ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .appwin {
    animation: none;
    transform: none;
  }
  .btn:active,
  .ex:active,
  .card:active {
    transform: none;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   v2 改造说明（2026-09-10）
   1) 品牌色统一：旧版 --accent #1f4fd6 与主应用 #5b6afb 冲突，两站并排是两种蓝。
      现统一为 #5b6afb，且所有文字场合改走 --accent-text #4653e8
      （#5b6afb 白底仅 4.27:1，低于正文 4.5 门槛，只能做填充/描边/装饰）。
   2) 设计令牌化：旧版几乎全是硬编码（62/84/34/22px 间距、12.5/13.5/14.5/15.5px 字号、
      9/12/14/18/22/26px 圆角）。现建立 --sp / --fs / --r / --shot / --dur 五套刻度并全量替换。
   3) 状态层补齐：.dl-card 此前完全没有 hover/focus 态（同页 .ex/.card 却有），现按
      M3 state layer 补齐 hover 浮起 + 边框染色 + focus-within 描边。
   4) 高度体系改走 Anthropic 式 ring：旧版 --shadow 的 `0 18px 40px -18px` 是重投影，
      与"层级靠表面色调表达"相悖；现降为发丝边框 + 极淡柔影三档（--shot-1/2/3）。
   5) 动效统一：旧版混用裸 `ease` 与 3 条自造 cubic-bezier；现全部走 M3 token
      （spatial 可回弹 / effects 不过冲），并补 prefers-reduced-motion 全局降级。
   6) 断点补齐：980/720/560 → 1280/1024/820/620/400，覆盖小笔记本与小屏手机。
   7) 暗色对齐：旧版暗色是自成体系的深海军蓝（#0b1220），与产品内 Apple Dark(#1c1c1e) 不同源；
      现统一中性阶，两站切换不再"换了个产品"。
   8) 触控目标：导航项、页脚链接、折叠标题统一 min-height 44px（WCAG 2.5.5）。
   ══════════════════════════════════════════════════════════════════ */
