/* =========================================================
   国际音标学习平台 - 样式表
   浅色主题 / 蓝紫渐变 / 响应式
   ========================================================= */

:root {
  --brand: #3b82f6;
  --brand-2: #8b5cf6;
  --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);

  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;

  --line: #e4e7ec;
  --line-2: #f2f4f7;
  --bg: #f9fafb;
  --surface: #ffffff;

  --ok: #12b76a;
  --ok-bg: #ecfdf3;
  --warn: #f79009;
  --warn-bg: #fffaeb;
  --bad: #f04438;
  --bad-bg: #fef3f2;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 6px -2px rgba(16, 24, 40, .04);
  --sh-3: 0 20px 44px -18px rgba(16, 24, 40, .22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ipa: "Segoe UI", "Microsoft YaHei", "Charis SIL", "Doulos SIL", "Gentium Plus",
         "Lucida Sans Unicode", "DejaVu Sans", "Arial Unicode MS", Arial, sans-serif;

  --max: 1140px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); }

/* =========================================================
   头部导航
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  letter-spacing: -.2px;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--ipa);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 12px -3px rgba(99, 102, 241, .6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-3);
  white-space: nowrap;
  transition: background .16s, color .16s;
}

.nav-links a:hover { background: var(--line-2); color: var(--ink); }

.nav-links a.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  width: 38px;
  height: 36px;
  font-size: 16px;
  color: var(--ink-2);
  margin-left: auto;
}

.view { min-height: 72vh; }

/* =========================================================
   通用容器
   ========================================================= */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding-top: 52px; padding-bottom: 52px; }
.section.tight { padding-top: 34px; padding-bottom: 34px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 5px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.4px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .8);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(99, 102, 241, .9); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}
.btn-ghost:hover { border-color: #c7d2fe; color: #4f46e5; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d2939; }

.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 9px; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
.btn:focus-visible, .q-opt:focus-visible, .fchip:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }

/* =========================================================
   首页 Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 66px 0 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(52% 60% at 50% 0%, rgba(99, 102, 241, .10), transparent 72%),
    radial-gradient(38% 46% at 82% 6%, rgba(59, 130, 246, .10), transparent 72%),
    radial-gradient(34% 40% at 12% 4%, rgba(236, 72, 153, .07), transparent 72%);
  border-bottom: 1px solid var(--line-2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-3);
  box-shadow: var(--sh-1);
  margin-bottom: 20px;
}

.hero-badge b {
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(29px, 4.6vw, 46px);
  line-height: 1.24;
  letter-spacing: -1.2px;
  font-weight: 800;
}

.hero h1 .num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--ipa);
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--ink-3);
}

/* 音标浮动圆片 */
.ipa-float {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.ipa-float a {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--ipa);
  font-size: 21px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .18s, box-shadow .18s, color .18s, border-color .18s;
}

.ipa-float a:hover {
  transform: translateY(-4px) scale(1.04);
  color: var(--brand-2);
  border-color: #ddd6fe;
  box-shadow: 0 14px 26px -12px rgba(99, 102, 241, .55);
}

.ipa-float a.playing {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 快捷统计 */
.quick-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}

.qs-item {
  padding: 0 34px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.qs-item:last-child { border-right: 0; }

.qs-item b {
  display: block;
  font-family: var(--ipa);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.5px;
}

.qs-item span { font-size: 12.5px; color: var(--ink-4); }

/* =========================================================
   功能卡片
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: #e0e7ff;
}

.f-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: var(--grad-soft);
  border: 1px solid #eef2ff;
  margin-bottom: 14px;
}

.feature h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.feature p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.62; }

.feature .f-arrow {
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--ink-4);
  font-size: 15px;
  transition: transform .2s, color .2s;
}
.feature:hover .f-arrow { transform: translateX(3px); color: var(--brand); }

/* =========================================================
   分类卡片
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat {
  --c: #3b82f6;
  --cbg: #eff6ff;
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .2s, box-shadow .2s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }

.cat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.cat-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--cbg);
  color: var(--c);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--ipa);
}

.cat-name { font-size: 15px; font-weight: 700; color: var(--ink); flex: 1; }

.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--c);
  background: var(--cbg);
  padding: 2px 9px;
  border-radius: 999px;
}

.cat-syms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--ipa);
  font-size: 15px;
  color: var(--ink-2);
}

.cat-syms span {
  padding: 1px 8px;
  background: var(--line-2);
  border-radius: 6px;
  line-height: 1.7;
}

/* 分类色 */
.c-vowel-short      { --c: #2563eb; --cbg: #eff6ff; }
.c-vowel-long       { --c: #7c3aed; --cbg: #f5f3ff; }
.c-vowel-diphthong  { --c: #db2777; --cbg: #fdf2f8; }
.c-consonant-unvoiced { --c: #059669; --cbg: #ecfdf5; }
.c-consonant-voiced { --c: #d97706; --cbg: #fffbeb; }
.c-consonant-other  { --c: #0891b2; --cbg: #ecfeff; }

/* =========================================================
   音标网格
   ========================================================= */
.iph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}

.iph-card {
  --c: #3b82f6;
  --cbg: #eff6ff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}

.iph-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--c);
}

.iph-sym {
  font-family: var(--ipa);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--c);
  margin-bottom: 4px;
  letter-spacing: .5px;
}

.iph-name { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }

.iph-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iph-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-4);
}

.iph-words { font-family: var(--ipa); color: var(--ink-3); }

.learned-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-4);
  font-size: 14px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r);
}

/* =========================================================
   筛选栏
   ========================================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 22px;
  box-shadow: var(--sh-1);
}

.fchip {
  padding: 6px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-3);
  transition: all .15s;
}
.fchip:hover { border-color: #c7d2fe; color: #4f46e5; }
.fchip.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.filter-count { margin-left: auto; font-size: 12.5px; color: var(--ink-4); }

/* =========================================================
   音标详情
   ========================================================= */
.detail-hero {
  position: relative;
  padding: 34px 0 30px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}

.detail-hero-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.detail-sym {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-family: var(--ipa);
  font-size: 58px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 18px 34px -16px rgba(99, 102, 241, .8);
  cursor: pointer;
  transition: transform .18s;
  flex-shrink: 0;
}
.detail-sym:hover { transform: scale(1.03); }
.detail-sym:active { transform: scale(.98); }

.detail-head h1 {
  margin: 0 0 6px;
  font-size: 25px;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-head .ipa-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  background: #fff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
}

.detail-head p { margin: 0 0 14px; color: var(--ink-3); font-size: 14.5px; max-width: 560px; }

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

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: stretch; }

