/* ============================================================
   拼音小诊所 · 设计系统
   主色 #FF6B6B 红 + 辅色 #4ECDC4 青 · 儿童友好 · 大字体大按钮
   ============================================================ */

:root {
  --c-primary: #FF6B6B;
  --c-primary-soft: #FFE8E8;
  --c-orange: #FF8E53;
  --c-cyan: #4ECDC4;
  --c-cyan-deep: #2BA69D;
  --c-cyan-soft: #E0F7F5;
  --c-yellow-soft: #FFF4D6;
  --c-yellow-deep: #E5A50A;
  --c-ink: #4A4A4A;
  --c-sub: #9AA0A6;
  --c-bg: #FFF9F0;
  --c-card: #FFFFFF;
  --c-line: #F0F0F0;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-card: 0 6px 18px rgba(255, 107, 107, 0.08);
  --shadow-tab: 0 -6px 24px rgba(74, 74, 74, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: var(--c-ink);
  line-height: 1.6;
  background: linear-gradient(160deg, #FFE3D0 0%, #FFEFDF 45%, #E6F7F5 100%);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 应用外壳：手机优先，桌面居中窄栏 ---------- */

.app-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-bg);
  position: relative;
}

@media (min-width: 560px) {
  .app-shell {
    box-shadow: 0 0 48px rgba(255, 107, 107, 0.14);
  }
}

.view-container {
  padding: 16px 16px 104px;
}

.view-container.anim { animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 底部导航 ---------- */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  display: flex;
  background: var(--c-card);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-tab);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
}

.tab-icon {
  font-size: 24px;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

.tab-label {
  margin-top: 2px;
  font-size: 12px;
  color: var(--c-sub);
  transition: color 0.2s ease;
}

.tab-item.active .tab-icon { transform: scale(1.18) translateY(-2px); }
.tab-item.active .tab-label { color: var(--c-primary); font-weight: 700; }

/* ---------- 卡片 ---------- */

.card {
  background: var(--c-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-title .ico {
  margin-right: 8px;
  font-size: 20px;
}

.section-desc {
  font-size: 14px;
  color: var(--c-sub);
  margin-bottom: 14px;
}

/* ---------- 首页 Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-orange) 100%);
  color: #fff;
}

.hero-emoji {
  font-size: 48px;
  margin-right: 14px;
  animation: floaty 3s ease-in-out infinite;
}

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

.hero-title { font-size: 22px; font-weight: 700; }
.hero-sub { font-size: 14px; opacity: 0.9; margin-top: 4px; }

/* ---------- 朗读主入口卡片 ---------- */

.read-cta {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #6BD5CE 100%);
  color: #fff;
  text-align: center;
  padding: 26px 20px 24px;
  box-shadow: 0 8px 20px rgba(78, 205, 196, .35);
}

.read-cta-emoji {
  font-size: 52px;
  line-height: 1;
  animation: floaty 3s ease-in-out infinite;
}

.read-cta-title {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 4px;
}

.read-cta-desc {
  font-size: 14px;
  opacity: .92;
  margin-bottom: 18px;
}

.btn-light {
  background: #fff;
  color: #2FA8A0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  font-size: 18px;
  padding: 15px 0;
}

.btn-light:active {
  transform: scale(.97);
}

/* ---------- 纵向按钮组（个人中心） ---------- */

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- 学习进度 ---------- */

.progress-row { display: flex; align-items: center; padding: 6px 0; }

.progress-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-num { font-size: 36px; font-weight: 700; line-height: 1.2; }
.progress-num.cyan { color: var(--c-cyan); }
.progress-num.red { color: var(--c-primary); }

.progress-label { font-size: 13px; color: var(--c-sub); margin-top: 4px; }

.progress-divider { width: 1px; height: 40px; background: var(--c-line); }

/* ---------- 按钮 ---------- */

a.btn { text-decoration: none; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  padding: 14px 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: scale(0.96); opacity: 0.92; }

.btn:focus-visible { outline: 3px solid rgba(78, 205, 196, 0.6); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-orange) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #6BD5CE 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(78, 205, 196, 0.35);
}

.btn-ghost {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tag-red { background: var(--c-primary-soft); color: var(--c-primary); }
.tag-cyan { background: var(--c-cyan-soft); color: var(--c-cyan-deep); }
.tag-yellow { background: var(--c-yellow-soft); color: var(--c-yellow-deep); }

/* ---------- 空状态 ---------- */

.empty {
  text-align: center;
  padding: 26px 0;
}

.empty-icon {
  display: block;
  font-size: 44px;
  margin-bottom: 8px;
}

.empty-text { color: #B0B0B0; font-size: 14px; }

/* ---------- 个人中心 ---------- */

.profile-card { display: flex; align-items: center; }

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cyan) 0%, #6BD5CE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  margin-right: 14px;
}

.profile-name { font-size: 20px; font-weight: 700; }
.profile-class { font-size: 13px; color: var(--c-sub); margin: 4px 0 8px; }

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-item:hover { background: var(--c-bg); }

.menu-arrow { color: #C8C8C8; font-size: 20px; }

.code-input {
  width: 100%;
  background: #F7F7F7;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 17px;
  letter-spacing: 6px;
  text-align: center;
  font-family: inherit;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.code-input:focus {
  background: #fff;
  border-color: var(--c-cyan);
}

/* ---------- Toast 轻提示 ---------- */

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, 0);
  background: rgba(74, 74, 74, 0.92);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 200;
  animation: toastIn 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 88vw;
}

.toast-ico {
  font-size: 15px;
  flex-shrink: 0;
}

.toast.success { background: linear-gradient(135deg, var(--c-cyan), var(--c-cyan-deep)); }
.toast.error { background: linear-gradient(135deg, var(--c-primary), #F5544F); }

.toast.out { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translate(-50%, -10px); }
}

/* ---------- 今日作业卡片 ---------- */

.hw-body { display: flex; align-items: center; }

.hw-emoji {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--c-yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  margin-right: 12px;
}

.hw-info { flex: 1; min-width: 0; }
.hw-song { font-size: 17px; font-weight: 700; }
.hw-deadline { font-size: 12px; color: var(--c-yellow-deep); margin-top: 2px; }

.hw-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-orange) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  transition: transform 0.15s ease;
}

.hw-btn:active { transform: scale(0.94); }

/* ---------- 儿歌列表：筛选 chips ---------- */

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--c-card);
  color: var(--c-sub);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.chip.active {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.chip:active { transform: scale(0.94); }

.unit-header {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-sub);
  margin: 18px 4px 10px;
}

