/* ============================================================================
   爱词元 · token.love — 词元云计算 · 统一 AI 智能网关
   Control-plane product site. Restrained graphite system, red as state/action,
   champagne as the quiet second accent. Pure static, no build, no deps.
   ============================================================================ */

:root {
  color-scheme: dark;

  /* —— Warm ink black base (墨色: r ≥ g ≥ b, lacquer not laptop) —— */
  --bg:        #0c0b0a;
  --bg-2:      #0e0d0b;
  --surface:   #131110;
  --surface-2: #161412;
  --surface-3: #1d1a16;
  --panel:     rgba(22, 20, 17, 0.72);
  --panel-2:   rgba(18, 16, 14, 0.78);

  --ink:    #f5f3ef;
  --ink-2:  #c9c5be;
  --muted:  #918d85;
  --muted-2:#635f58;

  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-soft:   rgba(255, 255, 255, 0.05);

  /* —— Seal vermillion: precision / action / state only —— */
  --accent:        #d8453c;
  --accent-bright: #e85b50;
  --accent-deep:   #c4302f;
  --accent-soft:   rgba(216, 69, 60, 0.10);
  --accent-line:   rgba(216, 69, 60, 0.34);

  /* —— Champagne / gold: quiet premium accent —— */
  --gold:      #cda86a;
  --gold-soft: rgba(205, 168, 106, 0.12);
  --gold-line: rgba(205, 168, 106, 0.30);

  /* —— Status: jade green (calm health), amber, red only for true alerts —— */
  --ok:    #35a06d;
  --ok-soft: rgba(53, 160, 109, 0.14);
  --warn:  #d6a23a;
  --warn-soft: rgba(214, 162, 58, 0.14);
  --err:   #d8453c;

  --radius:    4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --pill: 999px;

  --content: 1200px;
  --narrow:  900px;

  --header-bg: rgba(12, 11, 10, 0.72);
  --btn-ghost-bg: rgba(255, 255, 255, 0.03);
  --btn-ghost-bg-hover: rgba(255, 255, 255, 0.07);

  /* Fluid type — eased slope (px + vw) so tablets don't undershoot.
     zh metrics are the default; html[lang="en"] swaps in Latin leading/tracking. */
  --t-display: clamp(40px, 31px + 2.8vw, 66px);
  --t-h2:      clamp(27px, 22px + 1.5vw, 41px);
  --t-h3:      clamp(18px, 16.5px + 0.35vw, 21px);
  --t-lede:    clamp(16.5px, 15.4px + 0.3vw, 19px);
  --t-body:    16px;
  --t-sm:      14px;
  --t-xs:      12.5px;
  --t-mono:    12px;
  --t-micro:   11.5px; /* smallest size carrying CJK text */
  --t-nano:    10.5px; /* latin-only mono accents */

  /* —— CJK-first vertical rhythm & tracking (serif display layer) —— */
  --lh-display: 1.22;
  --lh-h2:      1.3;
  --lh-lede:    1.72;
  --lh-body:    1.78;
  --lh-sm:      1.7;
  --ls-display: 0.02em;
  --ls-h2:      0.02em;
  --ls-h3:      0.015em;
  --ls-body:    0.012em;

  --font-sans: "Inter", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Source Serif 4", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 28px -24px rgba(0, 0, 0, 0.6);
  --shadow-pop:  0 20px 56px -32px rgba(0, 0, 0, 0.85);
}

/* ============================================================================
   Light theme — warm off-white, layered with neutral greys + hairlines
   ============================================================================ */
