/* ============================================================
   REA · 逆向一切 —— 站级样式（由 Tailwind 版设计系统转写为原生 CSS）
   视觉语言：分析报告 —— 发丝级分隔线、表格式数字、单一锈红强调色。
   形状锁定：所有容器与控件均为直角（radius 0），无例外。
   颜色锁定：仅一个强调色（rust）。signal 绿只用于"已验证/已解决"语义。
   所有文字/背景配对均满足 WCAG AA。
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* surfaces */
  --paper: #f4f1ea;
  --paper-2: #eae5da;
  --paper-3: #ded8c9;
  /* ink */
  --ink: #191813;        /* 15.8 on paper */
  --ink-2: #3b3830;      /* 10.4 on paper */
  --muted: #5f5a4a;      /* 6.1 on paper, 4.9 on paper-3 */
  /* rules */
  --line: #ddd6c6;
  --line-2: #c6bca4;
  /* the one accent */
  --rust: #a8482a;
  --rust-2: #8f3c22;     /* 小字号文本（6.6 on paper） */
  --rust-3: #e8b099;     /* 深色背景上的强调色（9.7） */
  /* semantic: verified / resolved only */
  --signal: #456338;
  /* dark chapter */
  --panel: #16150f;
  --panel-2: #211f18;
  --panel-3: #333026;
  --panel-text: #f4f1ea;
  --panel-body: #b6b3ad;
  --panel-mute: #a19d93;
  --panel-line: #2e2b22;
  --panel-line-2: #3d392e;

  --font-display: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1400px;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; border-color: var(--line); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; text-wrap: balance; margin: 0; }
