/* ============================================================================
   dsh-novel-writer 宣传页
   配色与字体取自 deepseek.com 的实际设计 token（--dsw-static-deepseek-* 等）
   ========================================================================== */

:root {
  /* 品牌蓝（DeepSeek 自有色阶） */
  --brand-50:  #edf3fe;
  --brand-100: #e4edfd;
  --brand-200: #d3e2ff;
  --brand-300: #b7c8fe;
  --brand-400: #679efe;
  --brand-450: #5686fe;
  --brand-500: #3964fe;
  --brand-600: #2f52d8;
  --brand-800: #34415b;

  /* 中性（偏蓝灰阶） */
  --n-00:  #ffffff;
  --n-50:  #f9fafb;
  --n-60:  #f5f6f7;
  --n-75:  #f1f3f5;
  --n-100: #ebeef2;
  --n-150: #e9ecf2;
  --n-200: #e1e5ee;
  --n-300: #cfd3d6;
  --n-400: #adb2b8;
  --n-500: #979da6;
  --n-600: #81858c;
  --n-700: #61666b;
  --n-750: #43454a;
  --n-850: #2c2c2e;
  --n-875: #232324;
  --n-950: #151517;
  --n-1000:#0f1115;

  --text:      var(--n-1000);
  /* 正文与次要文字都按 WCAG AA（≥4.5:1）选值：#43454a = 9.6:1，#61666b = 5.8:1 */
  --text-2:    var(--n-750);
  --text-3:    var(--n-700);
  --line:      var(--n-150);
  --line-soft: var(--n-75);

  --radius:   16px;
  --radius-sm:10px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, .05);
  --shadow-md: 0 12px 24px -12px rgba(15, 17, 21, .14);
  --shadow-lg: 0 28px 56px -28px rgba(15, 17, 21, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
          "Liberation Mono", "Courier New", monospace;

  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--n-00);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); }

::selection { background: var(--brand-200); color: var(--n-1000); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--n-1000); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

/* ---------------------------------------------------------------- 顶部导航 */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); }

