/* ============================================================
   NPCSMC · 新土共建 — 公开状态页
   深墨绿黑 / 暖光橙 / 草绿 / 钻石青 · 衬线展示体 + 等宽数据
   零外链，全部视觉由 CSS / 内联 SVG / Canvas 生成
   ============================================================ */

/* ---------- 0. Tokens：默认亮色（暖纸/米白），暗色为可选主题 ---------- */
:root {
  --bg-0: #f3efe6;
  --bg-1: #efe9dd;
  --bg-2: #e9e2d4;
  --paper: #fbf8f1;
  --ink: #1c2a22;
  --ink-soft: #35463c;
  --muted: #5b6c61;
  --dim: #6c7d71;
  --faint: #879789;
  --amber: #c9822f;
  --amber-deep: #a9681f;
  --amber-hover: #b87427;
  --grass: #5e8f49;
  --cyan: #3d93ae;
  --red: #c05b4d;
  --line: rgba(28, 42, 34, 0.12);
  --line-soft: rgba(28, 42, 34, 0.07);
  --line-strong: rgba(28, 42, 34, 0.22);
  --surface-1: rgba(28, 42, 34, 0.03);
  --surface-2: rgba(28, 42, 34, 0.05);
  --hover-bg: rgba(28, 42, 34, 0.035);
  --serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "Courier New", monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --pad: clamp(20px, 4.4vw, 64px);
  --accent: var(--amber);
  --accent-soft: rgba(201, 130, 47, 0.14);
  --btn-ink: #fbf8f1;
  --head-bg: linear-gradient(180deg, rgba(243, 239, 230, 0.92), rgba(243, 239, 230, 0.62) 72%, rgba(243, 239, 230, 0));
  --panel-bg: radial-gradient(120% 90% at 88% -8%, rgba(201, 130, 47, 0.12), transparent 58%), linear-gradient(158deg, #fdfbf6, #f7f2e9);
  --card-bg: linear-gradient(165deg, #fdfbf6, #f9f5ec);
  --tooltip-bg: rgba(252, 249, 242, 0.97);
  --tooltip-shadow: 0 20px 44px rgba(72, 60, 40, 0.18);
  --foot-bg: linear-gradient(180deg, rgba(243, 239, 230, 0), rgba(233, 226, 212, 0.6));
  --wordmark-a: rgba(28, 42, 34, 0.9);
  --wordmark-b: rgba(28, 42, 34, 0.2);
  --shadow-panel: 0 30px 60px -42px rgba(90, 73, 45, 0.4);
  --skeleton-a: rgba(28, 42, 34, 0.05);
  --skeleton-b: rgba(28, 42, 34, 0.115);
  --empty-bg: radial-gradient(60% 70% at 50% 50%, rgba(250, 247, 240, 0.6), rgba(250, 247, 240, 0.9));
}

:root[data-theme="dark"] {
  --bg-0: #0a0f0d;
  --bg-1: #0c1210;
  --bg-2: #121a16;
  --paper: #121a16;
  --ink: #edf2ec;
  --ink-soft: #c7d2c9;
  --muted: #9daea4;
  --dim: #71837a;
  --faint: #54655c;
  --amber: #f2b36b;
  --amber-deep: #d9954c;
  --amber-hover: #f7c184;
  --grass: #7fb069;
  --cyan: #6fc3df;
  --red: #e06c5c;
  --line: rgba(237, 242, 236, 0.085);
  --line-soft: rgba(237, 242, 236, 0.052);
  --line-strong: rgba(237, 242, 236, 0.16);
  --surface-1: rgba(255, 255, 255, 0.012);
  --surface-2: rgba(255, 255, 255, 0.03);
  --hover-bg: rgba(255, 255, 255, 0.012);
  --accent-soft: rgba(242, 179, 107, 0.14);
  --btn-ink: #171208;
  --head-bg: linear-gradient(180deg, rgba(10, 15, 13, 0.9), rgba(10, 15, 13, 0.6) 72%, rgba(10, 15, 13, 0));
  --panel-bg: radial-gradient(120% 90% at 88% -8%, rgba(242, 179, 107, 0.12), transparent 58%), linear-gradient(158deg, rgba(24, 34, 29, 0.72), rgba(11, 17, 14, 0.52));
  --card-bg: linear-gradient(165deg, rgba(20, 29, 25, 0.55), rgba(10, 15, 13, 0.3));
  --tooltip-bg: rgba(9, 14, 12, 0.94);
  --tooltip-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  --foot-bg: linear-gradient(180deg, rgba(12, 18, 16, 0), rgba(9, 14, 12, 0.55));
  --wordmark-a: rgba(237, 242, 236, 0.92);
  --wordmark-b: rgba(237, 242, 236, 0.22);
  --shadow-panel: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
  --skeleton-a: rgba(237, 242, 236, 0.055);
  --skeleton-b: rgba(237, 242, 236, 0.12);
  --empty-bg: radial-gradient(60% 70% at 50% 50%, rgba(10, 15, 13, 0.55), rgba(10, 15, 13, 0.82));
}

[data-accent="amber"] {
  --accent: var(--amber);
  --accent-soft: color-mix(in srgb, var(--amber) 14%, transparent);
}
[data-accent="grass"] {
  --accent: var(--grass);
  --accent-soft: color-mix(in srgb, var(--grass) 14%, transparent);
}
[data-accent="cyan"] {
  --accent: var(--cyan);
  --accent-soft: color-mix(in srgb, var(--cyan) 14%, transparent);
}
[data-accent="red"] {
  --accent: var(--red);
  --accent-soft: color-mix(in srgb, var(--red) 14%, transparent);
}

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
}
html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1200px 820px at 78% -10%, rgba(242, 179, 107, 0.07), transparent 62%),
    radial-gradient(1000px 900px at 2% 16%, rgba(127, 176, 105, 0.05), transparent 60%),
    radial-gradient(900px 700px at 105% 72%, rgba(111, 195, 223, 0.04), transparent 60%),
    linear-gradient(172deg, var(--bg-0) 0%, var(--bg-1) 38%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(242, 179, 107, 0.28);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid rgba(242, 179, 107, 0.55);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  border: 3px solid var(--bg-0);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--ink) 26%, transparent);
}

