/* ═══════════════════════════════════════════════════════════════
   花嵘屿 WAF · 官网样式 —— 运维控制台视觉方向(Operator Console)
   数据密集、左对齐技术排版、等宽仪表标签、细描边、语义状态色当数据。
   刻意避开 AI 模板反模式:无渐变文字、无「居中药丸→大标题→副标题」套路。
   配色沿用产品控制台 theme.css(石墨底 + 提亮靛蓝 + 青蓝数据点缀)。
   字体:系统栈,零外部 CDN,与控制台一致。
   ═══════════════════════════════════════════════════════════════ */

:root {
  --c-primary: oklch(0.63 0.185 272);
  --c-primary-strong: oklch(0.7 0.19 272);
  --c-primary-soft: oklch(0.63 0.185 272 / 0.12);
  --c-cyan: #22d3ee;
  --c-cyan-dim: rgba(34, 211, 238, 0.14);

  /* 语义状态色:拦截红 / 挑战琥珀 / 放行绿 / 观察蓝 / 限速紫 */
  --c-block: oklch(0.68 0.2 25);
  --c-challenge: oklch(0.8 0.15 75);
  --c-allow: oklch(0.72 0.16 155);
  --c-observe: oklch(0.7 0.14 227);
  --c-throttle: oklch(0.72 0.18 303);

  --radius: 4px;           /* 收紧圆角,更"控制台" */
  --radius-lg: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --gut: 24px;

  /* 系统字体栈:零 CDN,离线可用 */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Consolas,
    'Liberation Mono', Menlo, monospace;
}

/* 深色(默认):石墨底,比控制台深一档,营销页更聚焦 */
:root, [data-theme='dark'] {
  --bg: oklch(0.155 0.014 265.5);
  --bg-2: oklch(0.185 0.016 265.5);
  --surface: oklch(0.225 0.019 265.5);
  --surface-2: oklch(0.27 0.021 264);
  --fg: oklch(0.96 0.004 247.858);
  --fg-muted: oklch(0.72 0.024 260);
  --fg-dim: oklch(0.56 0.02 260);
  --border: oklch(1 0 0 / 0.08);
  --border-strong: oklch(1 0 0 / 0.15);
  --grid-line: oklch(1 0 0 / 0.028);
  color-scheme: dark;
}

/* 浅色切换:仍保持技术冷感 */
[data-theme='light'] {
  --bg: oklch(0.98 0.002 264);
  --bg-2: oklch(0.955 0.004 264);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.965 0.006 264);
  --fg: oklch(0.22 0.02 265.5);
  --fg-muted: oklch(0.44 0.028 260);
  --fg-dim: oklch(0.58 0.02 260);
  --border: oklch(0.2 0.02 265 / 0.13);
  --border-strong: oklch(0.2 0.02 265 / 0.22);
  --grid-line: oklch(0.2 0.02 265 / 0.045);
  --c-primary: oklch(0.515 0.205 273.5);
  --c-primary-strong: oklch(0.46 0.21 273.5);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg); color: var(--fg);
  line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code, pre, .mono { font-family: var(--font-mono); }
.mono-dim { font-family: var(--font-mono); color: var(--fg-dim); font-size: 0.78rem; letter-spacing: 0.02em; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius); transition: top 0.2s var(--ease); }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gut); }
.ta-r { text-align: right; }

/* 滚动进场:统一 rise+fade,IntersectionObserver 触发,错峰在 JS 里 */
[data-reveal] { opacity: 0; transform: translateY(16px); will-change: transform, opacity; }
[data-reveal].is-visible { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { transform: none !important; }
}
/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn--lg { padding: 13px 24px; font-size: 0.98rem; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 20px -12px oklch(0.63 0.185 272 / 0.9); }
.btn--primary:hover { background: var(--c-primary-strong); box-shadow: 0 10px 28px -10px oklch(0.63 0.185 272 / 0.95); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }

/* ---------- 导航:控制台顶栏 ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease); }
.nav.is-stuck { background: color-mix(in oklch, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--border); }
.nav__inner { max-width: var(--container); margin-inline: auto; padding: 12px var(--gut); display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: #fff; background: linear-gradient(150deg, var(--c-primary), oklch(0.55 0.19 285)); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.16); }
.brand__mark svg { width: 19px; height: 19px; }
.brand__name { font-size: 1.02rem; }
.brand__accent { color: var(--c-cyan); margin-left: 2px; font-weight: 800; }
.brand__ver { font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-dim); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius); color: var(--fg-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--fg); background: var(--surface); }
.nav__idx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-dim); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__back { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 500; color: var(--fg-muted); padding: 6px 10px; border-radius: var(--radius); transition: color 0.2s, background 0.2s; }
.nav__back:hover { color: var(--fg); background: var(--surface); }
.nav__back svg { width: 15px; height: 15px; }
.nav__status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--c-allow); padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; }
.nav__status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-allow); box-shadow: 0 0 0 3px oklch(0.72 0.16 155 / 0.2); animation: pulse-dot 2.4s var(--ease) infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--fg-muted); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.theme-toggle:hover { color: var(--fg); border-color: var(--border-strong); background: var(--surface); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle__sun { display: none; }
[data-theme='light'] .theme-toggle__sun { display: block; }
[data-theme='light'] .theme-toggle__moon { display: none; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; gap: 2px; padding: 8px var(--gut) 18px; background: color-mix(in oklch, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav__mobile a { padding: 12px 14px; border-radius: var(--radius); color: var(--fg-muted); font-weight: 500; font-family: var(--font-mono); font-size: 0.9rem; }
.nav__mobile a:hover { background: var(--surface); color: var(--fg); }
.nav__mobile .btn { margin-top: 8px; justify-content: center; font-family: var(--font-sans); }

/* ---------- 分区 & 左对齐头部 ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--border); }
.shead { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.shead__idx { font-family: var(--font-mono); font-size: 0.9rem; color: var(--c-cyan); font-weight: 600; padding-top: 4px; }
.shead__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; }
.shead__lead { margin-top: 12px; color: var(--fg-muted); font-size: 1rem; }
.shead__lead code { font-family: var(--font-mono); font-size: 0.88em; padding: 1px 6px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); }
/* ---------- Hero:左右分栏 ---------- */
.hero { position: relative; padding-top: 92px; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 84px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fg-muted); padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; }
.tag--live { color: var(--c-cyan); border-color: var(--c-cyan-dim); }
.tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 6px var(--c-cyan); animation: pulse-dot 1.6s infinite; }
.hero__title { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span, .hero__title .line { will-change: transform; }
/* 逐行 clip-reveal(比逐字打字机更克制、更"编辑感") */
.line-reveal .line { position: relative; }
.line-reveal .line span { display: inline-block; transform: translateY(100%); }
.line-reveal.is-in .line span { transform: none; transition: transform 0.8s var(--ease); }
.line-reveal.is-in .line:nth-child(2) span { transition-delay: 0.09s; }
.hero__subtitle { margin-top: 22px; max-width: 40ch; color: var(--fg-muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* 威胁地图面板 */
.hero__panel { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: color-mix(in oklch, var(--bg-2) 80%, transparent); overflow: hidden; }
.panel__bar, .panel__foot { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; }
.panel__bar { border-bottom: 1px solid var(--border); color: var(--fg-muted); }
.panel__title { color: var(--fg); font-weight: 600; }
.panel__coord { color: var(--c-cyan); }
.panel__stage { position: relative; aspect-ratio: 1 / 0.82; }
.hero__globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel__tick { position: absolute; width: 12px; height: 12px; border-color: var(--border-strong); }
.panel__tick--tl { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.panel__tick--tr { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.panel__tick--bl { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.panel__tick--br { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.panel__foot { border-top: 1px solid var(--border); color: var(--fg-dim); gap: 16px; }
.panel__foot span { display: inline-flex; align-items: center; gap: 6px; }
.panel__foot-right { margin-left: auto; color: var(--c-cyan); }
.ldot { width: 7px; height: 7px; border-radius: 50%; }
.ldot--block { background: var(--c-block); } .ldot--challenge { background: var(--c-challenge); } .ldot--observe { background: var(--c-observe); }

/* 遥测条 */
.telemetry { position: relative; z-index: 2; border-top: 1px solid var(--border); background: var(--bg-2); }
.telemetry__row { display: grid; grid-template-columns: repeat(5, 1fr); }
.tele { padding: 20px var(--gut); border-left: 1px solid var(--border); }
.tele:first-child { border-left: none; }
.tele__k { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fg-dim); text-transform: uppercase; }
.tele__v { display: block; margin-top: 8px; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.tele__pre, .tele__u { font-size: 0.5em; color: var(--fg-muted); font-weight: 600; }
.tele__pre { margin-right: 1px; } .tele__u { margin-left: 4px; }
.tele__v--ok { color: var(--c-allow); font-size: 1.1rem; font-family: var(--font-mono); }
.tele--pulse .tele__v--ok { animation: pulse-dot 2s infinite; }
/* ---------- Bento 能力网格 ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; grid-auto-rows: 1fr; }
.bento__cell { position: relative; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.bento__cell:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.bento__cell--lg { grid-row: span 2; }
.bento__cell--wide { grid-column: span 2; }
/* spotlight:hover 跟随鼠标的柔和径向光晕 */
.spotlight::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), var(--c-primary-soft), transparent 60%); }
.spotlight:hover::before { opacity: 1; }
.cell__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cell__idx { font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-dim); letter-spacing: 0.1em; }
.cell__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: var(--c-primary-strong); background: var(--c-primary-soft); border: 1px solid oklch(0.63 0.185 272 / 0.22); }
[data-theme='light'] .cell__icon { color: var(--c-primary); }
.cell__icon svg { width: 21px; height: 21px; }
.cell__title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.cell__desc { margin-top: 9px; color: var(--fg-muted); font-size: 0.92rem; flex: 1; }
.cell__tag { display: inline-block; align-self: flex-start; margin-top: 16px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--c-cyan); letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px; background: var(--c-cyan-dim); }
/* 主砖迷你判定读数 */
.cell__meter { margin-top: 18px; display: grid; gap: 8px; }
.meter__row { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; }
.meter__lbl { color: var(--fg-dim); }
.meter__bar { height: 6px; border-radius: 3px; background: oklch(1 0 0 / 0.06); overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--c-primary); border-radius: 3px; }
.meter__bar--warn i { background: var(--c-challenge); }
.meter__val { color: var(--fg-muted); }
.meter__val--warn { color: var(--c-challenge); }
/* 渐进式流程 */
.cell__flow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 16px; font-family: var(--font-mono); font-size: 0.74rem; }
.cell__flow em { font-style: normal; color: var(--fg-muted); padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; }
.cell__flow b { color: var(--c-cyan); }
/* 规则清单 */
.cell__rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cell__rules span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-muted); padding: 4px 9px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-2); }