.nav__inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; }
.brand__mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--brand-500);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 9px;
  flex: none;
}
.brand__mark svg { width: 17px; height: 17px; }
.brand__text { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand__ver {
  font-family: var(--mono); font-size: 11px; color: var(--brand-600);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 2px 6px; border-radius: 6px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a {
  font-size: 14px; color: var(--n-750); padding: 8px 12px; border-radius: 8px;
  transition: color .18s, background .18s;
}
.nav__links > a:hover { color: var(--n-1000); background: var(--n-60); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 10px;
  background: var(--n-1000); color: #fff !important;
  padding: 8px 15px !important; border-radius: 9px !important;
  font-weight: 550;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.nav__cta:hover { background: var(--n-850); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span {
  display: block; width: 16px; height: 1.6px; background: var(--n-750); border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; padding: calc(var(--nav-h) + 84px) 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; left: 50%; top: -220px; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(57, 100, 254, .13), transparent 70%),
    radial-gradient(closest-side, rgba(103, 158, 254, .12), transparent 72%);
  filter: blur(6px);
}
.hero__glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(57, 100, 254, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
  opacity: .5;
}
.hero__inner { position: relative; text-align: center; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2px;
  font-size: 13.5px; color: var(--n-750);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: var(--brand-200); background: #fff; }
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 0 rgba(57, 100, 254, .5);
  animation: ping 2.4s var(--ease) infinite;
  margin-right: 7px;
}
.pill__label { color: var(--n-700); }
.pill__sep { color: var(--n-400); padding: 0 2px; }
/* 每个片语各自可点，指向各自的落地页 */
.pill a {
  color: var(--n-1000); font-weight: 550;
  padding: 3px 7px; border-radius: 7px;
  transition: color .18s, background .18s;
}
.pill a:hover { color: var(--brand-500); background: var(--brand-50); }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(57, 100, 254, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(57, 100, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 100, 254, 0); }
}

.hero__title {
  font-size: clamp(44px, 8.2vw, 92px);
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 30px 0 0;
  background: linear-gradient(180deg, var(--n-1000) 30%, #2b3a63 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  margin: 24px auto 0; max-width: 660px;
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--text-2); line-height: 1.85;
}
.hero__sub strong { color: var(--n-1000); font-weight: 600; }

.hero__cta {
  margin-top: 34px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 550; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn--primary {
  background: var(--brand-500); color: #fff;
  box-shadow: 0 1px 2px rgba(57, 100, 254, .32), 0 10px 24px -14px rgba(57, 100, 254, .8);
}
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(57, 100, 254, .9); }
.btn--ghost { background: #fff; color: var(--n-1000); border-color: var(--n-200); }
.btn--ghost:hover { border-color: var(--brand-300); background: var(--n-50); transform: translateY(-2px); }

.hero__cmd {
  margin: 26px auto 0; max-width: max-content;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--n-60); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 12px 11px 15px;
}
.hero__cmd code { font-size: 13.5px; color: var(--n-750); }

/* 复制按钮 */
.copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line); background: #fff; color: var(--n-700);
  border-radius: 8px; padding: 5px 9px; font-size: 12px; font-family: var(--font);
  cursor: pointer; transition: all .18s; flex: none;
}
.copy:hover { color: var(--brand-500); border-color: var(--brand-200); background: var(--brand-50); }
.copy.is-done { color: #128a4a; border-color: #a7e8c4; background: #edfdf4; }

/* 数字条 */
.stats {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.stats > div { padding: 26px 12px 0; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: none; }
.stat dt {
  font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.03em;
  color: var(--n-1000); display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat dt span { font-size: .55em; font-weight: 600; color: var(--text-3); }
.stat dd { margin: 6px 0 0; font-size: 13px; color: var(--text-3); text-align: center; }

/* ------------------------------------------------------------------ 区块 */
.sec { padding: 116px 0; }
.sec--tint { background: var(--n-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-size: 13px; font-weight: 650; color: var(--brand-500);
  letter-spacing: .06em;
}
.h2 { margin-top: 12px; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.028em; }
.lede { margin-top: 16px; max-width: 720px; font-size: 16.5px; color: var(--text-2); line-height: 1.85; }
.fine { margin-top: 14px; font-size: 13px; color: var(--text-3); line-height: 1.8; }

.grid { display: grid; gap: 18px; margin-top: 52px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 问答卡 */
.qa {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; transition: border-color .22s, box-shadow .22s, transform .22s var(--ease);
}
.qa:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.qa__q { font-size: 15.5px; font-weight: 650; color: var(--n-1000); }
.qa__a { margin-top: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.85; }
.qa__a b { color: var(--brand-500); font-weight: 650; }

/* 能力卡 */
/* 能力卡：悬停意图展开（详情面板绝对定位挂于卡片下方，不引起重排） */
.card {
  position: relative;
  /* 关键：让卡片永远成为层叠上下文。
     否则卡片表面伪元素（z-index: -1）会落到「区块背景之下」被整块盖住：
     静止态看不到卡片容器；展开时因 z-index / translate 临时成为层叠上下文才露出来；
     收起后 translate 过渡结束、层叠上下文消失，表面就会瞬间消失——表现为「闪一下」。 */
  isolation: isolate;
  padding: 26px; display: flex; flex-direction: column;
}
/* 收起动画进行中仍保持在上层，避免收回的面板被下一行卡片压住 */
.card.is-closing { z-index: 3; }
/* 卡片表面与描边放在 ::before 上。
   原因：展开时面板在做高度动画（逐帧重排），若把 scale 加在卡片本身，
   等于让一个「正在逐帧重排的子树」同时处于被缩放的上下文里 —— 每帧都要按新倍率
   重新栅格化，表现为展开瞬间的闪烁。把放大移到只含背景的独立图层即可消除，
   同时卡片内的文字保持清晰、面板动画不受影响。 */
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: scale .34s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover::before { border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.card.is-open::before {
  scale: 1.035;
  border-color: var(--brand-200);
  box-shadow: 0 30px 60px -34px rgba(15, 17, 21, .38);
}
/* 卡片本身只做轻微位移与位移产生的层次；不再缩放（避免上面说的重栅格化） */
.grid .card {
  transition: opacity .7s var(--ease), transform .7s var(--ease), translate .34s var(--ease);
}
.card.is-open { translate: 0 -3px; z-index: 3; }
.card__icon {
  width: 40px; height: 40px; display: grid; place-items: center; font-size: 19px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 11px;
  margin-bottom: 16px;
}
.card h3 { font-size: 16.5px; font-weight: 650; }
.card p { margin-top: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.85; }
.card p code, .perm code, .fine code, .panel__note code {
  font-size: .88em; background: var(--n-75); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 5px; color: var(--n-750);
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.tags li {
  font-size: 12px; color: var(--text-2); background: var(--n-60);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}

/* ---------------------------------------------------------------- 终端卡 */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
.term {
  background: var(--n-1000); border: 1px solid var(--n-875);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.term__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; background: var(--n-950); border-bottom: 1px solid var(--n-875);
}
.term__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--n-750); }
.term__bar span:nth-child(1) { background: #ff5f57; }
.term__bar span:nth-child(2) { background: #febc2e; }
.term__bar span:nth-child(3) { background: #28c840; }
.term__bar em {
  margin-left: auto; font-family: var(--mono); font-size: 11.5px;
  color: var(--n-600); font-style: normal;
}
.term__body { margin: 0; padding: 18px; overflow-x: auto; }
.term__body code {
  font-size: 12.5px; line-height: 1.72; color: var(--n-300);
  white-space: pre; display: block;
}
.c-comment { color: var(--n-600); }
.c-dim     { color: var(--n-600); }
.c-num     { color: var(--brand-400); }
.c-key     { color: var(--brand-300); }
.c-str     { color: #7ee2a8; }
.c-ok      { color: #4ade80; font-weight: 600; }
.c-warn    { color: #fbbf24; }

/* -------------------------------------------------------------- 12 轴光谱 */
.axes {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 44px;
}
.axes li { display: flex; align-items: center; gap: 14px; }
.axes span { flex: none; width: 92px; font-size: 13.5px; color: var(--n-750); }
.axes i {
  position: relative; flex: 1; height: 8px; background: var(--n-100);
  border-radius: 99px; overflow: hidden;
}
.axes i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-500));
  border-radius: 99px;
  transition: width 1.05s var(--ease);
}
.axes.is-in i::after { width: calc(var(--v) * 100%); }

/* ------------------------------------------------------------------ 对比表 */
.table-wrap {
  margin-top: 48px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm);
}
.cmp { width: 100%; border-collapse: collapse; min-width: 680px; }
.cmp th, .cmp td {
  padding: 15px 20px; text-align: left; font-size: 14.5px;
  border-bottom: 1px solid var(--line-soft); font-weight: 400;
}
.cmp thead th { font-size: 13px; font-weight: 650; color: var(--text-3); background: var(--n-50); }
.cmp tbody th { color: var(--n-750); font-weight: 500; }
.cmp tbody td { color: var(--text-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp .is-us {
  background: var(--brand-50); color: var(--n-1000) !important; font-weight: 550;
  box-shadow: inset 1px 0 0 var(--brand-100), inset -1px 0 0 var(--brand-100);
}
.cmp thead .is-us { color: var(--brand-500) !important; background: var(--brand-50); }
.cmp .is-us b { font-weight: 700; }

.perm { margin-top: 44px; }
.perm h3 { font-size: 18px; font-weight: 650; }
.perm__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.perm__grid > div {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
}
.perm__grid b { font-size: 14px; font-weight: 650; }
.perm__grid p { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

/* -------------------------------------------------------------------- 安装 */
.tabs {
  display: inline-flex; gap: 4px; margin-top: 40px; padding: 4px;
  background: var(--n-100); border-radius: 12px;
}
.tab {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 14px; color: var(--text-2);
  padding: 9px 16px; border-radius: 9px; transition: all .18s;
}
.tab:hover { color: var(--n-1000); }
.tab.is-active { background: #fff; color: var(--n-1000); font-weight: 600; box-shadow: var(--shadow-sm); }

.panels { margin-top: 20px; }
.panel { display: none; }
.panel.is-active { display: block; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel__note { font-size: 14.5px; color: var(--text-2); line-height: 1.85; max-width: 760px; }

.code {
  position: relative; margin-top: 14px;
  background: var(--n-1000); border: 1px solid var(--n-875);
  border-radius: 12px; padding: 16px 18px;
  overflow-x: auto;
}
.code pre { margin: 0; }
.code code {
  font-size: 13px; line-height: 1.7; color: var(--n-200);
  white-space: pre; display: block;
}
.code .copy {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14);
  color: var(--n-300);
}
.code .copy:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .28); }
.code .copy.is-done { background: rgba(74, 222, 128, .16); border-color: rgba(74, 222, 128, .4); color: #7ee2a8; }
.code--block { padding-top: 44px; }

.quick { margin-top: 44px; }
.quick h3 { font-size: 18px; font-weight: 650; }
.quick p { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }

/* ------------------------------------------------------------------ 收录 */
.trust {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .22s, box-shadow .22s, transform .22s var(--ease);
}
.trust:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.trust b { font-size: 15px; font-weight: 650; }
.trust__val { font-size: 14.5px; font-weight: 700; color: var(--brand-500); }
.trust em { font-size: 12.5px; color: var(--text-3); font-style: normal; word-break: break-all; }

/* -------------------------------------------------------------------- FAQ */
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-top: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.faq:hover { border-color: var(--brand-200); }
.faq[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-size: 15.5px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.8px solid var(--n-400); border-bottom: 1.8px solid var(--n-400);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease), border-color .2s;
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--brand-500); }
.faq[open] summary { color: var(--brand-500); }
.faq p { margin-top: 12px; font-size: 14.5px; color: var(--text-2); line-height: 1.88; }
.faq p code { font-size: .88em; background: var(--n-75); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

/* --------------------------------------------------------------- 结语 CTA */
.end {
  position: relative; padding: 120px 0 128px; text-align: center; overflow: hidden;
}
.end::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 460px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(57, 100, 254, .11), transparent 72%);
}
.end__inner { position: relative; }
.end__title { font-size: clamp(26px, 4.2vw, 40px); letter-spacing: -.03em; }

/* ------------------------------------------------------------------- 页脚 */
.foot { border-top: 1px solid var(--line); background: #fff; padding: 66px 0 40px; }
.foot__cols { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 40px; }
.foot__desc { margin-top: 16px; max-width: 280px; font-size: 13.5px; color: var(--text-3); line-height: 1.85; }
.foot__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.foot__badges img { height: 18px; width: auto; }
.foot__col h4 { font-size: 13px; font-weight: 650; color: var(--n-1000); margin-bottom: 16px; }
.foot__col a { display: block; font-size: 13.5px; color: var(--text-2); margin: 10px 0; transition: color .18s; }
.foot__col a:hover { color: var(--brand-500); }
.foot__base {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3);
}
.foot__note { color: var(--text-3); }

/* --------------------------------------------------------------- 滚动动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* 交错延迟只给非卡片元素：能力卡需要灵敏的悬停响应，不能带延迟 */
.grid > .reveal:not(.card):nth-child(2) { transition-delay: .06s; }
.grid > .reveal:not(.card):nth-child(3) { transition-delay: .12s; }
.grid > .reveal:not(.card):nth-child(4) { transition-delay: .18s; }
.grid > .reveal:not(.card):nth-child(5) { transition-delay: .24s; }
.grid > .reveal:not(.card):nth-child(6) { transition-delay: .3s; }
.terms > .reveal:nth-child(2) { transition-delay: .08s; }
.terms > .reveal:nth-child(3) { transition-delay: .16s; }
.terms > .reveal:nth-child(4) { transition-delay: .24s; }

/* ------------------------------------------------- 能力卡：悬停意图展开
   放大用独立的 translate/scale 属性，与滚动进场的 transform 互不覆盖；
   详情面板绝对定位挂于卡片下方，展开时不影响任何其它元素的布局。 */
.card__toggle {
  margin-top: auto; padding: 18px 0 0;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--brand-500);
}
.card__toggle i {
  width: 8px; height: 8px; margin-top: -3px;
  border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  transition: transform .34s var(--ease), margin-top .34s var(--ease);
}
.card.is-open .card__toggle i { transform: rotate(-135deg); margin-top: 4px; }

.card__more {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  display: grid; grid-template-rows: 0fr;
  background: #fff;
  /* 独立浮层：四角自成圆角，不与卡片拼缝（拼接会露出底色的缺口） */
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -30px rgba(15, 17, 21, 0);
  pointer-events: none;
  /* 收起方向：边框与投影必须跟高度动画同曲线、同时长淡出。
     早期这里写成 .1s linear，面板还有约 1/4 高度时边框就已经淡没了，
     看上去是「啪」地闪掉；实测 271ms 的收起动画里边框 67ms 就消失了。 */
  transition: grid-template-rows .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card.is-open .card__more {
  grid-template-rows: 1fr;
  pointer-events: auto;
  border-color: var(--brand-200);
  box-shadow: 0 24px 48px -30px rgba(15, 17, 21, .34);
  /* 展开方向：边框与投影延迟到面板已有高度后再淡入。
     否则 0 高度面板会在卡片下方先画出一条 1px 边线与一抹阴影 → 视觉上"闪一下" */
  transition:
    grid-template-rows .42s var(--ease),
    border-color .22s linear .12s,
    box-shadow .3s var(--ease) .14s;
}
/* 下方空间不足时改为向上展开（由 script.js 判定并加类） */
.card.is-open-up .card__more { top: auto; bottom: calc(100% + 6px); }
.card__more-in { overflow: hidden; padding: 0 25px; transition: padding .44s var(--ease); }
.card.is-open .card__more-in { padding: 18px 25px 22px; }
.card__more dl { margin: 0; }
.card__more dt { font-size: 12.5px; font-weight: 650; color: var(--brand-500); }
.card__more dt + dd { margin: 4px 0 0; }
.card__more dd { margin: 12px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.78; }
.card__more dd:first-of-type { margin-top: 4px; }
.card__more dt:not(:first-of-type) { margin-top: 12px; }
.card__more code { font-size: .88em; background: var(--n-75); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: var(--n-750); }

/* 卡片标题即子页面入口；非触屏下整张卡片也可点击进入 */
.card__doc { color: inherit; transition: color .18s; }
.card__doc:hover { color: var(--brand-500); }
.card--clickable { cursor: pointer; }
.card__more-link {
  display: flex; align-items: center;
  margin-top: 15px; padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 600; color: var(--brand-500);
  transition: color .18s;
}
.card__more-link:hover { color: var(--brand-600); }

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .perm__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > a { padding: 12px 8px; font-size: 15px; }
  .nav__cta { margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 820px) {
  .sec { padding: 78px 0; }
  .hero { padding: calc(var(--nav-h) + 56px) 0 72px; }
  .grid--2, .grid--3, .terms, .axes { grid-template-columns: 1fr; }
  .grid, .terms { margin-top: 38px; gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stats > div { border-left: none; padding: 20px 0 0; }
  .stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__cmd { display: flex; max-width: 100%; width: 100%; justify-content: space-between; }
  .hero__cmd code { font-size: 12.5px; overflow-x: auto; }
  .perm__grid { grid-template-columns: 1fr; }
  .axes span { width: 84px; font-size: 13px; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tabs { display: flex; width: 100%; overflow-x: auto; }
  .tab { white-space: nowrap; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .foot__cols { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .brand__ver { display: none; }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; }
  /* 胶囊在窄屏会换行，改用圆角矩形避免走形 */
  .pill { border-radius: 14px; padding: 9px 12px; gap: 1px; }
  .pill a { padding: 3px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .axes i::after { width: calc(var(--v) * 100%); }
}

@media print {
  .nav, .hero__glow, .foot__badges, .copy { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sec { padding: 24px 0; }
}