/* ---------- 2. Layered atmosphere ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere .glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}
.glow-amber {
  width: min(760px, 62vw);
  height: min(640px, 52vw);
  top: -18vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(242, 179, 107, 0.11), transparent 68%);
  filter: blur(28px);
}
.glow-grass {
  width: min(680px, 56vw);
  height: min(600px, 46vw);
  top: 34vh;
  left: -24vw;
  background: radial-gradient(circle, rgba(127, 176, 105, 0.07), transparent 66%);
  filter: blur(30px);
}
.glow-cyan {
  width: min(560px, 48vw);
  height: min(520px, 42vw);
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(111, 195, 223, 0.06), transparent 66%);
  filter: blur(30px);
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 26%, transparent 82%, rgba(0, 0, 0, 0.55));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 26%, transparent 82%, rgba(0, 0, 0, 0.55));
}

/* 数据缺失时的大号占位符收窄，避免 em dash 被误认为加载条 */
.lp-number.is-na {
  font-size: clamp(38px, 4vw, 52px);
  letter-spacing: 0;
  color: var(--dim);
}
.group-online.is-na {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0;
  color: var(--dim);
}
.stat-num.is-na {
  font-size: clamp(20px, 1.9vw, 27px);
  letter-spacing: 0;
  color: var(--dim);
}
.gauge-value.is-na {
  font-size: 22px;
  letter-spacing: 0;
  color: var(--dim);
}
.hw-metric-value.is-na {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0;
  color: var(--dim);
}

