/* ============================================================
   彩虹俱乐部 · 转盘抽奖系统
   主题：深空奢华 · 霓虹流光
   ============================================================ */

:root {
  --bg-0: #07070d;
  --bg-1: #0c0b16;
  --bg-2: #12101f;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --gold: #e8c88a;
  --gold-2: #d4af37;
  --gold-light: #fff2d0;
  --text: #f4f2ff;
  --text-dim: #a49fc4;
  --text-faint: #6f6a8e;
  --pink: #ff5c8a;
  --cyan: #3ec6d6;
  --violet: #9b6df0;
  --danger: #ff6b8a;
  --serif: "Georgia", "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 800px at 18% 8%, rgba(120, 84, 255, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 82% 18%, rgba(255, 60, 130, 0.13), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(0, 190, 220, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 200, 138, 0.3); }

/* ---------------- 极光背景 ---------------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; mix-blend-mode: screen; }
.b1 { width: 620px; height: 620px; top: -14%; left: -12%; background: radial-gradient(circle, rgba(255, 62, 200, 0.55), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 560px; height: 560px; top: -10%; right: -14%; background: radial-gradient(circle, rgba(80, 120, 255, 0.55), transparent 62%); animation: drift2 30s ease-in-out infinite alternate; }
.b3 { width: 640px; height: 640px; bottom: -20%; left: 20%; background: radial-gradient(circle, rgba(0, 220, 200, 0.45), transparent 62%); animation: drift3 34s ease-in-out infinite alternate; }
.b4 { width: 420px; height: 420px; top: 42%; left: 42%; background: radial-gradient(circle, rgba(255, 190, 60, 0.35), transparent 62%); animation: drift1 22s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { to { transform: translate(9vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, 9vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(4vw, -7vh) scale(1.2); } }

/* 星点 */
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------------- 通用 ---------------- */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #3a2a12;
  background: linear-gradient(135deg, #fff2d0 0%, #e8c88a 40%, #d4af37 75%, #b98a3e 100%);
  box-shadow: 0 8px 30px rgba(232, 200, 138, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232, 200, 138, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7); filter: brightness(1.05); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-gold.busy { pointer-events: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--text); background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border); transition: all 0.16s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(232, 200, 138, 0.4); }
.btn-ghost.danger:hover { border-color: rgba(255, 107, 138, 0.5); color: var(--danger); }

input[type="text"], input[type="password"], input[type="number"] {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border);
  color: var(--text); font-size: 16px; font-family: var(--sans); outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
input:focus { border-color: rgba(232, 200, 138, 0.55); box-shadow: 0 0 0 3px rgba(232, 200, 138, 0.14); }
input::placeholder { color: var(--text-faint); }

/* ============================================================
   抽奖主页
   ============================================================ */

.topbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 34px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 24px rgba(232, 200, 138, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.brand-text i { font-style: normal; font-size: 11px; letter-spacing: 3px; color: var(--text-dim); }
.topbar .admin-link { color: var(--text-dim); text-decoration: none; font-size: 13px; letter-spacing: 1px; opacity: 0.7; transition: opacity 0.16s; }
.topbar .admin-link:hover { opacity: 1; color: var(--gold); }

.hero {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 20px 40px; text-align: center;
}

.hero-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 2px; line-height: 1.12;
}
.hero-title span {
  background: linear-gradient(120deg, #fff2d0, #e8c88a, #d4af37, #f7e6b0, #e8c88a);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
.hero-title em {
  display: block; font-style: normal; font-size: 0.52em; font-weight: 600; letter-spacing: 6px;
  margin-top: 8px;
  background: linear-gradient(90deg, #ff5c8a, #ff8a3d, #ffc24b, #7bd88f, #3ec6d6, #5b8def, #9b6df0);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 250% 0; } }

.hero-sub { margin-top: 14px; font-size: 13px; letter-spacing: 4px; color: var(--text-dim); }

/* 转盘舞台 */
.wheel-stage { position: relative; margin: 34px auto 6px; width: min(78vw, 500px); }
.wheel-glow {
  position: absolute; inset: -14%; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, rgba(255,92,138,0.35), rgba(255,194,75,0.35), rgba(123,216,143,0.35), rgba(62,198,214,0.35), rgba(155,109,240,0.35), rgba(255,92,138,0.35));
  filter: blur(46px); opacity: 0.75; animation: glowpulse 5s ease-in-out infinite;
}
@keyframes glowpulse { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 0.85; transform: scale(1.04); } }

.wheel-wrap { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; }
.wheel-wrap canvas { display: block; width: 100%; height: 100%; }
.pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 6;
  filter: drop-shadow(0 0 10px rgba(232, 200, 138, 0.9));
  animation: pointerbob 2.4s ease-in-out infinite;
}
@keyframes pointerbob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }

/* 输入区 */
.draw-box {
  position: relative; z-index: 5;
  display: flex; gap: 12px; align-items: center;
  width: min(92vw, 560px); margin: 26px auto 0; padding: 12px;
  border-radius: 999px;
}
.draw-box .draw-input { flex: 1; }
.draw-box input { padding: 14px 22px; border-radius: 999px; text-align: center; letter-spacing: 2px; font-size: 17px; text-transform: uppercase; }
.draw-box .btn-gold { flex-shrink: 0; padding: 14px 30px; }

