/* ========== 成长督导工作台 - 成熟商务风格 ========== */
:root {
  --navy: #1a2332;
  --navy-light: #2a3548;
  --navy-hover: #34425c;
  --gold: #c9a96e;
  --gold-light: #dbbe8a;
  --gold-dark: #a88f56;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #e53e3e;
  --info: #4299e1;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
}

/* ========== Layout ========== */
.app {
  display: flex;
  height: 100vh;
  height: 100dvh;
}

/* ========== Sidebar ========== */
.sidebar {
  width: 230px;
  background: linear-gradient(180deg, var(--navy) 0%, #151c28 100%);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  z-index: 10;
}

.sidebar-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.sidebar-header h1 {
  font-size: 16px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-header p {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 5px;
  letter-spacing: 0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 6px 0 12px;
}

.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(201,169,110,0.12), transparent);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}

.nav-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* ========== Main ========== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  background: var(--card);
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  z-index: 5;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.topbar-stats {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-light);
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 16px;
}

.stat-pill strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  max-width: 100%;
}

/* ========== Cards ========== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.card-title .badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.badge-new { background: #e6fffa; color: #00b894; }
.badge-review { background: #fef3e2; color: #d69e2e; }
.badge-overdue { background: #fed7d7; color: #c53030; }

/* ========== Knowledge Content ========== */
.knowledge-section {
  margin-bottom: 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.principle-box {
  background: #f8f9fa;
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.methodology-list {
  list-style: none;
  margin-bottom: 14px;
}

.methodology-list li {
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.methodology-list li:last-child { border-bottom: none; }

.methodology-list strong {
  color: var(--navy);
}

.example-box {
  background: linear-gradient(135deg, #f0f4f8, #eef1f6);
  border: 1px solid #d6e0ed;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.example-box:hover {
  border-color: #b8c5d9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.example-box .ex-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--info);
  margin-bottom: 6px;
}

.example-box .ex-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.example-box .ex-tip {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

/* ========== Practice ========== */
.practice-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  transition: var(--transition);
}

.practice-item:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow);
}

.practice-q {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.65;
}

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

textarea.practice-input {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

textarea.practice-input:focus {
  border-color: var(--gold);
}

.practice-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.opt-btn {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  color: var(--text);
  line-height: 1.5;
}

.opt-btn:hover { border-color: var(--gold); background: rgba(201,169,110,0.04); transform: translateY(-1px); }

.opt-btn.selected {
  border-color: var(--navy);
  background: #f0f4f8;
}

.opt-btn.correct {
  border-color: var(--success);
  background: #f0fff4;
}

.opt-btn.wrong {
  border-color: var(--danger);
  background: #fff5f5;
}

/* ========== Buttons ========== */
.btn {
  padding: 9px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { background: var(--navy-hover); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(26,35,50,0.2); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}

.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(201,169,110,0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); background: rgba(201,169,110,0.05); }

.btn-sm { padding: 6px 14px; font-size: 12.5px; }

/* ========== Score Feedback ========== */
.score-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.score-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
}

.score-max {
  font-size: 16px;
  color: var(--text-muted);
}

.score-grade {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.grade-a { background: #c6f6d5; color: #22543d; }
.grade-b { background: #bee3f8; color: #2a4365; }
.grade-c { background: #fefcbf; color: #744210; }
.grade-d { background: #fed7d7; color: #742a2a; }

.dimension-scores {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.dim-card {
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.dim-card .dim-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.dim-card .dim-score {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.feedback-item {
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.feedback-item:last-child { border-bottom: none; }

.feedback-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
}

.tag-good { background: #c6f6d5; color: #22543d; }
.tag-issue { background: #fed7d7; color: #742a2a; }
.tag-tip { background: #bee3f8; color: #2a4365; }

/* ========== Profile/Dashboard ========== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.profile-stat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  cursor: default;
}

.profile-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.profile-stat .ps-icon { font-size: 26px; margin-bottom: 8px; }
.profile-stat .ps-num { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.profile-stat .ps-label { font-size: 12px; color: var(--text-light); margin-top: 3px; }

.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.day-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
}

.day-cell.checked { background: var(--success); color: #fff; }
.day-cell.today { border: 2px solid var(--gold); }
.day-cell.missed { background: #fed7d7; }

/* ========== Commands ========== */
.command-bar {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}

.cmd-btn {
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
}

.cmd-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26,35,50,0.2);
}

/* ========== Review Schedule ========== */
.review-timeline {
  display: flex;
  gap: 0;
  margin: 10px 0;
  overflow-x: auto;
}

.timeline-node {
  flex-shrink: 0;
  text-align: center;
  padding: 6px 10px;
  position: relative;
}

.timeline-node .tn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 4px;
}

.timeline-node.done .tn-dot { background: var(--success); }
.timeline-node.current .tn-dot { background: var(--gold); border: 3px solid var(--gold-light); }
.timeline-node.future .tn-dot { background: #e2e8f0; }

.timeline-node .tn-label {
  font-size: 10px;
  color: var(--text-muted);
}

.timeline-node::after {
  content: '';
  position: absolute;
  top: 12px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.timeline-node:last-child::after { display: none; }
.timeline-node.done::after { background: var(--success); }

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 320px;
}

.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ========== Tags & Labels ========== */
.module-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.tag-english { background: #e6fffa; color: #00897b; }
.tag-expression { background: #f3e8ff; color: #6b46c1; }
.tag-writing { background: #fef3e2; color: #b7791f; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -230px;
    z-index: 100;
    height: 100vh;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 230px;
  }
  .sidebar.open { left: 0; }
  .main { width: 100%; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .dimension-scores { grid-template-columns: 1fr; }
  .practice-opts { grid-template-columns: 1fr; }
  .topbar-stats { display: none; }
  .content { padding: 16px 14px; }
  .menu-toggle { display: block !important; }
  .topbar { padding: 12px 16px; }
  .topbar-title { font-size: 16px; }
  .card { padding: 16px; }
  .command-bar { padding: 8px 14px; }
  .cmd-btn { padding: 6px 12px; font-size: 12px; }
  .rpg-attr-grid { grid-template-columns: 1fr 1fr; }
  .training-module-grid { grid-template-columns: 1fr; }
  .mat-stats-grid { grid-template-columns: 1fr; }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
}

/* ========== Scrollbar ========== */
.content::-webkit-scrollbar { width: 7px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
.content::-webkit-scrollbar-thumb:hover { background: #a0aec0; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
.dialogue-area::-webkit-scrollbar { width: 5px; }
.dialogue-area::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }

/* ========== Loading ========== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== Reward/Penalty ========== */
.reward-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}

.reward-item.unlocked { border-left: 3px solid var(--gold); }
.reward-item.locked { opacity: 0.5; }

/* ========== Accordion ========== */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion:hover {
  border-color: var(--text-muted);
}

.accordion-header {
  padding: 13px 16px;
  background: linear-gradient(135deg, #f8f9fa, #f0f2f5);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  user-select: none;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #f0f2f5, #e8ecf0);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

.accordion-body.open { max-height: 2000px; }

.accordion-body-inner {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
}

/* ========== Progress Bar ========== */
.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }

/* ========== Feedback Section Titles ========== */
.feedback-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 14px 0 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ========== Weakness Report ========== */
.weakness-report {
  background: #fff5f5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 4px;
}

.weakness-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(229, 62, 62, 0.1);
}

.weakness-item:last-child { border-bottom: none; }
.weakness-icon { font-size: 16px; flex-shrink: 0; }

/* ========== Improvement Suggestions ========== */
.improvement-suggestions {
  background: #f0fff4;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 4px;
}

.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(72, 187, 120, 0.1);
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Optimized Rewrite ========== */
.optimized-rewrite {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 4px;
}

.rewrite-comparison {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px;
}

.rewrite-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 10px 0 6px;
}
.rewrite-label:first-child { margin-top: 0; }

.rewrite-original {
  background: #fff5f5;
  border-left: 3px solid var(--danger);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.rewrite-improved {
  background: #f0fff4;
  border-left: 3px solid var(--success);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.rewrite-suggestion {
  background: #fef3e2;
  border-left: 3px solid var(--warning);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

.rewrite-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.kw-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.kw-used { background: #c6f6d5; color: #22543d; }
.kw-missed { background: #fed7d7; color: #742a2a; }

/* ========== Speech Practice ========== */
.speech-practice-item {
  background: #f0f4f8;
  border: 1px solid #d6e0ed;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.speech-sentence {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.6;
}

.speech-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.speech-comparison {
  background: var(--card);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0;
}

.speech-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.6;
}

.speech-label {
  font-weight: 600;
  color: var(--text-light);
  flex-shrink: 0;
  width: 50px;
}

.speech-text {
  color: var(--text);
}

.speech-word-analysis {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0;
  padding: 10px;
  background: var(--card);
  border-radius: 6px;
}

.speech-word {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.word-correct { background: #c6f6d5; color: #22543d; }
.word-wrong { background: #fed7d7; color: #742a2a; text-decoration: line-through; }

/* ========== Toggle Switch ========== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 22px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--gold, #d4a535);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* ========== Vocab Button & Popup ========== */
.vocab-btn {
  display: inline-block;
  background: none;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  cursor: pointer;
  vertical-align: middle;
  color: var(--gold-dark, #8a6d1a);
  transition: background 0.2s;
}
.vocab-btn:active {
  background: var(--gold-light, #fef9e7);
}

.vocab-popup {
  margin-top: 8px;
  padding: 12px 14px;
  background: #f8f6f0;
  border: 1px solid #e8e0c8;
  border-left: 3px solid var(--gold, #d4a535);
  border-radius: 8px;
  font-size: 13px;
  animation: vocabFadeIn 0.2s ease;
}
@keyframes vocabFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.vocab-popup-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark, #8a6d1a);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.vocab-section {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #999);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 4px;
}
.vocab-section:first-of-type {
  margin-top: 0;
}
.vocab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed #e0d8c0;
}
.vocab-item:last-child {
  border-bottom: none;
}
.vocab-word {
  font-weight: 600;
  color: var(--navy, #1a2332);
  min-width: 80px;
  font-size: 13px;
}
.vocab-pron-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
  opacity: 0.6;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (max-width: 768px) {
  .vocab-pron-btn {
    font-size: 18px;
    padding: 6px 10px;
    opacity: 0.8;
  }
}
.vocab-pron-btn:hover {
  background: rgba(212, 165, 53, 0.15);
  opacity: 1;
  transform: scale(1.2);
}
.vocab-pron-btn:active {
  transform: scale(0.95);
  background: rgba(212, 165, 53, 0.3);
}
.vocab-meaning {
  color: var(--text-light, #666);
  font-size: 12.5px;
}

/* ========== Responsive additions ========== */
@media (max-width: 768px) {
  .speech-controls { flex-direction: column; }
  .speech-controls .btn { width: 100%; }
  .weakness-item, .suggestion-item { font-size: 12.5px; }
  .vocab-word { min-width: 80px; }
  .wrong-stats-row { flex-direction: column; }
  .wrong-item-actions { flex-wrap: wrap; }
  .wrong-filter-row { flex-direction: column; gap: 8px; }
}

/* ========== 错题本样式 ========== */
.wrong-stats-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.wrong-stat-card {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius);
}
.wrong-stat-card.stat-total { background: #f0f4f8; }
.wrong-stat-card.stat-pending { background: #fff5f5; }
.wrong-stat-card.stat-resolved { background: #f0fff4; }
.wrong-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.stat-pending .wrong-stat-num { color: var(--danger); }
.stat-resolved .wrong-stat-num { color: var(--success); }
.wrong-stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.wrong-module-row {
  margin-top: 12px;
}
.wrong-module-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wm-label {
  font-size: 12px;
  color: var(--text-light);
  min-width: 40px;
}
.wm-track {
  flex: 1;
  height: 20px;
  background: #edf2f7;
  border-radius: 10px;
  overflow: hidden;
}
.wm-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}
.wm-eng { background: var(--info); }
.wm-exp { background: var(--gold); }
.wm-wrt { background: var(--success); }
.wm-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 20px;
  text-align: right;
}

.wrong-analysis-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.wrong-analysis-item:last-child { border-bottom: none; }
.wrong-analysis-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.wrong-analysis-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.wrong-analysis-detail {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.wrong-analysis-suggestion {
  font-size: 12px;
  color: var(--gold-dark);
  margin-top: 4px;
}

.wrong-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.wrong-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.wf-label {
  font-size: 12px;
  color: var(--text-light);
}
.wf-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}
.wf-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.wf-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.wrong-item-card {
  border-left: 3px solid var(--danger);
  transition: opacity 0.3s;
}
.wrong-item-card.resolved {
  border-left-color: var(--success);
  opacity: 0.85;
}
.wrong-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.wrong-item-module {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  color: white;
  font-weight: 600;
}
.wrong-item-type {
  font-size: 11px;
  color: var(--text-light);
  padding: 2px 6px;
  background: #f0f4f8;
  border-radius: 3px;
}
.wrong-item-score {
  font-size: 13px;
  font-weight: 700;
}
.wrong-item-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}
.wrong-item-badge.resolved-badge {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
}
.wrong-item-lesson {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.wrong-item-q, .wrong-item-ans, .wrong-item-reason {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 4px;
}
.wrong-item-q { background: #f7f9fc; }
.wrong-item-ans { background: #fff8f0; }
.wrong-item-reason { background: #fff5f5; }
.wi-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  color: white;
  vertical-align: middle;
}
.wi-wrong { background: var(--danger); }
.wi-correct { background: var(--success); }
.wi-reason { background: var(--warning); }
.wrong-item-dims {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.wrong-dim-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.wrong-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ========== 陪练模式 ========== */
.coach-intro { text-align: center; margin-bottom: 20px; }
.coach-intro h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.coach-intro p { font-size: 13px; color: var(--text-light); }

.coach-mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.coach-mode-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.coach-mode-card:hover, .coach-mode-card:active {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cm-icon { font-size: 40px; margin-bottom: 10px; }
.cm-name { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.cm-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.5; }

.coach-sub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cst-btn {
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}
.cst-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.coach-mode-desc {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #f0f4f8;
  border-radius: var(--radius);
}

.coach-exercise-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.coach-exercise-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.coach-exercise-card:hover, .coach-exercise-card:active {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ce-type { font-size: 11px; color: var(--gold-dark); font-weight: 600; margin-bottom: 4px; }
.ce-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.ce-prompt { font-size: 12.5px; color: var(--text-light); line-height: 1.4; }
.ce-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.coach-sense-start {
  text-align: center;
  padding: 30px 20px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.coach-sense-start p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }

.coach-session { max-width: 720px; margin: 0 auto; }
.coach-prompt-card {
  background: #f0f4f8;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.cp-label { font-size: 11px; font-weight: 600; color: var(--gold-dark); margin-bottom: 6px; }
.cp-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cp-text { font-size: 13px; color: var(--text); line-height: 1.6; }
.cp-tip { font-size: 12px; color: var(--gold-dark); margin-top: 8px; padding: 6px 10px; background: rgba(255,193,7,0.1); border-radius: 4px; }

.coach-editor-wrap { margin-bottom: 14px; }
.coach-editor {
  width: 100%;
  min-height: 240px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.coach-editor:focus { border-color: var(--navy); }
.coach-stats-bar {
  display: flex;
  gap: 20px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-light);
  background: #f0f4f8;
  border-radius: var(--radius);
  margin-top: 6px;
}
.coach-stats-bar strong { color: var(--navy); font-size: 14px; }

.coach-analysis {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}
.analysis-section { margin-top: 14px; }
.as-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.as-good { color: var(--success); }
.as-bad { color: var(--danger); }
.as-suggest { color: var(--gold-dark); }
.analysis-list { list-style: none; padding: 0; margin: 0; }
.analysis-list li { font-size: 13px; padding: 6px 0; line-height: 1.5; border-bottom: 1px solid #f0f0f0; }
.analysis-list li:last-child { border-bottom: none; }
.li-good { color: var(--success); }
.li-bad { color: var(--danger); }
.li-suggest { color: var(--gold-dark); }

.dimension-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.dim-card { background: #f8f9fa; border-radius: 8px; padding: 10px; }
.dim-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.dim-score { font-size: 18px; font-weight: 700; color: var(--navy); }
.dim-bar { height: 6px; background: #e9ecef; border-radius: 3px; margin: 6px 0; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.dim-detail { font-size: 11px; color: var(--text-muted); }

.sense-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sense-item {
  text-align: center;
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fa;
}
.sense-item.active { border-color: var(--success); background: #f0fff4; }
.sense-icon { font-size: 18px; display: block; }
.sense-name { font-size: 11px; color: var(--text-light); display: block; margin-top: 4px; }
.sense-count { font-size: 11px; font-weight: 700; color: var(--success); display: block; }

.ref-answer {
  font-size: 14px;
  color: var(--text);
  padding: 10px 12px;
  background: #f0f4f8;
  border-radius: 6px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.keyword-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kt { font-size: 11px; padding: 3px 8px; border-radius: 12px; font-weight: 600; }
.kt.hit { background: #c6f6d5; color: #22543d; }
.kt.miss { background: #fed7d7; color: #742a2a; }

.grammar-item {
  padding: 8px 10px;
  background: #fff5f5;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}
.gi-wrong { color: var(--danger); font-weight: 600; text-decoration: line-through; }
.gi-right { color: var(--success); font-weight: 600; }
.gi-rule { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* 对话界面 */
.coach-dialogue { max-width: 640px; margin: 0 auto; }
.dialogue-scenario-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f4f8;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.ds-emoji { font-size: 28px; }
.ds-info { flex: 1; }
.ds-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.ds-desc { font-size: 12px; color: var(--text-light); }

.dialogue-area {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #f8f9fa;
  border-radius: var(--radius);
  margin-bottom: 10px;
  min-height: 200px;
}
.chat-bubble {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeInUp 0.2s;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-system {
  background: #e3f2fd;
  color: var(--text);
  border-bottom-left-radius: 4px;
  margin-right: auto;
}
.chat-user {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  text-align: right;
}
.chat-summary {
  width: 100%;
  max-width: 100%;
  background: var(--card);
  border: 2px solid var(--success);
}
.cb-text { font-weight: 500; }
.cb-cn { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.cb-tts {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  margin-top: 6px;
}

.dialogue-feedback { margin-bottom: 10px; }
.dialogue-feedback-panel {
  background: #fffbe6;
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.dfp-score {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.dfp-score.passed { background: #c6f6d5; color: #22543d; }
.dfp-score.failed { background: #fed7d7; color: #742a2a; }
.dfp-section { margin-top: 8px; }
.dfs-label { font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 4px; }
.dfp-hint { font-size: 12px; margin-top: 8px; padding: 6px 10px; border-radius: 4px; }
.dfp-hint.passed { background: #c6f6d5; color: #22543d; }
.dfp-hint.failed { background: #fff5f5; color: var(--danger); }

.dialogue-input-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dialogue-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}
.dialogue-input-bar input:focus { border-color: var(--navy); }

.dialogue-summary { padding: 10px; }
.ds-title { font-size: 18px; font-weight: 700; color: var(--success); margin-bottom: 12px; text-align: center; }
.ds-stats { display: flex; justify-content: space-around; margin: 12px 0; }
.ds-stat-item { text-align: center; font-size: 12px; color: var(--text-light); }
.ds-stat-item strong { display: block; font-size: 20px; color: var(--navy); }
.ds-round { font-size: 12px; padding: 4px 0; color: var(--text-light); border-bottom: 1px solid #f0f0f0; }
.ds-round:last-of-type { border-bottom: none; }

/* 翻译训练 */
.coach-translation { max-width: 640px; margin: 0 auto; }
.ct-progress { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.ct-card { background: #f0f4f8; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.ct-label { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.ct-cn { font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.5; }
.cg-sentence { font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.6; padding: 10px; background: #fff5f5; border-radius: 6px; }

/* 语法侦探 */
.coach-grammar { max-width: 640px; margin: 0 auto; }

/* 发音挑战 */
.coach-pronunciation { max-width: 640px; margin: 0 auto; }
.cp-sentence { font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.5; margin: 8px 0; }
.cp-cn { font-size: 13px; color: var(--text-light); }
.pron-result { margin-top: 14px; padding: 14px; background: #f8f9fa; border-radius: var(--radius); }
.pron-heard { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.pron-target { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.pron-words { font-size: 15px; line-height: 2; margin-bottom: 10px; }
.pron-score { font-size: 16px; color: var(--navy); }

/* 表达陪练 */
.coach-expression { max-width: 640px; margin: 0 auto; }
.coach-cat-selector { text-align: center; padding: 10px 0; }
.expr-timer-card {
  background: #f0f4f8;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}
.et-label { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.et-time { font-size: 36px; font-weight: 700; color: var(--navy); }
.et-bar { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.et-bar-fill { height: 100%; border-radius: 3px; transition: width 1s linear; background: var(--navy); }
.expr-speak-area { animation: fadeInUp 0.3s; }

.kp-item {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.kp-item:last-child { border-bottom: none; }

.filler-item {
  font-size: 12px;
  color: var(--danger);
  padding: 4px 0;
}

.qf-progress {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 12px;
}

.coach-complete {
  text-align: center;
  padding: 30px 20px;
}
.coach-complete h3 { font-size: 20px; color: var(--success); margin-bottom: 16px; }

/* 录音按钮状态 */
.btn.recording {
  background: var(--danger) !important;
  color: #fff !important;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

.speech-listening {
  text-align: center;
  padding: 14px;
  background: #fff5f5;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--danger);
}
.speech-error {
  text-align: center;
  padding: 10px;
  background: #fff5f5;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--danger);
}

/* ========== RPG 逆袭养成系统 ========== */
.rpg-dashboard-card {
  background: linear-gradient(135deg, var(--primary-dark, #1a2332), var(--primary, #2a3a52));
  border: 1px solid var(--gold, #d4a72c);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.rpg-dash-rank {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rpg-dash-icon {
  font-size: 42px;
  flex-shrink: 0;
}
.rpg-dash-info {
  flex: 1;
}
.rpg-dash-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold, #d4a72c);
}
.rpg-dash-next {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.rpg-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.rpg-progress-fill {
  height: 100%;
  background: var(--gold, #d4a72c);
  border-radius: 3px;
  transition: width 0.5s;
}
.rpg-dash-coins {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold, #d4a72c);
  flex-shrink: 0;
}
.rpg-dash-attrs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.rpg-attr-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
}
.rpg-attr-mini strong {
  color: var(--text);
}

/* RPG 段位卡片 */
.rpg-rank-card {
  background: linear-gradient(135deg, var(--primary-dark, #1a2332), var(--primary, #2a3a52));
  border: 1px solid var(--gold, #d4a72c);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.rpg-rank-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.rpg-rank-big-icon {
  font-size: 56px;
  flex-shrink: 0;
  line-height: 1;
}
.rpg-rank-title {
  flex: 1;
}
.rpg-rank-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold, #d4a72c);
  margin: 0 0 6px;
}
.rpg-rank-title p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}
.rpg-coins-display {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold, #d4a72c);
  flex-shrink: 0;
  background: rgba(212,167,44,0.1);
  padding: 6px 14px;
  border-radius: 20px;
}
.rpg-rank-progress-wrap {
  margin-top: 16px;
}
.rpg-rank-progress-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.rpg-rankup-btn {
  width: 100%;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  padding: 12px;
  animation: pulse 2s infinite;
}
.rpg-rank-locked {
  margin-top: 12px;
  padding: 10px;
  background: rgba(220,53,69,0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}

/* RPG 属性网格 */
.rpg-attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.rpg-attr-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.rpg-attr-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.rpg-attr-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.rpg-attr-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-dark, #b8941f);
  margin: 4px 0;
}
.rpg-attr-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 6px 0;
}
.rpg-attr-fill {
  height: 100%;
  background: var(--gold, #d4a72c);
  border-radius: 2px;
}
.rpg-attr-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.rpg-buff-info {
  margin-top: 10px;
  padding: 8px;
  background: rgba(40,167,69,0.1);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--success);
  text-align: center;
}

/* RPG 连续训练 */
.rpg-streak-display {
  text-align: center;
  padding: 20px;
}
.rpg-streak-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--danger);
  display: inline;
}
.rpg-streak-label {
  font-size: 18px;
  color: var(--text-light);
  display: inline;
  margin-left: 4px;
}
.rpg-streak-next {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* RPG 商店 */
.rpg-shop-locked {
  padding: 12px;
  background: rgba(220,53,69,0.1);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}
.rpg-shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.rpg-shop-info {
  flex: 1;
  padding-right: 12px;
}

/* RPG 短板副本 */
.rpg-weakness-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* RPG 剧情 */
.rpg-story-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.rpg-story-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-dark, #b8941f);
}
.rpg-story-subtitle {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}
.rpg-story-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 6px;
}
.rpg-story-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* RPG 传记 */
.rpg-bio-card {
  border: 2px solid var(--gold, #d4a72c);
}
.rpg-bio-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* 剧情弹窗 */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.story-modal {
  background: var(--card);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  border: 2px solid var(--gold, #d4a72c);
}
.story-modal-header {
  text-align: center;
  margin-bottom: 16px;
}
.story-modal-header h3 {
  font-size: 18px;
  color: var(--gold-dark, #b8941f);
  margin: 8px 0 4px;
}
.story-modal-subtitle {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}
.story-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
}
.story-modal-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 20px;
}
.story-modal-btn {
  width: 100%;
}

/* RPG 奖励 */
.rpg-reward-card {
  border: 1px solid var(--gold, #d4a72c);
}
.rpg-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.rr-item {
  background: rgba(212,167,44,0.08);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark, #b8941f);
  text-align: center;
}
.rpg-rankup-notice {
  margin-top: 10px;
  padding: 10px;
  background: rgba(212,167,44,0.15);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-dark, #b8941f);
  text-align: center;
}
.rpg-story-card {
  border-left: 3px solid var(--gold, #d4a72c);
}

/* ========== 训练大厅 ========== */
.training-hall-intro {
  margin-bottom: 16px;
}
.training-hall-intro h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.training-hall-intro p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.answer-mode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.am-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}
.am-btn.active {
  background: var(--primary, #2a3a52);
  color: #fff;
  border-color: var(--primary, #2a3a52);
}

.training-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.training-module-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.training-module-card:hover {
  border-color: var(--gold, #d4a72c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tm-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.tm-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.tm-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 8px;
}
.tm-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.tm-trigger {
  margin-top: 8px;
  font-size: 11px;
  color: var(--gold-dark, #b8941f);
  background: rgba(212,167,44,0.08);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.weakness-detected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

/* ========== 训练会话 ========== */
.training-session {
  max-width: 720px;
  margin: 0 auto;
}
.training-progress-bar {
  margin-bottom: 16px;
}
.tp-text {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.tp-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.tp-fill {
  height: 100%;
  background: var(--primary, #2a3a52);
  border-radius: 3px;
  transition: width 0.3s;
}

.training-q-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.tq-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tq-type, .tq-point, .tq-diff {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.tq-type {
  background: rgba(45,90,200,0.1);
  color: var(--primary, #2a3a52);
}
.tq-point {
  background: rgba(212,167,44,0.1);
  color: var(--gold-dark, #b8941f);
}
.tq-diff {
  background: rgba(220,53,69,0.1);
  color: var(--danger);
}
.tq-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}
.tq-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.tq-option:hover {
  border-color: var(--primary, #2a3a52);
  background: rgba(45,90,200,0.05);
}

.training-answer-area {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.ta-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tam-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}
.tam-btn.active {
  background: var(--primary, #2a3a52);
  color: #fff;
  border-color: var(--primary, #2a3a52);
}
.train-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}
.train-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: space-between;
}
.train-voice-area {
  /* voice mode container */
}
.voice-transcript {
  min-height: 120px;
  padding: 12px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  outline: none;
}
.voice-transcript:empty::before {
  content: attr(placeholder);
  color: var(--text-muted);
}
.train-voice-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.training-hint-box {
  background: rgba(255,193,7,0.08);
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}
.th-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark, #b8941f);
  margin-bottom: 6px;
}
.th-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}
.th-reference {
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

/* ========== 训练结果 ========== */
.training-result {
  max-width: 720px;
  margin: 0 auto;
}
.tr-score-card {
  text-align: center;
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.tr-score-card.excellent {
  background: linear-gradient(135deg, rgba(40,167,69,0.15), rgba(40,167,69,0.05));
  border: 2px solid var(--success);
}
.tr-score-card.pass {
  background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,193,7,0.05));
  border: 2px solid var(--warning);
}
.tr-score-card.fail {
  background: linear-gradient(135deg, rgba(220,53,69,0.15), rgba(220,53,69,0.05));
  border: 2px solid var(--danger);
}
.tr-score-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}
.tr-score-card.excellent .tr-score-num { color: var(--success); }
.tr-score-card.pass .tr-score-num { color: var(--warning); }
.tr-score-card.fail .tr-score-num { color: var(--danger); }
.tr-score-label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}

.tr-dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.tr-dim-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.tr-dim-fill {
  height: 100%;
  border-radius: 4px;
}
.tr-dim-fill.excellent { background: var(--success); }
.tr-dim-fill.pass { background: var(--warning); }
.tr-dim-fill.fail { background: var(--danger); }
.tr-dim-detail {
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 0 0 4px 0;
  margin-top: -2px;
  line-height: 1.4;
}

.tr-material-item {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}
.tr-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ========== 素材记忆库 ========== */
.materials-intro {
  margin-bottom: 16px;
}
.materials-intro h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.materials-intro p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}
.mat-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.mat-stat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.ms-icon {
  font-size: 28px;
}
.ms-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.ms-label {
  font-size: 12px;
  color: var(--text-light);
}
.mat-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mat-review-content {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.mat-cat-badge {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(212,167,44,0.1);
  color: var(--gold-dark, #b8941f);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
}
.mat-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mf-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: transparent;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
}
.mf-btn.active {
  background: var(--primary, #2a3a52);
  color: #fff;
  border-color: var(--primary, #2a3a52);
}
.mat-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
}
.mat-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mat-item.mastered {
  opacity: 0.6;
}
.mat-item-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark, #b8941f);
  margin-bottom: 4px;
}
.mat-item-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 6px;
}
.mat-item-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.mat-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg);
  border-radius: 3px;
  color: var(--text-muted);
}
.mat-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== 英语句子语音操作栏 ========== */
.speech-toolbar {
  display: inline-flex;
  gap: 6px;
  margin-top: 6px;
  margin-left: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.speech-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (max-width: 768px) {
  .speech-mini-btn {
    padding: 6px 14px;
    font-size: 13px;
    min-height: 36px;
  }
}
.speech-mini-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.speech-mini-btn:active {
  transform: scale(0.95);
}
.speech-mini-btn.tts-btn {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  border-color: #90caf9;
}
.speech-mini-btn.tts-btn:hover {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
}
.speech-mini-btn.tts-btn:active {
  background: linear-gradient(135deg, #90caf9, #64b5f6);
}
/* 播放中动画 */
.tts-playing {
  animation: tts-pulse 0.6s ease-in-out infinite alternate !important;
  background: linear-gradient(135deg, #66bb6a, #43a047) !important;
  color: #fff !important;
  border-color: #43a047 !important;
}
@keyframes tts-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
  100% { transform: scale(1.08); box-shadow: 0 0 8px 2px rgba(76, 175, 80, 0.4); }
}
.speech-mini-btn.mic-btn {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
  border-color: #ffb74d;
}
.speech-mini-btn.mic-btn:hover {
  background: linear-gradient(135deg, #ffe0b2, #ffcc80);
}
.speech-mini-btn.vocab-btn {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #6a1b9a;
  border-color: #ce93d8;
}
.speech-mini-btn.vocab-btn:hover {
  background: linear-gradient(135deg, #e1bee7, #ce93d8);
}
.speech-mini-btn.recording {
  background: #f44336 !important;
  color: #fff !important;
  border-color: #f44336 !important;
  animation: pulse-rec 1s infinite;
}
@keyframes pulse-rec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(244, 67, 54, 0); }
}

/* 跟读打分结果面板 */
.speech-result-panel {
  margin-top: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.speech-result-panel .score-display {
  margin-bottom: 10px;
}
.speech-dimensions {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}
.speech-dim {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}
.speech-dim-label {
  flex: 0 0 90px;
  color: var(--text-light);
}
.speech-dim-bar {
  flex: 1;
  height: 8px;
  background: #eceff1;
  border-radius: 4px;
  overflow: hidden;
}
.speech-dim-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.speech-dim-num {
  flex: 0 0 36px;
  text-align: right;
  font-weight: 600;
  font-size: 12px;
}
.speech-comparison {
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.speech-row {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  align-items: flex-start;
}
.speech-label {
  flex: 0 0 60px;
  color: var(--text-muted);
  font-size: 12px;
}
.speech-text {
  flex: 1;
  line-height: 1.5;
}
.speech-word-analysis {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 10px;
}
.speech-word {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: help;
}
.word-correct {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.word-wrong {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  text-decoration: underline wavy #f44336;
  text-underline-offset: 3px;
}

/* 练习题双作答模式提示 */
.answer-mode-hint {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  background: #f5f5f5;
  border-radius: 4px;
  margin: 4px 0 8px;
  display: inline-block;
}

/* 参考答案展示框 */
.ref-answer-box {
  border: 2px solid var(--gold, #d4a72c) !important;
  background: #fffdf5 !important;
}
.ref-answer-box .ex-content {
  font-size: 14px;
  line-height: 1.7;
}

/* 语音口述按钮录音状态 */
.btn.recording {
  background: #f44336 !important;
  color: #fff !important;
  border-color: #f44336 !important;
  animation: pulse-rec 1s infinite;
}

/* ========== 使用说明 ========== */
.guide-card {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #fffdf8, #fffaf0);
}
.guide-header {
  user-select: none;
}
.guide-section {
  margin-bottom: 18px;
}
.guide-section:last-child {
  margin-bottom: 0;
}
.guide-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201,169,110,0.2);
}
.guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
}
.guide-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-module-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.guide-module-row:last-child {
  margin-bottom: 0;
}
.guide-module-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.guide-tip {
  font-size: 13px;
  color: var(--text-light);
  padding: 6px 0 6px 8px;
  border-left: 3px solid var(--gold);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ========== 复述训练法 ========== */

/* 入口卡片 */
.retell-entry-card {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border: 2px solid #c7d2fe;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}
.retell-entry-card:hover {
  border-color: #818cf8;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}
.retell-entry-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.retell-entry-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.retell-entry-info {
  flex: 1;
}
.retell-entry-title {
  font-size: 18px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 4px;
}
.retell-entry-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.5;
}
.retell-entry-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.retell-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  white-space: nowrap;
}
.retell-entry-arrow {
  font-size: 22px;
  color: #818cf8;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.retell-entry-card:hover .retell-entry-arrow {
  transform: translateX(4px);
}

/* 教授篇 */
.retell-teach-card {
  margin-bottom: 16px;
}
.retell-teach-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  margin: -16px -16px 16px -16px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.retell-teach-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.retell-teach-intro {
  font-size: 15px;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 8px;
}
.retell-teach-desc {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.85;
}
.retell-modes-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* 模式卡片 */
.retell-mode-card {
  border-left: 4px solid #ccc;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.retell-mode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.retell-mode-header:hover {
  background: rgba(0, 0, 0, 0.02);
}
.retell-mode-icon {
  font-size: 22px;
}
.retell-mode-name {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}
.retell-mode-arrow {
  color: var(--text-muted);
  transition: transform 0.3s;
}
.retell-section {
  margin-bottom: 14px;
}
.retell-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.retell-steps-list {
  list-style: none;
  counter-reset: none;
  padding: 0;
  margin: 0;
}
.retell-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.6;
}
.retell-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.retell-tips-list {
  margin: 0;
  padding-left: 20px;
}
.retell-tips-list li {
  font-size: 13px;
  line-height: 1.6;
  padding: 3px 0;
  color: var(--text-secondary);
}
.retell-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.retell-check-item {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* 示范案例 */
.retell-demo-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--border-light);
}
.retell-demo-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.retell-demo-original {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}
.retell-demo-label {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}
.retell-demo-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
}
.retell-demo-version {
  border-left: 4px solid #ccc;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.retell-demo-version-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.retell-demo-version-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}
.retell-demo-analysis {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 练习素材库 */
.retell-practice-card {
  margin-bottom: 16px;
}
.retell-passage-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.retell-passage-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}
.retell-passage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}
.retell-passage-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.retell-passage-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.retell-passage-meta span {
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}
.retell-passage-modes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.retell-mode-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #ede9fe;
  color: #6d28d9;
}
.retell-passage-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 练习会话 */
.retell-practice-session {
  padding: 16px;
}
.retell-steps-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.retell-step-bar {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}
.retell-step-bar.done {
  background: #d1fae5;
  color: #065f46;
}
.retell-step-bar.active {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}

/* 原文展示 */
.retell-passage-display {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.retell-passage-display-title {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}
.retell-passage-display-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #a16207;
  margin-bottom: 10px;
}
.retell-passage-display-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-primary);
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

/* 模式选择 */
.retell-mode-select-section {
  margin-bottom: 16px;
}
.retell-mode-select-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.retell-mode-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.retell-mode-select-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.retell-mode-select-card:hover {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.05);
}
.retell-mode-select-card.selected {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.retell-mode-select-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.retell-mode-select-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.retell-mode-select-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 练习输入区 */
.retell-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
}
.retell-practice-checklist {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}
.retell-checklist-title {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 6px;
}
.retell-checklist-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.retell-check-practice-item {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: #166534;
}
.retell-input {
  min-height: 180px !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

/* 结果卡片 */
.retell-result-card {
  padding: 16px;
}
.retell-mode-result-tag {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 12px;
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 600;
}
.retell-dim-scores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.retell-dim-card {
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.retell-dim-card .dim-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.retell-dim-card .dim-weight {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 要点覆盖 */
.retell-keypoints-check {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.retell-keypoint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.retell-keypoint.hit {
  background: #f0fdf4;
  color: #166534;
}
.retell-keypoint.miss {
  background: #fef2f2;
  color: #991b1b;
}

/* 自检清单结果 */
.retell-checklist-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.retell-check-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.retell-check-result.passed {
  background: #f0fdf4;
  color: #166534;
}
.retell-check-result.failed {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
}

/* 录音按钮状态 */
.btn.recording {
  background: var(--danger) !important;
  color: #fff !important;
  animation: pulse-rec 1.5s infinite;
}
@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 移动端适配 */
@media (max-width: 640px) {
  .retell-mode-select-grid {
    grid-template-columns: 1fr;
  }
  .retell-dim-scores {
    grid-template-columns: 1fr 1fr;
  }
  .retell-entry-header {
    flex-wrap: wrap;
  }
}

/* ========== 语速节奏诊断卡片 ========== */
.pace-diagnosis-card {
  border-left: 4px solid var(--gold);
  margin-bottom: 12px;
}
.pace-diagnosis-card.good {
  border-left-color: var(--success);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.pace-diagnosis-card.ok {
  border-left-color: var(--warning);
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}
.pace-diagnosis-card.warn {
  border-left-color: var(--danger);
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}
.pace-diagnosis-text {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.6;
}
.pace-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pace-metric {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.03);
}
.pace-metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pace-metric-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.pace-metric-value small {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}
.pace-tips-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.pace-tips-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pace-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.06);
  font-size: 13px;
  line-height: 1.5;
}
.pace-tip-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .pace-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== 庆祝动画与音效系统 ========== */

/* 覆盖层 */
.celebration-overlay {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 金色全屏闪光 (吃鸡爆炸瞬间) */
.celeb-gold-flash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99998;
  background: radial-gradient(circle at center, rgba(255,215,0,0.9), rgba(255,165,0,0.4) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.celeb-gold-flash.active {
  opacity: 1;
  animation: celeb-flash-fade 0.6s ease-out forwards;
}
@keyframes celeb-flash-fade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}

/* 大吉大利 今晚晋升 文字 */
.celeb-chicken-text {
  font-size: 42px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 30px rgba(255,215,0,0.8), 0 0 60px rgba(255,165,0,0.4), 0 4px 8px rgba(0,0,0,0.6);
  letter-spacing: 8px;
  margin-bottom: 4px;
  animation: celeb-chicken-reveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.celeb-chicken-text2 {
  font-size: 36px;
  font-weight: 800;
  color: #FFED4E;
  text-shadow: 0 0 25px rgba(255,215,0,0.7), 0 0 50px rgba(255,165,0,0.3), 0 3px 6px rgba(0,0,0,0.5);
  letter-spacing: 6px;
  margin-bottom: 20px;
  animation: celeb-chicken-reveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both;
}
@keyframes celeb-chicken-reveal {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 段位进阶展示 oldRank → newRank */
.celeb-rank-progression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  animation: celeb-text-slide-up 0.5s ease-out 0.7s both;
}
.celeb-old-rank {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}
.celeb-rank-arrow {
  font-size: 20px;
  color: #FFD700;
  animation: celeb-arrow-pulse 1s ease-in-out infinite;
}
@keyframes celeb-arrow-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(4px); opacity: 1; }
}
.celeb-new-rank {
  font-size: 18px;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.celebration-inner {
  position: relative;
  z-index: 99999;
  text-align: center;
  padding: 40px 30px;
  max-width: 420px;
  animation: celeb-scale-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes celeb-scale-in {
  0% { transform: scale(0.3) translateY(40px); opacity: 0; }
  60% { transform: scale(1.08) translateY(-5px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* 光环 */
.celeb-glow-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.3), inset 0 0 60px rgba(255, 215, 0, 0.2);
  animation: celeb-ring-expand 1.5s ease-out infinite;
  z-index: -1;
}
@keyframes celeb-ring-expand {
  0% { width: 200px; height: 200px; opacity: 0.8; }
  100% { width: 400px; height: 400px; opacity: 0; }
}

/* 光芒射线 */
.celeb-rays {
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg, rgba(255, 215, 0, 0.12) 10deg, transparent 20deg,
    transparent 40deg, rgba(255, 215, 0, 0.12) 50deg, transparent 60deg,
    transparent 80deg, rgba(255, 215, 0, 0.12) 90deg, transparent 100deg,
    transparent 120deg, rgba(255, 215, 0, 0.12) 130deg, transparent 140deg,
    transparent 160deg, rgba(255, 215, 0, 0.12) 170deg, transparent 180deg,
    transparent 200deg, rgba(255, 215, 0, 0.12) 210deg, transparent 220deg,
    transparent 240deg, rgba(255, 215, 0, 0.12) 250deg, transparent 260deg,
    transparent 280deg, rgba(255, 215, 0, 0.12) 290deg, transparent 300deg,
    transparent 320deg, rgba(255, 215, 0, 0.12) 330deg, transparent 340deg
  );
  border-radius: 50%;
  animation: celeb-rays-rotate 8s linear infinite;
  z-index: -1;
}
@keyframes celeb-rays-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 勋章图标 */
.celeb-badge-wrap {
  margin-bottom: 20px;
}
.celeb-badge-icon {
  font-size: 80px;
  display: inline-block;
  animation: celeb-badge-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             celeb-badge-glow 2s ease-in-out infinite alternate 0.8s;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}
@keyframes celeb-badge-bounce {
  0% { transform: scale(0) rotate(-180deg); }
  60% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes celeb-badge-glow {
  from { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)); }
  to { filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.8)); }
}

/* 标题 */
.celeb-title {
  font-size: 28px;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 8px;
  animation: celeb-text-slide-up 0.5s ease-out 0.3s both;
}
.celeb-rank-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  animation: celeb-text-slide-up 0.5s ease-out 0.5s both;
}
.celeb-rank-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto 20px;
  animation: celeb-text-slide-up 0.5s ease-out 0.7s both;
}
.celeb-story-subtitle {
  font-size: 16px;
  color: rgba(255, 215, 0, 0.8);
  font-style: italic;
  margin-bottom: 16px;
  animation: celeb-text-slide-up 0.5s ease-out 0.9s both;
}
@keyframes celeb-text-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 进度条 */
.celeb-progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  margin: 0 auto 24px;
  overflow: hidden;
  animation: celeb-text-slide-up 0.5s ease-out 1.1s both;
}
.celeb-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FF6B6B);
  border-radius: 3px;
  animation: celeb-progress-fill 1.2s ease-out 1.3s forwards;
}
@keyframes celeb-progress-fill {
  to { width: 100%; }
}

/* 高分庆祝 */
.celeb-score-badge {
  display: inline-block;
  margin-bottom: 16px;
  animation: celeb-badge-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.celeb-score-num {
  font-size: 64px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  line-height: 1;
}
.celeb-score-label {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}
.celeb-score-stars {
  margin-bottom: 20px;
  font-size: 32px;
}
.celeb-star {
  display: inline-block;
  animation: celeb-star-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  margin: 0 4px;
}
@keyframes celeb-star-pop {
  0% { transform: scale(0) rotate(-90deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 连击庆祝 */
.celeb-streak-badge {
  font-size: 72px;
  margin-bottom: 12px;
  animation: celeb-streak-pulse 0.6s ease-out;
}
@keyframes celeb-streak-pulse {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.celeb-streak-flames {
  margin: 12px 0 20px;
  font-size: 24px;
}
.celeb-flame {
  display: inline-block;
  animation: celeb-flame-flicker 0.4s ease-out both;
  margin: 0 2px;
}
@keyframes celeb-flame-flicker {
  0% { transform: scale(0) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* 成就庆祝 */
.celeb-ach-badge {
  font-size: 64px;
  margin-bottom: 12px;
  animation: celeb-badge-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.celeb-ach-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  animation: celeb-text-slide-up 0.5s ease-out 0.4s both;
}

/* 关闭按钮 */
.celebration-close-btn {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, #FFD700, #F8B739);
  color: #1a2332;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: celeb-text-slide-up 0.5s ease-out 1.3s both;
}
.celebration-close-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}
.celebration-close-btn:active {
  transform: translateY(0) scale(0.98);
}

/* 屏幕边框闪光 */
.celeb-screen-flash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99997;
  border: 0px solid transparent;
  transition: border-width 0.3s ease, border-color 0.3s ease;
  box-shadow: inset 0 0 0 0 transparent;
}
.celeb-screen-flash.gold.active {
  border: 4px solid rgba(255, 215, 0, 0.6);
  box-shadow: inset 0 0 80px rgba(255, 215, 0, 0.2);
}
.celeb-screen-flash.blue.active {
  border: 4px solid rgba(78, 205, 196, 0.5);
  box-shadow: inset 0 0 60px rgba(78, 205, 196, 0.15);
}

/* 音效开关按钮 */
.celeb-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.celeb-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
.celeb-sound-toggle .sound-icon {
  font-size: 16px;
}

/* 陪练模式题量标签 */
.coach-content-count {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gold-bg, rgba(255, 215, 0, 0.1));
  color: var(--gold, #d4a72c);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.coach-mode-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: var(--radius, 12px);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.coach-mode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.coach-mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold, #d4a72c), transparent);
  transition: left 0.5s;
}
.coach-mode-card:hover::before {
  left: 100%;
}
.coach-mode-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.coach-mode-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.coach-mode-desc {
  font-size: 13px;
  color: var(--text-light, #888);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .celebration-inner { padding: 30px 20px; max-width: 90%; }
  .celeb-title { font-size: 24px; }
  .celeb-rank-name { font-size: 18px; }
  .celeb-badge-icon, .celeb-streak-badge, .celeb-ach-badge { font-size: 60px; }
  .celeb-score-num { font-size: 52px; }
}

/* ========================================== */
/* 情景实战对话系统 */
/* ========================================== */
.scenario-combat-intro {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.scenario-combat-intro h2 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.scenario-combat-intro p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.sci-phases { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.sci-phase-chip { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 16px; font-size: 12px; font-weight: 600; }
.sci-phase-chip.p1 { background: #fef3c7; color: #92400e; }
.sci-phase-chip.p2 { background: #dbeafe; color: #1e40af; }
.sci-phase-chip.p3 { background: #fee2e2; color: #991b1b; }
.sci-phase-chip.p4 { background: #dcfce7; color: #166534; }

.scenario-cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.scf-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); font-size: 13px; cursor: pointer; transition: all 0.15s; }
.scf-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.scenario-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.scenario-card:hover { border-color: var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.scenario-card .sc-emoji { font-size: 28px; margin-bottom: 8px; }
.scenario-card .sc-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.scenario-card .sc-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; }
.scenario-card .sc-meta { display: flex; gap: 8px; }
.scenario-card .sc-level { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.scenario-card .sc-level.入门 { background: #dcfce7; color: #166534; }
.scenario-card .sc-level.初级 { background: #dbeafe; color: #1e40af; }
.scenario-card .sc-level.进阶 { background: #f3e8ff; color: #6b21a8; }
.scenario-card .sc-category { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #f3f4f6; color: var(--text-light); }
.scenario-card .sc-type-badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.scenario-card .sc-type-badge.eng { background: #dbeafe; color: #1e40af; }
.scenario-card .sc-type-badge.expr { background: #fef3c7; color: #92400e; }

/* 情景实战会话界面 */
.combat-session { max-width: 640px; margin: 0 auto; }

/* 沟通进度条 */
.combat-progress { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; padding: 10px 14px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
.cp-step { flex: 1; text-align: center; position: relative; }
.cp-step-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; margin: 0 auto 4px; border: 2px solid var(--border); background: var(--card); transition: all 0.3s; }
.cp-step.active .cp-step-dot { border-color: var(--navy); background: var(--navy); color: #fff; transform: scale(1.1); }
.cp-step.done .cp-step-dot { border-color: #22c55e; background: #22c55e; color: #fff; }
.cp-step-label { font-size: 10px; color: var(--text-light); white-space: nowrap; }
.cp-step.active .cp-step-label { color: var(--navy); font-weight: 600; }
.cp-step.done .cp-step-label { color: #22c55e; }
.cp-step-line { flex: 0.3; height: 2px; background: var(--border); margin-top: -16px; }
.cp-step-line.done { background: #22c55e; }

/* 场景信息卡 */
.combat-scene-card { background: #f0f4f8; border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; }
.combat-scene-emoji { font-size: 28px; flex-shrink: 0; }
.combat-scene-info { flex: 1; }
.combat-scene-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.combat-scene-context { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* 阶段提示 */
.combat-phase-banner { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.combat-phase-banner.p1 { background: #fef3c7; border-left: 4px solid #f59e0b; }
.combat-phase-banner.p2 { background: #dbeafe; border-left: 4px solid #3b82f6; }
.combat-phase-banner.p3 { background: #fee2e2; border-left: 4px solid #ef4444; }
.combat-phase-banner.p4 { background: #dcfce7; border-left: 4px solid #22c55e; }
.cpb-emoji { font-size: 20px; }
.cpb-text { flex: 1; }
.cpb-name { font-size: 14px; font-weight: 700; }
.cpb-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* 对话区域 */
.combat-dialogue-area { max-height: 300px; overflow-y: auto; padding: 10px; background: #f8f9fa; border-radius: var(--radius); margin-bottom: 10px; min-height: 160px; }
.combat-bubble { max-width: 80%; margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; animation: fadeInUp 0.2s; }
.combat-bubble.npc { background: #e3f2fd; border-bottom-left-radius: 4px; margin-right: auto; }
.combat-bubble.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; text-align: right; }
.combat-bubble.correct { background: #dcfce7; border: 2px solid #22c55e; border-bottom-right-radius: 4px; margin-left: auto; text-align: right; }
.combat-bubble.system { background: #fff; border: 1px dashed var(--border); text-align: center; margin: 0 auto; max-width: 90%; font-size: 12px; color: var(--text-light); }
.cb-bubble-text { font-weight: 500; }
.cb-bubble-cn { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.cb-bubble-label { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; opacity: 0.6; }

/* 反馈面板 */
.combat-feedback { margin-bottom: 10px; }
.combat-feedback-panel { padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; }
.combat-feedback-panel.good { background: #f0fdf4; border: 1px solid #86efac; }
.combat-feedback-panel.partial { background: #fffbeb; border: 1px solid #fcd34d; }
.combat-feedback-panel.unclear { background: #fef2f2; border: 1px solid #fca5a5; }
.cfp-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.cfp-detail { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* 正确表达展示 */
.combat-correct-box { background: #f0fdf4; border: 2px solid #22c55e; border-radius: 8px; padding: 12px; margin: 8px 0; }
.ccb-label { font-size: 11px; font-weight: 700; color: #166534; margin-bottom: 4px; }
.ccb-en { font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.ccb-cn { font-size: 12px; color: var(--text-light); }

/* 提示条 */
.combat-hint { background: #fffbeb; border-left: 3px solid #f59e0b; padding: 8px 12px; border-radius: 6px; font-size: 12px; color: #92400e; margin-bottom: 8px; }

/* 输入区 */
.combat-input-bar { display: flex; gap: 8px; align-items: flex-end; }
.combat-input-bar textarea { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; resize: none; outline: none; min-height: 44px; max-height: 120px; transition: border-color 0.15s; box-sizing: border-box; }
.combat-input-bar textarea:focus { border-color: var(--navy); }

/* 词汇/句型卡 */
.combat-vocab-card { background: #f8f9fa; border-radius: 8px; padding: 12px; margin-top: 12px; }
.cvc-title { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.cvc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cvc-tag { padding: 3px 10px; border-radius: 12px; font-size: 12px; background: #e0e7ff; color: var(--navy); }

/* 总结面板 */
.combat-summary { text-align: center; padding: 20px; }
.combat-summary h3 { font-size: 20px; color: var(--success); margin-bottom: 12px; }
.combat-reflection { background: #f0f4f8; border-radius: 8px; padding: 14px; margin: 12px 0; font-size: 14px; line-height: 1.6; color: var(--navy); text-align: left; }
.combat-phase-scores { display: flex; justify-content: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.cps-item { text-align: center; padding: 8px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); }
.cps-emoji { font-size: 20px; }
.cps-label { font-size: 10px; color: var(--text-light); }
.cps-result { font-size: 12px; font-weight: 700; }
.cps-result.pass { color: #22c55e; }
.cps-result.retry { color: #f59e0b; }

/* ========================================== */
/* 标点符号系统 */
/* ========================================== */

/* 标点速查浮动面板 */
.punct-quick-guide {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90%; max-width: 520px; max-height: 80vh; overflow: hidden;
  background: var(--card); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 10000; display: flex; flex-direction: column;
}
.pqg-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pqg-header h3 { font-size: 16px; color: var(--navy); }
.pqg-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-light); padding: 4px 8px; }
.pqg-tabs { display: flex; gap: 4px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.pqg-tab { padding: 4px 10px; border: 1px solid var(--border); border-radius: 12px; font-size: 12px; white-space: nowrap; cursor: pointer; background: var(--card); transition: all 0.15s; }
.pqg-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pqg-content { overflow-y: auto; padding: 14px 16px; flex: 1; }
.pqg-panel.hidden { display: none; }
.pqg-symbol { font-size: 36px; text-align: center; margin-bottom: 4px; }
.pqg-name { font-size: 14px; font-weight: 700; text-align: center; color: var(--navy); margin-bottom: 6px; }
.pqg-usage { font-size: 13px; color: var(--text-light); text-align: center; margin-bottom: 12px; line-height: 1.5; }
.pqg-section-title { font-size: 12px; font-weight: 700; color: var(--navy); margin: 10px 0 6px; }
.pqg-rules { list-style: none; padding: 0; margin: 0 0 8px; }
.pqg-rules li { font-size: 12px; color: var(--text); line-height: 1.6; padding: 4px 0 4px 16px; position: relative; }
.pqg-rules li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.pqg-example { background: #f8f9fa; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.pqg-ex-good { font-size: 13px; margin-bottom: 4px; }
.pqg-ex-bad { font-size: 13px; color: var(--text-light); text-decoration: line-through; margin-bottom: 4px; }
.pqg-ex-note { font-size: 11px; color: var(--text-light); font-style: italic; }
.pqg-tag { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 10px; font-weight: 700; margin-right: 6px; }
.pqg-tag.good { background: #dcfce7; color: #166534; }
.pqg-tag.bad { background: #fee2e2; color: #991b1b; }
.pqg-common { font-size: 12px; color: var(--navy); background: #eef2ff; border-radius: 6px; padding: 8px 10px; margin-top: 8px; line-height: 1.5; }

/* 标点诊断卡片 */
.punct-diagnosis-card { border-left: 4px solid var(--gold); }
.punct-diagnosis-card.good { border-left-color: var(--success); background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); }
.punct-diagnosis-card.ok { border-left-color: var(--warning); background: linear-gradient(135deg, #fffbeb 0%, #fff 100%); }
.punct-diagnosis-card.warn { border-left-color: var(--danger); background: linear-gradient(135deg, #fef2f2 0%, #fff 100%); }
.pdc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pdc-icon { font-size: 18px; }
.pdc-title { font-size: 15px; font-weight: 700; color: var(--navy); flex: 1; }
.pdc-score { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 12px; background: rgba(0,0,0,0.05); }
.punct-diagnosis-card.good .pdc-score { background: #dcfce7; color: #166534; }
.punct-diagnosis-card.ok .pdc-score { background: #fef3c7; color: #92400e; }
.punct-diagnosis-card.warn .pdc-score { background: #fee2e2; color: #991b1b; }
.pdc-summary { font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.pdc-marks-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 10px; }
.pdc-mark-item { text-align: center; padding: 6px 4px; border-radius: 6px; background: rgba(0,0,0,0.03); }
.pdc-mark-item.used { background: #e0e7ff; }
.pdc-mark-sym { display: block; font-size: 16px; }
.pdc-mark-count { display: block; font-size: 14px; font-weight: 700; color: var(--navy); }
.pdc-mark-name { display: block; font-size: 9px; color: var(--text-light); }
.pdc-issues { margin-bottom: 8px; }
.pdc-issue { padding: 8px 10px; border-radius: 6px; margin-bottom: 6px; }
.pdc-issue.high { background: #fef2f2; border-left: 3px solid #ef4444; }
.pdc-issue.medium { background: #fffbeb; border-left: 3px solid #f59e0b; }
.pdc-issue.low { background: #f0f9ff; border-left: 3px solid #3b82f6; }
.pdc-issue-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.pdc-issue-detail { font-size: 12px; color: var(--text-light); line-height: 1.4; margin-bottom: 4px; }
.pdc-issue-fix { font-size: 12px; color: var(--navy); font-weight: 500; }
.pdc-suggestions { margin-bottom: 8px; }
.pdc-suggestion { font-size: 12px; color: #166534; padding: 4px 10px; border-radius: 6px; background: #f0fdf4; margin-bottom: 4px; }
.pdc-guide-btn { margin-top: 4px; }

/* 标点速查浮动按钮 */
.punct-float-btn {
  position: absolute; top: -8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none;
  font-size: 14px; cursor: pointer; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.punct-float-btn:hover { transform: scale(1.15); }

/* 标点速查面板的遮罩层 */
.punct-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 9999; }

@media (max-width: 640px) {
  .pdc-marks-grid { grid-template-columns: repeat(4, 1fr); }
  .scenario-grid { grid-template-columns: 1fr; }
  .combat-progress { padding: 8px 6px; }
  .cp-step-label { font-size: 9px; }
}

/* ========== 动画音效预览面板 ========== */
.preview-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.preview-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.preview-btn:active {
  transform: translateY(0) scale(0.97);
}
.preview-btn-icon {
  font-size: 28px;
  line-height: 1;
}
.preview-btn-label {
  font-size: 12px;
  font-weight: 700;
  color: #78350f;
}
.preview-btn-desc {
  font-size: 10px;
  color: #92400e;
  opacity: 0.7;
  text-align: center;
  line-height: 1.3;
}
.preview-levelup { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.preview-highscore { background: linear-gradient(135deg, #fbbfce, #f472b6); }
.preview-streak { background: linear-gradient(135deg, #fed7aa, #fb923c); }
.preview-achievement { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.preview-complete { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.preview-coins { background: linear-gradient(135deg, #fef3c7, #fcd34d); }

@media (max-width: 640px) {
  .preview-btn-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 音标学习系统 ========== */
.phonics-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ph-filter-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.ph-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.phonics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.phonics-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.phonics-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.phonics-card.selected { border-color: var(--gold); background: #fbf6ec; }
.phonics-card.mastered { border-color: var(--success); background: #f0faf4; }
.ph-ipa { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.ph-name { font-size: 12px; color: var(--text-light); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-words { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-master-star { position: absolute; top: 4px; right: 6px; font-size: 12px; }
.ph-weak-dot {
  position: absolute; top: 8px; left: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
}

.phonics-weak-chip {
  padding: 7px 14px;
  border: 1.5px solid #fbd5d5;
  border-radius: 20px;
  background: #fef5f5;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.phonics-weak-chip:hover { background: var(--danger); color: #fff; }

.phonics-detail {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 4px;
  box-shadow: var(--shadow);
}
.pd-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-ipa {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 30px; font-weight: 800;
  flex-shrink: 0;
}
.pd-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.pd-type { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.pd-listen-all { margin-left: auto; }
.pd-section { margin-top: 12px; }
.pd-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pd-text { font-size: 14px; line-height: 1.7; color: var(--text); }
.pd-words { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-word {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
}
.pd-word:hover { border-color: var(--gold); background: #fbf6ec; }
.pd-w { font-size: 15px; font-weight: 700; }
.pd-cn { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.phonics-play-big {
  display: block;
  margin: 14px auto 0;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.phonics-play-big:active { transform: scale(0.96); }
.phonics-big-word {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  color: var(--navy);
  margin-top: 14px;
  letter-spacing: 1px;
}
.phonics-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.phonics-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.phonics-opt:hover { border-color: var(--gold); }
.po-label {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--border-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}
.po-text { font-family: "Segoe UI", "Arial", sans-serif; }
.phonics-opt.correct { border-color: var(--success); background: #f0faf4; }
.phonics-opt.wrong { border-color: var(--danger); background: #fef5f5; }
.phonics-opt.disabled { pointer-events: none; opacity: 0.85; }

/* 音标系统 移动端适配 */
@media (max-width: 767px) {
  .phonics-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ph-ipa { font-size: 20px; }
  .ph-name { font-size: 11px; }
  .ph-words { display: none; }
  .phonics-options { grid-template-columns: 1fr; gap: 8px; }
  .phonics-opt { padding: 14px; font-size: 24px; touch-action: manipulation; }
  .phonics-play-big { padding: 15px 32px; font-size: 16px; width: 100%; max-width: 300px; }
  .phonics-big-word { font-size: 32px; }
  .pd-listen-all { margin-left: 0; width: 100%; }
  .pd-word { padding: 12px 16px; }
}

/* ========== 音标教学卡 v2 / 跟读评测 / 训练营 ========== */
.pd-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0;
  font-size: 14px; line-height: 1.7; color: var(--text);
}
.pd-step-num {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
}
.pd-error-box {
  background: #fef5f5;
  border-left: 3px solid var(--danger);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px; line-height: 1.7; color: var(--text);
}
.pd-combo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}
.pd-combo-l {
  font-weight: 700; color: var(--navy);
  background: var(--border-light);
  padding: 4px 10px; border-radius: 6px;
  min-width: 90px; text-align: center;
}
.pd-combo-w {
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--card); padding: 4px 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.pd-combo-w:hover { border-color: var(--gold); }
.pd-pair-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-pair-vs {
  font-size: 12px; font-weight: 800; color: var(--gold-dark);
  background: #fbf6ec; padding: 4px 8px; border-radius: 50%;
}
/* 易混音对比教学 */
.pd-confuse-row { display: flex; align-items: stretch; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.pd-confuse-btn {
  flex: 1; min-width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 10px 8px; cursor: pointer;
  transition: var(--transition); font-size: 18px; font-weight: 800;
  font-family: 'Georgia', 'Times New Roman', serif;
}
.pd-confuse-btn:hover { border-color: var(--gold); background: #fbf6ec; }
.pd-confuse-sub { font-size: 11px; font-weight: 500; color: var(--text-light); font-family: inherit; }
.pd-confuse-tip {
  background: #fbf6ec; border-left: 3px solid var(--gold);
  border-radius: 6px; padding: 8px 10px; margin: 4px 0 8px;
  font-size: 12.5px; line-height: 1.6; color: var(--text);
}
.speak-eval-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 6px;
}
.speak-result { margin-top: 4px; }

/* 训练营 */
.camp-task-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; margin: 2px;
  border: 1.5px solid var(--border); border-radius: 18px;
  background: var(--card); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.camp-task-chip.done { border-color: var(--success); background: #f0faf4; color: var(--success); }
.camp-day-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 6px;
  font-size: 13px;
}
.camp-day-row.done { background: #f0faf4; }
.camp-day-row.current { background: #fbf6ec; border-left: 3px solid var(--gold); font-weight: 700; }
.camp-day-icon { width: 20px; text-align: center; }
.camp-day-num { font-weight: 700; width: 34px; color: var(--navy); }
.camp-day-title { flex: 1; }
.camp-day-type { font-size: 11px; color: var(--text-muted); }

@media (max-width: 767px) {
  .camp-day-title { font-size: 12px; }
  .pd-combo-l { min-width: 70px; font-size: 12px; }
  .camp-task-chip { padding: 8px 12px; touch-action: manipulation; }
}

/* ============================================================ */
/* ========== 17项增强功能层 (enhancements.js) 样式 ============ */
/* ============================================================ */

/* A1 每日智能计划 */
.enh-plan-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 8px; border-radius: 8px; margin-bottom: 4px;
  transition: var(--transition);
}
.enh-plan-item:hover { background: var(--border-light); }
.enh-plan-item.done { opacity: 0.55; }
.enh-plan-item.done .enh-plan-title { text-decoration: line-through; }
.enh-plan-check { display: flex; align-items: center; margin-top: 3px; cursor: pointer; }
.enh-plan-check input { width: 18px; height: 18px; accent-color: var(--gold-dark); cursor: pointer; }
.enh-plan-body { flex: 1; cursor: pointer; }
.enh-plan-title { font-size: 14px; font-weight: 600; color: var(--text); }
.enh-plan-tag {
  font-size: 11px; font-weight: normal; color: var(--gold-dark);
  background: rgba(201,169,110,0.14); padding: 1px 7px; border-radius: 10px; margin-left: 5px;
}
.enh-plan-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* A2 周报 + C5 教练复盘 */
.enh-week-dates { font-size: 12px; color: var(--text-light); font-weight: normal; margin-left: 8px; }
.enh-week-stats {
  display: flex; justify-content: space-around; text-align: center;
  padding: 10px 0; margin-bottom: 6px;
}
.enw { flex: 1; }
.enw b { display: block; font-size: 24px; color: var(--navy); line-height: 1.2; }
.enw span { font-size: 12px; color: var(--text-light); }
.enh-radar-caption { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.enh-radar { max-width: 100%; }
.enh-coach-box {
  background: linear-gradient(135deg, #fbf6ec, #f6efdd);
  border: 1px solid var(--gold); border-radius: 10px;
  padding: 12px 14px; margin-top: 10px;
}
.enh-coach-title { font-size: 13px; font-weight: 700; color: var(--gold-dark); margin-bottom: 6px; }
.enh-coach-box p { font-size: 13px; line-height: 1.7; color: var(--text); margin-bottom: 4px; }

/* C2 防挫败 */
.enh-frustration { border-left: 4px solid var(--info); }
.enh-absent-card { border-left: 4px solid var(--warning); }

/* C3 里程碑 */
.enh-ms-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 4px;
}
.enh-ms {
  text-align: center; padding: 10px 6px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--card); opacity: 0.75;
}
.enh-ms.unlocked {
  opacity: 1; border-color: var(--gold);
  background: linear-gradient(160deg, #fdf9ef, #fbf6ec);
}
.enh-ms-icon { font-size: 22px; }
.enh-ms-name { font-size: 12px; font-weight: 700; color: var(--text); margin-top: 4px; }
.enh-ms-bar { height: 4px; background: var(--border-light); border-radius: 2px; margin: 5px 4px 4px; overflow: hidden; }
.enh-ms-bar div { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s; }
.enh-ms-desc { font-size: 10px; color: var(--text-muted); }

/* A6 目标 */
.enh-goal-row { padding: 8px 0; border-bottom: 1px dashed var(--border-light); }
.enh-goal-row:last-child { border-bottom: none; }
.enh-goal-manage { display: flex; align-items: center; gap: 10px; }
.enh-goal-name { font-size: 13px; font-weight: 600; color: var(--text); }
.enh-goal-val { font-size: 12px; color: var(--text-light); }
.enh-goal-bar { height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.enh-goal-bar div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 3px; transition: width 0.4s; }
.enh-goal-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.enh-goal-add input, .enh-goal-add select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px;
  background: var(--card); color: var(--text);
}

/* B4 分段选择器 */
.enh-seg {
  display: inline-flex; gap: 0;
  border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden;
}
.enh-seg-btn {
  padding: 7px 14px; border: none; background: var(--card);
  font-size: 13px; color: var(--text-light); cursor: pointer; transition: var(--transition);
}
.enh-seg-btn + .enh-seg-btn { border-left: 1px solid var(--border); }
.enh-seg-btn.active { background: var(--navy); color: #fff; font-weight: 600; }

/* 云端同步 */
.enh-sync-status {
  margin-top: 10px; font-size: 12px; padding: 8px 12px;
  border-radius: 6px; background: var(--border-light); color: var(--text-light);
}
.enh-sync-status.ok { background: #f0faf4; color: var(--success); }
.enh-sync-status.err { background: #fdf0f0; color: var(--danger); }
.enh-sync-status.warn { background: #fdf6ec; color: var(--warning); }
.enh-sync-status.testing { color: var(--info); }

/* B1 一分钟快练 */
.enh-qp-timer {
  float: right; font-size: 18px; font-weight: 800; color: var(--navy);
  background: var(--border-light); border-radius: 8px; padding: 2px 12px;
}
.enh-qp-timer.danger { color: var(--danger); background: #fdf0f0; animation: qpPulse 1s infinite; }
@keyframes qpPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.enh-qp-progress { height: 5px; background: var(--border-light); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.enh-qp-progress div { height: 100%; background: var(--gold); transition: width 0.3s; }
.enh-qp-q { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; min-height: 44px; }
.enh-qp-src { font-size: 11px; color: var(--gold-dark); background: rgba(201,169,110,0.14); padding: 2px 8px; border-radius: 10px; margin-right: 6px; }
.enh-qp-opt {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--card); font-size: 14px; color: var(--text);
  cursor: pointer; transition: var(--transition);
}
.enh-qp-opt:hover { border-color: var(--gold); }
.enh-qp-opt.right { border-color: var(--success); background: #f0faf4; color: var(--success); font-weight: 700; }
.enh-qp-opt.wrong { border-color: var(--danger); background: #fdf0f0; color: var(--danger); }
.enh-qp-score { font-size: 13px; color: var(--text-light); margin-top: 10px; }
.enh-qp-end { text-align: center; padding: 20px 0; font-size: 15px; }
.enh-qp-final { font-size: 42px; font-weight: 800; color: var(--gold-dark); margin: 10px 0; }

/* A3 难度自适应 */
.enh-adaptive-card { border-top: 3px solid var(--info); }
.enh-level-gold { border-top-color: var(--gold); }
.enh-level-green { border-top-color: var(--success); }
.enh-level-orange { border-top-color: var(--warning); }

/* A4 错题归因 */
.enh-attribution-card { border-top: 3px solid var(--danger); }
.enh-cluster {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 8px; background: var(--card);
}
.enh-cluster-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.enh-cluster-n { font-size: 12px; font-weight: 700; color: var(--danger); }
.enh-cluster-meta { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.enh-cluster-worst { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-style: italic; }

/* B3 素材收藏 + 全局搜索 */
.enh-fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 18px; cursor: pointer; color: var(--text-muted);
  border-radius: 50%; transition: var(--transition);
}
.enh-fav-btn:hover { background: var(--border-light); }
.enh-fav-btn.faved { color: #f5a623; }
.enh-gsearch { margin: 10px 0 6px; }
.enh-gs-group { font-size: 12px; font-weight: 700; color: var(--text-light); margin: 10px 0 4px; }
.enh-gs-item {
  font-size: 13px; padding: 8px 10px; border-radius: 6px;
  background: var(--border-light); margin-bottom: 4px; color: var(--text);
}

/* A5 慢速示范 */
.enh-slow-btn { white-space: nowrap; }

/* B6 移动端底部导航 */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav .bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 7px 0 6px; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav .bn-icon { font-size: 20px; line-height: 1.15; }
.bottom-nav .bn-label { font-size: 10px; color: #b9c3d6; margin-top: 1px; }
.bottom-nav .bn-item.active .bn-label { color: var(--gold-light); font-weight: 700; }
.bottom-nav .bn-item.active .bn-icon { transform: scale(1.12); }

/* ========== 深色模式 ========== */
html[data-theme="dark"] {
  --bg: #12161f;
  --card: #1b2130;
  --text: #dfe6f2;
  --text-light: #93a0b8;
  --text-muted: #6b7a94;
  --border: #2c3547;
  --border-light: #232c3d;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.55);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .card { background: var(--card); }
html[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #10141d 0%, #0c1017 100%); }
html[data-theme="dark"] .topbar { background: var(--card); border-color: var(--border); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select {
  background: #232c3d; color: var(--text); border-color: var(--border);
}
html[data-theme="dark"] .enh-seg-btn { background: var(--card); color: var(--text-light); }
html[data-theme="dark"] .enh-seg-btn.active { background: var(--gold-dark); color: #1b2130; }
html[data-theme="dark"] .enh-coach-box { background: linear-gradient(135deg, #232c3d, #1f2739); border-color: var(--gold-dark); }
html[data-theme="dark"] .enh-coach-box p { color: var(--text); }
html[data-theme="dark"] .enh-ms.unlocked { background: linear-gradient(160deg, #242e42, #1f2739); }
html[data-theme="dark"] .camp-task-chip.done { background: #1d2b33; }
html[data-theme="dark"] .camp-day-row.done { background: #1d2b33; }
html[data-theme="dark"] .camp-day-row.current { background: #2a2620; }
html[data-theme="dark"] .enh-sync-status.ok { background: #1d2b33; }
html[data-theme="dark"] .enh-sync-status.err { background: #33201f; }
html[data-theme="dark"] .enh-sync-status.warn { background: #33291f; }
html[data-theme="dark"] .enh-qp-opt.right { background: #1d2b33; }
html[data-theme="dark"] .enh-qp-opt.wrong { background: #33201f; }
html[data-theme="dark"] .enh-qp-timer.danger { background: #33201f; }
html[data-theme="dark"] .enh-qp-timer { background: var(--border-light); color: var(--text); }
html[data-theme="dark"] .pd-confuse-btn { background: var(--card); }
html[data-theme="dark"] .pd-confuse-btn:hover { background: #232c3d; }
html[data-theme="dark"] .pd-confuse-tip { background: #232c3d; color: var(--text); }
html[data-theme="dark"] .pd-pair-vs { background: #232c3d; color: var(--gold); }
/* 兜底：常见浅色内联背景 */
html[data-theme="dark"] .card [style*="background:#f8f6f0"],
html[data-theme="dark"] .card [style*="background:#f0fdf4"],
html[data-theme="dark"] .card [style*="background:#f0fff4"],
html[data-theme="dark"] .card [style*="background:#fbf6ec"],
html[data-theme="dark"] .card [style*="background:#fed7d7"],
html[data-theme="dark"] .card [style*="background:#fdf6ec"] {
  background: #232c3d !important;
  color: var(--text) !important;
}

/* ========== 字号缩放 ========== */
html[data-fontscale="1.1"] .content { font-size: 15.4px; }
html[data-fontscale="1.25"] .content { font-size: 17.5px; }
html[data-fontscale="1.1"] .enh-plan-desc,
html[data-fontscale="1.25"] .enh-plan-desc { font-size: inherit; }

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .bottom-nav { display: flex; }
  .main .command-bar { display: none; }
  .main .content { padding-bottom: 76px; }
  .bottom-nav .bn-item { padding: 8px 0 7px; }
  .enh-ms-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .enh-week-stats { padding: 8px 0; }
  .enw b { font-size: 20px; }
  .enh-week-stats:has(.enw) { flex-wrap: wrap; }
  .enh-qp-opt { padding: 14px; font-size: 15px; }
  .enh-plan-item { padding: 10px 6px; }
  .enh-plan-check input { width: 22px; height: 22px; }
  .enh-goal-add input, .enh-goal-add select { font-size: 16px; }
  .enh-seg-btn { padding: 10px 14px; }
  /* 输入防 iOS 缩放 */
  .content input[type="text"], .content input[type="number"],
  .content textarea, .content select { font-size: 16px; }
}

/* 收藏按钮定位基准 + 深色补丁 */
.mat-item { position: relative; }
html[data-theme="dark"] .mat-item { background: var(--card); }
html[data-theme="dark"] .reward-item,
html[data-theme="dark"] .mat-review-item,
html[data-theme="dark"] .guide-module-row { color: var(--text); }
html[data-theme="dark"] .badge,
html[data-theme="dark"] .mat-cat-badge { filter: brightness(0.85); }