/* 极淡噪点，避免大面积渐变出现色带 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.032;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--btn-ink);
  font-size: 13px;
  border-radius: 2px;
}
.skip-link:focus {
  top: 14px;
}

.wrap {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-xs {
  width: 13px;
  height: 13px;
  stroke-width: 1.6;
}
.icon-sm {
  width: 15px;
  height: 15px;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 3. Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s ease;
}
.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-glyph {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.25;
  stroke-linejoin: round;
  flex: none;
  transition: transform 0.6s var(--ease);
}
.brand-glyph circle {
  fill: var(--amber);
  stroke: none;
}
.brand:hover .brand-glyph {
  transform: rotate(-8deg) scale(1.04);
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-divider {
  width: 1px;
  height: 15px;
  background: var(--line-strong);
}
.brand-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}
.head-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  margin-inline: auto;
}
.head-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.25s;
  white-space: nowrap;
}
.head-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  opacity: 0.8;
}
.head-nav a:hover {
  color: var(--ink);
}
.head-nav a:hover::after {
  transform: scaleX(1);
}
.head-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  flex: none;
}

.live-state {
  --live-color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-1);
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}
.live-state[data-state="live"] {
  --live-color: var(--grass);
  color: var(--ink-soft);
  border-color: rgba(127, 176, 105, 0.28);
}
.live-state[data-state="connecting"],
.live-state[data-state="reconnecting"] {
  --live-color: var(--amber);
}
.live-state[data-state="offline"] {
  --live-color: var(--red);
  color: var(--muted);
  border-color: rgba(224, 108, 92, 0.26);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-color);
  flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live-color) 14%, transparent);
  animation: breathe 3.2s ease-in-out infinite;
}
.live-panel .live-dot,
.lp-eyebrow .live-dot {
  --live-color: var(--grass);
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--surface-1);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  white-space: nowrap;
}
.map-btn .icon-sm {
  color: var(--amber);
}
.map-btn:hover {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  color: var(--ink);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}

/* 主题切换按钮（亮 / 暗），SVG 图标随当前主题切换 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface-1);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.35s var(--ease);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
  transform: rotate(-8deg);
}
.theme-toggle .icon {
  pointer-events: none;
}
.theme-icon-sun {
  display: none;
}
[data-theme="dark"] .theme-icon-sun {
  display: block;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding-top: clamp(52px, 7.4vw, 100px);
  padding-bottom: clamp(62px, 8vw, 112px);
  overflow: hidden;
}
.hero-terrain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}
.hero-terrain svg {
  width: 100%;
  height: 100%;
}
.terrain-glow path {
  fill: none;
  stroke: rgba(242, 179, 107, 0.34);
  stroke-width: 2.6;
}
.terrain-group path {
  fill: none;
  stroke: rgba(127, 176, 105, 0.26);
  stroke-width: 1;
}
.terrain-group path:nth-child(2) {
  stroke: rgba(127, 176, 105, 0.19);
}
.terrain-group path:nth-child(3) {
  stroke: rgba(127, 176, 105, 0.13);
}
.terrain-group path:nth-child(4) {
  stroke: rgba(127, 176, 105, 0.1);
}
.terrain-group path:nth-child(5) {
  stroke: rgba(127, 176, 105, 0.08);
}
.terrain-group path:nth-child(6),
.terrain-group path:nth-child(7) {
  stroke: rgba(242, 179, 107, 0.22);
}
.terrain-dots circle {
  fill: rgba(242, 179, 107, 0.6);
}
.terrain-dots circle:nth-child(even) {
  fill: rgba(127, 176, 105, 0.55);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, 0.84fr);
  gap: clamp(40px, 5.6vw, 92px);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-eyebrow .mono {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.eyebrow-rule {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), rgba(242, 179, 107, 0));
}
.eyebrow-sep {
  color: var(--faint);
}

.hero-title {
  margin: 24px 0 26px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(46px, 6.1vw, 84px);
  line-height: 1.07;
  letter-spacing: 0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--amber);
  text-shadow: 0 0 46px rgba(242, 179, 107, 0.22);
}
.hero-sub {
  max-width: 34em;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}
.hero-sub em {
  font-style: normal;
  color: var(--ink-soft);
}

.op-clock {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(26px, 3vw, 36px) 0 clamp(28px, 3.4vw, 38px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.op-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-right: clamp(16px, 2vw, 26px);
  align-self: center;
}
.op-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.op-item + .op-item {
  margin-left: clamp(16px, 2.2vw, 30px);
  padding-left: clamp(16px, 2.2vw, 30px);
  border-left: 1px solid var(--line);
}
.op-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.op-num-sm {
  font-size: clamp(21px, 2.1vw, 27px);
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}
.op-unit {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.op-sec {
  margin-left: auto;
  padding-left: clamp(12px, 1.6vw, 20px);
  border-left: 1px solid var(--line-soft);
}
.op-clock-text {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--btn-ink);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--amber-hover);
  border-color: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--amber) 24%, transparent);
}
.btn-primary .btn-trail {
  opacity: 0.7;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-soft);
  background: var(--surface-1);
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--amber) 42%, transparent);
  color: var(--ink);
  background: var(--surface-2);
}
.btn-ghost .icon {
  color: var(--dim);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.btn-ghost:hover .icon {
  color: var(--amber);
  transform: translateY(2px);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.6vw, 38px);
  margin-top: clamp(30px, 3.6vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.hero-strip li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--dim);
}
.hs-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.hs-unit {
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* Live instrument panel */
.live-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-panel);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.live-panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
  border-radius: 1px;
}
/* 四角微刻线 */
.live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--amber), var(--amber)) left top / 14px 1px no-repeat,
    linear-gradient(var(--amber), var(--amber)) left top / 1px 14px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 1px 14px no-repeat;
  opacity: 0.75;
}
.lp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.lp-eyebrow .live-dot {
  box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.13);
}
.lp-meta {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.lp-number-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 20px;
}
.lp-number {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(72px, 8.6vw, 118px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(242, 179, 107, 0.14);
}
.lp-cap {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding-bottom: 10px;
}
.lp-cap-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.lp-scale {
  position: relative;
  height: 16px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background-color: var(--surface-1);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px);
  overflow: hidden;
}
.lp-scale-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--amber) 16%, transparent), color-mix(in srgb, var(--amber) 55%, transparent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--amber) 26%, transparent);
  transition: width 1.1s var(--ease);
}
.lp-caption {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.lp-groups {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.lp-groups li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  min-width: 0;
}
.g-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.4s, box-shadow 0.4s;
}
.lp-groups li[data-accent] .g-dot[data-status="online"] {
  background: var(--grass);
  box-shadow: 0 0 10px rgba(127, 176, 105, 0.55);
}
.g-name {
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  color: var(--ink);
}
.g-max {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
}
.lp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--dim);
}
.lp-foot b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- 5. Section shell ---------- */
.section {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding-block: clamp(60px, 7.2vw, 104px);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 48px);
  margin-bottom: clamp(26px, 3.4vw, 46px);
}
.sec-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.sec-kicker .mono {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.kicker-sep {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), rgba(242, 179, 107, 0));
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.sec-meta {
  flex: none;
  padding-bottom: 4px;
  font-size: 11.5px;
  line-height: 1.95;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
}
.sec-meta span {
  color: var(--faint);
}

