/* ============================================================
   QQFarm Portal · 钢铁侠科技风 v7
   暗黑机库 + 红金装甲 + 蓝色能量核心 HUD 界面
   ============================================================ */

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

:root {
  /* 后台可覆盖的四个色：主色 / 点缀色 / 正文 / 次要文字 */
  --primary: #d9a441;
  --primary-rgb: 217, 164, 65;
  --cta: #b8482b;
  --cta-rgb: 184, 72, 43;
  --text: #e9e2d6;
  --text-muted: #93a7b8;

  --gold: #e9b44c;
  --bg: #04070d;
  --panel: rgba(9, 16, 26, 0.82);
  --panel-solid: #0b1220;
  --line: rgba(var(--primary-rgb), 0.16);
  --line-strong: rgba(var(--primary-rgb), 0.42);
  --radius: 14px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
}

[data-theme="light"] {
  --primary: #96631b;
  --primary-rgb: 150, 99, 27;
  --text: #17222b;
  --text-muted: #4a6070;
  --bg: #eef3f7;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --line: rgba(var(--primary-rgb), 0.18);
  --line-strong: rgba(var(--primary-rgb), 0.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

/* ---------- 背景：网格 + 光晕 + 星星（默认黑色，星星只在夜间显示） ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.85), transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.85), transparent 72%);
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.07) 1px, transparent 1px);
}

/* 星星容器与星点 */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
[data-theme="light"] .stars { display: none; }

.stars-twinkle-layer,
.stars-float-layer {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  color: var(--star-color, #9aecff);
  background: currentColor;
  animation: starTwinkle var(--star-duration, 3.6s) ease-in-out var(--star-delay, 0s) infinite;
}

/* 少量星点加十字光芒，更有深空感 */
.star:nth-of-type(9n) {
  box-shadow:
    -5px 0 0 -0.5px currentColor,
    5px 0 0 -0.5px currentColor,
    0 -5px 0 -0.5px currentColor,
    0 5px 0 -0.5px currentColor;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: var(--star-max-opacity, 0.5); transform: scale(1); }
}

.star--float {
  bottom: -6px;
  opacity: 0;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
  animation: starFloatUp var(--star-duration, 20s) linear var(--star-delay, 0s) infinite;
}

@keyframes starFloatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.65; }
  60%  { opacity: 0.42; }
  94%  { opacity: 0.12; }
  100% { transform: translateY(-104vh) translateX(var(--drift-x, 1vw)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: var(--star-max-opacity, 0.4); }
  .star--float { animation: none; opacity: 0; }
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48rem 26rem at 82% -8%, rgba(var(--cta-rgb), 0.16), transparent 62%),
    radial-gradient(52rem 30rem at 10% 4%, rgba(var(--primary-rgb), 0.12), transparent 64%);
}
[data-theme="light"] .bg-glow {
  background:
    radial-gradient(48rem 26rem at 82% -8%, rgba(var(--cta-rgb), 0.08), transparent 62%),
    radial-gradient(52rem 30rem at 10% 4%, rgba(var(--primary-rgb), 0.10), transparent 64%);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .topbar { background: rgba(238, 243, 247, 0.82); }

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-badge {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.22), inset 0 0 10px rgba(var(--primary-rgb), 0.08);
  overflow: hidden;
  background: rgba(var(--primary-rgb), 0.06);
  flex: none;
}
.brand-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .25s, box-shadow .25s, transform .15s;
}
.theme-toggle:hover { color: var(--primary); box-shadow: 0 0 16px rgba(var(--primary-rgb),.3); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ---------- 主图 Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(46rem 24rem at 88% 8%, rgba(var(--cta-rgb), 0.10), transparent 62%),
    radial-gradient(40rem 22rem at 12% 0%, rgba(var(--primary-rgb), 0.07), transparent 64%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 28px 76px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-left .status-bar { align-self: flex-start; }

/* 主图视觉区 */
.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.32);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 46px rgba(var(--primary-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: 64% 30%;
}
/* 左侧渐隐，与文案区自然衔接 */
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(4, 7, 13, 0.42) 14%, transparent 42%);
  pointer-events: none;
}
[data-theme="light"] .hero-visual::after {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(238, 243, 247, 0.45) 14%, transparent 42%);
}
/* HUD 边角线 */
.visual-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}
.visual-frame::before,
.visual-frame::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--primary);
  opacity: 0.9;
}
.visual-frame::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.visual-frame::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }

