/* ============================================================
   "卫生纸服务器" — Nexus 科技蓝 视觉系统
   双主题 (亮色/暗色) · 毛玻璃质感 · 点阵背景 · 零依赖
   ============================================================ */

/* ---------- CSS Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================================
   亮色主题 (默认)
   ============================================================ */
:root {
  /* 背景层级 */
  --bg:            #f0f5fa;
  --bg-alt:        #e6edf5;
  --card:          #ffffff;
  --card2:         #f7fafd;
  --card-hover:    #f0f6fc;

  /* 边框 */
  --line:          #e2e8f0;
  --line2:         #cbd5e1;
  --line-accent:   rgba(37, 99, 235, 0.35);

  /* 文字 */
  --text:          #0f172a;
  --text-heading:  #0c1929;
  --dim:           #64748b;
  --dim-light:     #94a3b8;

  /* 强调色 — 蓝→青体系 */
  --accent:        #2563eb;
  --accent-2:      #0891b2;
  --accent-soft:   rgba(37, 99, 235, 0.08);
  --accent-border: rgba(37, 99, 235, 0.35);
  --accent-glow:   0 0 18px rgba(37, 99, 235, 0.25);
  --accent-grad:   linear-gradient(135deg, #2563eb, #0891b2);

  /* 语义色 */
  --green:         #059669;
  --green-soft:    rgba(5, 150, 105, 0.1);
  --yellow:        #d97706;
  --yellow-soft:   rgba(217, 119, 6, 0.1);
  --red:           #dc2626;
  --red-soft:      rgba(220, 38, 38, 0.1);
  --blue:          #2563eb;

  /* 毛玻璃 */
  --glass-bg:      rgba(255, 255, 255, 0.72);
  --glass-border:  rgba(255, 255, 255, 0.55);
  --glass-shadow:  0 8px 32px rgba(15, 23, 42, 0.08);
  --glass-blur:    12px;

  /* 瓦楞玻璃棱纹 (卡片/顶栏专用): 与背景同 34px 周期 */
  --cb-flute:      repeating-linear-gradient(90deg,
                      rgba(100, 116, 139, 0.038)  0px,
                      rgba(100, 116, 139, 0.011)  7px,
                      rgba(255, 255, 255, 0.072) 14px,
                      rgba(255, 255, 255, 0.140) 17px,
                      rgba(255, 255, 255, 0.170) 17.8px,
                      rgba(255, 255, 255, 0.140) 18.6px,
                      rgba(255, 255, 255, 0.072) 22px,
                      rgba(100, 116, 139, 0.011) 29px,
                      rgba(100, 116, 139, 0.038) 34px);

  /* 导航栏 */
  --topbar-bg:     rgba(255, 255, 255, 0.78);
  --topbar-border: rgba(203, 213, 225, 0.6);
  --topbar-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);

  /* 卡片 */
  --card-shadow:   0 4px 20px rgba(15, 23, 42, 0.06);
  --card-hover-shadow: 0 12px 36px rgba(37, 99, 235, 0.1);

  /* Hero */
  --hero-grad: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(240,245,250,0.2));

  /* 头像 */
  --avatar-grad:   linear-gradient(135deg, #dbeafe, #bfdbfe);
  --avatar-letter: #2563eb;

  /* 图表面板 */
  --mini-track:    #e2e8f0;

  /* 按钮 */
  --btn-hover-bg:  #e8f0fe;
  --btn-hover-bd:  #b9d0f0;

  /* 横幅 */
  --banner-warn:   #92400e;
  --banner-err:    #b91c1c;

  /* Logo */
  --logo-glow:     0 2px 12px rgba(37, 99, 235, 0.18);
  --hero-logo-glow: 0 4px 20px rgba(37, 99, 235, 0.22);

  /* 扫光柱 */
  --sweep-core:    rgba(56, 189, 248, 0.09);
  --sweep-opacity: 0.7;

  /* 暗色模式下扫描线 (亮色不显示) */
  --scanline-opacity: 0;
}

/* ============================================================
   暗色主题
   ============================================================ */
[data-theme="dark"] {
  --bg:            #060d1a;
  --bg-alt:        #0a1222;
  --card:          #0f1a2e;
  --card2:         #111d34;
  --card-hover:    #152038;

  --line:          #1e2d4a;
  --line2:         #2a3d63;
  --line-accent:   rgba(59, 130, 246, 0.4);

  --text:          #e2e8f0;
  --text-heading:  #f1f5f9;
  --dim:           #94a3b8;
  --dim-light:     #64748b;

  --accent:        #3b82f6;
  --accent-2:      #22d3ee;
  --accent-soft:   rgba(59, 130, 246, 0.12);
  --accent-border: rgba(59, 130, 246, 0.45);
  --accent-glow:   0 0 24px rgba(59, 130, 246, 0.35);
  --accent-grad:   linear-gradient(135deg, #3b82f6, #22d3ee);

  --green:         #10b981;
  --green-soft:    rgba(16, 185, 129, 0.12);
  --yellow:        #f59e0b;
  --yellow-soft:   rgba(245, 158, 11, 0.12);
  --red:           #ef4444;
  --red-soft:      rgba(239, 68, 68, 0.12);
  --blue:          #3b82f6;

  --glass-bg:      rgba(15, 26, 46, 0.7);
  --glass-border:  rgba(30, 45, 74, 0.55);
  --glass-shadow:  0 8px 32px rgba(0, 0, 0, 0.25);
  --glass-blur:    14px;

  /* 瓦楞玻璃棱纹 (卡片/顶栏专用): 暗色下压低对比, 只留棱脊微光 */
  --cb-flute:      repeating-linear-gradient(90deg,
                      rgba(0, 0, 0, 0.115)         0px,
                      rgba(0, 0, 0, 0.042)         7px,
                      rgba(255, 255, 255, 0.026)  14px,
                      rgba(255, 255, 255, 0.064)  17px,
                      rgba(255, 255, 255, 0.082)  17.8px,
                      rgba(255, 255, 255, 0.064)  18.6px,
                      rgba(255, 255, 255, 0.026)  22px,
                      rgba(0, 0, 0, 0.042)        29px,
                      rgba(0, 0, 0, 0.115)        34px);

  --topbar-bg:     rgba(6, 13, 26, 0.82);
  --topbar-border: rgba(30, 45, 74, 0.6);
  --topbar-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);

  --card-shadow:   0 4px 20px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 12px 36px rgba(59, 130, 246, 0.15);

  --hero-grad: linear-gradient(180deg, rgba(15, 26, 46, 0.5), rgba(6, 13, 26, 0.3));

  --avatar-grad:   linear-gradient(135deg, #1e3a5f, #2a5080);
  --avatar-letter: #7fb8ff;

  --mini-track:    #1a2a44;

  --btn-hover-bg:  #1a2a44;
  --btn-hover-bd:  #3a5480;

  --banner-warn:   #fbbf24;
  --banner-err:    #f87171;

  --logo-glow:     0 0 14px rgba(59, 130, 246, 0.3);
  --hero-logo-glow: 0 0 24px rgba(34, 211, 238, 0.3);

  --sweep-core:    rgba(34, 211, 238, 0.12);
  --sweep-opacity: 1;

  --scanline-opacity: 0.03;
}

/* ============================================================
   基础样式
   ============================================================ */
html { height: 100%; }
body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 1.5s ease, color 1.5s ease;
}

/* ============================================================
   主容器 (在侧边栏右侧剩余空间内水平居中)
   ============================================================ */
.wrap {
  position: relative; z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 116px 32px 40px;
}

/* ============================================================
   主题切换 — 无缝平滑渐变
   所有颜色属性统一缓慢过渡, 主题切换时不知不觉渐变
   ============================================================ */
body {
  transition: background-color 1.5s ease, color 1.5s ease;
}
/* 全局颜色平滑: 卡片/边框/阴影/文字等随主题柔和渐变 */
body *,
body *::before,
body *::after {
  transition: background-color 1.5s ease, border-color 1.5s ease, color 1.5s ease, box-shadow 1.5s ease;
}

/* 扫光柱 */

/* ============================================================
   瓦楞玻璃背景 — 极光流动 × 竖向棱纹折射 × 科技网格 × 跟随涟漪
   ============================================================ */
.cb-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.cb-aurora {
  position: absolute; inset: -18%;
  filter: blur(70px) saturate(1.35);
}
.cb-flutes {
  position: absolute; inset: 0;
  backdrop-filter: blur(0.5px);                 /* 降级: 不支持 SVG 滤镜时用纯模糊 */
  backdrop-filter: url(#cbWarp) blur(0.5px);    /* 增强: 支持时用位移贴图做真实瓦楞折射 */
  -webkit-backdrop-filter: blur(0.5px);
}
.cb-ripple {
  position: absolute; inset: 0;
  background: radial-gradient(340px 340px at var(--mx, 50%) var(--my, 50%),
    rgba(34, 211, 238, 0.18) 0%, rgba(34, 211, 238, 0.05) 42%, transparent 70%);
  opacity: var(--ripple-o, 0);
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}
.cb-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 42%, transparent 55%, var(--cb-vignette) 100%);
}
[data-theme="dark"] { --cb-grid: rgba(94, 234, 212, 0.05); --cb-vignette: rgba(0, 0, 0, 0.42); }
body:not([data-theme="dark"]) { --cb-grid: rgba(37, 99, 235, 0.05); --cb-vignette: rgba(100, 116, 139, 0.09); }
body:not([data-theme="dark"]) .cb-ripple {
  background: radial-gradient(340px 340px at var(--mx, 50%) var(--my, 50%),
    rgba(6, 182, 212, 0.14) 0%, rgba(59, 130, 246, 0.06) 42%, transparent 70%);
  mix-blend-mode: multiply;
}
.aurora-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
/* ---------- 瓦楞棱纹: 高级毛玻璃质感 ----------
   一个棱周期 34px, 自左向右为一个真实瓦楞截面:
     谷底(暗) → 缓升斜面 → 棱脊(亮) → 缓降斜面 → 谷底
   三层叠加:
     ① 竖向明暗: 中段最亮、上下渐隐, 让棱纹"浮"在中间而不是铺满整屏的壁纸;
     ② 棱面主层: 不对称斜面(窄脊宽谷), 决定瓦楞的立体感;
     ③ 斜向环境色: 让棱纹在冷色区偏青、暖色区偏紫;
   并配 34s 极慢的横向漂移, 使棱纹像缓慢经过的光, 而非静止图案。 */
