/* ============================================
   驾考冲冲冲 - 全新设计系统
   配色：黄黑撞色 + 缤纷点缀
   风格：3D 立体感 + 闲鱼式趣味
   ============================================ */

:root {
  /* 主色 - 黄 */
  --yellow: #FFD60A;
  --yellow-light: #FFE66D;
  --yellow-deep: #FFB800;
  --yellow-glow: #FFC93C;

  /* 主色 - 黑 */
  --black: #1A1A1A;
  --black-soft: #2D2D2D;
  --gray-1: #404040;
  --gray-2: #6B6B6B;
  --gray-3: #9A9A9A;
  --gray-4: #D4D4D4;
  --gray-5: #E8E8E8;
  --gray-6: #F4F4F4;
  --white: #FFFFFF;
  --cream: #FFFBF0;

  /* 点缀色 - 缤纷 */
  --orange: #FF6B35;
  --mint: #4ECDC4;
  --pink: #FF8FA3;
  --purple: #B388FF;
  --blue: #5BA3F5;
  --blue-deep: #2E5BFF;
  --red: #FF4757;
  --green: #2ED573;

  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.16);
  --shadow-yellow: 0 8px 24px rgba(255, 214, 10, 0.4);
  --shadow-black: 0 8px 24px rgba(26, 26, 26, 0.3);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

#app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 10% 0%, #FFE66D 0%, transparent 35%),
    radial-gradient(circle at 90% 30%, #FFD60A 0%, transparent 30%),
    linear-gradient(180deg, #FFFBF0 0%, #FFF5DC 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* 全局装饰元素 - 星星、气泡 */
#app::before, #app::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
#app::before {
  top: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
#app::after {
  top: 300px;
  left: 10px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(91, 163, 245, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* ===== 屏幕切换 ===== */
.screen {
  display: none;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  animation: screenIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.screen.active { display: block; }

@keyframes screenIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== 云同步状态指示器 ===== */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px 4px 8px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  letter-spacing: 0.3px;
  width: fit-content;
  transition: all 0.3s ease;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
  display: inline-block;
}
.sync-pending {
  background: #FFD60A;
  animation: sync-pulse 1.2s ease-in-out infinite;
}
.sync-success {
  background: #4ADE80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}
.sync-fail {
  background: #FF6B6B;
}
@keyframes sync-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* 迁移进度小按钮（云同步条里） */
.sync-migrate-btn {
  border: none;
  background: rgba(255, 214, 10, 0.25);
  color: var(--yellow);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 4px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sync-migrate-btn:hover {
  background: var(--yellow);
  color: var(--black);
  transform: scale(1.15);
}
.sync-migrate-btn:active {
  transform: scale(0.92);
}

/* 迁移进度对话框 */
.migrate-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.migrate-modal {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--black);
  max-width: 380px;
  width: 100%;
  overflow: hidden;
}
.migrate-modal-header {
  background: var(--yellow);
  padding: 14px 18px;
  border-bottom: 3px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.migrate-modal-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
}
.migrate-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  color: var(--black);
  padding: 0 4px;
}
.migrate-tabs {
  display: flex;
  border-bottom: 2px solid var(--black);
}
.migrate-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-3);
  background: var(--bg-yellow-soft);
  cursor: pointer;
  border: none;
  border-right: 2px solid var(--black);
  transition: all 0.15s ease;
}
.migrate-tab:last-child { border-right: none; }
.migrate-tab.active {
  background: var(--white);
  color: var(--black);
  position: relative;
}
.migrate-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
}
.migrate-panel {
  padding: 18px;
}
.migrate-panel[hidden] { display: none; }
.migrate-desc {
  font-size: 12px;
  color: var(--gray-3);
  line-height: 1.6;
  margin-bottom: 12px;
}
.migrate-textarea {
  width: 100%;
  min-height: 110px;
  max-height: 180px;
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  padding: 10px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
  background: #fafafa;
  word-break: break-all;
  box-sizing: border-box;
}
.migrate-textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.3);
}
.migrate-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.migrate-btn {
  flex: 1;
  padding: 11px;
  border: 2.5px solid var(--black);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.migrate-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--black);
}
.migrate-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}
.migrate-btn-secondary {
  background: var(--white);
  color: var(--black);
}
.migrate-code-info {
  font-size: 11px;
  color: var(--gray-3);
  margin-top: 6px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== 顶部栏（IP形象+欢迎区） ===== */
.topbar {
  background: var(--black);
  color: var(--white);
  margin: 0 -16px 20px;
  padding: 20px 16px 24px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.topbar::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 60%);
  opacity: 0.2;
  pointer-events: none;
}

