/* ==========================================================
   初中英语语法 · 30天通关手账
   主体：温暖书院 / 学霸手账风（清爽护眼、专业可信）
   游戏盒：复古马里奥横版像素风格（仅限互动闯关区域）
   打印：@media print A4 无损纯净教辅与试卷模式
   ========================================================== */

:root {
  --paper: #faf8f3;
  --paper-card: #ffffff;
  --paper-warm: #f5f0e4;
  --ink: #1f2933;
  --ink-soft: #4b5563;
  --ink-muted: #6b7280;
  --line: #e6dfd1;
  --line-strong: #d5cbb8;

  --forest: #246a4d;
  --forest-dark: #194d38;
  --forest-soft: #eaf5ef;
  --forest-border: #bfe2cf;

  --amber: #d97706;
  --amber-soft: #fef5e7;
  --amber-border: #f8d59b;

  --sky: #2563eb;
  --sky-soft: #eff6ff;

  --coral: #dc2626;
  --coral-soft: #fef2f2;

  --shadow-sm: 0 2px 8px rgba(31, 41, 51, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel: "Courier New", "Consolas", "Monaco", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(36, 106, 77, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font-family: inherit;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 4px 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(36, 106, 77, 0.25);
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-warm);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.nav-pill {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-pill:hover {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.65);
}

.nav-pill.active {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 2px 8px rgba(36, 106, 77, 0.25);
}

.top-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.icon-toggle {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.icon-toggle:hover {
  border-color: var(--forest);
  color: var(--forest);
}

/* ---------- 通用按钮与卡片 ---------- */
.app-main {
  padding: 28px 0 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 4px 14px rgba(36, 106, 77, 0.22);
}

.btn-primary:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.btn-amber {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.22);
}

.btn-amber:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--forest);
  border-color: var(--forest-border);
}

.btn-outline:hover {
  background: var(--forest-soft);
  border-color: var(--forest);
}

