/* ==========================================================================
   fx-tui · 介绍页
   视觉语言：22px 点阵画布、14px 圆角浮卡、1px 发丝边、终端即内容。
   品牌色取自 fx-tui 的 interface 域（teal-cyan ~181°）；
   深色终端画面是内容，不是站点主题。
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --border: rgba(15, 17, 21, .10);
  --border-soft: rgba(15, 17, 21, .055);
  --text: #0f1115;
  --text-2: #61666b;
  --text-3: #6b7077;
  --caption: #9aa0a7;
  --brand: #0f1115;
  --on-brand: #ffffff;
  --link: #3b6fd8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ec1313;
  --dot: rgba(15, 17, 21, .13);

  /* fx-tui 品牌 teal（浅色终端里的 accent 是深 teal，深色终端是亮 cyan） */
  --accent: #0e7490;
  --accent-ink: #0b5d73;
  --accent-tint: rgba(14, 116, 144, .075);

  /* 终端内容（亮色终端） */
  --term-bg: #ffffff;
  --term-chrome: #f6f7f8;
  --term-fg: #1b2126;
  --term-dim: #6b7077;
  --term-accent: #0e7490;
  --term-ok: #15803d;
  --term-warn: #b45309;
  --term-err: #b91c1c;
  --term-line: rgba(15, 17, 21, .10);
  --term-line-soft: rgba(15, 17, 21, .06);
  --term-tint: rgba(14, 116, 144, .055);
  --term-code: #0b5d73;

  --ok-tint: color-mix(in srgb, var(--ok) 10%, transparent);
  --warn-tint: color-mix(in srgb, var(--warn) 11%, transparent);
  --err-tint: color-mix(in srgb, var(--err) 9%, transparent);

  --shadow-card:
    0 1px 2px rgba(15, 23, 42, .05),
    0 12px 26px -14px rgba(15, 23, 42, .18),
    0 30px 60px -30px rgba(15, 23, 42, .22),
    inset 0 1px 0 rgba(255, 255, 255, .38);
  --shadow-shot:
    0 2px 4px rgba(15, 23, 42, .06),
    0 18px 40px -18px rgba(15, 23, 42, .25),
    0 60px 100px -60px rgba(15, 23, 42, .35);

  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.15px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--text) 88%, transparent);
  color: var(--bg);
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, pre, blockquote, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }

p code,
li code,
b code {
  padding: 1px 4px;
  white-space: nowrap;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: var(--surface-2);
  font-size: .92em;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--link) 70%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
}
.skip-link:focus { top: 10px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

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

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b1014;
  color: #67e8f9;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 1px 2px rgba(15, 23, 42, .18);
}
.brand-mark .icon { width: 17px; height: 17px; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.012em; white-space: nowrap; }
.brand-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--text-3);
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 8px; }
.nav-links a {
  position: relative;
  font-size: 12.5px;
  color: var(--text-2);
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-version {
  padding: 2px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--text-3);
}
.nav-npm {
  padding: 2px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.nav-npm:hover { color: var(--text); border-color: var(--border); }
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.icon-btn .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding: 84px 0 0; }
.hero-inner { max-width: 920px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .11em;
  color: var(--text-3);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.eyebrow .slash { color: var(--caption); }

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(44px, 6.6vw, 68px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.038em;
}
.hero-lead {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 16px;
  line-height: 29px;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero-lead code { color: var(--accent-ink); border-color: rgba(14, 116, 144, .18); background: var(--accent-tint); }
.hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.btn {
  height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 15px; height: 15px; }
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow:
    inset 0 0 0 .5px rgba(255, 255, 255, .14),
    0 1px 2px rgba(15, 23, 42, .22),
    0 10px 22px -12px rgba(15, 23, 42, .55);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.btn-ghost:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.hero-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 11.5px;
  color: var(--text-3);
}
.hero-proof span { display: inline-flex; align-items: center; gap: 5px; }
.hero-proof .icon { width: 13px; height: 13px; color: var(--ok); }

.hero-figure { margin: 58px auto 0; max-width: 1120px; }
.figure-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 4px;
  font-size: 11px;
  color: var(--text-3);
}
.cap-check { display: inline-flex; align-items: center; gap: 5px; }
.cap-check .icon { width: 12px; height: 12px; color: var(--ok); }
.cap-meta { font-size: 10px; letter-spacing: .06em; color: var(--text-3); }

