:root {
  --bg: #050811;
  --bg-elev: rgba(12, 18, 34, 0.72);
  --bg-card: rgba(15, 23, 42, 0.76);
  --bg-code: #080d1a;
  --border: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(56, 189, 248, 0.4);
  --text: #f1f5f9;
  --text-soft: #94a3b8;
  --text-muted: #64748b;
  --cyan: #00e5ff;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --purple: #a855f7;
  --danger: #f43f5e;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.65);
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, "Courier New", monospace;
}

@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes beam-spin {
  to { --beam-angle: 360deg; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { transform: scale(1); box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes gradient-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(37, 99, 235, 0.16), transparent 60%),
    var(--bg);
  line-height: 1.65;
}

#transit-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

.ambient-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.ambient-glow-1 {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: rgba(0, 229, 255, 0.12);
}
.ambient-glow-2 {
  width: 480px; height: 480px;
  bottom: -160px; right: -120px;
  background: rgba(37, 99, 235, 0.14);
}

header, main, footer { position: relative; z-index: 1; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1px 6px;
  border-radius: 6px;
  color: #cbd5e1;
}
a { color: inherit; text-decoration: none; }

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 17, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { width: 34px; height: 34px; display: inline-flex; }
.brand-logo svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35)); }
.brand-text { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -0.02em; }
.ver-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
}
.status-chip:hover { border-color: var(--border-bright); color: var(--text); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}
.pulse-dot.online {
  background: var(--emerald);
  animation: pulse-ring 2.2s infinite;
}
.pulse-dot.off { background: var(--danger); }

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 13px 18px; font-size: 14.5px; border-radius: 14px; }

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #00c6ff 100%);
  background-size: 180% 180%;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 229, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-beam {
  position: relative;
  z-index: 1;
}
.btn-beam::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--beam-angle), transparent 0deg, #00e5ff 60deg, #10b981 120deg, transparent 180deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: beam-spin 3.8s linear infinite;
  opacity: 0.78;
  pointer-events: none;
}

.btn-glass {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.btn-emerald-soft {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 10px 16px;
  font-size: 14px;
}
.btn-emerald-soft:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: #10b981;
}

.cta-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(5, 8, 17, 0.32);
  color: #e0f2fe;
}

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 17, 0.96);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 15px;
}
.mobile-drawer a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

/* Hero 区 */
.hero { padding: 62px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-copy,
.hero-stage,
.sim-wrapper,
.sim-window,
.pipeline-steps,
.pipeline-inspector,
.plat-info,
.plat-code-box,
.dl-card,
.dl-side-stack,
.bento-card,
.stat-card {
  min-width: 0;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.28);
  font-size: 13px;
  color: #a5f3fc;
  margin-bottom: 20px;
}
.spark-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(95deg, #ffffff 0%, #38bdf8 30%, #00e5ff 60%, #34d399 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 7s ease infinite;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 0 28px;
  max-width: 580px;
}
.hero-desc strong { color: #e2e8f0; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.metric-chip {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  backdrop-filter: blur(8px);
}
.metric-val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.25;
}
.metric-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 交互式 3D 终端模拟器 */
.hero-stage { perspective: 1400px; }
.sim-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.sim-glow {
  position: absolute;
  inset: -16px;
  background: radial-gradient(circle at 50% 35%, rgba(0, 229, 255, 0.24), rgba(37, 99, 235, 0.14) 45%, transparent 72%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}
.sim-window {
  background: rgba(10, 16, 30, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.sim-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border);
}
.sim-dots { display: flex; gap: 6px; }
.sim-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }
.sim-title { font-size: 12px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-sync-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
  padding: 3px 9px;
  color: #e0f2fe;
}
.offset-tag { color: var(--cyan); font-weight: 600; }

.sim-section { padding: 14px 16px 10px; }
.sim-section-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-soft); margin-bottom: 10px;
}
.sim-hint { color: var(--cyan); font-size: 11px; }