.cb-flutes {
  background-image:
    /* ① 竖向明暗: 上下渐隐, 中段最亮 */
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.090) 0%,
      rgba(255, 255, 255, 0.185) 22%,
      rgba(255, 255, 255, 0.085) 55%,
      rgba(0, 0, 0, 0.060) 100%),
    /* ② 棱面主层: 谷→缓坡→脊→缓坡→谷 (34px 周期) */
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.052)         0px,
      rgba(0, 0, 0, 0.018)         7px,
      rgba(255, 255, 255, 0.034)  14px,
      rgba(255, 255, 255, 0.070)  17px,
      rgba(255, 255, 255, 0.086)  17.8px,
      rgba(255, 255, 255, 0.070)  18.6px,
      rgba(255, 255, 255, 0.034)  22px,
      rgba(0, 0, 0, 0.018)        29px,
      rgba(0, 0, 0, 0.052)        34px),
    /* ③ 斜向环境色 */
    linear-gradient(115deg,
      rgba(59, 130, 246, 0.10) 0%,
      rgba(34, 211, 238, 0.08) 35%,
      rgba(139, 92, 246, 0.10) 65%,
      rgba(59, 130, 246, 0.08) 100%);
  background-size: 100% 100%, 34px 100%, 300% 300%;
  background-repeat: no-repeat, repeat-x, no-repeat;
  animation: cbFlow 34s linear infinite;
}
body:not([data-theme="dark"]) .cb-flutes {
  background-image:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.46) 22%,
      rgba(255, 255, 255, 0.20) 55%,
      rgba(148, 163, 184, 0.12) 100%),
    repeating-linear-gradient(90deg,
      rgba(100, 116, 139, 0.070)  0px,
      rgba(100, 116, 139, 0.020)  7px,
      rgba(255, 255, 255, 0.110) 14px,
      rgba(255, 255, 255, 0.215) 17px,
      rgba(255, 255, 255, 0.260) 17.8px,
      rgba(255, 255, 255, 0.215) 18.6px,
      rgba(255, 255, 255, 0.110) 22px,
      rgba(100, 116, 139, 0.020) 29px,
      rgba(100, 116, 139, 0.070) 34px),
    linear-gradient(115deg,
      rgba(37, 99, 235, 0.085) 0%,
      rgba(6, 182, 212, 0.075) 35%,
      rgba(139, 92, 246, 0.080) 65%,
      rgba(37, 99, 235, 0.070) 100%);
  background-size: 100% 100%, 34px 100%, 300% 300%;
  background-repeat: no-repeat, repeat-x, no-repeat;
}
/* 棱纹极慢横向漂移: 背景层位置从 0 走到 -34px(恰好一个周期), 视觉上无接缝 */
@keyframes cbFlow {
  0%   { background-position: 0 0, 0 0, 0% 50%; }
  100% { background-position: 0 0, -34px 0, 100% 50%; }
}

[data-theme="dark"] .aurora-layer { opacity: 0.75; }
[data-theme="dark"] .a1 { background: radial-gradient(ellipse 60% 40% at 20% 30%, rgba(168, 85, 247, 0.8), transparent 65%); animation: aurora1 25s ease-in-out infinite; }
[data-theme="dark"] .a2 { background: radial-gradient(ellipse 55% 35% at 80% 50%, rgba(59, 130, 246, 0.7), transparent 65%); animation: aurora2 30s ease-in-out infinite; }
[data-theme="dark"] .a3 { background: radial-gradient(ellipse 50% 45% at 50% 80%, rgba(236, 72, 153, 0.65), transparent 65%); animation: aurora3 22s ease-in-out infinite; }
[data-theme="dark"] .a4 { background: radial-gradient(ellipse 55% 30% at 90% 20%, rgba(139, 92, 246, 0.7), transparent 65%); animation: aurora4 28s ease-in-out infinite; }
[data-theme="dark"] .a5 { background: radial-gradient(ellipse 45% 40% at 10% 75%, rgba(34, 211, 238, 0.6), transparent 65%); animation: aurora5 24s ease-in-out infinite; }

body:not([data-theme="dark"]) .aurora-layer { opacity: 0.6; }
body:not([data-theme="dark"]) .a1 { background: radial-gradient(ellipse 60% 40% at 20% 30%, rgba(34, 211, 238, 0.7), transparent 65%); animation: aurora1 25s ease-in-out infinite; }
body:not([data-theme="dark"]) .a2 { background: radial-gradient(ellipse 55% 35% at 80% 50%, rgba(16, 185, 129, 0.65), transparent 65%); animation: aurora2 30s ease-in-out infinite; }
body:not([data-theme="dark"]) .a3 { background: radial-gradient(ellipse 50% 45% at 50% 80%, rgba(59, 130, 246, 0.6), transparent 65%); animation: aurora3 22s ease-in-out infinite; }
body:not([data-theme="dark"]) .a4 { background: radial-gradient(ellipse 55% 30% at 90% 20%, rgba(6, 182, 212, 0.65), transparent 65%); animation: aurora4 28s ease-in-out infinite; }
body:not([data-theme="dark"]) .a5 { background: radial-gradient(ellipse 45% 40% at 10% 75%, rgba(139, 92, 246, 0.55), transparent 65%); animation: aurora5 24s ease-in-out infinite; }


/* 极光流动动画 */
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate(10%, -8%) rotate(10deg) scale(1.2); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate(-9%, 7%) rotate(-8deg) scale(1.15); }
}
@keyframes aurora3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate(8%, 5%) rotate(7deg) scale(1.18); }
  66%      { transform: translate(-7%, -9%) rotate(-10deg) scale(0.92); }
}
@keyframes aurora4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate(-11%, -7%) rotate(9deg) scale(1.22); }
}
@keyframes aurora5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate(-8%, 8%) rotate(-9deg) scale(1.12); }
  66%      { transform: translate(10%, -5%) rotate(8deg) scale(1.2); }
}

/* ============================================================
   顶部导航栏 — 浮动卡片版
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 20px 32px 0;
  background: transparent;
  border: none;
  pointer-events: none;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--topbar-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  pointer-events: auto;
  transition: box-shadow .3s ease;
}
.topbar-inner:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
}

/* 品牌区 */
.tb-brand {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.tb-logo {
  width: 48px; height: 48px; border-radius: 13px; object-fit: cover;
  border: 1.5px solid var(--line2);
}
.tb-title {
  font-size: 18px; font-weight: 700;
  color: var(--text-heading);
  letter-spacing: .2px;
}
.tb-status {
  font-size: 12.5px; font-weight: 500;
  color: var(--dim);
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tb-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}
.tb-status.ok { color: var(--green); }
.tb-status.ok::before { background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.tb-status.bad { color: var(--red); }
.tb-status.bad::before { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,0.5); }

/* 导航 — 居中 */
.tb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.tb-nav-item {
  display: inline-block !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--dim) !important;
  text-decoration: none;
  border: none !important;
  transition: all .2s ease !important;
  white-space: nowrap;
}
.tb-nav-item:hover {
  color: var(--text) !important;
  background: rgba(139, 147, 167, .08) !important;
}
.tb-nav-item.active {
  color: var(--text-heading) !important;
  background: var(--card2) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* 主题按钮 */
.tb-theme-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--card2);
  border: 1px solid var(--line2);
  color: var(--dim);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s ease;
}

/* 全局颜色平滑: 卡片/边框/阴影/文字等随主题柔和渐变 */
@media (min-width: 961px) {
  .tb-theme-btn {
    position: fixed;
    top: 34px;
    right: max(60px, calc((100vw - 1400px) / 2 + 60px));
    z-index: 95;                 /* 楂樹簬 .topbar(z-index:90) */
  }
}
/* [已禁用] .site-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
} */
@media (min-width: 721px) and (max-width: 960px) {
  .tb-theme-btn {
    position: fixed;
    top: 34px;
    right: 60px;
    z-index: 95;
  }
}
.tb-theme-btn:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.brand { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }

.logo {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  border: 2px solid var(--line2);
  box-shadow: var(--logo-glow);
  transition: box-shadow .4s ease, border-color .4s ease;
}
.brand h1 {
  font-size: 18px; font-weight: 700; letter-spacing: .5px; line-height: 1.2;
  color: var(--text-heading);
}

/* 导航链接 */
.nav a {
  color: var(--dim); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 9px; white-space: nowrap;
  transition: color .2s, background .2s, box-shadow .2s;
  border: 1px solid transparent;
  position: relative;
}
.nav a:hover {
  color: var(--text);
  background: rgba(139, 147, 167, .08);
}
.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.1);
}

/* 主题切换按钮 */
.theme-btn {
  font-size: 15px; padding: 5px 11px; line-height: 1;
  transition: transform .3s ease;
}
.theme-btn:active { transform: scale(0.9); }

/* ============================================================
   按钮体系
   ============================================================ */
.btn {
  padding: 6px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  background: var(--card2); color: var(--text);
  border: 1px solid var(--line2); cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
  position: relative; overflow: hidden;
}
.btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bd);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.btn:active { transform: translateY(0); }
.btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
  letter-spacing: .3px;
}
.btn-primary:hover {
  background: var(--accent);
  opacity: .9;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
[data-theme="dark"] .btn-primary {
  color: #fff;
}

.btn-big {
  padding: 10px 24px; font-size: 14px; border-radius: 12px;
  text-decoration: none; display: inline-block;
}

.btn-group { display: flex; gap: 8px; }

/* ============================================================
   Pill 标签
   ============================================================ */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.page-pills { margin-bottom: 20px; }

.pill {
  padding: 5px 12px; border-radius: 999px; font-size: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  color: var(--dim);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all .3s ease;
}
.pill.ok {
  color: var(--green);
  border-color: rgba(5, 150, 105, 0.35);
  background: var(--green-soft);
}
.pill.bad {
  color: var(--red);
  border-color: rgba(220, 38, 38, 0.35);
  background: var(--red-soft);
}
.pill.warn {
  color: var(--yellow);
  border-color: rgba(217, 119, 6, 0.35);
  background: var(--yellow-soft);
}
.pill.dim { color: var(--dim); }

/* ============================================================
   横幅提示
   ============================================================ */
.banner {
  margin-bottom: 18px; padding: 12px 16px; border-radius: 12px;
  font-size: 13px; line-height: 1.7;
  background: var(--yellow-soft);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--banner-warn);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all .3s ease;
}
.banner.err {
  background: var(--red-soft);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--banner-err);
}
.banner.ok {
  background: var(--green-soft);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--green);
}
.hidden { display: none !important; }

/* ============================================================
   进站公告消息框 (点击外部关闭)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 10, 22, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay.show {
  opacity: 1; visibility: visible;
}
.modal-box {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 56px 36px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(.96);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.modal-overlay.show .modal-box {
  transform: translateY(0) scale(1);
}
.modal-icon { font-size: 52px; margin-bottom: 14px; }
.modal-title {
  font-size: 22px; font-weight: 800; color: var(--text-heading);
  margin-bottom: 8px; letter-spacing: .5px;
}
.modal-sub { color: var(--dim); font-size: 13.5px; }

/* ============================================================
   页面转场系统 — 丝滑版
   仅用 opacity + transform (GPU 加速), 无 blur, 无扫描线
   ============================================================ */