.unit-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-line);
  margin-left: 10px;
}

/* ---------- 儿歌卡片 ---------- */

a.song-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.song-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.14);
}

a.song-card:active { transform: scale(0.98); }

.song-emoji {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--c-cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  margin-right: 14px;
}

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

.song-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.song-title { font-size: 18px; font-weight: 700; }

.song-preview {
  font-size: 13px;
  color: var(--c-sub);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-meta { font-size: 12px; color: #C8C8C8; margin-top: 6px; }

.song-go { color: #C8C8C8; font-size: 22px; flex-shrink: 0; margin-left: 6px; }

/* ---------- 朗读页头部与儿歌文本 ---------- */

.record-head { display: flex; align-items: center; }

.record-emoji {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--c-cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  margin-right: 14px;
}

.record-title { font-size: 20px; font-weight: 700; }
.record-meta { font-size: 13px; color: var(--c-sub); margin-top: 4px; }

/* ---------- 朗读页：逐字拼音注音 ---------- */

.py-body { padding: 4px 0; }

.py-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 14px;
  margin-bottom: 10px;
}

.py-line:last-child { margin-bottom: 0; }

.zi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1px;
}

.py {
  display: block;
  height: 26px;
  line-height: 26px;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-cyan-deep);
  white-space: nowrap;
}

.hz {
  display: block;
  font-size: 32px;
  line-height: 1.25;
  color: var(--c-ink);
}

/* ---------- 录音面板 ---------- */

.rec-tip { text-align: center; }

.rec-hint {
  text-align: center;
  font-size: 13px;
  color: var(--c-sub);
  margin-top: 10px;
}

.rec-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 136px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-orange) 100%);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  margin: 6px auto 0;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rec-big:hover { box-shadow: 0 14px 36px rgba(255, 107, 107, 0.5); }
.rec-big:active { transform: scale(0.94); }
.rec-big:focus-visible { outline: 3px solid rgba(78, 205, 196, 0.6); outline-offset: 4px; }