h4, h5 { margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
code, kbd, pre { font-family: var(--font-mono); }
img { border-radius: 0; display: block; max-width: 100%; }
button { font: inherit; margin: 0; cursor: pointer; }

/* ---------- 布局骨架 ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .shell { padding-inline: 2rem; } }

.section { border-bottom: 1px solid var(--line); }
.section-paper { background: var(--paper); }
.section-paper2 { background: var(--paper-2); }
.section-dark { background: var(--panel); color: var(--panel-text); border-bottom: none; }
.pad-page { padding-block: 5rem; }
@media (min-width: 640px) { .pad-page { padding-block: 7rem; } }

/* ---------- 排版工具类 ---------- */
.display { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.022em; }
.tnum { font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.4;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.label-rust { color: var(--rust-2); }
.caption {
  font-family: var(--font-mono); font-size: 0.71875rem; line-height: 1.65;
  letter-spacing: 0.04em; color: var(--muted); margin: 0;
}
.lede { font-size: 1rem; line-height: 1.8; color: var(--ink-2); max-width: 62ch; }
.h2 { font-size: clamp(1.95rem, 3.8vw, 2.9rem); color: var(--ink); }
.body-lg { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.body-md { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.body-mono { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.text-ink { color: var(--ink); } .text-muted { color: var(--muted); } .text-ink2 { color: var(--ink-2); }

/* ---------- 链接 ---------- */
.link-underline {
  text-decoration: none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 0.4s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
}
.link-underline:hover { background-size: 100% 1px; }
.link-underline-rust {
  text-decoration: none;
  background-image: linear-gradient(var(--rust), var(--rust));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 0.4s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
}
.link-underline-rust:hover { background-size: 100% 1px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.03em;
  white-space: nowrap; padding: 0.9rem 1.4rem; border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo), transform 0.14s var(--ease-out-expo);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.625rem 1rem; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--rust); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-2); }
.btn-on-dark { border-color: var(--panel-line-2); color: var(--panel-text); background: transparent; }
.btn-on-dark:hover { border-color: var(--panel-text); background: var(--panel-text); color: var(--panel); }

/* ---------- 氛围层 ---------- */
.bg-grid {
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 70;
  width: auto; height: auto; clip: auto; white-space: normal;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 0.5rem 1rem; font-size: 0.875rem;
}

/* ---------- 滚动入场（渐进增强，隐藏态仅在 html.js 下生效） ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity 0.9s var(--ease-out-expo) var(--reveal-delay, 0ms),
    transform 0.9s var(--ease-out-expo) var(--reveal-delay, 0ms);
}
.js [data-reveal="left"] { transform: translate3d(-26px, 0, 0); }
.js [data-reveal="wipe"] { opacity: 1; transform: none; }
.js [data-reveal="wipe"] > * {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out-expo) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="wipe"].is-in > * { clip-path: inset(0 0 0 0); }

/* ---------- 跑马灯 ---------- */
.ticker-mask {
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; width: max-content; align-items: center;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 行交互 ---------- */
.row-lift { transition: background-color 0.35s var(--ease-out-expo), padding-left 0.35s var(--ease-out-expo); }
@media (hover: hover) {
  .row-lift:hover { background-color: var(--paper); padding-left: 0.9rem; }
  .plate:hover { border-color: var(--line-2); }
  .case-figure:hover img { transform: scale(1.025); }
}
.plate { transition: border-color 0.35s var(--ease-out-expo); }
.case-figure img { transition: transform 0.7s var(--ease-out-expo); }

/* ============================================================
   顶栏
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--ink);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--paper);
  transition: background-color 0.3s var(--ease-out-expo);
}
.brand:hover .brand-mark { background: var(--rust); }
.brand-name { font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink); }
.brand-sub { font-size: 13px; color: var(--muted); margin-left: 0.5rem; }
@media (max-width: 639px) { .brand-sub { display: none; } }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  padding-block: 0.25rem; font-size: 13.5px; color: var(--ink-2); text-decoration: none;
}
.main-nav a:hover { color: var(--ink); }
@media (max-width: 767px) { .main-nav { display: none; } }
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-github {
  padding-block: 0.5rem; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; color: var(--muted); text-decoration: none;
  transition: color 0.3s var(--ease-out-expo);
}
.header-github:hover { color: var(--ink); }
@media (max-width: 1023px) { .header-github { display: none; } }
@media (max-width: 639px) { #header-start { display: none; } }

/* 移动端菜单（details 实现） */
.mobile-menu { position: relative; }
@media (min-width: 768px) { .mobile-menu { display: none; } }
.mobile-menu summary {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--line-2);
  list-style: none; cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger span { display: block; height: 1px; width: 16px; background: var(--ink); }
.mobile-menu nav {
  position: absolute; right: 0; top: 48px; width: 220px;
  border: 1px solid var(--line); background: var(--paper); padding: 0.5rem;
  box-shadow: 0 18px 40px -28px rgba(25, 24, 19, 0.45);
}
.mobile-menu nav a { display: block; padding: 0.625rem 0.75rem; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.mobile-menu nav a:hover { background: var(--paper-2); color: var(--ink); }
.mobile-menu nav .menu-cta {
  margin-top: 0.25rem; background: var(--ink); color: var(--paper);
  text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
}
.mobile-menu nav .menu-cta:hover { background: var(--rust); color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-fade {
  position: absolute; inset-inline: 0; bottom: 0; height: 8rem;
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; padding-block: 3.5rem 4rem; }
@media (min-width: 640px) { .hero-inner { padding-block: 5rem 5rem; } }
.hero-grid { display: grid; align-items: center; gap: 3rem; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 3.5rem; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line-2); background: rgba(244, 241, 234, 0.85);
  padding: 0.375rem 0.75rem;
}
.hero-title { margin-top: 1.5rem; font-size: clamp(2.35rem, 5.4vw, 4.05rem); color: var(--ink); }
.hero-title span { display: block; }
.hero-title .rust { color: var(--rust); }
.hero-copy { margin-top: 1.75rem; max-width: 44ch; font-size: 16.5px; line-height: 1.8; color: var(--ink-2); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero-figure { margin: 0; }
.hero-plate { position: relative; }
@media (min-width: 1024px) {
  .plate-echo {
    position: absolute; top: -0.625rem; right: -0.625rem;
    height: 100%; width: 100%; border: 1px solid var(--line-2);
  }
}
@media (max-width: 1023px) { .plate-echo { display: none; } }
.terminal {
  position: relative; border: 1px solid var(--ink); background: var(--panel);
  box-shadow: 0 40px 90px -48px rgba(25, 24, 19, 0.7);
}
.term-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--panel-line); padding: 0.625rem 1rem;
}
.term-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--panel-mute); }
.term-tag-narrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--panel-mute); }
.term-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.375rem 1.5rem; border-top: 1px solid var(--panel-line); background: var(--panel-2);
  padding: 0.625rem 1rem; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; color: var(--panel-mute);
}
.term-foot .rust3 { color: var(--rust-3); }
.hero-caption { margin-top: 1rem; max-width: 52ch; }

