/* ============================================================
   行水加速器 · 管理台  深空暗色控制台样式
   ============================================================ */
:root {
  --bg: #0a0e1a;
  --card: rgba(255, 255, 255, .04);
  --card-hover: rgba(255, 255, 255, .065);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #e5e9f2;
  --text-dim: #8b93a7;
  --text-faint: #5b6478;
  --primary: #22d3ee;
  --primary-2: #6366f1;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --orange: #fb923c;
  --purple: #a78bfa;
  --grad: linear-gradient(135deg, #22d3ee, #6366f1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(34, 211, 238, .3); }

/* 背景光斑 */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(620px 420px at 10% -6%, rgba(34, 211, 238, .10), transparent 62%),
    radial-gradient(760px 520px at 96% 6%, rgba(99, 102, 241, .11), transparent 62%),
    radial-gradient(560px 460px at 50% 112%, rgba(99, 102, 241, .07), transparent 60%);
}

.hidden { display: none !important; }
.muted { color: var(--text-dim); }
.spacer { flex: 1; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   登录页
   ============================================================ */
.login-view {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  width: 380px; max-width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 34px 34px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  animation: popIn .3s ease;
}
.login-logo {
  font-size: 26px; font-weight: 800; text-align: center; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.login-logo img { width: 38px; height: 38px; object-fit: contain; -webkit-text-fill-color: initial; }
.login-sub {
  text-align: center; color: var(--text-dim); font-size: 13px;
  letter-spacing: 6px; margin: 6px 0 28px;
}
.btn-block { width: 100%; margin-top: 8px; padding: 10px; font-size: 14px; }

/* ============================================================
   布局
   ============================================================ */
.layout { position: relative; z-index: 1; min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 220px; z-index: 20;
  display: flex; flex-direction: column;
  background: rgba(10, 14, 26, .82);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}
.side-logo { padding: 22px 18px 18px; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.side-logo-img { width: 168px; height: auto; display: block; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nav { flex: 1; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  color: var(--text-dim); font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: all .18s ease;
  user-select: none;
}
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-item.active {
  color: #fff; background: rgba(34, 211, 238, .09);
  border-left-color: var(--primary);
}
.nav-item.active .nav-icon { color: var(--primary); }
.nav-icon { width: 18px; height: 18px; flex: none; }
.side-foot {
  padding: 14px 18px; font-size: 11px; color: var(--text-faint);
  border-top: 1px solid var(--border); letter-spacing: 1px;
}

.main { margin-left: 220px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(10, 14, 26, .78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.page-title { font-size: 16px; font-weight: 600; color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.admin-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dim);
}
.admin-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px rgba(52, 211, 153, .8);
}
.btn-exit { padding: 6px 12px; font-size: 12.5px; color: var(--text-dim); }
.btn-exit:hover { color: var(--red); border-color: rgba(248, 113, 113, .4); }

.page-content { flex: 1; padding: 22px 24px 40px; position: relative; }
.page-loading { padding: 60px 0; text-align: center; color: var(--text-dim); }

/* ============================================================
   卡片 / 统计
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background .2s ease, border-color .2s ease;
}
.card:hover { background: var(--card-hover); border-color: var(--border-strong); }
.card-head { padding: 16px 18px 4px; font-weight: 600; font-size: 14px; color: #d6dbe8; }
.empty-card { padding: 46px 20px; text-align: center; color: var(--text-dim); }

.stat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; transition: all .2s ease;
}
.stat-card:hover { background: var(--card-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.stat-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 6px; color: #fff; font-variant-numeric: tabular-nums; }

/* 图表 */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.chart-card { padding: 16px 18px 10px; }
.chart-title { font-size: 13px; font-weight: 600; color: #c3cad9; margin-bottom: 8px; }
.line-chart { width: 100%; height: auto; display: block; }
.line-chart circle { transition: r .15s ease; cursor: pointer; }
.line-chart circle:hover { r: 5.5; }

/* ============================================================
   工具条 / 表格
   ============================================================ */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search-input { width: 220px; }
.toolbar .sel { width: 136px; }
.muted-tip { font-size: 12.5px; color: var(--text-faint); }

.table-card { overflow: hidden; margin-bottom: 16px; }
.table-card:hover { background: var(--card); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th {
  text-align: left; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px; font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  vertical-align: middle;
}
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .035); }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-empty { text-align: center; color: var(--text-dim); padding: 34px 0 !important; }
.td-actions { white-space: nowrap; }
.td-actions .btn + .btn { margin-left: 6px; }

.url-cell {
  display: inline-block; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: middle; color: var(--text-dim); font-size: 12px;
}
.cover-img {
  width: 60px; height: 28px; object-fit: cover;
  border-radius: 4px; display: block; background: rgba(255, 255, 255, .06);
}
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }

/* 用户剩余时长：已用尽标红 */
.balance-zero { color: var(--red); font-weight: 600; }

/* 用户微信绑定徽章：青色描边 */
.wx-badge {
  display: inline-block; margin-left: 6px; padding: 0 7px;
  border: 1px solid rgba(34, 211, 238, .45); border-radius: 999px;
  color: var(--primary); font-size: 11px; line-height: 17px;
  vertical-align: 1px; white-space: nowrap;
}

/* ============================================================
   徽章
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 12px; line-height: 18px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-green  { color: var(--green);  background: rgba(52, 211, 153, .1);  border-color: rgba(52, 211, 153, .35); }
.badge-gray   { color: var(--text-dim); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.badge-yellow { color: var(--yellow); background: rgba(251, 191, 36, .1);  border-color: rgba(251, 191, 36, .35); }
.badge-red    { color: var(--red);    background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); }
.badge-orange { color: var(--orange); background: rgba(251, 146, 60, .1);  border-color: rgba(251, 146, 60, .35); }
.badge-cyan   { color: var(--primary);background: rgba(34, 211, 238, .1);  border-color: rgba(34, 211, 238, .35); }
.badge-purple { color: var(--purple); background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .35); }
.badge-hot {
  color: #0a0e1a; background: linear-gradient(135deg, #fbbf24, #fb923c);
  border: none; font-weight: 700; font-size: 11px; letter-spacing: .5px;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  display: inline-block; animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  70%  { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px;
  padding: 7px 14px; font-size: 13px; color: var(--text);
  background: rgba(255, 255, 255, .06);
  transition: all .18s ease; white-space: nowrap; user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.12); background: var(--grad); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-cyan { background: transparent; border-color: rgba(34, 211, 238, .45); color: var(--primary); }
.btn-cyan:hover { background: rgba(34, 211, 238, .1); }
.btn-red { background: transparent; border-color: rgba(248, 113, 113, .45); color: var(--red); }
.btn-red:hover { background: rgba(248, 113, 113, .1); }
.btn-xs { padding: 3px 10px; font-size: 12px; border-radius: 6px; }

/* ============================================================
   表单
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 12px; color: var(--text-dim); }
.field .req { color: var(--red); font-style: normal; margin-left: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.form-grid .field { margin-bottom: 12px; }
.form-grid .field-full { grid-column: 1 / -1; }
.field-inline { flex-direction: row; align-items: center; gap: 12px; }
/* 设置页并排控件行（如「数值 + 单位下拉」），select 复用 select.input 暗色样式 */
.field-row { display: flex; gap: 10px; }
.field-row .input { min-width: 0; flex: 1; }
.field-row select.input { flex: 0 0 110px; }

.input, select.input, textarea.input {
  width: 100%; font-family: inherit;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text); border-radius: 8px;
  padding: 8px 12px; font-size: 13px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.input::placeholder { color: var(--text-faint); }
select.input { appearance: auto; cursor: pointer; }
select.input option, select.input optgroup { background: #121729; color: var(--text); }
textarea.input { resize: vertical; min-height: 64px; line-height: 1.5; }
.input-error { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(248, 113, 113, .12) !important; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .14); transition: .2s; cursor: pointer;
}
.switch .slider::before {
  content: ''; position: absolute; width: 16px; height: 16px;
  left: 3px; top: 3px; border-radius: 50%;
  background: #cbd5e1; transition: .2s;
}
.switch input:checked + .slider { background: var(--grad); }
.switch input:checked + .slider::before { transform: translateX(18px); background: #fff; }
.switch input:disabled + .slider { opacity: .5; cursor: wait; }

/* 节点实时监控：青色开关 + 状态标签 */
.monitor-switch { vertical-align: middle; }
.monitor-switch input:checked + .slider { background: var(--primary); }
.monitor-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim); white-space: nowrap;
}
.monitor-label .dot-live { width: 8px; height: 8px; }

/* 无效节点清理 */
.fail-count { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--red); }
.cleanup-summary { margin: 0 0 12px; font-size: 13px; color: var(--text-dim); }
.cleanup-summary b { color: #fff; font-size: 15px; margin: 0 2px; }
.cleanup-summary .cleanup-dead { color: var(--red); }
.cleanup-table { min-width: 0; }

/* 系统设置页：多卡片纵向排列 */
.settings-card { max-width: 640px; padding: 24px; margin-bottom: 16px; }
.settings-card .field { margin-bottom: 16px; }
.settings-title { font-size: 14px; font-weight: 600; color: #d6dbe8; margin-bottom: 16px; }
.settings-foot { padding-top: 6px; }

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; padding: 13px 16px;
}
.pg-btn {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-dim); border-radius: 7px;
  padding: 4px 12px; font-size: 12.5px; transition: all .18s ease;
}
.pg-btn:hover:not(:disabled) { color: var(--primary); border-color: rgba(34, 211, 238, .45); }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pg-info { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ============================================================
   弹窗
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 7, 14, .66); backdrop-filter: blur(4px);
  animation: fadeIn .18s ease;
}
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 480px; max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px); overflow-y: auto;
  background: rgba(19, 25, 44, .94);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; z-index: 51;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
  animation: popIn .2s ease;
}
.modal-wide { width: 640px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  position: sticky; top: 0; background: rgba(19, 25, 44, .96); z-index: 2;
}
.modal-head h3 { font-size: 15px; font-weight: 600; color: #fff; }
.modal-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px;
  transition: all .15s ease;
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.modal-body { padding: 18px 22px 6px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px 18px;
  position: sticky; bottom: 0; background: rgba(19, 25, 44, .96);
}

/* ============================================================
   Toast
   ============================================================ */
#toast-wrap {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 1200; /* 高于数据大屏覆盖层 z-index:1000 */
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.toast {
  background: rgba(17, 23, 40, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 3px solid var(--primary);
  padding: 9px 18px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  animation: toastIn .22s ease; max-width: 72vw;
  word-break: break-all;
}
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .3s ease; }

/* ============================================================
   动画 / 响应式
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1400px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { width: 190px; }
  .main { margin-left: 190px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .page-content { padding: 16px 14px 32px; }
}

/* ============================================================
   数据大屏（#/screen 全屏覆盖层）
   ============================================================ */
.screen-view {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(34, 211, 238, .08), transparent 60%),
    radial-gradient(720px 520px at 6% 110%, rgba(99, 102, 241, .12), transparent 62%),
    linear-gradient(160deg, #050810 0%, #0a1226 100%);
}
/* 网格纹理 */
.screen-view::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 232, 249, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .9), transparent 80%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .9), transparent 80%);
}

