/* ==========================================================================
   NPIE — 品牌宣传站样式
   色板严格取自《嗯哌 NPIE 品牌 VI 手册》:
     墨黑 #141414 · 米白 #F5F0E8 · 暖橙 #F2762E
     海军蓝 #1B2A44 · 石墨灰 #3A3A3C · 墨绿 #1F3A32
   橙仅作强调，占比控制在 10% 以内。深浅两套主题共用同一组 token。
   ========================================================================== */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jbmono-var.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB;
}
@font-face {
  font-family: "NPIE Serif";
  src: url("../fonts/npie-serif.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NPIE Sans";
  src: url("../fonts/npie-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- 主题 token ---------- */
:root {
  --ink: #141414;
  --paper: #f5f0e8;
  --orange: #f2762e;
  --navy: #1b2a44;
  --graphite: #3a3a3c;
  --green: #1f3a32;

  --bg: var(--ink);
  --fg: var(--paper);
  --muted: rgba(245, 240, 232, 0.62);
  --faint: rgba(245, 240, 232, 0.38);
  --line: rgba(245, 240, 232, 0.14);
  --line-strong: rgba(245, 240, 232, 0.26);
  --surface: rgba(245, 240, 232, 0.045);
  --surface-2: rgba(245, 240, 232, 0.075);
  --card: #191919;
  --shadow: 0 36px 80px -40px rgba(0, 0, 0, 0.85);

  /* 橙色对深色底足够（对比度 > 6），浅色底上小字对比度只有 2.5，
     所以浅色主题里橙只做图形强调，文字强调退回墨黑——见 03-页面结构与文案.md 的可访问性说明。 */
  --accent-text: var(--orange);

  --serif: "NPIE Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "NPIE Sans", "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    -apple-system, "Helvetica Neue", sans-serif;
  --latin: "Michroma", "Eurostile Extended", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(20px, 5vw, 56px);
  --maxw: 1280px;
  --r: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: rgba(20, 20, 20, 0.66);
  --faint: rgba(20, 20, 20, 0.44);
  --line: rgba(20, 20, 20, 0.14);
  --line-strong: rgba(20, 20, 20, 0.3);
  --surface: rgba(20, 20, 20, 0.038);
  --surface-2: rgba(20, 20, 20, 0.07);
  --card: #efe8dd;
  --shadow: 0 36px 80px -48px rgba(20, 20, 20, 0.45);
  --accent-text: var(--ink);
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: var(--orange);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- 排版 ---------- */
.h-display {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}
.eyebrow .num {
  color: var(--accent-text);
  letter-spacing: 0.08em;
}
.fig {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 18px 0 0;
}
.fig b {
  color: var(--orange);
  font-weight: 500;
}
.lede {
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  margin: 22px 0 0;
  max-width: 46ch;
}

/* ---------- 入场动画 ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand img {
  height: 26px;
  width: auto;
}
.brand .wordmark {
  font-family: var(--latin);
  font-size: 14px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
}
html[data-theme="dark"] .logo-for-light,
html[data-theme="light"] .logo-for-dark {
  display: none;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}
.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.icon-btn:hover {
  color: var(--fg);
  background: var(--surface);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 0 9px;
  height: 34px;
  border-radius: var(--r);
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.lang-btn:hover {
  color: var(--fg);
  background: var(--surface);
}
html[data-theme="dark"] .sun,
html[data-theme="light"] .moon {
  display: none;
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-tools {
    margin-left: auto;
  }
}

/* ---------- 首屏 ---------- */
.hero {
  padding: calc(68px + clamp(64px, 11vh, 132px)) 0 clamp(56px, 8vh, 96px);
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(44px, 6vw, 72px);
}
@media (min-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 47rem) minmax(0, 1fr);
    align-items: center;
  }
}
.hero h1 {
  font-size: clamp(34px, 5vw, 68px);
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero .lede {
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px 0 18px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13.5px;
  transition: border-color 0.25s, background-color 0.25s;
}
.cmd:hover {
  border-color: var(--orange);
}
.cmd .dollar {
  color: var(--accent-text);
  user-select: none;
}
.cmd code {
  font-family: inherit;
  letter-spacing: -0.01em;
}
.cmd .copy {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.cmd .copy:hover {
  color: var(--fg);
  background: var(--surface-2);
}
.cmd .copy svg {
  width: 15px;
  height: 15px;
}
.cmd .copy.done {
  color: var(--accent-text);
}
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.ghost-link:hover {
  color: var(--fg);
  border-color: var(--orange);
}
.note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
  margin: 18px 0 0;
}

/* 首屏产品图 */
.hero-shot {
  position: relative;
  margin-top: clamp(40px, 6vw, 76px);
}
.shot-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.shot-frame img {
  width: 100%;
  height: auto;
}
.hero-figure {
  display: none;
  position: relative;
  justify-self: center;
  align-self: center;
  width: clamp(260px, 30vw, 420px);
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 12% 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 118, 46, 0.16), transparent 72%);
  z-index: -1;
}
.hero-figure img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.5));
}
html[data-theme="light"] .hero-figure img {
  filter: drop-shadow(0 24px 36px rgba(70, 45, 20, 0.24));
}
@media (min-width: 1080px) {
  .hero-figure {
    display: block;
  }
}