/* ---------- 集群监视器 ---------- */
.monitor { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.monitor__topo, .monitor__side { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.monitor__cap { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--fg-muted); }
.monitor__topo svg { width: 100%; height: auto; overflow: visible; padding: 12px; }
.monitor__side { display: flex; flex-direction: column; }
.topo-link { stroke: var(--border-strong); stroke-width: 1.3; fill: none; transition: stroke 0.3s, stroke-width 0.3s; }
.topo-link.is-hot { stroke: var(--c-primary); stroke-width: 1.8; }
.topo-pulse { stroke: var(--c-cyan); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-dasharray: 5 190; filter: drop-shadow(0 0 4px var(--c-cyan)); }
.topo-node__core { fill: var(--surface-2); stroke: var(--c-primary); stroke-width: 1.4; transition: fill 0.3s; }
.topo-node.is-master .topo-node__core, .topo-node.is-hot .topo-node__core { fill: var(--c-primary); }
.topo-node__ring { fill: none; stroke: var(--c-primary); stroke-opacity: 0.3; }
.topo-node text { fill: var(--fg-muted); font-size: 10px; font-family: var(--font-mono); text-anchor: middle; }

/* 节点状态表 */
.ntable { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.78rem; }
.ntable th { text-align: left; padding: 9px 14px; color: var(--fg-dim); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.ntable td { padding: 8px 14px; border-bottom: 1px solid var(--border); color: var(--fg-muted); }
.ntable tr:last-child td { border-bottom: none; }
.ntable .st { display: inline-flex; align-items: center; gap: 6px; }
.ntable .st i { width: 6px; height: 6px; border-radius: 50%; }
.st--ok i { background: var(--c-allow); } .st--ok { color: var(--c-allow); }
.st--sync i { background: var(--c-observe); } .st--sync { color: var(--c-observe); }
.ntable .role-m { color: var(--c-primary-strong); }
.feature-list { list-style: none; padding: 14px; margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--border); margin-top: auto; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--fg-muted); font-size: 0.88rem; }
.fl-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.fl-dot--primary { background: var(--c-primary); } .fl-dot--block { background: var(--c-block); } .fl-dot--allow { background: var(--c-allow); } .fl-dot--challenge { background: var(--c-challenge); }
/* ---------- 攻击态势大屏 ---------- */
.screen { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); background: oklch(0.13 0.013 265.5); }
[data-theme='light'] .screen { background: oklch(0.18 0.016 265.5); color: oklch(0.96 0.004 248); }
.screen__bar { display: flex; align-items: center; gap: 12px; padding: 11px 15px; background: oklch(0.18 0.016 265.5); border-bottom: 1px solid oklch(1 0 0 / 0.08); }
.screen__dots { display: inline-flex; gap: 6px; }
.screen__dots i { width: 10px; height: 10px; border-radius: 50%; background: oklch(1 0 0 / 0.16); }
.screen__title { font-family: var(--font-mono); font-size: 0.8rem; color: oklch(0.78 0.02 260); }
.screen__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--c-block); }
.screen__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-block); box-shadow: 0 0 8px var(--c-block); animation: pulse-dot 1.4s infinite; }
.screen__body { display: grid; grid-template-columns: 1fr 1.2fr 0.85fr; min-height: 410px; color: oklch(0.9 0.01 260); }
.screen__col { padding: 16px; }
.screen__col--feed { border-right: 1px solid oklch(1 0 0 / 0.06); }
.screen__col--gauges { border-left: 1px solid oklch(1 0 0 / 0.06); display: flex; flex-direction: column; gap: 14px; }
.screen__h { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.6 0.02 260); margin-bottom: 12px; }
.screen__h-cnt { color: var(--c-cyan); }
.feed { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; font-family: var(--font-mono); font-size: 0.76rem; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 6px 8px; border-radius: 5px; background: oklch(1 0 0 / 0.03); border: 1px solid oklch(1 0 0 / 0.05); animation: feed-in 0.5s var(--ease); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.feed__ip { color: oklch(0.85 0.01 260); }
.feed__geo { color: oklch(0.56 0.02 260); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__act { font-size: 0.66rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: 0.03em; }
.act-block { color: var(--c-block); background: oklch(0.68 0.2 25 / 0.16); }
.act-challenge { color: var(--c-challenge); background: oklch(0.8 0.15 75 / 0.16); }
.act-throttle { color: var(--c-throttle); background: oklch(0.72 0.18 303 / 0.16); }
.screen__col--globe { position: relative; display: grid; place-items: center; }
#globeScreen { width: 100%; height: 100%; position: absolute; inset: 0; }
.screen__globe-cap { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; color: oklch(0.58 0.02 260); }
.gauge { padding: 13px 15px; border-radius: 7px; background: oklch(1 0 0 / 0.03); border: 1px solid oklch(1 0 0 / 0.06); }
.gauge__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.58 0.02 260); }
.gauge__value { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 3px; color: var(--c-cyan); }
.gauge__value small { font-size: 0.85rem; font-weight: 600; margin-left: 4px; color: oklch(0.6 0.02 260); }
.gauge__value--block { color: var(--c-block); font-size: 1.45rem; }
.gauge__value--chal { color: var(--c-challenge); font-size: 1.45rem; }
.gauge--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gauge__spark { height: 32px; margin-top: 8px; display: flex; align-items: flex-end; gap: 3px; }
.gauge__spark span { flex: 1; background: var(--c-primary); border-radius: 2px 2px 0 0; transition: height 0.4s var(--ease); min-height: 2px; }

