:root {
  --bg: #07060d;
  --bg2: #0b0918;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --text: #f4f1ff;
  --muted: #9c95bd;
  --muted-2: #6f688f;
  --pink: #ff3d8b;
  --purple: #8b5cf6;
  --cyan: #22e6c8;
  --gold: #ffd166;
  --red: #ff4d6d;
  --blue: #4d9fff;
  --green: #34d399;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Arial Narrow", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(255, 61, 139, 0.35); }

/* ---------------- 背景 ---------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(900px 600px at 5% 10%, rgba(255, 61, 139, 0.12), transparent 55%),
    linear-gradient(180deg, #07060d 0%, #08070f 40%, #05040a 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite alternate;
}
.b1 { width: 520px; height: 520px; left: -180px; top: -120px; background: #ff3d8b; opacity: 0.22; }
.b2 { width: 640px; height: 640px; right: -220px; top: 120px; background: #6d4bff; opacity: 0.2; animation-delay: -6s; }
.b3 { width: 460px; height: 460px; left: 30%; bottom: -260px; background: #22e6c8; opacity: 0.12; animation-delay: -12s; }
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -50px, 0) scale(1.12); }
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 24px;
  background: rgba(7, 6, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-mark {
  font-family: var(--num);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-style: italic;
  background: linear-gradient(100deg, #fff 10%, #ff8fbc 55%, #b388ff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-x { color: var(--muted-2); font-size: 14px; }
.brand-coke {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff6b8a;
  border: 1px solid rgba(255, 61, 139, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.2;
}
.brand-tag { font-size: 11px; color: var(--muted-2); letter-spacing: 0.12em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  transition: 0.18s;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nav-admin { opacity: 0.7; }

.top-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--stroke);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------------- 布局 ---------------- */
.app { max-width: 1180px; margin: 0 auto; padding: 26px 24px 80px; }

.section { margin-bottom: 30px; animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.section-desc { font-size: 12.5px; color: var(--muted-2); }
.section-more { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------------- 英雄区 ---------------- */
.hero {
  position: relative;
  padding: 34px 34px 30px;
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(500px 260px at 8% 100%, rgba(255, 61, 139, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 61, 139, 0.55), rgba(139, 92, 246, 0.35) 40%, rgba(34, 230, 200, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--num);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--pink);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--pink); }
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 900;
  background: linear-gradient(96deg, #ffffff 0%, #ffd7e7 40%, #c4b5fd 72%, #9ff7ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin: 0 0 6px; font-size: 15px; color: #cfc8e8; font-weight: 600; letter-spacing: 0.02em; }
.hero-intro { margin: 0; max-width: 620px; font-size: 13px; line-height: 1.75; color: var(--muted); }

.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 26px; margin-top: 26px; }
.countdown { display: flex; gap: 10px; }
.cd-cell {
  min-width: 74px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.cd-num { font-family: var(--num); font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.cd-label { font-size: 10px; color: var(--muted-2); letter-spacing: 0.2em; margin-top: 6px; }
.cd-cell.hot .cd-num { color: var(--pink); text-shadow: 0 0 22px rgba(255, 61, 139, 0.5); }

.hero-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  border: none;
  background: linear-gradient(100deg, #ff3d8b, #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 61, 139, 0.28);
}
.btn.primary:hover { box-shadow: 0 14px 32px rgba(255, 61, 139, 0.4); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn.danger { border-color: rgba(255, 77, 109, 0.4); color: #ff8fa3; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------------- 统计条 ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}
.stat-k { font-size: 11px; color: var(--muted-2); letter-spacing: 0.12em; }
.stat-v { font-family: var(--num); font-size: 24px; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat-v small { font-size: 12px; color: var(--muted); font-family: var(--font); font-weight: 500; margin-left: 3px; }

/* ---------------- 面板 ---------------- */
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 18px;
}
.panel.flush { padding: 0; overflow: hidden; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }

/* ---------------- 团队榜 ---------------- */
.team-list { display: flex; flex-direction: column; gap: 10px; }
.team-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: 0.2s;
}
.team-row:hover { border-color: var(--stroke-2); background: rgba(255, 255, 255, 0.06); }
.team-row .glow {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--team-color, var(--purple));
  box-shadow: 0 0 18px var(--team-color, var(--purple));
}
.team-rank {
  font-family: var(--num);
  font-size: 20px;
  font-weight: 800;
  color: var(--muted-2);
  text-align: center;
}
.team-row:nth-child(1) .team-rank { color: var(--gold); }
.team-row:nth-child(2) .team-rank { color: #d7d2e8; }
.team-row:nth-child(3) .team-rank { color: #d19a66; }
.team-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.team-badge { font-size: 10.5px; color: var(--muted-2); font-weight: 400; }
.team-members { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-score { font-family: var(--num); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.team-score small { font-size: 10px; color: var(--muted-2); margin-left: 2px; font-weight: 500; }

/* ---------------- 分区卡 ---------------- */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.zone-card {
  position: relative;
  display: block;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  background:
    radial-gradient(340px 140px at 100% 0%, color-mix(in srgb, var(--zc, #8b5cf6) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  transition: 0.22s;
  overflow: hidden;
}
.zone-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--zc, #8b5cf6) 55%, transparent); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.zone-top { display: flex; align-items: center; gap: 10px; }
.zone-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 21px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--zc, #8b5cf6) 30%, transparent);
  flex-shrink: 0;
}
.zone-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.zone-desc { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.zone-champ {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 9px;
}
.champ-crown { font-size: 15px; }
.champ-name { font-size: 13px; font-weight: 700; }
.champ-empty { font-size: 12px; color: var(--muted-2); }
.champ-score { margin-left: auto; font-family: var(--num); font-size: 17px; font-weight: 800; color: var(--gold); }
.zone-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 11.5px; color: var(--muted-2); }
.zone-foot .link { color: var(--muted); }

/* ---------------- 动态流 ---------------- */
.feed { display: flex; flex-direction: column; gap: 2px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 12.5px;
  line-height: 1.55;
  animation: rise 0.3s ease both;
}
.feed-item:last-child { border-bottom: none; }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; background: var(--pink); flex-shrink: 0; box-shadow: 0 0 8px var(--pink); }
.feed-text { color: #d6d0ea; }
.feed-text b { color: #fff; font-weight: 700; }
.feed-text .pts { color: var(--cyan); font-family: var(--num); font-weight: 800; }
.feed-time { margin-left: auto; color: var(--muted-2); font-size: 10.5px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; font-size: 13px; }
table.board th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 500;
  padding: 10px 10px;
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}
table.board td { padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
table.board tr:last-child td { border-bottom: none; }
table.board tr.me { background: rgba(255, 61, 139, 0.07); }
table.board .num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-cell { font-family: var(--num); font-weight: 800; color: var(--muted-2); width: 34px; }
.rank-cell.g1 { color: var(--gold); }
.rank-cell.g2 { color: #d7d2e8; }
.rank-cell.g3 { color: #d19a66; }
.player-cell { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0a0812;
  flex-shrink: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.tag.gold { background: rgba(255, 209, 102, 0.12); color: var(--gold); border-color: rgba(255, 209, 102, 0.25); }
.tag.green { background: rgba(52, 211, 153, 0.12); color: var(--green); border-color: rgba(52, 211, 153, 0.25); }
.tag.pink { background: rgba(255, 61, 139, 0.12); color: #ff8fbc; border-color: rgba(255, 61, 139, 0.25); }
.tag.cyan { background: rgba(34, 230, 200, 0.1); color: var(--cyan); border-color: rgba(34, 230, 200, 0.22); }

/* ---------------- 分区详情 ---------------- */
.zone-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  background:
    radial-gradient(500px 200px at 90% 0%, color-mix(in srgb, var(--zc, #8b5cf6) 26%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  margin-bottom: 18px;
}
.zone-hero .zone-icon { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.zone-hero h2 { margin: 0 0 4px; font-size: 24px; }
.zone-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.zone-hero .spacer { margin-left: auto; text-align: right; }
.big-score { font-family: var(--num); font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; }

.rules-box { margin-top: 16px; }
.rules-box li { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-left: -8px; }

/* ---------------- 我的 ---------------- */
.me-card {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(139, 92, 246, 0.2), transparent 65%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}
.me-head { display: flex; align-items: center; gap: 16px; }
.me-avatar {
  width: 62px; height: 62px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #0b0918;
}
.me-name { font-size: 24px; font-weight: 800; }
.me-meta { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.me-stat { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 13px; padding: 13px 15px; }
.me-stat .k { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.1em; }
.me-stat .v { font-family: var(--num); font-size: 26px; font-weight: 800; margin-top: 4px; }
.me-stat .v small { font-size: 11px; color: var(--muted); font-family: var(--font); font-weight: 500; }

.progress-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.progress-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}
.progress-row .zi { font-size: 18px; text-align: center; }
.progress-row .pn { font-size: 13px; font-weight: 600; }
.progress-row .pm { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.pips { display: flex; gap: 5px; margin-top: 6px; }
.pip { width: 22px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.pip.on { background: var(--zc, var(--pink)); box-shadow: 0 0 8px var(--zc, var(--pink)); }
.progress-score { text-align: right; }
.progress-score .ps { font-family: var(--num); font-size: 20px; font-weight: 800; }
.progress-score .pr { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------------- 方案 / 想法池 ---------------- */
.subtabs { display: flex; gap: 8px; margin-bottom: 18px; }
.subtabs button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: 0.18s;
}
.subtabs button.active {
  background: linear-gradient(100deg, rgba(255, 61, 139, 0.92), rgba(139, 92, 246, 0.92));
  color: #fff;
  border-color: transparent;
}
.pill-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 11px;
  line-height: 18px;
}
.idea-form { display: flex; gap: 10px; }
.idea-form .input { flex: 1; }
.idea-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.idea-card.adopted {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02));
}
.idea-text { font-size: 14px; line-height: 1.75; color: #e9e4f7; white-space: pre-wrap; word-break: break-word; }
.idea-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.idea-by { font-size: 12px; color: #cfc8e8; font-weight: 600; }
.idea-time { font-size: 11px; color: var(--muted-2); }
.idea-like {
  margin-left: auto;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--muted);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}
.idea-like.on { color: #ff8fbc; border-color: rgba(255, 61, 139, 0.5); background: rgba(255, 61, 139, 0.12); }

/* ---------------- 规则页 ---------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(255, 61, 139, 0.5), rgba(139, 92, 246, 0.3), transparent); }
.tl-item { position: relative; padding: 0 0 20px 6px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -24px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1a1730;
  border: 2px solid var(--muted-2);
}
.tl-item.now::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 14px var(--pink); }
.tl-item.done::before { border-color: var(--purple); background: var(--purple); }
.tl-time { font-family: var(--num); font-size: 13px; font-weight: 700; color: #cfc8e8; letter-spacing: 0.04em; }
.tl-text { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }

.rule-list { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rule-list li {
  counter-increment: r;
  position: relative;
  padding: 12px 0 12px 38px;
  font-size: 13.5px;
  color: #d6d0ea;
  line-height: 1.7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rule-list li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 0; top: 13px;
  font-family: var(--num);
  font-size: 12px;
  color: var(--pink);
  font-weight: 800;
}
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.check-item { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.check-item::before { content: "□"; color: var(--purple); font-size: 14px; line-height: 1.2; }

.budget { display: flex; align-items: baseline; gap: 8px; }
.budget .amount { font-family: var(--num); font-size: 40px; font-weight: 800; background: linear-gradient(100deg, #ffd166, #ff8fbc); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- 管理台 ---------------- */
.admin-gate { max-width: 380px; margin: 40px auto; text-align: center; }
.admin-gate h2 { font-size: 22px; margin: 0 0 8px; }
.admin-gate p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.pin-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 22px;
  letter-spacing: 0.5em;
  text-align: center;
  font-family: var(--num);
  border-radius: 13px;
  border: 1px solid var(--stroke-2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  outline: none;
}
.pin-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, 0.15); }

.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs button {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.admin-tabs button.active { background: linear-gradient(100deg, rgba(255, 61, 139, 0.9), rgba(139, 92, 246, 0.9)); color: #fff; border-color: transparent; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.field label { display: block; font-size: 11px; color: var(--muted-2); margin-bottom: 5px; letter-spacing: 0.08em; }
.input, select.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.input:focus { border-color: rgba(139, 92, 246, 0.7); }
select.input option { background: #14112a; }

.list-cards { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 13px;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.circle {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #0b0918; flex-shrink: 0;
}

.score-form { display: grid; gap: 12px; }
.score-form .preview {
  font-family: var(--num);
  font-size: 34px;
  font-weight: 800;
  color: var(--cyan);
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(34, 230, 200, 0.06);
  border: 1px dashed rgba(34, 230, 200, 0.25);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.chip.on { background: rgba(255, 61, 139, 0.16); border-color: rgba(255, 61, 139, 0.55); color: #fff; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 3, 9, 0.72);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 460px;
  border-radius: 22px;
  border: 1px solid var(--stroke-2);
  background: linear-gradient(160deg, #16122b, #0d0a1a);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  padding: 24px;
  animation: pop 0.25s cubic-bezier(0.2, 1.2, 0.4, 1);
  max-height: 88vh;
  overflow-y: auto;
}
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal p.hint { margin: 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.modal-close { position: absolute; top: 14px; right: 14px; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 11px 20px;
  border-radius: 12px;
  background: rgba(20, 17, 40, 0.95);
  border: 1px solid var(--stroke-2);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 77, 109, 0.5); color: #ff9aab; }

/* ---------------- 底部导航 ---------------- */
.bottomnav { display: none; }

/* ---------------- 大屏 ---------------- */
body.screen-mode .topbar,
body.screen-mode .bottomnav { display: none; }
body.screen-mode .app { max-width: none; padding: 0; }
.screen-body { padding: 0; }
.screen-wrap {
  min-height: 100vh;
  padding: 28px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.screen-exit {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 30;
  opacity: 0.35;
}
.screen-exit:hover { opacity: 1; }
.screen-head { display: flex; align-items: flex-end; gap: 22px; }
.screen-head h1 { margin: 0; font-size: clamp(30px, 3.6vw, 58px); font-weight: 900; letter-spacing: -0.01em; background: linear-gradient(96deg, #fff, #ffd7e7 45%, #9ff7ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen-head .cd { margin-left: auto; display: flex; gap: 10px; }
.screen-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; flex: 1; min-height: 0; }
.screen-grid .panel { padding: 24px; }
.screen-grid .team-row { padding: 16px 20px; }
.screen-grid .team-score { font-size: 32px; }
.screen-grid .zone-card { padding: 16px; }
.screen-feed { overflow: hidden; }
.screen-feed .feed { max-height: none; }

/* ---------------- 空态 ---------------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted-2); font-size: 13px; }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: 0.6; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .grid-main { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .screen-head { flex-wrap: wrap; }
  .screen-head .cd { margin-left: 0; }
}

@media (max-width: 720px) {
  .topbar { height: 56px; padding: 0 14px; gap: 10px; }
  .brand-tag { display: none; }
  .nav { display: none; }
  .top-status { margin-left: auto; border-left: none; padding-left: 0; font-size: 11px; }
  .app { padding: 16px 14px 92px; }
  .hero { padding: 24px 20px 22px; border-radius: 20px; }
  .hero h1 { font-size: 26px; }
  .hero-grid { gap: 16px; margin-top: 20px; }
  .countdown { width: 100%; }
  .cd-cell { flex: 1; min-width: 0; padding: 9px 6px 7px; }
  .cd-num { font-size: 23px; }
  .cd-label { font-size: 9px; letter-spacing: 0.1em; }
  .hero-actions { margin-left: 0; width: 100%; }
  .hero-actions .btn { flex: 1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat { padding: 11px 13px; }
  .stat-v { font-size: 20px; }
  .zone-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .zone-card { padding: 13px; border-radius: 15px; }
  .zone-icon { width: 34px; height: 34px; font-size: 17px; }
  .zone-name { font-size: 12.5px; }
  .zone-desc { display: none; }
  .zone-champ { margin-top: 10px; padding: 8px 9px; }
  .champ-name { font-size: 12px; }
  .champ-score { font-size: 15px; }
  .zone-foot { margin-top: 9px; }
  .me-card { padding: 20px; }
  .me-name { font-size: 20px; }
  .me-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .me-stat { padding: 10px; }
  .me-stat .v { font-size: 20px; }
  .zone-hero { padding: 18px; gap: 12px; flex-wrap: wrap; }
  .zone-hero .zone-icon { width: 50px; height: 50px; font-size: 25px; }
  .zone-hero h2 { font-size: 19px; }
  .zone-hero .spacer { margin-left: 0; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; }
  table.board th, table.board td { padding: 9px 7px; }
  table.board { font-size: 12.5px; }
  .section { margin-bottom: 22px; }
  .modal { padding: 20px; }
  .admin-tabs { position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: 8px 0; margin: 0 0 12px; }

  .bottomnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: rgba(9, 7, 17, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 0;
    font-size: 10px;
    color: var(--muted-2);
  }
  .bottomnav a.active { color: var(--pink); }
  .bottomnav .bi { font-size: 17px; line-height: 1; }
  .toast { bottom: 110px; }
}

@media (max-width: 380px) {
  .zone-grid { grid-template-columns: 1fr; }
  .me-stats { grid-template-columns: 1fr; }
}

/* 截图 / 无动画模式 */
.no-anim *, .no-anim *::before, .no-anim *::after {
  animation: none !important;
  transition: none !important;
}
.no-anim .section, .no-anim .hero, .no-anim .feed-item { opacity: 1 !important; transform: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }
