/* ============================================================
   超能力者集结 · H5 样式表
   移动端优先，375px 基准
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --blue: #00CFFF;
  --orange: #FF6B1A;
  --gold: #FFD700;
  --red: #FF2251;
  --purple: #8A4FFF;
  --dark: #050A18;
  --dark2: #0A1428;
  --panel: rgba(0,207,255,0.07);
  --border: rgba(0,207,255,0.3);
  --text: rgba(255,255,255,0.85);
  --text-dim: rgba(255,255,255,0.45);
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
}

body {
  font-family: 'PingFang SC', 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  outline: none;
  border: none;
  font-family: inherit;
}

/* ===== 页面容器 ===== */
.page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--dark);
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-overflow-scrolling: touch;
}

.page.active {
  display: flex;
  transform: translateX(0);
}

.page.leaving {
  transform: translateX(-30%);
  opacity: 0.7;
  pointer-events: none;
}

/* ===== 公共背景元素 ===== */
.bg-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 35%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 10%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 65%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 78%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 20%, rgba(255,255,255,0.5) 0%, transparent 100%);
}

.bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 30%, rgba(0,80,180,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 20% 70%, rgba(0,30,120,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(30,0,100,0.2) 0%, transparent 70%);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,207,255,0.012) 3px,
    rgba(0,207,255,0.012) 4px
  );
}

/* ===== 公共组件 ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, #00FFC8 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6B1A, #FF2251);
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(255,107,26,0.45), 0 0 0 1px rgba(255,107,26,0.2);
  transition: all 0.2s;
  width: 100%;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  border-radius: inherit;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 12px rgba(255,107,26,0.4);
}

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,207,255,0.06);
  border: 1px solid rgba(0,207,255,0.35);
  border-radius: 50px;
  padding: 12px 24px;
  color: var(--blue);
  font-size: 14px;
  pointer-events: auto;
  letter-spacing: 1.5px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-ghost:active {
  background: rgba(0,207,255,0.12);
}

.btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD700, #FF8C4A);
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
  width: 100%;
  transition: all 0.2s;
}

.btn-gold:active { transform: scale(0.97); }

.btn-mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px dashed rgba(180,130,255,0.65);
  border-radius: 50px;
  padding: 16px 24px;
  color: #fff;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: mission-btn-glow 2.5s ease-in-out infinite;
  transition: all 0.3s;
}

.btn-mission .mission-btn-deco {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180,130,255,0.18), rgba(138,79,255,0.1), rgba(180,130,255,0.18));
  border-radius: inherit;
  pointer-events: none;
}

.btn-mission .mission-btn-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #d4b8ff;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.btn-mission .mission-btn-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #e0c3ff, #b388ff, #e0c3ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mission-text-shimmer 3s linear infinite;
  position: relative;
  z-index: 1;
}

.btn-mission:active {
  transform: scale(0.97);
  background: rgba(180,130,255,0.12);
}

@keyframes mission-btn-glow {
  0%, 100% { 
    box-shadow: 0 0 8px 2px rgba(180,130,255,0.2), inset 0 0 24px rgba(180,130,255,0.05);
    border-color: rgba(180,130,255,0.45);
  }
  50% { 
    box-shadow: 0 0 28px 4px rgba(180,130,255,0.4), inset 0 0 36px rgba(180,130,255,0.1);
    border-color: rgba(200,160,255,0.8);
  }
}

@keyframes mission-text-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.btn-full { width: 100%; }

.back-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== 粒子 ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle 4s ease-in-out infinite;
}

.p1 { width: 5px; height: 5px; background: var(--blue); top: 18%; left: 12%; animation-delay: 0s; box-shadow: 0 0 8px var(--blue); }
.p2 { width: 3px; height: 3px; background: var(--orange); top: 32%; right: 10%; animation-delay: 0.8s; box-shadow: 0 0 6px var(--orange); }
.p3 { width: 4px; height: 4px; background: var(--gold); top: 55%; left: 7%; animation-delay: 1.6s; box-shadow: 0 0 8px var(--gold); }
.p4 { width: 3px; height: 3px; background: var(--blue); top: 70%; right: 18%; animation-delay: 2.4s; box-shadow: 0 0 6px var(--blue); }
.p5 { width: 4px; height: 4px; background: var(--red); top: 12%; right: 22%; animation-delay: 1.2s; box-shadow: 0 0 8px var(--red); }
.p6 { width: 3px; height: 3px; background: var(--purple); top: 82%; left: 30%; animation-delay: 3s; box-shadow: 0 0 6px var(--purple); }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-16px) scale(1.4); opacity: 1; }
}


/* ============================================================
   PAGE 1: 首页
============================================================ */
#page-home {
  align-items: center;
  justify-content: flex-start;
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 100vh;
  position: fixed;
}