.mouth-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.mouth-row:last-child { margin-bottom: 0; }
.mouth-key {
  flex-shrink: 0;
  width: 52px;
  font-size: 12.5px;
  color: var(--ink-4);
  padding-top: 2px;
}
.mouth-val { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.ex-list { display: flex; flex-direction: column; gap: 8px; }

.ex-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ex-row:hover { background: #eef2ff; border-color: #e0e7ff; }

.play-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--brand);
  flex-shrink: 0;
}

.ex-word { font-family: var(--ipa); font-size: 17px; font-weight: 600; color: var(--ink); min-width: 96px; }
.ex-ph { font-family: var(--ipa); font-size: 13.5px; color: var(--brand-2); flex: 1; }
.ex-tr { font-size: 13px; color: var(--ink-3); }

/* 更多例词 */
.spell-line {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.spell-line b {
  font-family: var(--ipa);
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  padding: 3px 12px;
  border-radius: 7px;
  margin-left: 4px;
  letter-spacing: .6px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 8px;
}

.word-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .14s, border-color .14s, transform .14s;
}

.word-chip:hover {
  background: #eef2ff;
  border-color: #e0e7ff;
  transform: translateY(-1px);
}

.word-chip.speaking {
  background: var(--grad);
  border-color: transparent;
}
.word-chip.speaking .wc-word,
.word-chip.speaking .wc-ph,
.word-chip.speaking .wc-tr { color: #fff; }

.wc-word {
  font-family: var(--ipa);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.wc-ph {
  font-family: var(--ipa);
  font-size: 12.5px;
  color: var(--brand-2);
}

.wc-tr {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-4);
  white-space: nowrap;
}

.word-tip {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.word-tip b { font-family: var(--ipa); color: var(--brand-2); font-size: 14px; }

.ex-row.speaking { background: #eef2ff; border-color: #e0e7ff; }

/* 音标导航 上一个/下一个 */
.pn-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.pn-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: all .18s;
}
.pn-btn:hover { border-color: #c7d2fe; box-shadow: var(--sh-2); }
.pn-btn.next { justify-content: flex-end; text-align: right; }
.pn-ph { flex: 1; }
.pn-btn small { display: block; font-size: 11.5px; color: var(--ink-4); }
.pn-btn b { font-family: var(--ipa); font-size: 15px; color: var(--ink); }

/* =========================================================
   练习 / 测验通用
   ========================================================= */
.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pbar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}

.pbar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width .35s ease;
}

.quiz-idx { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.q-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--sh-2);
  text-align: center;
}

.q-prompt { font-size: 15px; color: var(--ink-3); margin-bottom: 6px; }

.q-main {
  font-family: var(--ipa);
  font-size: 56px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 6px 0 4px;
  letter-spacing: 1px;
}

.q-sub { font-size: 13.5px; color: var(--ink-4); margin-bottom: 22px; }

.big-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
  margin: 8px auto 20px;
  box-shadow: 0 14px 30px -12px rgba(99, 102, 241, .85);
  transition: transform .16s;
}
.big-play:hover { transform: scale(1.06); }
.big-play:active { transform: scale(.97); }
.big-play.ring { animation: pulse 1.2s ease-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .45); }
  100% { box-shadow: 0 0 0 22px rgba(99, 102, 241, 0); }
}