/* 顶部栏 - 装饰小元素 */
.topbar-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.topbar-deco-1 { top: 15px; right: 80px; font-size: 18px; animation: twinkle 2s ease-in-out infinite; }
.topbar-deco-2 { top: 50px; right: 30px; font-size: 14px; animation: twinkle 2.5s ease-in-out 0.3s infinite; }
.topbar-deco-3 { bottom: 30px; left: 40px; font-size: 12px; animation: twinkle 1.8s ease-in-out 0.5s infinite; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.topbar-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-title::before {
  content: '🚗';
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(255, 214, 10, 0.5));
}

.topbar-subtitle {
  font-size: 12px;
  color: var(--yellow);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.topbar-chips {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 214, 10, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(10px);
}
.chip-streak .chip-day {
  background: var(--yellow);
  color: var(--black);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}
.chip-coin {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 进度条 */
.progress-bar {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow-light) 0%, var(--yellow) 50%, var(--orange) 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.6);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-text {
  text-align: right;
}
.progress-percent {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.progress-detail {
  font-size: 10px;
  color: var(--gray-3);
  margin-top: 2px;
}

/* ===== 欢迎条 + IP形象 ===== */

/* ===== 断点续答横幅 ===== */
.resume-banner {
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  box-shadow: 3px 3px 0 var(--black);
  padding: 14px 16px;
  margin-bottom: 16px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: slideIn 0.4s ease;
}
.resume-banner .resume-info { flex: 1; }
.resume-banner .resume-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
}
.resume-banner .resume-desc {
  font-size: 12px;
  color: var(--gray-2);
  margin-top: 2px;
}
.resume-banner .resume-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.resume-btn-continue {
  background: var(--black);
  color: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.resume-btn-continue:active { transform: translate(2px, 2px); }
.resume-btn-cancel {
  background: transparent;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  line-height: 1;
}
.resume-btn-cancel:active { transform: scale(0.9); }

.welcome-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8DC 100%);
  border-radius: var(--radius-xl);
  padding: 18px 20px 18px 18px;
  margin-bottom: 24px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: visible;
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--black),
    24px 8px 0 -1px #FF6B35,
    24px 8px 0 1px var(--black);
}

.welcome-text {
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.welcome-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}

.welcome-sub {
  font-size: 12px;
  color: var(--gray-2);
  line-height: 1.4;
}

.welcome-mascot {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: -22px;
  margin-right: -4px;
  margin-bottom: -14px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* ===== IP形象容器（图片版） ===== */
.mascot-wrap {
  position: relative;
  display: inline-block;
  animation: mascotFloat 3s ease-in-out infinite;
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.5s ease;
}

.mascot-shadow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: shadowPulse 2.5s ease-in-out infinite;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(0.8); opacity: 0.4; }
}

/* 状态特定样式（每张图姿态已经不同，叠加轻量 transform + 滤镜） */
.mascot-default .mascot-img {
  transform: scale(1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}
.mascot-happy .mascot-img {
  transform: scale(1.02) rotate(-1deg);
  filter: brightness(1.05) saturate(1.1) drop-shadow(0 6px 12px rgba(255, 193, 7, 0.25));
}
.mascot-cheer .mascot-img {
  transform: scale(1.06) rotate(-2deg);
  filter: brightness(1.08) saturate(1.2) drop-shadow(0 10px 18px rgba(255, 107, 53, 0.35));
}
.mascot-thinking .mascot-img {
  transform: scale(0.95) rotate(-2deg);
  filter: brightness(0.98) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}
.mascot-oops .mascot-img {
  transform: scale(0.95) rotate(2deg);
  filter: saturate(0.92) brightness(0.98) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}
.mascot-sleep .mascot-img {
  transform: scale(0.92) rotate(3deg);
  filter: brightness(0.92) saturate(0.95) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
.mascot-proud .mascot-img {
  transform: scale(1.04) rotate(-1deg);
  filter: contrast(1.05) saturate(1.15) drop-shadow(0 8px 16px rgba(255, 215, 10, 0.4));
}

/* 状态特定动画 */
.mascot-default .mascot-img {
  animation: idleBreath 3s ease-in-out infinite;
}
@keyframes idleBreath {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.02) translateY(-2px); }
}