.rec-big-icon { font-size: 46px; line-height: 1.1; }
.rec-big-label { font-size: 16px; font-weight: 700; margin-top: 4px; }

.rec-live {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rec-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  margin: 6px 0 8px;
}

.rec-wave span {
  width: 6px;
  height: 36px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-orange));
  transform-origin: center;
  animation: wave 0.9s ease-in-out infinite;
}

.rec-wave span:nth-child(1) { animation-delay: 0s; }
.rec-wave span:nth-child(2) { animation-delay: 0.12s; }
.rec-wave span:nth-child(3) { animation-delay: 0.24s; }
.rec-wave span:nth-child(4) { animation-delay: 0.36s; }
.rec-wave span:nth-child(5) { animation-delay: 0.48s; }
.rec-wave span:nth-child(6) { animation-delay: 0.6s; }
.rec-wave span:nth-child(7) { animation-delay: 0.72s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.rec-timer {
  font-size: 34px;
  font-weight: 700;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.rec-done audio { width: 100%; }

.rec-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.rec-actions .btn { flex: 1; padding: 12px 0; font-size: 15px; }

.rec-dur {
  text-align: center;
  font-size: 12px;
  color: var(--c-sub);
  margin-top: 10px;
}

/* ---------- 评测中：加载动画 ---------- */

.rec-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--c-primary-soft);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.rec-loading-text {
  font-size: 15px;
  color: var(--c-sub);
}

/* ---------- 评测结果 ---------- */

.eval-result { text-align: center; }

.score-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 6px auto 16px;
}

.score-circle.score-good {
  background: linear-gradient(135deg, #4ECDC4, #2BA69D);
  color: #fff;
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.4);
}

.score-circle.score-mid {
  background: linear-gradient(135deg, #FFD93D, #E5A50A);
  color: #fff;
  box-shadow: 0 8px 24px rgba(229, 165, 10, 0.4);
}

.score-circle.score-low {
  background: linear-gradient(135deg, #FF6B6B, #F5544F);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.score-num { font-size: 44px; font-weight: 700; line-height: 1; }
.score-label { font-size: 13px; opacity: 0.9; margin-top: 4px; }

.sub-scores {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.sub-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sub-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-ink);
}

.sub-label {
  font-size: 12px;
  color: var(--c-sub);
  margin-top: 2px;
}

.err-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 10px 0;
  text-align: left;
}

.error-list {
  text-align: left;
  margin-bottom: 16px;
}

.error-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 14px;
}

.error-item.err-wrong {
  background: var(--c-primary-soft);
  border-left: 4px solid var(--c-primary);
}

.error-item.err-sub {
  background: var(--c-yellow-soft);
  border-left: 4px solid var(--c-yellow-deep);
}

.err-char {
  font-size: 22px;
  font-weight: 700;
  min-width: 32px;
}

.err-py {
    font-size: 16px;
    color: var(--c-cyan-deep);
    font-weight: 600;
    min-width: 64px;
    }

.err-desc {
  flex: 1;
  color: var(--c-sub);
  font-size: 13px;
}

.eval-perfect {
  background: var(--c-cyan-soft);
  color: var(--c-cyan-deep);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.rec-provider {
  font-size: 11px;
  color: #C8C8C8;
  margin-top: 12px;
}

/* ---------- 第五步：拼音文本标注 ---------- */

.zi {
  cursor: pointer;
  border-radius: 8px;
  transition: transform .12s ease, background .25s ease;
}

.zi:active {
  transform: scale(.88);
}

.zi.punct {
  cursor: default;
}

.zi.punct:active {
  transform: none;
}

.zi.z-wrong .py,
.zi.z-wrong .hz {
  color: #F5544F;
}

.zi.z-wrong {
  animation: zWrongPulse 1.6s ease-in-out infinite;
}

.zi.z-sub .py,
.zi.z-sub .hz {
  color: #D89B00;
}

.zi.z-sub {
  background: rgba(255, 217, 61, .2);
}

@keyframes zWrongPulse {
  0%, 100% { background: rgba(255, 107, 107, .12); }
  50% { background: rgba(255, 107, 107, .3); }
}

.py-hint {
  text-align: center;
  font-size: 12px;
  color: #C8C8C8;
  margin-top: 12px;
}

/* ---------- 音节详情弹窗 ---------- */

.modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(74, 74, 74, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
  animation: fadeIn .18s ease;
}

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

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  animation: popIn .22s ease;
}

