/* 配色变量和基础、顶栏、首页。从 w7_style.css 拆出来, 页面按顺序加载。 */

/** Everything spans the window. .inner is a gutter, not a column: no page-width cap anywhere,
    and no max-width on text either, so a wide screen is filled rather than framed. The nav strip
    stays dark in both themes so it never reads as part of the page under it. */

:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #0d1117;
  --muted: #5f6673;
  --line: #e5e7ef;
  --accent: #5b47f5;
  --accent-2: #12b3c7;
  --accent-soft: #eeebff;
  --accent-ink: #ffffff;
  --good: #0f8f5f;
  --warn: #a45c00;
  --shadow: 0 1px 2px rgba(16, 20, 40, 0.04), 0 10px 30px rgba(16, 20, 40, 0.06);
  --radius: 16px;
  --gutter: clamp(18px, 3vw, 60px);
  --bar: #0c0f1c;
  --bar-ink: #e8ebf7;
  --bar-muted: #98a1c0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --panel: #12151f;
    --ink: #e9ecf5;
    --muted: #969db0;
    --line: #232837;
    --accent: #9c8dff;
    --accent-2: #3fd8e8;
    --accent-soft: #1c1b33;
    --accent-ink: #0a0b12;
    --good: #4fd39b;
    --warn: #e0a761;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 34px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.025em; }

.inner { padding: 0 var(--gutter); }

/* --- top bar: the pipeline as a menu --- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar); color: var(--bar-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 10px 26px rgba(6, 8, 18, 0.28);
}
.bar-inner { display: flex; align-items: center; gap: 6px; padding: 0 var(--gutter); min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; margin-right: 20px; }
.mark {
  width: 18px; height: 18px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.spacer { flex: 1; }
.menu { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.navlink {
  color: var(--bar-muted); font-size: 14.5px; padding: 8px 13px; border-radius: 9px;
  white-space: nowrap; transition: color 0.15s, background 0.15s;
}
a.navlink:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
/* a step that has not moved into the browser yet: readable, but plainly not a link */
.navlink.off { color: #626c8c; cursor: default; }
.navlink.on { color: #fff; background: rgba(255, 255, 255, 0.1); font-weight: 570; }
.bar-inner .btn.small { margin-left: 8px; }

.view { padding: 0 var(--gutter) 80px; }
#view-home { padding: 0; }

/* --- landing: hero --- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(60px, 7vw, 104px) 0 clamp(60px, 7vw, 100px);
  color: #f4f6ff;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(91, 71, 245, 0.55), transparent 62%),
    radial-gradient(760px 480px at 88% 8%, rgba(18, 179, 199, 0.34), transparent 60%),
    linear-gradient(168deg, #0d1024 0%, #0a0c18 58%, #090a13 100%);
}
.hero-grid {
  display: grid; align-items: center; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .stats { grid-column: 1 / -1; margin-top: 0; }
  .mock { justify-self: end; width: 100%; }
}

.eyebrow {
  margin: 0 0 18px; font-size: 12.5px; font-weight: 620; letter-spacing: 0.12em;
  text-transform: uppercase; color: #9fe8f2;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 78px); line-height: 1.04; font-weight: 680;
  background: linear-gradient(150deg, #ffffff 30%, #b9b2ff 78%, #7fe3ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px 0 0; font-size: clamp(16.5px, 1.5vw, 19px); color: #b6bdd8; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.mock {
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 0.9fr);
  gap: 10px; padding: 13px 16px; align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #d5daf0;
}
.mock-row:last-child { border-bottom: 0; }
.mock-row b, .mock-row i { text-align: right; font-weight: 500; font-style: normal; color: #aab2ce; }
.mock-row i { color: #7fe3ef; font-weight: 600; }
.mock-row.head { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8d95b4; }
.mock-row.head b, .mock-row.head i { color: #8d95b4; font-weight: 600; }
.mock-row.on { background: rgba(124, 108, 255, 0.22); color: #fff; }
.mock-row.on b { color: #e7e9ff; }
@media (max-width: 460px) { .mock { display: none; } }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; margin-top: clamp(48px, 6vw, 76px);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; overflow: hidden;
}
.stats div { background: rgba(255, 255, 255, 0.03); padding: 20px 22px; }
.stats b {
  display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 660; letter-spacing: -0.03em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.stats span { display: block; margin-top: 4px; font-size: 13.5px; color: #a2aac6; }

/* --- landing: bands --- */
.band { padding: clamp(48px, 6vw, 80px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 {
  margin: 0; font-size: 13px; font-weight: 620; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}

.stage-row {
  display: grid; gap: 14px; margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* seven abreast only when each one still has room to read; below that four, then whatever fits */
@media (min-width: 900px) { .stage-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1500px) { .stage-row { grid-template-columns: repeat(7, 1fr); } }
.stage {
  display: block; padding: 20px 20px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.stage b { display: block; margin: 10px 0 6px; font-size: 16.5px; font-weight: 620; }
.stage span:not(.tag) { display: block; color: var(--muted); font-size: 14px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 640; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  padding: 3px 9px; border-radius: 999px;
}
.stage.live {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 14%, transparent);
}
.stage.live .tag { color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.stage.live:hover { border-color: var(--accent); transform: translateY(-2px); }
.stage.live { transition: transform 0.15s, border-color 0.15s; }

.source-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.source-chips article {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 13px; font-size: 14.5px; font-weight: 550;
}
.source-chips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.source-chips article.quota .dot { background: var(--warn); }
.source-chips .badge { font-size: 11.5px; font-weight: 620; letter-spacing: 0.04em; color: var(--muted); }
.src-line { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
