:root {
  --bg-main: #fbfaf8;
  --card-bg: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f43f5e;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
  --radius-md: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页面总容器 */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.2rem;
}

.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-text h1.brand-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ea580c 0%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-stats {
  display: flex;
  align-items: center;
}

.stat-badge {
  background-color: #ecfdf5;
  color: #047857;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #a7f3d0;
}

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

button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
}

.btn-icon {
  background-color: #f1f5f9;
  color: #475569;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-icon:hover {
  background-color: #e2e8f0;
}

.btn-primary-sm {
  background-color: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-primary-sm:hover {
  background-color: var(--primary-hover);
}

/* 主练习区 */
.practice-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  gap: 16px;
}

/* 分类标签栏 */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
  height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.tab-btn {
  background-color: #f1f5f9;
  color: #475569;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.tab-btn.active {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* 核心大字卡片 */
.rehab-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 480px;
  position: relative;
}

.card-status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-index {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: #f8fafc;
  padding: 4px 14px;
  border-radius: 12px;
}

.btn-fav {
  background: transparent;
  font-size: 1.6rem;
  padding: 4px 8px;
  color: #cbd5e1;
  transition: transform 0.2s;
}

.btn-fav.active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* 大字展示区 */
.word-display-area {
  text-align: center;
  margin: auto 0;
  padding: 24px 0;
}

.pinyin-display {
  font-size: 2.2rem;
  color: #475569;
  letter-spacing: 4px;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: Arial, "PingFang SC", sans-serif;
}

.pinyin-display.hidden {
  display: none;
}

.text-display {
  font-size: 6.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 6px;
  line-height: 1.15;
  user-select: none;
  transition: transform 0.2s;
}

.text-display.playing {
  color: var(--primary);
  transform: scale(1.03);
}

.hint-display {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-weight: 400;
}

/* 录音与自评对比条 */
.record-feedback-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 8px 18px;
  background-color: #f8fafc;
  border-radius: 30px;
  border: 1px solid var(--border);
}

.btn-record {
  background-color: #fff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 8px 18px;
  font-size: 0.95rem;
  border-radius: 20px;
}

.btn-record.recording {
  background-color: #ffe4e6;
  border-color: #f43f5e;
  color: #e11d48;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.record-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.record-player.hidden {
  display: none;
}

.record-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-audio-mini {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 16px;
}

/* 核心大按键控制 */
.control-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 650px;
  margin-top: 10px;
}

.btn-nav {
  flex: 1;
  background-color: #f1f5f9;
  color: #334155;
  padding: 16px 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  min-height: 64px;
}

.btn-nav:hover {
  background-color: #e2e8f0;
}

.btn-next-primary {
  background-color: #dbeafe;
  color: var(--primary);
  border-color: #bfdbfe;
}

.btn-next-primary:hover {
  background-color: #bfdbfe;
}

.btn-speak {
  flex: 1.4;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 18px 24px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  min-height: 64px;
}

.btn-speak:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
}

.btn-speak:active {
  transform: translateY(1px);
}

.card-tips {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #94a3b8;
}

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

.modal-backdrop.hidden {
  display: none;
}

.modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modal-in 0.25s ease-out;
}

.modal-content.modal-lg {
  max-width: 820px;
}