.hint { margin-top: 18px; font-size: 13px; letter-spacing: 1px; color: var(--text-dim); min-height: 20px; }
.hint.err { color: var(--danger); }

.footer { position: relative; z-index: 5; text-align: center; padding: 30px 20px 40px; font-size: 12px; letter-spacing: 2px; color: var(--text-faint); }

/* 特效层 */
.fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

/* ---------------- 中奖弹窗 ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 24px 16px;
  background: rgba(5, 5, 12, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; width: min(90vw, 420px); padding: 46px 34px 36px; text-align: center; margin: auto;
  border-radius: 26px; overflow: hidden; transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-ray {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 240%; height: 70%;
  background: conic-gradient(from 180deg at 50% 100%, transparent 42%, rgba(255, 255, 255, 0.10) 50%, transparent 58%);
  filter: blur(2px); pointer-events: none; animation: ray 5s linear infinite;
}
@keyframes ray { to { transform: translateX(-50%) rotate(360deg); } }
.modal-icon {
  font-size: 74px; line-height: 1; margin-bottom: 14px; position: relative;
  filter: drop-shadow(0 0 22px rgba(232, 200, 138, 0.6));
  animation: iconpop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconpop { 0% { transform: scale(0.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.modal-kicker { font-size: 11px; letter-spacing: 5px; color: var(--gold); margin-bottom: 10px; }
.modal-title {
  font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: 3px; margin-bottom: 12px;
  background: linear-gradient(120deg, #fff2d0, #e8c88a, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal-prize { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.modal-reward { margin: 8px 0 22px; font-size: 15px; color: var(--text-dim); }
.modal-bind { display: none; margin: 2px 0 8px; text-align: left; }
.modal-bind.show { display: block; }
.modal-bind label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 1px; }
.modal-bind input { text-align: center; font-size: 16px; }
.modal-bind .btn-gold { width: 100%; margin-top: 12px; }
.modal-msg { font-size: 13px; min-height: 18px; margin: 10px 0 2px; color: var(--danger); text-align: center; }
.modal-msg.ok { color: #7bd88f; }

/* ============================================================
   登录页
   ============================================================ */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { width: min(92vw, 400px); padding: 44px 40px 40px; }