[data-theme="light"] {
  color-scheme: light;

  --bg:        #f8f6f0;
  --bg-2:      #f1ede4;
  --surface:   #ffffff;
  --surface-2: #f8f6f0;
  --surface-3: #edeae2;
  --panel:     rgba(255, 255, 255, 0.82);
  --panel-2:   rgba(255, 255, 255, 0.9);

  --ink:    #1a1814;
  --ink-2:  #45403a;
  --muted:  #66615a;
  --muted-2:#8b857d;

  --line:        rgba(26, 24, 20, 0.10);
  --line-strong: rgba(26, 24, 20, 0.17);
  --line-soft:   rgba(26, 24, 20, 0.06);

  --accent:        #cb2f2c;
  --accent-bright: #b8241f;
  --accent-deep:   #a51f1b;
  --accent-soft:   rgba(203, 47, 44, 0.08);
  --accent-line:   rgba(203, 47, 44, 0.28);

  --gold:      #846227;
  --gold-soft: rgba(132, 98, 39, 0.12);
  --gold-line: rgba(132, 98, 39, 0.32);

  --ok:    #1c8254;
  --ok-soft: rgba(28, 130, 84, 0.12);
  --warn:  #946514;
  --warn-soft: rgba(148, 101, 20, 0.13);
  --err:   #cb2f2c;

  --header-bg: rgba(248, 246, 240, 0.85);
  --btn-ghost-bg: rgba(18, 20, 24, 0.03);
  --btn-ghost-bg-hover: rgba(18, 20, 24, 0.06);

  --shadow-sm:   0 1px 2px rgba(20, 22, 28, 0.08);
  --shadow-card: 0 10px 24px -22px rgba(20, 22, 28, 0.25);
  --shadow-pop:  0 20px 48px -30px rgba(20, 22, 28, 0.25);
}

/* ============================================================================
   Latin metrics — tighter leading, negative display tracking when lang=en
   ============================================================================ */
html[lang="en"] {
  --lh-display: 1.08;
  --lh-h2:      1.16;
  --lh-lede:    1.6;
  --lh-body:    1.65;
  --lh-sm:      1.55;
  --ls-display: -0.012em;
  --ls-h2:      -0.008em;
  --ls-h3:      -0.004em;
  --ls-body:    0;
}

/* ============================================================================
   Base
   ============================================================================ */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
  overflow-x: clip;
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-feature-settings: "calt" 1, "case" 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 { letter-spacing: var(--ls-h3); font-weight: 700; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-weight: 900; }
.scene h4 { font-family: var(--font-display); }
.gov-item h4, .step h4 { font-weight: 600; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
/* CJK line breaking: keep punctuation off line heads, break anywhere it must */
html:not([lang="en"]) p, html:not([lang="en"]) li { line-break: strict; }
.font-mono, .module-no, .module-meta span { font-feature-settings: "tnum" 1, "calt" 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* themed surfaces transition smoothly on theme switch */
.site-header, .module, .panel, .scene, .prov-eco, .track, .console,
.cta-band, .site-footer, .proofbar, .seg, .btn-ghost, .step, .chip {
  transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}

/* ---------- Background: faint top grid + static ink wash + film grain ---------- */
.bg-stage { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% -4%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% -4%, #000 30%, transparent 78%);
}
/* static vermillion/gold wash at the very top — no animation, no parallax */
.bg-ink {
  position: absolute; inset: 0;
  background:
    radial-gradient(56% 38% at 50% -6%, rgba(216, 69, 60, 0.06), transparent 70%),
    radial-gradient(40% 30% at 86% 4%, rgba(205, 168, 106, 0.04), transparent 70%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(18, 20, 24, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 20, 24, 0.03) 1px, transparent 1px);
}
[data-theme="light"] .bg-ink {
  background:
    radial-gradient(56% 38% at 50% -6%, rgba(203, 47, 44, 0.05), transparent 70%),
    radial-gradient(40% 30% at 86% 4%, rgba(132, 98, 39, 0.035), transparent 70%);
}
[data-theme="light"] .bg-noise { opacity: 0.35; mix-blend-mode: multiply; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - 40px, var(--content)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.section-sep { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Eyebrow — chapter numeral chip + plain kicker (editorial, no mono/mixed-script) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--ink-2); margin: 0 0 18px;
}
.eyebrow-no {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--accent-line); border-radius: 2px; color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0;
}
html[lang="en"] .eyebrow { letter-spacing: 0.14em; font-size: 12px; text-transform: uppercase; }
html[lang="en"] .eyebrow-no { font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; }

.section-head { max-width: 680px; margin: 0 0 clamp(40px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: var(--t-lede); line-height: var(--lh-lede); }

.accent { color: var(--accent); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: var(--t-sm);
  border: 1px solid transparent; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn .arr { transition: transform 0.22s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary {
  background: var(--accent-deep); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent); box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--btn-ghost-bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--btn-ghost-bg-hover); border-color: var(--line-strong); }
.btn-sm { padding: 9px 15px; font-size: 13px; }
.btn:focus-visible, a:focus-visible, .seg-btn:focus-visible, .nav-links a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* ---------- Language / theme segmented control ---------- */
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--pill);
  background: var(--btn-ghost-bg); border: 1px solid var(--line); }
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted);
  background: transparent; border: 0; border-radius: var(--pill); padding: 6px 10px; line-height: 1;
  transition: color 0.18s, background 0.18s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn .seg-sep { opacity: 0.4; margin: 0 1px; }