.sim-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sim-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.sim-slot:hover { border-color: rgba(56, 189, 248, 0.45); }
.sim-slot.active {
  background: rgba(26, 115, 232, 0.16);
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 6px 20px rgba(26, 115, 232, 0.22);
}
.slot-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1a73e8, #00e5ff);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}
.slot-avatar.empty {
  background: transparent;
  border: 1.5px dashed var(--text-muted);
  color: var(--text-muted);
}
.slot-body { display: flex; flex-direction: column; min-width: 0; font-size: 11px; line-height: 1.35; }
.slot-row1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-row1 .pts { font-style: normal; color: #4ade80; font-weight: 500; }
.slot-row2.ok { color: #34d399; }
.slot-row3.idle { color: #fbbf24; }
.slot-row3.running { color: #4ade80; }
.slot-body .muted { color: var(--text-muted); }

.sim-controls { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.coupon-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coupon-pill {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.18s ease;
}
.coupon-pill:hover { color: var(--text); border-color: rgba(148, 163, 184, 0.35); }
.coupon-pill.active {
  background: rgba(0, 229, 255, 0.13);
  border-color: var(--cyan);
  color: #e0f2fe;
}

.sim-action-row { display: grid; grid-template-columns: 1.35fr 1fr 0.95fr; gap: 8px; }
.sim-btn {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sim-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sim-btn-primary { background: #1a73e8; color: #fff; box-shadow: 0 6px 18px rgba(26, 115, 232, 0.35); }
.sim-btn-primary:hover:not(:disabled) { background: #2563eb; }
.sim-btn-secondary { background: rgba(30, 41, 59, 0.85); border-color: var(--border); color: var(--text); }
.sim-btn-secondary:hover:not(:disabled) { border-color: var(--blue-bright); }
.sim-btn-emerald { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.45); color: #6ee7b7; }
.sim-btn-emerald:hover { background: rgba(16, 185, 129, 0.26); }

.sim-qr-drawer {
  margin: 0 16px 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(16, 185, 129, 0.38);
}
.qr-card-mini { display: flex; align-items: center; gap: 14px; }
.qr-svg-box { flex-shrink: 0; line-height: 0; border-radius: 8px; overflow: hidden; }
.qr-balance { font-size: 13px; color: var(--text-soft); }
.qr-balance strong { font-size: 20px; color: var(--amber); margin-left: 4px; }
.qr-meta { font-size: 11px; color: var(--text-muted); margin: 3px 0 8px; }
.qr-tickets { display: flex; flex-wrap: wrap; gap: 6px; }
.q-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border); color: var(--text-soft);
}
.q-badge.active { background: rgba(16, 185, 129, 0.22); border-color: #10b981; color: #a7f3d0; }

.sim-terminal {
  background: var(--bg-code);
  border-top: 1px solid var(--border);
  padding: 10px 14px 14px;
}
.term-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11px; color: var(--text-muted); margin-bottom: 8px;
}
.term-progress-wrap {
  width: 110px; height: 5px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}
.term-progress-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  transition: width 0.25s ease;
}
.term-logs {
  height: 152px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.log-line { word-break: break-all; }
.log-line.info { color: #38bdf8; }
.log-line.ok { color: #34d399; font-weight: 600; }
.log-line.warn { color: #fbbf24; }
.log-line.muted { color: #64748b; }

/* 通用 Section */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-desc { color: var(--text-soft); margin: 8px 0 0; max-width: 640px; }
.muted-text { color: var(--text-soft); font-size: 14px; margin: 4px 0 0; }

/* 实时服务端态势 */
.telemetry-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.telemetry-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-soft);
}
.dashboard-hud {
  position: relative;
  background: linear-gradient(160deg, rgba(12, 20, 38, 0.88), rgba(7, 11, 22, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px; height: 2px;
  border-radius: 999px;
  opacity: 0.75;
}
.stat-card.accent-cyan::before { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.stat-card.accent-emerald::before { background: linear-gradient(90deg, transparent, var(--emerald), transparent); }
.stat-card.accent-amber::before { background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.stat-card.accent-blue::before { background: linear-gradient(90deg, transparent, #60a5fa, transparent); }
.stat-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.stat-label { font-size: 13px; color: var(--text-soft); display: flex; justify-content: space-between; gap: 8px; }
.stat-sub { font-size: 11px; color: var(--text-muted); }
.stat-value { font-size: 38px; font-weight: 700; line-height: 1.15; margin: 12px 0 8px; letter-spacing: -0.03em; }
.stat-value.cyan { color: var(--cyan); }
.stat-value.emerald { color: var(--emerald); }
.stat-value.amber { color: var(--amber); }
.stat-value.blue { color: #60a5fa; }
.stat-foot { font-size: 12px; color: var(--text-muted); }

.dashboard-deck {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 16px;
}
.donut-panel,
.breakdown-panel {
  background: rgba(9, 14, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  min-width: 0;
}
.donut-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 229, 255, 0.08), transparent 64%),
    rgba(9, 14, 28, 0.84);
}
.donut-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.donut-head h3 { margin: 0; font-size: 16px; }
.donut-wrap {
  position: relative;
  width: 204px;
  height: 204px;
  display: grid;
  place-items: center;
}
.donut-svg { width: 100%; height: 100%; overflow: visible; }
.donut-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 18;
}
.donut-seg {
  fill: none;
  stroke-width: 18;
  stroke-linecap: butt;
  cursor: pointer;
  transition: stroke-dasharray 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              stroke-dashoffset 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              stroke-width 0.2s ease,
              opacity 0.2s ease;
}
.donut-seg.seg-cyan { stroke: url(#gradCyan); filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.35)); }
.donut-seg.seg-blue { stroke: url(#gradBlue); filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35)); }
.donut-seg.seg-emerald { stroke: url(#gradEmerald); filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.35)); }
.donut-seg.dim { opacity: 0.28; }
.donut-seg.active { stroke-width: 22; }

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 24px;
}
.donut-total { font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--text); letter-spacing: -0.03em; }
.donut-sub { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.donut-legend {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.legend-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.legend-chip:hover,
.legend-chip.active {
  border-color: var(--border-bright);
  color: var(--text);
  background: rgba(30, 41, 59, 0.8);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.cyan { background: var(--cyan); }
.legend-dot.blue { background: #60a5fa; }
.legend-dot.emerald { background: var(--emerald); }

.breakdown-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.dist-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.dist-head h3 { margin: 0; font-size: 18px; }
.dist-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dist-total-pill {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.28);
  color: #a5f3fc;
}
.saved-pill {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.36);
  color: #6ee7b7; font-weight: 600;
}
.dist-bars { display: flex; flex-direction: column; gap: 12px; }
.dist-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: border-color 0.2s, background 0.2s;
}
.dist-row:hover,
.dist-row.active {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(15, 23, 42, 0.9);
}
.dist-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 7px; }
.sync-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.sync-meter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.sync-track {
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}
.sync-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
}

.dash-main { padding: 42px 0 64px; }
.dash-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.dash-hero-head h1 { margin: 4px 0 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; }
.dash-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}
.dash-banner.show { display: flex; }
.dash-banner.err {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.36);
  color: #fda4af;
}
.dist-meta em { font-style: normal; color: var(--text-muted); margin-left: 8px; font-size: 12px; }
.muted-code { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.dist-track {
  height: 10px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}
.dist-fill {
  height: 100%; width: 0%; border-radius: 999px;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fill-cyan { background: linear-gradient(90deg, #0284c7, #00e5ff); box-shadow: 0 0 16px rgba(0, 229, 255, 0.4); }
.fill-blue { background: linear-gradient(90deg, #1d4ed8, #60a5fa); box-shadow: 0 0 16px rgba(59, 130, 246, 0.4); }
.fill-emerald { background: linear-gradient(90deg, #059669, #34d399); box-shadow: 0 0 16px rgba(16, 185, 129, 0.4); }

/* 流水线检查器 */
.pipeline-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(14px);
}
.pipeline-steps { display: flex; flex-direction: column; gap: 10px; }
.pipe-step {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.pipe-step:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateX(3px); }
.pipe-step.active {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.14), rgba(37, 99, 235, 0.1));
  border-color: var(--cyan);
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}
.pipe-step.active .step-num { background: var(--cyan); color: #050811; }
.step-txt { display: flex; flex-direction: column; }
.step-txt strong { font-size: 15px; }
.step-txt small { font-size: 12px; color: var(--text-soft); }

.pipeline-inspector {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.inspector-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.inspector-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 229, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.3);
}
.inspector-module { font-size: 12px; color: var(--text-muted); }
.pipeline-inspector h3 { margin: 0 0 10px; font-size: 20px; }
.pipeline-inspector p { margin: 0 0 16px; font-size: 14px; color: var(--text-soft); }
.inspector-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #bae6fd;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  max-width: 100%;
}
.inspector-code code { background: none; border: none; padding: 0; color: inherit; }

/* Bento 网格与 Spotlight 效果 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento-wide { grid-column: span 2; }
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.bento-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.bento-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px; margin-bottom: 16px;
  border: 1px solid var(--border);
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-icon.cyan { background: rgba(0, 229, 255, 0.14); border-color: rgba(0, 229, 255, 0.35); color: var(--cyan); }
.bento-icon.blue { background: rgba(59, 130, 246, 0.16); border-color: rgba(59, 130, 246, 0.35); color: #60a5fa; }
.bento-icon.emerald { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.35); color: #34d399; }
.bento-icon.amber { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.35); color: #fbbf24; }
.bento-icon.purple { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.35); color: #c084fc; }
.bento-icon.sky { background: rgba(14, 165, 233, 0.15); border-color: rgba(14, 165, 233, 0.35); color: #38bdf8; }

.bento-card h3 { margin: 0 0 10px; font-size: 19px; }
.bento-card p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bento-tags span {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.85); border: 1px solid var(--border); color: #cbd5e1;
}

/* 三端生态 */
.platform-tabs {
  display: inline-flex; gap: 6px; padding: 5px;
  background: rgba(15, 23, 42, 0.82); border: 1px solid var(--border); border-radius: 12px;
}
.plat-tab {
  border: none; background: transparent; color: var(--text-soft);
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
}
.plat-tab:hover { color: var(--text); }
.plat-tab.active { background: #1a73e8; color: #fff; box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35); }

.platform-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}
.plat-panel { display: none; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: center; }
.plat-panel.active { display: grid; }
.plat-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  color: var(--cyan); background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.26); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
.plat-info h3 { margin: 0 0 10px; font-size: 24px; }
.plat-info p { margin: 0 0 14px; color: var(--text-soft); font-size: 14.5px; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li {
  position: relative; padding-left: 20px; font-size: 14px; color: #cbd5e1;
}
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

.plat-code-box {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-box-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
  background: rgba(15, 23, 42, 0.72);
}
.copy-btn, .mini-copy {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}
.copy-btn:hover, .mini-copy:hover { background: rgba(56, 189, 248, 0.24); color: #ffffff; }
.plat-code-box pre {
  margin: 0; padding: 16px; font-size: 12.5px; line-height: 1.7; color: #e2e8f0; overflow-x: auto;
}
.plat-code-box code { background: none; border: none; padding: 0; color: inherit; }

.matrix-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.matrix-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix-table th, .matrix-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table th { color: var(--text-soft); font-weight: 600; background: rgba(15, 23, 42, 0.65); }
.matrix-table td.yes { color: #34d399; font-weight: 600; }
.matrix-table td.partial { color: #fbbf24; }
.matrix-table td.no { color: var(--text-muted); }

/* 下载中心 */
.manifest-links { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--cyan); }
.manifest-links a:hover { text-decoration: underline; }

.download-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
}
.dl-side-stack { display: flex; flex-direction: column; gap: 18px; }
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(14px);
}
.dl-featured {
  border-color: rgba(0, 229, 255, 0.36);
  background: linear-gradient(155deg, rgba(14, 24, 48, 0.92), rgba(8, 13, 28, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.dl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dl-badge {
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(59, 130, 246, 0.16); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35);
}
.dl-badge.hot {
  background: rgba(0, 229, 255, 0.14); color: var(--cyan); border-color: rgba(0, 229, 255, 0.4);
}
.dl-badge.emerald {
  background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4);
}
.dl-ver { font-size: 13px; color: var(--text-soft); }
.dl-title-row { display: flex; align-items: center; gap: 14px; }
.dl-os-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(15, 23, 42, 0.9); border: 1px solid var(--border);
  flex-shrink: 0;
}
.dl-os-icon svg { width: 24px; height: 24px; }
.dl-os-icon.win { color: #38bdf8; border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.1); }
.dl-os-icon.cli { color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.1); }
.dl-os-icon.wx { color: #34d399; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.dl-title-row h3 { margin: 0; font-size: 21px; }
.dl-filename { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }
.dl-summary { margin: 0; font-size: 14px; color: var(--text-soft); }

.dl-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(5, 8, 17, 0.55); border: 1px solid var(--border);
  font-size: 12.5px;
}
.dl-specs span { display: block; color: var(--text-muted); font-size: 11px; }
.dl-specs strong { color: var(--text); }

.dl-hash-box {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.hash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--text-soft); }
.hash-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hash-code {
  display: block; font-size: 12px; color: #7dd3fc; word-break: break-all;
  background: none; border: none; padding: 0;
}
.hash-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-muted);
  background: rgba(5, 8, 17, 0.55); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.dl-actions-compact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.dl-note { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(148, 163, 184, 0.2));
}
.tl-item { position: relative; }
.tl-marker {
  position: absolute;
  left: -28px; top: 18px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #0f172a; border: 2px solid var(--text-muted);
}
.tl-item.current .tl-marker {
  background: var(--cyan); border-color: #ffffff;
  box-shadow: 0 0 16px var(--cyan);
}
.tl-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.tl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tl-ver {
  font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: rgba(0, 229, 255, 0.12); color: var(--cyan);
}
.tl-date { font-size: 12px; color: var(--text-muted); }
.tl-content h4 { margin: 0 0 6px; font-size: 17px; }
.tl-content p { margin: 0; font-size: 14px; color: var(--text-soft); }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 17, 0.86);
  padding: 36px 0 44px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px;
}
.brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.disclaimer-text { margin: 0; font-size: 12.5px; color: var(--text-muted); max-width: 640px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--text-soft); }
.footer-links a:hover { color: var(--cyan); }

/* 滚动显隐 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--cyan);
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: all 0.22s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式适配 */
@media (max-width: 1024px) {
  .hero-grid, .pipeline-shell, .download-grid, .plat-panel.active { grid-template-columns: 1fr; }
  .dashboard-deck { grid-template-columns: 1fr; }
  .telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: span 2; }
}

@media (max-width: 780px) {
  .nav-links, .status-chip { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 38px; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-slots { grid-template-columns: 1fr; }
  .sim-action-row { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .telemetry-grid { grid-template-columns: 1fr; }
  .platform-tabs { flex-wrap: wrap; max-width: 100%; }
  .pipeline-shell { padding: 14px; }
  .pipeline-inspector { padding: 16px; }
  .platform-stage { padding: 18px; }
  .dashboard-hud { padding: 14px; }
  .donut-panel, .breakdown-panel { padding: 16px; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions { gap: 8px; }
  .brand-text { font-size: 16px; }
  .sim-titlebar { padding: 10px 12px; gap: 8px; }
  .sim-title { flex: 1; min-width: 0; }
  .sim-sync-pill { flex-shrink: 0; }
  .hero-cta .btn,
  .dl-actions .btn { width: 100%; }
  .dl-actions-compact .btn { flex: 1 1 auto; }
  .dl-specs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
