* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f2f5f8; --card: #ffffff; --ink: #1f2933; --muted: #64748b;
  --line: #e2e8f0; --brand: #1e3a5f; --ok: #2e7d32; --warn: #ed6c02; --bad: #c62828;
}
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }

/* 顶栏 */
.topbar { background: var(--brand); color: #fff; padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { background: rgba(255,255,255,.16); width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: 1px; }
.title { font-size: 16px; font-weight: 600; }
.hostline { font-size: 12px; opacity: .85; }
.topright { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.inline { display: inline; }
.btn { border: none; border-radius: 8px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.btn.primary { background: #2563eb; color: #fff; width: 100%; }
.btn.ghost { background: rgba(255,255,255,.15); color: #fff; }
.btn:hover { opacity: .92; }

/* 布局 */
.wrap { max-width: 1020px; margin: 16px auto; padding: 0 14px 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.card-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
  font-size: 14px; font-weight: 600; }
.kpt { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.big { font-size: 26px; font-weight: 700; }
.big.small { font-size: 16px; font-weight: 600; }
.sub { color: var(--muted); font-size: 12px; margin-top: 6px; word-break: break-all; }

/* 进度条 */
.track { height: 10px; background: #e9eef3; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.fill { height: 100%; width: 0; border-radius: 6px; background: var(--ok); transition: width .5s; }
.fill.warn { background: var(--warn); }
.fill.bad { background: var(--bad); }
.cores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.core { flex: 1 1 90px; }
.core .lbl { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.core .mini { height: 6px; background: #e9eef3; border-radius: 4px; overflow: hidden; }
.core .mini i { display: block; height: 100%; background: var(--ok); }

.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv b { font-variant-numeric: tabular-nums; }

.disks .drow { margin-bottom: 12px; }
.drow .dhead { display: flex; justify-content: space-between; font-size: 13px; }
.drow .dhead .pct { font-weight: 600; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; }
.tbl td.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd28a; display: inline-block; }
.dot.off { background: #f6a3a3; }
.footer-note { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }

/* 登录页 */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  width: 100%; max-width: 360px; padding: 30px 26px; box-shadow: 0 8px 30px rgba(15,23,42,.10); }
.login-card h1 { font-size: 19px; text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.login-card label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.login-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; outline: none; }
.login-card input:focus { border-color: #2563eb; }
.login-card .btn { margin-top: 18px; }
.alert { background: #fdecea; color: var(--bad); font-size: 13px; padding: 9px 12px;
  border-radius: 8px; margin-bottom: 12px; }
.login-card .foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }

@media (max-width: 640px) {
  .big { font-size: 22px; }
  .grid.two { grid-template-columns: 1fr; }
  .topright span#liveText { display: none; }
}