/* ------------------------------------------------------------------ terminal */

.term {
  border: 1px solid rgba(15, 17, 21, .14);
  border-radius: 16px;
  background: var(--term-bg);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .05),
    0 18px 40px -20px rgba(15, 23, 42, .28),
    0 60px 100px -60px rgba(15, 23, 42, .34);
  overflow: hidden;
  text-align: left;
}
.term-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: var(--term-chrome);
  border-bottom: 1px solid var(--term-line-soft);
}
.tl { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.term-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: .03em;
  color: var(--text-3);
  white-space: nowrap;
}
.term-body {
  padding: 20px 22px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.62;
  color: var(--term-fg);
}

.banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(14, 116, 144, .26);
  border-radius: 9px;
  background: rgba(14, 116, 144, .03);
}
.banner-logo {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--term-accent);
  white-space: pre;
  flex: none;
}
.banner-facts { display: grid; gap: 2px; min-width: 0; }
.fact { display: flex; gap: 10px; min-width: 0; font-size: 11.5px; }
.fact-k { width: 46px; flex: none; color: var(--text-3); letter-spacing: .06em; }
.fact-v { color: var(--term-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-hint { margin-top: 8px; font-size: 11px; color: var(--text-3); }

.t-user {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 8px 10px;
  border-left: 2px solid var(--term-accent);
  border-radius: 2px 8px 8px 2px;
  background: var(--term-tint);
  color: #14181c;
  font-size: 12.5px;
  line-height: 1.55;
}
.t-bar { color: var(--term-accent); font-weight: 700; flex: none; }
.t-think { margin-top: 12px; color: var(--text-3); font-size: 11.5px; }
.t-glyph { color: var(--term-accent); }

.t-tool {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  font-size: 11.5px;
  color: #30373d;
}
.t-tool-ok { color: var(--term-ok); }
.t-tool-err { color: var(--term-err); }
.t-tool-name { color: #0f1115; font-weight: 600; }
.t-tool-cmd { color: var(--term-code); }
.t-diff-add { color: var(--term-ok); }
.t-diff-del { color: var(--term-err); }
.t-dim { color: var(--term-dim); }
.t-key {
  margin-left: auto;
  padding: 0 5px;
  border: 1px solid rgba(15, 17, 21, .14);
  border-radius: 4px;
  background: #fff;
  font-size: 9.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.t-ai {
  margin-top: 12px;
  max-width: 72ch;
  font-size: 12.5px;
  line-height: 1.72;
  color: #262d33;
}
.t-ai code,
.t-panel code {
  padding: 1px 4px;
  border-radius: 3px;
  background: #eef4f5;
  border: 0;
  color: var(--term-code);
  font-size: .92em;
}
.t-spacer { height: 42px; }
.t-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--term-line-soft);
  font-size: 10.5px;
  color: #5f6a70;
}
.t-ready { color: var(--term-ok); }
.t-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(14, 116, 144, .5);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  color: #14181c;
}
.t-input-text { color: #14181c; }
.t-cursor {
  width: 7px;
  height: 14px;
  background: #0f1115;
  animation: caret 1.1s steps(1) infinite;
}
.t-mode { margin-top: 7px; font-size: 10.5px; color: var(--term-warn); }

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ------------------------------------------------------------------ sections */

.section { padding: 104px 0 0; }
.section-head { max-width: 700px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  letter-spacing: .09em;
  color: var(--text-3);
}
.section-kicker .mono { font-size: 10px; color: var(--caption); letter-spacing: .04em; }
.section-kicker .rule { width: 26px; height: 1px; background: var(--border); }
.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -.032em;
}
.section-head h2 code {
  padding: 0 5px;
  border-color: rgba(14, 116, 144, .2);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: .92em;
}
.section-lead {
  max-width: 620px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 26px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ compare */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.compare-card {
  padding: 22px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.compare-before {
  background: color-mix(in srgb, var(--surface) 52%, transparent);
  box-shadow: none;
  border-style: dashed;
}
.compare-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.compare-head .mono { font-size: 9px; letter-spacing: .14em; color: var(--caption); }
.compare-title { font-size: 14px; font-weight: 600; }
.plain-list { margin-top: 16px; display: grid; gap: 13px; }
.plain-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--caption);
}
.check-list { margin-top: 16px; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 8px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.check-list .icon { width: 13px; height: 13px; margin-top: 4px; color: var(--ok); }

/* ------------------------------------------------------------------ steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.step { padding: 22px 22px 24px; min-width: 0; }
.step + .step { border-left: 1px solid var(--border-soft); }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-num { font-size: 10px; letter-spacing: .08em; color: var(--caption); }
.step-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent-ink);
}
.step-icon .icon { width: 17px; height: 17px; }
.step h3 { margin: 18px 0 7px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.step p { font-size: 12.5px; line-height: 20px; color: var(--text-2); }

/* ------------------------------------------------------------------ split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  gap: 64px;
  align-items: center;
}
.split-visual { min-width: 0; }
@media (min-width: 861px) {
  .split-reverse .split-visual { order: 1; }
  .split-reverse .split-copy { order: 2; }
}
.split .section-head { max-width: 540px; }
.points { display: grid; gap: 13px; margin-top: 28px; }
.points li {
  position: relative;
  padding-left: 17px;
  font-size: 12.5px;
  line-height: 20px;
  color: var(--text-2);
  text-wrap: pretty;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
.points strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ mock (dark) */

.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px 13px;
  border-bottom: 1px solid var(--border-soft);
}
.mock-eyebrow { font-size: 9px; letter-spacing: .14em; color: var(--caption); }
.mock-title { margin-top: 2px; font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; }
.mock-body { padding: 17px; }
.chip {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 9.5px;
  line-height: 16px;
  color: var(--text-3);
  white-space: nowrap;
}
.mock-term {
  border-color: rgba(15, 17, 21, .14);
  background: var(--term-bg);
}
.mock-term .mock-head { border-bottom-color: var(--term-line-soft); }
.mock-term .mock-eyebrow { color: var(--text-3); }
.mock-term .mock-title { color: #0f1115; }
.mock-term .mock-body {
  padding: 16px 17px 17px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--term-fg);
}
.chip-term {
  color: var(--term-code);
  border-color: rgba(14, 116, 144, .25);
  background: rgba(14, 116, 144, .07);
}
.mock-term .t-user { margin-top: 0; font-size: 11.5px; }
.mock-term .t-foot {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--term-line-soft);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.mock-term .t-tool { margin-top: 9px; font-size: 10.5px; }
.mock-term .t-think { font-size: 10.5px; }
.mock-term .t-input { margin-top: 10px; font-size: 11.5px; }
.mock-term .t-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 6px 9px;
  border: 1px dashed rgba(180, 83, 9, .4);
  border-radius: 6px;
  background: rgba(245, 158, 11, .08);
  font-size: 10px;
  color: #92400e;
}
.tray-label { color: #92400e; font-weight: 600; }
.mock-term .t-panel {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--term-line);
  border-radius: 6px;
  background: #f8fafb;
  font-size: 10.5px;
  color: #3f474d;
}
.t-panel-label { font-size: 9px; letter-spacing: .08em; color: var(--text-3); margin-bottom: 2px; }
.t-panel-cmd { color: var(--term-code); }
.t-err { color: var(--term-err); }
.mock-term .t-status {
  margin-top: 12px;
  padding-top: 9px;
  font-size: 10px;
}

