/* ==========================================================================
   英才素养中心 - 口算素养测评 H5 核心样式表
   ========================================================================== */

/* 1. 全局重置与基础配置 */
:root {
  --primary-color: #E88A20;
  --primary-hover: #D27612;
  --primary-gradient: linear-gradient(135deg, #FFA036, #E88A20);
  --primary-gradient-hover: linear-gradient(135deg, #E88A20, #D27612);
  --primary-light: #FFF4E6;
  --primary-light-border: rgba(232, 138, 32, 0.2);
  
  --success-color: #2ECC71;
  --success-light: #E8F8F0;
  --error-color: #E74C3C;
  --error-light: #FDEDEC;
  --warning-color: #F1C40F;
  
  --text-main: #2C3E50;
  --text-muted: #7F8C8D;
  --text-white: #FFFFFF;
  
  --bg-body-dark: #1E293B;
  --bg-container: #FAFBFD;
  --bg-card: #FFFFFF;
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px rgba(232, 138, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.06);
  --shadow-key: 0 3px 6px rgba(0, 0, 0, 0.05);
  
  --font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 600px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-family);
  background: var(--bg-body-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  position: relative;
}

/* 2. 背景装饰 */
.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background-color: var(--primary-color);
  top: -50px;
  left: -50px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background-color: #FF7675;
  bottom: -100px;
  right: -100px;
}

/* 3. 容器布局与响应式适配 */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  background-color: var(--bg-container);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 桌面端/平板的设备框效果 */
@media (min-width: 601px) {
  body {
    padding: 30px 0;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  }
  .app-container {
    height: 90vh;
    min-height: 700px;
    max-height: 920px;
    border-radius: 28px;
    border: 8px solid #2d3748;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  }
}

/* 4. 品牌头部 */
.app-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background-color: rgba(250, 251, 253, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.brand-logo-container {
  display: flex;
  align-items: center;
  height: 32px;
}

.brand-logo {
  height: 100%;
  object-fit: contain;
}

.brand-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.brand-badge {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--primary-light-border);
  letter-spacing: 0.5px;
}

/* 5. 视图状态管理 */
.view-state {
  display: none;
  flex: 1;
  padding: 12px 24px 24px;
  overflow-y: auto;
}

.view-state.active {
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 6. 通用按钮和动画 */
.btn-primary {
  width: 100%;
  background: var(--primary-gradient);
  color: var(--text-white);
  border: none;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 138, 32, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 1px;
}

.btn-primary:active {
  transform: scale(0.97);
  background: var(--primary-gradient-hover);
  box-shadow: 0 4px 12px rgba(232, 138, 32, 0.2);
}

.btn-glow {
  animation: btnPulse 2s infinite ease-in-out;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 138, 32, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(232, 138, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 138, 32, 0); }
}

.btn-secondary {
  width: 100%;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-secondary:active {
  background-color: #f3f4f6;
  transform: scale(0.97);
}

.action-footer {
  margin-top: 20px;
  padding-top: 0;
}

.action-footer.double-btn,
.action-footer.double-btn-report {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

/* 7. LANDING STATE */
#view-landing {
  justify-content: space-between;
}

.hero-section {
  text-align: center;
  padding: 16px 0 10px;
}

.hero-image-wrapper {
  margin: 0 auto 12px;
  height: 46px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(232, 138, 32, 0.05);
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
  position: relative;
  padding-left: 10px;
}

.card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 14px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.intro-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intro-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.intro-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.intro-content p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 8. INFO REGISTRATION STATE */
.state-title-area {
  text-align: center;
  padding: 15px 0 25px;
}

.state-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.state-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 10px;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 22px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #a0aec0;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 15px 16px 15px 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-container);
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(232, 138, 32, 0.1);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.error-tip {
  display: none;
  font-size: 12px;
  color: var(--error-color);
  margin-top: 6px;
  padding-left: 4px;
  animation: slideDown 0.2s forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 9. RULES & COUNTDOWN STATE */
.rules-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rule-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bullet-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(232, 138, 32, 0.3);
}

.bullet-text {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.bullet-text strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Fullscreen countdown overlay */
.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 251, 253, 0.98);
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
}

.countdown-overlay.active {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.countdown-box {
  text-align: center;
}

.countdown-number {
  font-size: 120px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
  display: inline-block;
}

.countdown-number.pulse {
  animation: numberPulse 0.8s ease-out;
}

@keyframes numberPulse {
  0% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(1.1); opacity: 1; }
  70% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.countdown-tips {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 10. QUIZ STATE */
#view-quiz {
  padding: 12px 18px 20px;
  justify-content: space-between;
}

.quiz-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 16px;
}

.progress-container {
  flex: 1;
}

.quiz-progress-text {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.quiz-progress-text strong {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Radial countdown timer */
.quiz-timer-container {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timer-svg {
  position: absolute;
  top: 0;
  left: 0;
}

.timer-bg-circle {
  fill: none;
  stroke: rgba(0, 0, 0, 0.05);
}

.timer-fill-circle {
  fill: none;
  stroke: var(--primary-color);
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.timer-fill-circle.warning {
  stroke: var(--error-color);
  animation: strokePulse 1s infinite alternate;
}

.timer-seconds {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.timer-seconds.warning {
  color: var(--error-color);
  animation: textPulse 0.5s infinite alternate;
}

@keyframes strokePulse {
  0% { stroke-width: 4; }
  100% { stroke-width: 5.5; }
}

@keyframes textPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* Question panel */
.question-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 20px;
  border: 1.5px solid rgba(232, 138, 32, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}

.question-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.expression-area {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main);
  flex-wrap: wrap;
  gap: 8px;
}

.expr-num {
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
}

.answer-display-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  height: 52px;
  background-color: var(--primary-light);
  border: 2px dashed var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  position: relative;
  transition: all 0.2s ease;
}

.answer-display-box.has-content {
  border-style: solid;
  background-color: var(--bg-card);
}

.answer-text {
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-color);
}

.answer-text.empty-placeholder {
  color: rgba(232, 138, 32, 0.3);
}

.blinking-cursor {
  font-size: 30px;
  color: var(--primary-color);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 0.8s infinite;
}

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

/* Custom Keypad */
.keypad-container {
  margin-top: auto;
  width: 100%;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.keypad-key {
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-key);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.08s ease, background-color 0.1s ease, color 0.1s ease;
}

.keypad-key:active {
  transform: scale(0.92);
  background-color: #ECEFF3;
}

.keypad-key.key-delete {
  color: #7f8c8d;
}

.keypad-key.key-delete:active {
  background-color: #F8D7DA;
  color: var(--error-color);
}

.keypad-key.key-confirm {
  background: var(--primary-gradient);
  color: var(--text-white);
  font-size: 18px;
  font-weight: 700;
}

.keypad-key.key-confirm:active {
  transform: scale(0.92);
  background: var(--primary-gradient-hover);
}

/* 11. REPORT STATE */
.report-header {
  text-align: center;
  padding: 10px 0 15px;
}

.ribbon-badge {
  display: inline-block;
  background: var(--primary-gradient);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(232, 138, 32, 0.2);
}

.report-main-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.report-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Report score card */
.report-score-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  border: 1px solid rgba(232, 138, 32, 0.05);
}

.report-score-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
}

.radial-score-container {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
}

.score-bg-circle {
  fill: none;
  stroke: #F3F4F6;
}

.score-fill-circle {
  fill: none;
  stroke: var(--primary-color);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-text-box {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
}

.score-number {
  font-size: 46px;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.score-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 2px;
}

.score-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding-left: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
}

.stat-val.text-success {
  color: var(--success-color);
}

.stat-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* Report Panel */
.report-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  border: 1px solid rgba(232, 138, 32, 0.04);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding-bottom: 10px;
}

.panel-title-icon {
  color: var(--primary-color);
}

/* Capacity Bars */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-item {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr 1fr;
  align-items: center;
  gap: 12px;
}

.breakdown-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breakdown-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.breakdown-ratio {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.breakdown-progress-bg {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.breakdown-eval-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-align: center;
  justify-self: end;
}

.breakdown-eval-tag.eval-excellent {
  background-color: var(--success-light);
  color: var(--success-color);
}

.breakdown-eval-tag.eval-good {
  background-color: #E8F4FD;
  color: #3498db;
}

.breakdown-eval-tag.eval-need-improve {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.breakdown-eval-tag.eval-poor {
  background-color: var(--error-light);
  color: var(--error-color);
}

/* Collapsible Section for Wrong Answers */
#panel-wrong-answers-wrapper {
  padding: 0;
  overflow: hidden;
}

.collapsible-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  outline: none;
}

.collapsible-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.arrow-icon.rotated {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  background-color: var(--bg-container);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.collapsible-content.expanded {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px 20px;
}

/* Wrong list table */
.wrong-list-table {
  width: 100%;
  border-collapse: collapse;
}

.wrong-list-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 6px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.wrong-list-table td {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 13.5px;
  vertical-align: middle;
}

.wrong-list-table tr:last-child td {
  border-bottom: none;
}

.wrong-expr {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.wrong-user-ans {
  color: var(--error-color);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.wrong-correct-ans {
  color: var(--success-color);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.wrong-time {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-size: 12px;
}

.all-correct-box {
  text-align: center;
  padding: 25px 10px;
}

.congrats-medal {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
  animation: medalPulse 1.5s infinite alternate ease-in-out;
}

@keyframes medalPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.15) rotate(5deg); }
}

.congrats-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--success-color);
  margin-bottom: 6px;
}

