:root {
  --bg: #0a0f16;
  --panel: #111a26;
  --panel2: #0d1622;
  --line: #223649;
  --text: #e6eef7;
  --muted: #8aa0b6;
  --green: #34d399;
  --green2: #1f8f6a;
  --red: #f87171;
  --amber: #fbbf24;
  --blue: #60a5fa;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--blue); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 10px; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.row > label { color: var(--muted); min-width: 68px; }
input, select, textarea {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 7px 9px;
  font-size: 14px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--green2); }
input.grow { flex: 1; min-width: 200px; }
textarea { width: 100%; min-height: 64px; resize: vertical; font-family: Consolas, monospace; }
button {
  background: #1d2b3c;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
}
button:hover { border-color: var(--green2); }
button.primary { background: var(--green2); border-color: var(--green2); color: #05130d; font-weight: 600; }
button.danger { border-color: #7f3a3a; color: var(--red); }
button.small { padding: 3px 9px; font-size: 12px; }
.badge { font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.badge.admin { border-color: var(--amber); color: var(--amber); }
.warn { color: var(--amber); }
.ok { color: var(--green); }
.err { color: var(--red); }
.mono { font-family: Consolas, monospace; }
.hide { display: none !important; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #1a2838; }
th { color: var(--muted); font-weight: 500; }
.tag {
  display: inline-block; font-size: 11px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--muted); margin-left: 6px;
}
.green-tag { border-color: #2b7a52; color: #7ee2b8; }
.notice {
  background: #1a1406; border: 1px solid #5a4410; color: #f4d58a;
  border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin: 8px 0;
}
.tabs { display: flex; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { padding: 7px 2px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--text); border-bottom-color: var(--green); }

.pre { white-space: pre-wrap; min-height: 18px; }

/* ===== 总览 / 雷达 样式 ===== */
.hero h1 { font-size: 24px; margin-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.portal-card { display: block; text-decoration: none; color: var(--text); transition: border-color .15s; }
.portal-card:hover { border-color: var(--green2); }
.pc-icon { font-size: 26px; margin-bottom: 6px; }
.pc-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.pc-desc { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.pc-go { color: var(--green); margin-top: 10px; font-size: 13px; }
.btn-link { color: var(--green); text-decoration: none; }
.mt10 { margin-top: 10px; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; margin-right: 8px; }
.back:hover { color: var(--text); }
details > summary { cursor: pointer; color: var(--muted); }
details[open] > summary { margin-bottom: 10px; }
.pc-icon { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:9px; background:#132032; border:1px solid var(--line); color:#7ee2b8; font-size:17px; font-weight:600; }

/* ===== 雷达卡片 ===== */
.radar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.r-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.r-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.r-name { font-weight: 600; font-size: 14.5px; }
.r-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.r-badge { font-size: 11px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.r-badge.ok { border-color: #2b7a52; color: #7ee2b8; }
.r-bar { height: 6px; background: #0a121c; border-radius: 4px; margin: 8px 0 6px; overflow: hidden; }
.r-fill { height: 100%; background: linear-gradient(90deg, #1f8f6a, #34d399); width: 0; }
.r-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 2px 0; }
.r-actions { margin-top: 8px; text-align: right; }
.r-primary { color: var(--green); text-decoration: none; font-size: 13px; }

/* ===== 雷达看板 ===== */
.board-wrap { max-width: 1400px; }
.board-top { margin-bottom: 10px; }
.board-title { font-size: 20px; font-weight: 600; }
.dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#34d399; margin-left:6px; vertical-align:middle; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .board { grid-template-columns: 1fr; } }
.board-col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #0e1824; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.cnt { color: var(--green); font-size: 13px; }
.board-body { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: auto; max-height: calc(100vh - 230px); }
.rc { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.rc-one { border-left: 3px solid #34d399; }
.rc-corla { border-left: 3px solid #f59e0b; }
.rc-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; background: linear-gradient(135deg,#1f8f6a,#0b3b2c); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #bff5dd; }
.rc-main { flex: 1; min-width: 0; }
.rc-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rc-tag { font-size: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 0 4px; color: var(--muted); }
.rc-sym { font-weight: 700; font-size: 13px; }
.rc-name { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.rc-state { font-size: 11px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.rc-state.ok { border-color: #2b7a52; color: #7ee2b8; }
.rc-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-price { font-size: 12px; margin-top: 2px; }
.rc-bar { height: 5px; background: #0a121c; border-radius: 3px; margin: 6px 0 3px; overflow: hidden; }
.rc-fill { display: block; height: 100%; background: linear-gradient(90deg,#1f8f6a,#34d399); width: 0; }
.rc-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.rc-foot { display: flex; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 5px; align-items: center; }

.narrow { max-width: 520px; margin: 0 auto; }

.rc-img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; object-fit: cover; background: #0b3b2c; }
.rc-tax { display:inline-block; font-size:11px; padding:0 5px; margin-left:6px; border:1px solid var(--line); border-radius:7px; color:var(--muted); }