@keyframes popIn {
  from { transform: scale(.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.sd-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 18px;
  color: #C8C8C8;
  cursor: pointer;
  padding: 4px;
}

.sd-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.sd-hz {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
}

.sd-py {
    font-size: 24px;
    font-weight: 600;
    color: var(--c-cyan-deep);
    }

.sd-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sd-err {
  text-align: center;
  font-size: 13px;
  color: var(--c-primary);
  margin-bottom: 10px;
}

.sd-curve {
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
}

.tc-svg {
  width: 100%;
  height: auto;
  display: block;
}

.tc-svg line {
  stroke: #EDEDED;
  stroke-width: 1;
}

.tc-correct {
  fill: none;
  stroke: var(--c-cyan);
  stroke-width: 4;
  stroke-linecap: round;
}

.tc-actual {
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 3;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
}

.sd-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
}

.lg-cyan {
  color: var(--c-cyan-deep);
  font-weight: 600;
}

.lg-red {
  color: var(--c-primary);
  font-weight: 600;
}

.sd-speak-btn {
  width: 100%;
}

/* ---------- 鼓励卡片 ---------- */

.enc-card {
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.enc-great,
.enc-good {
  background: linear-gradient(135deg, #E0F7F5, #F0FBFA);
}

.enc-mid {
  background: var(--c-yellow-soft);
}

.enc-low {
  background: var(--c-primary-soft);
}

.enc-head {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.enc-tip {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink);
}

/* ---------- 错误项发音按钮 ---------- */

.error-item {
  cursor: pointer;
}

.err-speak {
  border: none;
  background: var(--c-cyan-soft);
  color: var(--c-cyan-deep);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease;
}

.err-speak:active {
  transform: scale(.88);
}

/* ---------- 第六步：启动画面 + 注册引导 ---------- */

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px;
}

.splash-logo {
  font-size: 64px;
  margin-bottom: 24px;
  animation: splashBounce 1.2s ease-in-out infinite;
}

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

.onboard-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, rgba(255, 107, 107, .14), rgba(78, 205, 196, .16));
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 24px;
  animation: fadeIn .2s ease;
}

.onboard-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
  animation: popIn .25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.onboard-brand {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-primary), var(--c-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.onboard-welcome {
  text-align: center;
  font-size: 14px;
  color: var(--c-sub);
  line-height: 1.8;
  margin-bottom: 20px;
}

.onboard-input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #EEE;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 17px;
  outline: none;
  transition: border-color .2s ease;
  margin-bottom: 14px;
}

.onboard-input:focus {
  border-color: var(--c-cyan);
}

.ob-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.ob-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ob-toggle {
  width: 100%;
  border: 2px dashed #DDD;
  background: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
  color: var(--c-sub);
  cursor: pointer;
  transition: all .2s ease;
  margin-bottom: 12px;
}

.ob-toggle.active {
  border-color: var(--c-cyan);
  border-style: solid;
  background: var(--c-cyan-soft);
  color: var(--c-cyan-deep);
  font-weight: 700;
}

.ob-teacher {
  display: none;
}

.ob-teacher.show {
  display: block;
}

.onboard-btn {
  width: 100%;
  margin-top: 6px;
}

/* ---------- 第七步：教师看板 ---------- */

.tch-tabs {
  display: flex;
  gap: 6px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.tch-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 4px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--c-sub);
  cursor: pointer;
  transition: all .2s ease;
}

.tch-tab.active {
  background: linear-gradient(135deg, var(--c-primary), #FF8E8E);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 107, .35);
}

.tch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.tch-stat {
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: 14px 4px;
  text-align: center;
}

.tch-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.tch-num.cyan {
  color: var(--c-cyan-deep);
}

.tch-num.red {
  color: var(--c-primary);
}

.tch-label {
  font-size: 11px;
  color: var(--c-sub);
  margin-top: 2px;
}

.hw-progress {
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: 14px;
}

.hw-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
}

