/* ==========================================================================
   幸运抽奖 · 样式
   深色霓虹主题：青 / 品红 / 金 三色点缀，卡片玻璃拟态
   ========================================================================== */

:root {
  --bg: #0a0d14;
  --bg-2: #0f1420;
  --card: rgba(20, 26, 40, 0.72);
  --card-solid: #141a28;
  --border: rgba(120, 160, 220, 0.16);
  --border-hi: rgba(120, 200, 255, 0.42);
  --text: #e6ecf7;
  --text-dim: #8b9ab4;
  --text-faint: #5c6a82;
  --cyan: #35d6ff;
  --cyan-soft: rgba(53, 214, 255, 0.14);
  --magenta: #ff4fd8;
  --magenta-soft: rgba(255, 79, 216, 0.14);
  --gold: #ffc94a;
  --gold-soft: rgba(255, 201, 74, 0.14);
  --green: #3ddc97;
  --red: #ff5f6d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(53, 214, 255, 0.16), transparent 62%),
    radial-gradient(800px 460px at 88% 4%, rgba(255, 79, 216, 0.13), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(255, 201, 74, 0.07), transparent 60%),
    linear-gradient(180deg, #0a0d14 0%, #0b1018 50%, #090c12 100%);
  pointer-events: none;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   导航
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 62px;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav::-webkit-scrollbar { height: 0; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.4px;
  margin-right: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: #06121c;
}

.nav-link {
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.16s;
  flex-shrink: 0;
}

.nav-link:hover { color: var(--text); background: rgba(120, 160, 220, 0.1); text-decoration: none; }
.nav-link.active { color: var(--cyan); background: var(--cyan-soft); }

.nav-spacer { flex: 1; min-width: 12px; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(120, 160, 220, 0.09);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-pill .k { color: var(--text-faint); font-weight: 500; font-size: 12px; }
.nav-pill .v { color: var(--cyan); }
.nav-pill .v.gold { color: var(--gold); }

/* ==========================================================================
   布局
   ========================================================================== */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 70px;
}

.section { margin-bottom: 22px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 18px 14px 60px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  text-align: center;
  padding: 34px 20px 30px;
  margin-bottom: 24px;
  border-radius: 22px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(53, 214, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 40, 0.6), rgba(12, 16, 26, 0.4));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--cyan-soft);
  border: 1px solid rgba(53, 214, 255, 0.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.hero h1 {
  font-size: clamp(24px, 4.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 46%, var(--magenta) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ==========================================================================
   卡片
   ========================================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(14px);
  position: relative;
}

.card-hover { transition: border-color 0.18s, transform 0.18s; }
.card-hover:hover { border-color: var(--border-hi); transform: translateY(-2px); }

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
}

.section-sub {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
  margin-left: auto;
}

/* ==========================================================================
   公告
   ========================================================================== */

.announce {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 201, 74, 0.1), rgba(255, 201, 74, 0.02));
  border: 1px solid rgba(255, 201, 74, 0.22);
  font-size: 13px;
  color: #d8c9a8;
  line-height: 1.75;
}

.announce .tag {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--gold);
  color: #241a00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ==========================================================================
   统计盒
   ========================================================================== */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  backdrop-filter: blur(14px);
}

.stat-box .num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-box .num.mg { color: var(--magenta); }
.stat-box .lbl { font-size: 12px; color: var(--text-faint); margin-top: 4px; font-weight: 500; }

/* ==========================================================================
   表单
   ========================================================================== */

.field { margin-bottom: 13px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

input[type='text'],
input[type='password'],
input[type='number'],
input[type='datetime-local'],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.72);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px rgba(53, 214, 255, 0.1);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

textarea { resize: vertical; min-height: 90px; line-height: 1.7; }

select { cursor: pointer; }

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--cyan), #1ba8d8);
  color: #04141c;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(0); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }

