/* =========================================================
   MAYDAY 练团同行 · 前台视觉体系
   主色  胡萝卜浅橙 #F08A18 · 暖金高光 #FFD675 · 奶橙柔光底 #FFF6E9
   （五色粉丝球仅作跳跳点缀保留）
   ========================================================= */

:root {
  --md-blue: #ff9433;
  --md-blue-600: #ffb066;
  --md-deep: #5a2c03;
  --md-deep-2: #2e1601;
  --md-gold: #ffcf4d;
  --md-gold-soft: #ffe3a3;
  --md-purple: #b896e8;
  --md-bg: #fff6e9;
  --md-ink: #3a2510;
  --md-ink-soft: #9a7a55;
  --md-line: rgba(150, 70, 5, 0.14);
  --md-shadow: 0 14px 40px -18px rgba(168, 78, 6, 0.32);
  --md-radius: 18px;
  --md-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  /* 憨人集结社 · 粉丝五球色系（淡粉 / 淡蓝 / 绿 / 黄 / 红，作为点缀保留） */
  --wb-1: radial-gradient(circle at 32% 28%, #ffe2ec, #f2a2c1 55%, #e288a8);
  --wb-2: radial-gradient(circle at 32% 28%, #e3f4ff, #7fbeea 55%, #58a7da);
  --wb-3: radial-gradient(circle at 32% 28%, #eff9d6, #a9d973 55%, #82bd52);
  --wb-4: radial-gradient(circle at 32% 28%, #fff5cc, #ffd45f 55%, #efba40);
  --wb-5: radial-gradient(circle at 32% 28%, #ffe3d8, #f3856d 55%, #dc6347);
  --wb-grad: linear-gradient(152deg, #fff2e1 0%, #ffe3c0 30%, #ffcf9c 55%, #ffba75 78%, #ffa95b 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
svg { stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--md-font);
  color: var(--md-ink);
  background: var(--md-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 页底练团专属纹理：六线谱 + 音符光斑（全站） ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image:
    /* 细碎荧光光斑 */
    radial-gradient(circle at 12% 22%, rgba(184,150,232,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 83% 12%, rgba(255,215,0,.12) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 78%, rgba(255,148,51,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 86%, rgba(255,215,0,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 55%, rgba(184,150,232,.12) 0 2px, transparent 3px),
    radial-gradient(circle at 6% 62%, rgba(255,148,51,.12) 0 2px, transparent 3px);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  /* 极淡吉他六线谱 */
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 34px, rgba(92,46,3,.035) 34px 36px, transparent 36px 72px),
    repeating-linear-gradient(to bottom, transparent 0 34px, rgba(92,46,3,.022) 34px 35px, transparent 35px 72px);
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- 舞台灯光加载：五色球齐亮 ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9990;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.55), transparent 62%),
    var(--wb-grad);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.loader-balls {
  position: absolute; inset: 0; margin: auto;
  width: 184px; height: 34px;
  display: flex; align-items: center; justify-content: center; gap: 15px;
}
.loader-balls i {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset -2px -3px 5px rgba(92,46,3,.16), inset 2px 3px 6px rgba(255,255,255,.5), 0 8px 16px -6px rgba(92,46,3,.28);
  animation: loaderBob .85s ease-in-out infinite alternate;
}
.loader-balls i:nth-child(2) { animation-delay: .1s; }
.loader-balls i:nth-child(3) { animation-delay: .2s; }
.loader-balls i:nth-child(4) { animation-delay: .3s; }
.loader-balls i:nth-child(5) { animation-delay: .4s; }
@keyframes loaderBob {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
.loader-text {
  margin-top: 48px; text-align: center; color: var(--md-deep);
  font-size: 13px; letter-spacing: .35em; text-indent: .35em; opacity: .9;
}
.loader-text small { display: block; color: rgba(92,46,3,.55); font-size: 11px; letter-spacing: .2em; margin-top: 8px; }

/* ---------- 顶部导航（吸顶） ---------- */
.topnav {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 246, 233, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--md-line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--md-ink); }
.brand-hlogo { height: 30px; width: auto; display: block; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.12)); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--md-blue-600), var(--md-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 0 0 2px rgba(255,215,0,.55), 0 4px 14px rgba(255,148,51,.35);
}
.brand-name { font-size: 17px; font-weight: 800; line-height: 1.1; }
.brand-name b { color: var(--md-blue); }
.brand-sub { font-size: 11px; color: var(--md-ink-soft); letter-spacing: .12em; margin-top: 2px; }
.topnav-links { display: flex; gap: 8px; align-items: center; }
.link-pill {
  font-size: 13px; color: var(--md-deep); text-decoration: none;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--md-line);
  transition: all .25s;
}
.link-pill:hover { border-color: var(--md-blue); color: var(--md-blue); background: rgba(255,148,51,.05); }

/* ---------- 轮播双标语 ---------- */
.slogan-strip {
  text-align: center; padding: 9px 16px;
  background: linear-gradient(90deg, transparent, rgba(92,46,3,.04), transparent);
  color: var(--md-blue); font-size: 12.5px; letter-spacing: .28em; text-indent: .28em;
  border-bottom: 1px dashed rgba(92,46,3,.08);
  height: 38px; overflow: hidden; position: relative;
}
.slogan-strip span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, transform .7s ease; opacity: 0; transform: translateY(8px);
}
.slogan-strip span.on { opacity: 1; transform: translateY(0); }
.slogan-strip em { font-style: normal; color: var(--md-gold); background: linear-gradient(90deg, #d4a900, var(--md-gold), #d4a900); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Hero Banner ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--md-deep);
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(30px, 4vw, 48px);
  background:
    radial-gradient(130% 95% at 50% -8%, rgba(255,255,255,.55), transparent 58%),
    var(--wb-grad);
}
.hero::after { /* 极淡竖纹 提升层次 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,.13) 42px 43px, transparent 43px 88px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,.06) 34px 35px, transparent 35px 72px);
}
.hero-spot {
  position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none;
}
.hero-spot.s1 { width: 340px; height: 340px; left: -80px; top: -110px; background: rgba(255,196,138,.45); animation: drift1 11s ease-in-out infinite; }
.hero-spot.s2 { width: 300px; height: 300px; right: -60px; bottom: -120px; background: rgba(255,221,158,.5); animation: drift2 13s ease-in-out infinite; }
.hero-spot.s3 { width: 220px; height: 220px; right: 26%; top: -90px; background: rgba(255,255,255,.45); animation: drift1 9s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(26px, 22px) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-30px, -18px) scale(.94); } }

.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; text-align: center; }
.hero-kicker {
  display: inline-block; font-size: 11px; letter-spacing: .5em; text-indent: .5em;
  color: var(--md-deep); border: 1px solid rgba(255,255,255,.95);
  padding: 6px 16px 6px calc(16px + .5em); border-radius: 999px; margin-bottom: 18px;
  background: rgba(255,255,255,.55);
}
.hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 900; letter-spacing: .05em; line-height: 1.25; text-shadow: 0 2px 14px rgba(255,255,255,.35); }
.hero h1 .ly { color: #9a5e00; }
.hero-lyric {
  margin-top: 12px; font-size: clamp(13px, 2vw, 16px); letter-spacing: .3em; text-indent: .3em;
  color: rgba(92,46,3,.85);
}
.hero-lyric::before, .hero-lyric::after { content: '♪'; margin: 0 10px; color: #b3860e; }

/* 活动信息卡片 */
.info-grid {
  margin: 30px auto 0; max-width: 980px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.info-chip {
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.85);
  border-radius: 14px; padding: 13px 14px; text-align: left;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.info-chip .k { font-size: 11px; letter-spacing: .18em; color: rgba(92,46,3,.62); margin-bottom: 5px; }
.info-chip .v { font-size: 14px; font-weight: 700; color: var(--md-deep); word-break: break-all; }
.info-chip .v small { font-weight: 400; color: rgba(92,46,3,.62); }
.info-chip.gold .v { color: #a8790a; }
.info-chip.gold .k { color: rgba(141,107,8,.8); }

/* ---------- 散落五色球（全站装饰层） ---------- */
.orb-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb-field .orb,
.page-sprinkle .orb {
  position: absolute; border-radius: 50%; display: block; pointer-events: none;
  box-shadow: inset -2px -4px 7px rgba(92,46,3,.16), inset 2px 3px 8px rgba(255,255,255,.45), 0 10px 18px -8px rgba(92,46,3,.28);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb.soft { opacity: .55; }
.orb.pale { opacity: .2; }
.orb.tiny { width: 16px; height: 16px; }
.orb.sm { width: 28px; height: 28px; }
.orb.md { width: 48px; height: 48px; }
.orb.lg { width: 88px; height: 88px; }
.orb.xl { width: 150px; height: 150px; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(9px, -12px); }
}
.page-sprinkle { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* ---------- 主舞台（内容区） ---------- */
.stage {
  max-width: 1080px; margin: -24px auto 0; padding: 0 clamp(14px, 3vw, 28px) 20px;
  position: relative;
}
.panel {
  background: rgba(255,255,255,.96); border-radius: var(--md-radius);
  border: 1px solid rgba(92,46,3,.07); box-shadow: var(--md-shadow);
}
.panel-inner { padding: clamp(20px, 3vw, 34px); }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--md-blue), var(--md-deep)); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(255,148,51,.8);
}
.sec-icon svg { width: 20px; height: 20px; }
.sec-title { font-size: 18px; font-weight: 800; }
.sec-sub { font-size: 12px; color: var(--md-ink-soft); margin-top: 2px; }

/* 倒计时 */
.countdown-wrap { display: flex; flex-direction: column; gap: 18px; }
.cd-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  padding: 18px; border-radius: 16px;
  background: radial-gradient(140% 200% at 50% 0%, rgba(255,215,0,.10), rgba(255,255,255,0) 55%), linear-gradient(180deg, #ffffff, #fff6e7);
  border: 1px solid rgba(92,46,3,.07);
}
.cd-status { font-size: 13px; color: var(--md-ink-soft); letter-spacing: .06em; }
.cd-box {
  min-width: 78px; padding: 10px 8px 8px; border-radius: 12px;
  background: linear-gradient(170deg, var(--md-deep), #9a4d06);
  box-shadow: inset 0 -14px 24px -18px rgba(0,0,0,.55), 0 8px 18px -12px rgba(255,148,51,.7);
}
.cd-num {
  font-size: clamp(30px, 6vw, 44px); font-weight: 900; line-height: 1;
  color: var(--md-gold); text-shadow: 0 0 18px rgba(255,215,0,.45);
  font-variant-numeric: tabular-nums;
}
.cd-num.live { animation: tick .9s ease-in-out infinite; }
@keyframes tick { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.cd-label { color: rgba(255,255,255,.62); font-size: 10.5px; letter-spacing: .3em; text-indent: .3em; margin-top: 6px; }
.cd-sep { font-size: 26px; font-weight: 800; color: rgba(92,46,3,.28); padding-bottom: 18px; }

/* 状态横幅 */
.state-banner {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: 14px; padding: 13px 16px; font-size: 13.5px; line-height: 1.65;
  border: 1px dashed; margin-top: 16px;
}
.state-banner b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.state-banner.waiting { background: rgba(184,150,232,.09); border-color: rgba(184,150,232,.55); color: #6a4fae; }
.state-banner.live { background: rgba(255,148,51,.07); border-color: rgba(255,148,51,.4); color: var(--md-blue); }
.state-banner.full { background: rgba(255,215,0,.10); border-color: rgba(255,215,0,.65); color: #a38200; }
.state-banner.done { background: rgba(92,46,3,.05); border-color: rgba(92,46,3,.3); color: var(--md-ink-soft); }
.state-banner svg { flex: 0 0 auto; margin-top: 3px; width: 18px; height: 18px; }
.state-banner > div { min-width: 0; overflow-wrap: anywhere; }

/* 报名布局 */
.signup-layout { display: grid; grid-template-columns: 1.25fr .9fr; gap: 22px; margin-top: 22px; align-items: start; }
@media (max-width: 880px) { .signup-layout { grid-template-columns: 1fr; } }

/* 表单 */
.field { margin-bottom: 16px; }
.field-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--md-deep); }
.field-label svg { width: 15px; height: 15px; color: var(--md-blue); }
.field-hint { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--md-ink-soft); }
.field-box { position: relative; }
.field-box > svg.icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #c2945f; pointer-events: none; transition: color .25s;
}
.field-box input, .field-box textarea, .field-box select {
  width: 100%; padding: 13px 14px; padding-left: 44px;
  border: 1.5px solid rgba(92,46,3,.14); border-radius: 13px;
  font-size: 15px; font-family: inherit; color: var(--md-ink);
  background: #fff; outline: none; transition: all .25s;
}
.field-box textarea { resize: vertical; min-height: 76px; padding-top: 12px; line-height: 1.6; }
.field-box input:focus, .field-box textarea:focus {
  border-color: var(--md-blue);
  box-shadow: 0 0 0 4px rgba(255,148,51,.12), 0 0 22px rgba(255,148,51,.18);
}
.field-box input:focus ~ svg.icon { color: var(--md-blue); }
.field-box::after { content: ''; position: absolute; left: 44px; right: 10px; top: 0; height: 1px; opacity: 0; transition: opacity .3s; background: linear-gradient(90deg, transparent, var(--md-gold), transparent); pointer-events: none; }
.field-box:focus-within::after { opacity: .8; }
.input-note { font-size: 11.5px; color: var(--md-ink-soft); margin-top: 6px; line-height: 1.5; }

/* 按钮 */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 15px; font-weight: 700;
  border-radius: 13px; padding: 13px 22px;
  transition: all .25s; overflow: hidden; -webkit-user-select: none; user-select: none;
}
.btn-primary {
  background: linear-gradient(120deg, var(--md-blue-600), var(--md-blue));
  color: #fff; width: 100%;
  box-shadow: 0 12px 24px -12px rgba(255,148,51,.9);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(255,148,51,.95), 0 0 22px rgba(255,215,0,.25); }
.btn-gold {
  background: linear-gradient(120deg, #e8b800, var(--md-gold)); color: #3d2d00;
  box-shadow: 0 12px 24px -12px rgba(212,169,0,.95);
}
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(212,169,0,.9), 0 0 26px rgba(255,215,0,.5); }
.btn-ghost { background: #fff; color: var(--md-blue); border: 1.5px solid rgba(255,148,51,.35); }
.btn-ghost:hover { background: rgba(255,148,51,.05); }
.btn:disabled {
  background: #ecd9bd; color: #b99a75; cursor: not-allowed;
  box-shadow: none; transform: none;
}
.btn svg { width: 17px; height: 17px; }
.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 10px; }

/* 悬浮荧光粒子 */
.spark {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, #fff6cf, var(--md-gold));
  box-shadow: 0 0 8px var(--md-gold);
  animation: sparkUp .85s ease-out forwards;
}
@keyframes sparkUp {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 6px), var(--dy, -26px)) scale(.1); opacity: 0; }
}

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 9000; background: rgba(66,32,4,.72);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  padding: 18px; opacity: 0; visibility: hidden; transition: all .3s;
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal-box {
  width: min(480px, 100%); max-height: 92vh; overflow: auto;
  background: linear-gradient(180deg, #fff, #fff3e0);
  border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.96); transition: all .35s;
}
.modal-mask.show .modal-box { transform: none; }
.modal-head { padding: 20px 24px 0; text-align: center; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(92,46,3,.06); color: var(--md-ink-soft); cursor: pointer; font-size: 16px;
}
.modal-close:hover { background: rgba(92,46,3,.12); }
.modal-body { padding: 18px 24px 24px; text-align: center; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* ---------- 舞台镜框式二维码卡 ---------- */
.qr-card {
  position: relative; padding: 20px;
  background: linear-gradient(170deg, var(--md-deep-2), var(--md-deep) 60%, #8f4706);
  border-radius: 18px; color: #fff; text-align: center;
  overflow: hidden;
}
.qr-card::before { /* 舞台暖黄四角灯带 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(
    rgba(255,215,0,.95) 0deg 8deg, transparent 8deg 82deg,
    rgba(255,215,0,.6) 90deg 98deg, transparent 98deg 172deg,
    rgba(255,215,0,.95) 180deg 188deg, transparent 188deg 262deg,
    rgba(255,215,0,.6) 270deg 278deg, transparent 278deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 2px; border-radius: 18px;
  animation: ringBreath 2.6s ease-in-out infinite;
}
@keyframes ringBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.qr-card::after { /* 舞台扫光 */
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16) 45%, rgba(255,215,0,.22) 55%, transparent);
  filter: blur(3px);
  animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -45%; } 55%, 100% { left: 105%; } }
.qr-card-tag {
  font-size: 11px; letter-spacing: .4em; text-indent: .4em; color: rgba(255,215,0,.85);
  margin-bottom: 14px; position: relative;
}
.qr-white {
  background: #fff; border-radius: 12px; padding: 10px; display: inline-block; position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.qr-white img { display: block; width: 176px; height: 176px; }
.qr-code-text {
  margin-top: 14px; font-size: 13px; letter-spacing: .12em; word-break: break-all;
  color: rgba(255,255,255,.92); user-select: all;
}
.qr-card-sub { margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,.55); letter-spacing: .18em; }
.qr-badge {
  display: inline-block; margin-top: 12px; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
}
.qr-badge.official { background: rgba(255,215,0,.16); color: var(--md-gold); border: 1px solid rgba(255,215,0,.5); }
.qr-badge.waitlist { background: rgba(184,150,232,.2); color: #d8c6ff; border: 1px solid rgba(184,150,232,.6); }
.qr-badge.promoted { background: rgba(80,220,170,.16); color: #7dffcf; border: 1px solid rgba(80,220,170,.55); }
.qr-badge.checked { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* ---------- Toast ---------- */
#toastRoot { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 9500; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  padding: 12px 20px; border-radius: 999px; font-size: 13.5px; color: #fff;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.4); display: flex; gap: 8px; align-items: center;
  animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2); max-width: 88vw;
  background: linear-gradient(120deg, var(--md-deep), #9a4d06);
}
.toast.ok { background: linear-gradient(120deg, #0e7a52, #12a06e); }
.toast.err { background: linear-gradient(120deg, #b3391e, #d9481f); }
.toast.warn { background: linear-gradient(120deg, #a38200, var(--md-gold)); color: #3d2d00; }
.toast.hide { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 48px; text-align: center; padding: 26px 18px 34px;
  border-top: 1px solid rgba(92,46,3,.07);
  font-size: 12px; color: var(--md-ink-soft); letter-spacing: .1em; line-height: 2;
}
.site-footer b { color: var(--md-blue); font-weight: 700; }
.site-footer .tiny { font-size: 10.5px; opacity: .75; }

/* ---------- 品牌素材：憨人集结社 logo & IP 形象 ---------- */
.brand-logo-img { object-fit: cover; object-position: top center; }
.hero-logo { margin-bottom: 8px; }
.hero-logo img {
  height: clamp(64px, 10vw, 104px); width: auto; object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.35));
}
.hero-ip {
  position: absolute; bottom: -6px; height: clamp(180px, 30vw, 340px);
  width: auto; object-fit: contain; pointer-events: none;
  opacity: .92; filter: drop-shadow(0 14px 30px rgba(0,0,0,.45));
}
.hero-ip.ip-left { left: clamp(8px, 4vw, 90px); }
.hero-ip.ip-right { right: clamp(8px, 4vw, 90px); }
@media (max-width: 860px) {
  .hero-logo img { height: 58px; }
  .hero-ip { height: 142px; opacity: .42; }
  .hero-ip.ip-left { left: -8px; }
  .hero-ip.ip-right { right: -8px; }
}

/* ---------- 五球：淡粉/淡蓝/绿/黄/红 纯色圆球（粉丝五色，不加表情） ---------- */
.wballs {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 2.4vw, 18px); margin: 2px 0 12px;
}
.wballs i {
  width: clamp(14px, 2.8vw, 22px); height: clamp(14px, 2.8vw, 22px);
  border-radius: 50%; display: block;
  box-shadow:
    inset -2px -3px 6px rgba(0,0,0,.18),
    inset 2px 3px 6px rgba(255,255,255,.45),
    0 6px 14px rgba(0,0,0,.25);
  animation: wball-bob 2.5s ease-in-out infinite;
}
.wballs i:nth-child(2) { animation-delay: .18s; }
.wballs i:nth-child(3) { animation-delay: .36s; }
.wballs i:nth-child(4) { animation-delay: .54s; }
.wballs i:nth-child(5) { animation-delay: .72s; }
.wball-1 { background: radial-gradient(circle at 32% 28%, #ffe1ec, #f5a9c6 58%, #e68aa9); }
.wball-2 { background: radial-gradient(circle at 32% 28%, #e2f3ff, #8cccf0 58%, #66aee0); }
.wball-3 { background: radial-gradient(circle at 32% 28%, #eef9d8, #abd975 58%, #88c255); }
.wball-4 { background: radial-gradient(circle at 32% 28%, #fff4d4, #ffd767 58%, #f2be43); }
.wball-5 { background: radial-gradient(circle at 32% 28%, #ffe0d6, #f4886f 58%, #e06a50); }
@keyframes wball-bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12% { transform: translateY(-1px) scale(1.12, .86); }
  32% { transform: translateY(-17px) scale(.9, 1.16); }
  52% { transform: translateY(-2px) scale(1.08, .92); }
  72% { transform: translateY(-13px) scale(.94, 1.1); }
  88% { transform: translateY(-1px) scale(1.03, .96); }
}

/* ---------- 查询页 ---------- */
.query-hero {
  position: relative; overflow: hidden; color: var(--md-deep);
  padding: 42px clamp(16px, 4vw, 48px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.6), transparent 60%),
    var(--wb-grad);
}
.query-hero .spot { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(70px); }
.query-hero .spot.a { left: -60px; top: -80px; background: rgba(255,185,120,.5); }
.query-hero .spot.b { right: -40px; bottom: -100px; background: rgba(255,225,160,.55); }
.query-hero h1 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; letter-spacing: .1em; position: relative; }
.query-hero p { color: rgba(92,46,3,.75); font-size: 13px; letter-spacing: .22em; margin-top: 8px; position: relative; }

.result-status {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  font-size: 15px; font-weight: 700; margin-bottom: 18px;
}
.result-status svg { width: 20px; height: 20px; flex: 0 0 auto; }
.rs-official { background: rgba(255,148,51,.09); color: var(--md-blue); border: 1px solid rgba(255,148,51,.35); }
.rs-waitlist { background: rgba(184,150,232,.12); color: #6a4fae; border: 1px solid rgba(184,150,232,.5); }
.rs-promoted { background: rgba(18,160,110,.1); color: #0d7d56; border: 1px solid rgba(18,160,110,.4); }
.rs-checked { background: rgba(92,46,3,.06); color: var(--md-ink-soft); border: 1px solid rgba(92,46,3,.25); }
.rs-none { background: rgba(179,57,30,.08); color: #a03a24; border: 1px solid rgba(179,57,30,.35); }

/* 通用 */
.muted { color: var(--md-ink-soft); }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.center { text-align: center; }
.hidden { display: none !important; }
a { color: var(--md-blue); }
.tagline-divider { text-align: center; margin: 6px 0 2px; color: rgba(92,46,3,.35); letter-spacing: .3em; font-size: 12px; }

/* =========================================================
   Mobile-first UI 重构
   桌面：吸顶头部 + 胶囊链接；移动端：极简头部 + 底部 Tab 导航
   ========================================================= */

/* 底部 Tab 导航（默认隐藏，仅移动端显示） */
.tabbar { display: none; }

/* 查询页表单 / 结果卡（新类，替代原内联布局） */
.query-form {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 16px; align-items: end; margin: 0;
}
.query-form .field { margin: 0; }
.query-form .btn { min-width: 150px; height: 50px; }

.qr-layout {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
}
.qr-layout .qr-card { width: 100%; max-width: 320px; justify-self: center; }

/* ---------------- ≤ 860px：移动端主战场 ---------------- */
@media (max-width: 860px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

  /* 头部收敛：只留品牌，链接收进底部 Tab */
  .topnav { flex-wrap: nowrap; }
  .topnav-links { display: none; }
  .brand-logo { width: 38px; height: 38px; font-size: 12px; }
  .brand-hlogo { height: 24px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }

  /* 底部 Tab */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: stretch;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    background: rgba(255, 247, 236, .95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(92, 46, 3, .1);
    box-shadow: 0 -14px 34px -24px rgba(92, 46, 3, .45);
  }
  .tabbar-item {
    position: relative; flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 54px; border-radius: 16px;
    color: var(--md-ink-soft); text-decoration: none;
    font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
    -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s;
  }
  .tabbar-item:active { background: rgba(255, 148, 51, .08); }
  .tabbar-icbox {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 26px; border-radius: 10px;
    transition: background .2s, color .2s;
  }
  .tabbar-ic { width: 21px; height: 21px; }
  .tabbar-item.active { color: var(--md-blue); font-weight: 700; }
  .tabbar-item.active .tabbar-icbox {
    background: linear-gradient(135deg, var(--md-blue-600), var(--md-blue));
    color: #fff;
    box-shadow: 0 5px 14px -6px rgba(255, 148, 51, .75);
  }

  /* Hero / 双标语收窄 */
  .slogan-strip { height: 34px; font-size: 11px; letter-spacing: .16em; padding: 7px 14px; }
  .hero { padding: 24px 18px 34px; }
  .hero-kicker { font-size: 9.5px; letter-spacing: .26em; padding: 5px 12px; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(20px, 6.8vw, 32px); letter-spacing: .02em; }
  .hero h1 .ly { display: block; margin-top: 4px; }
  .hero-lyric::before, .hero-lyric::after { content: ''; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .info-chip { border-radius: 13px; padding: 11px 12px; }
  .info-chip .k { font-size: 10px; margin-bottom: 4px; }
  .info-chip .v { font-size: 13px; }
  .query-hero { padding: 26px 18px 30px; }
  .query-hero h1 { letter-spacing: .06em; }
  .query-hero p { letter-spacing: .12em; line-height: 1.8; }

  /* 舞台内容区 */
  .stage { padding: 0 14px 24px; }
  .panel-inner { padding: 20px 18px; }
  .sec-head { margin-bottom: 14px; }
  .sec-title { font-size: 16.5px; }
  .field { margin-bottom: 14px; }
  .field-box input, .field-box textarea { font-size: 16px; } /* 防 iOS 聚焦缩放 */
  .field-box input { padding-top: 12px; padding-bottom: 12px; }

  /* 按钮触控面积 */
  .btn { min-height: 52px; padding: 13px 18px; border-radius: 14px; }
  .btn-sm { min-height: 40px; padding: 8px 13px; border-radius: 11px; }

  /* 倒计时适配小屏：状态行独占一行、四格等宽一行排开、去掉冒号分隔 */
  .cd-row { gap: 6px; padding: 12px 6px; flex-wrap: wrap; }
  .cd-status { flex: 0 0 100%; text-align: center; margin-bottom: 2px; }
  .cd-box { flex: 1 1 0; min-width: 0; width: auto; padding: 10px 2px 8px; border-radius: 12px; }
  .cd-num { font-size: clamp(22px, 7.6vw, 34px); }
  .cd-label { letter-spacing: .08em; text-indent: 0; margin-top: 5px; }
  .cd-sep { display: none; }

  /* Toast 上移避开 Tab */
  #toastRoot { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* 查询表单单列 */
  .query-form { grid-template-columns: 1fr; gap: 12px; }
  .query-form .btn { width: 100%; min-width: 0; height: 52px; }

  /* 查询结果：二维码与信息纵排居中 */
  .qr-layout { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .qr-layout .qr-card { max-width: 340px; }
}

/* ---------------- ≤ 560px：弹层下弹抽屉 & 再紧凑 ---------------- */
@media (max-width: 560px) {
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal-box {
    width: 100%; max-width: 100%; max-height: 90dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(56px);
  }
  .modal-mask.show .modal-box { transform: translateY(0); }
  .modal-head { padding: 24px 20px 0; }
  .modal-body { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
  .qr-card { padding: 16px; }
  .qr-white img { width: 158px; height: 158px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
}

/* 报名主按钮始终通栏 */
#regForm button[type="submit"] { width: 100%; }

/* ---------------- 几人一起赴约（含自己）& 同行伙伴 ---------------- */
.hcount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hcount-chip {
  appearance: none; -webkit-appearance: none;
  flex: 1 1 0; min-width: 50px; max-width: 84px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 6px 7px;
  font-family: inherit; line-height: 1;
  border: 1.5px solid rgba(92, 46, 3, .16); border-radius: 13px;
  background: #fff; cursor: pointer;
  color: var(--md-deep); transition: all .18s ease;
}
.hcount-chip b { font-size: 16.5px; font-weight: 800; }
.hcount-chip i { font-style: normal; font-size: 10px; color: var(--md-ink-soft); letter-spacing: .04em; transition: color .18s; }
.hcount-chip:hover { border-color: var(--md-blue); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(255, 148, 51, .55); }
.hcount-chip:active { transform: scale(.96); }
.hcount-chip.on {
  background: linear-gradient(145deg, var(--md-blue-600), var(--md-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -8px rgba(255, 148, 51, .6);
}
.hcount-chip.on b { text-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.hcount-chip.on i { color: var(--md-gold); }
.hcount-tip { font-size: 11.5px; color: var(--md-ink-soft); margin-top: 9px; line-height: 1.6; }
.hcount-tip::before { content: '♪ '; color: var(--md-gold); font-weight: 700; }

/* 同行伙伴姓名面板 */
.buddy-panel {
  margin: -2px 0 16px;
  padding: 12px 12px 4px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6));
  border: 1.5px dashed rgba(255, 148, 51, .3);
}
.buddy-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  font-size: 12.5px; font-weight: 800; color: var(--md-deep);
  margin: 0 2px 9px;
}
.buddy-title em { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--md-ink-soft); }
.buddy-list { display: grid; gap: 10px; }
.buddy-row { display: flex; align-items: center; gap: 10px; animation: buddy-in .24s ease both; }
.buddy-dot {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: rgba(92, 46, 3, .78);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .06);
}
.buddy-box { flex: 1; min-width: 0; }
@keyframes buddy-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.buddy-row:nth-child(2) { animation-delay: .05s; }
.buddy-row:nth-child(3) { animation-delay: .1s; }
.buddy-row:nth-child(4) { animation-delay: .15s; }
.buddy-row:nth-child(n+5) { animation-delay: .2s; }

/* 报名成功弹窗：同行成员行 */
.qr-mates {
  margin: 10px 6px 0; padding: 7px 10px;
  font-size: 12px; color: var(--md-deep); line-height: 1.7;
  background: rgba(255, 215, 0, .15);
  border: 1px dashed rgba(212, 169, 0, .55);
  border-radius: 10px;
}
.qr-mates b { color: var(--md-blue-600); }

@media (max-width: 560px) {
  .hcount-chip { min-width: 48px; max-width: none; padding: 9px 2px 8px; }
  .buddy-panel { padding: 11px 10px 4px; }
}