/* approval mock */
.approval {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid rgba(162, 28, 175, .28);
  border-radius: 8px;
  background: rgba(162, 28, 175, .045);
}
.approval-title { font-size: 11px; color: #a21caf; }
.approval-cmd {
  padding: 4px 7px;
  border: 1px solid var(--term-line-soft);
  border-radius: 4px;
  background: #f6f7f8;
  font-size: 11.5px;
  color: #14181c;
}
.approval-why { font-size: 10.5px; color: var(--text-3); }
.approval-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 10.5px;
  color: #30373d;
}
kbd {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid rgba(15, 17, 21, .18);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
  color: #14181c;
}

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.card {
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent-ink);
}
.card-icon .icon { width: 17px; height: 17px; }
.card h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card h3 code {
  padding: 0;
  border: 0;
  background: none;
  font-size: .96em;
  color: var(--accent-ink);
}
.card p { font-size: 12.5px; line-height: 21px; color: var(--text-2); text-wrap: pretty; }
.more-note {
  max-width: 800px;
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 22px;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ shot */

.shot-fig { min-width: 0; }
.shot {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-shot);
  overflow: hidden;
  line-height: 0;
}
.shot img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ install */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 48px;
  margin-top: 44px;
  align-items: start;
}
.install-step {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border-soft);
}
.install-step:first-child { padding-top: 0; }
.install-num {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 10px;
  color: var(--text-2);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.install-body { min-width: 0; flex: 1; }
.install-body h3 { font-size: 14px; font-weight: 600; }
.install-body p { margin-top: 4px; font-size: 12px; line-height: 19px; color: var(--text-2); }
.install-body p code {
  padding: 1px 4px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 10.5px;
}
.code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(15, 17, 21, .09);
  border-radius: 9px;
  background: #f6f7f8;
  color: #1b2126;
  overflow-x: auto;
}
.code code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  overflow-x: auto;
  font-size: 10.5px;
  line-height: 18px;
  white-space: pre;
  color: inherit;
}
.code-line { display: block; }
.copy-btn {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(15, 17, 21, .14);
  border-radius: 5px;
  background: #fff;
  color: #5f6a70;
  font-size: 9.5px;
  cursor: pointer;
}
.copy-btn:hover { background: #fff; border-color: rgba(15, 17, 21, .26); color: #0f1115; }
.copy-btn .icon { width: 11px; height: 11px; }
.copy-btn.is-done { color: #15803d; border-color: rgba(21, 128, 61, .35); }

.config-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 10px;
  color: var(--text-3);
}
.config-head .mono { font-size: 10px; letter-spacing: .02em; }
.config-code {
  margin: 0;
  padding: 15px 16px;
  overflow-x: auto;
  background: color-mix(in srgb, var(--surface-2) 56%, transparent);
  font-size: 10.5px;
  line-height: 19px;
  color: var(--text-2);
}
.config-code .c { color: var(--text-3); }
.config-code .k { color: var(--text); }
.config-code .v { color: var(--accent-ink); }
.config-foot {
  padding: 11px 15px;
  border-top: 1px solid var(--border-soft);
  font-size: 10.5px;
  line-height: 18px;
  color: var(--text-3);
}
.config-foot code {
  padding: 1px 4px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 9.5px;
}
.config-code code { border: 0; background: none; padding: 0; font-size: inherit; }

/* ------------------------------------------------------------------ limits */

.limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.limit {
  padding: 18px 18px 19px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.limit:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, .35);
}
.limit-tag { font-size: 8.5px; letter-spacing: .12em; color: var(--caption); }
.limit h3 { margin: 9px 0 5px; font-size: 13px; font-weight: 600; letter-spacing: -.005em; }
.limit p { font-size: 11.5px; line-height: 18px; color: var(--text-2); }
.limit p code {
  padding: 1px 3px;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  background: var(--surface-2);
  font-size: 10px;
}