/* 主图底部向页面背景渐变过渡 */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
[data-theme="light"] .hero {
  background-image:
    linear-gradient(90deg, rgba(245, 249, 252, 0.97) 0%, rgba(245, 249, 252, 0.9) 36%, rgba(245, 249, 252, 0.55) 64%, rgba(245, 249, 252, 0.25) 100%),
    url("assets/hero-iron.jpg");
  background-position: 50% 38%;
}

[data-theme="light"] .hero::after {
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 28px 80px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--mono);
  margin-bottom: 18px;
}
.eyebrow-dash {
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--cta), var(--primary));
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.6);
}

.hero h1 {
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  color: var(--text);
}

.highlight {
  background: linear-gradient(100deg, var(--cta) 0%, var(--gold) 45%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(var(--cta-rgb), 0.25));
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 30px;
}

/* ---------- 状态 HUD ---------- */
.status-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: rgba(9, 16, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
[data-theme="light"] .status-bar { background: rgba(255, 255, 255, 0.7); }

.status-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.status-bar-item .label { letter-spacing: 0.05em; }
.status-bar-item strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.status-divider { width: 1px; background: var(--line); }

.hud-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px currentColor;
  animation: hudPulse 2.4s infinite;
  flex: none;
}
.hud-dot--amber { background: var(--gold); color: var(--gold); }
@keyframes hudPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ============================================================
   进入面板（输入框重做）
   ============================================================ */
.hero-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  border-radius: var(--radius);
  padding: 26px 26px 18px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 44px rgba(var(--primary-rgb), 0.12),
    0 0 0 1px rgba(var(--primary-rgb), 0.08);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
[data-theme="light"] .hero-panel {
  box-shadow: 0 24px 60px rgba(13, 27, 38, 0.16), inset 0 1px 0 rgba(255,255,255,.9);
}

/* HUD 四角括号 */
.corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0.85;
  pointer-events: none;
}
.corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--primary);
  opacity: 0.9;
}
.panel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--primary);
  opacity: 1;
  pointer-events: none;
}

.access-input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 46px;
  font-size: 15px;
  font-family: var(--font);
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(2, 8, 14, 0.78);
  border: 1px solid rgba(var(--primary-rgb), 0.46);
  border-radius: 10px;
  outline: none;
  transition: border-color .22s, box-shadow .22s, background .22s;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .access-input {
  background: #ffffff;
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: inset 0 1px 3px rgba(13, 27, 38, 0.08);
}
.access-input::placeholder { color: var(--text-muted); opacity: 0.55; letter-spacing: 0.02em; }
.access-input:hover { border-color: rgba(var(--primary-rgb), 0.55); }
.access-input:focus {
  border-color: var(--primary);
  background: rgba(2, 10, 17, 0.9);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(var(--primary-rgb), 0.16),
    0 0 22px rgba(var(--primary-rgb), 0.22);
}
[data-theme="light"] .access-input:focus { background: #ffffff; }

.access-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: 0.1em;
  color: #021016;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: var(--primary);
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.12));
  box-shadow:
    0 10px 28px -6px rgba(var(--primary-rgb), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform .16s ease, box-shadow .22s ease, filter .2s ease;
}
.access-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px -6px rgba(var(--primary-rgb), 0.7), inset 0 1px 0 rgba(255,255,255,.6);
}
.access-btn:active { transform: translateY(0) scale(0.995); }
.access-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.access-btn.is-loading svg { animation: spinBtn 0.9s linear infinite; }
@keyframes spinBtn { to { transform: rotate(360deg); } }

.access-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.access-status.is-ok { color: var(--primary); }
.access-status.is-error { color: #fb7185; }

.access-rule {
  margin-top: 6px;
  padding-top: 13px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.8;
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}

/* ============================================================
   内容区
   ============================================================ */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 28px 90px;
  flex: 1;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text);
}
.section-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  white-space: nowrap;
}

/* ---------- 节点卡片 ---------- */
.nodes-section { margin-bottom: 64px; }

.nodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.nodes-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 44px 0;
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.nodes-empty:empty { display: none; }

.node-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.node-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
}
.node-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), 0 0 26px rgba(var(--primary-rgb), 0.12);
}
[data-theme="light"] .node-card:hover { box-shadow: 0 22px 44px rgba(13, 27, 38, 0.16), 0 0 24px rgba(var(--primary-rgb), 0.1); }
.node-card.is-offline { opacity: 0.55; }
.node-card.is-offline:hover { transform: none; }

