/* ============================================
   出国实用英语初级 - 老年友好样式
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --base-font-size: 18px;
}

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

html {
  font-size: var(--base-font-size);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 80px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ 顶部标题栏 ============ */
.app-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 24px 20px 32px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.app-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-subtitle {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 400;
}

/* ============ 容器 ============ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

/* ============ 页面切换 ============ */
.page {
  display: none;
}
.page.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 统计卡片 ============ */
.stats-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  margin: -16px 0 16px;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============ 继续学习横幅 ============ */
.continue-banner {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  color: white;
  animation: fadeIn 0.5s ease;
}
.continue-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.continue-icon {
  font-size: 40px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  flex-shrink: 0;
}
.continue-info {
  flex: 1;
  min-width: 0;
}
.continue-title {
  font-size: 15px;
  opacity: 0.9;
}
.continue-sub {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-btn {
  background: white;
  color: #6366f1;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ CTA 卡片 ============ */
.cta-card {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-emoji {
  font-size: 40px;
  flex-shrink: 0;
}
.cta-text {
  flex: 1;
}
.cta-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cta-desc {
  font-size: 14px;
  opacity: 0.95;
}
.cta-card .btn {
  flex: 1;
  background: white;
  color: var(--warning-dark);
  font-weight: 700;
  border: none;
}
/* 简化版：只有标题，居中 */
.cta-card.cta-simple {
  justify-content: center;
  padding: 22px 20px;
}
.cta-card.cta-simple .cta-title {
  font-size: 24px;
  margin: 0;
}

/* ============ 课程网格 ============ */
.section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin: -8px 0 12px;
  background: var(--primary-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

/* ============ 课程页 4 标签栏 ============ */
.course-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 16px;
  background: var(--bg-card, #f5f7fa);
  padding: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.course-tab {
  background: transparent;
  border: none;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  line-height: 1.25;
}
.course-tab:active {
  transform: scale(0.96);
}
.course-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* 标签面板切换 */
.tab-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}
.tab-panel.active {
  display: block;
}

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

.course-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s;
  cursor: pointer;
}
.course-card:active {
  transform: scale(0.98);
  background: var(--primary-light);
}
.course-icon {
  font-size: 36px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
}
.course-info {
  flex: 1;
  min-width: 0;
}
.course-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.course-scene {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.course-status {
  flex-shrink: 0;
}
.badge-done {
  background: var(--success);
  color: white;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.badge-go {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* ============ 课程详情页 ============ */
.course-header {
  text-align: center;
  margin: 20px 0 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.course-page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.course-page-scene {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ============ 区块通用 ============ */
.section {
  margin-bottom: 24px;
}

/* ============ 绕口令 ============ */
.twister-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--warning);
}
.twister-num {
  font-size: 14px;
  color: var(--warning-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.twister-en {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius);
}
.twister-zh {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.twister-tip {
  font-size: 14px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ============ 辨音练习 ============ */
.sound-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.sound-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sound-top:active { background: var(--primary-light); }
.sound-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.sound-listen-pill {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: 999px;
}
.sound-zh {
  color: var(--primary-dark);
  font-weight: 600;
}
.sound-pair {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}
.sound-btn {
  flex: 1;
  background: var(--primary-light);
  border: 2px solid transparent;
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 700;
  padding: 18px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  min-height: 72px;
}
.sound-btn:active {
  transform: scale(0.96);
  border-color: var(--primary);
}
.sound-btn:disabled {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
}
.sound-btn.sound-picked {
  background: #fdecec;
  border-color: var(--danger, #d9534f);
  color: var(--danger, #d9534f);
}
.sound-btn.sound-correct {
  background: var(--success-light, #d4f4dd);
  border-color: var(--success, #2e9e4f);
  color: var(--success, #2e9e4f);
}
.sound-btn .sound-word { line-height: 1.1; }
.sound-btn .sound-mark {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.sound-feedback {
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}
.sound-feedback.hint { color: var(--text-muted); font-weight: 500; }
.sound-feedback.correct { color: var(--success, #2e9e4f); }
.sound-feedback.wrong { color: var(--danger, #d9534f); }

/* ============ 🎧 听力选择题 ============ */
.quiz-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.quiz-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}
.quiz-option:active {
  transform: scale(0.98);
  background: var(--primary-light);
}
.quiz-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.quiz-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.quiz-option-text {
  flex: 1;
  font-weight: 500;
}
.quiz-option.quiz-correct {
  background: #d1fae5;
  border-color: var(--success);
}
.quiz-option.quiz-correct .quiz-option-letter {
  background: var(--success);
  color: white;
}
.quiz-option.quiz-wrong {
  background: #fee2e2;
  border-color: var(--danger);
}
.quiz-option.quiz-wrong .quiz-option-letter {
  background: var(--danger);
  color: white;
}
.quiz-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 16px;
  text-align: center;
  font-weight: 600;
}
.quiz-feedback.correct {
  background: #d1fae5;
  color: #047857;
}
.quiz-feedback.wrong {
  background: #fee2e2;
  color: #b91c1c;
}

/* ============ 课堂对话 ============ */
.dialogue-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.dialogue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dialogue-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: white;
  font-size: 13px;
}
.dialogue-role.role-a { background: var(--primary); }
.dialogue-role.role-b { background: var(--success); }
/* v3.7 跟读提示条：告诉老年学员 A/B 跟读性别对应 */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-btn:active { background: var(--primary); color: white; }
.dialogue-en {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.dialogue-zh {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============ 单词表 ============ */
.words-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.word-item {
  background: white;
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.word-item:active {
  transform: scale(0.96);
  border-color: var(--primary);
  background: var(--primary-light);
}
.word-item.playing {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  animation: wordPlaying 0.6s ease;
}
@keyframes wordPlaying {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.word-en {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.word-pron {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: monospace;
  margin-bottom: 4px;
}
.word-zh {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}
.word-play-hint {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.65;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn-large { padding: 16px 20px; font-size: 19px; font-weight: 700; }

.btn-primary { background: var(--primary); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline.active { background: var(--primary); color: white; }

.flex { display: flex; }
.gap-1 { gap: 8px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ============ 每日打卡页 ============ */

/* v3.9.13: 开学前占位卡（⏳ 倒计时） */
.daily-pending {
  text-align: center;
  padding: 36px 20px;
  margin: 12px 0 24px;
  background: linear-gradient(135deg, #fff8e8 0%, #fff 100%);
  border: 2px solid var(--primary);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.12);
}
.daily-pending-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
}
.daily-pending-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}
.daily-pending-body {
  font-size: 17px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
}
.daily-pending-body b {
  color: var(--primary);
  font-weight: 800;
  font-size: 19px;
}
.daily-pending-tip {
  font-size: 15px;
  color: var(--text-muted);
  border-top: 1px dashed #f0c89b;
  padding-top: 12px;
  margin-top: 8px;
}

/* v3.9.13: 首页 CTA 副标题（"还有 N 天开学" 等） */
.cta-sub {
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 4px 12px;
  margin-top: 6px;
  white-space: nowrap;
}

.daily-header {
  text-align: center;
  margin-bottom: 16px;
}
.daily-day {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.daily-theme {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.daily-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
/* 卡片头部：标题 + 右上角"会话朗读" */
.daily-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.daily-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.daily-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.daily-row:last-child { border-bottom: none; }
.daily-hint {
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff7e6, #ffe8c2);
  border-left: 4px solid #f0a020;
  border-radius: 10px;
  font-size: 14px;
  color: #5a3a00;
  line-height: 1.6;
}
.daily-label {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex-shrink: 0;
}
.daily-en {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

/* v3.9.5：每句一张干净卡片（会话句子 / 示范朗读 / 跟读打分 / 我的录音 / 得分） */
.daily-card-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 2px 0 14px;
  line-height: 1.6;
}
.dv-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.dv-card:last-of-type { margin-bottom: 4px; }
.dv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dv-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 21px;
  padding: 0;
  border-radius: 50%;
}
.dv-role-a { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.dv-role-b { background: linear-gradient(135deg, #d97706, #b45309); }
.dv-idx {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
}
.dv-text {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}
.dv-text-zh {
  font-size: 17px;
  font-weight: 500;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: #f1f5f9;
  border-left: 3px solid #94a3b8;
  border-radius: 4px;
}
.dv-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.dv-actions .btn {
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 700;
}
/* 打卡卡内："重录"按钮保持绿色可点，不进入禁用灰 */
.dv-card .btn-record-inline.done {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  animation: none;
}
.dv-card .btn-record-inline.done:active { transform: scale(0.98); }
.dv-own {
  margin-top: 8px;
  text-align: center;
}
.dv-mini-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.dv-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.dv-mini-role {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  color: #fff;
}
.dv-mini-a { background: #2563eb; }
.dv-mini-b { background: #d97706; }
.dv-mini-txt {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.dv-mini-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--warning-dark);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .dv-text { font-size: 19px; }
  .dv-actions .btn { font-size: 15px; }
}


.daily-pending, .daily-complete {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.big-emoji { font-size: 60px; margin-bottom: 12px; }
.big-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.big-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 4px; }

/* 打卡页：上下日导航 */
.daily-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.daily-nav .btn { flex: 0 0 auto; font-size: 15px; padding: 10px 12px; }
.daily-nav-jump {
  flex: 1;
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.daily-nav-jump input {
  width: 60px;
  padding: 8px 4px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
}

/* ============ 日历 ============ */
.cal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cal-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);  /* 【改】7列→6列，每格更大，老人好按 */
  gap: 6px;
}
.cal-cell {
  aspect-ratio: 1;
  min-height: 56px;  /* 【新增】老人手指容易按 */
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;  /* 【改大】13→14 */
  background: var(--bg);
  border: 1px solid var(--border);
}
.cal-day { font-weight: 700; font-size: 15px; }  /* 【新增大字号】 */
.cal-date { font-size: 11px; color: var(--text-muted); }
.cal-done { background: var(--success); color: white; border-color: var(--success); }
.cal-done .cal-date { color: rgba(255,255,255,0.8); }
.cal-today { background: var(--primary); color: white; border-color: var(--primary); box-shadow: var(--shadow); }
.cal-today .cal-date { color: rgba(255,255,255,0.9); }
.cal-current { outline: 3px solid var(--warning); outline-offset: 2px; }  /* 【新增】当前选中天外加橙色环 */
.cal-missed { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.cal-future { opacity: 0.5; }

/* ============ 结果展示 ============ */
.result-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 2px solid var(--warning);
}
.result-stars { font-size: 28px; }
.result-score {
  font-size: 32px;
  font-weight: 800;
  color: var(--warning-dark);
  margin: 4px 0;
}
.result-comment {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

/* ============ 弹窗 ============ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}
/* 双句模式：彻底隐藏单句模板 */
.modal.mode-dual .self-eval-standard-section { display: none; }
.modal:not(.mode-dual) #self-eval-dual-slot { display: none; }
.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

/* ============ 🎤 自动评分弹窗 ============ */
.eval-tip {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid var(--warning);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.eval-tip-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--warning-dark);
  margin-bottom: 8px;
  text-align: center;
}

/* 【新增】就绪指示灯 - 让老人确认弹窗已加载 */
.eval-ready {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  border: 2px solid #10b981;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #047857;
  margin: 10px auto 4px;
  width: fit-content;
}
.eval-ready-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
  animation: readyPulse 1.6s infinite;
}
@keyframes readyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* 调试期：让 calendar 按钮看起来是可点击的 */
.cal-btn {
  background: var(--card-bg, #ffffff);
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
  font-family: inherit;
}
.cal-btn:active {
  transform: scale(0.95);
  background: var(--primary-light, #eff6ff);
}
.cal-btn.cal-today {
  background: var(--primary, #2563eb);
  color: white;
  border-color: var(--primary, #2563eb);
}
.eval-tip-step {
  font-size: 14px;
  color: var(--text);
  padding: 2px 0;
  line-height: 1.6;
}
.eval-sentence {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  padding: 16px;
  border-radius: var(--radius);
  color: var(--primary-dark);
  line-height: 1.4;
  margin: 12px 0 8px;
}
.eval-zh {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.eval-input-wrap {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
}
.eval-input-label {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.eval-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 19px;
  border: none;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-family: inherit;
  color: var(--text);
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
.eval-input:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.eval-input::placeholder {
  color: var(--text-muted);
  font-size: 16px;
}

/* ============ 录音打分区 ============ */
.eval-record-area {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #10b981;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}
.btn-record {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 18px 14px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-record:active {
  transform: scale(0.98);
}
.btn-record.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: recPulse 1.2s infinite;
}
.btn-record.done {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-record:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
@keyframes recPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.record-status {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  min-height: 22px;
}
.record-vol {
  margin-top: 12px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.record-vol-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  width: 0%;
  transition: width 0.08s;
  border-radius: 4px;
}

.eval-fallback {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
}
.fallback-hint {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
  text-align: center;
}
.fallback-steps {
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
  margin-bottom: 12px;
}

.score-result {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid var(--warning);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}
.score-result .big-score {
  font-size: 48px;
  font-weight: 900;
  color: var(--warning-dark);
  line-height: 1;
  margin: 6px 0;
}
.score-result .score-stars {
  font-size: 24px;
  color: #f59e0b;
  letter-spacing: 2px;
}
.score-result .dims {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.score-result .dim {
  flex: 1;
  min-width: 90px;
  background: white;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.score-result .dim-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.score-result .dim-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}
.score-result .comment {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-top: 8px;
  padding: 0 6px;
}

/* ============ 每日打卡双句弹窗（A+B 合并评分）============ */
.dual-intro {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 700;
}
.dual-card {
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.dual-card.is-scored {
  border-color: var(--success);
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}
.dual-role {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.dual-role.role-a { color: #2563eb; }
.dual-role.role-b { color: #d97706; }
.dual-sentence {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  padding: 8px 0;
}
.dual-record-area {
  /* 继承 .eval-record-area 的视觉 */
}
.dual-status {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  min-height: 18px;
}
.dual-score {
  margin-top: 8px;
}
.dual-score-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid var(--warning);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  margin-top: 8px;
}
.dual-score-stars {
  font-size: 22px;
  color: var(--warning-dark);
}
.dual-score-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--warning-dark);
  line-height: 1.2;
}
.dual-score-unit {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}
.dual-score-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dual-total-box {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 3px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.dual-total-box.dual-total-done {
  background: linear-gradient(135deg, #bbf7d0, #86efac);
  border-color: #047857;
}
.dual-total-title {
  font-size: 22px;
  font-weight: 800;
  color: #047857;
  margin-bottom: 8px;
}
.dual-total-stars {
  font-size: 30px;
  color: #047857;
}
.dual-total-num {
  font-size: 48px;
  font-weight: 800;
  color: #047857;
  line-height: 1.2;
}
.dual-total-unit {
  font-size: 20px;
  color: #047857;
  font-weight: 600;
}
.dual-total-detail {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.dual-total-comment {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.5;
  padding: 0 6px;
}

/* ============ 分享弹窗 ============ */
.share-steps {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.share-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--text);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.share-canvas-wrap {
  text-align: center;
  margin: 12px 0;
  background: #f1f5f9;
  padding: 10px;
  border-radius: var(--radius);
}
#share-canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.share-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

/* ============ 设置页 ============ */
.info-box {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.info-box p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--text);
}
.info-box p:last-child { margin-bottom: 0; }

/* ============ 底部导航 ============ */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s;
}
.tab-item.active {
  color: var(--primary);
}
.tab-item.active .tab-icon {
  transform: scale(1.1);
}
.tab-icon {
  font-size: 24px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}
.tab-label {
  font-size: 15px;
  font-weight: 600;
}

/* ============ Toast 提示 ============ */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.92);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  z-index: 200;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ 响应式 ============ */
@media (max-width: 360px) {
  .stat-num { font-size: 28px; }
  .app-title { font-size: 21px; }
  .twister-en { font-size: 19px; }
  .dialogue-en { font-size: 16px; }
}

/* ============ v3.9 内嵌录音打分样式 ============ */
/* 跟原来的 .eval-record-area / .btn-record 等同款（保留兼容），
   新加 .btn-record-inline / .record-vol-inline 让它直接嵌在卡片里，
   视觉上比弹窗里的更紧凑、与内容卡融为一体 */
.twister-record-row,
.dialogue-record-row {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #10b981;
  border-radius: var(--radius);
  padding: 14px 12px;
  margin-top: 10px;
  text-align: center;
}
.twister-record-row .twister-status,
.dialogue-record-row .dialogue-status {
  margin-top: 8px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  min-height: 21px;
}
.btn-record-inline {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 14px 12px;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.btn-record-inline:active { transform: scale(0.98); }
.btn-record-inline.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: recPulse 1.2s infinite;
}
.btn-record-inline.done {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
}
.btn-record-inline:disabled {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  cursor: not-allowed;
}
/* 课堂会话"我的录音"回放按钮：与"跟读打分"并排，橙色系作区分 */
.dialogue-record-row .btn-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.dialogue-record-row .btn-record-inline {
  flex: 1;
  width: auto;
}
/* v3.9.10: "我的录音"按钮初始始终可见，但用浅描边样式表明"还没录过音"，
   录过音后通过 .ready 切换成实色可点击样式 */
.btn-own-audio {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;            /* 浅橙色背景 */
  color: #c2410c;                 /* 深橙色文字 */
  border: 2px dashed #f59e0b;     /* 虚线框强调"待录音" */
  border-radius: var(--radius);
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  white-space: nowrap;
}
.btn-own-audio.ready {
  background: linear-gradient(135deg, #f59e0b, #d97706);  /* 已录音：实色橙色 */
  color: white;
  border: none;
  border-style: solid;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}
.btn-own-audio:active { transform: scale(0.98); }
.btn-own-audio.playing { transform: scale(0.96); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35); }

/* 每日打卡"我的录音"按钮：同一套配色规则 */
.dv-own .btn-own {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: #c2410c;
  border: 2px dashed #f59e0b;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.1s, background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
  white-space: nowrap;
}
.dv-own .btn-own.ready {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-style: solid;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}
.dv-own .btn-own:active { transform: scale(0.98); }
.dv-own .btn-own.playing { transform: scale(0.96); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35); }
.record-vol-inline {
  margin-top: 8px;
  height: 6px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.record-vol-inline-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  width: 0%;
  transition: width 0.1s;
  border-radius: 3px;
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 4px 22px rgba(239, 68, 68, 0.8); }
}

/* 内嵌分数结果（绕口令 / 课堂对话卡片内显示） */
.score-result.inline {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}
.score-result.inline .big-score {
  font-size: 42px;
  font-weight: 800;
  color: #92400e;
  margin: 4px 0 8px;
}
.score-result.inline .score-stars {
  font-size: 28px;
  color: #f59e0b;
  letter-spacing: 4px;
}
.score-result.inline .dims {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}
.score-result.inline .dim {
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 56px;
}
.score-result.inline .dim-label {
  font-size: 12px;
  color: #92400e;
}
.score-result.inline .dim-value {
  font-size: 20px;
  font-weight: 700;
  color: #92400e;
}
.score-result.inline .comment {
  font-size: 15px;
  color: #78350f;
  margin-top: 6px;
}

/* 打卡页面里的录音行：A/B 各一行 */
.daily-row {
  padding: 12px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.daily-row:last-of-type { border-bottom: none; }
.daily-row .dual-score {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
.dual-score-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  min-width: 180px;
}
.dual-score-stars {
  font-size: 22px;
  color: #f59e0b;
  letter-spacing: 3px;
}
.dual-score-num {
  font-size: 28px;
  font-weight: 800;
  color: #92400e;
}
.dual-score-unit { font-size: 14px; color: #92400e; font-weight: 400; }
.dual-score-label {
  font-size: 13px;
  color: #78350f;
  margin-top: 2px;
}

/* 打卡完成提示卡 */
.dual-total-box {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 2px solid #10b981;
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 12px;
  text-align: center;
}
.dual-total-title { font-size: 22px; font-weight: 800; color: #065f46; }
.dual-total-stars { font-size: 28px; color: #f59e0b; margin: 6px 0; }
.dual-total-detail { font-size: 15px; color: #065f46; }
.dual-total-comment { font-size: 14px; color: #047857; margin-top: 4px; }

/* ============ v3.9.15: 新版本提示条（顶部固定橙色横条）============ */
.version-update-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
  animation: vub-slide-down 0.4s ease-out;
}
@keyframes vub-slide-down {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.vub-text { flex: 1; text-align: center; }
.vub-btn {
  background: #fff;
  color: #c2410c;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.vub-btn:active { background: #ffedd5; }
.vub-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  opacity: 0.85;
}
.vub-close:active { opacity: 1; }
body.has-vub { padding-top: 64px; }  /* 提示条出现时给内容让出位置 */

/* ============ v3.10.0 字母音标学习页 ============ */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}
.section-desc {
  font-size: 15px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* 字母模块 - 4 列网格 */
.alpha-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.alpha-cell {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.alpha-cell:active { transform: scale(0.97); }
.alpha-letter {
  font-size: 28px;
  font-weight: 800;
  color: #92400e;
  line-height: 1.2;
}
.alpha-phoneme {
  font-size: 13px;
  color: #78350f;
  font-family: 'Times New Roman', serif;
  margin-bottom: 6px;
}
.alpha-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.alpha-btn {
  background: white;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.alpha-btn:active { background: #fde68a; }
.alpha-btn.recording {
  background: #ef4444;
  color: white;
  animation: pulse 1.5s infinite;
}
.alpha-score {
  font-size: 14px;
  font-weight: 700;
  min-height: 18px;
  margin-top: 4px;
}
.alpha-score .score-good { color: #16a34a; }
.alpha-score .score-ok { color: #d97706; }
.alpha-score .score-bad { color: #dc2626; }
.alpha-score .rec-indicator {
  color: #ef4444;
  font-size: 12px;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 音标模块 */
.filter-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.filter-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border-color: #1e40af;
}

.phon-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #fbbf24;
}
.phon-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.phon-symbol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.phon-play-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.phon-play-btn:active { transform: scale(0.95); }
.phon-info { flex: 1; }
.phon-symbol {
  font-size: 22px;
  font-weight: 700;
  color: #1e40af;
  font-family: 'Times New Roman', serif;
  line-height: 1.2;
}
.phon-name {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.phon-words {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.word-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  font-family: inherit;
}
.word-chip:active {
  background: #e0e7ff;
  transform: scale(0.97);
}
.word-chip.recording {
  background: #fee2e2;
  border-color: #ef4444;
  animation: pulse 1.2s infinite;
}
.word-en {
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.2;
}
.word-phonetic {
  font-size: 12px;
  color: #6b7280;
  font-family: 'Times New Roman', serif;
  margin-top: 2px;
}
.word-zh {
  font-size: 13px;
  color: #475569;
  margin-top: 2px;
}
.word-record-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 14px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
}
.word-score-good { color: #16a34a; font-weight: 700; font-size: 16px; }
.word-score-ok { color: #d97706; font-weight: 700; font-size: 16px; }
.word-score-bad { color: #dc2626; font-weight: 700; font-size: 16px; }

.alphabet-section, .phonetic-section {
  margin-bottom: 16px;
}

