:root {
  --bg: #080d18;
  --card: #101a2c;
  --line: rgba(148, 163, 184, .18);
  --text: #e5edf8;
  --muted: #8ea0bb;
  --green: #35d07f;
  --red: #ff6b6b;
  --gold: #f6c453;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -10%, #152a4f 0%, var(--bg) 60%);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 16px 40px; }
header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: .5px; }
.sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #667; display: inline-block; }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.off { background: var(--red); }
.summary { display: flex; gap: 22px; }
.summary div { text-align: right; }
.summary span { display: block; color: var(--muted); font-size: 12px; }
.summary b { font-size: 20px; font-variant-numeric: tabular-nums; }
.new-tip {
  display: none; margin: 16px 0 0; padding: 10px 14px; border-radius: 10px;
  background: rgba(53, 208, 127, .12); border: 1px solid rgba(53, 208, 127, .3);
  color: #b9f6d5; font-size: 13px;
}
.new-tip.show { display: block; }
.new-tip a { color: var(--green); }
.table-card {
  margin-top: 18px; background: rgba(16, 26, 44, .92); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; background: rgba(255,255,255,.025); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.new { animation: flash 2.2s ease-out; }
@keyframes flash { from { background: rgba(53, 208, 127, .28); } to { background: transparent; } }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-family: "SF Mono", Consolas, monospace; }
.r { text-align: right; }
.amount { color: var(--gold); font-weight: 700; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; background: rgba(148,163,184,.12); color: #c9d5e6; }
.s-中奖 { background: rgba(53,208,127,.16); color: var(--green); }
.s-未中 { background: rgba(255,107,107,.14); color: var(--red); }
.s-已撤单 { background: rgba(148,163,184,.12); color: #9aa8bd; }
.s-退本 { background: rgba(246,196,83,.14); color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.foot { color: #64748b; text-align: center; font-size: 12px; margin-top: 16px; }
.top-actions { text-align: right; margin-top: 10px; font-size: 12px; }
.top-actions a { color: var(--muted); text-decoration: none; }
.top-actions a:hover { color: var(--text); }
.closed { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.closed-icon { font-size: 54px; margin-bottom: 10px; }
.closed h1 { font-size: 28px; }
.closed p { color: var(--muted); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card {
  width: 100%; max-width: 380px; background: rgba(16,26,44,.96);
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35); text-align: center;
}
.login-icon { font-size: 36px; margin-bottom: 8px; }
.login-card h1 { font-size: 22px; margin: 0 0 6px; }
.login-card p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.login-input {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: #0b1424; color: var(--text); padding: 0 13px; font-size: 15px; outline: none;
}
.login-input:focus { border-color: rgba(53,208,127,.65); box-shadow: 0 0 0 3px rgba(53,208,127,.12); }
.login-btn {
  width: 100%; height: 44px; margin-top: 14px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #22a862, #35d07f); color: #04120a;
  font-size: 15px; font-weight: 800; cursor: pointer;
}
.login-error {
  margin-bottom: 12px; padding: 9px 10px; border-radius: 8px; font-size: 13px;
  color: #ffb4b4; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.25);
}
@media (max-width: 680px) {
  .summary { width: 100%; justify-content: space-between; }
  th, td { padding: 9px 8px; font-size: 12px; }
  h1 { font-size: 20px; }
}