/* ============================================================
   数据条（ProofBand）
   ============================================================ */
.figures { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .figures { grid-template-columns: repeat(3, 1fr); } }
.figure-cell { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.figure-cell + .figure-cell { border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .figure-cell { display: block; padding-block: 1.5rem; }
  .figure-cell + .figure-cell { border-top: none; border-left: 1px solid var(--line); padding-left: 2rem; }
}
.figure-value { order: 1; font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1; color: var(--ink); }
.figure-key { order: 2; }
@media (min-width: 640px) {
  .figure-value { order: 2; margin-top: 0.75rem; }
  .figure-key { order: 1; }
}

/* ============================================================
   跑马灯条（Ticker）
   ============================================================ */
.ticker-link {
  display: flex; align-items: center; gap: 1.5rem; text-decoration: none;
  border-bottom: 1px solid var(--line); padding: 0.625rem 1.25rem;
}
@media (min-width: 640px) { .ticker-link { padding-inline: 2rem; } }
.ticker-link .label { flex-shrink: 0; color: var(--ink); transition: color 0.3s; }
.ticker-link:hover .label { color: var(--rust-2); }
.ticker-jump { flex-shrink: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); transition: color 0.3s; text-decoration: none; }
.ticker-link:hover .ticker-jump { color: var(--ink); }
.ticker-arrow { margin-left: auto; flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; color: var(--rust-2); }
.marquee-wrap { overflow: hidden; padding-block: 0.875rem; }
.marquee-item { display: flex; align-items: center; white-space: nowrap; }
.marquee-item .name { padding-inline: 1.5rem; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-2); }
.marquee-dot { width: 3px; height: 3px; background: var(--rust); }

/* ============================================================
   Concept：一个服务，连上所有分析工具
   ============================================================ */
.concept-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .concept-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 5rem; } }
.concept-title { max-width: 14em; }
.concept-p1 { margin-top: 1.5rem; max-width: 46ch; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.concept-p2 { margin-top: 1rem; max-width: 46ch; font-size: 16px; line-height: 1.85; color: var(--muted); }
.concept-cards {
  margin-top: 2.5rem; display: grid; gap: 1px;
  border: 1px solid var(--line); background: var(--line);
}
@media (min-width: 640px) { .concept-cards { grid-template-columns: 1fr 1fr; } }
.concept-card { background: var(--paper); padding: 1.25rem; }
.concept-card .body-md { margin-top: 0.625rem; }
.flow-list { border: 1px solid var(--line); background: var(--paper-2); }
.flow-node {
  position: relative; border-bottom: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.75rem 3.5rem;
}
.flow-node:last-child { border-bottom: none; }
@media (min-width: 640px) { .flow-node { padding: 2rem 2rem 2rem 4rem; } }
.flow-rail {
  position: absolute; left: 0; top: 0; height: 100%; width: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line);
}
@media (min-width: 640px) { .flow-rail { width: 3rem; } }
.flow-rail .dot { width: 6px; height: 6px; background: var(--rust); position: relative; z-index: 1; }
.flow-rail .link {
  position: absolute; left: 50%; top: calc(50% + 6px);
  height: calc(100% - 12px); width: 1px; transform: translateX(-50%); background: var(--line);
}
.flow-node h3 { font-size: 20px; color: var(--ink); }
@media (min-width: 640px) { .flow-node h3 { font-size: 22px; } }
.flow-node .detail { margin-top: 0.75rem; }
.flow-node .note { margin-top: 0.5rem; }
.flow-caption { margin-top: 1rem; max-width: 48ch; }

/* ============================================================
   HowItWorks：三步闭环
   ============================================================ */