.top-badge {
  position: relative;
  z-index: 10;
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,207,255,0.1);
  border: 1px solid rgba(0,207,255,0.4);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--blue);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--blue);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 能量球 */
.orb-section {
  position: relative;
  z-index: 10;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.orb-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,207,255,0.4);
  animation: pulse-ring 2.4s linear infinite;
}

.r1 { width: 80px; height: 80px; animation-delay: 0s; }
.r2 { width: 110px; height: 110px; animation-delay: 0.6s; border-color: rgba(0,207,255,0.25); }
.r3 { width: 140px; height: 140px; animation-delay: 1.2s; border-color: rgba(0,207,255,0.12); }
.r4 { width: 170px; height: 170px; animation-delay: 1.8s; border-color: rgba(0,207,255,0.06); }

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

.orb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #B8F5FF, #00C8FF 40%, #0048CC 78%, #000828);
  box-shadow:
    0 0 30px 8px rgba(0,200,255,0.5),
    0 0 60px 20px rgba(0,100,255,0.25),
    inset 0 0 20px rgba(255,255,255,0.15);
  position: relative;
  z-index: 5;
  animation: orb-breathe 3s ease-in-out infinite;
}

.orb-inner {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), transparent 60%);
  border: 1px solid rgba(255,255,255,0.25);
}

.orb-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.15), transparent 70%);
  animation: orb-breathe 3s ease-in-out infinite reverse;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.orb-label {
  font-size: 10px;
  color: rgba(0,207,255,0.5);
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
}

/* 主内容 */
.home-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.main-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.title-line {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 8px;
  display: block;
  color: #fff;
  text-shadow: 0 0 30px rgba(0,207,255,0.4);
}

.title-line.gradient-text {
  font-size: 44px;
  letter-spacing: 12px;
  -webkit-text-fill-color: transparent;
}

.main-subtitle {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

.home-desc {
  margin-top: 16px;
  text-align: center;
}

.home-desc p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 2;
  letter-spacing: 0.5px;
}

.highlight {
  color: var(--orange);
  font-weight: 700;
}

/* 数据标签行 */
.stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 20px;
  background: rgba(0,207,255,0.05);
  border: 1px solid rgba(0,207,255,0.15);
  border-radius: 50px;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.stat-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  font-family: 'Orbitron', sans-serif;
}

.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(0,207,255,0.2);
}

/* 按钮 */
.home-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  padding-bottom: 32px;
  position: relative;
  z-index: 100;
}

.btn-icon {
  font-size: 18px;
}

.btn-arrow {
  font-size: 16px;
  opacity: 0.8;
}

.bottom-line {
  width: 48px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin: 8px auto 0;
}


/* ============================================================
   PAGE 2: 身份预选
============================================================ */
#page-preselect {
  padding-bottom: 32px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 52px 20px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(5,10,24,0.95) 0%, rgba(5,10,24,0.8) 100%);
  backdrop-filter: blur(8px);
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-tag {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.step-text {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
}

.page-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  padding-top: 8px;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1px;
}

.section-desc {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* 能力卡片 */
.ability-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ability-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(0,207,255,0.2);
  background: rgba(0,207,255,0.04);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: inherit;
}

.card-blue .card-glow { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,207,255,0.15), transparent); }
.card-orange .card-glow { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,107,26,0.15), transparent); }
.card-gold .card-glow { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,215,0,0.12), transparent); }

.ability-card.selected {
  box-shadow: 0 0 0 2px var(--blue), 0 4px 24px rgba(0,207,255,0.2);
  background: rgba(0,207,255,0.1);
}