/* ---------- 企业规格清单 ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.spec__h { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.spec__no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-cyan); background: var(--c-cyan-dim); }
.spec__list { list-style: none; padding: 0; display: grid; gap: 12px; }
.spec__list li { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.spec__list li:last-child { border-bottom: none; padding-bottom: 0; }
.spec__k { font-family: var(--font-mono); font-size: 0.82rem; color: var(--fg); font-weight: 600; }
.spec__v { font-size: 0.86rem; color: var(--fg-muted); }

/* ---------- 性能基准 readout ---------- */
.bench { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.bench__row { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.bench__row:last-child { border-bottom: none; }
.bench__k { font-size: 1rem; color: var(--fg-muted); white-space: nowrap; }
.bench__dots { flex: 1; border-bottom: 1px dotted var(--border-strong); transform: translateY(-4px); }
.bench__v { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.bench__pre, .bench__u { font-size: 0.5em; color: var(--fg-muted); font-weight: 600; }
.bench__inf { color: var(--c-cyan); }

/* ---------- 安装 ---------- */
.install { max-width: 920px; }
.tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 5px; font-weight: 600; font-size: 0.9rem; color: var(--fg-muted); transition: color 0.25s, background 0.25s, box-shadow 0.25s; }
.tab__hint { font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-dim); }
.tab.is-active { color: var(--fg); background: var(--c-primary-soft); box-shadow: inset 0 0 0 1px oklch(0.63 0.185 272 / 0.32); }
.tab.is-active .tab__hint { color: var(--c-cyan); }
.terminal { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); background: oklch(0.12 0.012 265.5); }
[data-theme='light'] .terminal { background: oklch(0.17 0.015 265.5); }
.terminal__bar { display: flex; align-items: center; gap: 12px; padding: 11px 15px; background: oklch(0.17 0.015 265.5); border-bottom: 1px solid oklch(1 0 0 / 0.08); }
.terminal__dots { display: inline-flex; gap: 7px; }
.terminal__dots i { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dots .is-r { background: #ff5f57; } .terminal__dots .is-y { background: #febc2e; } .terminal__dots .is-g { background: #28c840; }
.terminal__title { font-family: var(--font-mono); font-size: 0.8rem; color: oklch(0.66 0.02 260); }
.terminal__copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 5px; font-size: 0.8rem; font-weight: 600; color: oklch(0.82 0.01 260); background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.1); transition: background 0.2s, color 0.2s; }
.terminal__copy:hover { background: oklch(1 0 0 / 0.12); }
.terminal__copy svg { width: 15px; height: 15px; }
.terminal__copy .i-check { display: none; color: var(--c-allow); }
.terminal__copy.is-copied { color: var(--c-allow); }
.terminal__copy.is-copied .i-copy { display: none; }
.terminal__copy.is-copied .i-check { display: block; }
.terminal__body { margin: 0; padding: 20px; font-size: 0.88rem; line-height: 1.85; color: oklch(0.88 0.01 260); white-space: pre-wrap; word-break: break-all; min-height: 120px; }
.terminal__body .tok-cmd { color: var(--c-cyan); }
.terminal__body .tok-flag { color: var(--c-challenge); }
.terminal__body .tok-url { color: var(--c-allow); }
.terminal__body .tok-ph { color: var(--c-throttle); }
.terminal__body .tok-prompt { color: oklch(0.52 0.02 260); user-select: none; }
.terminal__caret { display: inline-block; width: 8px; height: 1.05em; background: var(--c-cyan); vertical-align: text-bottom; animation: caret 1s steps(2) infinite; }
.terminal__caret.is-hidden { display: none; }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.install__note { margin-top: 18px; color: var(--fg-muted); font-size: 0.94rem; }
.install__note strong { color: var(--fg); }
.install__note code, .install__hint code { font-family: var(--font-mono); font-size: 0.86em; padding: 1px 6px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); word-break: break-all; }
.install__note:not(.is-active) { display: none; }
/* Docker 镜像提示:琥珀色 note(挑战/告警语义),两种安装方式共用 */
.install__hint { display: flex; gap: 11px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-lg); background: oklch(0.8 0.15 75 / 0.08); border: 1px solid oklch(0.8 0.15 75 / 0.28); color: var(--fg-muted); font-size: 0.9rem; }
.install__hint svg { width: 19px; height: 19px; color: var(--c-challenge); flex: none; margin-top: 2px; }
.install__hint strong { color: var(--c-challenge); }

