/* XFuTeam 官网 — 设计令牌 */

/* 字体自托管（Geist 1.3.1，SIL OFL 1.1，授权见 geist-OFL.txt），不再请求 Google Fonts；
   中文用系统字体。改字体文件时连同文件名里的版本号一起改，/assets/ 是一年长缓存 */
@font-face {
  font-family: 'Geist';
  src: url('geist-sans-1.3.1.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('geist-mono-1.3.1.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07090D;
  --panel: #0A0E14;
  --surface: #0C1016;
  --surface-2: #111722;
  --line: #1C2430;
  --line-2: #2A3442;
  --text: #E8EDF3;
  --text-strong: #F2F5F8;
  --text-2: #C9D2DD;
  --muted: #8D99AA;
  --dim: #6B7687;
  --faint: #4A5463;
  --danger: #FF8A7A;

  /* AI 角色主色 */
  --accent: #33F0C4;
  --accent-soft: rgba(51, 240, 196, 0.12);
  --accent-tint: rgba(51, 240, 196, 0.08);
  --accent-ring: rgba(51, 240, 196, 0.18);
  --accent-line: rgba(51, 240, 196, 0.4);
  --accent-glow: rgba(51, 240, 196, 0.35);
  --accent-glow-strong: rgba(51, 240, 196, 0.55);

  /* 人工节点色 */
  --human: #FFB23E;
  --human-soft: rgba(255, 178, 62, 0.12);
  --human-tint: rgba(255, 178, 62, 0.08);
  --human-ring: rgba(255, 178, 62, 0.18);
  --human-line: rgba(255, 178, 62, 0.4);
  --human-glow-strong: rgba(255, 178, 62, 0.55);

  --font-sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--text-2); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); }