.mascot-happy .mascot-img {
  animation: happyBounce 0.8s ease-in-out;
}
@keyframes happyBounce {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.08) rotate(-3deg); }
  60% { transform: scale(0.98) rotate(1deg); }
  100% { transform: scale(1.02) rotate(-1deg); }
}

.mascot-cheer .mascot-img {
  animation: cheerJump 0.8s ease-in-out;
}
@keyframes cheerJump {
  0% { transform: scale(1) translateY(0) rotate(0); }
  25% { transform: scale(1.04) translateY(-12px) rotate(-3deg); }
  50% { transform: scale(1.1) translateY(-18px) rotate(0deg); }
  75% { transform: scale(1.04) translateY(-8px) rotate(3deg); }
  100% { transform: scale(1.06) translateY(0) rotate(-2deg); }
}

.mascot-thinking .mascot-img {
  animation: thinkingTilt 2s ease-in-out infinite;
}
@keyframes thinkingTilt {
  0%, 100% { transform: rotate(-2deg) scale(0.95); }
  50% { transform: rotate(-5deg) scale(0.97); }
}

.mascot-oops .mascot-img {
  animation: oopsShake 0.6s ease-in-out;
}
@keyframes oopsShake {
  0%, 100% { transform: rotate(2deg) scale(0.95); }
  20% { transform: rotate(-2deg) scale(0.95); }
  40% { transform: rotate(4deg) scale(0.95); }
  60% { transform: rotate(-1deg) scale(0.95); }
  80% { transform: rotate(3deg) scale(0.95); }
}

.mascot-sleep .mascot-img {
  animation: sleepFloat 3s ease-in-out infinite;
}
@keyframes sleepFloat {
  0%, 100% { transform: rotate(3deg) scale(0.92) translateY(0); }
  50% { transform: rotate(5deg) scale(0.92) translateY(-3px); }
}

.mascot-proud .mascot-img {
  animation: proudPose 1s ease-in-out;
}
@keyframes proudPose {
  0% { transform: scale(1); }
  50% { transform: scale(1.12) rotate(-3deg); }
  100% { transform: scale(1.04) rotate(-1deg); }
}

/* 表情气泡 */
.mascot-bubble {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 24px;
  z-index: 3;
  animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
             bubbleWiggle 1.5s ease-in-out infinite 0.5s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bubblePop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bubbleWiggle {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.1); }
}

/* 装饰光点 */
.mascot-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.mascot-sparkles::before,
.mascot-sparkles::after {
  content: '✦';
  position: absolute;
  color: var(--yellow);
  font-size: 14px;
  font-weight: bold;
  animation: sparkle 1.5s ease-in-out infinite;
}
.mascot-sparkles::before {
  top: 5%;
  left: -10%;
  animation-delay: 0s;
}
.mascot-sparkles::after {
  bottom: 15%;
  right: -8%;
  animation-delay: 0.7s;
  color: #FF6B35;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* cheer 状态显示更多光点 */
.mascot-cheer .mascot-sparkles::before { color: #FF6B35; }
.mascot-cheer .mascot-sparkles::after { color: #FFD60A; }

/* IP 形象容器 - 答题页 */
.quiz-mascot {
  position: fixed;
  bottom: 70px;
  right: 12px;
  width: 100px;
  height: 100px;
  z-index: 50;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s;
}
.quiz-mascot:active {
  transform: scale(0.95);
}

/* ===== 章节标题 ===== */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 14px;
  position: relative;
  min-height: 30px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 4px;
}
.section-title h2::before {
  content: '';
  width: 5px;
  height: 20px;
  background: var(--yellow);
  border-radius: 3px;
  box-shadow: 2px 2px 0 var(--black);
  flex-shrink: 0;
}
.section-title h2::after {
  content: none;
}
.section-title span {
  font-size: 11px;
  color: var(--gray-2);
  font-weight: 700;
  background: var(--white);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--black);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

/* ===== 模块卡（闯关地图） ===== */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.module-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2.5px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 214, 10, 0.1) 100%);
  pointer-events: none;
}

