/* ===== 趣味答题通用页面样式 ===== */
.quiz-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}

.quiz-top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(180deg, var(--gc-background) 0%, var(--gc-background) 85%, transparent 100%);
}
.quiz-top-bar .icon-btn {
  background: rgba(255,255,255,0.82);
  box-shadow: var(--gc-shadow-sm);
  color: var(--gc-foreground);
}
.quiz-top-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.quiz-chip {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  font-size: 16px;
}
.quiz-info { line-height: 1.25; }
.quiz-title { font-size: 14px; font-weight: 700; }
.quiz-sub { font-size: 11px; color: var(--gc-muted-foreground); font-weight: 500; }

.quiz-progress-bar {
  padding: 0 14px 10px;
}
.quiz-progress-track {
  height: 8px;
  background: var(--gc-muted);
  border-radius: 4px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gc-primary), var(--gc-logic));
  transition: width 0.4s ease;
}
.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--gc-muted-foreground);
  font-weight: 500;
}

.quiz-play-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 14px 100px;
}

.quiz-question-card {
  background: var(--gc-card);
  border-radius: 20px;
  padding: 20px;
  border: 2px solid var(--gc-border);
  box-shadow: var(--gc-shadow-sm);
}

.quiz-q-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.quiz-q-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.quiz-voice-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.quiz-voice-btn:active { transform: scale(0.9); }

.quiz-q-body {
  text-align: center;
  padding: 10px 0 18px;
}
.quiz-q-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gc-foreground);
}
.quiz-q-text .highlight {
  color: var(--gc-primary);
  font-size: 24px;
}

.quiz-answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quiz-ans-btn {
  padding: 14px 10px;
  border-radius: 14px;
  border: 2px solid var(--gc-border);
  background: var(--gc-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--gc-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.quiz-ans-btn:active { transform: scale(0.96); }
.quiz-ans-btn.selected {
  border-color: var(--gc-primary);
  background: rgba(79,140,255,0.08);
  color: var(--gc-primary);
}
.quiz-ans-btn.correct {
  border-color: var(--gc-success);
  background: rgba(34,197,94,0.1);
  color: var(--gc-success);
}
.quiz-ans-btn.wrong {
  border-color: var(--gc-danger);
  background: rgba(239,68,68,0.1);
  color: var(--gc-danger);
}

.quiz-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, var(--gc-background) 20%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.quiz-submit-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--gc-primary), var(--gc-logic));
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--gc-shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.quiz-submit-btn:active { transform: scale(0.97); }
.quiz-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-change-btn {
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--gc-border);
  background: var(--gc-card);
  color: var(--gc-foreground);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.quiz-change-btn:active { transform: scale(0.96); }

/* 单词消消乐特殊样式 */
.words-card-question {
  font-size: 28px;
  font-weight: 800;
  color: var(--gc-primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.words-card-meaning {
  font-size: 13px;
  color: var(--gc-muted-foreground);
}

/* 字母寻宝特殊样式 */
.letters-word-display {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.letters-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD54F, #FFC107);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 10px rgba(255,193,7,0.35);
}
.letters-tile.empty {
  background: var(--gc-muted);
  color: var(--gc-muted-foreground);
  box-shadow: none;
}
.letters-find-hint {
  font-size: 13px;
  color: var(--gc-muted-foreground);
  margin-bottom: 6px;
}
.letters-find-letter {
  font-size: 32px;
  font-weight: 800;
  color: var(--gc-danger);
}

/* 汉字拼图特殊样式 */
.character-display {
  font-size: 64px;
  font-weight: 800;
  color: var(--gc-primary);
  margin-bottom: 12px;
  line-height: 1;
}
.character-strokes {
  font-size: 12px;
  color: var(--gc-muted-foreground);
  margin-bottom: 10px;
}
.character-parts-hint {
  font-size: 13px;
  color: var(--gc-muted-foreground);
  margin-top: 8px;
}

/* 诗词接龙特殊样式 */
.poetry-card {
  background: linear-gradient(135deg, #FDF2F8 0%, #FAE8FF 100%);
  border-color: rgba(233,30,99,0.2);
}
.poetry-title {
  font-size: 16px;
  font-weight: 700;
  color: #E91E63;
  margin-bottom: 4px;
}
.poetry-author {
  font-size: 12px;
  color: var(--gc-muted-foreground);
  margin-bottom: 16px;
}
.poetry-lines {
  font-size: 16px;
  line-height: 2.2;
  color: var(--gc-foreground);
  font-weight: 500;
}
.poetry-lines .blank {
  display: inline-block;
  min-width: 80px;
  border-bottom: 2px solid #E91E63;
  color: #E91E63;
  font-weight: 700;
  margin: 0 4px;
}

/* 成语闯关特殊样式 */
.idiom-card {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
  border-color: rgba(255,152,0,0.25);
}
.idiom-display {
  font-size: 26px;
  font-weight: 800;
  color: #FF6F00;
  letter-spacing: 4px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.idiom-display .blank {
  color: #E65100;
  border-bottom: 3px solid #FF6F00;
  padding: 0 4px;
}
.idiom-meaning {
  font-size: 12px;
  color: var(--gc-muted-foreground);
  background: rgba(255,255,255,0.6);
  padding: 8px 12px;
  border-radius: 10px;
  margin-top: 12px;
  text-align: left;
}
.idiom-meaning-label {
  font-weight: 700;
  color: #FF6F00;
  margin-right: 4px;
}

/* 英语连连看特殊样式 */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.connect-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connect-item {
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px solid var(--gc-border);
  background: var(--gc-card);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.connect-item:active { transform: scale(0.96); }
.connect-item.selected {
  border-color: var(--gc-primary);
  background: rgba(79,140,255,0.1);
  color: var(--gc-primary);
}
.connect-item.matched {
  border-color: var(--gc-success);
  background: rgba(34,197,94,0.1);
  color: var(--gc-success);
  opacity: 0.7;
  pointer-events: none;
}