.login-brand { text-align: center; margin-bottom: 30px; }
.login-brand .logo { font-size: 46px; margin-bottom: 12px; }
.login-brand h1 {
  font-family: var(--serif); font-size: 26px; letter-spacing: 2px;
  background: linear-gradient(120deg, #fff2d0, #e8c88a, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-brand p { font-size: 12px; letter-spacing: 3px; color: var(--text-dim); margin-top: 6px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn-gold { width: 100%; margin-top: 8px; }
.login-err { color: var(--danger); font-size: 13px; min-height: 20px; text-align: center; margin-top: 12px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img { height: 46px; border-radius: 12px; border: 1px solid var(--card-border); cursor: pointer; flex-shrink: 0; background: #12101f; }

/* ============================================================
   管理后台
   ============================================================ */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 230px; flex-shrink: 0; padding: 22px 14px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25); position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .side-brand { display: flex; align-items: center; gap: 10px; padding: 8px 12px 20px; font-weight: 700; letter-spacing: 1px; }
.admin-side .side-brand .logo { font-size: 26px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  color: var(--text-dim); cursor: pointer; font-size: 14px; letter-spacing: 1px;
  transition: all 0.15s ease; border: 1px solid transparent;
}
.side-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.side-link.active {
  background: linear-gradient(135deg, rgba(232, 200, 138, 0.18), rgba(155, 109, 240, 0.14));
  border-color: rgba(232, 200, 138, 0.28); color: var(--gold);
}
.side-link .ico { width: 20px; text-align: center; }

.admin-main { flex: 1; padding: 30px 36px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-topbar h2 { font-family: var(--serif); font-size: 24px; letter-spacing: 1px; font-weight: 700; }
.admin-topbar .right { display: flex; align-items: center; gap: 14px; }
.admin-topbar .user { color: var(--text-dim); font-size: 14px; }

.section { display: none; }
.section.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 22px; border-radius: 18px; }
.stat-card .num { font-size: 34px; font-weight: 800; font-family: var(--serif); letter-spacing: 1px; }
.stat-card .lbl { font-size: 13px; color: var(--text-dim); margin-top: 6px; letter-spacing: 1px; }
.stat-card.c1 .num { background: linear-gradient(120deg, #fff2d0, #e8c88a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card.c2 .num { background: linear-gradient(120deg, #7bd88f, #3ec6d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card.c3 .num { background: linear-gradient(120deg, #5b8def, #9b6df0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card.c4 .num { background: linear-gradient(120deg, #ff5c8a, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 面板 */
.panel { padding: 24px; border-radius: 20px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.panel-head h3 { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.panel-head .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; }
th { color: var(--text-dim); font-weight: 600; font-size: 12px; letter-spacing: 1px; }
td { color: var(--text); }
tr:hover td { background: rgba(255, 255, 255, 0.025); }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 1px; }
.badge.unused { background: rgba(123, 216, 143, 0.16); color: #7bd88f; }
.badge.used { background: rgba(255, 107, 138, 0.16); color: #ff8aa0; }
.badge.on { background: rgba(123, 216, 143, 0.16); color: #7bd88f; }
.badge.off { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 8px currentColor; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 1px; }

/* 生成区 */
.gen-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gen-row select, .gen-row input { flex: 1; }
.gen-row select {
  padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border);
  color: var(--text); font-size: 14px; font-family: var(--sans); outline: none;
}
.gen-row .count { max-width: 120px; }
.gen-row .rm { color: var(--danger); cursor: pointer; font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }

.code-result { margin-top: 16px; }
.code-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.code-chip {
  font-family: "Consolas", "Menlo", monospace; font-size: 13px; letter-spacing: 1px;
  padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border);
  display: inline-flex; align-items: center; gap: 8px;
}
.code-chip .pname { color: var(--text-dim); font-family: var(--sans); }

/* 分页 */
.pager { display: flex; align-items: center; gap: 12px; margin-top: 16px; justify-content: flex-end; font-size: 13px; color: var(--text-dim); }
.pager button { padding: 6px 14px; }

/* 筛选 */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters select { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border); color: var(--text); font-size: 13px; outline: none; }
.filters input { padding: 10px 14px; width: 200px; }

/* 弹窗 */
.modal2-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(5, 5, 12, 0.7); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal2-overlay.show { opacity: 1; pointer-events: auto; }
.modal2 { width: min(92vw, 480px); padding: 28px; border-radius: 22px; }
.modal2 h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 20px; letter-spacing: 1px; }
.modal2 .btn-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* Toast */
.toast-wrap { position: fixed; top: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 13px 20px; border-radius: 12px; font-size: 14px; letter-spacing: 1px;
  background: rgba(20, 20, 34, 0.9); border: 1px solid var(--card-border); backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); animation: toastin 0.25s ease;
}
.toast.ok { border-color: rgba(123, 216, 143, 0.4); color: #a9e8bd; }
.toast.err { border-color: rgba(255, 107, 138, 0.4); color: #ff9fb3; }
@keyframes toastin { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.empty { text-align: center; padding: 40px 0; color: var(--text-faint); letter-spacing: 1px; }

/* ============================================================
   响应式：三端适配（平板 / 手机 / 超小屏）
   ============================================================ */

/* 平板（≤1024px） */
@media (max-width: 1024px) {
  .wheel-stage { width: min(70vw, 440px); }
}

/* 手机（≤720px） */
@media (max-width: 720px) {
  .topbar { padding: 14px 16px; }
  .brand-logo { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
  .brand-text b { font-size: 15px; }
  .brand-text i { font-size: 10px; letter-spacing: 2px; }

  .hero { padding: 4px 14px 30px; }
  .hero-title { font-size: clamp(28px, 9vw, 36px); letter-spacing: 1px; }
  .hero-title em { font-size: 0.5em; letter-spacing: 3px; margin-top: 6px; }
  .hero-sub { font-size: 11px; letter-spacing: 2px; margin-top: 12px; }

  .wheel-stage { width: min(88vw, 340px); margin: 26px auto 4px; }
  .pointer svg { width: 32px; height: 42px; }

  .draw-box { flex-direction: column; gap: 10px; width: min(92vw, 420px); padding: 14px; border-radius: 24px; margin-top: 22px; }
  .draw-box input { padding: 15px 18px; font-size: 16px; letter-spacing: 1px; }
  .draw-box .btn-gold { width: 100%; padding: 15px; font-size: 17px; min-height: 52px; }

  .hint { font-size: 12px; margin-top: 16px; }
  .footer { font-size: 11px; padding: 22px 16px 32px; }

  .modal { width: min(88vw, 360px); padding: 34px 22px 28px; }
  .modal-icon { font-size: 60px; }
  .modal-title { font-size: 24px; }
  .modal-prize { font-size: 18px; }
  .modal-bind input { font-size: 16px; }

  /* 后台 */
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--card-border); padding: 10px; gap: 6px; }
  .admin-side .side-brand { width: 100%; padding: 4px 8px 8px; }
  .side-link { flex: 1 1 auto; justify-content: center; padding: 11px 8px; font-size: 13px; gap: 6px; }
  .admin-main { padding: 18px 14px; }
  .admin-topbar { flex-wrap: wrap; gap: 12px; }
  .admin-topbar h2 { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card .num { font-size: 26px; }
  .filters { gap: 8px; }
  .filters input { width: 100%; }
  .gen-row { flex-wrap: wrap; }
  .modal2 { width: min(94vw, 440px); padding: 22px; }
  .btn-ghost { padding: 10px 14px; }
}

/* 超小屏（≤380px） */
@media (max-width: 380px) {
  .hero-title em { letter-spacing: 2px; }
  .wheel-stage { width: min(90vw, 300px); }
  .brand-text b { font-size: 14px; }
}