.module-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.module-card.locked {
  background: var(--gray-6);
  border-color: var(--gray-3);
  box-shadow: 4px 4px 0 var(--gray-3);
  cursor: not-allowed;
  opacity: 0.92;
}
.module-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 10px;
  right: 36px;
  font-size: 14px;
  z-index: 2;
  filter: grayscale(1);
}

.module-card.completed {
  background: linear-gradient(135deg, #FFF8DC 0%, #FFE66D 100%);
  border-color: var(--black);
  box-shadow: 4px 4px 0 var(--black);
}
.module-card.completed::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--black);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  z-index: 2;
}

.module-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  flex-shrink: 0;
  position: relative;
  border: 2.5px solid var(--black);
  box-shadow: 2px 2px 0 var(--black);
}
.module-card.locked .module-num {
  background: var(--gray-5);
  color: var(--gray-3);
  box-shadow: 2px 2px 0 var(--gray-3);
  border-color: var(--gray-3);
}

.module-info {
  flex: 1;
  min-width: 0;
}
.module-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.module-name-emoji {
  font-size: 16px;
}
.module-desc {
  font-size: 11px;
  color: var(--gray-2);
  margin-bottom: 6px;
  line-height: 1.4;
}
.module-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.module-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-6);
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid var(--black);
}
.module-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.module-card.locked .module-bar { background: var(--gray-5); border-color: var(--gray-3); }
.module-card.locked .module-bar-fill { background: var(--gray-3); }
.module-text {
  font-size: 10px;
  color: var(--gray-2);
  font-weight: 700;
  white-space: nowrap;
}

.module-arrow {
  font-size: 18px;
  color: var(--black);
  flex-shrink: 0;
  font-weight: 900;
}
.module-card.locked .module-arrow { color: var(--gray-3); }

/* ===== 功能卡（错题本/每日挑战/模拟考） ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 2.5px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
}

.feature-card:nth-child(1) { background: linear-gradient(135deg, #FF8FA3 0%, #FFB3C1 100%); }
.feature-card:nth-child(2) { background: linear-gradient(135deg, #4ECDC4 0%, #7EE0D8 100%); }
.feature-card:nth-child(3) { background: linear-gradient(135deg, #B388FF 0%, #C9A8FF 100%); }

.feature-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.feature-card.locked { opacity: 0.6; cursor: not-allowed; }

.feature-icon {
  font-size: 32px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  display: inline-block;
  animation: floatY 2.5s ease-in-out infinite;
}
.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.6s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.feature-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 2px;
}
.feature-sub {
  font-size: 10px;
  color: var(--black);
  opacity: 0.7;
  font-weight: 600;
}

/* ===== 答题页 ===== */
#screen-quiz { padding: 0; }
#screen-wrong, #screen-daily, #screen-mock { padding: 0 16px; }

.quiz-header {
  background: var(--black);
  padding: 14px 16px 16px;
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.quiz-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 60%);
  opacity: 0.2;
  border-radius: 50%;
  pointer-events: none;
}

.quiz-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.quiz-back {
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.quiz-back:active { background: rgba(255, 255, 255, 0.15); }

.quiz-title {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

.quiz-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255, 214, 10, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--yellow);
}

.quiz-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow-light) 0%, var(--yellow) 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.6);
}

.quiz-body {
  padding: 20px 16px 100px;
  position: relative;
}

/* 题目卡 */
.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 16px;
  border: 2.5px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  position: relative;
  animation: questionIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes questionIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.question-type {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--black);
  letter-spacing: 0.3px;
  word-wrap: break-word;
  word-break: normal;
  overflow-wrap: break-word;
}

/* 交通标志配图区（真实SVG图片） */
.question-image {
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
}
.question-image img {
  width: 130px;
  height: 130px;
  background: var(--white);
  border: 2.5px solid var(--black);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0 var(--yellow);
  padding: 10px;
  object-fit: contain;
  display: block;
}

/* 选项 */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  background: var(--white);
  border: 2.5px solid var(--black);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  box-shadow: 3px 3px 0 var(--black);
}