.steps-head { max-width: 44rem; }
.steps-intro { margin-top: 1.5rem; max-width: 52ch; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.steps-grid { margin-top: 3.5rem; display: grid; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-cell {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); padding-top: 1.75rem;
}
@media (min-width: 768px) { .step-cell { padding-right: 2rem; } }
.step-cell .label { transition: color 0.3s var(--ease-out-expo); }
.step-cell:hover .label { color: var(--rust-2); }
.step-cell h3 { margin-top: 1rem; font-size: 22px; line-height: 1.4; color: var(--ink); }
@media (min-width: 640px) { .step-cell h3 { font-size: 25px; } }
.step-cell p { margin: 1rem 0 2rem; max-width: 40ch; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.step-rule { margin-top: auto; display: block; height: 1px; width: 2.5rem; background: var(--rust); }

/* ============================================================
   Targets：分类标签页
   ============================================================ */
.targets-head { max-width: 52rem; }
.tabs-layout { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .tabs-layout { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.6fr); gap: 4rem; } }
.tab-rail { display: flex; gap: 0.25rem; overflow-x: auto; padding-bottom: 0.25rem; border-color: var(--line); }
@media (min-width: 1024px) {
  .tab-rail {
    display: block; overflow: visible;
    position: sticky; top: 7rem; align-self: start;
    border-right: 1px solid var(--line); padding-right: 1.5rem;
  }
}
.tab-btn {
  position: relative; flex-shrink: 0; white-space: nowrap; text-align: left;
  border: none; background: none; display: block;
  border-bottom: 1px solid var(--line); padding: 0.875rem 1rem;
  transition: color 0.3s var(--ease-out-expo), border-color 0.3s, background-color 0.3s;
  width: auto;
}
@media (min-width: 1024px) {
  .tab-btn { width: 100%; border-bottom: none; border-left: 1px solid var(--line); padding: 1.25rem 1.25rem; }
}
.tab-btn .tab-name { font-size: 15px; font-weight: 500; }
.tab-btn .tab-count { font-variant-numeric: tabular-nums; margin-left: 0.625rem; font-family: var(--font-mono); font-size: 11px; opacity: 0.55; }
.tab-btn[aria-selected="true"] { border-color: var(--ink); background: var(--paper); color: var(--ink); }
@media (min-width: 1024px) { .tab-btn[aria-selected="true"] { border-left: 2px solid var(--rust); } }
.tab-btn[aria-selected="false"] { border-color: var(--line); color: var(--muted); }
.tab-btn[aria-selected="false"]:hover { color: var(--ink); }
@media (min-width: 1024px) { .tab-btn[aria-selected="false"] { border-left-color: var(--line); } }
.tab-panel { min-width: 0; }
.tab-caption { margin-bottom: 1.25rem; }
.target-list { border-top: 1px solid var(--line); }
.target-row { border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.target-cols { display: grid; gap: 0.75rem 2rem; }
@media (min-width: 640px) { .target-cols { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 2rem; } }
.target-row h3 { font-size: 19px; color: var(--ink); transition: color 0.3s var(--ease-out-expo); }
.target-row:hover h3 { color: var(--rust-2); }
.target-row .req-label { margin-top: 0.75rem; }
.target-row .req { margin-top: 0.375rem; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.target-row .out-label { }
.target-row .out { margin-top: 0.375rem; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
@media (min-width: 640px) {
  .target-right { border-left: 1px solid var(--line); padding-left: 2rem; }
}
.notes-grid {
  margin-top: 4rem; display: grid; gap: 1px;
  border-top: 1px solid var(--line); background: var(--line);
}
@media (min-width: 640px) { .notes-grid { grid-template-columns: repeat(3, 1fr); } }
.note-cell { background: var(--paper-2); padding-top: 1.75rem; }
@media (min-width: 640px) { .note-cell { padding-right: 2rem; } }
.note-cell dd { margin-top: 0.75rem; max-width: 38ch; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }

/* ============================================================
   Start：两分钟接入
   ============================================================ */
.start-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .start-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.55fr); gap: 5rem; } }
@media (min-width: 1024px) { .start-aside { position: sticky; top: 7rem; align-self: start; } }
.start-title { font-size: clamp(1.95rem, 3.6vw, 2.75rem); color: var(--ink); }
.start-copy { margin-top: 1.5rem; max-width: 34ch; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.start-note {
  margin-top: 2.25rem; border-left: 2px solid var(--rust); padding-left: 1.25rem;
  font-size: 14px; line-height: 1.8; color: var(--muted);
}
.start-note code { color: var(--ink); margin-inline: 0.25rem; }
.start-list { display: grid; gap: 1px; background: var(--line); }
.start-item { background: var(--paper); padding-block: 2rem; }
@media (min-width: 640px) { .start-item { padding-right: 2rem; } }
.start-item h3 { font-size: 21px; color: var(--ink); }
.start-item .desc { margin-top: 0.75rem; max-width: 56ch; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.start-item .slot { margin-top: 1.5rem; }
.prompt-box { border: 1px solid var(--line-2); background: var(--paper-2); padding: 1rem 1.25rem; }
.prompt-box p { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--ink); }

/* 命令复制条 */
.copy-command { display: flex; align-items: stretch; border: 1px solid var(--panel-line-2); background: var(--panel); }
.copy-command code {
  display: flex; align-items: center; min-width: 0; flex: 1;
  overflow-x: auto; white-space: nowrap;
  padding: 0.875rem 1rem; font-size: 13px; letter-spacing: 0.01em; color: var(--panel-text);
}
.copy-command.lg code { padding-block: 1rem; font-size: 14px; }
.copy-command .dollar { margin-right: 0.625rem; user-select: none; color: var(--rust-3); }
.copy-btn {
  flex-shrink: 0; border: none; border-left: 1px solid var(--panel-line-2);
  background: var(--panel); padding-inline: 1rem;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--panel-mute);
  transition: background-color 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
}
.copy-btn:hover { background: var(--panel-3); color: var(--panel-text); }
.copy-btn[data-status="copied"] { color: var(--signal); }
.copy-btn[data-status="failed"] { color: var(--rust-3); }
.copy-btn[data-status="copied"]:hover, .copy-btn[data-status="failed"]:hover { background: var(--panel-3); }

/* ============================================================
   Cases 首页区
   ============================================================ */
.cases-head { }
.cases-title { margin-top: 1.25rem; max-width: 24ch; }
.cases-intro { margin-top: 1.25rem; max-width: 50ch; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.cases-all { margin-top: 1.5rem; display: inline-block; padding-block: 0.375rem; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--ink); text-decoration: none; }
.cases-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
.case-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--paper); text-decoration: none;
}
.case-card:hover { border-color: var(--line-2); }
@media (min-width: 1024px) {
  .case-feature { grid-column: span 2; flex-direction: row; }
  .case-feature .case-media { width: 42%; border-left: 1px solid var(--line); border-top: none; }
}
.case-body { padding: 1.75rem 1.5rem; }
@media (min-width: 640px) { .case-body { padding: 2.25rem 2rem; } }
.case-body .label { color: var(--rust-2); }
.case-feature h3 { margin-top: 1.25rem; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--ink); transition: color 0.5s var(--ease-out-expo); }
.case-card:hover h3 { color: var(--rust-2); }
.case-lead { margin-top: 1rem; max-width: 48ch; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.case-metrics { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.case-metrics dd { margin-top: 0.5rem; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); }
.case-media {
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line); background: var(--paper-2); padding: 1.5rem;
}
.case-media img { width: 100%; max-width: 300px; border: 1px solid var(--line); }
.case-mini .case-media { border-top: none; border-bottom: 1px solid var(--line); padding: 1.25rem; }
.case-mini .case-media img { max-width: 220px; }
.case-mini .case-body { display: flex; flex: 1; flex-direction: column; padding: 1.75rem 1.5rem; }
@media (min-width: 640px) { .case-mini .case-body { padding-inline: 1.75rem; } }
.case-mini h3 { margin-top: 1rem; font-size: 20px; color: var(--ink); transition: color 0.5s var(--ease-out-expo); }
.case-mini .case-lead { font-size: 14.5px; max-width: 44ch; margin-top: 0.75rem; }
.case-mini .case-metrics { margin-top: auto; padding-top: 1.75rem; }
.case-mini .case-metrics dd { font-size: 14px; }
.cases-foot { margin-top: 2rem; max-width: 72ch; }