.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.q-opt {
  padding: 15px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 15px;
  color: var(--ink-2);
  text-align: left;
  transition: all .16s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-opt .o-ipa { font-family: var(--ipa); font-size: 19px; font-weight: 600; color: var(--ink); }
.q-opt:hover:not(:disabled) { border-color: #a5b4fc; background: #f8faff; }
.q-opt:disabled { cursor: default; }

.q-opt.correct {
  border-color: var(--ok);
  background: var(--ok-bg);
  color: #05603a;
  font-weight: 600;
}
.q-opt.wrong {
  border-color: var(--bad);
  background: var(--bad-bg);
  color: #912018;
}
.q-opt.dim { opacity: .45; }

.q-feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  text-align: left;
  line-height: 1.65;
  display: none;
}
.q-feedback.show { display: block; }
.q-feedback.ok { background: var(--ok-bg); color: #05603a; border: 1px solid #a6f4c5; }
.q-feedback.no { background: var(--bad-bg); color: #912018; border: 1px solid #fecdca; }
.q-feedback b { font-family: var(--ipa); }

.q-foot { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }

/* 结果页 */
.result {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 28px;
  box-shadow: var(--sh-2);
}
.result .score {
  font-family: var(--ipa);
  font-size: 56px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.result h2 { margin: 6px 0 8px; font-size: 21px; }
.result p { color: var(--ink-3); margin: 0 0 22px; font-size: 14.5px; }

/* 模式选择 */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }

.mode {
  text-align: left;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  transition: all .18s;
}
.mode:hover { border-color: #c7d2fe; box-shadow: var(--sh-2); }
.mode h3 { margin: 0 0 5px; font-size: 15px; }
.mode p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.mode .m-ico { font-size: 20px; margin-bottom: 8px; display: block; }

/* =========================================================
   复习（闪卡）
   ========================================================= */
.flash {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--sh-2);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flash-sym {
  font-family: var(--ipa);
  font-size: 76px;
  font-weight: 600;
  color: #4f46e5;
  line-height: 1.1;
  margin-bottom: 6px;
}

.flash-cat { font-size: 13px; color: var(--ink-4); margin-bottom: 18px; }

.flash-answer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: none;
}
.flash-answer.show { display: block; }
.flash-answer .fa-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.flash-answer .fa-desc { font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.flash-answer .fa-words { font-family: var(--ipa); color: var(--brand-2); margin-top: 10px; font-size: 15px; }

.rate-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.rate-btn {
  padding: 12px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s;
}
.rate-btn small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-4); margin-top: 2px; }
.rate-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.r0 { color: #b42318; border-color: #fecdca; background: var(--bad-bg); }
.r1 { color: #b54708; border-color: #fedf89; background: var(--warn-bg); }
.r2 { color: #175cd3; border-color: #c7d2fe; background: #eff6ff; }
.r3 { color: #05603a; border-color: #a6f4c5; background: var(--ok-bg); }

/* =========================================================
   进度
   ========================================================= */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.stat-card .sc-label { font-size: 12.5px; color: var(--ink-4); margin-bottom: 6px; }
.stat-card .sc-val {
  font-family: var(--ipa);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.stat-card .sc-val small { font-size: 13px; color: var(--ink-4); font-weight: 500; font-family: var(--font); }

.heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 4px;
  padding-bottom: 4px;
}

.hm-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #f1f3f7;
  transition: transform .12s;
}
.hm-cell:hover { transform: scale(1.15); }
.hm-cell[data-lv="1"] { background: #c7d2fe; }
.hm-cell[data-lv="2"] { background: #a5b4fc; }
.hm-cell[data-lv="3"] { background: #818cf8; }
.hm-cell[data-lv="4"] { background: #6366f1; }

.legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-4); margin-top: 10px; justify-content: flex-end; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: block; background: #f1f3f7; }

.wrong-list { display: flex; flex-direction: column; gap: 8px; }

.wrong-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.wrong-item .wi-sym { font-family: var(--ipa); font-size: 22px; font-weight: 600; color: var(--bad); width: 44px; }
.wrong-item .wi-name { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.wrong-item .wi-rate { font-size: 12px; color: var(--ink-4); }

/* =========================================================
   跟读
   ========================================================= */
.record-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--sh-2);
}

.word-pick {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.word-pick button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--ipa);
  font-size: 15px;
  color: var(--ink-2);
  transition: all .15s;
}
.word-pick button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.mic-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 30px;
  display: grid;
  place-items: center;
  margin: 8px auto 14px;
  box-shadow: 0 16px 32px -12px rgba(99, 102, 241, .85);
  transition: transform .16s;
}
.mic-btn:hover { transform: scale(1.05); }
.mic-btn.recording { background: linear-gradient(135deg, #f04438, #ef6820); animation: pulse 1.4s infinite; }

.rec-hint { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }

.rec-players { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rec-players audio { height: 38px; max-width: 260px; }

.note-box {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--warn-bg);
  border: 1px solid #fedf89;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: #93370d;
  text-align: left;
  line-height: 1.65;
}

/* =========================================================
   对比
   ========================================================= */
.cmp-pickers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-bottom: 22px; }

.cmp-pick {
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--ipa);
  font-size: 16px;
  width: 100%;
  color: var(--ink);
}

.cmp-vs { font-size: 13px; font-weight: 700; color: var(--ink-4); }

.cmp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.cmp-scroll::-webkit-scrollbar { height: 6px; }
.cmp-scroll::-webkit-scrollbar-thumb { background: #d6dbe3; border-radius: 3px; }
.cmp-table th, .cmp-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.65;
}
.cmp-table thead th {
  background: var(--bg);
  font-size: 12.5px;
  color: var(--ink-4);
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.cmp-table td:first-child { width: 96px; color: var(--ink-4); font-size: 13px; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-sym { font-family: var(--ipa); font-size: 30px; font-weight: 600; color: var(--brand-2); }

.pair-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* =========================================================
   页脚（精简版：只保留备案信息）
   嵌入助学网时外层已有完整页脚，这里不再重复品牌与导航列
   ========================================================= */
.site-footer {
  margin-top: 44px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 14px 0 16px;
}

/* 备案信息（写在页面内） */
.footer-beian {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-4);
}
.footer-beian a { color: var(--ink-4); text-decoration: none; transition: color .15s; }
.footer-beian a:hover { color: var(--brand); }

/* ---------- 云端同步状态胶囊（页脚 / 进度页共用） ---------- */
.sync-state {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--bg-2, #f4f5f7); border: 1px solid var(--line, #e5e7eb);
  font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
  cursor: pointer; user-select: none; transition: border-color .15s, color .15s;
}
.sync-state:hover { border-color: var(--brand); color: var(--brand); }
.sync-state .sync-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #b6bcc6; flex: none;
}
.sync-state[data-phase="ok"] .sync-dot { background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.16); }
.sync-state[data-phase="syncing"] .sync-dot { background: var(--brand); animation: syncPulse 1s ease-in-out infinite; }
.sync-state[data-phase="error"] .sync-dot { background: #f04438; box-shadow: 0 0 0 3px rgba(240,68,56,.16); }
.sync-state[data-phase="ok"] { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.sync-state[data-phase="error"] { color: #b42318; border-color: #fecdca; background: #fef3f2; }

@keyframes syncPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* =========================================================
   Toast
   ========================================================= */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 24, 40, .92);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--sh-3);
  animation: tin .25s ease;
  white-space: nowrap;
}

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

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
  .feature-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* 导航 8 项，实测品牌 164 + 菜单 474 + 音色按钮 92 ≈ 780px 就能放下，900 以下才切汉堡 */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 14px 14px;
    gap: 2px;
    box-shadow: var(--sh-2);
    display: none;
    overflow: visible;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }

  .hero { padding: 44px 0 30px; }
  .hero-lead { font-size: 14.5px; }
  .ipa-float a { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }

  .qs-item { padding: 0 18px; }
  .qs-item b { font-size: 21px; }

  .section { padding-top: 36px; padding-bottom: 36px; }
  .section-head h2 { font-size: 19px; }
  .feature-grid, .cat-grid, .mode-grid, .q-options { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .footer-beian { gap: 10px; }

  .detail-sym { width: 88px; height: 88px; border-radius: 22px; font-size: 44px; }
  .detail-head h1 { font-size: 20px; }
  .detail-hero-inner { gap: 18px; }

  .q-card, .flash, .record-panel { padding: 24px 18px; }
  .q-main { font-size: 42px; }
  .flash-sym { font-size: 56px; }

  .cmp-pickers { grid-template-columns: 1fr; }
  .cmp-vs { text-align: center; }

  .rate-row { grid-template-columns: 1fr 1fr; }
  .prose-wrap { padding: 24px 18px; }
}

/* =========================================================
   口型演示
   ========================================================= */
.mouth-panel { margin-top: 18px; }

.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.mp-head .panel-title { margin: 0; }

.mp-tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 3px; border-radius: 9px; }

.mp-tab {
  border: 0;
  background: transparent;
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .16s ease;
}

.mp-tab.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(15,23,42,.1); }

.mp-body {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.mp-stage {
  width: 440px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.mp-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.mp-front { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mp-front svg { width: 84px; height: 70px; display: block; }
.mp-front span { font-size: 11.5px; color: var(--ink-4); }

.mp-side .btn { width: 100%; justify-content: center; }

.mp-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
}

.mp-chk input { accent-color: var(--brand); }

.mp-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.6;
}

.mp-video { margin-top: 4px; }
.mp-video video { width: 100%; border-radius: 12px; background: #0f172a; display: block; }

.mp-vnote {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--ink-4);
  text-align: center;
}

/* 声带振动 */
.m-glot.is-voiced { animation: glotPulse 0.9s ease-in-out infinite; transform-origin: 196px 217px; }

@keyframes glotPulse {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.22); }
}

/* 气流流动 */
.m-air { animation: airFlow 1.1s linear infinite; }

@keyframes airFlow {
  to { stroke-dashoffset: -28; }
}

