/* ===== 全局变量与重置 ===== */
:root {
  --bg-0: #040a18;
  --bg-1: #081226;
  --bg-2: #0c1b38;
  --panel: rgba(13, 30, 60, 0.72);
  --panel-solid: #0d1e3c;
  --line: rgba(64, 140, 255, 0.22);
  --line-strong: rgba(86, 170, 255, 0.55);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #34d399;
  --orange: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --text: #dce8ff;
  --text-dim: #8aa2c8;
  --text-faint: #5c7299;
  --num-font: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
  overflow: hidden;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(59, 130, 246, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

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

/* ===== 通用面板 ===== */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  backdrop-filter: blur(4px);
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.8;
}
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.panel-title {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #eaf3ff;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.panel-title::before {
  content: "";
  width: 4px; height: 14px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 2px;
}
.panel-title .sub {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0;
}

.chart { flex: 1; min-height: 0; width: 100%; }

/* ===== 状态徽章 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.ok { color: var(--green); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); }
.badge.wait { color: var(--orange); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.35); }
.badge.rest { color: var(--text-dim); background: rgba(138, 162, 200, 0.12); border: 1px solid rgba(138, 162, 200, 0.3); }
.badge.info { color: var(--cyan); background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.3); }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(86, 140, 220, 0.35); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