:root {
  --pt-total:      450ms;
  --pt-exit:       180ms;
  --pt-enter:      320ms;
  --pt-exit-ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --pt-enter-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* —— 过渡遮罩层 (固定全屏, 不拦截点击) —— */
.page-transition {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  opacity: 0; visibility: hidden;
}

/* 微光纱幕: 换页瞬间的柔和闪光 */
.pt-veil {
  position: absolute; inset: 0;
  background: var(--accent);
  opacity: 0;
}
.page-transition.is-active .pt-veil {
  animation: ptVeil var(--pt-total) ease forwards;
}
@keyframes ptVeil {
  0%   { opacity: 0; }
  35%  { opacity: 0.04; }
  100% { opacity: 0; }
}

/* 主题按钮 */
/* .pt-scanline { display: none; } */

/* 导航链接 */
.page.is-exiting {
  animation: ptExit var(--pt-exit) var(--pt-exit-ease) forwards;
  will-change: transform, opacity;
}
@keyframes ptExit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.985); }
}

/* —— 入场页 —— */
.page.is-entering {
  animation: ptEnter var(--pt-enter) var(--pt-enter-ease) forwards;
  will-change: transform, opacity;
}
@keyframes ptEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— 无障碍降级: 关闭全部转场动效 —— */
@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .pt-veil { display: none !important; animation: none !important; }
  .page.is-exiting,
  .page.is-entering { animation: none !important; }
  /* [已禁用] 旧背景canvas已移除 */
  /* #bgCanvas, #particleCanvas { display: none !important; } */
}
/* ============================================================
   通用面板 — 毛玻璃卡片
   ============================================================ */
.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 20px 22px;
  margin-bottom: 26px;
  box-shadow: var(--card-shadow);
  transition: all .35s ease;
}
.panel:hover {
  box-shadow: var(--card-hover-shadow);
  border-color: var(--line-accent);
}

.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.panel-head h2 {
  font-size: 15.5px; font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid;
  border-image: var(--accent-grad) 1;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
  color: var(--text-heading);
}
.panel-head h2 .dim {
  color: var(--dim); font-size: 12.5px; font-weight: 400; margin-left: 6px;
}
.panel-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tag {
  padding: 4px 11px; border-radius: 999px; font-size: 12px;
  background: rgba(139, 147, 167, .06);
  border: 1px solid var(--line);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: all .25s ease;
}
.tag.dim { color: var(--dim); }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-grad);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 32px 28px 24px; margin-bottom: 12px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--card-shadow);
  transition: all .35s ease;
}
.hero:hover {
  box-shadow: var(--card-hover-shadow);
  border-color: var(--line-accent);
}

.hero-logo {
  width: 96px; height: 96px; border-radius: 22px; object-fit: cover;
  border: 2px solid var(--line2);
  box-shadow: var(--hero-logo-glow);
  transition: box-shadow .4s ease, transform .3s ease;
}
.hero-logo:hover { transform: scale(1.05); }

.hero h1 {
  font-size: 28px; font-weight: 800; letter-spacing: 1px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { color: var(--dim); font-size: 14.5px; }

/* 地址栏 */
.hero-bars {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center;
}

.addr-bar {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
}
.addr-bar:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.addr-label {
  font-size: 12px; color: var(--dim); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
}
.addr-value {
  font-size: 16px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.btn-copy {
  padding: 4px 10px; font-size: 11px; border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  cursor: pointer;
  transition: all .2s ease;
}

/* Hero 快捷按钮 */
.hero-actions {
  display: flex; gap: 12px; margin-top: auto; padding-top: 18px;
  flex-wrap: nowrap; justify-content: center;
}
.hero-actions a { text-decoration: none; }
.hero-actions a:hover, .hero-actions a:focus, .hero-actions a:active { text-decoration: none; }

/* ============================================================
   首页炫酷分页 (缩放模糊过渡 + 元素入场动画)
   ============================================================ */
#page-home {
  min-height: calc(100dvh - 165px);
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-wrap {
  width: 100%;
  position: relative;
}
/* 首页只有一页, 简化为普通流式布局 */
.hp-page {
  position: relative;
  inset: auto;
  height: auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: none;
}
.hp-page.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  z-index: auto;
}
/* 隐藏分页内滚动条 */
.hp-page,
.hp-page * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hp-page::-webkit-scrollbar,
.hp-page *::-webkit-scrollbar {
  width: 0; height: 0; display: none;
}

.hp-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 34px 28px;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100%;
}
.hp-head { margin-bottom: 22px; }
.hp-players { justify-content: center; }

/* ---------- 页面内元素交错入场动画 ---------- */
.hp-page.active.page-enter > *,
.hp-page.active .page-enter > * {
  animation: pageItemIn .65s cubic-bezier(.22, 1, .36, 1) both;
}
.hp-page.active.page-enter > *:nth-child(1),
.hp-page.active .page-enter > *:nth-child(1) { animation-delay: .18s; }
.hp-page.active.page-enter > *:nth-child(2),
.hp-page.active .page-enter > *:nth-child(2) { animation-delay: .28s; }
.hp-page.active.page-enter > *:nth-child(3),
.hp-page.active .page-enter > *:nth-child(3) { animation-delay: .38s; }
.hp-page.active.page-enter > *:nth-child(4),
.hp-page.active .page-enter > *:nth-child(4) { animation-delay: .48s; }
.hp-page.active.page-enter > *:nth-child(5),
.hp-page.active .page-enter > *:nth-child(5) { animation-delay: .58s; }
.hp-page.active.page-enter > *:nth-child(6),
.hp-page.active .page-enter > *:nth-child(6) { animation-delay: .68s; }
.hp-page.active.page-enter > *:nth-child(n+7),
.hp-page.active .page-enter > *:nth-child(n+7) { animation-delay: .78s; }
@keyframes pageItemIn {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 右侧悬浮分页导航 (带标签) ---------- */
.hp-nav {
  position: fixed;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 999px;
  transition: all .3s ease;
  background: transparent;
  border: none;
  font-family: inherit;
}
.hp-nav-item .hp-nav-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  opacity: 0;
  transform: translateX(-10px);
  transition: all .3s ease;
  white-space: nowrap;
}
.hp-nav-item:hover .hp-nav-label,
.hp-nav-item.active .hp-nav-label {
  opacity: 1;
  transform: translateX(0);
}
.hp-nav-item.active .hp-nav-label {
  color: var(--accent);
}
.hp-nav-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line2);
  border: 2px solid var(--glass-border);
  transition: all .3s ease;
  flex-shrink: 0;
  order: -1;
}
.hp-nav-item.active .hp-nav-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.55);
  transform: scale(1.25);
}

/* ---------- 底部鼠标滚轮提示 ---------- */
.hp-scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .5px;
  animation: hintFloat 2.6s ease-in-out infinite;
  pointer-events: none;
}
.hp-scroll-hint .mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--line2);
  border-radius: 13px;
  position: relative;
}
.hp-scroll-hint .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  animation: mouseWheel 1.8s ease-in-out infinite;
}
@keyframes mouseWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: .25; transform: translateX(-50%) translateY(9px); }
}
@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .7; }
  50% { transform: translateX(-50%) translateY(-7px); opacity: 1; }
}
/* 第二页不显示滚轮提示 */
.hp-page-2.active ~ .hp-scroll-hint,
body.hp-page-2 .hp-scroll-hint { display: none; }

/* 首页第一页: 两栏 (Hero + 实时状态) */
.hp-page-1 {
  display: flex; gap: 22px; align-items: stretch;
  padding: 26px 56px;
}
.hp-page-1 .hero {
  flex: 0 0 34%; margin: 0;
  justify-content: flex-start; align-items: stretch; text-align: center;
  min-height: 0;
  position: relative; overflow: hidden;
  padding: 14px 28px 24px;
}
/* Hex 网格背景 (Hero 左侧) */
.hp-page-1 .hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(60deg,  var(--line) 0.5px, transparent 0.5px),
    linear-gradient(-60deg, var(--line) 0.5px, transparent 0.5px),
    linear-gradient(0deg,    var(--line) 0.5px, transparent 0.5px);
  background-size: 40px 69px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.hp-page-1 .hero > * { position: relative; z-index: 1; }

.hero-content {
  flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}

.hp-page-1 .hp-inner {
  flex: 1; min-height: 0; padding: 4px 0;
  justify-content: center;
}
.hp-page-1 .hp-head { margin-bottom: 12px; }
.hp-page-1 .hp-head-gap { margin-top: 14px; }
.hp-page-1 .home-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hp-page-1 .home-stat { padding: 14px 10px; gap: 6px; }
.hp-page-1 .hs-value { font-size: 22px; }
.hp-page-1 .hp-players { gap: 8px; }
.hp-page-1 .player-chip { padding: 6px 12px 6px 7px; min-width: 120px; flex: 0 0 auto; }
.hp-page-1 .player-avatar { width: 36px; height: 36px; border-radius: 9px; }
.hp-page-1 .player-name { font-size: 13.5px; }

/* 首页第二页: 玩法介绍 */
.hp-page-2 { padding: 40px 56px 60px; }
.hp-page-2 .hp-inner {
  max-width: none;
  margin: 0;
  min-height: 0; padding: 8px 0 0;
  justify-content: flex-start;
}
.hp-page-2 .hp-head { margin-bottom: 18px; }
.hp-page-2 .play-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px;
}

/* ============================================================
   首页 — 简洁重设计 (v5)
   ============================================================ */
.hp-page-1 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 40px 56px !important;
  gap: 0 !important;
}
.home-hero {
  text-align: center;
  max-width: 640px;
  margin-bottom: 52px;
}
.home-logo {
  width: 88px; height: 88px;
  border-radius: 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.home-title {
  font-size: 46px; font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.home-slogan {
  font-size: 16px; color: var(--dim);
  margin: 0 0 32px;
  letter-spacing: 1px;
}
.home-connect {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 480px; margin: 0 auto;
}
.hc-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all .25s ease;
}
.hc-row:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.hc-label {
  font-size: 13px; font-weight: 600; color: var(--dim);
  flex-shrink: 0; width: 72px; text-align: left;
}
.hc-value {
  flex: 1; font-size: 16px; font-weight: 600;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.hc-copy {
  font-size: 12.5px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  flex-shrink: 0;
}
.hc-copy:hover { background: var(--accent); color: #fff; }

.home-status {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap !important;
  padding-top: 12px;
  /* —— 无障碍降级: 关闭全部转场动效 —— */
  width: 100%;
  align-self: stretch;
}
.hst-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
  flex: 1 1 0; min-width: 0; white-space: nowrap;
}
.hst-label {
  font-size: 12.5px; font-weight: 600; color: var(--dim);
  letter-spacing: .5px;
}
.hst-val {
  font-size: 24px; font-weight: 700;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
}
.hst-val.good { color: #059669; }
.hst-val.bad { color: #dc2626; }
.hst-dot {
  position: absolute; top: 2px; right: -14px;
  width: 9px; height: 9px;
}
.hst-net .hst-val { font-size: 24px; }
.hp-page-2 {
  padding: 48px 56px 60px !important;
  overflow-y: auto !important;
}
.home-pack {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}
.home-pack > * {
  opacity: 1 !important;
  visibility: visible !important;
}
.home-pack .hp-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px !important;
}
.home-pack .hp-head h2 {
  font-size: 24px; font-weight: 800;
  color: var(--text-heading);
  margin: 0;
}
.hp-desc {
  font-size: 14px; line-height: 1.9;
  color: var(--dim);
  margin: 0 0 28px;
}
.hp-desc b { color: var(--text-heading); }
.hp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hf-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  transition: all .3s ease;
}
.hf-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}
.hf-icon { font-size: 28px; margin-bottom: 10px; }
.hf-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.hf-desc {
  font-size: 12px; color: var(--dim);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .hp-features { grid-template-columns: repeat(2, 1fr); }
  .home-status { gap: 12px; }
  .hst-val { font-size: 18px; }
  .hst-label { font-size: 11px; }
  .home-title { font-size: 30px; }
}

/* ============================================================
   滚动进入动画 (scroll-reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1),
              transform .75s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 交错动画: 子元素依次淡入 */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1),
              transform .65s cubic-bezier(.22, 1, .36, 1);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .11s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .39s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .46s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .53s; }
.reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: .6s; }
/* 无障碍降级: 减少动态效果偏好时直接显示 */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- 首页实时状态卡片 ---------- */
.home-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.home-stat {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 16px; text-align: center;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .3s ease;
  box-shadow: var(--card-shadow);
}
.home-stat:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.hs-label { color: var(--dim); font-size: 13px; font-weight: 600; }
.hs-value {
  font-size: 26px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hs-value.good {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hs-value.bad {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 状态卡片: 服务器状态指示灯 */
.stat-server { position: relative; }
.hs-indicator {
  position: absolute;
  top: 18px; right: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dim);
  transition: all .3s ease;
}
.hs-indicator.online {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}
.hs-indicator.offline {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); transform: scale(1.15); }
}

/* 状态卡片: 内存进度条 */
.stat-mem .hs-value { margin-bottom: 8px; }
.hs-bar {
  width: 100%;
  height: 6px;
  background: var(--mini-track);
  border-radius: 3px;
  overflow: hidden;
}
.hs-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-grad);
  border-radius: 3px;
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

/* 状态卡片: 网络上下行分行 */
.stat-net .hs-label { margin-bottom: 6px; }
.stat-net { gap: 4px; }
.hs-net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 3px 0;
}
.hs-net-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-weight: 500;
}
.hs-net-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.hs-net-dot.down { background: #22d3ee; }
.hs-net-dot.up { background: #3b82f6; }
.hs-net-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  font-size: 13px;
}

/* info-card 适配指示灯和进度条 */
.info-card { position: relative; }
.info-card .hs-bar { margin-top: 2px; }

/* 首页只有一页, 简化为普通流式布局 */

/* ---------- 顶部英雄区 ---------- */
.dash-hero {
  margin-bottom: 28px;
}
.dash-hero-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.dash-hero-title {
  font-size: 24px; font-weight: 800; letter-spacing: .5px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-hero-sub { font-size: 12.5px; }
.dash-hero-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}

/* 英雄大卡 */
.dh-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  overflow: hidden;
  transition: all .35s ease;
  box-shadow: var(--card-shadow);
}
.dh-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-grad);
  opacity: .7;
}
.dh-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}
.dh-card-icon {
  font-size: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
}
.dh-card-body { flex: 1; min-width: 0; }
.dh-label {
  font-size: 13px; font-weight: 600; color: var(--dim);
  margin-bottom: 6px; letter-spacing: .3px;
}
.dh-value {
  font-size: 32px; font-weight: 800; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dh-value.good {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dh-value.bad {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dh-sub {
  font-size: 12px; color: var(--dim); margin-top: 6px;
}
.dh-dot {
  position: absolute; top: 24px; right: 28px;
  width: 12px; height: 12px;
}

/* ---------- 通用区域 ---------- */
.dash-section { margin-bottom: 28px; }
.dash-section-title {
  font-size: 16px; font-weight: 700; letter-spacing: .4px;
  margin-bottom: 16px; padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text-heading);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

/* ---------- 系统资源双卡 ---------- */
.dash-sys-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.ds-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 24px;
  transition: all .35s ease;
  box-shadow: var(--card-shadow);
}
.ds-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.ds-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.ds-icon { font-size: 20px; }
.ds-label { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.ds-model {
  font-size: 11.5px; color: var(--dim); font-weight: 400;
  margin-left: auto;
}
.ds-value {
  font-size: 28px; font-weight: 800; line-height: 1.2;
  font-variant-numeric: tabular-nums; margin-bottom: 12px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ds-bar { height: 8px; }
.ds-bar .hs-bar-fill {
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* ---------- 网络实时速率双卡 ---------- */
.dash-live-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-bottom: 18px;
}
.dl-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .35s ease;
  box-shadow: var(--card-shadow);
  position: relative; overflow: hidden;
}
.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.dl-card.dl-down { border-left: 3px solid #22d3ee; }
.dl-card.dl-up { border-left: 3px solid #3b82f6; }
.dl-head {
  display: flex; align-items: center; gap: 8px;
}
.dl-label { font-size: 13px; font-weight: 600; color: var(--dim); }
.dl-value {
  font-size: 30px; font-weight: 800; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}
.dl-card.dl-down .dl-value { color: #0891b2; }
.dl-card.dl-up .dl-value { color: #2563eb; }

/* ---------- 流量统计三卡 ---------- */
.dash-stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 22px;
}
.dt-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 22px;
  transition: all .3s ease;
  box-shadow: var(--card-shadow);
}
.dt-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.dt-label {
  font-size: 12.5px; font-weight: 600; color: var(--dim);
  margin-bottom: 8px;
}
.dt-value {
  font-size: 22px; font-weight: 800; line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.dt-value.main {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 图表区 ---------- */
.dash-chart {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
}
.dash-chart-title {
  font-size: 14px; font-weight: 700; color: var(--text-heading);
  margin-bottom: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .dash-hero-grid, .dash-sys-grid, .dash-live-grid { grid-template-columns: 1fr; }
  .dash-stat-grid { grid-template-columns: 1fr; }
  .dh-value { font-size: 26px; }
}
@media (max-width: 720px) {
  .dash-hero-title { font-size: 20px; }
  .dh-card { padding: 18px 20px; gap: 14px; }
  .dh-card-icon { font-size: 32px; }
  .dh-value { font-size: 22px; }
  .ds-value { font-size: 22px; }
  .dl-value { font-size: 24px; }
  .dt-value { font-size: 18px; }
  .dash-section-title { font-size: 14px; }
}

/* ============================================================
   服务器状态页 — 霓虹赛博朋克数据看板 (v2)
   ============================================================ */
.dash-neon {
  --neon-cyan: #22d3ee;
  --neon-blue: #3b82f6;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-green: #10b981;
  --neon-card-bg: var(--glass-bg);
  --neon-card-border: var(--glass-border);
  --neon-text: var(--text-heading);
  --neon-dim: var(--dim);
}

/* 页面扫描线背景 (浅色模式减弱) */
.dash-neon::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px, rgba(34, 211, 238, 0.015) 2px, rgba(34, 211, 238, 0.015) 4px
  );
}
[data-theme="light"] .dash-neon::before {
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px, rgba(34, 211, 238, 0.006) 2px, rgba(34, 211, 238, 0.006) 4px
  );
}

/* ---------- 顶部快速状态条 ---------- */
.neon-topbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.nt-item {
  background: var(--neon-card-bg);
  border: 1px solid var(--neon-card-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden;
  transition: all .3s ease;
}
.nt-item::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--neon-cyan); opacity: .6;
}
.nt-item.nt-players::after { background: var(--neon-purple); }
.nt-item.nt-cpu::after { background: var(--neon-blue); }
.nt-item.nt-mem::after { background: var(--neon-pink); }
.nt-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
  transform: translateY(-2px);
}
.nt-item.nt-players:hover { border-color: var(--neon-purple); box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); }
.nt-item.nt-cpu:hover { border-color: var(--neon-blue); box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }
.nt-item.nt-mem:hover { border-color: var(--neon-pink); box-shadow: 0 0 20px rgba(236, 72, 153, 0.15); }
.nt-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--neon-dim); text-transform: uppercase;
  opacity: .7;
}
.nt-val {
  font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--neon-text); margin-left: auto;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.nt-dot {
  position: static; width: 8px; height: 8px;
}

/* ---------- 通用霓虹卡片 ---------- */
.neon-card {
  background: var(--neon-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--neon-card-border);
  border-radius: 16px;
  padding: 24px 26px;
  position: relative; overflow: hidden;
  transition: all .35s ease;
  z-index: 1;
}
.neon-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.1), inset 0 0 30px rgba(34, 211, 238, 0.03);
}

/* 四角科技装饰线 */
.nc-corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--neon-cyan); border-style: solid; border-width: 0;
  transition: all .3s ease;
}
.nc-corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.nc-corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.nc-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.nc-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }
.neon-card:hover .nc-corner { width: 20px; height: 20px; }

/* 卡片标签 */
.nc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--neon-cyan); text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.05);
}

/* ---------- 核心区 ---------- */
.neon-core {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 24px;
}
.nc-status .nc-big {
  font-size: 56px; font-weight: 900; line-height: 1;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--neon-text);
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
  margin-bottom: 10px;
  letter-spacing: -1px;
}
[data-theme="light"] .nc-status .nc-big { text-shadow: 0 0 15px rgba(34, 211, 238, 0.15); }
.nc-status .nc-big.good { color: var(--neon-green); text-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }
.nc-status .nc-big.bad { color: #ef4444; text-shadow: 0 0 30px rgba(239, 68, 68, 0.4); }
.nc-sub {
  font-size: 13px; color: var(--neon-dim);
  margin-bottom: 20px; letter-spacing: .3px;
}
.nc-meta { display: flex; flex-direction: column; gap: 8px; }
.nc-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; padding: 6px 0;
  border-bottom: 1px dashed var(--line2);
}
.nc-meta-row span:first-child { color: var(--neon-dim); }
.nc-meta-row span:last-child { color: var(--text); font-weight: 600; }

/* 玩家卡 */
.nc-players { min-height: 300px; }
.nc-players .nc-tag { color: var(--neon-purple); border-color: rgba(168, 85, 247, 0.3); background: rgba(168, 85, 247, 0.05); }
.nc-players:hover { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 30px rgba(168, 85, 247, 0.1); }
.nc-players .nc-corner { border-color: var(--neon-purple); }
.nc-players .player-list { gap: 10px; }

/* ---------- 区域 ---------- */
.neon-section { margin-bottom: 24px; position: relative; z-index: 1; }
.neon-section-title {
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  color: var(--neon-text); text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-left: 14px;
  border-left: 3px solid var(--neon-cyan);
  opacity: .85;
}