.seg-icon { padding: 6px 8px; }
.seg-icon svg { width: 15px; height: 15px; }
.seg-icon .ic-sun { display: none; }
[data-theme="light"] .seg-icon .ic-moon { display: none; }
[data-theme="light"] .seg-icon .ic-sun { display: block; }
html:not([lang="en"]) .seg-zh { color: var(--ink); }
html[lang="en"] .seg-en { color: var(--ink); }

/* ============================================================================
   Header
   ============================================================================ */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.site-header.scrolled {
  background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line);
}
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--sp, 0)); transform-origin: 0 50%;
  background: var(--accent);
  opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.site-header.scrolled .scroll-progress { opacity: 1; }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  position: relative; width: 82px; height: 42px; flex: none;
  color: var(--ink);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-copy strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.15; }
.brand-copy small { display: none; }
.nav-links { display: flex; gap: 28px; margin-left: 14px; margin-right: auto; }
.nav-links a { font-size: var(--t-sm); color: var(--ink-2); transition: color 0.18s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-menu-btn { display: none; }

/* ============================================================================
   Hero
   ============================================================================ */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 4vw, 60px); align-items: center; }

/* Hero kicker — plain editorial line with a seal-red square, no pill, no pulse */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--ink-2); margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 1px; background: var(--accent); flex: none; }