/* 顶部标题栏 */
.screen-head {
  position: relative; z-index: 1; flex: none;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; gap: 16px;
  background: linear-gradient(180deg, rgba(10, 18, 38, .72), rgba(5, 8, 16, .15));
  border-bottom: 1px solid rgba(103, 232, 249, .14);
}
.screen-clock {
  min-width: 250px; white-space: nowrap;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 14px; letter-spacing: .5px; color: #9be8f5;
  text-shadow: 0 0 12px rgba(34, 211, 238, .45);
}
.screen-title-wrap { text-align: center; }
.screen-title {
  font-size: 26px; font-weight: 800; letter-spacing: 4px; line-height: 1.2; white-space: nowrap;
  background: linear-gradient(90deg, #67e8f9, #a78bfa 55%, #67e8f9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, .35));
}
.screen-title-line {
  height: 2px; margin: 6px auto 0; border-radius: 2px; max-width: 420px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .85), rgba(167, 139, 250, .85), transparent);
  box-shadow: 0 0 10px rgba(34, 211, 238, .5);
}
.screen-head-right {
  min-width: 250px; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.screen-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; color: var(--text-dim);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(103, 232, 249, .18);
}
.screen-chip b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 13px; font-weight: 700; color: #67e8f9;
}
.screen-btn {
  padding: 5px 14px; border-radius: 8px; font-size: 12.5px; white-space: nowrap;
  color: #9be8f5; background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(103, 232, 249, .35);
  transition: all .18s ease;
}
.screen-btn:hover { background: rgba(34, 211, 238, .16); box-shadow: 0 0 12px rgba(34, 211, 238, .25); }
.screen-btn-back { color: #c4b5fd; background: rgba(99, 102, 241, .1); border-color: rgba(167, 139, 250, .4); }
.screen-btn-back:hover { background: rgba(99, 102, 241, .2); box-shadow: 0 0 12px rgba(99, 102, 241, .3); }

/* 三栏主体 */
.screen-body {
  position: relative; z-index: 1; min-height: 0;
  height: calc(100vh - 72px - 16px);
  padding: 16px;
  display: grid; grid-template-columns: 26fr 48fr 26fr; gap: 16px;
}
.screen-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.screen-loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 15px; letter-spacing: 2px;
}
.scr-error-card {
  grid-column: 1 / -1; align-self: center; justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 46px; border-radius: 14px; text-align: center;
  background: rgba(13, 22, 44, .6); border: 1px solid rgba(248, 113, 113, .3);
  color: #e5e9f2; font-size: 15px; font-weight: 600;
  backdrop-filter: blur(10px);
}
.scr-error-card span { color: var(--text-dim); font-weight: 400; font-size: 13px; }
.scr-error-card small { color: var(--text-faint); font-size: 11.5px; }