.option:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--black); }

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.option-text { flex: 1; }

.option.selected {
  background: var(--yellow-light);
  border-color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
}

.option.correct {
  background: linear-gradient(135deg, #C8FFD0 0%, #95E1A8 100%);
  border-color: var(--green);
  box-shadow: 3px 3px 0 var(--green);
  animation: correctPulse 0.5s ease;
}
.option.correct .option-letter { background: var(--green); color: var(--white); }
.option.correct::after {
  content: '✓';
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

@keyframes correctPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.option.wrong {
  background: linear-gradient(135deg, #FFD0D0 0%, #FF9999 100%);
  border-color: var(--red);
  box-shadow: 3px 3px 0 var(--red);
  animation: wrongShake 0.4s ease;
}
.option.wrong .option-letter { background: var(--red); color: var(--white); }
.option.wrong::after {
  content: '✗';
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* 判断题特殊样式 */
.options.judge {
  flex-direction: row;
}
.options.judge .option {
  flex: 1;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.options.judge .option-letter { display: none; }
.options.judge .option-text::before {
  font-size: 20px;
  margin-right: 6px;
}
.options.judge .option[data-value="true"] .option-text::before { content: '✓'; color: var(--green); }
.options.judge .option[data-value="false"] .option-text::before { content: '✗'; color: var(--red); }

/* 解析卡 */
.explanation {
  background: linear-gradient(135deg, #FFF8DC 0%, #FFE66D 100%);
  border: 2.5px solid var(--black);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 3px 3px 0 var(--black);
  animation: expIn 0.4s ease;
}
@keyframes expIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.explanation-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.explanation-title::before {
  content: '💡';
  font-size: 14px;
}
.explanation.wrong-exp {
  background: linear-gradient(135deg, #FFE0E0 0%, #FFB3B3 100%);
}

/* 答题底部 */
.quiz-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: 12px 16px;
  border-top: 2.5px solid var(--black);
  display: flex;
  gap: 10px;
  z-index: 20;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== 按钮 ===== */
.btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  border: 2.5px solid var(--black);
  position: relative;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}
.btn-primary:disabled {
  background: var(--gray-5);
  color: var(--gray-3);
  border-color: var(--gray-3);
  box-shadow: 2px 2px 0 var(--gray-3);
  cursor: not-allowed;
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
}
.btn-outline:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.btn-black {
  background: var(--black);
  color: var(--yellow);
  box-shadow: 3px 3px 0 var(--yellow);
}
.btn-black:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--yellow);
}

.btn-block { width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 16px; }

/* ===== 结果页 ===== */
.result-body {
  padding: 20px 16px 40px;
  text-align: center;
}

.result-mascot-wrap {
  width: 140px;
  height: 168px;
  margin: 0 auto 16px;
  position: relative;
}

.result-emoji {
  font-size: 60px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  animation: emojiIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes emojiIn {
  0% { opacity: 0; transform: scale(0.3) rotate(-20deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.result-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.result-subtitle {
  font-size: 14px;
  color: var(--gray-2);
  margin-bottom: 24px;
  font-weight: 600;
}

/* 结果卡 - 成绩 */
.score-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 2.5px solid var(--black);
  box-shadow: 6px 6px 0 var(--yellow);
}

.score-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 60%);
  opacity: 0.2;
}

.score-num {
  font-size: 64px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  text-shadow: 4px 4px 0 rgba(255, 107, 53, 0.3);
}
.score-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-3);
  position: relative;
  z-index: 1;
}
.score-detail {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(255, 214, 10, 0.3);
  position: relative;
  z-index: 1;
}
.score-item {
  text-align: center;
}
.score-item-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--yellow);
}
.score-item-val.correct { color: var(--green); }
.score-item-val.wrong { color: var(--red); }
.score-item-lbl {
  font-size: 11px;
  color: var(--gray-3);
  margin-top: 2px;
  font-weight: 600;
}

.celebrate-coin {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 20px;
  border: 2.5px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  animation: coinPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes coinPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ===== 错题本 / 列表 ===== */
.list-item {
  background: var(--white);
  border: 2.5px solid var(--black);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 var(--black);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.list-item:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.list-item-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 8px;
}

.list-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray-2);
}
.list-item-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
  background: var(--gray-5);
  color: var(--black);
}