.card-blue.selected { box-shadow: 0 0 0 2px var(--blue), 0 4px 24px rgba(0,207,255,0.2); }
.card-orange.selected { box-shadow: 0 0 0 2px var(--orange), 0 4px 24px rgba(255,107,26,0.2); border-color: var(--orange); background: rgba(255,107,26,0.08); }
.card-gold.selected { box-shadow: 0 0 0 2px var(--gold), 0 4px 24px rgba(255,215,0,0.15); border-color: var(--gold); background: rgba(255,215,0,0.06); }

.ability-card.selected .card-glow { opacity: 1; }

.card-icon {
  font-size: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0,207,255,0.4));
}

.card-info {
  flex: 1;
}

.card-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.card-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.card-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.card-tags span {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0,207,255,0.1);
  color: var(--blue);
  border: 1px solid rgba(0,207,255,0.2);
}

.card-orange .card-tags span { background: rgba(255,107,26,0.1); color: var(--orange); border-color: rgba(255,107,26,0.2); }
.card-gold .card-tags span { background: rgba(255,215,0,0.08); color: var(--gold); border-color: rgba(255,215,0,0.2); }

.card-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}

.ability-card.selected .card-check {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 8px var(--blue);
}

.card-orange.selected .card-check { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 8px var(--orange); }
.card-gold.selected .card-check { background: var(--gold); border-color: var(--gold); color: #000; box-shadow: 0 0 8px var(--gold); }

.hint-text {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
  padding: 0 16px;
}


/* ============================================================
   PAGE 3: 语音挑战
============================================================ */
#page-question {
  overflow: hidden;
}

.question-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 52px 20px 12px;
  position: relative;
  z-index: 30;
}

.progress-wrap {
  flex: 1;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}

.progress-current {
  color: var(--blue) !important;
  font-weight: 600;
}

.progress-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 3px;
  box-shadow: 0 0 8px var(--blue);
  transition: width 0.6s ease;
}

/* 角色剪影 */
.char-area {
  position: absolute;
  right: -10px;
  bottom: 200px;
  width: 130px;
  z-index: 5;
  pointer-events: none;
}

.char-body {
  position: relative;
}

.char-silhouette {
  width: 130px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-icon {
  font-size: 80px;
  filter: drop-shadow(0 0 12px rgba(0,207,255,0.3));
  opacity: 0.6;
}

/* 护甲点亮层 */
.armor-layer {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.8s ease;
  animation: armor-pulse 2s ease-in-out infinite;
}

.armor-layer.lit {
  opacity: 1;
}

.a-head { width: 40px; height: 30px; top: 10px; left: 45px; background: radial-gradient(circle, rgba(0,207,255,0.9), transparent); }
.a-shoulder { width: 80px; height: 20px; top: 40px; left: 25px; background: radial-gradient(circle, rgba(0,207,255,0.6), transparent); }
.a-chest { width: 55px; height: 40px; top: 60px; left: 37px; background: radial-gradient(circle, rgba(0,207,255,0.7), transparent); }
.a-badge { width: 20px; height: 15px; top: 72px; left: 55px; background: radial-gradient(circle, var(--gold), transparent); }
.a-arm { width: 30px; height: 50px; top: 55px; left: 10px; background: radial-gradient(circle, rgba(255,107,26,0.6), transparent); }
.a-legs { width: 60px; height: 40px; top: 120px; left: 35px; background: radial-gradient(circle, rgba(138,79,255,0.5), transparent); }

@keyframes armor-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 题目卡片 */
.q-card {
  position: relative;
  z-index: 20;
  margin: 0 16px;
  background: rgba(5, 15, 40, 0.92);
  border: 1px solid rgba(0,207,255,0.3);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 0 40px rgba(0,207,255,0.1), 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}

.q-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 1px;
}

.q-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.q-number {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 1.5px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.q-type {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0,207,255,0.1);
  border: 1px solid rgba(0,207,255,0.25);
  color: var(--blue);
  letter-spacing: 1px;
}

.q-text {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  font-weight: 500;
}

.q-scene {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0,207,255,0.05);
  border-radius: 10px;
  border-left: 2px solid var(--blue);
}

.q-scene p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.7;
}

.q-tips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(255,215,0,0.05);
  border-radius: 8px;
}

.tip-icon { font-size: 14px; }

.q-tips span:last-child {
  font-size: 11px;
  color: rgba(255,215,0,0.5);
  letter-spacing: 0.5px;
}

