/* 现网跟读页 · 借鉴 Speak Lab（流利说式暗色舞台） */
.practice-speak-page {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
    #0b1220;
  color: #e8eef8;
  min-height: 100vh;
}
.practice-speak-page .topbar {
  background: rgba(11, 18, 32, 0.88);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
.practice-speak-page .brand strong,
.practice-speak-page .links a { color: #cbd5e1; }
.practice-speak-page .brand small { color: #94a3b8; }
.practice-speak-page .links a:hover,
.practice-speak-page .links a.is-active { color: #2dd4bf; }
.practice-speak-page .links .cta {
  background: #2dd4bf;
  color: #042f2e !important;
}
.practice-speak-page .site-foot {
  border-top-color: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

.practice-main { padding: 1.2rem 0 2.5rem; }
.speak-shell { max-width: 560px; margin: 0 auto; }

.lesson-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.lesson-bar select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #121a2b;
  color: #e8eef8;
  font: inherit;
}
.progress-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
}
.progress-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  display: inline-block;
}
.progress-dots i.done { background: #2dd4bf; }
.progress-dots i.now {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.28);
}

.speak-card {
  background: #121a2b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 1.25rem 1.2rem 1.35rem;
}
.prompt { color: #94a3b8; font-size: 0.85rem; margin-bottom: 0.35rem; }
.en {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.zh { color: #94a3b8; margin-bottom: 0.2rem; }

/* —— 卡通口型舞台 —— */
.puppet-stage {
  margin: 0.85rem 0 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.puppet {
  width: min(220px, 56vw);
  position: relative;
}
.puppet-svg { width: 100%; height: auto; display: block; }
.mouth-cue {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  min-height: 1.3em;
  margin: 0.15rem 0 0;
}
.mouth-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.mouth-src {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}
.btn-cal {
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.cal-panel {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cal-panel[hidden] { display: none !important; }
.cal-help {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}
.cal-rows { display: flex; flex-direction: column; gap: 0.45rem; }
.cal-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.7fr;
  gap: 0.35rem;
  align-items: center;
}
.cal-row input,
.cal-row select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #121a2b;
  color: #e8eef8;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
}
.cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  justify-content: center;
}
.cal-actions .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
}

.puppet {
  --pup-skin: #ffe4c8;
  --pup-hair: #f59e0b;
  --pup-brow: #b45309;
  --pup-blush: #fda4af;
  --pup-mouth: #9f1239;
  --pup-lip: #be123c;
}
.puppet .pup-face { fill: var(--pup-skin); }
.puppet .pup-hair { fill: var(--pup-hair); }
.puppet .pup-eye { fill: #1e293b; }
.puppet .pup-rig { transform-box: fill-box; transform-origin: center; }
.puppet .pup-eye-l,
.puppet .pup-eye-r { transform-box: fill-box; }
.puppet .pup-brow {
  fill: none;
  stroke: var(--pup-brow);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.puppet .pup-blush { fill: var(--pup-blush); opacity: 0.85; }
.puppet .mouth-morph {
  transform-origin: 100px 168px;
  transition: none;
}
.puppet .mm-cavity { fill: var(--pup-mouth); }
.puppet .mm-teeth { fill: #fff; opacity: 0; }
.puppet .mm-tongue { fill: #fb7185; opacity: 0; }
.puppet .mm-lip-line {
  fill: none;
  stroke: var(--pup-lip);
  stroke-linecap: round;
  opacity: 1;
}
.puppet .mm-lower-lip {
  fill: var(--pup-lip);
  stroke: none;
  opacity: 0;
}
/* 旧离散口型层若残留则隐藏 */
.puppet .mouth-layer { display: none !important; }

.cal-toggle {
  margin-top: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0f172a;
  color: #94a3b8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.cal-panel {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cal-panel[hidden] { display: none !important; }
.cal-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 0.55rem;
  font-weight: 700;
}
.cal-list { display: flex; flex-direction: column; gap: 0.4rem; }
.cal-row {
  display: grid;
  grid-template-columns: 1fr 7.5rem 4.2rem;
  gap: 0.35rem;
  align-items: center;
}
.cal-row input,
.cal-row select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #121a2b;
  color: #e8eef8;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
}
.cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.cal-actions .btn {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.78rem !important;
}
.cal-hint {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
}

.wave {
  height: 78px;
  border-radius: 12px;
  background: #0f172a;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.25);
}
.wave canvas { width: 100%; height: 100%; display: block; }
.count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #2dd4bf;
  background: rgba(11, 18, 32, 0.55);
  pointer-events: none;
}
.count[hidden] { display: none !important; }

.mic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0.4rem;
}
.mic {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #fb7185, #e11d48);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.5);
  transition: transform 0.15s;
}
.mic:disabled { opacity: 0.4; cursor: not-allowed; animation: none; }
.mic.rec {
  animation: speak-pulse 1.2s infinite;
  background: linear-gradient(145deg, #ef4444, #991b1b);
}
@keyframes speak-pulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55); }
  70% { box-shadow: 0 0 0 18px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.status {
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  min-height: 1.4em;
}
.heard {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  min-height: 1.2em;
}

.scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 1rem;
}
.scores[hidden],
.ring-wrap[hidden],
.words[hidden] { display: none !important; }
.scores div {
  background: #0f172a;
  border-radius: 12px;
  padding: 0.7rem;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.scores b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  color: #2dd4bf;
}
.scores span { font-size: 0.75rem; color: #94a3b8; }
.words {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}
.words .ok { color: #2dd4bf; }
.words .bad {
  color: #fb7185;
  text-decoration: underline wavy rgba(251, 113, 133, 0.7);
}
.ring-wrap { display: flex; justify-content: center; margin: 1rem 0; }
.ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#2dd4bf 0deg, #1e293b 0deg);
  display: grid;
  place-items: center;
}
.ring > span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #121a2b;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.speak-card .btn {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: #e8eef8;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.speak-card .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.speak-card .btn.primary {
  background: #2dd4bf;
  color: #042f2e;
  border-color: transparent;
}
.note {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}
.note a { color: #2dd4bf; font-weight: 700; }