/* ===== 每日挑战 / 模拟考 开始卡 ===== */
.start-card {
  background: var(--white);
  border: 2.5px solid var(--black);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--black);
  position: relative;
  overflow: hidden;
}

.start-card-icon {
  font-size: 48px;
  margin-bottom: 8px;
  display: inline-block;
  animation: floatY 2.5s ease-in-out infinite;
}

.start-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.start-card-desc {
  font-size: 12px;
  color: var(--gray-2);
  margin-bottom: 16px;
  line-height: 1.5;
}

.start-card-stats {
  display: flex;
  justify-content: space-around;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1.5px dashed var(--gray-4);
  border-bottom: 1.5px dashed var(--gray-4);
}

.start-stat {
  text-align: center;
}
.start-stat-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
}
.start-stat-val.accent { color: var(--orange); }
.start-stat-lbl {
  font-size: 10px;
  color: var(--gray-2);
  margin-top: 2px;
  font-weight: 600;
}

/* 每日挑战 - 渐变背景 */
.daily-start {
  background: linear-gradient(135deg, #4ECDC4 0%, #FFE66D 100%);
}
.daily-start .start-card-title { color: var(--black); }

.mock-start {
  background: linear-gradient(135deg, #B388FF 0%, #FF8FA3 100%);
}

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--black);
  border-top: 2.5px solid var(--black);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 30;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.nav-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 2px;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.3s;
}
.nav-label {
  font-size: 10px;
  color: var(--gray-3);
  font-weight: 700;
  transition: color 0.3s;
}

.nav-item.active .nav-icon {
  filter: none;
  transform: translateY(-3px) scale(1.15);
}
.nav-item.active .nav-label { color: var(--yellow); }
.nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 0 0 3px 3px;
}

.nav-item:active { transform: scale(0.95); }

/* ===== 提示弹窗 ===== */
.unlock-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--black);
  color: var(--white);
  padding: 20px 30px;
  border-radius: var(--radius-lg);
  z-index: 100;
  text-align: center;
  border: 3px solid var(--yellow);
  box-shadow: 0 0 40px rgba(255, 214, 10, 0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.unlock-toast.show {
  transform: translate(-50%, -50%) scale(1);
}
.unlock-toast-icon {
  font-size: 40px;
  margin-bottom: 8px;
  animation: emojiIn 0.5s ease;
}
.unlock-toast-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 4px;
}
.unlock-toast-sub {
  font-size: 12px;
  color: var(--gray-3);
}

/* 庆祝彩带 */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 14px;
  pointer-events: none;
  z-index: 99;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 60px;
  margin-bottom: 12px;
  opacity: 0.6;
  animation: floatY 2.5s ease-in-out infinite;
}

.empty-text {
  font-size: 14px;
  color: var(--gray-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.empty-sub {
  font-size: 12px;
  color: var(--gray-3);
  margin-bottom: 16px;
}

/* ===== 庆祝大弹窗（通关） ===== */
.celebrate-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.celebrate-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.celebrate-content {
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 8px 8px 0 var(--black);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.celebrate-mascot {
  width: 140px;
  height: 168px;
  margin: 0 auto 8px;
}

.celebrate-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 4px;
}

.celebrate-sub {
  font-size: 13px;
  color: var(--black);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ===== 答题页 - 类型徽章颜色 ===== */
.question-type.choice { background: var(--blue); color: var(--white); }
.question-type.judge { background: var(--purple); color: var(--white); }

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* ===== 装饰元素 ===== */
.deco-star {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-size: 18px;
  animation: floatY 3s ease-in-out infinite;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: var(--yellow);
  opacity: 0.15;
}

.deco-dots {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 30px;
  height: 8px;
  background-image: radial-gradient(circle, var(--black) 2px, transparent 2px);
  background-size: 8px 8px;
  background-repeat: repeat-x;
}

/* ===== 响应式 ===== */
@media (max-width: 360px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .feature-card { padding: 12px 8px; }
  .feature-icon { font-size: 24px; }
  .feature-name { font-size: 12px; }
  .feature-sub { font-size: 9px; }
  .topbar-title { font-size: 20px; }
  .question-text { font-size: 15px; }
}