/* 玻璃拟态卡片 */
.scr-card {
  position: relative; flex: 1; min-height: 0; min-width: 0;
  display: flex; flex-direction: column;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(13, 22, 44, .55);
  border: 1px solid rgba(103, 232, 249, .16);
  box-shadow: inset 0 0 24px rgba(34, 211, 238, .04), 0 8px 28px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
}
.scr-card-title {
  flex: none; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #c9f4fb;
  padding-bottom: 8px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(103, 232, 249, .1);
}
.scr-card-title::before {
  content: ''; flex: none; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #22d3ee, #6366f1);
  box-shadow: 0 0 8px rgba(34, 211, 238, .7);
}
.scr-chart { flex: 1; min-height: 0; }
.scr-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 2px; }
.scr-tip {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; text-align: center; color: var(--text-dim); font-size: 13px;
}
.scr-tip small { color: var(--text-faint); font-size: 11px; }
.scr-empty { padding: 20px 0; text-align: center; color: var(--text-faint); font-size: 12.5px; }

/* 左栏：KPI 小卡 2×2（青色发光大数字） */
.scr-kpi-grid { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scr-kpi {
  padding: 11px 14px; border-radius: 12px;
  background: rgba(13, 22, 44, .55);
  border: 1px solid rgba(103, 232, 249, .16);
  backdrop-filter: blur(10px);
}
.scr-kpi-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.scr-kpi-value {
  margin-top: 3px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 24px; font-weight: 700; color: #67e8f9;
  text-shadow: 0 0 14px rgba(34, 211, 238, .55);
  font-variant-numeric: tabular-nums;
}
.scr-trend-card { flex: 1.18; }
.scr-games-card { flex: 1; }

/* 中栏：地图下迷你指标 */
.scr-map-card { flex: 1; }
.scr-mini-grid { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.scr-mini {
  padding: 8px 6px; border-radius: 10px; text-align: center; min-width: 0;
  background: rgba(34, 211, 238, .06);
  border: 1px solid rgba(103, 232, 249, .14);
}
.scr-mini-label { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-mini-value {
  margin-top: 2px; white-space: nowrap;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 15px; font-weight: 700; color: #a5f3fc;
}

/* 右栏：卡片高度配比 */
.scr-prov-card { flex: 1.1; }
.scr-region-card { flex: .95; }
.scr-sess-card { flex: 1.15; }

/* 节点地区统计行 */
.scr-region-row {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px; font-size: 12.5px;
  transition: background .15s ease;
}
.scr-region-row:hover { background: rgba(255, 255, 255, .045); }
.scr-region-name { color: #d6dbe8; }
.scr-region-count {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 12px; color: var(--text-dim);
}
.scr-region-row .badge { margin-left: auto; }

/* 最新加速会话行卡片 */
.scr-session-row {
  flex: none; margin-bottom: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .15s ease, background .15s ease;
}
.scr-session-row:hover { background: rgba(34, 211, 238, .05); border-color: rgba(103, 232, 249, .25); }
.scr-session-row:last-child { margin-bottom: 0; }
.scr-session-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.scr-session-user {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #e5e9f2; font-weight: 600; font-size: 12.5px;
}
.scr-session-game {
  flex: none; margin-left: auto; padding: 0 8px; border-radius: 999px;
  font-size: 11px; line-height: 17px; color: #67e8f9;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(103, 232, 249, .25);
}
.scr-session-bottom {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0;
  font-size: 11px; color: var(--text-dim);
}
.scr-session-node { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-session-time { flex: none; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.scr-session-bottom .badge { margin-left: auto; flex: none; }

/* 数据大屏响应式 */
@media (max-width: 1280px) {
  .screen-chip { display: none; }
  .screen-clock { min-width: 0; }
  .screen-head-right { min-width: 0; }
  .screen-title { font-size: 21px; letter-spacing: 2px; }
}
@media (max-width: 960px) {
  .screen-body { grid-template-columns: 1fr; height: auto; overflow-y: auto; }
  .screen-col { min-height: 460px; }
}
