:root {
  --bg: #070b12; --panel: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.09); --text: #e6edf7; --dim: #8b98ab;
  --accent: #38bdf8; --accent2: #22d3ee; --ok: #34d399; --err: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text); font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px; line-height: 1.5;
}
.orb { position: fixed; border-radius: 50%; filter: blur(120px); opacity: 0.25; pointer-events: none; z-index: 0; }
.orb-a { width: 480px; height: 480px; top: -160px; left: -100px; background: radial-gradient(circle, #0ea5e9, transparent 65%); }
.orb-b { width: 520px; height: 520px; bottom: -200px; right: -120px; background: radial-gradient(circle, #6d5df6, transparent 65%); }
header, main { position: relative; z-index: 1; }
header { display: flex; align-items: center; gap: 14px; padding: 16px 24px; }
.brand { font-size: 18px; font-weight: 700;
  background: linear-gradient(90deg, #7dd3fc, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.status { padding: 4px 14px; border-radius: 999px; font-size: 12px; background: var(--panel); border: 1px solid var(--border); color: var(--ok); }
main { max-width: 960px; margin: 8px auto 60px; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.glass { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; backdrop-filter: blur(14px); }
.card { padding: 16px 18px; }
.card-title { font-weight: 600; margin-bottom: 12px; color: #7dd3fc; }
.dim { color: var(--dim); font-size: 12px; font-weight: 400; margin-left: 8px; }
.sub-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.sub-row label { color: var(--dim); min-width: 160px; font-size: 13px; }
.sub-row input {
  flex: 1; min-width: 240px; background: rgba(0,0,0,0.35); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 12px; font-family: Consolas, monospace; outline: none;
}
button {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; font-size: 13px; font-family: inherit;
}
button:hover { border-color: var(--accent); }
.qr { width: 120px; height: 120px; border: 1px solid var(--border); border-radius: 10px; image-rendering: pixelated; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 10px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
th { color: var(--dim); font-weight: 500; font-size: 12px; }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { text-align: left; }
td.ip { font-family: Consolas, monospace; color: #9adcfd; }
td:first-child { color: #fbbf24; font-weight: 700; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #0c2b22; color: var(--ok); border: 1px solid #14532d;
  padding: 8px 18px; border-radius: 8px; z-index: 99; font-size: 13px; }
#toast.err { background: #2b0e0e; color: var(--err); border-color: #7f1d1d; }
.hidden { display: none; }

/* ---- 令牌门 ---- */
.gate { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(3,6,12,0.72); backdrop-filter: blur(6px); }
.gate.hidden { display: none; }
.gate-box { padding: 26px 30px; width: 380px; max-width: 92vw; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.gate-title { font-size: 17px; font-weight: 700; color: #7dd3fc; }
.gate-box p { font-size: 12px; }
.gate-box input {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-size: 14px; outline: none; text-align: center;
}
.gate-box input:focus { border-color: var(--accent); }
.gate-box button.primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1); border: none; color: #fff;
  padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
#gateErr { color: var(--err); }

/* ---- 订阅二维码网格（双码版） ---- */
.qr-grid { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.qr-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; }
.qr.big { width: 224px; height: 224px; }
.qr-cell .cap { font-size: 15px; font-weight: 600; color: var(--text); }
.qr-cell .hint { font-size: 12px; color: var(--dim); text-align: center; max-width: 230px; line-height: 1.6; }