.btn-gold { background: linear-gradient(135deg, var(--gold), #e0a520); color: #241a00; }
.btn-magenta { background: linear-gradient(135deg, var(--magenta), #c62ba8); color: #fff; }
.btn-ghost {
  background: rgba(120, 160, 220, 0.09);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) { background: rgba(120, 160, 220, 0.16); }
.btn-danger { background: linear-gradient(135deg, var(--red), #d03a48); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 6px; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

/* ==========================================================================
   倒计时
   ========================================================================== */

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 18px;
}

.cd-box {
  min-width: 66px;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--border);
  text-align: center;
}

.cd-num {
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(53, 214, 255, 0.4);
}

.cd-lbl { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.cd-sep { font-size: 22px; font-weight: 900; color: var(--text-faint); }

/* 开奖元信息 */
.draw-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) { .draw-meta { grid-template-columns: repeat(2, 1fr); } }

.dm { text-align: center; }
.dm .v { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dm .v.gold { color: var(--gold); }
.dm .k { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

/* 中奖横幅 */
.win-banner {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 201, 74, 0.16), rgba(255, 79, 216, 0.1));
  border: 1px solid rgba(255, 201, 74, 0.32);
  text-align: center;
  animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 201, 74, 0); }
  50% { box-shadow: 0 0 26px rgba(255, 201, 74, 0.22); }
}

.win-banner .who { font-size: 17px; font-weight: 900; color: var(--gold); }
.win-banner .what { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

/* ==========================================================================
   投注区
   ========================================================================== */

.enter-box {
  margin-top: 16px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(53, 214, 255, 0.05);
  border: 1px solid rgba(53, 214, 255, 0.18);
}

.enter-row { display: flex; gap: 9px; align-items: center; }

.enter-row input { flex: 1; }

.enter-hint { font-size: 12px; color: var(--text-faint); margin-top: 9px; line-height: 1.7; }

/* ==========================================================================
   列表 / 表格
   ========================================================================== */

.list { display: flex; flex-direction: column; gap: 8px; }

.list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 20, 0.5);
  border: 1px solid var(--border);
  font-size: 13px;
  transition: border-color 0.15s;
}

.list-row:hover { border-color: var(--border-hi); }

.list-row .rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(120, 160, 220, 0.12);
  color: var(--text-dim);
  flex-shrink: 0;
}