.btn-ghost {
  background: var(--paper-warm);
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #ebe4d4;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 9px;
}

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.highlight-mark {
  background: linear-gradient(transparent 55%, #fde68a 55%);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* ---------- 首页 Hero & 六大体系 ---------- */
.hero-banner {
  background: linear-gradient(135deg, #1d5940 0%, #2a7b59 55%, #378f69 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(25, 77, 56, 0.18);
  margin-bottom: 24px;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 241, 184, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-desc {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn-light {
  background: #fffbeb;
  color: #164e37;
  border: none;
}

.hero-btn-light:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

.hero-btn-glass {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.hero-btn-glass:hover {
  background: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.hero-progress-box {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(6px);
}

.hero-progress-box h4 {
  margin: 0 0 12px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fde047, #fb923c);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.hero-mini-stat {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 8px 6px;
}

.hero-mini-stat strong {
  display: block;
  font-size: 18px;
  color: #fef08a;
}

.hero-mini-stat span {
  font-size: 11.5px;
  opacity: 0.9;
}

/* 家长安心四卖点条 */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.trust-icon {
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.trust-item span {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* 六大体系总览 */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 28px 0 14px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

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

.system-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.system-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.system-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.system-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* 30 天课程大纲卡片 */
.stage-block {
  margin-top: 28px;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--line-strong);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.stage-badge {
  display: inline-block;
  background: var(--forest-soft);
  color: var(--forest);
  border: 1px solid var(--forest-border);
  font-weight: 800;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 8px;
  margin-right: 8px;
}

.stage-title {
  font-size: 17px;
  font-weight: 800;
}

.stage-summary {
  font-size: 13px;
  color: var(--ink-muted);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lesson-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.lesson-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lesson-card.unlocked {
  border-color: var(--forest);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  box-shadow: 0 6px 20px rgba(36, 106, 77, 0.1);
}

.lesson-card.locked {
  opacity: 0.88;
}

.lesson-num-col {
  width: 62px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-align: center;
}

.lesson-card.unlocked .lesson-num-col {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.lesson-num-col .day-lbl {
  font-size: 11px;
  opacity: 0.8;
}

.lesson-num-col .num-lbl {
  font-size: 14px;
  font-weight: 800;
}

.lesson-body {
  flex: 1;
  min-width: 0;
}

.lesson-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.lesson-card h4 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
}

.tag-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest);
}

.tag-chip.hot {
  background: #fff1f2;
  color: #e11d48;
}

.tag-chip.mvp {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.lesson-desc {
  margin: 6px 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.lesson-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.meta-pill {
  background: var(--paper-warm);
  padding: 2px 8px;
  border-radius: 6px;
}

.meta-pill.game-pill {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.lesson-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 3 分钟语法体检页 ---------- */
.diag-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.diag-header {
  text-align: center;
  margin-bottom: 22px;
}

.diag-header h1 {
  margin: 8px 0 6px;
  font-size: 25px;
}

.diag-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.diag-card {
  padding: 28px 30px;
}

.diag-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}

.diag-bar {
  height: 8px;
  background: var(--paper-warm);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.diag-bar-fill {
  height: 100%;
  background: var(--forest);
  transition: width 0.3s ease;
}

.diag-q-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  margin-bottom: 10px;
}

.diag-prompt {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}

.diag-sentence {
  background: var(--paper-warm);
  border-left: 4px solid var(--forest);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.diag-options {
  display: grid;
  gap: 10px;
}

.diag-opt {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.diag-opt:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.diag-opt.selected {
  border-color: var(--forest);
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px rgba(36, 106, 77, 0.12);
}

.opt-letter {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--paper-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.diag-opt.selected .opt-letter {
  background: var(--forest);
  color: #fff;
}

.diag-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

/* 体检报告单（高颜值可截图） */
.report-card {
  padding: 30px;
  border: 2px solid var(--forest-border);
  background: linear-gradient(180deg, #fff 0%, #f8fcf9 100%);
}

.report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--line-strong);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.report-score-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(36, 106, 77, 0.25);
}

.report-score-circle strong {
  font-size: 28px;
  line-height: 1;
}

.report-score-circle span {
  font-size: 12px;
  opacity: 0.9;
}

.dim-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
}

.dim-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.dim-row-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.dim-bar {
  height: 10px;
  background: var(--paper-warm);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.dim-rec {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 单讲互动讲义页 ---------- */
.lesson-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.lesson-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lesson-hero {
  background: linear-gradient(135deg, #1f5c43 0%, #2f7d5c 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.lesson-hero-num {
  position: absolute;
  right: 24px;
  top: 10px;
  font-size: 76px;
  font-weight: 900;
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}

.lesson-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lesson-hero-tag {
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.lesson-hero h1 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.3;
}

.lesson-hero p {
  margin: 0;
  opacity: 0.92;
  font-size: 14.5px;
}

.goals-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 22px;
}

.goals-box h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  color: #92400e;
}

.goals-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.goals-list li {
  font-size: 14px;
  color: #451a03;
  display: flex;
  gap: 8px;
}

.module-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.module-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--forest);
  color: #fff;
  padding: 6px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.module-pill.amber { background: #d97706; }
.module-pill.sky { background: #2563eb; }
.module-pill.coral { background: #dc2626; }
.module-pill.purple { background: #7c3aed; }

/* 对话破冰气泡 */
.dialogue-list {
  display: grid;
  gap: 12px;
}

.bubble-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bubble-row.teacher {
  flex-direction: row-reverse;
}

.bubble-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.bubble-content {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
}

.bubble-row.teacher .bubble-content {
  background: var(--forest-soft);
  border-color: var(--forest-border);
}

.bubble-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

/* 互动实验室：造句小汽车 */
.car-lab-stage {
  background: linear-gradient(180deg, #f3f9f6 0%, #faf8f3 100%);
  border: 1.5px dashed var(--forest-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.car-svg-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.car-svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  overflow: visible;
}

.car-hotspot {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.car-hotspot:hover {
  filter: brightness(1.06);
}

.car-hotspot.active {
  filter: drop-shadow(0 0 8px rgba(217, 119, 6, 0.55));
}

.car-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.car-tab {
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.car-tab strong {
  display: block;
  font-size: 14.5px;
}

.car-tab span {
  font-size: 12px;
  color: var(--ink-muted);
}

.car-tab.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
  transform: translateY(-2px);
}

.car-tab.active span {
  color: rgba(255, 255, 255, 0.88);
}

.car-detail-panel {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.car-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.car-example-box {
  background: var(--paper-warm);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.en-big {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.zh-sub {
  font-size: 13px;
  color: var(--ink-soft);
}

.speak-btns {
  display: inline-flex;
  gap: 6px;
}

.speak-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.speak-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--forest-soft);
}

/* 四大词性手账精讲卡片 */
.pos-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pos-card {
  border-radius: 16px;
  padding: 18px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pos-code {
  font-size: 20px;
  font-weight: 900;
}

.pos-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.pos-clues {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.pos-ex-row {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pos-secret {
  margin-top: auto;
  background: #fff;
  border-left: 3px solid currentColor;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  font-weight: 700;
}

/* 真实句子点击拆词性 */
.sentence-lab-box {
  background: var(--paper-warm);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.word-token {
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.word-token:hover {
  transform: translateY(-2px);
}

.word-token.pos-n.revealed { background: #fef3c7; border-color: #d97706; color: #92400e; }
.word-token.pos-v.revealed { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.word-token.pos-adj.revealed { background: #dbeafe; border-color: #2563eb; color: #1e40af; }
.word-token.pos-adv.revealed { background: #dcfce7; border-color: #15803d; color: #166534; }
.word-token.pos-art.revealed { background: #f3f4f6; border-color: #9ca3af; color: #374151; }

.token-inspector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ==========================================================
   独立嵌入的马里奥像素闯关游戏盒（只在这里是像素风！）
   ========================================================== */
.mario-section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mario-cabinet {
  background: #222533;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.12);
  border: 4px solid #353b52;
  color: #fff;
}

.mario-bezel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px 10px;
  font-family: var(--font-pixel);
  font-size: 12.5px;
  color: #cbd5e1;
}

.cabinet-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.cabinet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.cabinet-dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.mario-screen {
  border: 4px solid #0f172a;
  border-radius: 10px;
  overflow: hidden;
  background: #5c94fc;
  position: relative;
  user-select: none;
}

/* 像素 HUD 栏 */
.mario-hud {
  background: #141824;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-pixel);
  font-size: 13px;
  border-bottom: 3px solid #000;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hud-item span {
  color: #94a3b8;
  font-size: 11px;
  display: block;
  line-height: 1;
}

.hud-item strong {
  color: #fde047;
  font-size: 15px;
}

.hud-hearts {
  letter-spacing: 2px;
  font-size: 15px;
}

/* 题目黑板条（中文清晰字体，保证零基础绝不费眼） */
.mario-question-bar {
  background: rgba(15, 23, 42, 0.88);
  padding: 12px 18px;
  border-bottom: 3px solid #000;
  text-align: center;
}

.mq-stage {
  font-size: 12px;
  color: #fde047;
  font-weight: 700;
  margin-bottom: 4px;
}

.mq-sentence {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.mq-sentence .mq-target {
  display: inline-block;
  background: #facc15;
  color: #111827;
  padding: 1px 10px;
  border-radius: 6px;
  border: 2px solid #92400e;
  margin: 0 3px;
}

.mq-sub {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* 横版像素主舞台 */
.mario-stage {
  position: relative;
  height: 290px;
  background: linear-gradient(180deg, #5c94fc 0%, #80b3ff 75%, #9bd0ff 100%);
  overflow: hidden;
}

/* 像素白云 */
.px-cloud {
  position: absolute;
  top: 22px;
  width: 68px;
  height: 22px;
  background: #fff;
  box-shadow:
    14px -10px 0 0 #fff,
    30px -6px 0 0 #fff,
    0 4px 0 0 #dbeafe;
  opacity: 0.92;
  animation: cloudFloat 16s linear infinite;
}

.px-cloud.c2 {
  top: 44px;
  left: 58%;
  transform: scale(0.8);
  animation-duration: 22s;
}

@keyframes cloudFloat {
  0% { transform: translateX(-80px); }
  100% { transform: translateX(880px); }
}

/* 像素远山草丛 */
.px-hill {
  position: absolute;
  bottom: 46px;
  left: 24px;
  width: 110px;
  height: 52px;
  background: #22a746;
  border: 3px solid #0e5a24;
  border-bottom: none;
  border-radius: 55px 55px 0 0;
}

.px-pipe {
  position: absolute;
  bottom: 46px;
  left: 16px;
  width: 48px;
  height: 58px;
  background: linear-gradient(90deg, #27c93f 0%, #74ee84 28%, #169c2d 70%, #0f6e1f 100%);
  border: 3px solid #000;
  border-bottom: none;
}

.px-pipe::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -7px;
  width: 56px;
  height: 16px;
  background: linear-gradient(90deg, #27c93f 0%, #86f795 30%, #169c2d 75%, #0f6e1f 100%);
  border: 3px solid #000;
}

/* 4 个经典像素 ? 问号砖块 */
.brick-row {
  position: absolute;
  top: 58px;
  left: 14%;
  right: 24%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  z-index: 5;
}

.q-brick {
  position: relative;
  background: #f59e0b;
  border: 3px solid #000;
  box-shadow:
    inset 3px 3px 0 #fde68a,
    inset -3px -3px 0 #b45309,
    0 5px 0 rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 8px 4px 7px;
  cursor: pointer;
  text-align: center;
  color: #1f1300;
  transition: transform 0.1s ease;
}

.q-brick:hover {
  transform: translateY(-3px);
  background: #fbbf24;
}

.q-brick:active {
  transform: translateY(1px);
}

.q-brick.bumping {
  animation: brickBump 0.34s ease;
}

.q-brick.hit-ok {
  background: #92400e;
  box-shadow: inset 3px 3px 0 #b45309, inset -3px -3px 0 #451a03;
  color: #fef3c7;
}

.q-brick.hit-wrong {
  animation: brickShake 0.35s ease;
  background: #ef4444;
  color: #fff;
}

@keyframes brickBump {
  0% { transform: translateY(0); }
  45% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

@keyframes brickShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.q-mark {
  font-family: var(--font-pixel);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 2px 2px 0 #78350f;
}

.q-label {
  font-size: 13px;
  font-weight: 900;
  margin-top: 3px;
  line-height: 1.15;
}

.q-sub {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
}

.q-key {
  position: absolute;
  top: -10px;
  right: -6px;
  background: #111827;
  color: #fde047;
  border: 2px solid #000;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 0 5px;
  border-radius: 4px;
}

/* 蹦出的金币动画 */
.pop-coin {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
  animation: coinPop 0.65s ease-out forwards;
}

@keyframes coinPop {
  0% { opacity: 1; transform: translate(-50%, 6px) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -26px) scale(1.25); }
  100% { opacity: 0; transform: translate(-50%, -44px) scale(1); }
}

/* 像素红帽小冒险家 */
.px-hero {
  position: absolute;
  bottom: 46px;
  left: 18%;
  width: 44px;
  height: 52px;
  transition: left 0.24s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 6;
}

.px-hero.jumping {
  animation: heroJump 0.42s cubic-bezier(0.3, 0.9, 0.4, 1);
}

@keyframes heroJump {
  0% { transform: translateY(0); }
  48% { transform: translateY(-92px); }
  100% { transform: translateY(0); }
}

/* 飞向 Boss 的火球 */
.px-fireball {
  position: absolute;
  bottom: 108px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 20%, #f97316 65%, #dc2626 100%);
  border: 2px solid #000;
  z-index: 8;
  animation: fireFly 0.42s ease-in forwards;
}

@keyframes fireFly {
  0% { transform: translate(0, 0) scale(0.9); opacity: 1; }
  100% { transform: translate(240px, 28px) scale(1.3); opacity: 0; }
}

/* 右侧像素小 Boss */
.px-boss-zone {
  position: absolute;
  right: 22px;
  bottom: 46px;
  width: 132px;
  text-align: center;
  z-index: 5;
}

.boss-hp-wrap {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid #000;
  border-radius: 6px;
  padding: 4px 6px;
  margin-bottom: 6px;
}

.boss-name {
  font-size: 11px;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 3px;
}

.boss-hp-bar {
  height: 8px;
  background: #334155;
  border: 1px solid #000;
  overflow: hidden;
}

.boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transition: width 0.35s ease;
}

.px-boss-sprite {
  display: inline-block;
  animation: bossBounce 1.4s ease-in-out infinite;
}

.px-boss-sprite.hurt {
  animation: bossHurt 0.4s ease;
}

.px-boss-sprite.defeated {
  transform: translateY(30px) rotate(90deg);
  opacity: 0.25;
  animation: none;
  transition: all 0.5s ease;
}

@keyframes bossBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes bossHurt {
  0%, 100% { filter: none; transform: translateX(0); }
  25% { filter: brightness(2.5); transform: translateX(8px); }
  60% { filter: brightness(2); transform: translateX(-6px); }
}

/* 像素红砖地面 */
.px-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 46px;
  background-color: #c84c0c;
  background-image:
    linear-gradient(180deg, #4ade80 0, #4ade80 8px, #15803d 8px, #15803d 12px, transparent 12px),
    repeating-linear-gradient(90deg, #000 0, #000 2px, transparent 2px, transparent 34px),
    repeating-linear-gradient(180deg, transparent 12px, transparent 28px, #000 28px, #000 30px);
  border-top: 3px solid #000;
}

/* 像素反馈底栏 */
.mario-feedback-bar {
  background: #141824;
  border-top: 3px solid #000;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 62px;
}

.mf-msg {
  font-size: 13.5px;
  color: #e2e8f0;
  flex: 1;
}

.mf-msg.ok { color: #86efac; }
.mf-msg.err { color: #fca5a5; }

.mario-win-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 20;
}

.win-medal {
  font-size: 52px;
  margin-bottom: 6px;
}

.mario-win-overlay h3 {
  margin: 0 0 6px;
  color: #fde047;
  font-size: 22px;
}

.mario-win-overlay p {
  margin: 0 0 16px;
  color: #e2e8f0;
  font-size: 14px;
}

/* ---------- 避坑诊所（翻牌排雷） ---------- */
.traps-grid {
  display: grid;
  gap: 14px;
}

.trap-card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fffdfb;
}

.trap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.trap-tag {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
}

.trap-sentence {
  background: var(--paper-warm);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.trap-sentence small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 3px;
}

.trap-judge-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trap-reveal {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 14px;
}

.trap-reveal .trap-right {
  color: #166534;
  font-weight: 800;
  margin: 6px 0;
}

.trap-reveal .trap-rule {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 8px;
}

/* ---------- 家长 1 分钟验收卡 ---------- */
.parent-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.parent-box h3 {
  margin: 0 0 6px;
  color: #78350f;
  font-size: 18px;
}

.parent-item {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}

.parent-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 14.5px;
}

.parent-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--forest-dark);
  background: var(--forest-soft);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------- 配套专项练习册页 ---------- */
.practice-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.exam-sheet-header {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 20px;
}

.exam-title-center {
  text-align: center;
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.exam-title-center h1 {
  margin: 6px 0;
  font-size: 22px;
}

.exam-meta-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.exam-student-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.info-line {
  border-bottom: 1px solid var(--ink-muted);
  padding-bottom: 4px;
}

.exam-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 18px;
}

.exam-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px dashed var(--line-strong);
  padding-bottom: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.exam-sec-head h3 {
  margin: 0;
  font-size: 16.5px;
  color: var(--forest-dark);
}

.exam-passage {
  background: var(--paper-warm);
  border-left: 4px solid var(--forest);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.exam-q {
  padding: 14px 0;
  border-bottom: 1px solid #f1ece0;
}

.exam-q:last-child {
  border-bottom: none;
}

.exam-q-prompt {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.exam-opts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.exam-opt-btn {
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.exam-opt-btn:hover {
  border-color: var(--forest);
}

.exam-opt-btn.picked {
  background: var(--forest-soft);
  border-color: var(--forest);
  color: var(--forest-dark);
}

.exam-opt-btn.correct {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
}

.exam-opt-btn.wrong {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.exam-fill-input {
  width: 240px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.exam-fill-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 106, 77, 0.12);
}

.exam-explain {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  background: #f8fafc;
  border-left: 3px solid var(--forest);
}

.exam-explain.err {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.score-summary-bar {
  background: linear-gradient(135deg, #1d5940, #2f7d5c);
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: none;
  background: var(--paper-warm);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.modal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--forest);
  background: var(--forest-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.modal-title {
  margin: 10px 0 8px;
  font-size: 19px;
}

.modal-desc {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.modal-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #78350f;
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 触屏防双击放大 */
button, .lesson-card, .q-brick, .match-tile, .dojo-word-btn, .chunk-btn, .hat-item-btn, .car-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   A4 极致纯净打印样式（自动隐藏游戏盒、按钮、彩色背景）
   ========================================================== */
@media print {
  @page {
    size: A4;
    margin: 14mm 14mm;
  }

  html, body {
    background: #fff !important;
    background-image: none !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.55;
  }

  .no-print,
  .topbar,
  .lesson-toolbar,
  .mario-cabinet-wrapper,
  .speak-btns,
  .trap-judge-btns,
  .practice-submit-bar,
  .score-summary-bar {
    display: none !important;
  }

  .app-main {
    padding: 0 !important;
  }

  .lesson-wrap, .practice-wrap, .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .lesson-hero {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    padding: 14px 18px !important;
    box-shadow: none !important;
  }

  .lesson-hero-tag {
    border: 1px solid #666;
    color: #000;
    background: transparent !important;
  }

  .module-block, .card, .pos-card, .trap-card, .exam-section, .parent-box {
    box-shadow: none !important;
    border: 1px solid #999 !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
  }

  .module-pill {
    background: #eee !important;
    color: #000 !important;
    border: 1px solid #000;
  }

  /* 打印讲义时自动展开所有排雷解析与家长验收答案 */
  .trap-reveal {
    display: block !important;
    background: #f9f9f9 !important;
    border: 1px solid #ccc !important;
  }

  .parent-item p {
    display: block !important;
    background: #f9f9f9 !important;
    color: #000 !important;
  }

  /* 打印空白试卷模式：隐藏在线解析、清空选中高亮 */
  body.print-blank-exam .exam-explain {
    display: none !important;
  }

  body.print-blank-exam .exam-opt-btn {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #aaa !important;
  }

  body.print-blank-exam .exam-fill-input {
    border: none !important;
    border-bottom: 1.5px solid #000 !important;
    border-radius: 0 !important;
    color: transparent !important;
  }

  /* 打印答案解析卷模式：强制展开全部解析 */
  body.print-answer-exam .exam-explain {
    display: block !important;
    background: #f7f7f7 !important;
    border-left: 3px solid #000 !important;
  }
}


/* ==========================================================
   v2 扩充样式：已开放课程速跳条 + 5大定制实验室 + 自动错题本
   ========================================================== */
.mistake-btn {
  cursor: pointer;
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
  font-weight: 700;
}

.mistake-btn:hover {
  background: #fee2e2;
}

.modal-wide {
  max-width: 660px;
}

.mistakes-list {
  max-height: 52vh;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.mistake-item {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}

.mistake-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.quick-open-bar {
  background: #fff;
  border: 1.5px solid var(--forest-border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.quick-open-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-open-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-pill-btn {
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.quick-pill-btn:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
  transform: translateY(-2px);
}

.quick-pill-btn strong {
  display: block;
  font-size: 13.5px;
  color: var(--forest-dark);
}

.quick-pill-btn span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.lesson-switcher-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 16px;
}

.ls-switch-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ls-switch-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.ls-switch-chip.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* ---------- 实验室 2：第 0 讲 中英语序翻转器 ---------- */
.order-compare-box {
  background: var(--paper);
  border: 1.5px dashed var(--forest-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.order-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.order-blk {
  border-radius: 12px;
  padding: 10px 14px;
  border: 2px solid transparent;
  min-width: 84px;
  text-align: center;
  transition: all 0.25s ease;
}

.order-blk strong {
  display: block;
  font-size: 16px;
}

.order-blk span {
  display: block;
  font-size: 11.5px;
  margin-top: 2px;
}

.blk-s { background: #fef3c7; border-color: #d97706; color: #92400e; }
.blk-v { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.blk-o { background: #dbeafe; border-color: #2563eb; color: #1e40af; }
.blk-place { background: #dcfce7; border-color: #16a34a; color: #166534; }
.blk-time { background: #f3e8ff; border-color: #9333ea; color: #6b21a8; }

.role-theater-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.role-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

/* ---------- 实验室 3：第 4 讲 听音戴帽子实验室 ---------- */
.hat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.hat-item-btn {
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.hat-item-btn:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.hat-item-btn.active {
  border-color: var(--amber);
  background: #fffbeb;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.hat-item-btn strong {
  display: block;
  font-size: 15px;
}

.hat-item-btn span {
  font-size: 12px;
  color: var(--ink-muted);
}

.hat-stage {
  background: linear-gradient(135deg, #fffbeb 0%, #f0fdf4 100%);
  border: 2px solid var(--forest-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.hat-badge-big {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- 实验室 4：第 8 讲 双引擎红灯报警器 ---------- */
.engine-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.engine-alert-box {
  background: #fef2f2;
  border: 2px solid #f87171;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.engine-fix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.engine-fix-card {
  background: #fff;
  border: 1.5px solid var(--forest-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.engine-fix-card .ef-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--forest-soft);
  color: var(--forest);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* ---------- 实验室 5：第 9 讲 王牌「长难句 X 光剥皮器」 ---------- */
.xray-stage {
  background: #131c2e;
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  border: 2px solid #243656;
  box-shadow: 0 12px 28px rgba(19, 28, 46, 0.22);
}

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

.xray-step-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.xray-step-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.xray-step-btn.active {
  background: #facc15;
  color: #111827;
  border-color: #facc15;
}

.xray-sentence-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  min-height: 92px;
}

.xray-tok {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.35s ease;
  background: rgba(255, 255, 255, 0.1);
}

.xray-tok small {
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.xray-tok.lit-v {
  background: #dc2626;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.55);
}

.xray-tok.lit-s {
  background: #f59e0b;
  color: #111827;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.55);
}

.xray-tok.lit-o {
  background: #3b82f6;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
}

.xray-tok.lit-v small,
.xray-tok.lit-s small,
.xray-tok.lit-o small {
  opacity: 1;
  height: 15px;
}

.xray-tok.dimmed {
  opacity: 0.22;
  transform: scale(0.84);
  background: transparent;
  text-decoration: line-through;
}

.xray-summary {
  margin-top: 14px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #dcfce7;
}

/* ---------- 实验室 6：第 12 讲 时光管道滑块 ---------- */
.timeline-stage {
  background: linear-gradient(180deg, #eff6ff 0%, #faf8f3 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 20px;
}

.timeline-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.time-stop-btn {
  border: 2px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 11px 8px;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  font-size: 13.5px;
  transition: all 0.18s ease;
}

.time-stop-btn.active {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.timeline-output {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.timeline-verb-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
}

/* 平板与手机断点已统一合并至上方三端响应式规则 */


/* ==========================================================
   v3 扩充样式：8 套完全不同风格的复古像素小游戏盒 + 3 款新实验室
   ========================================================== */
.mg-cabinet {
  border-radius: 20px;
  padding: 12px;
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.26);
  user-select: none;
}

.mg-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 10px 10px;
  font-family: var(--font-pixel);
  font-size: 12.5px;
  font-weight: 700;
}

.mg-bottom-bar {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 0 0 10px 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  color: #f1f5f9;
  min-height: 46px;
}

.mg-hl {
  display: inline-block;
  background: #facc15;
  color: #111827;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 900;
}

/* 1. 复古安检门 (第0讲) */
.theme-gate { background: #172554; border: 4px solid #3b82f6; }
.gate-stage {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 22px 18px;
  overflow: hidden;
}
.gate-scanner-line {
  position: absolute;
  left: 0; right: 0; top: 0; height: 3px;
  background: #38bdf8;
  box-shadow: 0 0 14px #38bdf8;
  animation: scanDown 3s linear infinite;
  opacity: 0.7;
}
@keyframes scanDown { 0% { top: 0; } 100% { top: 100%; } }
.gate-passport {
  background: #f8fafc;
  color: #0f172a;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}
.gate-passport.pass-ok { transform: translateX(26px); background: #dcfce7; }
.gate-passport.pass-err { animation: brickShake 0.35s ease; background: #fee2e2; }
.gp-stamp { font-size: 12px; font-weight: 800; color: #1d4ed8; margin-bottom: 4px; }
.gp-main { font-size: 20px; font-weight: 900; }
.gp-sub { font-size: 13px; color: #475569; margin-top: 4px; }
.gate-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gate-btn {
  border: 3px solid #000;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  color: #fff;
  text-align: center;
}
.gate-btn strong { display: block; font-size: 13.5px; }
.gate-btn span { font-size: 11px; opacity: 0.9; }
.gb-0 { background: #2563eb; } .gb-1 { background: #7c3aed; }
.gb-2 { background: #16a34a; } .gb-3 { background: #dc2626; }
.gate-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }

/* 2. 像素太空战机打陨石 (第4讲) */
.theme-space { background: #090d1f; border: 4px solid #6366f1; }
.space-stage {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #050814 85%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 20px 16px 16px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.meteor-card {
  background: #27272a;
  border: 3px solid #f59e0b;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;
  transition: all 0.25s ease;
}
.meteor-card.exploded { transform: scale(1.12); opacity: 0.2; border-color: #ef4444; }
.meteor-card.deflected { animation: brickShake 0.35s ease; border-color: #ef4444; }
.meteor-tag { font-size: 12px; color: #fde047; font-weight: 800; }
.meteor-word { font-size: 20px; font-weight: 900; margin: 4px 0; }
.meteor-zh { font-size: 13px; color: #cbd5e1; }
.space-laser {
  position: absolute;
  bottom: 78px;
  width: 6px;
  height: 120px;
  background: linear-gradient(180deg, #fef08a, #38bdf8);
  box-shadow: 0 0 14px #38bdf8;
  border-radius: 4px;
}
.space-laser.col-0 { left: 14%; } .space-laser.col-1 { left: 38%; }
.space-laser.col-2 { left: 62%; } .space-laser.col-3 { left: 86%; }
.cannon-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; z-index: 2; }
.cannon-btn {
  background: #1e293b;
  border: 2.5px solid #38bdf8;
  color: #fff;
  border-radius: 10px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
}
.cannon-btn:hover { background: #0ea5e9; transform: translateY(-2px); }
.cannon-turret { color: #fde047; font-size: 14px; line-height: 1; }
.cannon-btn strong { display: block; font-size: 15px; }
.cannon-btn span { font-size: 11px; color: #cbd5e1; }

/* 3. RPG 勇者换装战 (第5讲) */
.theme-rpg { background: #2c1810; border: 4px solid #b45309; }
.rpg-stage {
  position: relative;
  background: linear-gradient(180deg, #3b2314 0%, #1c120c 100%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 18px;
}
.rpg-quest-box {
  background: #fef3c7;
  color: #451a03;
  border: 3px solid #92400e;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 14px;
}
.rpg-q-tag { font-size: 12px; font-weight: 800; color: #b45309; }
.rpg-q-text { font-size: 19px; font-weight: 900; margin: 4px 0; }
.rpg-q-zh { font-size: 13px; color: #78350f; }
.rpg-arena {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0 16px;
}
.rpg-unit { text-align: center; transition: transform 0.25s ease; }
.rpg-unit.attack { transform: translateX(48px) scale(1.15); }
.rpg-unit.miss { animation: brickShake 0.35s ease; }
.rpg-unit.monster-hit { animation: bossHurt 0.4s ease; }
.rpg-sprite { font-size: 46px; line-height: 1.1; }
.rpg-u-name { font-size: 12px; font-weight: 800; color: #fde68a; }
.rpg-vs { font-family: var(--font-pixel); font-size: 22px; font-weight: 900; color: #f97316; }
.rpg-hp-bar { width: 96px; height: 8px; background: #451a03; border: 2px solid #000; margin: 0 auto 4px; }
.rpg-hp-fill { height: 100%; background: #ef4444; transition: width 0.3s ease; }
.rpg-equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rpg-equip-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #451a03;
  border: 2.5px solid #d97706;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fffbeb;
  cursor: pointer;
}
.rpg-equip-btn:hover { background: #78350f; transform: translateY(-2px); }
.eq-icon { font-size: 22px; }
.rpg-equip-btn strong { display: block; font-size: 16px; color: #fde047; }
.rpg-equip-btn span { font-size: 12px; color: #fed7aa; }

/* 4. 像素修车厂质检流水线 (第8讲) */
.theme-factory { background: #292524; border: 4px solid #ea580c; }
.factory-stage {
  position: relative;
  background: linear-gradient(180deg, #1c1917 0%, #3f362f 100%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 18px;
}
.factory-lamps { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.f-lamp { width: 14px; height: 14px; border-radius: 50%; background: #44403c; border: 2px solid #000; }
.f-lamp.on-red { background: #ef4444; box-shadow: 0 0 12px #ef4444; }
.f-lamp.on-amber { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.f-lamp.on-green { background: #22c55e; box-shadow: 0 0 12px #22c55e; }
.factory-car-bay {
  background: #fffbeb;
  color: #1c1917;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.factory-car-bay.ok { background: #dcfce7; }
.factory-car-bay.err { background: #fee2e2; animation: brickShake 0.35s ease; }
.bay-car-icon { font-size: 30px; }
.bay-sentence { font-size: 20px; font-weight: 900; margin: 4px 0; }
.bay-zh { font-size: 13px; color: #57534e; }
.conveyor-belt {
  height: 12px;
  margin: 0 0 14px;
  background: repeating-linear-gradient(90deg, #57534e 0, #57534e 18px, #f59e0b 18px, #f59e0b 26px);
  border: 2px solid #000;
}
.factory-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.factory-btn {
  background: #ea580c;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 10px 6px;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.factory-btn:hover { background: #f97316; transform: translateY(-2px); }
.factory-btn strong { display: block; font-size: 13.5px; }
.factory-btn span { font-size: 11px; opacity: 0.92; }

/* 5. 夜幕切句道场 (第9讲) */
.theme-dojo { background: #1e1b2e; border: 4px solid #ec4899; }
.dojo-stage {
  position: relative;
  background: radial-gradient(circle at 80% 15%, #3b1d4a 0%, #11111e 80%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 20px 18px;
}
.dojo-mission {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(244, 114, 182, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: center;
}
.dm-badge {
  display: inline-block;
  background: #ec4899;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 6px;
}
.dojo-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px 6px;
}
.dojo-word-btn {
  background: #2e294e;
  border: 2.5px solid #a78bfa;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dojo-word-btn:hover {
  background: #4c1d95;
  border-color: #facc15;
  transform: translateY(-3px);
}
.dojo-word-btn.slashed-ok {
  background: #facc15;
  color: #111827;
  border-color: #fff;
  box-shadow: 0 0 22px #facc15;
  transform: scale(1.12);
}
.dojo-word-btn.slashed-err {
  background: #dc2626;
  animation: brickShake 0.35s ease;
}

/* 6. 落日公路时光赛车 (第12讲) */
.theme-racer { background: #1e1136; border: 4px solid #f43f5e; }
.racer-stage {
  position: relative;
  background: linear-gradient(180deg, #311042 0%, #9d174d 45%, #fb7185 68%, #1e293b 68%, #0f172a 100%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 18px 16px;
  overflow: hidden;
}
.racer-sun {
  position: absolute;
  top: 12px; right: 24px;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fde047, #f97316);
  opacity: 0.85;
}
.racer-sign {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.88);
  border: 3px solid #38bdf8;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 12px;
}
.rs-head { font-size: 12px; color: #38bdf8; font-weight: 800; }
.rs-text { font-size: 19px; font-weight: 900; margin: 4px 0; }
.rs-zh { font-size: 13px; color: #cbd5e1; }
.racer-road {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.racer-car { font-size: 40px; transition: transform 0.28s ease; }
.racer-car.nitro { transform: translateX(70px) scale(1.18); }
.racer-car.stall { animation: brickShake 0.35s ease; }
.racer-gears { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gear-btn {
  background: #0f172a;
  border: 2.5px solid #f43f5e;
  border-radius: 10px;
  padding: 9px 6px;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.gear-btn:hover { background: #be123c; transform: translateY(-2px); }
.gear-num { display: inline-block; background: #facc15; color: #111827; font-family: var(--font-pixel); font-size: 11px; font-weight: 900; padding: 0 6px; border-radius: 4px; }
.gear-btn strong { display: block; font-size: 13.5px; margin-top: 3px; }
.gear-btn span { font-size: 11px; color: #cbd5e1; }

/* 7. 地牢不规则动词消消乐 (第13讲) */
.theme-dungeon { background: #1c1917; border: 4px solid #a16207; }
.dungeon-stage {
  position: relative;
  background: linear-gradient(180deg, #292524 0%, #1c1917 100%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 18px;
}
.match-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.match-tile {
  background: #44403c;
  border: 3px solid #d97706;
  border-radius: 10px;
  padding: 12px 6px;
  color: #fffbeb;
  cursor: pointer;
  text-align: center;
  transition: all 0.16s ease;
}
.match-tile:hover:not(:disabled) { transform: translateY(-2px); background: #57534e; }
.match-tile.selected { background: #ca8a04; border-color: #fef08a; transform: scale(1.04); }
.match-tile.matched { background: #14532d; border-color: #22c55e; opacity: 0.6; cursor: default; }
.mt-tag { display: inline-block; font-size: 10.5px; background: rgba(0,0,0,0.35); padding: 1px 6px; border-radius: 4px; }
.match-tile strong { display: block; font-size: 17px; margin: 4px 0 2px; }
.mt-zh { font-size: 11.5px; color: #fde68a; }

/* 8. 森林词块搭桥过河 (第25讲) */
.theme-bridge { background: #143628; border: 4px solid #10b981; }
.bridge-stage {
  position: relative;
  background: linear-gradient(180deg, #064e3b 0%, #0f766e 100%);
  border: 3px solid #000;
  border-radius: 10px 10px 0 0;
  padding: 18px;
}
.bridge-prompt { text-align: center; margin-bottom: 14px; }
.river-scene {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 12px 8px;
  margin-bottom: 14px;
}
.bank {
  background: #15803d;
  border: 2px solid #000;
  border-radius: 8px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bridge-hero { font-size: 30px; transition: transform 0.8s ease; }
.bridge-hero.crossing { transform: translateX(360px); }
.plank-slots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; min-height: 44px; }
.plank-placed {
  background: #b45309;
  border: 2px solid #fef3c7;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
}
.chunk-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chunk-btn {
  background: #fef3c7;
  color: #451a03;
  border: 2.5px solid #92400e;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.chunk-btn:hover:not(:disabled) { transform: translateY(-2px); background: #fde68a; }
.chunk-btn.used { opacity: 0.3; cursor: default; }

/* 新增 3 款手账实验室（代词衣柜 / 不规则动词闪卡 / 宾语从句语序钳） */
.pronoun-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--line);
}
.pronoun-table th, .pronoun-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.pronoun-table th { background: var(--forest); color: #fff; font-weight: 800; }
.pronoun-table tr.hl-row { background: #fffbeb; font-weight: 800; }

.irreg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.irreg-card {
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
}
.irreg-card:hover { border-color: var(--forest); background: var(--forest-soft); }

/* 游戏网格平板/手机断点已统一合并至上方三端响应式规则 */


/* ==========================================================
   v3.1 多元视觉主题精修（只有第1讲保留像素风，其余8讲全部独立现代美学！）
   ========================================================== */
/* 顶栏非像素通用清晰字体 */
.mg-top-bar {
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

/* 第0讲：清爽蓝白现代智能机场安检风 */
.theme-gate {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #93c5fd;
  color: #1e3a8a;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
.theme-gate .gate-stage {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
}
.theme-gate .gate-passport {
  border: 1.5px solid #93c5fd;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}
.theme-gate .gate-btn {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.theme-gate .mg-bottom-bar {
  background: #1e3a8a;
  border-radius: 12px;
  margin-top: 10px;
}

/* 第4讲：流光赛博霓虹太空科幻风 */
.theme-space {
  background: linear-gradient(135deg, #0b1026 0%, #1b1448 100%);
  border: 2px solid #818cf8;
}
.theme-space .space-stage {
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 14px;
}
.theme-space .meteor-card {
  background: rgba(30, 27, 75, 0.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.25);
}
.theme-space .cannon-btn {
  border-radius: 14px;
  border: 1.5px solid rgba(56, 189, 248, 0.65);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
}

/* 第5讲：魔法学院暖金羊皮纸绘本 RPG 风 */
.theme-rpg {
  background: linear-gradient(135deg, #fef9ec 0%, #f5e6c4 100%);
  border: 2px solid #d4a359;
  color: #5c3a16;
  box-shadow: 0 12px 28px rgba(180, 120, 40, 0.14);
}
.theme-rpg .rpg-stage {
  background: linear-gradient(180deg, #fffdf7 0%, #faeed2 100%);
  border: 1.5px solid #e6c98e;
  border-radius: 14px;
}
.theme-rpg .rpg-quest-box {
  background: #fff;
  border: 1.5px solid #e2bc75;
  box-shadow: 0 4px 12px rgba(146, 64, 14, 0.08);
}
.theme-rpg .rpg-u-name { color: #78350f; }
.theme-rpg .rpg-equip-btn {
  background: #fff;
  border: 1.5px solid #d97706;
  color: #451a03;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.1);
}
.theme-rpg .rpg-equip-btn strong { color: #b45309; }
.theme-rpg .rpg-equip-btn span { color: #78350f; }
.theme-rpg .rpg-equip-btn:hover { background: #fef3c7; }
.theme-rpg .mg-bottom-bar { background: #78350f; border-radius: 12px; margin-top: 10px; }

/* 第8讲：现代汽车仪表盘/工业蓝图风 */
.theme-factory {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #64748b;
}
.theme-factory .factory-stage {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #475569;
  border-radius: 14px;
}
.theme-factory .factory-car-bay { border: 2px solid #38bdf8; border-radius: 14px; }
.theme-factory .factory-btn {
  background: linear-gradient(180deg, #0284c7, #0369a1);
  border: 1px solid #38bdf8;
  border-radius: 12px;
}

/* 第9讲：和风夜幕樱花玻璃态剑道风 */
.theme-dojo {
  background: linear-gradient(135deg, #271538 0%, #431c4f 100%);
  border: 2px solid #f472b6;
}
.theme-dojo .dojo-stage {
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 14px;
}
.theme-dojo .dojo-word-btn {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(249, 168, 212, 0.55);
  border-radius: 999px;
  padding: 9px 18px;
}
.theme-dojo .dojo-word-btn.slashed-ok {
  background: #fde047;
  color: #111827;
  border-color: #ffffff;
}
.gear-num {
  color: #111827 !important;
}

/* 第13讲：治愈马卡龙奶油桌游卡牌风（彻底告别暗色像素！） */
.theme-dungeon {
  background: linear-gradient(135deg, #fff5f5 0%, #fef3c7 50%, #ecfdf5 100%);
  border: 2px solid #fbcfe8;
  color: #374151;
  box-shadow: 0 12px 26px rgba(244, 114, 182, 0.12);
}
.theme-dungeon .dungeon-stage {
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid #fde68a;
  border-radius: 14px;
}
.theme-dungeon .match-tile {
  background: #ffffff;
  border: 2px solid #fbbf24;
  color: #1f2937;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.12);
}
.theme-dungeon .match-tile:hover:not(:disabled) { background: #fffbeb; }
.theme-dungeon .match-tile.selected { background: #fef08a; border-color: #ea580c; }
.theme-dungeon .match-tile.matched { background: #dcfce7; border-color: #22c55e; color: #166534; opacity: 0.75; }
.theme-dungeon .mt-tag { background: #fef3c7; color: #b45309; font-weight: 800; }
.theme-dungeon .mt-zh { color: #6b7280; }
.theme-dungeon .mg-bottom-bar { background: #246a4d; border-radius: 12px; margin-top: 10px; }

/* 第25讲：吉卜力清新水彩森林绘本风 */
.theme-bridge {
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
  border: 2px solid #6ee7b7;
  color: #064e3b;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.14);
}
.theme-bridge .bridge-stage {
  background: linear-gradient(180deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 14px;
}
.theme-bridge .bridge-prompt { color: #064e3b; }
.theme-bridge .bridge-prompt div { color: #0f766e !important; }
.theme-bridge .river-scene {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border: 2px solid #7dd3fc;
  border-radius: 16px;
}
.theme-bridge .bank { background: #4ade80; border: 2px solid #16a34a; border-radius: 12px; }
.theme-bridge .chunk-btn {
  background: #fffbeb;
  border: 2px solid #d97706;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(180, 83, 9, 0.12);
}
.theme-bridge .mg-bottom-bar { background: #0f766e; border-radius: 12px; margin-top: 10px; }


/* ==========================================================
   v3.2 三端响应式终极精修（置于文件末尾确保最高级联优先级）
   覆盖：平板横屏 (961-1140px) / 平板竖屏 (641-960px) / 手机 (<=640px)
   ========================================================== */
@media (max-width: 1140px) and (min-width: 961px) {
  .topbar-inner { flex-wrap: nowrap; gap: 8px; }
  .brand-logo { width: 34px; height: 34px; font-size: 17px; }
  .brand-title { font-size: 13.5px; white-space: nowrap; }
  .brand-sub { display: none; }
  .nav-pill { padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
  .stat-chip, .icon-toggle { padding: 4px 8px; font-size: 12px; white-space: nowrap; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .container { padding: 0 22px; }
  .topbar-inner { justify-content: center; gap: 10px 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .trust-strip,
  .systems-grid,
  .lessons-grid,
  .pos-cards-grid,
  .quick-open-pills,
  .exam-opts-grid,
  .exam-student-info,
  .role-theater-grid,
  .engine-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .engine-fix-grid,
  .irreg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .car-tabs,
  .hat-grid,
  .timeline-rail,
  .gate-controls,
  .cannon-row,
  .factory-btns,
  .racer-gears,
  .match-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .px-pipe { display: none; }
  .brick-row { left: 3%; right: 154px; gap: 8px; }
  .px-boss-zone { right: 10px; width: 126px; }
  .bridge-hero.crossing { transform: translateX(240px); }
  .btn, .nav-pill, .diag-opt, .exam-opt-btn, .q-brick, .match-tile { min-height: 44px; }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .app-main { padding: 16px 0 48px; }
  .topbar-inner { justify-content: space-between; gap: 8px; }
  .top-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }
  .nav-pill { padding: 7px 4px; font-size: 12px; text-align: center; white-space: nowrap; }
  .hero-banner { padding: 22px 18px; border-radius: 18px; }
  .hero-title { font-size: 22px; }
  .module-block, .exam-section, .exam-sheet-header, .diag-card, .report-card { padding: 14px 12px; }
  .hero-grid,
  .systems-grid,
  .lessons-grid,
  .pos-cards-grid,
  .quick-open-pills,
  .exam-opts-grid,
  .role-theater-grid,
  .engine-tabs,
  .engine-fix-grid,
  .rpg-equip-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip,
  .exam-student-info,
  .car-tabs,
  .hat-grid,
  .timeline-rail,
  .gate-controls,
  .cannon-row,
  .factory-btns,
  .racer-gears,
  .match-grid,
  .irreg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brick-row { left: 3%; right: 3%; top: 38px; gap: 6px; }
  .px-boss-zone, .px-pipe { display: none; }
  .mario-cabinet-wrapper { padding: 12px 8px; }
  .mg-cabinet, .mario-cabinet { padding: 8px; border-radius: 14px; }
  .bridge-stage, .gate-stage, .space-stage, .rpg-stage, .factory-stage, .dojo-stage, .racer-stage, .dungeon-stage { padding: 12px 10px; }
  .river-scene { grid-template-columns: 44px 1fr 44px; gap: 6px; padding: 10px 6px; }
  .bank { height: 48px; }
  .bridge-hero { font-size: 24px; }
  .bridge-hero.crossing { transform: translateX(130px); }
}