.hw-progress-track {
  height: 12px;
  background: #EDEDED;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.hw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-primary));
  border-radius: 6px;
  transition: width .6s ease;
  min-width: 4px;
}

.hw-progress-sub {
  font-size: 12px;
  color: var(--c-sub);
}

.hw-none {
  background: var(--c-yellow-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--c-ink);
  text-align: center;
}

.heat-list {
  margin-top: 6px;
}

.heat-row {
  margin-bottom: 14px;
}

.heat-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.heat-char {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.heat-py {
  color: var(--c-cyan-deep);
  font-weight: 600;
  font-size: 13px;
}

.heat-desc {
  flex: 1;
  font-size: 12px;
  color: var(--c-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heat-count {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.heat-track {
  height: 10px;
  background: #F2F2F2;
  border-radius: 5px;
  overflow: hidden;
}

.heat-fill {
  height: 100%;
  border-radius: 5px;
  transition: width .5s ease;
  min-width: 6px;
}

.heat-fill.t-initial {
  background: linear-gradient(90deg, #FF8E8E, var(--c-primary));
}

.heat-fill.t-final {
  background: linear-gradient(90deg, #7EDCD5, var(--c-cyan));
}

.heat-fill.t-tone {
  background: linear-gradient(90deg, #FFDA3D, #E5A50A);
}

.heat-fill.t-other {
  background: #B0B0B0;
}

.heat-insight {
  background: var(--c-yellow-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}

.stu-list {
  margin-top: 6px;
}

.stu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--c-bg);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform .12s ease;
}

.stu-row:active {
  transform: scale(.98);
}

.stu-avatar {
  font-size: 26px;
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.stu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stu-name {
  font-size: 15px;
  font-weight: 700;
}

.stu-meta {
  font-size: 12px;
  color: var(--c-sub);
}

.stu-hint {
  text-align: center;
  font-size: 12px;
  color: #C8C8C8;
  margin-top: 4px;
}

.cur-hw {
  font-size: 15px;
  font-weight: 700;
  background: var(--c-cyan-soft);
  color: var(--c-cyan-deep);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 12px;
  color: var(--c-sub);
  line-height: 1.6;
}

.assign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.assign-song {
  background: var(--c-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}

.assign-song.active {
  border-color: var(--c-cyan);
  background: var(--c-cyan-soft);
}

.as-emoji {
  font-size: 26px;
}

.as-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
}

.assign-custom {
  font-size: 13px;
  color: var(--c-sub);
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dl-input {
  border: 2px solid #EEE;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.dl-input:focus {
  border-color: var(--c-cyan);
}

.assign-btn {
  width: 100%;
}

/* ---------- 学生详情弹窗 ---------- */

.sd-stu-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.sd-stu-avatar {
  font-size: 34px;
  width: 60px;
  height: 60px;
  background: var(--c-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-stu-name {
  font-size: 20px;
  font-weight: 800;
}

.sd-stu-class {
  font-size: 13px;
  color: var(--c-sub);
  margin-top: 2px;
}

.sd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.sd-stat {
  background: var(--c-bg);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
}

.sd-stat-num {
  font-size: 22px;
  font-weight: 800;
}

.sd-stat-num.sm {
  font-size: 14px;
  padding-top: 6px;
}

.sd-stat-label {
  font-size: 11px;
  color: var(--c-sub);
  margin-top: 2px;
}

.sd-weak {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 14px;
}

.sd-section {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.sd-curve-box {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #F0F0F0;
  padding: 8px;
}

.trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

.trend-grid {
  stroke: #EDEDED;
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.trend-area {
  fill: rgba(78, 205, 196, .15);
}

.trend-line {
  fill: none;
  stroke: var(--c-cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-svg circle {
  fill: #fff;
  stroke: var(--c-cyan);
  stroke-width: 2.5;
}

.trend-txt {
  font-size: 11px;
  fill: var(--c-sub);
  font-weight: 700;
}

.trend-empty {
  text-align: center;
  font-size: 13px;
  color: var(--c-sub);
  padding: 18px 0;
}

.srec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--c-bg);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.srec-date {
  color: var(--c-sub);
  font-size: 12px;
  min-width: 62px;
}

.srec-song {
  flex: 1;
  font-weight: 600;
}

.srec-score {
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
}

.sc-good {
  background: var(--c-cyan-soft);
  color: var(--c-cyan-deep);
}

.sc-mid {
  background: var(--c-yellow-soft);
  color: #B8860B;
}

.sc-low {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.sd-top-errors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- 教师：上传儿歌 ---------- */

.song-input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #EEE;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease;
  margin-bottom: 12px;
  font-family: inherit;
  color: var(--c-ink);
}

.song-input:focus,
.song-textarea:focus {
  border-color: var(--c-cyan);
}

.song-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #EEE;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 16px;
  line-height: 1.8;
  outline: none;
  transition: border-color .2s ease;
  margin-bottom: 14px;
  font-family: inherit;
  color: var(--c-ink);
  resize: vertical;
  min-height: 110px;
}

.song-emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.song-emoji {
  width: 44px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--c-bg);
  font-size: 22px;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1;
}

.song-emoji.active {
  border-color: var(--c-cyan);
  background: var(--c-cyan-soft);
  transform: scale(1.08);
}

.song-preview-box {
  background: var(--c-bg);
  border: 2px dashed #E8E0D4;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  margin-bottom: 16px;
  min-height: 90px;
}

.song-preview-box .py {
  height: 20px;
  line-height: 20px;
  font-size: 14px;
}

.song-preview-box .hz {
  font-size: 26px;
}

.song-warn {
  background: var(--c-yellow-soft);
  color: #B8860B;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.song-upload-btn {
  width: 100%;
}

.song-upload-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.my-song-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.my-song-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.my-song-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.my-song-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-song-meta {
  font-size: 12px;
  color: var(--c-sub);
  margin-top: 2px;
}

.my-song-ops {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-mini {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--c-cyan-soft);
  color: var(--c-cyan-deep);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}

.btn-mini:active {
  transform: scale(.94);
}

.btn-mini.danger {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.btn-mini.danger[data-confirm] {
  background: var(--c-primary);
  color: #fff;
}

.btn-mini:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.sd-top-err {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--c-bg);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
}

/* 弹窗内容较长时滚动 */
.modal-card {
  max-height: 85vh;
  overflow-y: auto;
}

/* ---------- 第八步：庆祝动画 + 音效反馈 + 细节打磨 ---------- */

/* 庆祝层：彩带 + 星星 */
#celebrateLayer {
  position: fixed;
  top: -20px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 1;
  }
  90% { opacity: 1; }
  100% {
    transform: translateY(105vh) translateX(var(--drift, 0px)) rotate(var(--rot, 360deg));
    opacity: 0;
  }
}

.cele-star {
  position: absolute;
  top: -40px;
  animation: starFall linear forwards;
}

@keyframes starFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(8vh) rotate(60deg) scale(1.1);
  }
  100% {
    transform: translateY(105vh) rotate(300deg) scale(.9);
    opacity: 0;
  }
}

/* 评测结果入场编排 */
.score-circle {
  animation: scorePop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes scorePop {
  from {
    transform: scale(.3);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.sub-score {
  animation: subIn .45s ease both;
}

.sub-score:nth-child(1) { animation-delay: .35s; }
.sub-score:nth-child(2) { animation-delay: .53s; }
.sub-score:nth-child(3) { animation-delay: .71s; }

@keyframes subIn {
  from {
    transform: translateY(14px) scale(.85);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* 错误项依次滑入（delay 由 JS 内联） */
.error-item {
  animation: errIn .4s ease both;
}

@keyframes errIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.eval-perfect {
  animation: perfectBounce .7s cubic-bezier(.34, 1.56, .64, 1) .3s both;
}

@keyframes perfectBounce {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 录音大按钮呼吸光环 */
.rec-big {
  position: relative;
  animation: recBreath 2.4s ease-in-out infinite;
}

@keyframes recBreath {
  0%, 100% {
    box-shadow: 0 10px 28px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0.35);
  }
  50% {
    box-shadow: 0 10px 28px rgba(255, 107, 107, 0.5), 0 0 0 18px rgba(255, 107, 107, 0);
  }
}

/* tabbar 按压反馈 */
.tab-item {
  transition: transform .12s ease, opacity .12s ease;
}

.tab-item:active {
  transform: scale(.88);
}

/* 通用按钮按压 */
.btn:active {
  transform: scale(.95);
}

/* 错误列表容器遮挡修复：入场动画平移时避免溢出 */
.error-list {
  overflow: hidden;
}

/* 减少动效偏好：关闭所有装饰动画 */
@media (prefers-reduced-motion: reduce) {
  .confetti,
  .cele-star,
  .rec-big,
  .zi.z-wrong {
    animation: none !important;
  }
}

/* ---------- 儿歌全文范读 ---------- */

/* 朗读页：标题行 + 范读按钮 */
.demo-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-demo {
  border: none;
  background: var(--c-cyan-soft);
  color: var(--c-cyan-deep);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s ease;
}

.btn-demo:active {
  transform: scale(.93);
}

.btn-demo.playing {
  background: linear-gradient(135deg, var(--c-primary), #FF8E8E);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 107, .35);
  animation: demoPulse 1.6s ease-in-out infinite;
}

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

/* 范读中：当前行高亮 */
.py-line {
  transition: background .2s ease, transform .2s ease;
  border-radius: 12px;
  padding: 2px 6px;
  margin: 0 -6px;
}

.py-line.reading {
  background: var(--c-cyan-soft);
  transform: scale(1.03);
}

.py-line.reading .hz {
  color: var(--c-cyan-deep);
  font-weight: 700;
}

/* 列表卡片：范读圆形按钮 */
.song-demo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--c-bg);
  font-size: 19px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  align-self: center;
}

.song-demo:hover {
  background: var(--c-cyan-soft);
  transform: scale(1.1);
}

.song-demo:active {
  transform: scale(.9);
}

/* ---------- 界面文字拼音注音 ---------- */

ruby.anno {
  ruby-position: over;
  ruby-align: center;
}

ruby.anno rt {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  opacity: .72;
  letter-spacing: 0;
  padding: 0 1px;
  user-select: none;
  font-family: inherit;
  transform: translateY(1px);
}

/* 大字号场景注音同步放大 */
.card-title ruby.anno rt,
.hero-title ruby.anno rt,
.rec-big-label ruby.anno rt,
.err-char ruby.anno rt,
.sd-char ruby.anno rt {
  font-size: 12px;
}

/* 按钮内注音保持可读 */
.btn ruby.anno rt {
  font-size: 11px;
  opacity: .85;
}

/* 底部导航：注音紧凑 */
.tab-label ruby.anno rt {
  font-size: 8px;
  line-height: 1;
  opacity: .8;
  transform: none;
  padding: 0;
}

/* 小标签内注音 */
.tag ruby.anno rt,
.chip ruby.anno rt {
  font-size: 9px;
  line-height: 1;
  opacity: .7;
  transform: none;
  padding: 0;
}

/* Toast 内注音 */
.toast ruby.anno rt {
  font-size: 10px;
  opacity: .8;
}

/* ---------- 教师：评测服务设置 ---------- */

.eval-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #F1F3F5;
  color: #909296;
  vertical-align: middle;
}

.eval-badge.ok {
  background: var(--c-cyan-soft);
  color: #2FA8A0;
}

.eval-hint {
  font-size: 12px;
  line-height: 1.7;
  color: #9AA0A6;
  margin: 2px 0 14px;
}

.eval-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.eval-btn-row .btn {
  flex: 1;
}

#evalTxArea,
#evalXfArea {
  margin-top: 6px;
}

/* ---------- 教师：信息管理 ---------- */

/* 7 个标签时允许横向滚动，避免文字挤压换行 */
.tch-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.tch-tabs::-webkit-scrollbar {
  display: none;
}
.tch-tab {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 44px;
}

.tch-row {
  cursor: default;
}
.tch-row:active {
  transform: none;
}

.btn-del-teacher {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: #FFECEC;
  color: var(--c-primary);
  cursor: pointer;
  transition: all .2s ease;
}
.btn-del-teacher:hover {
  background: #FFD9D9;
}
.btn-del-teacher:active {
  transform: scale(.95);
}

.td-confirm-ico {
  font-size: 44px;
  text-align: center;
  margin: 6px 0 10px;
}
.td-confirm-title {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}
.td-confirm-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-sub);
  text-align: center;
  margin-bottom: 4px;
}