[hidden] { display: none !important; }
.visually-hidden {
  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 {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { cursor: progress; opacity: 0.7; filter: none; }
.btn--lg { min-height: 50px; padding: 0 24px; border-radius: 12px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn--primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn--glow { box-shadow: 0 0 32px var(--accent-glow); }
.btn--ghost { border-color: var(--line-2); background: rgba(12, 16, 22, 0.8); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); color: var(--text-strong); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding-block: 10px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--text-strong); text-decoration: none;
}
.brand:hover { color: var(--text-strong); }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand__x { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 14px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-decoration: none;
}
.lang-switch a:hover { color: var(--text-strong); }
.lang-switch a[aria-current="page"] { background: var(--surface-2); color: var(--text-strong); }

/* ---------- 背景装饰 ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 100%);
}
.grid-bg--center {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 100%);
}
.glow {
  position: absolute; left: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
}

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .glow { top: 440px; width: 1000px; height: 560px; transform: translateX(-50%); opacity: 0.55; }
.hero__inner {
  position: relative; text-align: center;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 104px);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(12, 16, 22, 0.8);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.hero__title {
  margin-top: 28px;
  font-size: clamp(48px, 8vw, 104px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.04em; color: var(--text-strong);
}
.hero__title em { font-style: normal; color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }
.hero__lead { margin: 28px auto 0; max-width: 34em; font-size: 18px; line-height: 1.75; color: var(--muted); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 控制台演示 ---------- */
.console {
  position: relative; margin: 64px auto 0; max-width: 1120px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -30px var(--accent-glow);
}
.console__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.console__bar .sep { color: var(--faint); }
.console__bar strong { font-weight: 400; color: var(--text); }
.console__meta { display: inline-flex; align-items: center; gap: 16px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.6s ease-in-out infinite;
}
.console__body { display: flex; flex-wrap: wrap; }
.console__main { flex: 1 1 600px; min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.ticket__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ticket__id {
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.ticket__scope { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ticket__title { margin-top: 12px; font-size: 22px; font-weight: 700; color: var(--text-strong); }
.ticket__meta { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--muted); }

.pipeline { margin-top: 28px; overflow-x: auto; }
.pipeline__track { display: flex; min-width: 560px; margin: 0; padding: 0; list-style: none; }
.node {
  --c: var(--accent); --c-soft: var(--accent-soft); --c-ring: var(--accent-ring); --c-glow: var(--accent-glow-strong);
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.node--human { --c: var(--human); --c-soft: var(--human-soft); --c-ring: var(--human-ring); --c-glow: var(--human-glow-strong); }
.node__row { display: flex; align-items: center; width: 100%; }
.seg { flex: 1; height: 2px; background: var(--line); }
.seg--none { background: transparent; }
.seg--done { background: var(--accent); }
.seg--flow {
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
  background-size: 12px 2px;
  animation: flow 0.8s linear infinite;
}
.node__box {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-2); border-radius: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--dim);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.node--done .node__box { border-color: var(--c); background: var(--c-soft); color: var(--c); }
.node--on .node__box {
  border-color: var(--c); background: var(--c); color: var(--bg);
  box-shadow: 0 0 0 4px var(--c-ring), 0 0 28px var(--c-glow);
}
.node__label { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.node--done .node__label, .node--on .node__label { color: var(--text-2); }
.node__status { font-size: 11px; color: var(--dim); }
.node--on .node__status { color: var(--c); animation: pulse 1.6s ease-in-out infinite; }

.metrics { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.metric { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.metric dt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.metric dd { margin-top: 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
.metric--accent dd { color: var(--accent); }

.console__log { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.log__head {
  display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.log__body { flex: 1; min-height: 300px; padding: 14px 18px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; }
.log { display: flex; flex-direction: column; gap: 7px; padding: 0; list-style: none; }
.log li { display: flex; gap: 10px; animation: fade-in 0.35s ease-out; }
.log li.is-pending { visibility: hidden; animation: none; }
.log li.is-last .log__msg::after { content: " ▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.log__time { flex: none; color: var(--dim); }
.log__role { flex: none; width: 80px; color: var(--accent); }
.log__role--human { color: var(--human); }
.log__role--sys { color: var(--muted); }
.log__msg { min-width: 0; color: var(--text-2); }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }

/* ---------- 关键数字 ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fact { padding: 40px 28px 40px 0; }
.fact__head { display: flex; align-items: baseline; gap: 10px; }
.fact__num { font-family: var(--font-mono); font-size: 56px; font-weight: 600; line-height: 1; color: var(--text-strong); }
.fact__num--accent { color: var(--accent); text-shadow: 0 0 28px var(--accent-glow); }
.fact__unit { font-size: 16px; font-weight: 600; }
.fact p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- 集成条 ---------- */
.integrations { border-bottom: 1px solid var(--line); background: var(--panel); }
.integrations__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; padding-block: 20px; }
.integrations__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--dim); }
.integrations ul {
  display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--muted);
}

/* ---------- 通用区块 ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.section--alt { background: var(--panel); }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }
.kicker--danger { color: var(--danger); }
.section__title {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text-strong);
}
.section__lead { margin-top: 18px; max-width: 36em; font-size: 17px; line-height: 1.75; color: var(--muted); }

/* ---------- 角色契约 ---------- */
.tabs { margin-top: 44px; display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab {
  --c: var(--accent); --c-tint: var(--accent-tint);
  flex: 1 1 130px; min-width: 0; min-height: 68px;
  margin: 0 0 -1px; padding: 14px 14px 12px;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--muted); font: inherit; text-align: left; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab--human { --c: var(--human); --c-tint: var(--human-tint); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { border-bottom-color: var(--c); background: var(--c-tint); color: var(--text-strong); }
.tab__no { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.tab__no::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.tab[aria-selected="true"] .tab__no { color: var(--c); }
.tab__name { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; }

.contract {
  --c: var(--accent); --c-soft: var(--accent-soft); --c-line: var(--accent-line);
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 28px;
}
.contract--human { --c: var(--human); --c-soft: var(--human-soft); --c-line: var(--human-line); }
.contract__file { flex: 3 1 560px; min-width: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); overflow: hidden; }
.file__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.badge { padding: 2px 8px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-soft); color: var(--c); font-weight: 600; }
.file__lines { padding: 10px 0 14px; font-size: 14px; }
.line { display: grid; grid-template-columns: 32px 88px minmax(0, 1fr); gap: 0 12px; padding: 9px 20px; }
.line__no { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.line__key { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.line__val { line-height: 1.7; color: var(--text); }
.line__val--state { font-family: var(--font-mono); font-size: 13px; color: var(--c); }
.line__val--never { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tool {
  padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--text-2);
}
.contract__aside { flex: 2 1 300px; min-width: 0; padding-top: 4px; }
.contract__name { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: var(--text-strong); }
.contract__role { margin-top: 14px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.contract__exec {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.8; color: var(--muted);
}

/* ---------- 能力卡片 ---------- */
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--line-2); }
.card__body { padding: 20px 22px 24px; }
.card__tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.card__title { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--text-strong); }
.card__text { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }

.viz {
  height: 150px; padding: 18px; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--bg);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.viz--stack { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-block: 14px; }
.viz--board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.viz-col { display: flex; flex-direction: column; gap: 6px; }
.viz-col__head { height: 5px; width: 55%; border-radius: 3px; background: var(--line-2); }
.viz-ticket { height: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }
.viz-ticket--hot { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 16px var(--accent-soft); }
.viz-row { display: flex; justify-content: space-between; gap: 8px; }
.viz-row--rule { padding: 8px 0; border-bottom: 1px solid var(--line); }
.viz-row--rule:last-child { border-bottom: 0; }
.viz-row strong { font-weight: 400; color: var(--text); }
.viz-name { display: flex; align-items: center; gap: 8px; }
.viz-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.viz-dot--on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.viz-secret {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2);
}
.viz-secret strong { font-weight: 400; color: var(--text); letter-spacing: 2px; }
.viz-secret em { font-style: normal; color: var(--accent); }
.meter { margin-top: 6px; height: 4px; border-radius: 2px; background: var(--line); }
.meter__fill { height: 4px; border-radius: 2px; background: var(--accent); }
.meter__fill--warn { background: var(--human); box-shadow: 0 0 8px var(--human); }
.warn { color: var(--human); }
.viz--center { display: flex; align-items: center; }
.approval { flex: 1; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.approval__title { font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--text); }
.approval__sub { margin-top: 4px; }
.approval__actions { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; font-family: var(--font-sans); }
.approval__actions span { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 6px; }
.approval__actions .ok { border-color: var(--accent); background: var(--accent); color: var(--bg); font-weight: 700; }
.viz--code { padding-block: 16px; line-height: 1.75; white-space: pre; }
.viz--code .k { color: var(--accent); }
.viz--code .s { color: var(--text); }
.viz--chart { display: flex; flex-direction: column; padding-bottom: 12px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line-2); }
.bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--line-2); }
.bars .hi { background: var(--accent); }
.bars .lo { background: var(--human); box-shadow: 0 0 14px var(--human); }
.bars-labels { margin-top: 8px; display: flex; gap: 10px; font-size: 9px; color: var(--dim); }
.bars-labels span { flex: 1; text-align: center; }
.viz--chips { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; }
.viz--chips span { padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); }
.viz--chips .on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

/* ---------- 安全红线 ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.rules { margin-top: 40px; padding: 0; list-style: none; }
.rule {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule__no { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.rule h3 { font-size: 18px; font-weight: 700; color: var(--text-strong); }
.rule p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.terminal-wrap { align-self: center; }
.terminal {
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.terminal__bar {
  display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.terminal__body {
  padding: 20px 22px 24px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.9; white-space: nowrap;
}
.terminal__body .cmd { color: var(--text-2); }
.terminal__body .cmd:not(:first-child) { margin-top: 12px; }
.terminal__body .prompt { color: var(--faint); }
.terminal__body .deny { color: var(--danger); }
.terminal__body .ok { color: var(--accent); }

/* ---------- 多端 ---------- */
.devices { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.device-viz { height: 220px; background: var(--bg); overflow: hidden; }
.device-viz--web { display: flex; align-items: flex-end; padding: 28px 24px 0; }
.browser {
  flex: 1; height: 100%; display: flex; overflow: hidden;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface);
}
.browser__side {
  flex: none; width: 40px; padding-top: 14px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.browser__side span { width: 16px; height: 4px; border-radius: 2px; background: var(--line-2); }
.browser__side span:first-child { background: var(--accent); }
.browser__main { flex: 1; min-width: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mini-track { display: flex; align-items: center; }
.mini-track i { flex: 1; height: 2px; background: var(--accent); }
.mini-track i.off { background: var(--line-2); }
.mini-track b { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.mini-track b.human { background: var(--human); }
.mini-track b.on { box-shadow: 0 0 10px var(--accent); }
.mini-track b.off { background: transparent; border: 1px solid var(--line-2); }
.browser__row { height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.device-viz--phone { display: flex; justify-content: center; align-items: flex-end; padding-top: 28px; }
.phone {
  width: 150px; height: 100%; padding: 16px 12px 0;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0; background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
}
.phone__title { height: 5px; width: 45%; border-radius: 3px; background: var(--text); }
.phone__row {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2);
}
.phone__row::after { content: ""; flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }
.phone__row .viz-dot { flex: none; width: 8px; height: 8px; }
.phone__row .viz-dot--human { background: var(--human); }
.phone__btn { margin-top: 2px; height: 26px; border-radius: 8px; background: var(--accent); }
.device-viz--island { display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.island__edge { width: 100%; height: 22px; border-bottom: 1px solid var(--line); }
.island {
  margin-top: 26px; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 20px; border: 1px solid var(--line-2); border-radius: 24px; background: #000;
  box-shadow: 0 0 40px -10px var(--accent-glow);
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
}
.island__title { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.island__dots { display: flex; align-items: center; }
.island__dots b { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.island__dots b.done { background: var(--accent); }
.island__dots b.human { background: var(--human); }
.island__dots b.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.island__dots i { width: 16px; height: 2px; background: var(--line-2); }
.island__dots i.done { background: var(--accent); }

/* ---------- 行动区 ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 140px); border-top: 1px solid var(--line); }
.cta .glow { top: 50%; width: 820px; height: 420px; transform: translate(-50%, -50%); opacity: 0.5; }
.cta__inner { position: relative; text-align: center; }
.cta__prompt { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.cta__prompt .prompt { color: var(--faint); }
.cta__prompt em { font-style: normal; color: var(--accent); }
.cta__title {
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 76px); line-height: 1.06; font-weight: 800;
  letter-spacing: -0.04em; color: var(--text-strong);
}
.cta__lead { margin: 20px auto 0; max-width: 32em; font-size: 17px; line-height: 1.75; color: var(--muted); }

/* ---------- 试用申请表单 ---------- */
.apply {
  margin: 44px auto 0; max-width: 680px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(10, 14, 20, 0.92);
  box-shadow: 0 0 80px -30px var(--accent-glow);
  text-align: left;
}
.apply__bar {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
}
.apply__tag { color: var(--accent); }
.apply__form, .apply__done { padding: clamp(20px, 4vw, 32px); }
.apply__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { padding: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--text-2); }
.field__req { color: var(--accent); }
.field__opt { margin-left: 4px; color: var(--faint); }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg);
  color: var(--text); font: inherit; font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-ring); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 138, 122, 0.2); }
.sizes legend { margin-bottom: 8px; }
.sizes__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes__opts label { position: relative; }
.sizes__opts input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sizes__opts span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sizes__opts label:hover span { border-color: var(--dim); }
.sizes__opts input:checked + span { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.sizes__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.apply__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.apply__privacy { flex: 1 1 220px; font-size: 13px; line-height: 1.6; color: var(--dim); }
.apply__privacy a { color: var(--muted); }
.apply__privacy a:hover { color: var(--accent); }
.apply__status { font-size: 14px; color: var(--muted); }
.apply__status:not(:empty) { margin-top: 16px; }
.apply__status.is-error { color: var(--danger); }
.apply__done { text-align: center; padding-block: clamp(36px, 6vw, 56px); }
.apply__done:focus { outline: none; }
.apply__check {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 700;
  box-shadow: 0 0 24px var(--accent-glow);
}
.apply__done h3 { margin-top: 18px; font-size: 22px; color: var(--text-strong); }
.apply__done p:last-child { margin-top: 8px; color: var(--muted); }

/* ---------- 隐私政策等法律页面 ---------- */
.legal { padding-block: clamp(56px, 8vw, 104px); }
.legal__inner { max-width: 800px; }
.legal__title {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.15; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text-strong);
}
.legal__updated { margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.legal h2 { margin-top: 44px; font-size: 20px; line-height: 1.4; color: var(--text-strong); }
.legal p, .legal li { line-height: 1.85; color: var(--text-2); }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; padding-left: 1.2em; }
.legal li + li { margin-top: 10px; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); }
.legal code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }

/* ---------- 页脚 ---------- */
.site-footer { padding-block: 56px 36px; border-top: 1px solid var(--line); background: var(--panel); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { flex: 1 1 260px; min-width: 0; }
.footer__brand .brand { min-height: 0; }
.footer__brand .brand__name { font-size: 17px; }
.footer__brand p { margin-top: 14px; max-width: 22em; font-size: 14px; line-height: 1.75; color: var(--muted); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 14px; }
.footer__col h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; color: var(--dim); }
.footer__col ul { margin-top: 8px; padding: 0; list-style: none; }
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
}

/* ---------- 动效 ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes flow { from { background-position: 0 0; } to { background-position: 12px 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .site-header { position: relative; }
  .apply__grid { grid-template-columns: minmax(0, 1fr); }
  .apply__foot .btn { width: 100%; justify-content: center; }
  html { scroll-padding-top: 0; }
  .console__main { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact { padding-right: 0; }
}
@media (max-width: 480px) {
  .line { grid-template-columns: 28px minmax(0, 1fr); }
  .line__val { grid-column: 2; }
  .nav { gap: 0 20px; }
}