/* ------------------------------------------------------------------ cta + footer */

.cta { padding: 112px 0 0; }
.cta-inner { max-width: 860px; text-align: center; }
.cta h2 {
  margin: 22px 0 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.038em;
}
.cta p { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.cta p code { color: var(--accent-ink); border-color: rgba(14, 116, 144, .18); background: var(--accent-tint); }
.cta-actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.cta-note {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  font-size: 10px;
  color: var(--text-3);
}
.cta-note .mono { letter-spacing: .06em; color: var(--caption); }
.cta-note .icon { width: 12px; height: 12px; }

.footer {
  margin-top: 104px;
  border-top: 1px solid var(--border-soft);
  padding: 34px 0 44px;
}
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.footer-sub { margin-top: 2px; font-size: 10.5px; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: 14px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--text-2);
}
.footer-links a:hover { color: var(--text); }
.footer-meta { margin-left: auto; font-size: 9.5px; letter-spacing: .07em; color: var(--text-3); }

/* ------------------------------------------------------------------ reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .62s cubic-bezier(.2, .7, .2, 1), transform .62s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; will-change: auto; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .split { gap: 44px; }
  .nav-links { gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; border-top: 1px solid var(--border-soft); }
  .step:nth-child(4) { border-top: 1px solid var(--border-soft); }
}

@media (max-width: 860px) {
  .nav-links, .nav-version, .nav-npm { display: none; }
  .hero { padding-top: 64px; }
  .section { padding-top: 84px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .split-reverse .split-visual,
  .split-reverse .split-copy { order: 0; }
  .split-visual { max-width: 620px; }
  .split .section-head { max-width: 640px; }
  .install-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .limits { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .footer-meta { width: 100%; margin-left: 0; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: clamp(38px, 10.4vw, 50px); }
  .hero-lead { font-size: 14.5px; line-height: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; margin-left: auto; margin-right: auto; }
  .hero-proof { gap: 8px 14px; }
  .hero-figure { margin-top: 42px; }
  .figure-cap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section { padding-top: 74px; }
  .section-head h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .compare { grid-template-columns: 1fr; margin-top: 30px; }
  .steps { grid-template-columns: 1fr; margin-top: 30px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--border-soft); }
  .step { padding: 18px 18px 20px; }
  .step h3 { margin-top: 14px; }
  .mock-head { padding-left: 15px; padding-right: 15px; }
  .code code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .code-stack { flex-wrap: wrap; }
  .code-stack code { flex: 1 1 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
  .code-stack .copy-btn { margin-left: auto; }
  .limits { grid-template-columns: 1fr; }
  .cta { padding-top: 84px; }
  .footer { margin-top: 76px; }
  .footer-links { margin-left: 0; gap: 14px; }
  .brand-meta { display: none; }
  .nav-inner { gap: 12px; }

  /* 终端画面在小屏上降一档字号，避免内部换行 */
  .term-body { padding: 16px 14px 14px; font-size: 10.5px; }
  .term-title { display: none; }
  .banner { gap: 12px; padding: 11px 12px; }
  .banner-logo { font-size: 8.5px; }
  .fact { font-size: 10px; gap: 6px; }
  .fact-k { width: 38px; }
  .fact-hint { font-size: 9.5px; }
  .t-user { font-size: 11px; }
  .t-ai { font-size: 11px; }
  .t-tool { font-size: 10px; }
  .t-status { gap: 4px 10px; font-size: 9px; }
  .t-input { font-size: 10.5px; }
  .t-mode { font-size: 9px; }
  .t-spacer { height: 26px; }
  .mock-term .mock-body { font-size: 10px; }
  .mock-term .t-user,
  .mock-term .t-input { font-size: 10.5px; }
  .mock-term .t-tool,
  .mock-term .t-think { font-size: 9.5px; }
  .t-key { margin-left: 0; }
  .approval-keys { gap: 5px 10px; font-size: 9.5px; }
}

@media (max-width: 400px) {
  .banner-logo { display: none; }
  .term-body { font-size: 10px; }
  .term-body .banner { padding: 10px; }
  .t-key { display: none; }
}

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .nav { position: static; }
  .term, .mock, .config-card, .shot { break-inside: avoid; }
}

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