/* ===== 每日挑战 - 增强样式 ===== */
.daily-page {
  background:
    radial-gradient(100% 40% at 50% -5%, rgba(253,230,138,0.45) 0%, rgba(253,230,138,0) 60%),
    linear-gradient(180deg, #FFFBF0 0%, #FFF8EC 30%, #F5F7FA 100%);
}
.daily-chip {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}
.daily-counters .counter-pill.streak {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
  animation: streak-glow 2s ease-in-out infinite;
}
@keyframes streak-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
  50% { box-shadow: 0 4px 20px rgba(239,68,68,0.55); }
}

.daily-question-card {
  margin-top: 4px;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
  box-shadow: 
    0 8px 30px rgba(99,102,241,0.08),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(167,139,250,0.12);
  position: relative;
  overflow: hidden;
}
.daily-question-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #A78BFA, #F59E0B, #EF4444, #A78BFA);
  background-size: 300% 100%;
  animation: card-accent-flow 4s linear infinite;
}
@keyframes card-accent-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.daily-q-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.daily-q-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  color: #6366F1;
  font-size: 12px;
  font-weight: 700;
}

.daily-q-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-radius: 16px;
  margin-bottom: 18px;
  position: relative;
}
.daily-q-body::before,
.daily-q-body::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  opacity: 0.5;
}
.daily-q-body::before {
  top: -10px; left: -10px;
  background: radial-gradient(circle, rgba(167,139,250,0.3), transparent 70%);
}
.daily-q-body::after {
  bottom: -10px; right: -10px;
  background: radial-gradient(circle, rgba(245,158,11,0.3), transparent 70%);
}