.list-row .rank.top1 { background: linear-gradient(135deg, #ffd76a, #e0a520); color: #241a00; }
.list-row .rank.top2 { background: linear-gradient(135deg, #d8e2f0, #9aa8bd); color: #1a2230; }
.list-row .rank.top3 { background: linear-gradient(135deg, #e0a878, #b87a45); color: #241a00; }

.list-row .name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .meta { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
.list-row .val { font-weight: 900; color: var(--cyan); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-row .val.gold { color: var(--gold); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th {
  text-align: left;
  padding: 11px 13px;
  background: rgba(120, 160, 220, 0.08);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 13px;
  border-bottom: 1px solid rgba(120, 160, 220, 0.07);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(120, 160, 220, 0.045); }

.mono { font-family: 'SF Mono', Consolas, Monaco, monospace; letter-spacing: 0.4px; }

/* ==========================================================================
   徽章
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-green { background: rgba(61, 220, 151, 0.15); color: var(--green); }
.badge-red { background: rgba(255, 95, 109, 0.15); color: var(--red); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-cyan { background: var(--cyan-soft); color: var(--cyan); }
.badge-magenta { background: var(--magenta-soft); color: var(--magenta); }
.badge-dim { background: rgba(120, 160, 220, 0.1); color: var(--text-faint); }

/* SVIP 徽章 */
.svip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.svip-1 { background: rgba(140, 155, 175, 0.2); color: #a9b7cc; }
.svip-2 { background: rgba(140, 155, 175, 0.24); color: #b9c6d8; }
.svip-3 { background: rgba(53, 214, 255, 0.16); color: #6fe0ff; }
.svip-4 { background: rgba(53, 214, 255, 0.22); color: #8ee8ff; }
.svip-5 { background: rgba(61, 220, 151, 0.18); color: #6ee8b4; }
.svip-6 { background: rgba(61, 220, 151, 0.24); color: #8bf0c4; }
.svip-7 { background: rgba(255, 79, 216, 0.18); color: #ff7de3; }
.svip-8 { background: rgba(255, 79, 216, 0.24); color: #ff9aeb; }
.svip-9 { background: linear-gradient(135deg, rgba(255, 201, 74, 0.3), rgba(255, 79, 216, 0.24)); color: #ffd76a; }
.svip-10 {
  background: linear-gradient(135deg, #ffd76a, #ff4fd8);
  color: #1a0e00;
  box-shadow: 0 0 14px rgba(255, 201, 74, 0.45);
  animation: svipShine 2.6s ease-in-out infinite;
}

@keyframes svipShine {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 201, 74, 0.35); }
  50% { box-shadow: 0 0 22px rgba(255, 79, 216, 0.5); }
}

/* ==========================================================================
   进度条
   ========================================================================== */

.progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(120, 160, 220, 0.14);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.5s ease;
}

/* ==========================================================================
   空状态 / 加载
   ========================================================================== */

.empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

.loading { padding: 24px; text-align: center; color: var(--text-faint); font-size: 13px; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(120, 160, 220, 0.24);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 7px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   弹窗
   ========================================================================== */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.16s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card-solid);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal-lg { max-width: 720px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-title {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.modal-body { font-size: 13.5px; color: var(--text-dim); line-height: 1.8; margin-bottom: 18px; }
.modal-body strong { color: var(--text); }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.modal-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(120, 160, 220, 0.1);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal-close:hover { background: rgba(120, 160, 220, 0.2); color: var(--text); }

/* ==========================================================================
   Toast
   ========================================================================== */

.toast-wrap {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}

.toast {
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  background: rgba(20, 26, 40, 0.96);
  border: 1px solid var(--border-hi);
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease;
  max-width: 100%;
}

.toast.ok { border-color: rgba(61, 220, 151, 0.5); color: var(--green); }
.toast.err { border-color: rgba(255, 95, 109, 0.5); color: var(--red); }
.toast.info { border-color: rgba(53, 214, 255, 0.5); color: var(--cyan); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   商城
   ========================================================================== */

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.shop-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.18s;
}

.shop-item:hover { border-color: var(--border-hi); transform: translateY(-3px); }

.shop-item .si-name { font-size: 15px; font-weight: 800; }
.shop-item .si-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; flex: 1; }

.shop-item .si-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.shop-item .si-cost { font-size: 22px; font-weight: 900; color: var(--gold); }
.shop-item .si-old { font-size: 12px; color: var(--text-faint); text-decoration: line-through; }
.shop-item .si-stock { font-size: 11.5px; color: var(--text-faint); }

/* ==========================================================================
   竞猜
   ========================================================================== */

.bet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.bet-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.bet-close { font-size: 12px; color: var(--text-faint); margin-bottom: 14px; }

.bet-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 12px; }

@media (max-width: 560px) { .bet-options { grid-template-columns: 1fr; } }

.bet-opt {
  padding: 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.6);
  cursor: pointer;
  transition: all 0.16s;
  text-align: center;
}

.bet-opt:hover { border-color: var(--border-hi); }
.bet-opt.selected { border-color: var(--cyan); background: var(--cyan-soft); }
.bet-opt .o-name { font-size: 13.5px; font-weight: 800; margin-bottom: 5px; }
.bet-opt .o-pool { font-size: 11.5px; color: var(--text-faint); }
.bet-opt .o-odds { font-size: 15px; font-weight: 900; color: var(--cyan); margin-top: 4px; }

.bet-opt.winner { border-color: var(--green); background: rgba(61, 220, 151, 0.1); }
.bet-opt.loser { opacity: 0.5; }

/* ==========================================================================
   步骤
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.step { padding: 20px; text-align: center; }
.step .no {
  font-size: 30px;
  font-weight: 900;
  color: rgba(120, 160, 220, 0.16);
  line-height: 1;
  margin-bottom: 9px;
  letter-spacing: -1px;
}
.step h4 { font-size: 14px; font-weight: 800; margin-bottom: 7px; }
.step p { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }

/* ==========================================================================
   换算器
   ========================================================================== */

.calc-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.calc-field { flex: 1; min-width: 130px; }
.calc-out {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(53, 214, 255, 0.06);
  border: 1px solid rgba(53, 214, 255, 0.18);
  font-size: 13px;
  line-height: 1.9;
}
.calc-out b { color: var(--cyan); font-size: 15px; }

/* ==========================================================================
   晒单墙
   ========================================================================== */

.sw-track { display: flex; gap: 11px; overflow-x: auto; padding-bottom: 6px; }
.sw-track::-webkit-scrollbar { height: 5px; }
.sw-track::-webkit-scrollbar-thumb { background: rgba(120, 160, 220, 0.24); border-radius: 3px; }

.sw-card {
  flex-shrink: 0;
  min-width: 168px;
  padding: 13px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 201, 74, 0.1), rgba(255, 79, 216, 0.06));
  border: 1px solid rgba(255, 201, 74, 0.22);
}

.sw-card .sw-who { font-size: 13.5px; font-weight: 800; color: var(--gold); margin-bottom: 3px; }
.sw-card .sw-prize { font-size: 12px; color: var(--text-dim); }
.sw-card .sw-date { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

/* ==========================================================================
   登录页
   ========================================================================== */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  color: #06121c;
  margin: 0 auto 16px;
}

.auth-title { font-size: 21px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 12.5px; color: var(--text-faint); text-align: center; margin-bottom: 22px; }

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(8, 12, 20, 0.7);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s;
}

.auth-tab.active { background: var(--cyan-soft); color: var(--cyan); }

/* ==========================================================================
   个人中心
   ========================================================================== */

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  color: #06121c;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-name { font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.profile-meta { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }

/* ==========================================================================
   后台
   ========================================================================== */

.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.admin-tabs::-webkit-scrollbar { height: 0; }

.admin-tab {
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s;
}

.admin-tab:hover { color: var(--text); background: rgba(120, 160, 220, 0.08); }
.admin-tab.active { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(53, 214, 255, 0.24); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

.kv-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--border);
}

.kv-item .k { font-size: 11.5px; color: var(--text-faint); font-weight: 600; }
.kv-item .v { font-size: 20px; font-weight: 900; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kv-item .v.cyan { color: var(--cyan); }
.kv-item .v.gold { color: var(--gold); }
.kv-item .v.mg { color: var(--magenta); }
.kv-item .v.green { color: var(--green); }

/* ==========================================================================
   工具类
   ========================================================================== */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mb-14 { margin-bottom: 14px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.bold { font-weight: 800; }

.footer {
  text-align: center;
  padding: 30px 16px 40px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.9;
}

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120, 160, 220, 0.2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 160, 220, 0.34); }

/* ===========================================================================
   座位表
   =========================================================================== */
.seat-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: var(--text-faint);
  margin-bottom: 14px;
}
.seat-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.seat-legend .sw {
  width: 16px; height: 16px; border-radius: 4px; display: inline-block;
  border: 1px solid rgba(255,255,255,.14);
}
.seat-legend .sw.free  { background: #f4f6fa; border-color: #d8dde8; }
.seat-legend .sw.taken { background: #c0392b; border-color: #a93226; }
.seat-legend .sw.mine  { background: #16a085; border-color: #138d75; }
.seat-legend .sw.sel   { background: #f39c12; border-color: #d68910; }

.seat-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .seat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
}
@media (max-width: 420px) {
  .seat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
}

.seat-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease;
  border: 1px solid transparent;
}
.seat-cell:hover { transform: translateY(-2px); }

/* 空位：白色，可拍 */
.seat-cell.free {
  background: #f4f6fa;
  color: #1a2233;
  border-color: #d8dde8;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.seat-cell.free:hover { box-shadow: 0 4px 12px rgba(255,255,255,.18); }

/* 已占：红色 */
.seat-cell.taken {
  background: #c0392b;
  color: #fff;
  border-color: #a93226;
  cursor: not-allowed;
  opacity: .92;
}
.seat-cell.taken:hover { transform: none; }

/* 我的座位：绿色 */
.seat-cell.mine {
  background: #16a085;
  color: #fff;
  border-color: #138d75;
}
.seat-cell.mine:hover { box-shadow: 0 4px 12px rgba(22,160,133,.4); }

/* 待选：橙色 */
.seat-cell.sel {
  background: #f39c12;
  color: #1a2233;
  border-color: #d68910;
  box-shadow: 0 0 0 2px rgba(243,156,18,.5);
}

/* 满座时整格变暗 */
.seat-grid.full .seat-cell.free { opacity: .35; }

.seat-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.seat-picked {
  font-size: 13px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.seat-picked strong { color: var(--cyan); }

.seat-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.seat-status.ok {
  background: rgba(22,160,133,.14);
  color: #2ecc9b;
  border: 1px solid rgba(22,160,133,.3);
}
.seat-status.full {
  background: rgba(192,57,43,.16);
  color: #ff7b6b;
  border: 1px solid rgba(192,57,43,.35);
}
.seat-status.wait {
  background: rgba(243,156,18,.12);
  color: #f5b041;
  border: 1px solid rgba(243,156,18,.28);
}

﻿
/* 指定奖品位：右上角金色小圆点 */
.seat-cell.prize-seat {
  box-shadow: 0 0 0 2px rgba(255, 199, 87, .85), 0 0 10px rgba(255, 199, 87, .45);
}
.seat-cell .seat-prize-dot {
  position: absolute;
  top: 3px; right: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffc757;
  box-shadow: 0 0 6px rgba(255, 199, 87, .9);
}