.hero h1 { font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); margin: 0 0 18px; font-weight: 900; }
.hero h1 .accent { color: var(--accent); }
/* zh accent「大模型调用」keeps to one unit instead of breaking mid-phrase */
html:not([lang="en"]) .hero h1 .accent { white-space: nowrap; }
.hero-lede { font-size: var(--t-lede); color: var(--ink-2); margin: 0 0 28px; max-width: 544px; line-height: var(--lh-lede); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-metrics { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero-metric { display: flex; flex-direction: column; gap: 3px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.hero-metric b { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.hero-metric span { font-size: var(--t-xs); color: var(--muted); }

/* ============================================================================
   Console cockpit (hero visual + reusable mock UI)
   ============================================================================ */
.console {
  border-radius: var(--radius-lg); background: var(--panel-2); border: 1px solid var(--line-strong);
  overflow: hidden; box-shadow: var(--shadow-pop); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* hero cockpit: flat editorial frame — no tilt, no float, no gradient ring */
.hero-console {
  position: relative;
  border: 1px solid var(--line-strong);
}
.hero-visual { position: relative; }
/* offset gold hairline frame behind the console — a printer's mounting rule */
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 16px -12px -12px 16px;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.console-glyph { width: 24px; height: 18px; border-radius: 5px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.02em; font-weight: 700; display: grid; place-items: center; flex: none; }
.console-project { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 9px; white-space: nowrap; flex: none; }
.console-project svg { width: 12px; height: 12px; color: var(--muted); flex: none; }
.console-env { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--t-micro); color: var(--ok); }
.console-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 1.8s var(--ease) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.console-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 11px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.kpi-l { font-size: var(--t-micro); color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi-v { font-family: var(--font-mono); font-size: 19px; font-weight: 600; margin-top: 5px; color: var(--ink); line-height: 1; }
.kpi-d { font-family: var(--font-mono); font-size: var(--t-nano); margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.kpi-d.up { color: var(--ok); }
.kpi-d.down { color: var(--ok); }

/* Routing panel */
.route-panel { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.route-head { display: flex; align-items: center; gap: 8px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.route-head h4 { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.route-head svg { flex: none; }
.route-policy { margin-left: auto; font-family: var(--font-mono); font-size: var(--t-nano); color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); padding: 3px 9px; white-space: nowrap; }
.route-rows { display: flex; flex-direction: column; }
.route-row { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 10px; padding: 9px 12px; font-size: var(--t-xs); }
.route-row + .route-row { border-top: 1px solid var(--line-soft); }
.route-row .st { width: 7px; height: 7px; border-radius: 50%; }
.route-row .st.ok { background: var(--ok); }
.route-row .st.warn { background: var(--warn); }
.route-row .st.err { background: var(--err); }
.route-row .nm { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; min-width: 0; }
.route-row .nm .tag { font-family: var(--font-mono); font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; white-space: nowrap; flex: none; }
.route-row .bar { width: 64px; height: 5px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
/* bar color = that provider's health, not brand red */
.route-row .bar i {
  display: block; height: 100%; border-radius: 2px; background: var(--ok); width: var(--w, 40%);
  transition: width 0.9s var(--ease);
}
.route-row.is-warn .bar i { background: var(--warn); }
.route-row.is-err .bar i { background: var(--err); }
.route-row .ms { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--muted); min-width: 46px; text-align: right; }
/* active route: red edge marks "current" (brand), bg stays calm neutral */
.route-row.active { background: var(--surface-2); position: relative; }
.route-row.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }

/* Event / failover feed */
.event {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--warn);
}
.event-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; margin-top: 1px; }
.event-ic svg { width: 13px; height: 13px; }
.event-body { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.6; }
.event-body b { color: var(--ink); font-weight: 600; }
.event-body .mono { font-family: var(--font-mono); color: var(--muted); font-size: var(--t-micro); }
.event-body .ok { color: var(--ok); font-weight: 600; }

/* ============================================================================
   Proof strip
   ============================================================================ */
.proofbar { border-block: 1px solid var(--line); background: var(--bg-2); }
.proofbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(26px, 3.4vw, 38px) 0; }
.proof { display: flex; flex-direction: column; gap: 5px; }
.proof-v { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: 0.01em; color: var(--ink); line-height: 1; }
.proof-v .u { font-size: 0.6em; color: var(--muted); margin-left: 2px; }
.proof-k { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
.proof-s { font-size: var(--t-xs); color: var(--muted); }

/* Authorized partner masthead — 文武线 double rule, dignified serif names */
.partnerline { border-top: 3px double var(--line-strong); }
.partnerline .wrap { display: flex; align-items: baseline; gap: 10px 28px; padding: 20px 0 24px; flex-wrap: wrap; }
.pl-label { flex: none; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.pl-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 0; }
.pl-item {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(16px, 1.5vw, 19px); letter-spacing: 0.04em; color: var(--ink-2);
}
/* 间隔号 binds to the preceding name so it never orphans at a line head */
.pl-item:not(:last-child)::after { content: "·"; margin: 0 16px; color: var(--muted-2); font-weight: 400; }

/* ============================================================================
   Product modules
   ============================================================================ */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module {
  position: relative; padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.module:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.module-ic {
  width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink); border: 1px solid var(--line);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.module:hover .module-ic { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.module-ic svg { width: 20px; height: 20px; }
.module-no { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); transition: color 0.28s var(--ease); }
.module:hover .module-no { color: var(--accent); }
.module h3 { font-size: var(--t-h3); letter-spacing: var(--ls-h3); margin: 0 0 7px; }
.module p { margin: 0; color: var(--muted); font-size: var(--t-sm); line-height: var(--lh-sm); }
.module-meta { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.module-meta span { font-family: var(--font-mono); font-size: var(--t-nano); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px 8px; }

/* ============================================================================
   Live interface section (multiple visible console states)
   ============================================================================ */
.iface { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: stretch; }
.iface .console { display: flex; flex-direction: column; }
.iface-side { display: grid; gap: 14px; }

.panel { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-head h4 { font-size: 13px; font-weight: 600; }
.panel-head .panel-pill { margin-left: auto; font-family: var(--font-mono); font-size: var(--t-nano); padding: 3px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--muted); }
.panel-body { padding: 16px; flex: 1; }

/* Observability chart — data is neutral ink, gold marks the peaks; red stays scarce */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 96px; }
.chart span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--muted-2), var(--ink-2)); height: var(--h, 30%); opacity: 0.9; transition: height 0.7s var(--ease); }
.chart span.gold { background: linear-gradient(to top, color-mix(in srgb, var(--gold) 70%, #000), var(--gold)); }
.chart-x { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: var(--t-nano); color: var(--muted-2); }
.legend { display: flex; gap: 16px; margin-top: 14px; }
.legend span { font-size: var(--t-micro); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend i.red { background: var(--ink-2); }
.legend i.gold { background: var(--gold); }

/* Quota rows */
.quota { display: flex; flex-direction: column; gap: 14px; }
.quota-row .quota-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.quota-row .qk { font-size: var(--t-xs); color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.quota-row .qk .key { font-family: var(--font-mono); font-size: var(--t-nano); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.quota-row .qv { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--muted); }
.quota-bar { height: 6px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.quota-bar i { display: block; height: 100%; border-radius: var(--pill); background: var(--muted); width: var(--w, 50%); transition: width 0.9s var(--ease); }
.quota-bar i.ok { background: var(--ok); }
.quota-bar i.warn { background: var(--warn); }

/* Billing rows */
.bill { display: flex; flex-direction: column; }
.bill-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: var(--t-xs); }
.bill-row + .bill-row { border-top: 1px solid var(--line-soft); }
.bill-row .bm { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.bill-row .bm .dot { width: 7px; height: 7px; border-radius: 2px; }
.bill-row .bv { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink); }
.bill-row.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.bill-row.total .bm { color: var(--ink); font-weight: 600; }
.bill-row.total .bv { color: var(--ink); font-weight: 600; }

/* ============================================================================
   Solutions — industry + government/SOE, clearly separated
   ============================================================================ */
.sol-block + .sol-block { margin-top: clamp(40px, 5vw, 64px); }
.sol-label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.sol-label .tag {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.sol-label .tag::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--accent); flex: none; }
.sol-label .tag.gov::before { background: var(--gold); }
.sol-label h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; }
.sol-label .ln { flex: 1; height: 1px; background: var(--line); }
.sol-sub { color: var(--muted); font-size: var(--t-body); line-height: var(--lh-sm); max-width: 760px; margin: 0 0 22px; }

.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scene { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.scene:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.scene-ic {
  width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink); border: 1px solid var(--line); margin-bottom: 16px;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.scene:hover .scene-ic { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.scene-ic svg { width: 21px; height: 21px; }
.scene h4 { font-size: var(--t-h3); letter-spacing: var(--ls-h3); margin: 0 0 8px; }
.scene p { margin: 0; color: var(--muted); font-size: var(--t-sm); line-height: var(--lh-sm); }
.scene-note { font-size: var(--t-xs); color: var(--muted); font-family: var(--font-sans); border-left: 2px solid var(--line-strong); padding-left: 12px; margin: 18px 0 0; }

/* Government feature grid — calmer, list-like, no nested cards */
.gov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.gov-item { background: var(--surface); padding: 22px; transition: background 0.28s var(--ease); }
.gov-item:hover { background: var(--surface-2); }
.gov-item .gi-ic {
  width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 14px;
}
.gov-item:hover .gi-ic { box-shadow: 0 0 0 1px var(--gold-line); }
.gov-item .gi-ic svg { width: 18px; height: 18px; }
.gov-item h4 { font-size: 15px; margin: 0 0 6px; }
.gov-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: var(--lh-sm); }

/* ============================================================================
   Model foundation — provider ecosystem
   ============================================================================ */
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prov-eco { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.prov-eco.global { border-style: dashed; }
.prov-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.prov-tag { font-family: var(--font-mono); font-size: var(--t-xs); padding: 4px 10px; border-radius: var(--radius-sm); }
.prov-eco.cn .prov-tag { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.prov-eco.global .prov-tag { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.prov-head h3 { font-size: var(--t-h3); }
.prov-list { display: flex; flex-direction: column; }
.prov-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.prov-row + .prov-row { border-top: 1px solid var(--line-soft); }
.prov-row .pv-name { font-weight: 600; font-size: var(--t-sm); color: var(--ink); min-width: 92px; }
.prov-row .pv-models { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--muted); flex: 1; }
.prov-row .pv-st { font-family: var(--font-mono); font-size: var(--t-nano); display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.prov-row .pv-st i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.prov-row .pv-st.soon { color: var(--muted-2); }
.prov-row .pv-st.soon i { background: var(--muted-2); }
.eco-note { grid-column: 1 / -1; font-family: var(--font-sans); font-size: var(--t-xs); color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 12px; margin-top: 2px; }

/* ============================================================================
   Delivery — two tracks + process steps
   ============================================================================ */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.track { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.track.gov { background: linear-gradient(180deg, var(--gold-soft), transparent 40%), var(--surface); }
.track-tag { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 7px; }
.track-tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.track.gov .track-tag::before { background: var(--gold); }
.track h3 { font-size: var(--t-h3); letter-spacing: var(--ls-h3); margin: 0 0 8px; }
.track > p { margin: 0 0 18px; color: var(--muted); font-size: var(--t-sm); line-height: var(--lh-sm); }
.track-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.track-list li { font-size: var(--t-sm); color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.track-list li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }

.steps { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-no { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-bottom: 8px; }
.step h4 { font-size: 14px; margin: 0 0 5px; }
.step p { margin: 0; font-size: var(--t-xs); color: var(--muted); line-height: 1.6; }
.track-note { margin-top: clamp(20px, 3vw, 32px); font-size: var(--t-xs); color: var(--muted-2); max-width: 720px; }

/* ============================================================================
   CTA — flat editorial plate: seal-red head rule + gold corner marks
   ============================================================================ */
.cta-band {
  position: relative; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px); border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-top: 2px solid var(--accent-deep);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; top: 12px; left: 12px; width: 16px; height: 16px; pointer-events: none;
  border-top: 1px solid var(--gold-line); border-left: 1px solid var(--gold-line);
}
.cta-band::after {
  content: ""; position: absolute; bottom: 12px; right: 12px; width: 16px; height: 16px; pointer-events: none;
  border-bottom: 1px solid var(--gold-line); border-right: 1px solid var(--gold-line);
}
.cta-band h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin: 0 0 14px; position: relative; }
.cta-band p { color: var(--muted); font-size: var(--t-lede); line-height: var(--lh-lede); margin: 0; position: relative; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; justify-content: flex-end; }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 36px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand-row .brand-mark { width: 82px; height: 42px; }
.footer-brand-row strong { font-size: 15px; }
.footer-tagline { color: var(--muted); font-size: var(--t-sm); max-width: 320px; line-height: var(--lh-sm); }
.footer-cols { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; justify-content: flex-end; }
.footer-col h5 { margin: 0 0 14px; font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.14em; font-weight: 600; color: var(--muted); }
.footer-col a { display: block; color: var(--ink-2); font-size: var(--t-sm); margin-bottom: 10px; transition: color 0.18s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 3px double var(--line-strong); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-bottom .copy { font-size: var(--t-xs); color: var(--muted-2); }
.footer-bottom .copy b { color: var(--muted); font-weight: 600; }
.footer-beian { font-size: var(--t-xs); color: var(--muted); transition: color 0.18s; }
.footer-beian:hover { color: var(--accent); }

/* ============================================================================
   Reveal — degrades safe (visible without JS via .no-js fallback in <html>)
   ============================================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.12s; }
.reveal[data-d="3"] { transition-delay: 0.18s; }
html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .console-live i { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1000px) {
  .iface { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual::before { display: none; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr 1fr; }
  .eco { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proofbar .wrap { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { justify-content: flex-start; }

  /* mobile header: collapse nav into a toggle */
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px;
    background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); width: 100%; }
  .nav-links a:hover { background: var(--btn-ghost-bg); }
  .site-header.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu-btn {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none; margin-left: auto;
    background: var(--btn-ghost-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer;
  }
  .nav-menu-btn svg { width: 18px; height: 18px; }
  .nav-menu-btn .ic-close { display: none; }
  .site-header.nav-open .nav-menu-btn .ic-open { display: none; }
  .site-header.nav-open .nav-menu-btn .ic-close { display: block; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .modules { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .proofbar .wrap { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { flex: 1; }
  .brand-copy small { display: none; }
}
@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
  .route-row .bar { width: 44px; }
  .console-env { display: none; }
}