/* 录音区域 */
.record-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(5,10,24,0.95) 20%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 30;
}

/* 波形 */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.waveform.active {
  opacity: 1;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  transition: height 0.1s;
}

.waveform.active .wave-bar {
  animation: wave-animate 0.4s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.05s; }
.wave-bar:nth-child(3) { animation-delay: 0.1s; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; }
.wave-bar:nth-child(5) { animation-delay: 0.2s; }
.wave-bar:nth-child(6) { animation-delay: 0.15s; }
.wave-bar:nth-child(7) { animation-delay: 0.1s; }
.wave-bar:nth-child(8) { animation-delay: 0.05s; }
.wave-bar:nth-child(9) { animation-delay: 0.1s; }
.wave-bar:nth-child(10) { animation-delay: 0.15s; }
.wave-bar:nth-child(11) { animation-delay: 0.2s; }
.wave-bar:nth-child(12) { animation-delay: 0.25s; }

@keyframes wave-animate {
  from { height: 3px; }
  to { height: 24px; }
}

/* 录音按钮 */
.record-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8C50, #FF2251);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 24px rgba(255,107,26,0.6), 0 0 48px rgba(255,34,81,0.3);
  border: none;
  z-index: 2;
  transition: transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.record-btn.recording {
  transform: scale(1.12);
  box-shadow: 0 0 40px rgba(255,107,26,0.8), 0 0 80px rgba(255,34,81,0.5);
}

.record-btn.pressing {
  transform: scale(0.95);
  opacity: 0.8;
}

.record-pulse {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,107,26,0.4);
  pointer-events: none;
}

.r-pulse1 { width: 88px; height: 88px; animation: record-pulse 1.6s ease-out infinite; }
.r-pulse2 { width: 108px; height: 108px; animation: record-pulse 1.6s ease-out infinite 0.5s; }

@keyframes record-pulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.record-timer {
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
}

.record-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
}

.q-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.q-ctrl-btn {
  flex: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 8px 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.q-ctrl-next {
  color: var(--blue);
  border-color: rgba(0,207,255,0.3);
  background: rgba(0,207,255,0.06);
}

.q-ctrl-btn:not([style*="opacity:0.4"]):active {
  background: rgba(255,255,255,0.08);
}


/* ============================================================
   PAGE 4: AI 分析
============================================================ */
#page-analyzing {
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
}

.analyzing-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 60px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.analyzing-title {
  text-align: center;
}

.ai-chip {
  display: inline-block;
  background: rgba(0,207,255,0.1);
  border: 1px solid rgba(0,207,255,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.analyzing-title h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

/* 扫描仪 */
.scanner-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,207,255,0.3);
}

.sr1 { width: 160px; height: 160px; animation: scanner-rotate 4s linear infinite; border-top-color: var(--blue); box-shadow: 0 0 10px rgba(0,207,255,0.2); }
.sr2 { width: 120px; height: 120px; animation: scanner-rotate 3s linear infinite reverse; border-right-color: var(--orange); border-color: rgba(255,107,26,0.25); border-right-color: var(--orange); }
.sr3 { width: 80px; height: 80px; animation: scanner-rotate 2s linear infinite; border-bottom-color: var(--gold); border-color: rgba(255,215,0,0.2); border-bottom-color: var(--gold); }

@keyframes scanner-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scanner-radar {
  position: absolute;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 50%;
  left: 50%;
  transform-origin: top left;
  background: conic-gradient(rgba(0,207,255,0.4), transparent 90deg);
  animation: radar-sweep 2s linear infinite;
  border-radius: 0 0 100% 0;
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: radar-blink 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--orange);
}

.rd1 { top: 30%; left: 40%; animation-delay: 0.3s; }
.rd2 { top: 55%; right: 28%; animation-delay: 0.9s; background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.rd3 { bottom: 28%; left: 32%; animation-delay: 1.5s; background: var(--gold); box-shadow: 0 0 6px var(--gold); }

@keyframes radar-blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

.scanner-center {
  position: relative;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,207,255,0.1);
  border: 1px solid rgba(0,207,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(0,207,255,0.3);
}

/* 分析维度 */
.analysis-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.analysis-item.show {
  opacity: 1;
  transform: translateX(0);
}

.ai-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.ai-name {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  width: 64px;
  flex-shrink: 0;
}

.ai-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.ai-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.3, 1);
  box-shadow: 0 0 6px var(--blue);
}