/* ---------- 系统资源 ---------- */
.neon-sys { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nc-sys .nc-sys-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.nc-sys-ico { font-size: 20px; }
.nc-sys-name {
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  color: var(--neon-text); text-transform: uppercase;
}
.nc-sys-model {
  font-size: 11px; color: var(--neon-dim);
  margin-left: auto; font-weight: 400;
}
.nc-sys-val {
  font-size: 36px; font-weight: 900; line-height: 1.1;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--neon-text);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  margin-bottom: 14px;
}
[data-theme="light"] .nc-sys-val { text-shadow: 0 0 10px rgba(59, 130, 246, 0.1); }
.nc-bar { height: 10px; }
.nc-bar .hs-bar-fill {
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

/* ---------- 网络实时速率 ---------- */
.neon-live { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.nc-live { padding: 22px 26px; }
.nc-live-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--neon-dim); text-transform: uppercase;
  margin-bottom: 12px;
  opacity: .8;
}
.nc-live-val {
  font-size: 40px; font-weight: 900; line-height: 1.1;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--neon-text);
}
.nc-down .nc-live-val { color: #0891b2; text-shadow: 0 0 25px rgba(34, 211, 238, 0.3); }
[data-theme="dark"] .nc-down .nc-live-val { color: var(--neon-cyan); text-shadow: 0 0 25px rgba(34, 211, 238, 0.5); }
.nc-down:hover { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 30px rgba(34, 211, 238, 0.12); }
.nc-down .nc-corner { border-color: var(--neon-cyan); }
.nc-up .nc-live-val { color: #2563eb; text-shadow: 0 0 25px rgba(59, 130, 246, 0.3); }
[data-theme="dark"] .nc-up .nc-live-val { color: var(--neon-blue); text-shadow: 0 0 25px rgba(59, 130, 246, 0.5); }
.nc-up:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 30px rgba(59, 130, 246, 0.12); }
.nc-up .nc-corner { border-color: var(--neon-blue); }

/* ---------- 流量统计 ---------- */
.neon-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.nc-stat { padding: 20px 22px; }
.nc-stat-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--neon-dim); text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .7;
}
.nc-stat-val {
  font-size: 24px; font-weight: 800; line-height: 1.3;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--neon-text);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.nc-stat .net-line { border-top-color: var(--line2); padding: 6px 0; }
.nc-stat .nl-val { color: var(--text); font-size: 13px; }

/* ---------- 图表 ---------- */
.nc-chart { padding: 22px 24px; }
.nc-chart-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--neon-dim); text-transform: uppercase;
  margin-bottom: 14px;
  opacity: .7;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .neon-topbar { grid-template-columns: repeat(2, 1fr); }
  .neon-core, .neon-sys, .neon-live { grid-template-columns: 1fr; }
  .neon-stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .neon-topbar { grid-template-columns: 1fr; }
  .nc-status .nc-big { font-size: 40px; }
  .nc-sys-val { font-size: 28px; }
  .nc-live-val { font-size: 30px; }
  .nc-stat-val { font-size: 20px; }
  .neon-card { padding: 18px 20px; }
  .nt-val { font-size: 15px; }
}

/* ============================================================
   服务器状态页 — 清爽极简数据看板 (v3)
   ============================================================ */
.dash-minimal {
  max-width: 1200px;
  margin: 0 auto;
}

/* 页头 */
.dm-header {
  margin-bottom: 28px;
}
.dm-title {
  font-size: 28px; font-weight: 800; letter-spacing: -.3px;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.dm-subtitle {
  font-size: 13.5px; color: var(--dim);
  margin: 0;
}

/* 核心指标大卡 */
.dm-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 32px;
}
.dm-hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 32px 36px;
  position: relative;
  transition: all .3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.dm-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-border);
}
.dm-hero-label {
  font-size: 13px; font-weight: 600; color: var(--dim);
  margin-bottom: 12px;
}
.dm-hero-value {
  font-size: 52px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.dm-hero-value.good { color: #059669; }
.dm-hero-value.bad { color: #dc2626; }
.dm-hero-desc {
  font-size: 13px; color: var(--dim);
}
.dm-dot {
  position: absolute; top: 32px; right: 36px;
  width: 12px; height: 12px;
}

/* 区块 */
.dm-block { margin-bottom: 32px; }
.dm-block-title {
  font-size: 15px; font-weight: 700; color: var(--text-heading);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

/* 卡片行 */
.dm-row { display: grid; gap: 16px; margin-bottom: 16px; }
.dm-row-2 { grid-template-columns: 1fr 1fr; }
.dm-row-3 { grid-template-columns: repeat(3, 1fr); }

/* 通用卡片 */
.dm-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 24px;
  transition: all .3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.dm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
  border-color: var(--accent-border);
}

/* 卡片顶部: 图标+名称+型号 */
.dm-card-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.dm-card-ico { font-size: 22px; }
.dm-card-info { flex: 1; min-width: 0; }
.dm-card-name {
  font-size: 14px; font-weight: 700; color: var(--text-heading);
}
.dm-card-model {
  font-size: 11.5px; color: var(--dim); margin-top: 2px;
}
.dm-card-num {
  font-size: 32px; font-weight: 800; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.dm-card-label {
  font-size: 12px; font-weight: 600; color: var(--dim);
  margin-bottom: 8px;
}

/* 细进度条 */
.dm-bar {
  width: 100%; height: 6px;
  background: var(--mini-track);
  border-radius: 3px; overflow: hidden;
}
.dm-bar-fill {
  height: 100%; width: 0%;
  background: var(--accent-grad);
  border-radius: 3px;
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

/* 实时速率卡 */
.dm-speed { padding: 24px 26px; }
.dm-speed-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--dim);
  margin-bottom: 12px;
}
.dm-speed-num {
  font-size: 38px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}
.dm-speed-down .dm-speed-num { color: #0891b2; }
.dm-speed-up .dm-speed-num { color: #2563eb; }

/* 图表卡 */
.dm-chart { padding: 24px 26px; }
.dm-chart-label {
  font-size: 13px; font-weight: 700; color: var(--text-heading);
  margin-bottom: 14px;
}

/* 流量卡的 net-line 适配 */
.dm-card .net-line {
  border-top-color: var(--line2);
  padding: 7px 0;
}
.dm-card .net-line:first-of-type { border-top: none; padding-top: 4px; }
.dm-card .nl-val { color: var(--text); font-size: 13px; }

/* 响应式 */
@media (max-width: 960px) {
  .dm-hero, .dm-row-2 { grid-template-columns: 1fr; }
  .dm-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dash-minimal { max-width: 100%; }
  .dm-title { font-size: 22px; }
  .dm-hero-card { padding: 24px 22px; }
  .dm-hero-value { font-size: 38px; }
  .dm-card-num { font-size: 26px; }
  .dm-speed-num { font-size: 30px; }
  .dm-card { padding: 18px 20px; }
}

/* ============================================================
   服务器状态页 — 紧凑专业监控面板 (v4)
   ============================================================ */
.dash-compact {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0 60px;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 页头 */
.dc-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 24px;
}
.dc-head h2 {
  font-size: 24px; font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

/* 双栏网格 */
.dc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dc-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dc-col > .dc-card:last-child {
  flex: 1;
}

/* 通用卡片 */
.dc-card {
  background:
    var(--cb-flute),
    var(--glass-bg);
  background-size: 34px 100%, auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 28px;
  transition: border-color .25s ease;
}
.dc-card:hover {
  border-color: var(--accent-border);
}
.dc-card-title {
  font-size: 14.5px; font-weight: 700;
  color: var(--text-heading);
  letter-spacing: .3px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.dc-card-tag {
  font-size: 12.5px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 3px 12px;
}

/* 服务器状态 */
.dc-status {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.dc-status-val {
  font-size: 28px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}
.dc-status-val.good { color: #059669; }
.dc-status-val.bad { color: #dc2626; }
.dc-dot {
  position: static;
  width: 12px; height: 12px;
}
.dc-status-meta {
  font-size: 13px; color: var(--dim);
}

/* ---- 实时状态条: 关闭 nowrap, 改两列换行 ---- */
.dc-res-row {
  display: grid;
  grid-template-columns: 52px 84px 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.dc-res-label {
  font-size: 13.5px; font-weight: 600;
  color: var(--dim);
}
.dc-res-val {
  font-size: 18px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}
.dc-res-bar {
  height: 8px;
  background: var(--mini-track);
  border-radius: 4px;
  overflow: hidden;
}
.dc-res-fill {
  height: 100%; width: 0%;
  background: var(--accent-grad);
  border-radius: 4px;
  transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.dc-res-model {
  font-size: 12.5px; color: var(--dim);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
}

/* 状态指示灯: 桌面端绝对定位挂在格子右侧, 手机端改为跟随文字 */
.dc-net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line2);
}
.dc-net-row:last-of-type { border-bottom: none; }
.dc-net-key {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--dim);
}
.dc-net-val {
  font-size: 18px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}
.dc-net-sub {
  font-size: 12.5px; color: var(--dim);
  padding: 4px 0 11px;
}
.dc-net-sub span { color: var(--text); font-weight: 600; }

/* 图表卡 */
.dc-chart { padding: 22px 28px; margin-top: 20px; }
.dc-chart .traffic-chart { height: 240px; margin-top: 10px; }

/* 服务器介绍页 — 内容居中 */
#page-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: calc(100vh - 100px);
  padding: 40px 20px;
}
#page-intro .panel {
  width: 100%;
  margin: 0;
  text-align: center;
}
#page-intro .wiki-intro p {
  text-align: center;
  line-height: 2;
}
#page-intro .wiki-tags {
  justify-content: center;
}

/* 响应式 */
@media (max-width: 820px) {
  .dc-grid { grid-template-columns: 1fr; }
}

/* ---------- 玩法介绍卡片 ---------- */
.play-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.play-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px 24px 22px;
  display: flex; flex-direction: column;
  transition: all .35s ease;
  box-shadow: var(--card-shadow);
}
.play-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.play-icon { font-size: 36px; margin-bottom: 12px; }
.play-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: .3px; }
.play-tags {
  display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.play-tags span {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 3px 10px;
  transition: all .2s ease;
}
.play-desc { color: var(--dim); font-size: 13px; line-height: 1.85; }

/* ---------- 整合包总览卡 ---------- */
.pack-hero {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 26px 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  transition: border-color .35s ease;
}
.pack-hero:hover { border-color: var(--accent-border); }
.pack-hero-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pack-hero-title { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.pack-hero-sub { color: var(--dim); font-size: 13.5px; }
.pack-hero-desc { color: var(--dim); font-size: 13.5px; line-height: 1.9; margin-bottom: 16px; }
.pack-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.pack-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 6px 13px;
}
.pack-stat em {
  font-style: normal; font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 区块小节标题 ---------- */
.pack-section {
  font-size: 15px; font-weight: 700; letter-spacing: .4px;
  margin: 6px 0 14px; padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}

/* ---------- 模组群像区 ---------- */
.mod-grid {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-bottom: 6px;
}
.mod-chip {
  font-size: 12px;
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .25s ease;
}
.mod-chip:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  background: var(--accent-soft);
}
.mod-chip b { font-weight: 700; }
.mod-chip span { color: var(--dim); font-size: 11.5px; }

/* ============================================================
   服务器 Wiki — 重构版
   ============================================================ */
.wiki-header {
  text-align: center;
  padding: 36px 20px 28px;
  margin-bottom: 22px;
}
.wiki-header h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 8px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .5px;
}
.wiki-header p {
  color: var(--dim);
  font-size: 14.5px;
  margin: 0 0 18px;
}
.wiki-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wiki-stats span {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.wiki-stats span em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
  margin-right: 4px;
}

.wiki-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
  transition: border-color .3s ease;
}
.wiki-card:hover {
  border-color: var(--accent-border);
}
.wiki-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line2);
}
.wiki-num {
  font-size: 26px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}