/* ---------- 页脚 ---------- */
.footer { padding: 56px 0 30px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer__tag { margin-top: 14px; color: var(--fg-muted); font-size: 0.92rem; max-width: 320px; }
.footer__sys { margin-top: 12px; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 12px; }
.footer__col a { display: block; padding: 5px 0; color: var(--fg-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--c-primary-strong); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--fg-dim); font-size: 0.84rem; }
.footer__meta { font-family: var(--font-mono); }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 520px; }
  .monitor { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links, .nav__status, .nav__back, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile:not([hidden]) { display: flex; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--lg { grid-row: auto; }
  .bento__cell--wide { grid-column: span 2; }
  .telemetry__row { grid-template-columns: repeat(2, 1fr); }
  .tele { border-top: 1px solid var(--border); }
  .tele:nth-child(-n+2) { border-top: none; }
  .tele:nth-child(odd) { border-left: none; }
  .screen__body { grid-template-columns: 1fr; }
  .screen__col--feed, .screen__col--gauges { border: none; border-top: 1px solid oklch(1 0 0 / 0.06); }
  .screen__col--globe { min-height: 250px; order: -1; }
  .screen__col--gauges { flex-direction: row; flex-wrap: wrap; }
  .screen__col--gauges .gauge { flex: 1 1 45%; }
}
@media (max-width: 620px) {
  :root { --gut: 18px; }
  .bento, .specs { grid-template-columns: 1fr; }
  .bento__cell--wide { grid-column: auto; }
  .telemetry__row { grid-template-columns: 1fr 1fr; }
  .shead { grid-template-columns: 1fr; gap: 6px; }
  .shead__idx { padding-top: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .bench__row { flex-wrap: wrap; }
  .bench__k { font-size: 0.94rem; }
}
@media (max-width: 400px) {
  .telemetry__row { grid-template-columns: 1fr; }
  .tele { border-left: none; border-top: 1px solid var(--border); }
  .tele:first-child { border-top: none; }
  .footer__links { grid-template-columns: 1fr 1fr; }
}