.daily-q-eq {
  font-size: 32px;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3;
}
.daily-q-eq .op {
  color: #8B5CF6;
  margin: 0 6px;
  font-size: 28px;
}
.daily-q-eq .eq {
  color: #F59E0B;
  margin: 0 8px;
}
.daily-q-eq .q-mark {
  color: transparent;
  background: linear-gradient(135deg, #8B5CF6, #F59E0B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 36px;
  animation: q-mark-bounce 1s ease-in-out infinite;
}
@keyframes q-mark-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.daily-answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.daily-ans-btn {
  position: relative;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 2px solid #E2E8F0;
  color: #1E293B;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.daily-ans-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.8) 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.daily-ans-btn:active {
  transform: scale(0.96);
}
.daily-ans-btn:active::before {
  opacity: 1;
}
.daily-ans-btn.selected {
  border-color: #8B5CF6;
  background: linear-gradient(180deg, #F5F3FF 0%, #EDE9FE 100%);
  color: #7C3AED;
  box-shadow: 0 4px 16px rgba(139,92,246,0.25);
  transform: translateY(-2px);
}
.daily-ans-btn.correct {
  border-color: #22C55E;
  background: linear-gradient(180deg, #DCFCE7 0%, #BBF7D0 100%);
  color: #15803D;
  animation: correct-pulse 0.5s ease-out;
}
@keyframes correct-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(34,197,94,0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.daily-ans-btn.wrong {
  border-color: #EF4444;
  background: linear-gradient(180deg, #FEE2E2 0%, #FECACA 100%);
  color: #DC2626;
  animation: wrong-shake 0.5s ease-out;
}
@keyframes wrong-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.daily-ans-btn.disabled {
  pointer-events: none;
  opacity: 0.7;
}

.daily-float-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 32px;
  border-radius: 20px;
  font-size: 28px;
  font-weight: 800;
  pointer-events: none;
  z-index: 100;
  animation: float-feedback 1.2s ease-out forwards;
}
.daily-float-feedback.correct {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  box-shadow: 0 10px 40px rgba(34,197,94,0.4);
}
.daily-float-feedback.wrong {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  box-shadow: 0 10px 40px rgba(239,68,68,0.4);
}
@keyframes float-feedback {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  40% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(0.9); }
}

.daily-combo-flame {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 20px;
  animation: flame-flicker 0.3s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  from { transform: scale(1) rotate(-3deg); }
  to { transform: scale(1.1) rotate(3deg); }
}

.daily-question-card.new-question {
  animation: question-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes question-enter {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.daily-bonus-card {
  transition: transform 0.3s ease;
}
.daily-bonus-card:hover {
  transform: translateY(-2px);
}
.bonus-reward {
  animation: reward-bounce 2s ease-in-out infinite;
}
@keyframes reward-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.daily-progress-section {
  transition: all 0.3s ease;
}
.daily-stats-row .ds-item {
  transition: transform 0.2s ease;
}
.daily-stats-row .ds-item:hover {
  transform: translateY(-2px);
}
.daily-stats-row .ds-item.pulse {
  animation: stat-pulse 0.6s ease-out;
}
@keyframes stat-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.daily-bottom-bar .submit-btn {
  position: relative;
  overflow: hidden;
}
.daily-bottom-bar .submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.daily-bottom-bar .submit-btn:hover::before {
  left: 100%;
}
.daily-bottom-bar .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
/* ===== 每日挑战 ===== */
.daily-page {
  padding: 0 16px 32px;
}
.daily-top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.daily-title { flex: 1; min-width: 0; }
.daily-title-main { font-size: 14px; font-weight: 700; }
.daily-title-sub { font-size: 11px; color: var(--gc-muted-foreground); }
.reward-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gc-danger);
  color: white;
  animation: badge-pop 0.5s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
@keyframes badge-pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.daily-timer-section {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.daily-timer-left { display: flex; align-items: center; gap: 8px; }
.daily-timer-info { }
.daily-timer-label { font-size: 18px; font-weight: 700; }
.daily-timer-sub { font-size: 12px; color: var(--gc-muted-foreground); }
.daily-questions-count { text-align: right; }
.daily-questions-num { font-size: 24px; font-weight: 800; }
.daily-questions-total { font-size: 11px; color: var(--gc-muted-foreground); }

.daily-progress-bar {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: var(--gc-muted);
  overflow: hidden;
}
.daily-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6FA5FF, var(--gc-primary));
  position: relative;
}
.daily-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

.daily-combo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.combo-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6B6B, #EF4444);
  color: white;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(239,68,68,0.3);
}
.daily-points {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245,158,11,0.12);
  color: var(--gc-warning);
  font-size: 12px;
  font-weight: 700;
}

.daily-question-card {
  margin-top: 12px;
  padding: 20px;
  border-radius: var(--gc-radius-lg);
  background: var(--gc-card);
  box-shadow: var(--gc-shadow-md);
}
.daily-q-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.daily-q-num {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gc-math);
  color: white;
}
.daily-q-diff {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(167,139,250,0.12);
  color: var(--gc-logic);
}
.daily-q-text {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.daily-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.daily-option-btn {
  height: 56px;
  border-radius: var(--gc-radius-md);
  background: var(--gc-muted);
  color: var(--gc-foreground);
  font-size: 20px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.12s;
}
.daily-option-btn:active { transform: scale(0.95); }
.daily-option-btn.correct { background: var(--gc-success); color: white; }

.daily-stages {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--gc-radius-md);
  background: var(--gc-card);
  box-shadow: var(--gc-shadow-sm);
}
.daily-stages-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gc-muted-foreground);
  margin-bottom: 8px;
}
.daily-stages-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stage-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stage-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--gc-success);
}
.stage-circle.current {
  background: var(--gc-warning);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}
.stage-circle.locked {
  background: var(--gc-muted);
  color: var(--gc-muted-foreground);
}
.stage-name { font-size: 10px; font-weight: 600; color: var(--gc-muted-foreground); }
.stage-item.current .stage-name { color: var(--gc-warning); font-weight: 700; }
.stage-line {
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--gc-muted);
}
.stage-line.done { background: var(--gc-warning); }

.daily-reward-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--gc-radius-md);
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border: 1px solid rgba(245,158,11,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
}
.daily-reward-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gc-warning);
  flex-shrink: 0;
}
.daily-reward-info { flex: 1; min-width: 0; }
.daily-reward-title { font-size: 14px; font-weight: 700; }
.daily-reward-desc { font-size: 11px; color: var(--gc-muted-foreground); margin-top: 2px; }

.daily-week {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--gc-radius-md);
  background: var(--gc-card);
  box-shadow: var(--gc-shadow-sm);
}
.daily-week-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gc-muted-foreground);
  margin-bottom: 8px;
}
.daily-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.day-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.day-name { font-size: 10px; color: var(--gc-muted-foreground); }
.day-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--gc-muted);
  color: var(--gc-muted-foreground);
}
.day-item.today .day-circle {
  background: var(--gc-danger);
  color: white;
}