/* ---------- 信任条 ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.strip li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--orange);
  flex-shrink: 0;
}

/* ---------- 通用分区 ---------- */
.section {
  padding: clamp(72px, 11vw, 148px) 0;
}
.section.tight {
  padding: clamp(56px, 7vw, 96px) 0;
}
.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 68px);
}
.h2 {
  font-size: clamp(27px, 3.4vw, 46px);
}
.h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.32;
  margin: 0;
  text-wrap: balance;
}

/* ---------- 双栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 88px);
  align-items: center;
}
.split.flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
}
.split.flip .split-text {
  order: 2;
}
.split-text p {
  color: var(--muted);
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.9;
  max-width: 44ch;
}
.split-text ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.split-text li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.split-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--orange);
}
@media (max-width: 860px) {
  .split,
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .split.flip .split-text {
    order: 0;
  }
}

/* ---------- 痛点对比 ---------- */
.pain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
  align-items: stretch;
}
.pain-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}
.term-stack {
  position: relative;
  height: 250px;
}
.term {
  position: absolute;
  width: 74%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10.5px;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.8);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  letter-spacing: 0.06em;
}
.term-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.term-body {
  padding: 12px 12px 16px;
  color: var(--muted);
  line-height: 1.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-body .p {
  color: var(--orange);
}
.term:nth-child(1) {
  left: 0;
  top: 0;
  z-index: 4;
}
.term:nth-child(2) {
  left: 9%;
  top: 60px;
  z-index: 3;
}
.term:nth-child(3) {
  left: 18%;
  top: 120px;
  z-index: 2;
}
.term:nth-child(4) {
  left: 27%;
  top: 180px;
  z-index: 1;
}
.pain-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.one-ui {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 13px;
  height: 250px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.one-ui .tb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.one-ui .tb .dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--orange);
}
.thread-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 2px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface);
}
.thread-row .st {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.thread-row .st.idle {
  background: var(--line-strong);
}
.thread-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  margin-left: auto;
  letter-spacing: 0.04em;
}
.pain-close {
  grid-column: 1 / -1;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--fg);
}
@media (max-width: 860px) {
  .pain {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .pain-vs {
    display: none;
  }
  .term-stack {
    height: 230px;
  }
}

/* ---------- 智能体网格 ---------- */
.agents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.agent {
  background: var(--bg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color 0.25s;
}
.agent:hover {
  background: var(--surface);
}
.agent .nm {
  font-size: 14px;
  letter-spacing: 0.01em;
}
.agent .fg {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.switch-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow);
}
.switch-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.switch-card .row:last-child {
  border-bottom: 0;
}
.pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  white-space: nowrap;
}
.pill.on {
  border-color: var(--orange);
  color: var(--accent-text);
}
.pill.solid {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* ---------- 工作区 ---------- */
.ws {
  display: grid;
  gap: 9px;
}
.ws-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
  transition: border-color 0.25s, background-color 0.25s;
}
.ws-row:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.ws-row .t {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ws-row .st {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.ws-row .t span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-row .t b {
  font-weight: 400;
  color: var(--fg);
}
.branch {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--accent-text);
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--orange) 42%, transparent);
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- 三端 ---------- */
.surfaces {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: end;
}
.device {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 9px;
  box-shadow: var(--shadow);
}
.device .screen {
  background: var(--bg);
  border-radius: 1px;
  padding: 13px;
  height: 100%;
}
.device.phone {
  max-width: 220px;
  justify-self: end;
  border-radius: 22px;
}
.device.phone .screen {
  border-radius: 14px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.mini-msg {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 2px;
  background: var(--surface);
}
.mini-msg.me {
  background: var(--surface-2);
  margin-left: 14%;
}
.approve {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 10px 11px;
  border: 1px solid var(--orange);
  color: var(--accent-text);
  border-radius: 2px;
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .surfaces {
    grid-template-columns: 1fr;
  }
  .device.phone {
    max-width: none;
    justify-self: stretch;
  }
  .device.phone .screen {
    min-height: 0;
  }
}

/* ---------- 状态机 ---------- */
.states {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .states {
  --muted: rgba(245, 240, 232, 0.62);
  --faint: rgba(245, 240, 232, 0.38);
  --line: rgba(245, 240, 232, 0.14);
  --line-strong: rgba(245, 240, 232, 0.26);
  --surface: rgba(245, 240, 232, 0.045);
  --surface-2: rgba(245, 240, 232, 0.075);
  background: var(--ink);
  color: var(--paper);
}
.states {
  --accent-text: var(--orange);
}
.states .eyebrow {
  color: rgba(245, 240, 232, 0.62);
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2.4vw, 40px);
  margin-top: 8px;
}
.state {
  text-align: center;
  position: relative;
}
.state img {
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 0 auto 6px;
  transition: transform 0.7s var(--ease);
}
.state:hover img {
  transform: translateY(-6px);
}
.state .nm {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(15px, 1.5vw, 19px);
  margin: 0 0 4px;
}
.state .desc {
  font-size: 12.5px;
  color: rgba(245, 240, 232, 0.62);
  margin: 0;
  line-height: 1.6;
}
.state .bar {
  height: 1px;
  background: rgba(245, 240, 232, 0.16);
  margin: 16px 0 14px;
  position: relative;
  overflow: hidden;
}
.state .bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--orange);
  transition: width 1.4s var(--ease);
}
.state.in .bar::after {
  width: 100%;
}
.state:nth-child(2).in .bar::after {
  transition-delay: 0.14s;
}
.state:nth-child(3).in .bar::after {
  transition-delay: 0.28s;
}
.state:nth-child(4).in .bar::after {
  transition-delay: 0.42s;
}
.states-foot {
  margin-top: clamp(38px, 5vw, 62px);
  padding-top: 26px;
  border-top: 1px solid rgba(245, 240, 232, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(16px, 1.6vw, 21px);
}
.states-foot span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.42);
}
@media (max-width: 720px) {
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 16px;
  }
}