.ai-value {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  width: 28px;
  text-align: right;
  font-family: 'Orbitron', sans-serif;
}

/* 关键词闪现 */
.keywords-flash {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.kw {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0,207,255,0.08);
  border: 1px solid rgba(0,207,255,0.2);
  color: var(--blue);
  opacity: 0;
  animation: kw-flash 0.4s ease-out forwards;
}

.kw:nth-child(1) { animation-delay: 0.5s; }
.kw:nth-child(2) { animation-delay: 0.8s; }
.kw:nth-child(3) { animation-delay: 1.1s; }
.kw:nth-child(4) { animation-delay: 1.4s; }
.kw:nth-child(5) { animation-delay: 1.7s; }
.kw:nth-child(6) { animation-delay: 2.0s; }

@keyframes kw-flash {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

.analyzing-status {
  font-size: 12px;
  color: rgba(0,207,255,0.5);
  letter-spacing: 2px;
  text-align: center;
  animation: status-cycle 1s ease-in-out infinite alternate;
}

@keyframes status-cycle {
  from { opacity: 0.4; }
  to { opacity: 1; }
}


/* ============================================================
   PAGE 5: 结果页
============================================================ */
#page-result {
  overflow-y: auto;
  align-items: stretch;
}

.result-burst {
  position: fixed;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50%;
  background: radial-gradient(ellipse 80% 50% at 50% 5%, rgba(255,200,0,0.2) 0%, rgba(255,100,0,0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.result-level-badge {
  position: relative;
  z-index: 10;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255,200,0,0.15), rgba(255,100,0,0.1));
  border: 1px solid rgba(255,200,0,0.4);
  border-radius: 30px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1.5px;
  width: fit-content;
  align-self: center;
}

.star {
  font-size: 12px;
  animation: star-twinkle 1.5s ease-in-out infinite alternate;
}

.star:last-child { animation-delay: 0.75s; }

@keyframes star-twinkle {
  from { opacity: 0.5; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.2); }
}

/* 角色展示 */
.result-hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.result-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,0,0.3), transparent 70%);
  animation: avatar-glow-pulse 2s ease-in-out infinite;
}

@keyframes avatar-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,200,0,0.5);
  box-shadow: 0 0 20px rgba(255,200,0,0.3);
  animation: ring-rotate 8s linear infinite;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-icon {
  font-size: 50px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(255,200,0,0.5));
}

.result-identity {
  text-align: center;
}

.result-rank {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 4px;
}

.result-class {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold), #FF8C4A, var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* 能力数值 */
.result-stats-wrap {
  position: relative;
  z-index: 10;
  margin: 20px 20px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sn {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  width: 44px;
  flex-shrink: 0;
}

.st {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 5px;
  overflow: hidden;
}

.sf {
  height: 100%;
  border-radius: 5px;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
  width: 0;
}

#sf-1 { background: linear-gradient(90deg, var(--gold), var(--orange)); box-shadow: 0 0 6px var(--gold); }
#sf-2 { background: linear-gradient(90deg, var(--blue), #0080FF); box-shadow: 0 0 6px var(--blue); }
#sf-3 { background: linear-gradient(90deg, var(--purple), #4020C0); box-shadow: 0 0 6px var(--purple); }
#sf-4 { background: linear-gradient(90deg, #FF4088, var(--red)); box-shadow: 0 0 6px var(--red); }

.sv {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  width: 26px;
  text-align: right;
  flex-shrink: 0;
  font-family: 'Orbitron', sans-serif;
}

/* 结果描述 */
.result-desc-card {
  position: relative;
  z-index: 10;
  margin: 12px 20px 0;
  background: rgba(255,180,0,0.06);
  border: 1px solid rgba(255,180,0,0.2);
  border-radius: 14px;
  padding: 14px 16px;
}

.desc-label {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-family: 'Orbitron', sans-serif;
}

.result-desc-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* 短板提醒 */
.result-weakness {
  position: relative;
  z-index: 10;
  margin: 10px 20px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(0,207,255,0.04);
  border: 1px solid rgba(0,207,255,0.12);
  border-radius: 12px;
}

.weakness-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.result-weakness p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* 行动按钮 */
.result-actions {
  position: relative;
  z-index: 10;
  margin: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-share {
  font-size: 13px;
  color: rgba(255,255,255,0.4) !important;
  border-color: rgba(255,255,255,0.1) !important;
  background: transparent !important;
}

.btn-back-home {
  font-size: 13px;
  color: rgba(255,255,255,0.35) !important;
  border-color: rgba(255,255,255,0.08) !important;
  background: transparent !important;
}

.btn-mission-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(138,79,255,0.15), rgba(60,0,200,0.1));
  border: 1px solid rgba(138,79,255,0.4);
  border-radius: 50px;
  padding: 12px 24px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  animation: mission-entry-pulse 2s ease-in-out infinite;
}