.modal-content.modal-sm {
  max-width: 400px;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3, .modal-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-close {
  background: transparent;
  font-size: 1.8rem;
  color: #94a3b8;
  line-height: 1;
  padding: 4px;
}

.btn-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* 表单控件 */
.form-group, .setting-item {
  margin-bottom: 18px;
}

.form-group label, .setting-item label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.checkbox-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
  background-color: #fff;
  transition: border-color 0.2s;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  padding: 10px 18px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-secondary-sm {
  background-color: #f1f5f9;
  color: var(--primary);
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* 词库管理标签页 */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  background-color: #f8fafc;
}

.tab-link {
  background: transparent;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.tab-link.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.cat-select-row {
  display: flex;
  gap: 10px;
}

/* 列表表格 */
.list-filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.table-container {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.words-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.words-table th {
  background-color: #f8fafc;
  padding: 12px 14px;
  font-weight: 600;
  color: #475569;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border);
}

.words-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.words-table tr:hover {
  background-color: #f8fafc;
}

.btn-del {
  background: transparent;
  color: #ef4444;
  padding: 4px 8px;
  font-size: 0.85rem;
}

.btn-del:hover {
  background-color: #fee2e2;
}

/* 备份区 */
.backup-section {
  padding: 16px;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.backup-section h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.backup-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.file-input {
  display: none;
}

/* ================= 模式切换导航栏 ================= */
.mode-navigation {
  display: flex;
  gap: 12px;
  margin: 14px 0 8px;
  background-color: #f1f5f9;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mode-btn {
  flex: 1;
  background: transparent;
  color: #475569;
  padding: 12px 14px;
  font-size: 1.05rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-btn:hover {
  color: var(--primary);
  background-color: rgba(255, 255, 255, 0.6);
}

.mode-btn.active {
  background-color: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* 视图通用显隐 */
.view-section {
  display: flex;
  flex-direction: column;
}

.view-section.hidden {
  display: none !important;
}

/* ================= 功能三：阶梯提示 (Cuing) 样式 ================= */
.cue-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 8px 16px;
  background-color: #fffbeb;
  border: 1px dashed #fde68a;
  border-radius: var(--radius-md);
}

.btn-cue {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
  padding: 8px 16px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
}

.btn-cue:hover {
  background-color: #fde68a;
}

.cue-step-badge {
  background-color: #b45309;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 10px;
}

.cue-hint-text {
  font-size: 0.95rem;
  color: #92400e;
  font-weight: 500;
}

.cloze-blank {
  color: #d97706;
  border-bottom: 3px solid #f59e0b;
  padding: 0 8px;
  background-color: #fef3c7;
  border-radius: 6px;
}

/* ================= 功能一：AAC 应急发声沟通板 ================= */
.aac-main {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aac-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.aac-cat-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.aac-filter-btn {
  background-color: #f1f5f9;
  color: #475569;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.aac-filter-btn.active {
  background-color: #0f172a;
  color: #ffffff;
}

.btn-call-bell {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  animation: gentle-shake 3s infinite;
}

@keyframes gentle-shake {
  0%, 100% { transform: rotate(0deg); }
  2%, 6% { transform: rotate(-6deg); }
  4%, 8% { transform: rotate(6deg); }
}

.aac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  flex: 1;
}

.aac-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 140px;
  transition: all 0.15s ease;
  user-select: none;
}

.aac-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.aac-card:active, .aac-card.speaking {
  transform: scale(0.96);
  background-color: #eff6ff;
  border-color: var(--primary);
}

.aac-card-urgent {
  border-color: #fca5a5;
  background-color: #fffaf0;
}
.aac-card-urgent:hover {
  border-color: #ef4444;
}

.aac-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.aac-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.aac-custom-speak-bar {
  display: flex;
  gap: 12px;
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.aac-input {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 1.05rem;
}

.aac-input:focus {
  border-color: var(--primary);
  outline: none;
}

/* ================= 功能二：口唇舌热身操 ================= */
.warmup-main {
  flex: 1;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warmup-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 36px 32px;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.warmup-header {
  margin-bottom: 20px;
}

.warmup-step-indicator {
  background-color: #dbeafe;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
}

.warmup-header h2 {
  font-size: 1.6rem;
  margin-top: 10px;
  color: var(--text-main);
}

.warmup-visual-area {
  margin: 16px 0 24px;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  width: 100%;
}

.warmup-icon-large {
  font-size: 5rem;
  margin-bottom: 12px;
  animation: gentle-pulse 2s infinite;
}

@keyframes gentle-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.warmup-desc {
  font-size: 1.3rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.4;
}

.warmup-target {
  font-size: 0.95rem;
  color: #059669;
  background-color: #ecfdf5;
  padding: 6px 14px;
  border-radius: 12px;
  display: inline-block;
}

.warmup-timer-bar {
  width: 100%;
  max-width: 400px;
  margin-bottom: 28px;
}

.timer-countdown {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.timer-progress-track {
  width: 100%;
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.timer-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.1s linear;
}

.warmup-controls {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 520px;
}

.btn-warmup-run {
  background: linear-gradient(135deg, #059669, #047857);
}

.warmup-tips {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 响应式适配 (移动端 & iPad) */
@media (max-width: 768px) {
  .app-container {
    padding: 10px 12px;
  }

  .mode-btn {
    font-size: 0.9rem;
    padding: 10px 8px;
  }

  .text-display {
    font-size: 4.2rem;
    letter-spacing: 2px;
  }

  .pinyin-display {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  .rehab-card {
    padding: 20px 14px;
    min-height: 420px;
  }

  .aac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .aac-card {
    padding: 18px 10px;
    min-height: 120px;
  }

  .aac-icon {
    font-size: 2.4rem;
  }

  .aac-text {
    font-size: 1.15rem;
  }

  .control-actions, .warmup-controls {
    gap: 10px;
  }

  .btn-nav {
    padding: 14px 10px;
    font-size: 1rem;
    min-height: 54px;
  }

  .btn-speak {
    padding: 14px 16px;
    font-size: 1.15rem;
    min-height: 54px;
  }
}

/* ================= Anki 记忆曲线与今日待复习样式 ================= */
.mode-navigation {
  flex-wrap: wrap;
}

.mode-btn-review {
  position: relative;
}

.nav-due-badge {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.nav-due-badge.hidden {
  display: none;
}

.status-left-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.srs-state-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.srs-state-pill.state-learning {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.srs-state-pill.state-mastered {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.tab-btn-due {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-weight: 700;
}

.tab-btn-due.active {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.ladder-due-btn {
  background-color: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.ladder-due-btn:hover {
  background-color: #ffedd5;
  border-color: #fb923c;
}

.ladder-due-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

/* 答题结算三色大按钮 */
.srs-rating-bar {
  width: 100%;
  max-width: 680px;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeInDown 0.25s ease-out;
}

.srs-rating-bar.hidden {
  display: none;
}

.srs-rating-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.srs-rating-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.btn-srs {
  padding: 12px 10px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-srs:hover {
  transform: translateY(-2px);
}

.btn-srs:active {
  transform: scale(0.97);
}

.btn-srs .srs-sub {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

.btn-srs-hard {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.btn-srs-hard:hover {
  background-color: #fee2e2;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.16);
}

.btn-srs-medium {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
}

.btn-srs-medium:hover {
  background-color: #fef3c7;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.16);
}

.btn-srs-easy {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

.btn-srs-easy:hover {
  background-color: #d1fae5;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.16);
}

.srs-feedback-toast {
  font-size: 0.88rem;
  font-weight: 600;
  color: #047857;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 14px;
  border-radius: 999px;
}

.srs-feedback-toast.hidden {
  display: none;
}

/* 今日待复习主页 Hub */
.review-hub-main {
  flex: 1;
  padding: 16px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-hub-hero {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.review-hub-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 6px;
}

.review-hub-subtitle {
  font-size: 0.98rem;
  color: #7c2d12;
  line-height: 1.55;
}

.review-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.review-hub-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hub-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.hub-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hub-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.hub-metric {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-due {
  color: #ea580c;
}

.metric-hard {
  color: #dc2626;
}

.metric-mastered {
  color: #059669;
}

.metric-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.hub-start-btn {
  width: 100%;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
  font-size: 1.1rem;
  min-height: 56px;
}

.hub-start-btn:hover {
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.35);
}

.hub-start-btn-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.hub-start-btn-blue:hover {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.38);
}

.review-legend-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 0.92rem;
  color: #475569;
}

@media (max-width: 768px) {
  .review-hub-grid {
    grid-template-columns: 1fr;
  }

  .srs-rating-buttons {
    gap: 8px;
  }

  .btn-srs {
    padding: 10px 6px;
    font-size: 0.92rem;
  }

  .btn-srs .srs-sub {
    font-size: 0.72rem;
  }
}

/* ================= 旋律语调疗法 (MIT) 专区样式 ================= */
.mit-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0 28px;
  gap: 14px;
}

.mit-submode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.mit-submode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mit-submode-btn {
  background-color: #f1f5f9;
  color: #475569;
  padding: 9px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

.mit-submode-btn.active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.mit-tempo-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.mit-select-sm {
  width: auto;
  padding: 7px 12px;
  font-size: 0.9rem;
}

.mit-select-xs {
  width: auto;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.mit-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mit-panel.hidden {
  display: none;
}

.mit-chips-scroll,
.mit-song-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.mit-chip-btn {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.mit-chip-btn:hover {
  background-color: #f5f3ff;
  border-color: #c4b5fd;
}

.mit-chip-btn.active {
  background-color: #6d28d9;
  color: #ffffff;
  border-color: #6d28d9;
}

.mit-custom-bar {
  display: flex;
  gap: 10px;
  background-color: #ffffff;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mit-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mit-stage-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.mit-stage-btn {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
}

.mit-stage-btn.active {
  background-color: #ede9fe;
  color: #5b21b6;
  border-color: #8b5cf6;
  font-weight: 700;
}

/* 高低音阶台阶卡片 */
.mit-syllable-stage {
  width: 100%;
  min-height: 170px;
  background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
  border: 2px dashed #ddd6fe;
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mit-syllable-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.mit-syllable-card.pitch-high {
  transform: translateY(-14px);
}

.mit-syllable-card.pitch-low {
  transform: translateY(10px);
}

.mit-syllable-card.active {
  border-color: #7c3aed;
  background-color: #f5f3ff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
  transform: translateY(-16px) scale(1.08);
}

.mit-syllable-card.pitch-low.active {
  transform: translateY(8px) scale(1.08);
}

.mit-pitch-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.mit-syllable-card.pitch-high .mit-pitch-tag {
  background-color: #fef3c7;
  color: #b45309;
}

.mit-syllable-card.pitch-low .mit-pitch-tag {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.mit-syllable-pinyin {
  font-size: 0.95rem;
  color: #64748b;
}

.mit-syllable-char {
  font-size: 2.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}

.mit-syllable-card.active .mit-syllable-char {
  color: #6d28d9;
}

/* 左手拍打节拍引导灯 */
.mit-beat-guide {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 10px 16px;
}

.mit-beat-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fef3c7;
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.mit-beat-dot.pulse {
  transform: scale(1.18);
  background-color: #f59e0b;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.25);
}

.mit-beat-text {
  font-size: 0.93rem;
  color: #92400e;
  font-weight: 500;
}

.mit-btn-melody {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
}

.mit-btn-melody:hover {
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.42);
}

/* 80后港台金曲卡拉OK板 */
.mit-song-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
}

.mit-song-tip {
  font-size: 0.92rem;
  color: #64748b;
  text-align: center;
}

.mit-karaoke-board {
  width: 100%;
  background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
  border: 2px solid #e9d5ff;
  border-radius: 20px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.mit-lyric-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.mit-lyric-char {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.mit-lyric-char .l-py {
  font-size: 0.85rem;
  color: #94a3b8;
}

.mit-lyric-char .l-hz {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.mit-lyric-char.active {
  background-color: #ede9fe;
  transform: scale(1.14);
}

.mit-lyric-char.active .l-hz {
  color: #6d28d9;
}

.mit-lyric-char.sung .l-hz {
  color: #7c3aed;
}

.mit-local-audio-bar {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 10px 14px;
}

.mit-local-player-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mit-local-player-wrap.hidden {
  display: none;
}

.mit-local-player-wrap audio {
  height: 36px;
  max-width: 260px;
}

@media (max-width: 768px) {
  .mit-syllable-card {
    min-width: 60px;
    padding: 10px 8px;
  }

  .mit-syllable-char {
    font-size: 2rem;
  }

  .mit-lyric-char .l-hz {
    font-size: 1.7rem;
  }

  .mit-card .control-actions {
    flex-wrap: wrap;
  }
}

/* ================= 命名障碍康复专区样式 ================= */

.naming-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0 24px;
  gap: 16px;
}

/* 4大模块切换栏 */
.naming-module-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.naming-module-btn {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.naming-module-btn .m-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.naming-module-btn .m-text {
  display: flex;
  flex-direction: column;
}

.naming-module-btn .m-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.naming-module-btn .m-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.naming-module-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.naming-module-btn.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
}

.naming-module-btn.active .m-title {
  color: var(--primary);
}

/* 子分类 Chips 筛选条 */
.naming-subcat-bar {
  display: flex;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.naming-subcat-chips {
  display: flex;
  gap: 8px;
}

.naming-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.naming-search-input {
  flex: 1;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.95rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.naming-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-naming-search-clear {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.9rem;
  cursor: pointer;
}

.naming-chip-btn {
  background-color: #f1f5f9;
  color: #475569;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.naming-chip-btn:hover {
  background-color: #e2e8f0;
}

.naming-chip-btn.active {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 600;
}

/* 核心大字命名卡片 */
.naming-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 480px;
}

.naming-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.naming-module-badge {
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
}

.naming-subcat-badge {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 14px;
}

/* 视觉与题干展示区 */
.naming-hero-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 16px;
  gap: 8px;
  text-align: center;
}

.naming-icon-hero {
  font-size: 4.2rem;
  line-height: 1.1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.naming-card:hover .naming-icon-hero {
  transform: scale(1.08);
}

.naming-title-display {
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  max-width: 780px;
}

/* 挖空大字区域 */
.naming-cloze-card {
  width: 100%;
  background-color: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 16px;
  text-align: center;
}

.naming-cloze-text {
  font-size: 2.1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.6;
  letter-spacing: 1px;
}

.cloze-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 48px;
  background-color: #fef3c7;
  color: #d97706;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  margin: 0 6px;
  padding: 0 12px;
  font-size: 1.8rem;
  font-weight: 900;
  vertical-align: middle;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* 答案翻牌揭晓面板 */
.naming-answer-panel {
  width: 100%;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 16px;
  text-align: center;
  animation: fadeInDown 0.3s ease-out;
}

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

.answer-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 4px;
}

.answer-pinyin {
  font-size: 1.25rem;
  color: #166534;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.answer-word {
  font-size: 2.6rem;
  font-weight: 900;
  color: #14532d;
  letter-spacing: 1.5px;
  line-height: 1.3;
}

.answer-explanation {
  font-size: 0.95rem;
  color: #166534;
  margin-top: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 10px;
  display: inline-block;
}

/* ================= 四阶一体化提示条 (Unified 4-Step Cueing Bar) ================= */
.unified-cue-panel {
  width: 100%;
  background: linear-gradient(180deg, #fffdf7 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unified-cue-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-cue-primary {
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.22);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-cue-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3);
  filter: brightness(1.03);
}

.btn-cue-primary:active {
  transform: translateY(0);
}

.btn-cue-primary.step-4 {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.cue-progress-pill {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.unified-cue-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cue-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cue-step-chip:hover {
  border-color: #f59e0b;
  color: #b45309;
  background: #fffbeb;
}

.cue-step-chip .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cue-step-chip.done {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.cue-step-chip.done .step-num {
  background: #22c55e;
  color: #ffffff;
}

.cue-step-chip.active {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.cue-step-chip.active .step-num {
  background: #ea580c;
  color: #ffffff;
}

.cue-step-chip[data-cue-step="4"].active {
  border-color: #38bdf8;
  background: #e0f2fe;
  color: #0369a1;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.cue-step-chip[data-cue-step="4"].active .step-num {
  background: #0284c7;
  color: #ffffff;
}

.cue-step-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
}

.btn-cue-tool {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 18px;
  font-size: 0.95rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cue-tool:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.btn-reveal-accent {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
  font-weight: 700;
}

.btn-reveal-accent:hover {
  background-color: #d1fae5;
  border-color: #34d399;
}

/* 四阶统一提示展示舞台 */
.naming-cue-result-box {
  width: 100%;
  background-color: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #92400e;
  animation: fadeInDown 0.25s ease-out;
}

.naming-cue-result-box.stage-mouth {
  background-color: #fff1f2;
  border-color: #fecdd3;
  color: #881337;
}

.naming-cue-result-box.stage-unison {
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
  border-color: #7dd3fc;
  color: #0c4a6e;
}

.cue-stage-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cue-result-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cue-stage-tag {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.cue-result-text {
  line-height: 1.55;
  font-size: 1.02rem;
}

.cue-stage-visual {
  width: 100%;
  margin-top: 2px;
}

/* 二阶首音高亮卡 */
.cue-phonetic-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cue-phonetic-big {
  background: #ffffff;
  border: 2px solid #f59e0b;
  color: #b45309;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

/* 三阶动态口型示意图面板 */
.dynamic-mouth-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
}

.dynamic-mouth-svg-wrap {
  width: 108px;
  height: 96px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5f7 0%, #ffe4e6 100%);
  border: 1.5px solid #fda4af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dynamic-mouth-info {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dynamic-mouth-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #9f1239;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dynamic-mouth-syl {
  background: #ffe4e6;
  color: #be123c;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.dynamic-mouth-desc {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.5;
}

/* 动态口型 SVG 关键帧动画 */
@keyframes mouthBurstLip {
  0%, 35% { transform: scaleY(0.18); }
  55%, 80% { transform: scaleY(1); }
  100% { transform: scaleY(0.18); }
}

@keyframes mouthAirPuff {
  0%, 38% { opacity: 0; transform: translateX(0) scale(0.6); }
  55% { opacity: 1; transform: translateX(6px) scale(1); }
  85%, 100% { opacity: 0; transform: translateX(14px) scale(1.15); }
}

@keyframes mouthRoundPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.76); }
}

@keyframes mouthTongueTap {
  0%, 25% { transform: translateY(7px); }
  50%, 72% { transform: translateY(-4px); }
  100% { transform: translateY(7px); }
}

@keyframes mouthSmileStretch {
  0%, 100% { transform: scaleX(0.92); }
  50% { transform: scaleX(1.1); }
}

@keyframes mouthOpenWide {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1.12); }
}

.anim-mouth-burst { transform-origin: 50px 44px; animation: mouthBurstLip 1.8s ease-in-out infinite; }
.anim-air-puff { animation: mouthAirPuff 1.8s ease-out infinite; }
.anim-mouth-round { transform-origin: 50px 44px; animation: mouthRoundPulse 1.7s ease-in-out infinite; }
.anim-tongue-tap { transform-origin: 50px 54px; animation: mouthTongueTap 1.6s ease-in-out infinite; }
.anim-mouth-smile { transform-origin: 50px 44px; animation: mouthSmileStretch 1.7s ease-in-out infinite; }
.anim-mouth-open { transform-origin: 50px 44px; animation: mouthOpenWide 1.8s ease-in-out infinite; }

/* 四阶 3-2-1 节拍同步共同发音舞台 */
.unison-stage {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.unison-beats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.unison-beat-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.unison-beat-circle.go-pill {
  width: auto;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 1.05rem;
}

.unison-beat-circle.active {
  border-color: #0284c7;
  background: #0ea5e9;
  color: #ffffff;
  transform: scale(1.16);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.22);
}

.unison-beat-circle.done {
  border-color: #7dd3fc;
  background: #e0f2fe;
  color: #0369a1;
}

.unison-beat-circle.go-pill.active {
  border-color: #059669;
  background: #10b981;
  box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.25);
}

.unison-status-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0369a1;
  text-align: center;
}

.unison-target-banner {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 8px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.unison-target-pinyin {
  font-size: 0.92rem;
  color: #047857;
  font-weight: 600;
}

.unison-target-word {
  font-size: 1.45rem;
  font-weight: 800;
  color: #065f46;
}

.unison-target-banner.speaking {
  animation: unisonSpeakPulse 0.8s ease-in-out infinite;
}

@keyframes unisonSpeakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08); }
}

.btn-unison-replay {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-unison-replay:hover {
  background: #bae6fd;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .naming-module-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .naming-module-btn {
    padding: 10px 12px;
    gap: 8px;
  }

  .naming-module-btn .m-icon {
    font-size: 1.6rem;
  }

  .naming-module-btn .m-title {
    font-size: 0.95rem;
  }

  .naming-card {
    padding: 20px 14px;
    min-height: 420px;
  }

  .naming-icon-hero {
    font-size: 3.4rem;
  }

  .naming-cloze-text {
    font-size: 1.6rem;
  }

  .cloze-box {
    min-width: 52px;
    height: 40px;
    font-size: 1.4rem;
    margin: 0 4px;
  }

  .answer-word {
    font-size: 2.1rem;
  }

  .btn-cue-tool {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

/* ================= 五阶临床天梯导航样式 ================= */
.naming-ladder-bar {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ladder-title-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #065f46;
}

.ladder-icon {
  font-size: 1.25rem;
}

.ladder-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ladder-btn {
  background-color: #ffffff;
  color: #047857;
  border: 1px solid #6ee7b7;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ladder-btn:hover {
  background-color: #d1fae5;
  border-color: #34d399;
}

.ladder-btn.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

/* ================= 护脑防疲劳科学组样式 ================= */
.anti-fatigue-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 8px 14px;
  margin-bottom: 12px;
  gap: 12px;
}

.fatigue-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.fatigue-icon {
  font-size: 1.2rem;
}

.fatigue-text {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
}

.fatigue-text b {
  color: #059669;
  font-weight: 700;
}

.session-progress-track {
  flex: 1;
  max-width: 220px;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.session-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.btn-fatigue-switch {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-fatigue-switch:hover {
  background-color: #d1fae5;
}

.btn-fatigue-switch.disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
}

/* 防疲劳休息提醒弹窗样式 */
.modal-rest {
  max-width: 580px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 2px solid #a7f3d0;
  box-shadow: 0 25px 40px -10px rgba(5, 150, 105, 0.18);
}

.rest-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.rest-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.rest-title-area h3 {
  font-size: 1.25rem;
  color: #065f46;
  font-weight: 700;
}

.rest-subtitle {
  font-size: 0.85rem;
  color: #059669;
  margin-top: 2px;
}

.rest-body {
  padding: 16px 0;
}

.desc-p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

.rest-tips-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.box-icon {
  font-size: 1.4rem;
  line-height: 1.2;
}

.box-text {
  font-size: 0.92rem;
  color: #1e40af;
  line-height: 1.5;
}

.box-text b {
  color: #1d4ed8;
}

.rest-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 10px;
}

/* ================= 电子/实体训练卡专区 ================= */
.flashcards-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flashcard-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fcd34d;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flashcard-banner-text h2 {
  font-size: 1.15rem;
  color: #92400e;
  margin-bottom: 4px;
}

.flashcard-banner-text p {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.45;
  margin: 0;
}

.flashcard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.flashcard-deck-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.flashcard-deck-select {
  min-width: 210px;
  max-width: 100%;
}

.flashcard-search-input {
  min-width: 160px;
  flex: 1;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.92rem;
  outline: none;
}

.flashcard-search-input:focus {
  border-color: var(--primary);
}

.flashcard-mode-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-flash-toggle {
  padding: 8px 13px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flash-toggle.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.btn-flash-print {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flash-print:hover {
  background: #fef3c7;
}

/* 实体厚纸卡质感电子卡 */
.physical-card-shell {
  background: #fffdf7;
  border: 4px solid #f59e0b;
  border-radius: 26px;
  padding: 20px 24px 24px;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.25s ease;
}

.physical-card-shell.theme-blue { border-color: #3b82f6; }
.physical-card-shell.theme-green { border-color: #10b981; }
.physical-card-shell.theme-rose { border-color: #f43f5e; }
.physical-card-shell.theme-purple { border-color: #8b5cf6; }
.physical-card-shell.theme-amber { border-color: #f59e0b; }

.physical-card-shell.face-to-face-full {
  border-width: 6px;
  padding: 26px 28px;
}

.flashcard-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.flashcard-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.flashcard-num-tag {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 999px;
}

/* 清晰大图区 + 汉字区 */
.flashcard-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.flashcard-visual-box {
  margin: 0 auto;
  width: 190px;
  height: 190px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fef9c3 100%);
  border: 2.5px dashed #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12);
}

.flashcard-big-emoji {
  font-size: 6.4rem;
  line-height: 1;
  user-select: none;
}

.flashcard-word-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.flashcard-pinyin {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.flashcard-hanzi {
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.08em;
  line-height: 1.2;
  word-break: keep-all;
}

.flashcard-hanzi.long-text {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  letter-spacing: 0.03em;
}

.flashcard-hidden-mask {
  background: #f1f5f9;
  border: 2px dashed #94a3b8;
  border-radius: 16px;
  padding: 14px 22px;
  color: #475569;
  font-size: 1.05rem;
  font-weight: 600;
}

/* 学以致用 · 实用生活短句框 */
.flashcard-sentence-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #fffbeb 100%);
  border: 2px solid #bae6fd;
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.flashcard-sentence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flashcard-sentence-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 11px;
  border-radius: 999px;
}

.btn-sentence-speak {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid #38bdf8;
  background: #ffffff;
  color: #0369a1;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sentence-speak:hover {
  background: #e0f2fe;
  transform: translateY(-1px);
}

.flashcard-sentence-text {
  font-size: clamp(1.18rem, 2.7vw, 1.5rem);
  font-weight: 600;
  color: #0f172a;
  line-height: 1.65;
  letter-spacing: 0.03em;
  text-align: left;
}

.flashcard-word-hl {
  background: #fef08a;
  color: #9a3412;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 #f59e0b;
}

.flashcard-word-blank {
  display: inline-block;
  background: #e2e8f0;
  color: #475569;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 700;
  border: 1.5px dashed #64748b;
}

/* 大字跟读 & 命名翻牌后的轻量「顺口练一句 / 造句巩固」框 */
.inline-sentence-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #fffbeb 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 16px;
  padding: 12px 16px;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.naming-answer-sentence-box {
  margin: 12px 0 2px;
  background: #ffffff;
  border-color: #93c5fd;
}

.inline-sentence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-sentence-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 999px;
}

.inline-sentence-text {
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
  font-weight: 600;
  color: #0f172a;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 口型与动作示范面板 */
.flashcard-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 680px) {
  .flashcard-demo-grid {
    grid-template-columns: 1fr;
  }
}

.flashcard-demo-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.flashcard-mouth-svg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashcard-demo-info h4 {
  font-size: 0.94rem;
  color: #1e3a8a;
  margin: 0 0 4px;
}

.flashcard-demo-info p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

.flashcard-caregiver-tip {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #065f46;
  line-height: 1.5;
}

.flashcard-actions-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* 缩略速览条 */
.flashcard-mini-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
}

.flashcard-mini-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
}

.flashcard-mini-pill.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 700;
}

/* 实体厚纸卡 A4 打印视图（默认隐藏，打印时全屏显示） */
.flashcard-print-sheet {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .app-container,
  .modal-backdrop {
    display: none !important;
  }
  .flashcard-print-sheet {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10mm;
    padding: 8mm;
    width: 100%;
    box-sizing: border-box;
  }
  .print-card-item {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 10mm 8mm;
    height: 125mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    page-break-inside: avoid;
    break-inside: avoid;
    background: #ffffff;
  }
  .print-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 10pt;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 3mm;
  }
  .print-card-emoji {
    font-size: 54pt;
    line-height: 1.05;
    margin: 4mm 0;
  }
  .print-card-pinyin {
    font-size: 16pt;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.06em;
  }
  .print-card-hanzi {
    font-size: 36pt;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
  }
  .print-card-hanzi.long-text {
    font-size: 22pt;
  }
  .print-card-sentence {
    width: 100%;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 2.5mm 3.5mm;
    font-size: 10.5pt;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    text-align: left;
    margin: 2mm 0;
  }
  .print-card-sentence b.print-hl {
    text-decoration: underline;
    color: #9a3412;
  }
  .print-card-demo {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 3mm 4mm;
    font-size: 9.5pt;
    color: #334155;
    line-height: 1.4;
    text-align: left;
  }
}




/* ================= L5 看图叙事专属矢量场景插画 ================= */
.narrative-scene-box {
  margin: 4px auto 16px;
  max-width: 620px;
  width: 100%;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.narrative-scene-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.narrative-scene-svg {
  width: 100%;
  height: auto;
  max-height: 270px;
  border-radius: 14px;
  display: block;
}

.narrative-cue-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.narrative-cue-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.92rem;
  font-weight: 600;
}


/* ================= 视图 6：认知康复训练中心样式 ================= */
.cognitive-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.cog-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 18px;
  padding: 16px 20px;
}

.cog-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.cog-hero-sub {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.cog-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cog-stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  color: #475569;
}

.cog-stat-pill.cog-stat-main {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 600;
}

.cog-domain-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.cog-domain-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
  color: #334155;
}

.cog-domain-btn:hover {
  border-color: #60a5fa;
  background: #f8fafc;
}

.cog-domain-btn.active {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
}

.cog-d-icon {
  font-size: 1.65rem;
}

.cog-d-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.cog-level-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
}

.cog-level-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cog-level-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.cog-level-btn.active {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.cog-domain-desc {
  font-size: 0.88rem;
  color: #64748b;
  flex: 1;
  min-width: 220px;
}

.cog-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cog-submode-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cog-submode-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.cog-submode-btn.active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}

.cog-task-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cog-task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cog-tag {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.cog-progress {
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
}

.cog-prompt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cog-prompt-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.55;
  flex: 1;
}

.cog-big-expr {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.06em;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 18px 12px;
}

.cog-feedback-box {
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.cog-feedback-box.info {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.cog-feedback-box.success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

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

.cog-choice-btn {
  padding: 18px 14px;
  border-radius: 16px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cog-choice-btn:hover:not(:disabled) {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.cog-choice-btn.correct {
  border-color: #10b981;
  background: #d1fae5;
  color: #065f46;
}

.cog-choice-btn.wrong-soft {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  text-decoration: line-through;
}

.cog-task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 短时记忆：数字广度 */
.cog-span-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cog-toggle-label {
  font-size: 0.9rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cog-span-flash-box {
  min-height: 112px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
  border: 2px solid #c7d2fe;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.span-flash-num {
  font-size: 3.4rem;
  font-weight: 900;
  color: #3730a3;
  animation: fadeInDown 0.2s ease-out;
}

.span-hint-msg {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
}

.cog-span-answer-slots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cog-digit-slot {
  width: 52px;
  height: 58px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #94a3b8;
}

.cog-digit-slot.filled {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #312e81;
}

.cog-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cog-keypad.disabled-pad {
  opacity: 0.48;
  pointer-events: none;
}

.cog-key-btn {
  padding: 14px 8px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
}

.cog-key-btn:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

.cog-key-btn.key-action {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
  font-size: 1.05rem;
}

.cog-key-btn.key-confirm {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
  font-size: 1.05rem;
}

/* 短时记忆：图文翻牌 */
.cog-memory-grid {
  display: grid;
  gap: 12px;
}

.cog-memory-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cog-memory-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cog-mem-card {
  min-height: 102px;
  border-radius: 16px;
  border: 2px solid #cbd5e1;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.cog-mem-card.open {
  background: #ffffff;
  border-color: #60a5fa;
}

.cog-mem-card.matched {
  background: #ecfdf5;
  border-color: #34d399;
}

.mem-icon {
  font-size: 2.2rem;
}

.mem-label {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}

.mem-back {
  font-size: 2rem;
  font-weight: 900;
  color: #3b82f6;
}

/* 故事图片排序 */
.cog-story-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}

.cog-story-slot {
  min-height: 106px;
  border-radius: 14px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.cog-story-slot.current-slot {
  border-color: #f59e0b;
  background: #fffbeb;
}

.cog-story-slot.filled {
  border-style: solid;
  border-color: #3b82f6;
  background: #eff6ff;
  cursor: pointer;
}

.cog-story-slot.filled.done {
  border-color: #10b981;
  background: #ecfdf5;
  cursor: default;
}

.slot-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 999px;
}

.slot-placeholder {
  font-size: 0.84rem;
  color: #94a3b8;
  font-weight: 600;
}

.cog-story-pool {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.cog-story-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cog-story-card:hover:not(:disabled) {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.cog-story-card.used {
  opacity: 0.3;
  cursor: default;
}

.cog-story-card.hint-glow {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.story-card-icon {
  font-size: 2.1rem;
}

.story-card-label {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.story-card-cap {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}

.cog-story-speak-banner {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 700;
  color: #0369a1;
}

/* 注意力划消 */
.cog-target-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 2px 10px;
  border-radius: 10px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #92400e;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 4px;
}

.cog-cancel-grid {
  display: grid;
  gap: 10px;
}

.cog-cancel-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cog-cancel-grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.cog-cancel-cell {
  min-height: 68px;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.14s ease;
}

.cog-cancel-cell:hover:not(:disabled) {
  border-color: #3b82f6;
  background: #eff6ff;
}

.cog-cancel-cell.hit {
  border-color: #10b981;
  background: #d1fae5;
  color: #065f46;
  box-shadow: inset 0 0 0 2px #34d399;
}

.cog-cancel-cell.miss-soft {
  border-color: #fbbf24;
  background: #fef3c7;
}

/* 逻辑分类找不同 */
.cog-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cog-cat-card {
  padding: 20px 14px;
  border-radius: 16px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cog-cat-card:hover:not(:disabled) {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-2px);
}

.cog-cat-card.correct {
  border-color: #10b981;
  background: #d1fae5;
}

.cog-cat-card.wrong-soft {
  border-color: #e2e8f0;
  background: #f1f5f9;
  opacity: 0.55;
}

.cog-cat-icon {
  font-size: 2.5rem;
}

.cog-cat-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
}

/* 总结卡 */
.cog-summary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cog-summary-emoji {
  font-size: 3.2rem;
}

.cog-summary-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #065f46;
  margin: 0;
}

.cog-summary-score {
  font-size: 1.2rem;
  color: #1e293b;
}

.cog-summary-extra {
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
}

.cog-summary-praise {
  font-size: 1.05rem;
  color: #334155;
  margin: 0;
}

.cog-rest-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.94rem;
}

.cog-summary-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .cog-domain-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .cog-big-expr {
    font-size: 2rem;
  }
  .cog-cancel-cell {
    min-height: 56px;
    font-size: 1.45rem;
  }
}

/* ================= 纯画面 4 格连环画故事排序样式（博爱医院风格） ================= */
.cog-story-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cog-story-instruction {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.cog-story-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.story-pic-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.story-pic-slots.grid-6 {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.story-pic-slot {
  position: relative;
  border-radius: 16px;
  border: 2.5px dashed #cbd5e1;
  background: #f8fafc;
  padding: 6px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.18s ease;
}

.story-pic-slot.current-slot {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.story-pic-slot.filled {
  border-style: solid;
  border-color: #3b82f6;
  background: #ffffff;
  cursor: pointer;
  padding: 4px;
}

.story-pic-slot.filled:hover:not(.done) {
  border-color: #ef4444;
  transform: translateY(-2px);
}

.story-pic-slot.filled.done {
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
  cursor: default;
}

.story-slot-num {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.story-pic-slot.filled.done .story-slot-num {
  background: #10b981;
}

.story-slot-empty-icon {
  font-size: 2rem;
  opacity: 0.75;
}

.story-pic-pool {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
}

.story-pic-pool.grid-6 {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.story-pic-card {
  position: relative;
  border-radius: 16px;
  border: 3px solid #ffffff;
  background: #ffffff;
  padding: 4px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
}

.story-pic-card:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  border-color: #3b82f6;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.story-pic-card.used {
  opacity: 0.22;
  filter: grayscale(0.7);
  cursor: default;
  box-shadow: none;
}

.story-pic-card.hint-glow {
  border-color: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.38);
  animation: unisonSpeakPulse 0.9s ease-in-out infinite;
}

.story-pic-frame {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background-size: 204% 204%;
  background-repeat: no-repeat;
  flex: 1;
}

.story-pic-frame.grid-6 {
  background-size: 306% 204%;
}

.story-pic-subcap {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .story-pic-slots,
  .story-pic-pool,
  .story-pic-slots.grid-6,
  .story-pic-pool.grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ================= 视图 7：镜像神经元系统（MNS）视听同步跟读样式 ================= */
.mirror-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.mns-hero {
  background: linear-gradient(135deg, #fff1f2 0%, #eff6ff 100%);
  border: 1.5px solid #fecdd3;
  border-radius: 18px;
  padding: 16px 20px;
}

.mns-hero-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #9f1239;
  margin-bottom: 4px;
}

.mns-hero-sub {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.mns-group-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mns-group-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 11px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.16s ease;
}

.mns-group-btn:hover {
  border-color: #fb7185;
  background: #fff1f2;
}

.mns-group-btn.active {
  border-color: #e11d48;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #9f1239;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.14);
}

.mns-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mns-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mns-badge {
  background: #fff1f2;
  color: #be123c;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.mns-counter {
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
}

.mns-word-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mns-pinyin {
  font-size: 1.35rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
}

.mns-word {
  font-size: 3.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.12em;
}

.mns-char-token,
.mns-py-token {
  display: inline-block;
  padding: 0 4px;
  border-radius: 10px;
  transition: all 0.16s ease;
}

.mns-char-token.active {
  color: #e11d48;
  background: #ffe4e6;
  transform: scale(1.12);
}

.mns-py-token.active {
  color: #be123c;
  font-weight: 900;
}

.mns-tip {
  font-size: 0.98rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 7px 14px;
  margin-top: 4px;
}

.mns-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mns-pane {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mns-pane-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}

.mns-demo-box,
.mns-cam-box {
  position: relative;
  width: 100%;
  min-height: 225px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mns-svg-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
}

.mns-active-syl-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 3px 14px;
}

.mns-syl-char {
  font-size: 1.25rem;
  font-weight: 900;
  color: #9f1239;
}

.mns-syl-py {
  font-size: 1rem;
  font-weight: 700;
  color: #e11d48;
}

.mns-video {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.mns-video.mns-mirrored {
  transform: scaleX(-1);
}

.mns-cam-guide {
  position: absolute;
  width: 130px;
  height: 90px;
  border: 2px dashed rgba(225, 29, 72, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.mns-cam-placeholder {
  text-align: center;
  color: #475569;
  font-weight: 600;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mns-meter-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mns-meter-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.mns-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399 0%, #10b981 60%, #f59e0b 100%);
  transition: width 0.08s linear;
}

.mns-sub-status {
  font-size: 0.84rem;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

.mns-pane-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.mns-stage-banner {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  color: #0c4a6e;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.mns-stage-banner.observing {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.mns-stage-banner.counting {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.mns-stage-banner.speaking,
.mns-stage-banner.done {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.mns-action-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.mns-word-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mns-strip-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.mns-strip-chip.active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #9f1239;
}

@media (max-width: 768px) {
  .mns-group-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .mns-split-grid {
    grid-template-columns: 1fr;
  }
  .mns-word {
    font-size: 2.5rem;
  }
}

/* 全局通用隐藏类：确保所有模块切换与动态显隐不会残留旧内容 */
.hidden {
  display: none !important;
}