/* ---------- 6. Groups ---------- */
.group-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.group {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 2.3vw, 32px);
  transition: background 0.45s;
}
.group + .group {
  border-left: 1px solid var(--line);
}
.group::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.85;
  transition: transform 0.55s var(--ease);
}
.group:hover::before {
  transform: scaleX(1);
}
.group:hover {
  background: var(--hover-bg);
}
.group-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.group-id {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.group-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.4s, box-shadow 0.4s;
}
.group-status[data-status="online"] {
  --live-color: var(--grass);
}
.group-status[data-status="online"] .status-dot {
  background: var(--grass);
  box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.14), 0 0 14px rgba(127, 176, 105, 0.45);
  animation: breathe 3.2s ease-in-out infinite;
}
.group-status[data-status="online"] .status-text {
  color: var(--grass);
}
.group-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: clamp(22px, 2.6vw, 32px);
}
.group-online {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(46px, 5.2vw, 70px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.group-max {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.group-role {
  margin: 10px 0 clamp(18px, 2.2vw, 24px);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.group-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(14px, 1.8vw, 22px);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.group-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.group-meta dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  flex: none;
}
.group-meta dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.group-spark {
  margin-top: auto;
  padding-top: clamp(20px, 2.4vw, 28px);
}
.spark {
  width: 100%;
  height: 56px;
  overflow: visible;
}
.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.4s;
}
.spark-baseline {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}
.spark-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.spark-cap .mono {
  color: var(--dim);
}

/* offline 群组：信息保留，整体降饱和 */
.group.is-offline .group-online {
  color: var(--dim);
}
.group.is-offline .group-role {
  color: var(--faint);
}
.group.is-offline .group-spark {
  opacity: 0.42;
  filter: grayscale(1);
}
.group.is-offline .group-meta dd {
  color: var(--muted);
}
.group.is-offline .group-status[data-status="online"] .status-text {
  color: var(--accent);
}

/* ---------- 7. Chart card ---------- */
.chart-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card-bg);
  transition: background 0.35s ease;
}
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  padding: clamp(15px, 1.9vw, 22px) clamp(16px, 2.2vw, 28px);
  border-bottom: 1px solid var(--line-soft);
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.8vw, 24px);
  flex-wrap: wrap;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.legend-swatch {
  width: 15px;
  height: 2px;
  background: var(--ink-soft);
  flex: none;
}
.legend-swatch[data-series="713"] {
  background: var(--amber);
}
.legend-swatch[data-series="713z"] {
  background: var(--grass);
}
.legend-swatch[data-series="713s"] {
  background: var(--cyan);
}
.legend-total {
  color: var(--ink-soft);
}
.legend-total .legend-swatch {
  height: 3px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(242, 179, 107, 0.45);
}
.chart-toolbar-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  margin-left: auto;
  flex-wrap: wrap;
}
.chart-chips {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface-1);
  white-space: nowrap;
}
.chip-key {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.chip-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-soft);
}
.range-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.range-switch button {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.range-switch button:first-child {
  border-left: 0;
}
.range-switch button:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.range-switch button.is-active {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  box-shadow: inset 0 -1px 0 var(--amber);
}
.chart-body {
  padding: clamp(8px, 1.2vw, 14px) clamp(8px, 1.4vw, 18px) 0;
}
.chart-canvas-wrap {
  position: relative;
  height: clamp(300px, 31vw, 392px);
  outline: none;
  touch-action: none;
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
}
.chart-canvas-wrap.is-dragging {
  cursor: grabbing;
}
.chart-canvas-wrap:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--amber) 55%, transparent);
  outline-offset: 3px;
}
.chart-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}
.chart-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  min-width: 158px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--tooltip-bg);
  box-shadow: var(--tooltip-shadow);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  pointer-events: none;
  font-size: 11.5px;
  color: var(--muted);
  transform: translate3d(0, 0, 0);
}
.chart-tooltip[hidden] {
  display: none;
}
.tt-time {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.tt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 9px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.tt-total b {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--amber);
}
.tt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
}
.tt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.tt-row b {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 20px;
  background: var(--empty-bg);
}
.chart-empty[hidden] {
  display: none;
}
.chart-empty-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink-soft);
}
.chart-empty-sub {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--dim);
}
.chart-busy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--tooltip-bg);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.chart-busy[hidden] {
  display: none;
}
.chart-busy i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 13px clamp(16px, 2.2vw, 28px);
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.chart-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.chart-hint i {
  font-style: normal;
  color: var(--faint);
}
.chart-coverage {
  margin: 0 0 0 auto;
  font-family: var(--font-mono, Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(150, 160, 148, 0.55);
}
.chart-foot-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.chart-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.chart-reset:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.chart-reset[hidden] {
  display: none;
}

/* ---------- 8. Stats ---------- */
.stats-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  counter-reset: stat-index;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 198px;
  padding: clamp(20px, 2vw, 30px) clamp(15px, 1.6vw, 24px);
  transition: background 0.4s;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat::before {
  counter-increment: stat-index;
  content: "0" counter(stat-index);
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--surface-2);
  pointer-events: none;
}
.stat:hover {
  background: var(--hover-bg);
}
.stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.stat-icon {
  color: var(--dim);
  transition: color 0.3s;
}
.stat:nth-child(1) .stat-icon {
  color: rgba(242, 179, 107, 0.75);
}
.stat:nth-child(2) .stat-icon {
  color: rgba(127, 176, 105, 0.75);
}
.stat:nth-child(3) .stat-icon {
  color: rgba(111, 195, 223, 0.75);
}
.stat:nth-child(5) .stat-icon {
  color: rgba(224, 108, 92, 0.68);
}
.stat:hover .stat-icon {
  color: var(--ink-soft);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  min-width: 0;
}
.stat-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: clamp(24px, 2.9vw, 44px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}
/* 完整千分位数字：按字符长度收紧字号，保证 5 列桌面与 2 列移动端都不溢出 */
.stat-num[data-len="9"] {
  font-size: clamp(22px, 2.45vw, 36px);
}
.stat-num[data-len="10"] {
  font-size: clamp(20px, 2.08vw, 31px);
}
.stat-num[data-len="11"],
.stat-num[data-len="12"] {
  font-size: clamp(18px, 1.82vw, 27px);
}
.stat-unit {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.stat-note {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* ---------- 9. Hardware ---------- */
.hw-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.hw {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.1vw, 30px) clamp(16px, 1.8vw, 26px);
}
.hw + .hw {
  border-left: 1px solid var(--line);
}
.hw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: clamp(16px, 1.8vw, 22px);
}
.hw-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--dim);
  white-space: nowrap;
}
.hw-tag {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gauge {
  position: relative;
  width: clamp(118px, 10.5vw, 146px);
  aspect-ratio: 1;
  margin: 2px auto clamp(16px, 1.8vw, 22px);
}
.gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gauge-ticks line {
  stroke: color-mix(in srgb, var(--ink) 12%, transparent);
  stroke-width: 1.25;
  stroke-linecap: round;
  transition: stroke 0.5s;
}
.gauge-ticks line.is-on {
  stroke: var(--accent);
}
.gauge-progress path,
.gauge-progress circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.5;
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding-top: 3px;
}
.gauge-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 2.3vw, 33px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.gauge-unit {
  align-self: flex-end;
  padding-bottom: 2px;
  font-size: 10.5px;
  color: var(--dim);
}
.hw-name {
  min-height: 2.7em;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.hw-spark {
  width: 100%;
  height: 30px;
  margin-top: auto;
  padding-top: 14px;
  overflow: visible;
}
.hw-spark path {
  fill: none;
  stroke: color-mix(in srgb, var(--amber) 55%, transparent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hw-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}
.hw-metric-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hw-metric-unit {
  font-size: 11.5px;
  color: var(--dim);
}
.hw-bar {
  position: relative;
  height: 7px;
  margin: 5px 0 13px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  overflow: hidden;
}
.hw-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.9s var(--ease);
}
.hw-bar--seg {
  height: 10px;
}
.hw-bar--seg .hw-bar-fill {
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 8px);
  opacity: 0.85;
  box-shadow: none;
}
.hw-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.hw-meta-row b {
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-soft);
}
.hw-note {
  margin-top: auto;
  padding-top: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.hw-cpu .hw-spark {
  margin-top: auto;
  padding-top: 14px;
}
.hw-net .hw-note.net-total {
  margin-top: auto;
  padding-top: 16px;
  font-size: 10.5px;
}
.net-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.net-row:first-of-type {
  margin-top: 0;
}
.net-value {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.hw-net .hw-bar {
  height: 5px;
  margin: 7px 0 0;
}
.hw-net .hw-bar-fill {
  background: linear-gradient(90deg, rgba(111, 195, 223, 0.2), var(--cyan));
}
.hw-disk .gauge {
  margin-bottom: 14px;
}

/* ---------- 10. Footer ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(46px, 5.6vw, 76px);
  background: var(--foot-bg);
  transition: background 0.35s ease;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(30px, 5vw, 84px);
  padding-bottom: clamp(34px, 4vw, 52px);
}
.foot-wordmark {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 5.8vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--wordmark-a), var(--wordmark-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-tagline {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.foot-tagline .mono {
  margin-right: 8px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--amber);
}
.foot-desc {
  font-size: 12px;
  line-height: 1.95;
  color: var(--dim);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 56px);
}
.foot-col h3 {
  margin-bottom: 16px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.foot-col li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.foot-col li > span {
  color: var(--dim);
  flex: none;
}
.foot-col li > b {
  font-weight: 400;
  color: var(--ink-soft);
  text-align: right;
  overflow-wrap: anywhere;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: color 0.25s;
}
.foot-col a:hover {
  color: var(--amber);
}
.foot-col a .icon {
  color: var(--faint);
}
.foot-col--notes {
  padding-left: clamp(0px, 1.6vw, 22px);
}
.foot-col--notes li {
  display: block;
  line-height: 1.75;
  font-size: 11px;
  color: var(--dim);
  text-align: left;
}
.foot-admin {
  font-size: 11px !important;
  color: var(--faint) !important;
  letter-spacing: 0.08em;
  border-bottom: 1px dashed color-mix(in srgb, var(--faint) 55%, transparent);
  padding-bottom: 1px;
}
.foot-admin:hover {
  color: var(--muted) !important;
  border-bottom-color: var(--muted);
}
.foot-col .foot-muted {
  color: var(--faint) !important;
}
.foot-col b.foot-muted {
  font-weight: 400;
}
.foot-col--notes .foot-map-note {
  color: var(--dim);
}
.foot-col--notes .foot-map-note .mono {
  color: var(--muted);
  letter-spacing: 0.02em;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--faint);
}
.foot-bottom .mono {
  color: var(--dim);
}

.noscript {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 20px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  background: var(--tooltip-bg);
  color: var(--red);
  font-size: 13px;
}

/* ---------- 11. Skeleton / motion ---------- */
.sk {
  display: inline-block;
  width: 2.2em;
  height: 0.72em;
  min-width: 18px;
  border-radius: 2px;
  background: linear-gradient(100deg, var(--skeleton-a) 20%, var(--skeleton-b) 42%, var(--skeleton-a) 64%);
  background-size: 220% 100%;
  animation: shimmer 1.8s linear infinite;
  vertical-align: baseline;
}
.sk-num {
  width: 2.5em;
  height: 0.7em;
}
.sk-num-big {
  width: 1.7em;
  height: 0.78em;
}
.sk-num-xl {
  width: 1.45em;
  height: 0.84em;
}
.sk-num-sm {
  width: 1.9em;
  height: 0.78em;
  min-width: 14px;
}
.gauge-value .sk {
  width: 1.5em;
  height: 0.82em;
}
.hw-metric-value .sk {
  width: 1.6em;
  height: 0.82em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.95s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--live-color, var(--accent)) 14%, transparent);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px transparent;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(36px, 5vw, 52px);
  }
  .live-panel {
    max-width: 720px;
  }
  .foot-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .stats-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
    min-height: 0;
  }
  .stat:nth-child(-n + 2) {
    border-top: 0;
  }
  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .stat:last-child {
    grid-column: 1 / -1;
  }
  .hw-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hw {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hw:nth-child(-n + 2) {
    border-top: 0;
  }
  .hw:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .gauge {
    width: clamp(112px, 13vw, 140px);
  }
}