/* ============================================================
   FAQ 手风琴
   ============================================================ */
.faq-head { max-width: 38rem; }
.faq-intro { margin-top: 1.25rem; max-width: 40ch; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.faq-docs { margin-top: 1.5rem; display: inline-block; padding-block: 0.375rem; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--ink); text-decoration: none; }
.faq-wrap { margin-top: 3.5rem; max-width: 1080px; border-top: 1px solid var(--line); }
.faq-row { border-bottom: 1px solid var(--line); }
.faq-cols { display: grid; gap: 0 2.5rem; }
@media (min-width: 640px) { .faq-cols { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }
.faq-q-btn {
  display: flex; width: 100%; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.5rem; text-align: left;
  border: none; background: none; color: var(--ink-2);
  transition: color 0.3s var(--ease-out-expo);
}
.faq-q-btn:hover { color: var(--ink); }
.faq-q {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  transition: color 0.3s var(--ease-out-expo);
}
@media (min-width: 640px) { .faq-q { font-size: 20px; } }
.faq-row[data-state="open"] .faq-q { color: var(--ink); }
.faq-sign {
  margin-top: 0.125rem; flex-shrink: 0;
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--line-2); color: var(--muted);
  font-size: 15px; line-height: 1;
  transition: transform 0.35s var(--ease-out-expo), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.faq-row[data-state="open"] .faq-sign {
  transform: rotate(45deg); border-color: var(--rust); background: var(--rust); color: #fff;
}
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-expo);
}
.faq-row[data-state="open"] .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.faq-a-inner { max-width: 64ch; padding-bottom: 2rem; }
.faq-a { font-size: 15px; line-height: 1.85; color: var(--muted); }
.faq-a-code {
  margin-top: 1rem; display: inline-block; border: 1px solid var(--line-2); background: var(--paper);
  padding: 0.5rem 0.875rem; font-size: 12.5px; color: var(--ink);
}
/* 首条默认展开时 .faq-sign 保持打开态由 data-state 驱动 */