.btn-mission-entry:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(138,79,255,0.25), rgba(60,0,200,0.15));
}

@keyframes mission-entry-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138,79,255,0.3); }
  50% { box-shadow: 0 0 16px 4px rgba(138,79,255,0.2); }
}

/* 结果页安全区适配 */
@supports (padding: max(0px)) {
  .result-level-badge { margin-top: max(16px, env(safe-area-inset-top)); }
}


/* ============================================================
   PAGE 6: 主理人任务
============================================================ */
#page-mission {
  overflow-y: auto;
}

.mission-wrap {
  position: relative;
  z-index: 10;
  padding-bottom: 48px;
}

.mission-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 52px 20px 16px;
}

.mission-title-wrap {
  flex: 1;
}

.mission-chip {
  display: inline-block;
  background: rgba(138,79,255,0.15);
  border: 1px solid rgba(138,79,255,0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 1.5px;
}

.mission-status {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mission-orb-wrap {
  position: relative;
}

.mission-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(138,79,255,0.9), rgba(60,0,200,0.7) 60%, rgba(20,0,80,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  box-shadow: 0 0 30px rgba(138,79,255,0.4), 0 0 60px rgba(138,79,255,0.2);
}

.mission-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(138,79,255,0.4);
  animation: pulse-ring 2.4s linear infinite;
}

.mr1 { width: 110px; height: 110px; animation-delay: 0s; }
.mr2 { width: 135px; height: 135px; animation-delay: 0.8s; border-color: rgba(138,79,255,0.2); }

.mission-orb-icon { font-size: 36px; position: relative; z-index: 1; }

.mission-main-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 1px;
}

.mission-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.7;
  padding: 0 24px;
}

/* 进度 */
.mission-progress-section {
  margin: 0 20px 20px;
  background: rgba(138,79,255,0.06);
  border: 1px solid rgba(138,79,255,0.2);
  border-radius: 16px;
  padding: 16px;
}

.mission-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.mission-count {
  color: var(--purple) !important;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.mission-progress-track {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mission-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 8px;
  box-shadow: 0 0 10px var(--purple);
  transition: width 0.8s ease;
}

.mission-nodes {
  display: flex;
  justify-content: space-around;
}

.mission-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.4s;
}

.mission-node.active .node-dot {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.mission-node span {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

.mission-node.active span {
  color: var(--purple);
}

/* 任务说明 */
.mission-desc-card {
  margin: 0 20px 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,107,26,0.06), rgba(138,79,255,0.06), rgba(0,207,255,0.04));
  border: 1px solid rgba(255,180,80,0.2);
  border-radius: 14px;
}

.desc-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,200,120,0.85);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.mission-desc-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 6px;
}

.mission-desc-card p:last-of-type { margin-bottom: 12px; }

.mission-desc-card strong {
  color: #ffb347;
  font-weight: 700;
}