.node-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.node-card-name {
  font-size: 16.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.node-key {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  padding: 1px 7px;
  border-radius: 5px;
  letter-spacing: 0.06em;
}
[data-theme="light"] .node-key {
  color: #7a4e12;
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.38);
}

.node-card-ip {
  margin: -4px 0 12px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.9;
  word-break: break-all;
}

.node-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex: none;
  padding-top: 3px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #64748b;
  flex: none;
}
.status-text { white-space: nowrap; }
.status-dot.is-idle { background: var(--primary); box-shadow: 0 0 7px rgba(var(--primary-rgb), 0.9); }
.status-dot.is-busy { background: #e9b44c; box-shadow: 0 0 7px rgba(233, 180, 76, 0.9); }
.status-dot.is-full { background: #f43f5e; box-shadow: 0 0 7px rgba(244, 63, 94, 0.9); animation: pulseRed 1.4s infinite; }
@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5); }
  60% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
}

.node-card-progress { display: flex; flex-direction: column; gap: 9px; }

.progress-track {
  height: 8px;
  border-radius: 3px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
[data-theme="light"] .progress-track { background: rgba(var(--primary-rgb), 0.07); }
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.55), var(--primary));
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
.progress-bar.is-busy { background: linear-gradient(90deg, #d97706, #e9b44c); box-shadow: 0 0 12px rgba(233, 180, 76, 0.5); }
.progress-bar.is-full { background: linear-gradient(90deg, #be123c, #f43f5e); box-shadow: 0 0 12px rgba(244, 63, 94, 0.5); }

.node-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.card-count {
  color: var(--text);
  font-weight: 800;
  font-size: 13.5px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.node-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.07);
  border: 1px solid rgba(var(--primary-rgb), 0.32);
  transition: all .22s ease;
}
.node-card:hover .node-card-btn {
  color: #021016;
  background: var(--primary);
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.26), rgba(0, 0, 0, 0.12));
  border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(var(--primary-rgb), 0.75);
}
[data-theme="light"] .node-card-btn {
  color: #7a4e12;
  background: rgba(var(--primary-rgb), 0.10);
  border-color: rgba(var(--primary-rgb), 0.40);
}
[data-theme="light"] .node-card:hover .node-card-btn {
  color: #ffffff;
  background: var(--primary);
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.10));
  border-color: transparent;
}

/* ---------- 特性 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .25s, box-shadow .25s;
}
.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .feature-item:hover { box-shadow: 0 16px 34px rgba(13, 27, 38, 0.14); }

.feat-icon {
  width: 40px; height: 40px; flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--primary);
  background: linear-gradient(150deg, rgba(var(--primary-rgb),.16), rgba(var(--cta-rgb),.12));
  border: 1px solid var(--line-strong);
}
.feat-icon svg { width: 19px; height: 19px; }

.feature-text { flex: 1; min-width: 0; }
.feature-text h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; white-space: nowrap; letter-spacing: 0.02em; }
.feature-text p { font-size: 12.5px; line-height: 1.7; color: var(--text-muted); }

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 22px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 24px 56px; }
  .hero-visual { order: -1; }
  .hero-visual img { height: 300px; object-position: 62% 26%; }
  .hero-visual::after { background: linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
  [data-theme="light"] .hero-visual::after { background: linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
  .hero-copy p { max-width: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 44px 24px 70px; }
}

@media (max-width: 720px) {
  .topbar-inner { padding: 0 16px; height: 56px; }
  .brand { font-size: 15.5px; }

  .hero-inner { padding: 24px 16px 44px; gap: 24px; }
  .hero-visual img { height: 210px; object-position: 62% 24%; }
  .hero h1 { font-size: clamp(28px, 8.6vw, 34px); }
  .hero-copy p { font-size: 14.5px; margin-bottom: 22px; }

  .status-bar { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; padding: 0; }
  .status-bar-item {
    flex-direction: column;
    gap: 3px;
    padding: 12px 6px;
    font-size: 11px;
    justify-content: center;
    text-align: center;
  }
  .status-bar-item strong { font-size: 15px; margin-left: 0; }
  .status-divider { display: none; }

  .access-status { margin-top: 10px; }
  .access-rule { margin-top: 12px; }

  .access-wrap { margin-top: 0; padding: 0; }
  .hero-panel { padding: 22px 18px 16px; }
  .access-input { height: 52px; }
  .access-btn { height: 48px; }

  .page { padding: 40px 16px 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head h2 { font-size: 22px; }
  .nodes-list { grid-template-columns: 1fr; gap: 14px; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .access-btn, .hud-dot { animation: none !important; transition: none !important; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}