@media (max-width: 980px) {
  .head-nav {
    display: none;
  }
  .group-rail {
    grid-template-columns: 1fr;
  }
  .group {
    padding: clamp(22px, 4vw, 30px);
  }
  .group + .group {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .group-main {
    margin-top: 20px;
  }
  .group-online {
    font-size: clamp(46px, 9vw, 60px);
  }
  .group-spark {
    padding-top: 20px;
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
  .foot-col--notes {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: clamp(18px, 5vw, 30px);
  }
  .head-inner {
    height: 64px;
  }
  .brand-sub,
  .brand-divider {
    display: none;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-title {
    margin: 20px 0 20px;
    font-size: clamp(42px, 11.4vw, 58px);
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.9;
  }
  .hero-terrain {
    opacity: 0.55;
  }
  .op-clock {
    padding: 16px 0;
    margin: 26px 0 28px;
  }
  .op-label {
    width: 100%;
    margin-bottom: 12px;
  }
  .op-item + .op-item {
    margin-left: clamp(12px, 3.4vw, 20px);
    padding-left: clamp(12px, 3.4vw, 20px);
  }
  .op-sec {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-soft);
  }
  .lp-number {
    font-size: clamp(64px, 17vw, 92px);
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .sec-meta {
    text-align: left;
    padding-bottom: 0;
  }
  .sec-head h2 {
    font-size: clamp(28px, 7.4vw, 34px);
  }
  .chart-toolbar {
    gap: 14px;
  }
  .chart-toolbar-right {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .chart-canvas-wrap {
    height: clamp(250px, 58vw, 320px);
  }
  .chart-body {
    padding-inline: 2px;
  }
  .chart-hint {
    display: none;
  }
  .chart-foot-right {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .foot-cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .live-state {
    padding: 6px 8px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
  .map-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 7px;
  }
  .map-btn .icon-xs {
    display: none;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .stat-num {
    font-size: clamp(20px, 5.6vw, 25px);
  }
  .stat-num[data-len="9"] {
    font-size: clamp(18px, 5vw, 23px);
  }
  .stat-num[data-len="10"] {
    font-size: clamp(16px, 4.4vw, 21px);
  }
  .stat-num[data-len="11"],
  .stat-num[data-len="12"] {
    font-size: clamp(14px, 4vw, 19px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .hero-strip {
    gap: 12px 22px;
  }
  .hero-strip li {
    font-size: 10.5px;
  }
  .lp-groups li {
    font-size: 12px;
  }
  .chart-chips {
    width: 100%;
  }
  .chip {
    flex: 1;
    justify-content: space-between;
  }
  .range-switch {
    width: 100%;
  }
  .range-switch button {
    flex: 1;
    padding: 8px 4px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .hw-rail {
    grid-template-columns: 1fr;
  }
  .hw {
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }
  .hw:first-child {
    border-top: 0;
  }
  .gauge {
    width: 132px;
  }
  .hw-name {
    min-height: 0;
  }
  .hw-spark {
    margin-top: 10px;
  }
  .foot-wordmark {
    font-size: clamp(42px, 13vw, 58px);
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 9px;
  }
  .brand-glyph {
    width: 23px;
    height: 23px;
  }
  .brand-name {
    font-size: 17px;
  }
  .head-inner {
    gap: 8px;
  }
  .head-right {
    gap: 8px;
  }
  .theme-toggle {
    width: 30px;
    height: 30px;
  }
  .live-state {
    padding: 6px 9px;
  }
  .hero-eyebrow {
    font-size: 10.5px;
    gap: 8px;
  }
  .eyebrow-rule {
    width: 20px;
  }
  .op-num {
    font-size: clamp(34px, 10.4vw, 44px);
  }
  .op-num-sm {
    font-size: 18px;
  }
  .op-item + .op-item {
    margin-left: 12px;
    padding-left: 12px;
  }
  .sec-kicker {
    letter-spacing: 0.14em;
  }
  .stat {
    padding: 18px 14px;
  }
  .chart-canvas-wrap {
    height: 240px;
  }
}

@media (max-width: 360px) {
  .live-state #live-text {
    display: none;
  }
  .live-state {
    padding: 6px 9px;
  }
}

/* ---------- 13. 亮色主题局部适配（暖纸底上的深色细节） ---------- */
[data-theme="light"] .glow-amber {
  background: radial-gradient(circle, rgba(201, 130, 47, 0.13), transparent 68%);
}
[data-theme="light"] .glow-grass {
  background: radial-gradient(circle, rgba(94, 143, 73, 0.08), transparent 66%);
}
[data-theme="light"] .glow-cyan {
  background: radial-gradient(circle, rgba(61, 147, 174, 0.06), transparent 66%);
}
[data-theme="light"] .grid-lines {
  opacity: 0.72;
}
[data-theme="light"] body::after {
  opacity: 0.026;
}
[data-theme="light"] .hero-terrain {
  opacity: 0.82;
}
[data-theme="light"] .terrain-glow path {
  stroke: rgba(201, 130, 47, 0.3);
}
[data-theme="light"] .terrain-group path {
  stroke: rgba(94, 143, 73, 0.3);
}
[data-theme="light"] .terrain-group path:nth-child(2) {
  stroke: rgba(94, 143, 73, 0.23);
}
[data-theme="light"] .terrain-group path:nth-child(3) {
  stroke: rgba(94, 143, 73, 0.16);
}
[data-theme="light"] .terrain-group path:nth-child(4) {
  stroke: rgba(94, 143, 73, 0.12);
}
[data-theme="light"] .terrain-group path:nth-child(5) {
  stroke: rgba(94, 143, 73, 0.09);
}
[data-theme="light"] .terrain-group path:nth-child(6),
[data-theme="light"] .terrain-group path:nth-child(7) {
  stroke: rgba(201, 130, 47, 0.26);
}
[data-theme="light"] .terrain-dots circle {
  fill: rgba(201, 130, 47, 0.65);
}
[data-theme="light"] .terrain-dots circle:nth-child(even) {
  fill: rgba(94, 143, 73, 0.6);
}
[data-theme="light"] .hero-title em {
  text-shadow: 0 0 36px rgba(201, 130, 47, 0.16);
}
[data-theme="light"] :focus-visible {
  outline-color: rgba(201, 130, 47, 0.65);
}
[data-theme="light"] .live-state[data-state="live"] {
  border-color: color-mix(in srgb, var(--grass) 40%, transparent);
}
[data-theme="light"] .live-state[data-state="offline"] {
  border-color: color-mix(in srgb, var(--red) 38%, transparent);
}
[data-theme="light"] .group-status[data-status="online"] .status-dot {
  box-shadow: 0 0 0 3px rgba(94, 143, 73, 0.16), 0 0 12px rgba(94, 143, 73, 0.35);
}
[data-theme="light"] .lp-groups li[data-accent] .g-dot[data-status="online"] {
  box-shadow: 0 0 0 2px rgba(94, 143, 73, 0.14), 0 0 10px rgba(94, 143, 73, 0.4);
}
[data-theme="light"] .legend-total .legend-swatch {
  box-shadow: 0 0 10px rgba(201, 130, 47, 0.4);
}
[data-theme="light"] .stat:nth-child(1) .stat-icon {
  color: color-mix(in srgb, var(--amber) 75%, var(--ink));
}
[data-theme="light"] .stat:nth-child(2) .stat-icon {
  color: color-mix(in srgb, var(--grass) 78%, var(--ink));
}
[data-theme="light"] .stat:nth-child(3) .stat-icon {
  color: color-mix(in srgb, var(--cyan) 78%, var(--ink));
}
[data-theme="light"] .stat:nth-child(5) .stat-icon {
  color: color-mix(in srgb, var(--red) 72%, var(--ink));
}
[data-theme="light"] .stat:hover .stat-icon {
  color: var(--ink-soft);
}
/* sparkline 面积渐变随主题加深 */
[data-theme="light"] #spark-fill-713 stop:first-child {
  stop-color: #c9822f;
}
[data-theme="light"] #spark-fill-713z stop:first-child {
  stop-color: #5e8f49;
}
[data-theme="light"] #spark-fill-713s stop:first-child {
  stop-color: #3d93ae;
}
[data-theme="light"] .chart-coverage {
  color: var(--dim);
}
/* 主题切换过渡：避免切换瞬间的硬跳变（不影响 reduced-motion，媒体查询会覆盖动画时长） */
.theme-toggle,
.site-head,
.live-panel,
.chart-card,
.site-foot,
.sk,
.gauge-ticks line,
.terrain-group path,
.terrain-glow path {
  transition-property: background, background-color, border-color, color, box-shadow, stroke, opacity;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

/* ---------- 14. Reduced motion ---------- */
@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;
  }
  .rise,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .sk {
    animation: none !important;
    background: var(--skeleton-a) !important;
  }
}