@media (max-width: 720px) {
  .mp-body { flex-direction: column; gap: 14px; }
  .mp-stage { width: 100%; }
  .mp-side { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .mp-front { flex: 0 0 auto; }
  .mp-side .btn { width: auto; }
  .mp-note { display: none; }
}

/* =========================================================
   测验：模式切换 / 关卡 / 答题 / 评级
   ========================================================= */
.qz-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}

.qz-tab {
  border: 0;
  background: transparent;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .18s ease;
}

.qz-tab:hover { color: var(--ink); }

.qz-tab.is-on {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

/* ---------- 关卡 ---------- */
.qz-levels { display: flex; flex-direction: column; gap: 12px; }

.qz-level {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: all .18s ease;
}

.qz-level:hover { border-color: #cbd5e1; box-shadow: var(--sh-2); }

.qz-level.is-on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.qz-lv-ico { font-size: 20px; line-height: 1; flex-shrink: 0; }

.qz-lv-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.qz-lv-main b { font-size: 15.5px; color: var(--ink); font-weight: 700; }
.qz-lv-main small { font-size: 12.8px; color: var(--ink-4); }

.qz-lv-n {
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.qz-lv-ck {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qz-level:not(.is-on) .qz-lv-ck { background: transparent; border: 1.5px solid var(--line); }

.qz-rule {
  margin: 18px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.2px;
  color: var(--ink-3);
  line-height: 1.75;
}

.qz-start {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(59, 130, 246, .75);
  transition: transform .16s, filter .16s;
}

.qz-start:hover { filter: brightness(1.05); transform: translateY(-1px); }
.qz-start:active { transform: translateY(0); }

/* ---------- 答题头部 ---------- */
.qz-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.qz-exit {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 0;
}

.qz-exit:hover { color: var(--ink); }

.qz-count { font-size: 13.5px; color: var(--ink-3); }
.qz-count b { color: var(--ink); font-weight: 700; }

.qz-dots { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }

.qz-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #e4e7ec;
  display: block;
}

.qz-dot.ok { background: var(--ok); }
.qz-dot.no { background: var(--bad); }
.qz-dot.cur { background: var(--ink); }

.qz-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.qz-clock { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-clock b { color: var(--ink); font-weight: 700; }

.qz-tbar {
  flex: 1;
  height: 6px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.qz-tbar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  transition: width .1s linear;
}

.qz-tbar > i.is-low { background: linear-gradient(90deg, #f97066, var(--bad)); }

/* ---------- 题面 ---------- */
.qz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: var(--sh-1);
}

.qz-cap {
  font-size: 12.5px;
  color: var(--ink-4);
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.qz-sym {
  font-family: var(--ipa);
  font-size: 64px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.qz-word {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}

.qz-desc {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 460px;
  margin: 4px auto 8px;
}

.qz-desc span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-4);
  margin-top: 6px;
}

.qz-sub {
  font-size: 13.5px;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.qz-ask { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 选项 ---------- */
.qz-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.qz-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 18px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all .16s ease;
  min-height: 62px;
}

.qz-opt.ipa { font-family: var(--ipa); font-size: 24px; font-weight: 600; }
.qz-opt small { font-size: 11.5px; color: var(--ink-4); font-weight: 500; }
.qz-opt:hover:not(:disabled) { border-color: #c7d2fe; background: #f8faff; transform: translateY(-1px); }
.qz-opt:disabled { cursor: default; }

.qz-opt.ok {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: #05603a;
}
.qz-opt.ok::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
}

.qz-opt.bad {
  background: var(--bad-bg);
  border-color: var(--bad);
  color: #912018;
}
.qz-opt.bad::after {
  content: "✕";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
}

.qz-opt.dim { opacity: .42; }

/* ---------- 解析卡 ---------- */
.qz-fb { margin-top: 18px; }

.qz-fb-head {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.qz-fb-head.ok { color: #05603a; }
.qz-fb-head.no { color: #912018; }

.qz-fb-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qz-chip {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--ipa);
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}

.qz-chip:hover { border-color: var(--brand); color: #1d4ed8; }

.qz-fb-txt { flex: 1; min-width: 0; text-align: left; }
.qz-fb-txt b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.qz-fb-txt p { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); line-height: 1.65; }

.qz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-tags span {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink-3);
}

.qz-sub-title {
  font-size: 12.5px;
  color: var(--ink-4);
  margin: 16px 0 8px;
}

.qz-words {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.qz-word-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: all .15s;
}

.qz-word-item:hover { border-color: var(--brand); }
.qz-word-item b { font-size: 14px; color: var(--ink); font-weight: 700; }
.qz-word-item small { font-family: var(--ipa); font-size: 12px; color: var(--ink-3); }
.qz-word-item em { font-style: normal; font-size: 11.5px; color: var(--ink-4); }

.qz-detail {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #1d4ed8;
  font-weight: 600;
}

.qz-foot { margin-top: 20px; display: flex; justify-content: center; }

/* ---------- 结果 ---------- */
.qz-grade {
  border-radius: 22px;
  padding: 34px 20px 28px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.qz-grade.g-S { background: linear-gradient(160deg, #fffbeb, #fde68a); }
.qz-grade.g-A { background: linear-gradient(160deg, #eff6ff, #bfdbfe); }
.qz-grade.g-B { background: linear-gradient(160deg, #f5f3ff, #ddd6fe); }
.qz-grade.g-C { background: linear-gradient(160deg, #f0fdfa, #99f6e4); }
.qz-grade.g-D { background: linear-gradient(160deg, #fef2f2, #fecaca); }

.qz-g {
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 6px;
}

.g-S .qz-g { color: #d97706; }
.g-A .qz-g { color: #2563eb; }
.g-B .qz-g { color: #7c3aed; }
.g-C .qz-g { color: #0d9488; }
.g-D .qz-g { color: #dc2626; }

.qz-gl { font-size: 21px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.qz-gs { font-size: 13px; color: var(--ink-3); }

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

.qz-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}

.qz-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.qz-stats span { font-size: 12px; color: var(--ink-4); }

.qz-h3 { font-size: 14px; color: var(--ink); margin: 0 0 10px; font-weight: 700; }

.qz-gride {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.qz-gride i {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

.qz-gride i.ok { background: var(--ok-bg); color: #05603a; border: 1px solid #a6f4c5; }
.qz-gride i.no { background: var(--bad-bg); color: #912018; border: 1px solid #fecdca; }

.qz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 560px) {
  .qz-card { padding: 22px 16px; }
  .qz-sym { font-size: 50px; }
  .qz-word { font-size: 32px; }
  .qz-desc { font-size: 16px; }
  .qz-opt { font-size: 17px; padding: 14px 10px; }
  .qz-opt.ipa { font-size: 21px; }
  .qz-words { grid-template-columns: 1fr; }
  .qz-g { font-size: 64px; }
  .qz-level { padding: 14px; gap: 10px; }
}

/* =========================================================
   发音音色控制（Edge TTS）
   ========================================================= */
.tts-ctl { position: relative; flex-shrink: 0; margin-left: 4px; }

.tts-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.tts-trigger:hover { border-color: #c7d2fe; box-shadow: 0 0 0 3px #eef2ff; }
.tts-trigger[aria-expanded="true"] { border-color: var(--brand-2); background: #f7f5ff; }

.tts-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.tts-wave i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--grad);
  height: 5px;
  animation: ttsWave 1.1s ease-in-out infinite;
}
.tts-wave i:nth-child(2) { animation-delay: .18s; height: 11px; }
.tts-wave i:nth-child(3) { animation-delay: .36s; height: 7px; }
@keyframes ttsWave {
  0%, 100% { transform: scaleY(.55); opacity: .7; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

.tts-trigger-label { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tts-trigger-caret { font-size: 10px; color: var(--ink-4); }

/* --- 弹出面板 --- */
.tts-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 336px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  padding: 14px;
  z-index: 80;
  max-height: min(82vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tts-pop[hidden] { display: none; }
.tts-pop::-webkit-scrollbar { width: 6px; }
.tts-pop::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 3px; }
.tts-pop::-webkit-scrollbar-track { background: transparent; }

.tts-pop-head { margin-bottom: 6px; }
.tts-pop-head b { display: block; font-size: 13.5px; color: var(--ink); }
.tts-pop-head span { display: block; font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

.tts-voices { display: flex; flex-direction: column; gap: 1px; }

.tts-vgroup {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: .4px;
  padding: 7px 4px 3px;
}

.tts-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  text-align: left;
  transition: background .14s, border-color .14s;
}
.tts-voice:hover { background: var(--line-2); }
.tts-voice.on { background: #eef2ff; border-color: #c7d2fe; }

.tts-voice-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.tts-voice-name {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 62px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.tts-voice-name em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--line-2);
  color: var(--ink-3);
  line-height: 15px;
}
.tts-voice.on .tts-voice-name em { background: #dbeafe; color: #3730a3; }
.tts-voice-note {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-voice-play {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  font-size: 10px;
  display: grid;
  place-items: center;
  transition: background .14s, color .14s, border-color .14s;
}
.tts-voice-play:hover { background: var(--grad); color: #fff; border-color: transparent; }
.tts-voice-play.tts-loading { opacity: .55; }

.tts-pop-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: .4px;
  padding: 12px 4px 6px;
  border-top: 1px solid var(--line-2);
  margin-top: 8px;
}

.tts-speeds { display: flex; gap: 6px; flex-wrap: wrap; }
.tts-speed {
  flex: 1;
  min-width: 62px;
  padding: 6px 4px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition: all .14s;
}
.tts-speed small { display: block; font-size: 10px; font-weight: 400; color: var(--ink-4); margin-top: 1px; }
.tts-speed:hover { border-color: #c7d2fe; }
.tts-speed.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 10px -4px rgba(99, 102, 241, .7); }
.tts-speed.on small { color: rgba(255, 255, 255, .82); }

.tts-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.tts-preview {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
}
.tts-preview:hover { background: #e0e7ff; }
.tts-preview.tts-loading { opacity: .6; }
#ttsCacheInfo { font-size: 10.5px; color: var(--ink-4); text-align: right; line-height: 1.4; }

/* --- 通用播放状态 --- */
.tts-loading { animation: ttsPulse .85s ease-in-out infinite; cursor: progress; }
@keyframes ttsPulse { 50% { opacity: .5; } }

/* --- 详情页发音工具栏 --- */
.say-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.say-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.say-bar-label { font-size: 12px; color: var(--ink-4); flex-shrink: 0; }
.say-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  transition: all .14s;
}
.say-chip:hover { border-color: #c7d2fe; color: #4338ca; background: #f8faff; }
.say-chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.say-chip.tts-loading { opacity: .6; }

.tts-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .34);
  z-index: 75;
  animation: ttsFade .18s ease;
}
.tts-mask[hidden] { display: none; }
@keyframes ttsFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 720px) {
  .tts-trigger { padding: 0 9px; }
  .tts-trigger-label, .tts-trigger-caret { display: none; }
  .tts-pop.is-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: 80vh;
    z-index: 80;
    box-shadow: 0 -10px 40px -12px rgba(16, 24, 40, .3);
    animation: ttsSlideUp .22s cubic-bezier(.32, .72, 0, 1);
  }
  @keyframes ttsSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .tts-voice { padding: 8px 9px; }
  .tts-voice-name { min-width: 66px; font-size: 13px; }
  .tts-voice-note { font-size: 11.5px; }
}

/* =========================================================
   听力训练：听音辨音 / 音对训练
   ========================================================= */
.tr-shell { max-width: 760px; margin: 0 auto; }
.tr-shell svg { width: 16px; height: 16px; flex-shrink: 0; }

.tr-head { margin-bottom: 20px; }
.tr-head h1 { margin: 0 0 4px; font-size: 25px; line-height: 1.3; color: var(--ink); letter-spacing: -.3px; }
.tr-head p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 分段 Tab ---------- */
.tr-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
}

.tr-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
}

.tr-tab:hover { color: var(--ink); }
.tr-tab.is-on { background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.tr-tab.is-on svg { stroke: #4f46e5; }

/* ---------- 提示条 ---------- */
.tr-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 13px;
  background: #f5f8ff;
  border: 1px solid #e0ebff;
  margin-bottom: 20px;
}

.tr-tip svg { color: var(--brand); margin-top: 3px; }
.tr-tip p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.tr-tip b { color: var(--ink); font-weight: 700; }

/* ---------- 筛选 ---------- */
.tr-sec { margin-bottom: 22px; }
.tr-sec h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--ink-4);
}

.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chips-lv { margin-bottom: 18px; }

.tr-chip {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .16s ease;
}

.tr-chip:hover { border-color: #c7d2fe; color: #4338ca; }
.tr-chip.is-on { background: var(--ink); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------- 开始按钮 ---------- */
.tr-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(99, 102, 241, .9);
  transition: transform .16s, filter .16s;
}

.tr-start:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tr-start:active { transform: translateY(0); }

/* ---------- 音对卡片列表 ---------- */
.tr-pairs { display: flex; flex-direction: column; gap: 12px; }

.tr-pair {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}

.tr-pair:hover {
  border-color: #c7d2fe;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

.tr-pair-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tr-pair-syms { display: flex; align-items: center; gap: 8px; }
.tr-pair-syms b { font-family: var(--ipa); font-size: 21px; font-weight: 700; color: var(--ink); }
.tr-pair-syms svg { width: 15px; height: 15px; color: var(--ink-4); }

.tr-lv {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
}
.tr-lv.easy { background: #ecfdf3; color: #067647; border: 1px solid #d1fadf; }
.tr-lv.medium { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }
.tr-lv.hard { background: #fef3f2; color: #b42318; border: 1px solid #fee4e2; }

.tr-pair-cat { margin: 6px 0 10px; font-size: 13px; color: var(--ink-3); }

.tr-pair-words { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-pair-words span {
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--line-2);
  font-size: 11.5px;
  color: var(--ink-3);
}
.tr-pair-words .tr-pair-more { color: var(--ink-4); background: #f9fafb; }

/* ---------- 答题头部 ---------- */
.tr-run-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tr-exit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 13.5px;
  cursor: pointer;
  transition: color .14s;
}

.tr-exit:hover { color: var(--ink); }
.tr-exit svg { width: 15px; height: 15px; }

.tr-score { margin-left: auto; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tr-score b { color: var(--ok); font-weight: 700; }

.tr-run-top > .tr-score-plain { margin-left: auto; }

.tr-combo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  color: var(--warn);
  font-weight: 700;
}
.tr-combo svg { width: 14px; height: 14px; }

.tr-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tr-step { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.tr-pbar {
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.tr-pbar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .3s ease; }

.tr-score-plain { font-size: 13.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tr-score-plain b { color: var(--ok); font-weight: 700; }

/* ---------- 题目卡片 ---------- */
.tr-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
  text-align: center;
}

.tr-card-label {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink-4);
}

.tr-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border: 0;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(99, 102, 241, .85);
  cursor: pointer;
  transition: transform .16s, filter .16s;
}

.tr-play svg { width: 30px; height: 30px; stroke-width: 1.7; }
.tr-play span { font-size: 11.5px; font-weight: 600; }
.tr-play:hover { transform: scale(1.04); filter: brightness(1.05); }
.tr-play:active { transform: scale(.98); }

.tr-play.is-playing {
  background: var(--brand-2);
  animation: trPulse 1.1s ease-in-out infinite;
}

.tr-play.is-replay {
  background: #eef2ff;
  color: #4338ca;
  border: 2px solid #c7d2fe;
  box-shadow: none;
}

@keyframes trPulse { 50% { opacity: .68; } }

.tr-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-4);
}
.tr-hint svg { width: 13px; height: 13px; }

/* ---------- 选项 ---------- */
.tr-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.tr-opt-wrap { position: relative; }

.tr-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 20px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s, color .15s;
}

.tr-opt-sym { font-family: var(--ipa); font-size: 28px; font-weight: 700; }

.tr-opt:not(:disabled):hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: var(--sh-2); }
.tr-opt.is-off { opacity: .38; cursor: not-allowed; }
.tr-opt:disabled { cursor: default; }

.tr-opt.is-ok { background: #ecfdf3; border-color: #a6f4c5; color: #067647; }
.tr-opt.is-bad { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.tr-opt.is-dim { background: #fcfcfd; border-color: var(--line-2); color: #cdd3dc; }

.tr-opt-mark { display: inline-flex; align-items: center; }
.tr-opt-mark svg { width: 17px; height: 17px; stroke-width: 2.6; }
.tr-opt-mark.bad { font-size: 16px; font-style: normal; line-height: 1; }

.tr-opt-spk {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-4);
  cursor: pointer;
  transition: background .14s, color .14s;
}
.tr-opt-spk:hover { background: var(--line-2); color: var(--ink-2); }
.tr-opt-spk svg { width: 14px; height: 14px; }

/* ---------- 音对：音标对 & 连播 ---------- */
.tr-sym-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.tr-sym-row b { font-family: var(--ipa); font-size: 28px; font-weight: 700; color: var(--ink); }
.tr-sym-row svg { width: 18px; height: 18px; color: var(--ink-4); }

.tr-card-sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); }

.tr-two {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(99, 102, 241, .9);
  transition: filter .16s, transform .16s;
}

.tr-two:hover { filter: brightness(1.05); }
.tr-two:active { transform: scale(.995); }
.tr-two:disabled { cursor: default; }

.tr-two-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
}
.tr-two-ico svg { width: 20px; height: 20px; }

.tr-two-txt { display: flex; flex-direction: column; gap: 2px; }
.tr-two-txt b { font-size: 15.5px; font-weight: 700; }
.tr-two-txt small { font-size: 11.5px; opacity: .75; }

.tr-two.is-playing { background: var(--brand-2); }
.tr-two.is-playing .tr-two-ico svg { animation: trSpin .9s linear infinite; }
@keyframes trSpin { to { transform: rotate(360deg); } }

.tr-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.tr-single-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
  transition: all .15s;
}

.tr-single-btn svg { width: 14px; height: 14px; }
.tr-single-btn:hover { border-color: #c7d2fe; }
.tr-single-btn.is-heard { background: #eff6ff; border-color: #c7d2fe; color: #1d4ed8; }

.tr-single-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tr-single-txt b { font-size: 11.5px; font-weight: 600; }
.tr-single-txt small { font-size: 11.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-single-btn.is-heard .tr-single-txt small { color: #4f46e5; }
.tr-single-ck { margin-left: auto; color: var(--ok); }

/* ---------- 相同 / 不同 ---------- */
.tr-same {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.tr-same-btn, .tr-diff-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 17px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s;
}
.tr-same-btn svg, .tr-diff-btn svg { width: 22px; height: 22px; }

.tr-same-btn { background: #ecfdf3; border: 1px solid #a6f4c5; color: #067647; }
.tr-same-btn:hover { background: #d1fadf; border-color: #75e0a7; }

.tr-diff-btn { background: #fffaeb; border: 1px solid #fedf89; color: #b54708; }
.tr-diff-btn:hover { background: #fef0c7; border-color: #fec84b; }

/* ---------- 反馈 ---------- */
.tr-fb {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid;
  text-align: left;
}

.tr-fb.ok { background: #f6fef9; border-color: #d1fadf; }
.tr-fb.bad { background: #fffbfa; border-color: #fee4e2; }

.tr-fb-title { font-size: 14.5px; font-weight: 700; }
.tr-fb.ok .tr-fb-title { color: #067647; }
.tr-fb.bad .tr-fb-title { color: #b42318; }

.tr-fb-desc { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.tr-fb-desc b { font-weight: 700; }

.tr-fb-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tr-fb-words span {
  padding: 3px 9px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}

.tr-fb-cmp { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.tr-fb-cmp button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .14s, color .14s;
}
.tr-fb-cmp button:hover { border-color: #c7d2fe; color: #4338ca; }
.tr-fb-cmp button svg { width: 14px; height: 14px; }
.tr-fb-cmp button span { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.tr-fb-cmp button b { font-size: 13px; font-weight: 600; }
.tr-fb-cmp button small { font-size: 11px; color: var(--ink-4); }
.tr-neq { color: var(--ink-4); font-size: 15px; }

.tr-next {
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(99, 102, 241, .9);
  transition: filter .16s, transform .16s;
}
.tr-next:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tr-next:active { transform: translateY(0); }

/* ---------- 结果页 ---------- */
.tr-result-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-2);
  text-align: center;
  margin-bottom: 18px;
}

.tr-result-ico { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.tr-result-num { font-size: 34px; font-weight: 900; color: var(--ink); letter-spacing: -1px; line-height: 1.15; }
.tr-result-label { margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--ink-2); }
.tr-result-sub { margin-top: 6px; font-size: 13px; color: var(--ink-4); font-family: var(--ipa); }

.tr-rounds { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.tr-round {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid;
}
.tr-round.ok { background: #f6fef9; border-color: #d1fadf; }
.tr-round.bad { background: #fffbfa; border-color: #fee4e2; }
.tr-round i { width: 14px; text-align: center; font-style: normal; font-weight: 700; }
.tr-round.ok i { color: var(--ok); }
.tr-round.bad i { color: var(--bad); }
.tr-round-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.tr-round em { font-style: normal; font-size: 12px; white-space: nowrap; }
.tr-round.ok em { color: #067647; }
.tr-round.bad em { color: #b42318; }

.tr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tr-retry, .tr-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s;
}

.tr-retry { border: 0; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -14px rgba(99, 102, 241, .9); }
.tr-retry:hover { filter: brightness(1.06); }

.tr-back { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.tr-back:hover { border-color: #c7d2fe; color: #4338ca; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .tr-head h1 { font-size: 21px; }
  .tr-head p { font-size: 12.5px; }
  .tr-tab { padding: 10px 6px; font-size: 13px; gap: 6px; }
  .tr-card { padding: 22px 16px; }
  .tr-card-pair { padding: 22px 14px; }
  .tr-opts { gap: 10px; }
  .tr-opt { padding: 16px 6px; border-radius: 14px; }
  .tr-opt-sym { font-size: 23px; }
  .tr-play { width: 76px; height: 76px; border-radius: 18px; }
  .tr-play svg { width: 26px; height: 26px; }
  .tr-pair { padding: 15px 16px; }
  .tr-pair-syms b { font-size: 18px; }
  .tr-sym-row b { font-size: 24px; }
  .tr-two { padding: 13px 14px; gap: 11px; }
  .tr-two-ico { width: 36px; height: 36px; border-radius: 11px; }
  .tr-two-txt b { font-size: 14.5px; }
  .tr-single { grid-template-columns: 1fr; }
  .tr-fb { padding: 14px; }
  .tr-round { padding: 10px 12px; gap: 8px; }
  .tr-round-txt { font-size: 12px; }
  .tr-round em { font-size: 11px; }
  .tr-result-num { font-size: 30px; }
  .tr-acts, .tr-same { gap: 10px; }
  .tr-same-btn, .tr-diff-btn { padding: 14px; font-size: 15px; }
  .tr-pbar { width: 84px; }
}

/* =========================================================
   教材精讲（详情页）
   ========================================================= */
.tb-panel {
  margin-top: 18px;
  border-left: 3px solid var(--brand-2);
  padding-left: 22px;
}

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

.tb-head .panel-title { margin: 0; }

.tb-src {
  padding: 2px 9px;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid #e9e3ff;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 600;
}

.tb-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ink-4);
}
.tb-crumb-ch { color: var(--ink-3); font-weight: 600; }
.tb-crumb-sep { color: #cdd3dc; }
.tb-crumb-gp {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--line-2);
  color: var(--ink-3);
}

.tb-quote {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f8ff 0%, #faf7ff 100%);
  border: 1px solid #e8eeff;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

.tb-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}
.tb-note b {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  color: var(--ink-2);
}

.tb-sib {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-4);
}
.tb-sib a {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--ipa);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .15s;
}
.tb-sib a:hover { border-color: #c7d2fe; color: #4338ca; background: #f8faff; }

.tb-words-title {
  margin: 16px 0 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}

.tb-words { display: flex; flex-wrap: wrap; gap: 8px; }

.tb-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.tb-word:hover { border-color: #c7d2fe; background: #f8faff; }
.tb-word b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tb-word small { font-family: var(--ipa); font-size: 11.5px; color: var(--ink-4); }
.tb-word.speaking { border-color: var(--brand-2); background: #f5f3ff; }


/* =========================================================
   测验：三 Tab / 章节卡 / 新题型
   ========================================================= */
.qz-tabs3 { grid-template-columns: repeat(3, 1fr); }

.qz-chs { display: flex; flex-direction: column; gap: 10px; }

.qz-ch {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 17px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all .16s;
}
.qz-ch:hover { border-color: #c7d2fe; box-shadow: var(--sh-2); }
.qz-ch.is-on { border-color: var(--brand-2); background: #faf8ff; box-shadow: 0 0 0 3px #f3efff; }

.qz-ch-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--line-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
  transition: all .16s;
}
.qz-ch.is-on .qz-ch-ico { background: var(--grad); color: #fff; }
.qz-ch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qz-ch-main b { font-size: 14px; color: var(--ink); font-weight: 600; }
.qz-ch-main small { font-size: 12px; color: var(--ink-4); }
.qz-ch-n {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 补音标 */
.qz-fill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qz-fill-word {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .5px;
  line-height: 1.2;
}

.qz-fill-ipa {
  font-family: var(--ipa);
  font-size: 24px;
  color: var(--ink-3);
  letter-spacing: 1px;
  line-height: 1.4;
}

.qz-blank {
  display: inline-block;
  width: 46px;
  height: 3px;
  margin: 0 5px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #c7d2fe 0 6px, transparent 6px 10px);
  vertical-align: middle;
}

/* 找共同音 */
.qz-words-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.qz-words-row span {
  padding: 8px 15px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
}

.qz-free-tag {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 600;
}

/* 概念题 */
.qz-ask-big {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: -.2px;
}

.qz-opts-2 { grid-template-columns: 1fr; }

.qz-fb-why {
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-top: 10px;
}

/* =========================================================
   分类题
   ========================================================= */
.st-card { text-align: left; }

.st-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 6px;
}

.st-hint {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-4);
  margin-bottom: 16px;
}

.st-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 12px;
  border-radius: 13px;
  border: 1px dashed var(--line);
  background: var(--bg);
  margin-bottom: 16px;
}

.st-empty { font-size: 12.5px; color: var(--ink-4); align-self: center; }

.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--ipa);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .14s;
}
.st-chip:hover { border-color: #c7d2fe; color: #4338ca; }
.st-chip.is-pick {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgba(99, 102, 241, .9);
}

.st-buckets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.st-buckets.st-n4 { grid-template-columns: repeat(4, 1fr); }

.st-bucket {
  padding: 12px;
  border-radius: 13px;
  border: 1.5px dashed var(--line);
  background: #fdfdfe;
  min-height: 96px;
  transition: all .16s;
  cursor: pointer;
}
.st-bucket.is-target { border-color: #c7d2fe; background: #f8faff; }
.st-bucket.is-target:hover { border-color: var(--brand-2); background: #f3f0ff; }

.st-b-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.st-b-head b { font-size: 13px; color: var(--ink); font-weight: 700; }
.st-b-head small { font-size: 10.5px; color: var(--ink-4); }

.st-b-body { display: flex; flex-wrap: wrap; gap: 6px; }

.st-ph { font-size: 11.5px; color: #c4cbd6; }

.st-chip.in {
  font-size: 15px;
  padding: 6px 11px;
  cursor: pointer;
  background: #fff;
  border-color: #dbe4ff;
  color: #3730a3;
}
.st-chip.in.ok { background: var(--ok-bg); border-color: #a6f4c5; color: #067647; }
.st-chip.in.bad { background: var(--bad-bg); border-color: #fecdca; color: #b42318; }
.st-chip.in i { font-style: normal; font-size: 11px; font-family: var(--font); }

.st-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.st-left { font-size: 12.5px; color: var(--ink-3); }
.st-left b { color: var(--ink); font-weight: 700; }

.st-submit {
  margin-left: auto;
  padding: 10px 22px;
  border: 0;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px -12px rgba(99, 102, 241, .9);
  transition: filter .15s;
}
.st-submit:hover:not(:disabled) { filter: brightness(1.06); }
.st-submit:disabled { background: var(--line-2); color: var(--ink-4); box-shadow: none; cursor: not-allowed; }

.st-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-4);
}
.st-legend i {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-right: 4px;
  border-radius: 4px;
  font-style: normal;
  font-size: 10px;
}
.st-legend i.ok { background: var(--ok-bg); color: #067647; }
.st-legend i.bad { background: var(--bad-bg); color: #b42318; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .tb-panel { padding-left: 14px; }
  .tb-quote { padding: 12px 14px; font-size: 13.5px; line-height: 1.85; }



  .qz-tabs3 { grid-template-columns: repeat(3, 1fr); }
  .qz-ch { padding: 12px 14px; gap: 10px; }
  .qz-ch-main b { font-size: 13px; }

  .qz-fill-word { font-size: 26px; }
  .qz-fill-ipa { font-size: 20px; }
  .qz-blank { width: 34px; }
  .qz-words-row span { padding: 6px 11px; font-size: 14px; }
  .qz-ask-big { font-size: 16px; }

  .st-buckets, .st-buckets.st-n4 { grid-template-columns: repeat(2, 1fr); }
  .st-chip { padding: 6px 10px; font-size: 14px; }
  .st-bucket { min-height: 84px; padding: 10px; }
  .st-title { font-size: 14.5px; }
}

/* ---------- 首页功能网格 6 张卡 ---------- */
.feature-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* 首页「全部 N 句」用链接样式 */

/* ---------- 对比表格窄屏收紧（≤560 尽量不出现横向滚动） ---------- */
@media (max-width: 560px) {
  .cmp-table th, .cmp-table td { padding: 11px 10px; font-size: 13px; line-height: 1.6; }
  .cmp-table td:first-child { width: 58px; font-size: 12px; padding-left: 12px; }
  .cmp-table thead th { font-size: 11.5px; letter-spacing: .2px; }
  .cmp-sym { font-size: 24px; }
  .cmp-table .ex-ph, .cmp-table span[style] { font-size: 11.5px !important; }
  .cmp-table td, .cmp-table th { word-break: break-word; overflow-wrap: anywhere; }
}

/* ---------- 长串文本兜底断行（URL / 路径 / 连续英文） ---------- */
.prose-wrap, .panel, .credits-body, main p, main li { overflow-wrap: anywhere; }

/* ---------- 跟读 · 对比分析 ---------- */
.sh-score { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); animation: shIn .3s ease; }
@keyframes shIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sh-score.sh-pending, .sh-score.sh-warn { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 26px 20px; }
.sh-score.sh-warn { color: var(--bad); }
.sh-head { display: flex; align-items: center; gap: 16px; }
.sh-overall { font-size: 44px; font-weight: 700; line-height: 1; color: var(--ink); min-width: 86px; text-align: center; }
.sh-overall span { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.sh-fb { flex: 1; min-width: 0; }
.sh-fb b { font-size: 13.5px; color: var(--ink); }
.sh-fb p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.sh-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.sh-row { display: flex; align-items: center; gap: 10px; }
.sh-lb { width: 46px; font-size: 12.5px; color: var(--ink-2); flex: none; }
.sh-bar { flex: 1; height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.sh-fill { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }
.sh-fill.good { background: var(--ok); }
.sh-fill.mid { background: var(--warn); }
.sh-fill.low { background: var(--bad); }
.sh-v { width: 30px; text-align: right; font-size: 12.5px; color: var(--ink-2); flex: none; }
.sh-note { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-4); }
@media (max-width: 480px) {
  .sh-head { flex-direction: column; gap: 8px; text-align: center; }
  .sh-overall { min-width: 0; }
}

/* ---------- 跟读 · 示范音色切换 ---------- */
.sh-voice-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.sh-voice-label { font-size: 13px; color: var(--ink-3); letter-spacing: .5px; }
.sh-voice-label em { font-style: normal; font-size: 12px; color: var(--ink-4); margin-left: 4px; }
.sh-voice { margin-bottom: 0; }
.sh-voice button { padding: 6px 18px; font-size: 14px; font-family: inherit; }

/* ---------- 跟读 · 例词展示（只读样式，不可点读单词） ---------- */
.sh-words { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.sh-word {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--line-2); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.4;
}
.sh-word b { font-weight: 600; color: var(--ink); }
.sh-word i { font-style: normal; font-size: 12px; color: var(--ink-3); font-family: var(--ipa); }

/* ---------- 跟读 · 正在播放提示（把音标与发声显式对齐） ---------- */
.sh-now {
  min-height: 0; height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; color: var(--ink-3);
  transition: height .18s, margin .18s, opacity .18s;
  opacity: 0;
}
.sh-now.on { height: 22px; margin-top: 10px; opacity: 1; }
.sh-now b { font-size: 16px; color: var(--brand); font-family: var(--ipa); font-weight: 600; }
.sh-now i { font-style: normal; color: var(--ink-3); }