/* ============================================================
   深色收尾区（CtaPanel）
   ============================================================ */
.cta-glow {
  position: absolute; right: -10rem; top: 50%; height: 520px; width: 520px;
  transform: translateY(-50%);
  background: rgba(168, 72, 42, 0.15); filter: blur(120px); pointer-events: none;
}
.cta-inner { position: relative; padding-block: 5rem; }
@media (min-width: 640px) { .cta-inner { padding-block: 7rem; } }
.cta-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 5rem; } }
.cta-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--panel-text); }
.cta-copy { margin-top: 1.5rem; max-width: 44ch; font-size: 16px; line-height: 1.85; color: var(--panel-body); }
.cta-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-stats {
  margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  border-top: 1px solid var(--panel-line); padding-top: 1.5rem;
}
.cta-stats .label { color: var(--panel-mute); }
.cta-stats dd { margin-top: 0.5rem; font-size: 14px; color: var(--panel-text); }
.cta-thanks { margin-top: 2rem; color: var(--panel-mute); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { position: relative; overflow: hidden; background: var(--panel); color: var(--panel-text); }
.footer-grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 640px) { .footer-grid { padding-block: 5rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 5rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.625rem; }
.footer-brand .mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--rust);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #fff;
}
.footer-brand .name { font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.16em; }
.footer-slogan { margin-top: 1.5rem; max-width: 26ch; font-family: var(--font-display); font-size: 21px; line-height: 1.4; color: var(--panel-body); }
.footer-cmd {
  margin-top: 1.75rem; display: inline-block;
  border: 1px solid var(--panel-line); background: var(--panel-2);
  padding: 0.5rem 0.875rem; font-size: 12.5px; color: var(--rust-3);
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-col h3 { font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; color: var(--panel-mute); font-weight: 400; }
.footer-col ul { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { display: inline-block; margin-inline: -0.5rem; padding: 0.375rem 0.5rem; font-size: 13.5px; color: var(--panel-body); text-decoration: none; transition: color 0.3s var(--ease-out-expo); }
.footer-col a:hover { color: var(--paper); }
.footer-legal { margin-top: 3.5rem; border-top: 1px solid var(--panel-line); padding-top: 2rem; }
.footer-legal p { max-width: 80ch; font-size: 12.5px; line-height: 1.7; color: var(--panel-mute); }

/* ============================================================
   子页页头（PageHeader）
   ============================================================ */
.page-hero { position: relative; overflow: hidden; }
.page-hero .bg-grid { opacity: 0.5; position: absolute; inset: 0; pointer-events: none; }
.page-hero-inner { position: relative; padding-block: 3rem 3.5rem; }
@media (min-width: 640px) { .page-hero-inner { padding-block: 4rem 4.5rem; } }
.crumb { display: flex; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); }
.crumb a { display: inline-block; margin-left: -0.5rem; padding: 0.375rem 0.5rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin-inline: 0.25rem; color: var(--line-2); }
.crumb .cur { padding-block: 0.375rem; color: var(--ink); }
.page-title { margin-top: 1.75rem; max-width: 18em; font-size: clamp(2.1rem, 5vw, 3.5rem); color: var(--ink); }
.page-meta { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (min-width: 640px) { .page-meta { grid-template-columns: repeat(4, 1fr); } }
.page-meta dd { margin-top: 0.625rem; font-size: 15px; color: var(--ink); }

/* ============================================================
   案例详情页
   ============================================================ */
.case-article { border-top: 2px solid var(--ink); padding-top: 2.25rem; }
.case-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .case-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.case-detail-title { margin-top: 1.25rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--ink); }
.case-question { margin-top: 1.75rem; border-left: 2px solid var(--rust); padding-left: 1.25rem; }
.case-question .body-lg { margin-top: 0.5rem; font-size: 16px; }
.case-steps { margin-top: 2.25rem; }
.case-step {
  position: relative; display: flex; gap: 1rem;
  border-top: 1px solid var(--line); padding-block: 1rem;
}
.case-step:first-child { border-top: none; padding-top: 0; }
.case-step .dot { margin-top: 0.5rem; height: 6px; width: 6px; flex-shrink: 0; background: var(--rust); }
.case-step .txt { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.case-aside { }
@media (min-width: 1024px) { .case-aside { padding-top: 3.5rem; } }
.case-card-data { border: 1px solid var(--line); background: var(--paper-2); }
.case-card-fig { border-bottom: 1px solid var(--line); padding: 1.25rem; }
.case-card-fig img { width: 100%; max-width: 260px; border: 1px solid var(--line); }
.case-results { border-bottom: 1px solid var(--line); }
.case-result { border-top: 1px solid var(--line); padding: 1.25rem; }
.case-result:first-child { border-top: none; }
.case-result dd { margin-top: 0.5rem; font-size: 16px; line-height: 1.4; color: var(--ink); }
.case-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 1rem 1.25rem; }
.case-links a { display: inline-block; margin-inline: -0.5rem; padding: 0.375rem 0.5rem; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-decoration: none; }
.share-block { margin-top: 5rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.share-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); }
.share-block p { margin-top: 1rem; max-width: 62ch; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.share-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ============================================================
   指南页
   ============================================================ */
.guides-list { border-top: 1px solid var(--line); }
.guide-row { border-bottom: 1px solid var(--line); }
.guide-link { display: block; padding-block: 2rem; text-decoration: none; color: inherit; }
.guide-cols { display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 640px) { .guide-cols { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; } }
.guide-link h2 { font-size: 24px; color: var(--ink); transition: color 0.3s var(--ease-out-expo); font-family: var(--font-sans); font-weight: 700; }
@media (min-width: 640px) { .guide-link h2 { font-size: 27px; } }
.guide-link:hover h2 { color: var(--rust-2); }
.guide-link .body { margin-top: 0.75rem; max-width: 56ch; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.guide-tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guide-tags li { border: 1px solid var(--line); padding: 0.25rem 0.625rem; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); }
.guide-open {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted);
  transition: transform 0.5s var(--ease-out-expo);
}
@media (min-width: 640px) { .guide-open { align-self: center; } }
.guide-link:hover .guide-open { transform: translateX(0.25rem); }
.docs-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .docs-layout { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr); gap: 5rem; } }
.docs-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--ink); }
.docs-head p { margin-top: 1.5rem; max-width: 34ch; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.docs-grid {
  display: grid; border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .docs-grid { grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); }
}
.doc-cell { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .doc-cell { border-right: 1px solid var(--line); } }
.doc-cell a {
  display: block; height: 100%; padding: 1.25rem; text-decoration: none;
  transition: background-color 0.3s var(--ease-out-expo);
}
.doc-cell a:hover { background: var(--paper); }
.doc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.doc-label { font-size: 15.5px; color: var(--ink); transition: color 0.3s var(--ease-out-expo); }
.doc-cell a:hover .doc-label { color: var(--rust-2); }
.doc-arrow { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.doc-note { display: block; margin-top: 0.5rem; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- 减弱动画 ---------- */
@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 [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-reveal="wipe"] > * { clip-path: none !important; }
  .marquee-track { animation: none !important; }
}