.benefits-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,200,120,0.9);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.mission-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.benefit-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefit-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.benefit-text strong {
  background: linear-gradient(90deg, #ffb347, #ff6b1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.highlight-income {
  background: linear-gradient(90deg, #ffd700, #ff6b1a, #ff2251) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 800 !important;
  font-size: 14px;
}

/* 行动按钮 */
.mission-actions {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mission-bottom-btns {
  display: flex;
  gap: 10px;
}

.btn-sm-ghost {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 10px;
  background: transparent;
  cursor: pointer;
  text-align: center;
}


/* ============================================================
   PAGE 7: 留资
============================================================ */
#page-lead {
  overflow-y: auto;
}

.lead-wrap {
  position: relative;
  z-index: 10;
  padding: 0 20px 48px;
}

.lead-header {
  padding: 52px 0 12px;
}

.lead-top {
  text-align: center;
  margin-bottom: 24px;
}

.lead-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.lead-top h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.lead-top p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder { color: rgba(255,255,255,0.25); }

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(0,207,255,0.5);
  background: rgba(0,207,255,0.05);
}

.form-group select option { background: #0A1428; color: #fff; }

.direction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dir-chip {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.dir-chip.selected {
  background: rgba(0,207,255,0.12);
  border-color: rgba(0,207,255,0.4);
  color: var(--blue);
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.radio-item input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  background: transparent;
  border: none;
  padding: 0;
}

/* 企微二维码区域（礼包领取成功弹窗） */
.lead-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.lead-qr-box {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,207,255,0.25);
  background: #fff;
  padding: 6px;
}

.lead-qr-hint {
  font-size: 12px !important;
  color: var(--blue) !important;
  letter-spacing: 0.5px;
}

/* 主理人任务完成 - 企微区域 */
.mission-completed-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 16px 20px 0;
  padding: 18px 16px;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 16px;
}

.mission-completed-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  text-align: center;
}

.mission-completed-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.7;
}

.mission-qr-box {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,215,0,0.3);
  background: #fff;
  padding: 5px;
}

.mission-qr-hint {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-align: center;
}


/* ============================================================
   弹窗
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.modal-overlay.open {
  display: flex;
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #0C1530;
  border: 1px solid rgba(0,207,255,0.2);
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: card-up 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 88vh;
  overflow-y: auto;
}

@keyframes card-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 4px;
}

.modal-card h3 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.modal-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.7;
}

.modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.share-link-box {
  background: rgba(0,207,255,0.08);
  border: 1px dashed rgba(0,207,255,0.35);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--blue);
  text-align: center;
  width: 100%;
  cursor: pointer;
}

/* 海报弹窗 */
.poster-modal-card {
  align-items: stretch;
}

.poster-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.poster-bg {
  background: linear-gradient(180deg, #040C1E 0%, #0A1830 50%, #060810 100%);
  border: 1px solid rgba(0,207,255,0.3);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.poster-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.poster-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom, transparent 0px, transparent 3px, rgba(0,207,255,0.01) 3px, rgba(0,207,255,0.01) 4px
  );
  pointer-events: none;
}

.poster-top-badge {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--blue);
  padding: 4px 12px;
  background: rgba(0,207,255,0.1);
  border: 1px solid rgba(0,207,255,0.3);
  border-radius: 20px;
}

.poster-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,220,50,0.9), rgba(255,120,0,0.7) 50%, rgba(80,0,0,0.5) 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  box-shadow: 0 0 30px rgba(255,180,0,0.4);
}

.poster-orb-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,200,0,0.4);
  box-shadow: 0 0 12px rgba(255,200,0,0.2);
}

.poster-identity {
  text-align: center;
}

.poster-rank {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.poster-class {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #FF8C4A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.poster-stats {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.ps-row span:first-child { color: rgba(255,255,255,0.4); }
.ps-row span:last-child { color: var(--gold); font-weight: 700; }

.poster-cta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  width: 100%;
  text-align: center;
}

.poster-bottom {
  font-size: 10px;
  color: rgba(0,207,255,0.4);
  letter-spacing: 1px;
}

.poster-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}

.poster-bottom-text {
  font-size: 10px;
  color: rgba(0,207,255,0.4);
  letter-spacing: 1px;
  line-height: 1.6;
  flex: 1;
}

.poster-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.poster-qr-img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: #fff;
  padding: 2px;
}

.poster-qr-label {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
}

.poster-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.poster-actions .btn-primary {
  flex: 2;
}

.poster-actions .btn-ghost {
  flex: 1;
}


/* ============================================================
   Toast 提示
============================================================ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 500;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   过渡动效
============================================================ */
.page-enter {
  animation: page-enter 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes page-enter {
  from { transform: translateX(100%); opacity: 0.8; }
  to { transform: translateX(0); opacity: 1; }
}


/* ============================================================
   滚动条美化
============================================================ */
::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================================
   安全区适配
============================================================ */
@supports (padding: max(0px)) {
  .home-btns { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
