/* ============================================================
   ZiZ 记事本 · 官网设计系统
   token / 配色 / 字形动机,全部移植自 app/src/styles.css —
   官网是 App 的延伸,不是另起一套。
   ============================================================ */

:root {
  /* —— 深牌桌底色(真实产品值)—— */
  --bg: #0a0c12;
  --bg-2: #0d1018;
  --ink: #f2f4f8;
  --muted: #8b93a5;
  --dim: #596275;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* —— 抬升面 —— */
  --card: #171d2e;
  --card-2: #212940;
  --surface-blur: rgba(13, 16, 24, 0.78);

  /* —— 状态机三色:位置 / 转换 / 降服 —— */
  --pos: #60a5fa;
  --trans: #34d399;
  --sub: #f87171;
  --amber: #fbbf24;
  --teal: #2dd4bf;

  /* —— 品牌渐变(ZiZ 光球)—— */
  --brand1: #8b5cf6;
  --brand2: #ec4899;
  --ring: rgba(139, 92, 246, 0.6);

  /* —— The Web 衔接连线:金 —— */
  --gold: #d8b46a;
  --gold-flow: #f3e7c4;

  /* —— 卡牌花色(10 类,真实产品配色)—— */
  --cat-choke: #f87171;
  --cat-joint: #fbbf24;
  --cat-sweep: #2dd4bf;
  --cat-pass: #60a5fa;
  --cat-escape: #a78bfa;
  --cat-transition: #ec4899;
  --cat-submission: #fb7185;
  --cat-control: #818cf8;
  --cat-takedown: #fb923c;
  --cat-concept: #94a3b8;

  /* —— 圆角刻度 —— */
  --r-sm: 10px;
  --r-btn: 12px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* —— 阴影 / 发光 —— */
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow-brand: 0 0 36px -8px rgba(139, 92, 246, 0.5);

  /* —— 字体 —— */
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-ui);
  /* 哲学金句:衬线,克制使用,给智识厚度(非奶油衬线套路——深底、稀疏、汉字)*/
  --font-quote: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC',
    Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* —— 版心 —— */
  --maxw: 1120px;
  --maxw-text: 720px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 60px;

  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ============================================================
   基础
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 舞台暗角:顶部一束柔光,让整页有「牌桌」纵深(真实产品的 body 背景)*/
.stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #1b2236 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 8%, rgba(139, 92, 246, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 50% at 8% 18%, rgba(236, 72, 153, 0.07), transparent 55%),
    var(--bg);
}

/* 毛毡牌桌格纹(取自 The Web 的 cweb-felt)*/
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 80%);
}

/* 星空 canvas(site.js 注入;无 JS 时不影响内容)*/
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

/* 键盘可见 focus(quality floor)*/
:focus-visible {
  outline: 2px solid var(--brand1);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* 跳到主内容(无障碍)*/
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ============================================================
   版心容器
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.measure {
  max-width: var(--maxw-text);
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--surface-blur);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand-orb {
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: var(--glow-brand);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--r-btn);
  color: var(--muted);
  font-size: 14px;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a[aria-current='page'] {
  color: var(--ink);
}
.nav-cta {
  margin-left: 6px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.16s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff;
  box-shadow: var(--glow-brand);
}
.btn-primary:hover {
  box-shadow: 0 0 44px -6px rgba(139, 92, 246, 0.65);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ============================================================
   排版基元
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .glyph {
  width: 15px;
  height: 15px;
  color: var(--brand2);
}

/* 章节标记:用缠斗位置名,而非 01/02/03 */
.position-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--muted);
}
.position-tag .zh {
  color: var(--ink);
  font-weight: 600;
}
.position-tag .en {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--dim);
}
.position-tag .tier {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pos);
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: rgba(96, 165, 250, 0.12);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.h-display {
  font-size: clamp(34px, 6.2vw, 68px);
  font-weight: 800;
}
.h-section {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 750;
  letter-spacing: -0.025em;
}
.lede {
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}
.kicker {
  color: var(--muted);
}

/* 渐变标字 */
.grad {
  background: linear-gradient(120deg, var(--brand1) 10%, var(--brand2) 60%, var(--amber) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold {
  color: var(--gold);
}

/* ============================================================
   区段节奏
   ============================================================ */
section {
  position: relative;
}
.section {
  padding-block: clamp(64px, 10vw, 120px);
}
.section-tight {
  padding-block: clamp(44px, 7vw, 80px);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head .h-section {
  margin-top: 16px;
}
.section-head .lede {
  margin-top: 18px;
}
.hr-hair {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============================================================
   金句 / pull-quote(独特排版装置)
   ============================================================ */
.pullquote {
  position: relative;
  font-family: var(--font-quote);
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.pullquote .mark {
  color: var(--gold);
}
.pullquote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* ============================================================
   卡片 / 网格
   ============================================================ */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.panel--hover {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.panel--hover:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-pop);
}
.panel h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.panel p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
}
.panel .feat-ico {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.panel .feat-ico svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   花色字形系统(真实产品的 10 花色)
   ============================================================ */
.suit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 8px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: color-mix(in srgb, var(--c) 80%, #fff 20%);
  font-size: 13px;
  font-weight: 600;
}
.suit svg {
  width: 17px;
  height: 17px;
  color: var(--c);
}
.suit-index {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--c);
  color: #0a0c12;
  flex: none;
}

/* 花色矩阵(功能页)*/
.suit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.suit-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.suit-cell:hover {
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  background: color-mix(in srgb, var(--c) 7%, transparent);
}
.suit-cell .glyph-disc {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.suit-cell .glyph-disc svg {
  width: 22px;
  height: 22px;
  color: var(--c);
}
.suit-cell b {
  font-size: 15px;
  font-weight: 650;
  display: block;
}
.suit-cell span {
  font-size: 12px;
  color: var(--dim);
}

/* ============================================================
   技术卡(Fig. 式引用)
   ============================================================ */
.figcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 120%);
  padding: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.figcard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--c, var(--brand1));
  opacity: 0.85;
}
.figcard .fig-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
}
.figcard h4 {
  margin: 6px 0 2px;
  font-size: 17px;
  font-weight: 700;
}
.figcard .fig-en {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.figcard .fig-essence {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.62;
}
.figcard .fig-flow {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
}
.chip .step-n {
  font-family: var(--font-mono);
  color: var(--brand2);
  font-weight: 700;
}

/* ============================================================
   掌握度三段阶梯(学过 → 能讲明白 → 实战能用)
   ============================================================ */
.ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ladder-step {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.ladder-step .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--r-pill);
  display: inline-block;
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--d) 22%, transparent);
}
.ladder-step.red {
  --d: var(--sub);
}
.ladder-step.yellow {
  --d: var(--amber);
}
.ladder-step.green {
  --d: var(--trans);
}
.ladder-step .dot {
  background: var(--d);
}
.ladder-step b {
  font-size: 18px;
  font-weight: 700;
  display: block;
}
.ladder-step .sub {
  font-size: 13px;
  color: var(--dim);
  margin-top: 2px;
}
.ladder-step p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   统计带
   ============================================================ */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 64px);
}
.stat .n {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .n em {
  font-style: normal;
  font-size: 0.5em;
  color: var(--muted);
  margin-left: 4px;
}
.stat .k {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dim);
}

/* ============================================================
   The Web(首页 hero 状态机) — 静态 SVG + 流光
   ============================================================ */
.web-stage {
  position: relative;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #10131d, #0b0e16);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.web-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 40%, transparent 85%);
  pointer-events: none;
}
.web-stage .web-eyebrow {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.web-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 连线:金色底 + 流光描边(取自真实 The Web 的 edge-flow)*/
.web-arrow {
  fill: var(--gold);
  opacity: 0.85;
}
.web-edge {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  opacity: 0.5;
}
.web-edge-flow {
  fill: none;
  stroke: var(--gold-flow);
  stroke-width: 1.6;
  stroke-dasharray: 0.14 0.86;
  stroke-linecap: round;
  opacity: 0.9;
  animation: web-flow 3.4s linear infinite;
}
@keyframes web-flow {
  to {
    stroke-dashoffset: -1;
  }
}

/* 节点 */
.web-node rect {
  fill: rgba(23, 29, 46, 0.92);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.web-node.root rect {
  fill: rgba(52, 211, 153, 0.10);
  stroke: color-mix(in srgb, var(--trans) 55%, transparent);
}
.web-node text {
  fill: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
}
.web-node .tag {
  fill: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.web-node .glyph-badge {
  stroke-width: 1.6;
  fill: none;
}

/* ============================================================
   下载区
   ============================================================ */
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.14s ease;
}
.store-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store-btn .s-top {
  font-size: 11px;
  color: var(--dim);
  display: block;
}
.store-btn .s-main {
  font-size: 15px;
  font-weight: 650;
}
.store-btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}
.store-btn .soon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  border-radius: var(--r-pill);
  padding: 1px 7px;
  margin-left: 4px;
}