/* ---------- 子智能体 ---------- */
.trace {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 11.5px;
}
.trace .prompt {
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--fg);
  background: var(--surface);
  line-height: 1.6;
  margin-bottom: 18px;
}
.trace .meta {
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.trace .sub {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.trace .sub .n {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}
.trace .sub .n i {
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.trace .sub .ms {
  color: var(--faint);
}
.trace .done {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--accent-text);
  letter-spacing: 0.06em;
}

/* ---------- 安全 ---------- */
.secure {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow);
}
.chain {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
}
.node {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 13px 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.6;
}
.node b {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--fg);
  letter-spacing: 0;
  margin-bottom: 3px;
}
.link-line {
  flex: 0 0 auto;
  width: clamp(22px, 5vw, 64px);
  height: 1px;
  background: var(--orange);
  position: relative;
}
.link-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.toggles {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.toggle-row {
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.toggle-row .sw {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  position: relative;
  flex-shrink: 0;
}
.toggle-row .sw::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--faint);
}
.toggle-row .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 工具箱 bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.cell {
  background: var(--bg);
  padding: clamp(18px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  transition: background-color 0.25s;
}
.cell:hover {
  background: var(--surface);
}
.cell.wide {
  grid-column: span 2;
}
.cell.c8 {
  grid-column: span 4;
}
@media (max-width: 900px) {
  .cell.c8 {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .cell.c8 {
    grid-column: span 1;
  }
}
.cell.tall {
  grid-row: span 2;
}
.cell h5 {
  font-size: 14.5px;
  font-weight: 400;
  margin: 0;
  color: var(--fg);
}
.cell p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.cell .demo {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.85;
  color: var(--faint);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  white-space: pre;
  overflow: hidden;
}
.cell .demo .a {
  color: var(--orange);
}
@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .cell.wide,
  .cell.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}
@media (max-width: 560px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento {
    grid-template-columns: 1fr;
  }
}

/* ---------- 对比表 ---------- */
.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cmp {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.cmp th,
.cmp td {
  text-align: left;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.cmp thead th.us {
  color: var(--accent-text);
}
.cmp tbody th {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.cmp td {
  color: var(--muted);
}
.cmp td.us {
  color: var(--fg);
  background: var(--surface);
  border-bottom-color: var(--line-strong);
}
.cmp tbody tr:last-child td,
.cmp tbody tr:last-child th {
  border-bottom: 0;
}
.no {
  color: var(--faint);
}

/* ---------- 事实 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.fact {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fact dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.fact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.fact dd b {
  font-weight: 400;
  color: var(--fg);
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 5px;
}

/* ---------- 快速开始 ---------- */
.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 30px);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.step > div {
  min-width: 0;
}
.step .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  padding-top: 3px;
}
.step h5 {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 12px;
}
.step pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.step pre .c {
  color: var(--faint);
}
.step pre .d {
  color: var(--orange);
}
.step p {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.7;
}

/* ---------- 收尾 ---------- */
.final {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 5vw, 70px);
  position: relative;
  overflow: clip;
}
.final h2 {
  font-size: clamp(30px, 4.6vw, 62px);
  max-width: 20ch;
}
.final .en {
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 26px 0 0;
}
.final-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.final-nono {
  position: absolute;
  right: clamp(12px, 6vw, 120px);
  bottom: clamp(20px, 4vw, 56px);
  width: clamp(96px, 12vw, 168px);
  pointer-events: none;
  opacity: 0.96;
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  overflow: clip;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 60px;
  justify-content: space-between;
  padding-bottom: 40px;
}
.foot-brand {
  max-width: 320px;
}
.foot-brand p {
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.8;
  margin: 14px 0 0;
}
.foot-cols {
  display: flex;
  gap: clamp(32px, 6vw, 90px);
  flex-wrap: wrap;
}
.foot-col h6 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.foot-col a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--accent-text);
}
.foot-legal {
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.giant {
  font-family: var(--latin);
  font-size: clamp(120px, 30vw, 420px);
  line-height: 0.72;
  letter-spacing: -0.03em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  padding-top: clamp(30px, 5vw, 64px);
  margin-bottom: -0.06em;
  user-select: none;
  overflow: hidden;
}

/* ---------- 杂项 ---------- */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 9px 16px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 窄屏把对比表折成卡片 */
@media (max-width: 720px) {
  .cmp-wrap {
    overflow: visible;
  }
  .cmp {
    min-width: 0;
    display: block;
  }
  .cmp thead {
    display: none;
  }
  .cmp tbody {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
  }
  .cmp tr {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg);
    padding: 16px 16px 14px;
    gap: 8px;
  }
  .cmp tbody th {
    padding: 0;
    border: 0;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: var(--faint);
  }
  .cmp td {
    padding: 0;
    border: 0;
    display: flex;
    gap: 8px;
    font-size: 13px;
  }
  .cmp td::before {
    content: attr(data-col);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--faint);
    min-width: 5.4em;
    padding-top: 2px;
  }
  .cmp td.us {
    background: none;
    border: 0;
    color: var(--fg);
  }
  .cmp td.us::before {
    color: var(--orange);
  }
  .cmp td:empty {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    gap: 16px;
  }
  .cmd {
    width: 100%;
    justify-content: space-between;
    font-size: 12.5px;
  }
  .final-nono {
    display: none;
  }
}

/* ---------- 响应式收尾（放在最后，确保覆盖上面的基础规则） ---------- */
@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .fact dd b {
    font-size: 16px;
  }
}