.wiki-card-head h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--text-heading);
}
.wiki-card p {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.95;
  margin: 0 0 12px;
}
.wiki-card p:last-child {
  margin-bottom: 0;
}

/* Wiki 卡片内的 play-grid 调整 */
.wiki-card .play-grid {
  gap: 16px;
  margin-top: 4px;
}
.wiki-card .play-card {
  padding: 20px 22px;
}

/* Wiki 模组区 */
.wiki-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wiki-mod-chip {
  font-size: 12px;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.wiki-mod-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.wiki-mod-chip b { font-weight: 700; }
.wiki-mod-chip span { color: var(--dim); font-size: 11px; }
.wiki-mod-note {
  margin-top: 14px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.8;
}

/* FAQ 手风琴 */
.wiki-faq details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.wiki-faq details[open] {
  border-color: var(--accent-border);
}
.wiki-faq summary {
  padding: 15px 20px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s ease;
  color: var(--text-heading);
}
/* ---------- 通用区域 ---------- */
.wiki-faq details:not([open]) > *:not(summary) {
  display: none;
}
.wiki-faq summary:hover {
  background: rgba(139, 147, 167, .05);
}
.wiki-faq summary::-webkit-details-marker {
  display: none;
}
.wiki-faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--dim);
  transition: transform .25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.wiki-faq details[open] summary::after {
  transform: rotate(45deg);
}
.wiki-faq details .faq-answer {
  padding: 0 20px 16px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.9;
}

/* ============================================================
   实时监控页 — 图表
   ============================================================ */
.section-title {
  font-size: 15.5px; font-weight: 700; margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
  color: var(--text-heading);
}
.section-title .dim {
  color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 6px;
}
/* 图表区子标题与上方内容拉开间距 */
.chart-head { margin-top: 30px; }
.chart-range-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px;
}
.chart-range-head .btn-group {
  display: flex; gap: 4px;
}
.chart-range-head .btn {
  font-size: 11.5px; padding: 3px 10px; border-radius: 8px;
  cursor: pointer; background: var(--glass-bg); color: var(--dim);
  border: 1px solid var(--glass-border); font-family: inherit;
  transition: all .2s;
}
.chart-range-head .btn:hover {
  border-color: var(--accent-border); color: var(--text);
}
.chart-range-head .btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
/* 流量时间范围按钮: 内联在标题行, 靠右 */
.chart-range-inline {
  display: inline-flex;
  justify-content: flex-end;
  float: right;
  margin-left: 12px;
  vertical-align: middle;
}
.chart-range-inline .btn-group { display: inline-flex; gap: 4px; }
.charts-section { margin-bottom: 26px; }

.charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 4 张图固定 2×2 排列 */
  gap: 18px;
}

.chart-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 18px 12px;
  transition: all .3s ease;
  box-shadow: var(--card-shadow);
}
.chart-card:hover {
  border-color: var(--line-accent);
  box-shadow: var(--card-hover-shadow);
}
.chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 8px;
}
.chart-head span:first-child {
  font-size: 13px; font-weight: 600; color: var(--dim);
}
.chart-sub {
  font-size: 12px; color: var(--dim);
  font-variant-numeric: tabular-nums; text-align: right;
}
.chart-sub.warn { color: var(--yellow); }
.chart-sub.bad  { color: var(--red); }

.chart-card canvas { width: 100%; height: 130px; display: block; }
.traffic-chart { width: 100%; height: 240px; display: block; margin-top: 4px; }

/* ---------- 图表 Tooltip ---------- */
#chartTooltip {
  position: fixed; z-index: 9999; pointer-events: none;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 14px; font-size: 12px; color: var(--text);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  display: none; white-space: nowrap;
}
#chartTooltip .tip-title { font-weight: 700; margin-bottom: 4px; color: var(--text); }
#chartTooltip .tip-row {
  display: flex; align-items: center; gap: 6px; line-height: 1.8; color: var(--dim);
}
#chartTooltip .tip-row i {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}

/* ============================================================
   服务器信息卡片
   ============================================================ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .3s ease;
  box-shadow: var(--card-shadow);
}
.info-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.info-label {
  color: var(--dim); font-size: 12.5px; font-weight: 600;
}
.info-value {
  font-size: 20px; font-weight: 700; line-height: 1.35;
  word-break: break-all; font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}
.info-value.dim { color: var(--dim); font-size: 16px; }
.info-sub { color: var(--dim); font-size: 12px; }
/* CPU: 标签夹型号, 使用率在下方 */
.cpu-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cpu-model {
  color: var(--dim); font-size: 11px; font-weight: 400; line-height: 1.3;
  word-break: break-all;
}


/* 网络监控气泡: 统一对齐的细分行 */
.info-card .info-value.main {
  font-size: 22px;
  line-height: 1.25;
  margin: 4px 0 2px;
}
.net-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--dim);
  border-top: 1px solid var(--line2);
}
.net-line:first-of-type { border-top: none; padding-top: 8px; }
.nl-key { display: inline-flex; align-items: center; gap: 6px; }
.nl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.nl-dot.down { background: #22d3ee; }   /* 下载: 青色 */
.nl-dot.up   { background: #3b82f6; }   /* 上传: 蓝色 */
.nl-dot.today{ background: #f59e0b; }   /* 今日: 琥珀色 */
.nl-dot.all  { background: #a855f7; }   /* 实时流量: 紫色 */
.nl-val {
  font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  white-space: nowrap;
}

/* ============================================================
   在线玩家
   ============================================================ */
.player-list {
  display: flex; flex-wrap: wrap; gap: 14px;
  min-height: 44px; align-content: flex-start;
}

.player-empty {
  width: 100%; padding: 16px; text-align: center; color: var(--dim);
  font-size: 13px;
  border: 1px dashed var(--line2); border-radius: 12px;
}

/* ---------- Wiki 服务器介绍栏 ---------- */
.wiki-intro {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 32px 24px;
  transition: border-color .3s ease, box-shadow .3s ease;
  box-shadow: var(--card-shadow);
}
.wiki-intro:hover {
  border-color: var(--accent-border);
  box-shadow: var(--card-hover-shadow);
}
.wiki-intro p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text);
  margin: 0 0 16px;
  text-indent: 2em;
  text-align: justify;
}
/* 首段：开服引言 — 居中展示, 底部分隔线 */
.wiki-intro p:first-of-type {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-heading);
  text-indent: 0;
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line2);
}
/* 第二段：整合包履历 — 左侧装饰线 + 浅色背景突出核心内容 */
.wiki-intro p:nth-of-type(2) {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  text-indent: 0;
  margin-left: -4px;
  line-height: 1.85;
}
/* 高于 .topbar(z-index:90) 与标签栏(9000) */
.wiki-intro p:last-of-type {
  text-align: center;
  text-indent: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-heading);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line2);
  margin-bottom: 0;
}
.wiki-intro b { color: var(--accent); font-weight: 700; }
.wiki-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
  justify-content: center;
}
.wiki-tags span {
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 5px 13px;
}

.player-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  width: auto; min-width: 140px;    /* 自适应宽度, 长名字不截断 */
  flex: 0 0 auto;
  transition: all .3s ease;
}
.player-chip:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
}

.player-avatar {
  position: relative; width: 44px; height: 44px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: var(--avatar-grad);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2);
}
.player-avatar span {
  font-size: 19px; font-weight: 700;
  color: var(--avatar-letter); text-transform: uppercase;
}
.player-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.player-info { min-width: 0; flex: 1; }
.player-name {
  font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3;
  word-break: break-all;
}

/* ============================================================
   服务器介绍页
   ============================================================ */
/* ---------- 核心区 ---------- */
#page-team,
#page-wiki {
  min-height: calc(100dvh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 团队成员: 单栏纵向排列, 卡片内信息竖向展示 */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.team-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;     /* 内部内容垂直居中 */
  text-align: center; gap: 12px;
  width: 260px;
  height: 300px;              /* 固定高度, 保证两张卡大小完全一致 */
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 30px 24px 26px;
  transition: all .3s ease;
  box-shadow: var(--card-shadow);
}
.team-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}
.team-avatar {
  width: 88px; height: 88px; border-radius: 24px; object-fit: cover;
  border: 2px solid var(--line2); flex-shrink: 0;
}
.team-info { min-width: 0; }
.team-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text-heading); }
.team-role { color: var(--dim); font-size: 13px; line-height: 1.8; }

/* ============================================================
   服务器日志 — 卡片版
   ============================================================ */
.log-header {
  text-align: center;
  padding: 36px 20px 28px;
  margin-bottom: 20px;
}
.log-header h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 8px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .5px;
}
.log-header p {
  color: var(--dim);
  font-size: 14.5px;
  margin: 0;
}

.log-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.log-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
  transition: all .3s ease;
  overflow: hidden;
  position: relative;
}
.log-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity .3s ease;
}
.log-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}
.log-card:hover::before {
  opacity: 1;
}

.log-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line2);
}

.log-card-date {
  font-size: 19px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .3px;
}

.log-card-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 4px 12px;
}

.log-card-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.log-card-items li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}
.log-card-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity .2s ease;
}
.log-card:hover .log-card-items li::before {
  opacity: 1;
}

/* 合影区 */
.log-photo {
  margin-top: 8px;
}
.log-photo-tag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--dim);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 500;
}
.anniversary-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line2);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: zoom-in;
}
.anniversary-img:hover {
  transform: scale(1.005);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* 图片查看器 */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: grab;
  user-select: none;
}
.img-viewer.active {
  opacity: 1;
  visibility: visible;
}
.img-viewer.dragging {
  cursor: grabbing;
}
.img-viewer img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
.img-viewer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  z-index: 10;
  line-height: 1;
}
.img-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.img-viewer-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

/* 旧日志样式保留兼容 (不再使用) */
.changelog { display: flex; flex-direction: column; min-height: 60px; }
.changelog-photo { margin-bottom: 20px; }
.changelog-photo .tag { margin-bottom: 10px; display: inline-block; }
.cl-group {
  position: relative; padding-left: 24px; padding-bottom: 28px;
  border-left: 2px solid var(--line2); margin-left: 8px;
}
.cl-group:last-child { border-left-color: transparent; padding-bottom: 4px; }
.cl-group::before {
  content: ''; position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}