/* ============================================================
   Hero 两栏 / 分支表 / 位置云 / 下载卡(页面级组件)
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-grid--rev {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.panel-cite {
  margin: 14px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* 如果 → 那么 分支表 */
.branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.branch-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.9fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.015);
}
.branch-list .if {
  color: var(--muted);
  font-size: 14px;
}
.branch-list .arr {
  color: var(--gold);
  font-weight: 700;
}
.branch-list .then {
  font-weight: 650;
  font-size: 14px;
}
.branch-list .then.choke {
  color: color-mix(in srgb, var(--cat-choke) 75%, #fff);
}
.branch-list .then.sweep {
  color: color-mix(in srgb, var(--cat-sweep) 75%, #fff);
}
.branch-list .why {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--dim);
  padding-left: 2px;
}

/* 位置云 */
.pos-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  transition: border-color 0.18s ease, transform 0.14s ease, background 0.18s ease;
}
.pos-pill:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.06);
}
.pos-pill b {
  font-weight: 600;
  font-size: 14.5px;
}
.pos-pill i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--pos);
  background: rgba(96, 165, 250, 0.12);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.pos-pill.dim-pill {
  opacity: 0.62;
}

/* 联系卡 */
.contact-card {
  display: block;
}
.contact-card h3 {
  margin-bottom: 0;
}
.contact-val {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--brand2);
  letter-spacing: 0.01em;
}
a.contact-card:hover .contact-val {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 原理编号 */
.pr-num {
  font-family: var(--font-quote);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 12px;
}

/* 三步流程(卡内) */
.flow-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.flow-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.flow-steps .fs-n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c, var(--brand2));
  line-height: 1.5;
}
.flow-steps li span:last-child {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.flow-steps b {
  color: var(--ink);
  font-weight: 650;
  margin-right: 7px;
}

/* 下载卡 */
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(236, 72, 153, 0.08), transparent 55%),
    linear-gradient(180deg, var(--card), var(--bg-2));
  box-shadow: var(--shadow-pop);
}

/* ============================================================
   长文(政策 / 协议 / 关于)
   ============================================================ */
.prose {
  max-width: var(--maxw-text);
}
.prose h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin-top: 48px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.prose h3 {
  font-size: 17px;
  margin-top: 28px;
  margin-bottom: 8px;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}
.prose p {
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose li::marker {
  color: var(--brand2);
}
.prose strong {
  color: var(--ink);
  font-weight: 650;
}
.prose a {
  color: var(--pos);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(96, 165, 250, 0.4);
}
.prose a:hover {
  text-decoration-color: var(--pos);
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

/* 目录(政策页侧栏) */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 13.5px;
}
.toc b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.toc a:hover {
  color: var(--ink);
  border-color: var(--brand2);
}

.doc-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* 提示框 */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  background: rgba(251, 191, 36, 0.05);
  padding: 16px 18px;
  margin: 0 0 16px;
}
.callout p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

/* ============================================================
   页脚(含 ICP 备案号 — 合规硬约束)
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-block: 48px 36px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.foot-brand .lede {
  font-size: 14px;
  margin-top: 12px;
  max-width: 34ch;
}
.foot-col b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.16s ease;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--dim);
}
.foot-legal a {
  color: var(--muted);
  transition: color 0.16s ease;
}
.foot-legal a:hover {
  color: var(--ink);
}
.foot-legal .sep {
  opacity: 0.4;
}
.beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   工具类
   ============================================================ */
.center {
  text-align: center;
  margin-inline: auto;
}
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 44px; }
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* 入场动画 —— 仅在有 JS 时隐藏(.js 由 <head> 内联脚本注入)。
   关键:无 JS / 爬虫不执行脚本时,.reveal 不被隐藏,正文完整可见(备案合规)。 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--surface-blur);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    margin-left: 0;
  }
  .nav-links.open {
    transform: none;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 15px;
  }
  .nav-cta {
    margin: 6px 0 0;
  }
  .nav-toggle {
    display: grid;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .ladder {
    grid-template-columns: 1fr;
  }
  .hero-grid,
  .hero-grid--rev {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .branch-list li {
    grid-template-columns: 1fr auto;
  }
  .stat .n {
    font-size: 34px;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   尊重 prefers-reduced-motion(quality floor)
   ============================================================ */
@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;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .web-edge-flow {
    display: none;
  }
  #starfield {
    display: none;
  }
}