.congrats-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Teacher Card Design */
.teacher-section {
  background-color: var(--bg-card);
  border: 1.5px solid var(--primary-light-border);
}

.teacher-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-container);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.teacher-info-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.teacher-avatar-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: 2px solid var(--text-white);
  box-shadow: 0 4px 12px rgba(232, 138, 32, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-placeholder {
  color: var(--text-white);
  font-weight: 700;
  font-size: 18px;
}

.teacher-details {
  flex: 1;
}

.teacher-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.teacher-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.teacher-contact-badges {
  display: flex;
  gap: 8px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

.btn-phone-call {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.btn-phone-call:active {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-wechat-copy {
  background-color: #E8F8F0;
  color: var(--success-color);
}

.btn-wechat-copy:active {
  background-color: var(--success-color);
  color: var(--text-white);
}

.teacher-qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
  padding-top: 16px;
}

.qr-wrapper {
  width: 90px;
  height: 90px;
  padding: 4px;
  background-color: var(--text-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.teacher-qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-instructions {
  flex: 1;
}

.qr-main-tip {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.qr-sub-tip {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 12. 全局组件 (TOAST / LOADING) */
/* Toast */
.toast-hidden {
  display: none;
  opacity: 0;
}

.toast-visible {
  display: block;
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background-color: rgba(44, 62, 80, 0.95);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: toastFadeIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -30%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.toast-fadeout {
  animation: toastFadeOut 0.3s forwards ease;
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to { opacity: 0; transform: translate(-50%, -30%); }
}

/* Loading overlay */
.loading-hidden {
  display: none;
}

.loading-visible {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(250, 251, 253, 0.9);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s forwards;
}

.spinner-box {
  width: 50px;
  height: 50px;
  position: relative;
  margin-bottom: 16px;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

@keyframes bounce {
  0%, 100% { transform: scale(0.0); }
  50% { transform: scale(1.0); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
}