.cl-date {
  display: inline-block;
  font-size: 13px; font-weight: 700; color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 14px; margin-bottom: 10px;
}
.cl-items { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl-items li {
  position: relative; padding-left: 18px;
  color: var(--dim); font-size: 13px; line-height: 1.75;
}
.cl-items li::before {
  content: '\25A0';   /* ---------- 流量统计 ---------- */
  position: absolute; left: 0; color: var(--accent);
}
.log-entry { display: flex; gap: 24px; align-items: flex-start; position: relative; }
.log-entry-date { flex-shrink: 0; width: 96px; text-align: right; padding-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); }
.log-entry-card { flex: 1; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 18px 22px; }
.log-entry-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.log-entry-items li { position: relative; padding-left: 16px; color: var(--text); font-size: 13.5px; line-height: 1.85; }

/* ============================================================
   旧版指标卡 (保留兼容)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 18px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 16px 18px 12px;
  display: flex; flex-direction: column; gap: 6px;
  transition: all .3s ease;
  box-shadow: var(--card-shadow);
}
.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.card-title { color: var(--dim); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.card-val { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.card-val.good { color: var(--green); }
.card-val.warn { color: var(--yellow); }
.card-val.bad  { color: var(--red); }
.card-val.dim  { color: var(--dim); }

.sub-row {
  color: var(--dim); font-size: 11.5px; min-height: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sub-row b { color: var(--text); font-weight: 600; }

.mini-bar {
  display: inline-block; width: 100%; height: 6px;
  background: var(--mini-track); border-radius: 3px; overflow: hidden;
  vertical-align: middle;
}
.mini-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: var(--accent-grad);
  width: 0%; transition: width .4s;
}

.legend { display: inline-flex; align-items: center; gap: 5px; margin-right: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.down { background: var(--green); }
.dot.up   { background: var(--blue); }

/* ============================================================
   响应式 — 平板 (≤960px)
   ============================================================ */
@media (max-width: 960px) {
  .hp-page-1, .hp-page-2 { flex-direction: column; gap: 16px; }
  .hp-page-1 .hero { flex: none; }
  .hp-page-1 .home-stats { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .info-cards { grid-template-columns: 1fr; }
  /* 平板: 侧边栏收窄 */
  .sidebar { width: 150px; padding: 18px 10px; }
  .wrap {
    margin-left: max(150px, calc(150px + (100vw - 150px - 1320px) / 2));
  }
}

/* ============================================================
   响应式 — 手机 (≤720px)
   ============================================================ */
@media (max-width: 720px) {
  .wrap { padding: 10px 10px 24px; margin-left: 0; margin-right: auto; }

  /* 侧边栏在窄屏变为顶部横排 */
  .sidebar {
    position: static;
    width: 100%;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 8px 10px; padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--topbar-border);
    margin-bottom: 10px;
  }
  .sidebar .brand { flex-direction: row; gap: 8px; text-align: left; }
  .sidebar .logo { width: 34px; height: 34px; border-radius: 9px; }
  .sidebar .brand h1 { font-size: 15px; }
  .sidebar-status { font-size: 10.5px; padding: 2px 8px; }
  .sidebar .brand-text { gap: 8px; }
  .sidebar .theme-btn { font-size: 14px; padding: 4px 10px; margin-top: 0; }
  .sidebar .nav {
    flex-direction: row; flex-wrap: wrap;
    gap: 3px; justify-content: center;
    width: 100%; order: 5;
  }
  .sidebar .nav a { font-size: 12.5px; padding: 5px 9px; }

  .logo { width: 34px; height: 34px; border-radius: 9px; }
  .brand h1 { font-size: 15px; }
  .nav a { font-size: 12.5px; padding: 5px 10px; }
  .pill { font-size: 11px; padding: 4px 9px; }
  .theme-btn { font-size: 14px; padding: 4px 8px; }
  .page-pills { margin-bottom: 12px; }

  /* 手机端: 首页自然滚动, 两栏变单栏 */
  #page-home { height: auto; margin: 0; overflow: visible; }
  .hp-wrap { height: auto; }
  .hp-page {
    position: relative;
    inset: auto;
    height: auto;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }
  .hp-page-1 {
    padding: 10px 12px;
    min-height: auto;
    gap: 20px;
  }
  /* 手机端隐藏分页导航与滚轮提示 */
  .hp-nav, .hp-scroll-hint { display: none !important; }
  .hp-page-1 .hero { padding: 18px 14px 16px; gap: 8px; margin-bottom: 4px; }
  .hero-logo { width: 72px; height: 72px; border-radius: 18px; }
  .hero h1 { font-size: 20px; }
  .addr-bar { padding: 8px 12px; gap: 8px; }
  .addr-label { font-size: 11px; }
  .addr-value { font-size: 14px; }
  .btn-copy { padding: 3px 8px; font-size: 11px; }
  .hero-actions { gap: 8px; }
  .btn-big { padding: 8px 16px; font-size: 13px; }
  .hp-page-1 .btn-big { padding: 8px 10px; font-size: 12.5px; min-width: 96px; }
  .hp-page-1 .hp-inner { padding: 2px 4px; }
  .hp-page-1 .hp-head { margin-bottom: 10px; }
  .hp-page-1 .hp-head-gap { margin-top: 12px; }
  .hp-page-1 .home-stats { gap: 8px; }
  .hp-page-1 .home-stat { padding: 12px 6px; }
  .hp-page-1 .hs-label { font-size: 11px; }
  .hp-page-1 .hs-value { font-size: 18px; }
  .hp-page-2 { padding: 48px 12px 40px; }
  .hp-page-2 .hp-head { margin-bottom: 14px; }
  .hp-inner { padding: 4px 8px; }
  .hp-page-2 .play-grid { grid-template-columns: 1fr; gap: 12px; }
  .play-card { padding: 16px 18px; }

  .info-card { padding: 18px; }
  .info-value { font-size: 17px; }
  .section-title { font-size: 14px; }
  .chart-card canvas { height: 100px; }
  .traffic-chart { height: 190px; }
  .player-chip { width: auto; min-width: 120px; flex: 0 0 auto; }
  .panel { padding: 14px 14px; }
}

/* 卡片行 */

/* ---------- 登录界面 ---------- */
.admin-login {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100dvh - 140px);
  padding: 20px;
}
.admin-login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 44px 40px;
  text-align: center;
  max-width: 400px; width: 100%;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  transition: all .3s ease;
}
.admin-login-card:hover {
  box-shadow: 0 16px 56px rgba(37, 99, 235, 0.12);
  border-color: var(--line-accent);
}
.admin-login-icon { font-size: 48px; margin-bottom: 12px; }
.admin-login-card h2 {
  font-size: 22px; font-weight: 700; margin-bottom: 6px;
  color: var(--text-heading);
}
.admin-login-hint {
  color: var(--dim); font-size: 13px; margin-bottom: 24px;
}
.admin-form {
  display: flex; flex-direction: column; gap: 12px;
}
.admin-input {
  width: 100%; padding: 12px 16px;
  border-radius: 10px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--text);
  font-size: 14px; font-family: inherit;
  outline: none; transition: all .25s ease;
}
.admin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.admin-error {
  color: var(--red); font-size: 12.5px; min-height: 18px;
  margin: 0;
}
.admin-login-btn {
  width: 100%; padding: 12px; font-size: 15px;
  border-radius: 10px; margin-top: 4px;
}

/* ---------- 管理面板顶栏 ---------- */
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.admin-topbar h2 {
  font-size: 18px; font-weight: 700; color: var(--text-heading);
}
.admin-topbar-right {
  display: flex; align-items: center; gap: 10px;
}

/* ---------- 管理面板状态卡片 ---------- */
.admin-cards {
  margin-bottom: 20px;
}

/* ---------- 控制台输出 ---------- */
.console-output {
  background: #0a0f18;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  max-height: 420px; min-height: 180px;
  overflow-y: auto; overflow-x: auto;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'monospace';
  font-size: 12px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-all;
  color: #c9d1d9;
  transition: background .3s ease;
}
[data-theme="dark"] .console-output {
  background: #050a12;
}
.console-line {
  padding: 1px 0;
}
.console-line:hover {
  background: rgba(59, 130, 246, 0.08);
}
.console-empty {
  color: var(--dim); text-align: center; padding: 40px 0;
  font-family: inherit; font-size: 13px;
}

/* ---------- 命令输入栏 ---------- */
.cmd-bar {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.cmd-input {
  flex: 1; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--text);
  font-size: 13.5px; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  outline: none; transition: all .25s ease;
}
.cmd-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.cmd-bar .btn-primary {
  padding: 10px 22px; font-size: 13.5px; white-space: nowrap;
}

/* 快捷命令 */
.cmd-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 14px;
}
.cmd-quick-label {
  font-size: 12px; color: var(--dim); margin-right: 4px;
}
.cmd-chip {
  font-size: 11.5px; padding: 4px 10px; border-radius: 7px;
  cursor: pointer; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.cmd-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* 命令结果 */
.cmd-result {
  margin-top: 8px;
}
.cmd-result pre {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 12px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all;
  color: var(--text);
  max-height: 200px; overflow-y: auto;
  margin-top: 6px;
}
.cmd-result-ok {
  color: var(--green); font-size: 13px; font-weight: 600;
}
.cmd-result-err {
  color: var(--red); font-size: 13px; font-weight: 600;
}
.cmd-result-loading {
  color: var(--dim); font-size: 13px;
}

/* 响应式: 管理页 */
@media (max-width: 720px) {
  .admin-login-card { padding: 32px 24px 28px; }
  .admin-login-card h2 { font-size: 19px; }
  .admin-login-icon { font-size: 38px; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .console-output { max-height: 280px; }
  .cmd-bar { flex-direction: column; }
  .cmd-bar .btn-primary { width: 100%; }
}

/* 图表卡 */
.topbar-inner {
  position: relative;
  isolation: isolate;
  background:
    var(--cb-flute),
    var(--topbar-bg);
  background-size: 34px 100%, auto;
  backdrop-filter: blur(22px);
  backdrop-filter: url(#cbWarp) blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.topbar-inner::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
}

/* 流量卡的 net-line 适配 */
.dc-card {
  box-shadow:
    var(--glass-shadow),
    0 10px 22px -14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .dc-card {
  box-shadow:
    var(--glass-shadow),
    0 10px 22px -14px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(148, 197, 255, 0.10);
}

/* 响应式 */
@media (prefers-reduced-motion: reduce) {
  .cb-flutes { animation: none !important; }
  .cb-ripple { display: none; }
  .cb-bg .aurora-layer { animation-duration: 90s !important; }
  .m-tab-icon { transition: none !important; }
  .m-tabbar .m-tab.active .m-tab-icon { transform: none !important; }
}

/* ============================================================
   响应式 — 手机 (≤720px) — 补充规则
   ============================================================ */
@media (max-width: 960px) and (min-width: 721px) {
  /* 页头 */
  .tb-nav {
    position: static; transform: none;
    flex: 1; justify-content: center; flex-wrap: wrap;
    margin-right: 52px;
  }
  .tb-nav-item { padding: 8px 14px !important; font-size: 13.5px !important; }
  /* 双栏网格 */
  .wrap { padding: 128px 20px 36px; margin: 0 auto; }
  .hp-page-1 { padding: 24px 24px !important; }
}

@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; }

  /* 通用卡片 */

  /* 服务器状态 */
  .wrap { padding: 132px 14px 28px; }
  #page-home { min-height: 0; align-items: flex-start; }

  /* ---- 首页 Hero ---- */
  .hp-page-1 { padding: 4px 0 0 !important; }
  .home-hero { max-width: 100%; margin-bottom: 24px; }
  .home-logo { width: 68px; height: 68px; border-radius: 18px; margin-bottom: 14px; }
  .home-title { font-size: clamp(28px, 9vw, 38px); }
  .home-slogan { font-size: 13px; letter-spacing: .5px; margin-bottom: 22px; }

  /* ---- 地址 / QQ群 卡片 ---- */
  .home-connect { gap: 10px; }
  .hc-row { padding: 12px 14px; gap: 10px; border-radius: 12px; }
  .hc-label { width: auto; font-size: 12px; }
  .hc-value { font-size: 14px; overflow-wrap: anywhere; }
  .hc-copy { padding: 6px 12px; font-size: 12px; }

  /* ---- 实时状态条: 关闭 nowrap, 改两列换行 ---- */
  .home-status { flex-wrap: wrap !important; gap: 0 !important; padding-top: 8px; }
  .hst-item { flex: 0 0 50%; padding: 12px 4px; gap: 6px; }
  .hst-label { font-size: 11.5px; }
  .hst-val { font-size: 19px; }
  .hst-net .hst-val { font-size: 15px; }
  /* 状态指示灯: 桌面端绝对定位挂在格子右侧, 手机端改为跟随文字 */
  .hst-dot {
    position: static; display: inline-block;
    width: 7px; height: 7px; margin-left: 5px;
    vertical-align: middle;
  }

  /* ---- 介绍 / Wiki / 玩法 ---- */
  .wiki-header h1 { font-size: 23px; }
  .wiki-header p { font-size: 13.5px; }
  .wiki-card { padding: 18px 16px; }
  .wiki-stats span { font-size: 12px; padding: 5px 12px; }
  .panel { padding: 16px 14px; }
  .panel-head h2 { font-size: 16px; }
  .play-grid { grid-template-columns: 1fr !important; }

  /* ---- 服主卡片 ---- */
  .team-card { width: 100%; max-width: 262px; }

  /* ---- 服务器状态页 ---- */
  .dc-head h2 { font-size: 19px; }
  .dc-card { padding: 16px; }
  .dc-card-title { flex-wrap: wrap; gap: 8px; }
  .dc-chart { padding: 16px 12px; }
  .traffic-chart { height: 175px !important; }

  /* ---- 服务器日志 ---- */
  .log-header h1 { font-size: 22px; }
  .log-card { padding: 16px; }

  /* ---- 服务器日志 ---- */
}

/* ============================================================
   移动端底部标签栏 (仅在 ≤720px 显示; 桌面端由 CSS 隐藏)
   ============================================================ */
.m-tabbar { display: none; }

@media (max-width: 720px) {
  .m-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9000;
    align-items: stretch;
    justify-content: space-around;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
    /* 必须用不透明背景: 触摸端的 backdrop-filter 已关闭, 半透明背景会让下方内容透出 */
    background: var(--card);
    border-top: 1px solid var(--line2);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  }
  [data-theme="dark"] .m-tabbar {
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  }

  .m-tabbar .m-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dim);
    font-size: 10.5px;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
    transition: color .25s ease, background-color .25s ease;
  }
  .m-tab-icon {
    font-size: 19px;
    line-height: 1;
    transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
  }
  .m-tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .m-tabbar .m-tab.active {
    color: var(--accent);
    background: var(--accent-soft);
  }
  .m-tabbar .m-tab.active .m-tab-icon {
    transform: translateY(-1px) scale(1.12);
  }
  /* 点击反馈 (触摸端没有 hover, 用 :active 代替) */
  .m-tabbar .m-tab:active {
    background: var(--accent-soft);
  }

}

/* ============================================================
   触摸设备闪烁修复 (性能)
   ============================================================ */
@media (max-width: 1024px) {
  /* 一次性关闭所有元素的毛玻璃 (用通配符, 避免遗漏后续新增元素) */
  *, *::before, *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 毛玻璃关闭后需要提高不透明度, 保证可读性 */
  :root {
    --glass-bg:     rgba(255, 255, 255, 0.94);
    --glass-border: rgba(226, 232, 240, 0.9);
    --topbar-bg:    rgba(255, 255, 255, 0.96);
  }
  [data-theme="dark"] {
    --glass-bg:     rgba(15, 26, 46, 0.94);
    --glass-border: rgba(30, 45, 74, 0.9);
    --topbar-bg:    rgba(10, 18, 34, 0.96);
  }

  /* 极光层: 保留静态渐变底色, 停止移动 (动画会让底层内容不断变化) */
  .aurora-layer {
    animation: none !important;
  }
  /* 固定在一个好看的静态位置 */
  .a1 { transform: translate(0, 0) rotate(0deg) scale(1); }
  .a2 { transform: translate(0, 0) rotate(0deg) scale(1); }
  .a3 { transform: translate(0, 0) rotate(0deg) scale(1); }
  .a4 { transform: translate(0, 0) rotate(0deg) scale(1); }
  .a5 { transform: translate(0, 0) rotate(0deg) scale(1); }

  /* 瓦楞竖纹在触摸端直接隐藏: 它是一层 18px 周期的重复线性渐变竖条 */
  .cb-flutes { display: none; }

  /* .cb-flutes 原本还叠了一层斜向蓝紫青渐变, 隐藏它会丢掉这层色彩, 这里把同样的渐变移到 .cb-bg 上 */
  .cb-bg {
    background: linear-gradient(115deg,
      rgba(37, 99, 235, 0.09) 0%,
      rgba(6, 182, 212, 0.08) 35%,
      rgba(139, 92, 246, 0.08) 65%,
      rgba(37, 99, 235, 0.07) 100%);
  }
  [data-theme="dark"] .cb-bg {
    background: linear-gradient(115deg,
      rgba(59, 130, 246, 0.10) 0%,
      rgba(34, 211, 238, 0.08) 35%,
      rgba(139, 92, 246, 0.10) 65%,
      rgba(59, 130, 246, 0.08) 100%);
  }

  /* 鼠标跟随涟漪在触摸端无意义 (且会触发整屏重绘) */
  .cb-ripple { display: none; }

  /* 硬件加速: 让滚动容器独立成层, 减少整页重绘 */
  .wrap { transform: translateZ(0); }
  .topbar, .m-tabbar { transform: translateZ(0); }

  /* 状态指示灯脉冲动画在触摸端关闭, 只保留静态辉光 */
  .hs-indicator.online {
    animation: none !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  }
}

/* ============================================================
   移动端体验增强 (触摸交互 / iOS 适配 / 安全区)
   ============================================================ */
@media (max-width: 720px) {
  /* 底部为固定标签栏留出安全区 */
  .wrap {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* iOS: 字号小于 16px 的输入框聚焦时会自动放大页面 */
  input, textarea, select, .admin-input, .cmd-input {
    font-size: 16px !important;
  }

  /* 消除移动端 300ms 点击延迟与双击缩放 */
  html { touch-action: manipulation; }
  a, button, .m-tab, .btn, .hc-copy, .tb-nav-item, .hc-row {
    touch-action: manipulation;
  }

  /* 左右安全区 (刘海屏横屏) */
  .wrap { padding-left: calc(14px + env(safe-area-inset-left, 0px));
          padding-right: calc(14px + env(safe-area-inset-right, 0px)); }

  /* 防止长内容撑破视口导致横向滚动 */
  body { max-width: 100%; overflow-x: clip; }
  @supports not (overflow-x: clip) {
    body { overflow-x: hidden; }
  }
  img, canvas, video { max-width: 100%; }

  /* 玩家卡片: 手机上两列排布 */
  .player-chip { min-width: 0 !important; flex: 1 1 calc(50% - 6px) !important; }
  #playerList { gap: 8px; }
  .anniversary-img { border-radius: 12px; }

  /* 图表: 允许纵向滑动翻页, 横向手势留给图表交互 */
  .traffic-chart { touch-action: pan-y; }

  /* 触摸目标尺寸: 保证不小于 32-36px 便于点按 */
  .hc-copy { min-height: 32px; }
  .tb-nav-item { min-height: 36px; display: inline-flex; align-items: center; }

  /* 图表 tooltip 不超出视口 */
  #chartTooltip { max-width: min(240px, calc(100vw - 24px)); }
}

/* ============================================================
   移动端: 隐藏顶部导航栏, 改用底部标签栏
   ============================================================ */
@media (max-width: 720px) {
  /* 彻底移除顶栏, 不占位 */
  .topbar { display: none !important; }

  /* 主题按钮: 顶栏隐藏后独立悬浮在右上角 */
  .tb-theme-btn {
    display: flex !important;
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    z-index: 9500;                 /* 高于 .topbar(z-index:90) 与标签栏(9000) */
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    background: var(--topbar-bg);
    border: 1px solid var(--topbar-border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease, background-color .25s ease, border-color .25s ease;
  }
  [data-theme="dark"] .tb-theme-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  }
  .tb-theme-btn:active {
    transform: scale(0.92);
  }

  /* 为悬浮的主题按钮预留顶部空间 */
  .wrap { padding-top: calc(60px + env(safe-area-inset-top, 0px)) !important; }

  /* 首页 Hero: 顶部不再额外留白 */
  .hp-page-1 { padding-top: 0 !important; }

  /* Hero 轻微下移, 视觉上更居中 */
  .home-hero { padding-top: 8px; }
}

/* 平板区间 (721-960px) 顶栏保留, 但内容顶部留白按实际顶栏高度收紧 */
@media (min-width: 721px) and (max-width: 960px) {
  .wrap { padding-top: 112px !important; }

  /* 平板区间: 实时状态条两列换行 */
  .home-status { flex-wrap: wrap !important; gap: 4px !important; }
  .hst-item { flex: 0 0 50%; padding: 10px 4px; }
  .hst-net .hst-val { font-size: 20px; }
}

/* 极窄屏 (小屏手机 / 分屏) 进一步压缩 */
@media (max-width: 380px) {
  .m-tabbar .m-tab { font-size: 10px; }
  .m-tab-icon { font-size: 17px; }
  .hst-val { font-size: 17px; }
  .hst-net .hst-val { font-size: 13.5px; }
  .home-title { font-size: clamp(24px, 9vw, 32px); }
  .hc-value { font-size: 13px; }
}

/* 横屏矮视口 (手机横屏): 压缩纵向留白 */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .wrap { padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important; }
  .home-logo { width: 52px; height: 52px; }
  .home-title { font-size: 26px; }
  /* 横屏矮视口: 缩小主题按钮 */
  .tb-theme-btn { width: 36px; height: 36px; font-size: 16px; }
}
