/* ponytail: 三个页面共用原生 CSS，保持同一套颜色与控件。 */
:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #172c3c;
  background: #fff;
  --ink: #172c3c;
  --ink-strong: #142735;
  --ink-muted: #526775;
  --ink-subtle: #627580;
  --canvas: #f0f6f9;
  --surface: #fff;
  --surface-soft: #eaf2f7;
  --border: #dce6ec;
  --border-strong: #9db2c0;
  --primary: #172c3c;
  --primary-hover: #29495f;
  --primary-soft: #e1edf5;
  --action: var(--primary);
  --action-hover: var(--primary-hover);
  --ai: #386582;
  --ai-soft: #edf5fa;
  --ai-border: #cbdfe9;
  --accent-sheen: #8fc9e8;
  --recording: #b43d35;
  --recording-soft: #fff2f0;
  --error: #a73427;
  --sky: linear-gradient(180deg, #8ab0d0 0%, #b5d5e5 65%, #dfedf3 100%);
  --paper-shadow: 0 2px 5px rgb(34 65 87 / 3%), 0 16px 44px rgb(34 65 87 / 7%);
}

* {
  box-sizing: border-box;
}
html, body {
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
}
button, textarea, select {
  font: inherit;
}
button, select {
  cursor: pointer;
}
button:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed;
  opacity: .55;
}
a, button, select {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible,
.conversation:focus-visible {
  outline: 3px solid #386582;
  outline-offset: 4px;
}
button, a {
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
[hidden] {
  display: none !important;
}
h1, h2, h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 首页与练习页共享品牌和导航，当前页面直接标记在链接上。 */
.home-nav {
  position: relative;
  z-index: 3;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 10px 10px 14px 10px;
  background: rgb(255 255 255 / 65%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}
.home-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-links a {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.home-links a:hover {
  background: rgb(255 255 255 / 28%);
}
.home-links a[aria-current="page"] {
  background: rgb(255 255 255 / 72%);
}
/* 右上角 Get started：沿用主按钮配色，尺寸紧凑适配导航条。 */
.home-links .nav-cta {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgb(23 44 60 / 14%);
  transition: transform 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease, background-color 150ms ease;
}
.home-links .nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgb(23 44 60 / 20%);
}
.home-links .nav-cta:active {
  transform: translateY(0);
  transition-duration: 80ms;
}
.home-shell {
  padding: 16px;
}
.home-hero {
  min-height: 740px;
  height: min(900px, calc(100dvh - 32px));
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--sky);
  box-shadow: 0 2px 6px #274a620f, 0 12px 28px #274a6214, 0 32px 68px #274a621c;
  animation: rise-in 560ms cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* 英雄区环境光晕：浅蓝 / 蓝紫 / 淡白三层光斑反方向漂移（12s/13s/11s），
   预先模糊的独立图层只动 transform，不持续重算 blur。hero 自身 overflow:hidden 裁边。 */
.hero-glows {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-glows::before,
.hero-glows::after,
.hero-glow-c {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
}
.hero-glow-c {
  top: 24%;
  left: -170px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgb(255 255 255 / 92%) 0%, rgb(255 255 255 / 0%) 70%);
  opacity: .35;
  animation: orb-c 11s ease-in-out -2.5s infinite alternate;
}
.hero-glows::before,
.hero-glows::after {
  width: 540px;
  height: 540px;
}
.hero-glows::before {
  top: -190px;
  left: -150px;
  background: radial-gradient(circle, rgb(214 234 247 / 90%) 0%, rgb(214 234 247 / 0%) 68%);
  opacity: .16;
  animation: orb-a 12s ease-in-out infinite alternate;
}
.hero-glows::after {
  top: 40px;
  right: -190px;
  background: radial-gradient(circle, rgb(167 152 235 / 85%) 0%, rgb(167 152 235 / 0%) 70%);
  opacity: .13;
  animation: orb-b 13s ease-in-out -5s infinite alternate;
}

.hero-voice-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-voice-wave path {
  fill: none;
  stroke: url(#hero-voice-wave-gradient);
  stroke-width: 1.45;
  stroke-linecap: round;
  opacity: .92;
  vector-effect: non-scaling-stroke;
  animation: hero-voice-wave-breathe 5s ease-in-out infinite alternate;
}

.hero-voice-wave-mobile { display: none; }

.hero-voice-wave .hero-voice-wave-secondary {
  stroke-width: 1.2;
  opacity: .55;
  animation: hero-voice-wave-secondary-drift 6.4s ease-in-out -1.8s infinite alternate;
}

.hero-voice-wave .hero-voice-wave-tertiary {
  stroke-width: .95;
  opacity: .36;
  animation: hero-voice-wave-tertiary-drift 7.2s ease-in-out -3.1s infinite alternate;
}

.hero-audio-waveform {
  position: absolute;
  z-index: 1;
  top: 26%;
  right: clamp(56px, 11vw, 184px);
  width: 126px;
  height: 70px;
  overflow: visible;
  pointer-events: none;
  opacity: .98;
  filter: drop-shadow(0 2px 6px rgb(70 156 202 / 16%));
  animation: hero-audio-waveform-float 3.2s ease-in-out infinite alternate;
}

.hero-audio-waveform line {
  stroke: url(#hero-audio-waveform-gradient);
  stroke-width: 4.2;
  stroke-linecap: round;
}

.hero-audio-waveform circle { fill: url(#hero-audio-waveform-gradient); }

.hero-audio-bars {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-audio-bars-breathe 2.4s ease-in-out infinite alternate;
}

.hero-voice-wave stop:nth-child(2) {
  animation: hero-gradient-tide 4.8s ease-in-out infinite alternate;
}

@media (max-width: 960px) {
  .hero-audio-waveform { top: 28%; right: 5vw; width: 106px; height: 59px; opacity: .92; }
}

@keyframes orb-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(72px, 44px, 0) scale(1.12); }
}
@keyframes orb-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(-64px, -38px, 0) scale(1); }
}
@keyframes orb-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(56px, -30px, 0) scale(1.08); }
}
@keyframes hero-voice-wave-breathe {
  from { opacity: .82; }
  to { opacity: 1; }
}
@keyframes hero-voice-wave-secondary-drift {
  from { transform: translateY(0); stroke-opacity: .8; }
  to { transform: translateY(-7px); stroke-opacity: 1; }
}
@keyframes hero-voice-wave-tertiary-drift {
  from { transform: translateY(0); stroke-opacity: .75; }
  to { transform: translateY(-5px); stroke-opacity: .98; }
}
@keyframes hero-audio-bars-breathe {
  from { transform: scaleY(.94); }
  to { transform: scaleY(1.04); }
}
@keyframes hero-audio-waveform-float {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}
@keyframes hero-gradient-tide {
  from { stop-color: #559FC8; }
  to { stop-color: #83C1DE; }
}
/* 入场错峰动画：标题、副文案、按钮依次上浮淡入。 */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 58px 24px 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.045em;
}
/* 标题两行错开 150ms 依次上移淡入，只播一次。 */
.hero-line {
  display: block;
  animation: line-in 800ms cubic-bezier(.22, 1, .36, 1) both;
}
.hero-line + .hero-line {
  animation-delay: 150ms;
}
@keyframes line-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
/* 标题里的关键词：产品蓝底色 + 每 5s 一次的柔和光泽横向扫过（扫过仅占周期 20%）。
   渐变停在 100% 时窗口内只有纯色，不影响平时阅读。 */
.hero-accent {
  display: inline-block;
  /* 紧行高下 inline 背景区不含 y 的降部，转块级并向下扩背景区；0.24em 盖不住
     这个字体的 y 尾钩，盖不到的字形在 background-clip: text 下是透明的。 */
  padding: 0.02em 0 0.34em;
  margin-bottom: -0.34em;
  font-style: normal;
  background: linear-gradient(105deg, var(--ai) 42%, var(--accent-sheen) 50%, var(--ai) 58%);
  background-size: 240% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-sheen 5s ease-in-out 2.2s infinite;
}
@keyframes accent-sheen {
  0%, 45%, 100% { background-position: 100% 0; }
  65% { background-position: 0% 0; }
}
.hero-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: #304f64;
  font-size: 18px;
  line-height: 1.6;
  animation: fade-up 700ms cubic-bezier(.22, 1, .36, 1) 280ms both;
}
.hero-copy strong {
  font-weight: 650;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: fade-up 700ms cubic-bezier(.22, 1, .36, 1) 420ms both;
}
.hero-button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease, background-color 150ms ease;
}
.hero-button:hover {
  transform: translateY(-2px);
}
.hero-button:active {
  transform: translateY(0);
  transition-duration: 80ms;
}
.hero-button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 14px rgb(23 44 60 / 12%);
}
.hero-button-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 24px rgb(23 44 60 / 18%);
}
.hero-button-secondary {
  background: #fff;
  color: var(--ink);
}
.hero-button-secondary:hover {
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgb(23 44 60 / 10%);
}
.hero-paper-scene {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -2px;
  width: min(720px, 86vw);
  height: 260px;
  transform: translateX(-50%);
  animation: fade-in 700ms ease 520ms both;
}

.paper-envelope {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 470px;
  max-width: 76vw;
  height: 185px;
  transform: translateX(-50%);
}

.paper-envelope::before,
.paper-envelope::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 126px;
  border-radius: 10px 10px 0 0;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(65, 96, 122, 0.16);
}

.paper-envelope::before {
  clip-path: polygon(0 36%, 50% 0, 100% 36%, 100% 100%, 0 100%);
  opacity: 0.96;
}

.paper-envelope::after {
  clip-path: polygon(0 38%, 50% 78%, 100% 38%, 100% 100%, 0 100%);
  opacity: 0.98;
}

.paper {
  position: absolute;
  bottom: 42px;
  width: 150px;
  min-height: 152px;
  padding: 16px 16px 20px;
  border: 1px solid rgb(34 65 87 / 8%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #6d777b;
  text-align: left;
  box-shadow: 0 2px 6px rgba(65, 96, 122, 0.08), 0 18px 36px rgba(65, 96, 122, 0.16);
}

.paper::before {
  content: "";
  position: absolute;
  inset: -28px auto auto 50%;
  min-width: 84px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(65, 96, 122, 0.12);
}

.paper span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: -37px;
  color: #6c7682;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.paper p {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.paper-before {
  left: 84px;
  transform: rotate(-3deg);
  animation:
    paper-before-in 700ms cubic-bezier(.22, 1, .36, 1) 600ms both,
    paper-before-float 6s ease-in-out 1350ms infinite alternate;
}

.paper-before p {
  color: rgba(90, 101, 113, 0.6);
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-style: italic;
}

.paper-beam-clip {
  position: absolute;
  inset: 0;
  overflow: clip;
  border-radius: inherit;
  pointer-events: none;
}
/* Before→After 迁移光束：一条淡蓝光线每轮先于 After 浮现掠过信封。
   外层裁剪带限制光束只在信封宽度内移动，不越出纸张区域。 */
.paper-beam-clip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 94px;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
}
.paper-beam {
  position: absolute;
  bottom: 12px;
  left: 20%;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(125 190 230 / 0%), rgb(125 190 230 / 85%) 45%, rgb(255 255 255 / 95%));
  opacity: 0;
  animation: paper-beam-run 11s ease-in-out -6s infinite;
}
@keyframes paper-beam-run {
  0%, 4% { opacity: 0; transform: translateX(0); }
  6% { opacity: .9; transform: translateX(0); }
  16% { opacity: .85; transform: translateX(230px); }
  18%, 100% { opacity: 0; transform: translateX(230px); }
}

/* After 卡叙事插槽：11s 循环“自下方浮现 → 柔和高亮 → 长时间展示 → 轻淡出”，
   卡片本体的漂浮/入场动画不受影响（transform 在内外两层自然叠加）。 */
.paper-after-slot {
  position: absolute;
  right: 72px;
  bottom: 42px;
  animation: after-narrative 11s ease-in-out -6s infinite;
}
/* 浮现后的柔和高亮：只在闪亮时刻可见的淡青绿光。 */
.paper-after-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 30%, rgb(255 255 255 / 55%) 0%, rgb(13 148 136 / 22%) 55%, rgb(13 148 136 / 0%) 100%);
  opacity: 0;
  pointer-events: none;
  animation: after-highlight 11s ease-in-out -6s infinite;
}
@keyframes after-narrative {
  0%, 14% { opacity: 0; transform: translateY(26px); }
  26% { opacity: 1; transform: translateY(0); }
  88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(18px); }
}
@keyframes after-highlight {
  0%, 26% { opacity: 0; }
  30% { opacity: .8; }
  40%, 100% { opacity: 0; }
}

/* After 卡片本体：只负责姿态与漂浮，位置交给插槽。 */
.paper-after {
  position: static;
  transform: rotate(1deg);
  border-color: rgb(15 118 110 / 22%);
  animation:
    paper-after-in 700ms cubic-bezier(.22, 1, .36, 1) 720ms both,
    paper-after-float 7.5s ease-in-out 2350ms infinite alternate,
    paper-after-shadow 7.5s ease-in-out 2350ms infinite;
}

@keyframes paper-before-in {
  from { opacity: 0; transform: rotate(-3deg) translateY(18px); }
  to { opacity: 1; transform: rotate(-3deg); }
}
@keyframes paper-before-float {
  0% { transform: rotate(-3deg) translate(0, 0); }
  50% { transform: rotate(-3.9deg) translate(3px, -10px); }
  100% { transform: rotate(-3.4deg) translate(0, 0); }
}
@keyframes paper-after-in {
  from { opacity: 0; transform: rotate(1deg) translateY(18px); }
  to { opacity: 1; transform: rotate(1deg); }
}
@keyframes paper-after-float {
  0% { transform: rotate(1deg) translate(0, 0); }
  50% { transform: rotate(2deg) translate(2px, -12px); }
  100% { transform: rotate(1deg) translate(0, 0); }
}
/* After 卡片阴影轻微明暗呼吸，与漂浮同节奏。 */
@keyframes paper-after-shadow {
  0%, 100% { box-shadow: 0 2px 6px rgba(65, 96, 122, 0.08), 0 18px 36px rgba(65, 96, 122, 0.16); }
  50% { box-shadow: 0 2px 6px rgba(65, 96, 122, 0.12), 0 26px 48px rgba(65, 96, 122, 0.26); }
}

.paper-strip {
  position: absolute;
  bottom: -30px;
  width: 190px;
  height: 64px;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  opacity: 0.92;
}

.paper-strip-left {
  left: 16px;
  transform: rotate(-8deg);
  animation: strip-bob-left 9s ease-in-out infinite alternate;
}

.paper-strip-right {
  right: 10px;
  transform: rotate(9deg);
  animation: strip-bob-right 11s ease-in-out -4s infinite alternate;
}
/* 底部纸张独立缓慢起伏，与卡片漂浮错拍。 */
@keyframes strip-bob-left {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(-7.4deg) translateY(-5px); }
}
@keyframes strip-bob-right {
  from { transform: rotate(9deg) translateY(0); }
  to { transform: rotate(8.5deg) translateY(-6px); }
}


.mode-section-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 80px 24px;
}
.mode-heading {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  animation: fade-up 700ms cubic-bezier(.22, 1, .36, 1) both;
}
/* 标题下的 14px 辅助说明 */
.mode-subheading {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
  animation: fade-up 700ms cubic-bezier(.22, 1, .36, 1) 90ms both;
}
.mode-heading h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}
/* 单一 Free Talk 主卡：左文案右叠纸场景。 */
.mode-feature {
  position: relative;
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--paper-shadow);
  transition: box-shadow 200ms ease;
}
/* 右侧卡片区域的氛围光：淡蓝与淡紫两层反方向漂移（12s/13s），blur 柔边。
   挂在场景列上而非整卡：四周留白充足，大幅位移也不会撑出横向滚动。 */
.mode-feature-scene::before,
.mode-feature-scene::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}
.mode-feature-scene::before {
  top: -50px;
  right: 40px;
  width: 390px;
  height: 330px;
  background: radial-gradient(circle, rgb(151 190 220 / 95%) 0%, rgb(151 190 220 / 0%) 70%);
  opacity: .12;
  animation: glow-a 12s ease-in-out infinite alternate;
}
.mode-feature-scene::after {
  bottom: -30px;
  right: -30px;
  width: 340px;
  height: 300px;
  background: radial-gradient(circle, rgb(168 152 236 / 90%) 0%, rgb(168 152 236 / 0%) 70%);
  opacity: .1;
  animation: glow-b 13s ease-in-out -5s infinite alternate;
}
@keyframes glow-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-58px, 30px, 0) scale(1.1); }
}
@keyframes glow-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(46px, -26px, 0) scale(1); }
}
.mode-feature:hover {
  box-shadow: 0 2px 6px rgb(34 65 87 / 5%), 0 24px 56px rgb(34 65 87 / 13%);
}
.mode-feature h3 {
  margin: 10px 0 0;
  font-size: 34px;
  font-weight: 650;
}
.mode-feature-copy {
  position: relative;
  z-index: 1;
  animation: fade-up 700ms cubic-bezier(.22, 1, .36, 1) 120ms both;
}
.mode-feature-copy > p {
  margin: 14px 0 16px;
  max-width: 44ch;
  color: var(--ink-muted);
  line-height: 1.7;
}
/* 描述下方的三个小功能标签：低饱和底、细边框、小图标，不是彩色大按钮。 */
.mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  animation: tag-glow 7.5s ease-in-out infinite;
}
/* 三个标签轮流轻微提亮（各约 1.5s，错开 2.5s），不改尺寸位置。 */
.mode-tag:nth-child(1) { animation-delay: 1s; }
.mode-tag:nth-child(2) { animation-delay: 3.5s; }
.mode-tag:nth-child(3) { animation-delay: 6s; }
@keyframes tag-glow {
  0%, 32%, 100% { background-color: var(--primary-soft); border-color: var(--border); }
  10%, 20% { background-color: #d7e7f2; border-color: #bfd6e4; }
}
.mode-tag svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--ai);
}
.mode-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.mode-cta-button {
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 5px 14px rgb(23 44 60 / 10%);
  transition: transform 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease, background-color 150ms ease;
}
.mode-cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(23 44 60 / 16%);
}
.mode-cta-button:active {
  transform: translateY(0);
  transition-duration: 80ms;
}
.mode-cta-quiet {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}
.mode-cta-quiet:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.mode-feature-scene {
  position: relative;
  z-index: 1;
  min-height: 290px;
  /* 氛围光斑（::before/::after）带 right:-30px 与动画位移，会在窄视口撑出
     文档横向滚动；光斑径向渐隐，裁在场景盒内看不出截断。 */
  overflow: clip;
}
/* AI is listening 状态条：产品录音态用同一颗低饱和红点，波形只动 scaleY。 */
.mode-listen {
  position: absolute;
  top: 8px;
  right: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgb(34 65 87 / 6%), 0 10px 24px rgb(34 65 87 / 10%);
  animation: fade-up 700ms cubic-bezier(.22, 1, .36, 1) 60ms both;
  transition: translate 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease;
}
.mode-listen:hover {
  translate: 0 -3px;
  box-shadow: 0 4px 10px rgb(34 65 87 / 8%), 0 14px 28px rgb(34 65 87 / 14%);
}
.listen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--recording);
  animation: listen-pulse 1.8s ease-in-out infinite;
}
@keyframes listen-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}
.listen-label {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* 波形柱 3–20px：各柱独立时长（1.1–1.6s）+ 负延迟错相，波峰自然左右游走；
   整组再叠加极轻微横移，模拟拾音微动。 */
.listen-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 20px;
  animation: wave-sway 4s ease-in-out infinite alternate;
}
@keyframes wave-sway {
  from { transform: translateX(-1.5px); }
  to { transform: translateX(1.5px); }
}
.listen-wave i {
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: var(--ai);
  opacity: .75;
  transform-origin: bottom;
  animation: wave-bar 1.3s ease-in-out infinite;
}
.listen-wave i:nth-child(1) { animation-duration: 1.1s; animation-delay: -.1s; }
.listen-wave i:nth-child(2) { animation-duration: 1.55s; animation-delay: -.5s; }
.listen-wave i:nth-child(3) { animation-duration: 1.25s; animation-delay: -.8s; }
.listen-wave i:nth-child(4) { animation-duration: 1.65s; animation-delay: -.35s; }
.listen-wave i:nth-child(5) { animation-duration: 1.4s; animation-delay: -.65s; }
@keyframes wave-bar {
  0%, 100% { transform: scaleY(.15); }
  50% { transform: scaleY(1); }
}
.mode-paper-cue {
  position: absolute;
  top: 22px;
  left: 0;
  width: min(292px, 58%);
  padding: 18px 20px 22px;
  transform: rotate(-2deg);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgb(34 65 87 / 6%), 0 16px 32px rgb(34 65 87 / 12%);
  animation:
    cue-in 700ms cubic-bezier(.22, 1, .36, 1) 220ms both,
    cue-float 6s ease-in-out 1s infinite alternate;
  transition: translate 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease;
}
.mode-paper-cue:hover {
  translate: 0 -3px;
  box-shadow: 0 4px 10px rgb(34 65 87 / 8%), 0 20px 38px rgb(34 65 87 / 15%);
}
.mode-paper-cue span {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mode-paper-cue p {
  margin: 10px 0 0;
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}
/* Live Transcript 预览卡：与 Before 纸卡同一套衬线斜体语言。 */
.mode-transcript {
  position: absolute;
  top: 146px;
  left: 6px;
  width: min(212px, 46%);
  padding: 14px 16px 16px;
  transform: rotate(-1.2deg);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgb(34 65 87 / 6%), 0 16px 32px rgb(34 65 87 / 12%);
  animation:
    transcript-in 700ms cubic-bezier(.22, 1, .36, 1) 340ms both,
    transcript-float 7s ease-in-out 1100ms infinite alternate;
  transition: translate 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease;
}
.mode-transcript:hover {
  translate: 0 -3px;
  box-shadow: 0 4px 10px rgb(34 65 87 / 8%), 0 20px 38px rgb(34 65 87 / 15%);
}
/* 标签只匹配卡片直接子级，避免波及转写短语 span。 */
.mode-transcript > span {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mode-transcript p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.55;
}
/* 转写文本按短语分段浮现（600–800ms 间隔），整句保留约 2s 后一起散去，7s 循环重放。 */
.mode-transcript p > span {
  display: inline;
  opacity: 0;
  animation: phrase-cycle 7s ease-in-out infinite;
}
.mode-transcript p > span:nth-child(1) { animation-delay: .6s; }
.mode-transcript p > span:nth-child(2) { animation-delay: 1.4s; }
.mode-transcript p > span:nth-child(3) { animation-delay: 2.2s; }
@keyframes phrase-cycle {
  0% { opacity: 0; transform: translateY(4px); }
  8% { opacity: 1; transform: none; }
  76% { opacity: 1; transform: none; }
  86%, 100% { opacity: 0; transform: none; }
}
/* AI follow-up 插槽：接管定位，并承载“问题切换时卡片轻微下沉 + 淡紫高亮闪现”，
   与卡片本体的漂浮、hover 互不抢占 transform。 */
.note-slot {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: min(224px, 52%);
  animation: note-dip 21s ease-in-out infinite;
}
/* 高亮：只在每次切换后的瞬间可见。 */
.note-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(120% 100% at 50% 0%, rgb(139 125 224 / 28%) 0%, rgb(139 125 224 / 0%) 70%);
  opacity: 0;
  pointer-events: none;
  animation: note-glow 21s ease-in-out infinite;
}
@keyframes note-dip {
  0%, 11.4% { transform: translateY(0); }
  13.2% { transform: translateY(3px); }
  15.2%, 44.8% { transform: translateY(0); }
  46.6% { transform: translateY(3px); }
  48.6%, 78.1% { transform: translateY(0); }
  79.9% { transform: translateY(3px); }
  81.9%, 100% { transform: translateY(0); }
}
@keyframes note-glow {
  0%, 13% { opacity: 0; }
  16% { opacity: .9; }
  22%, 46% { opacity: 0; }
  49% { opacity: .9; }
  55%, 79% { opacity: 0; }
  82% { opacity: .9; }
  88%, 100% { opacity: 0; }
}
.mode-note-ai {
  position: relative;
  width: 100%;
  padding: 14px 16px 16px;
  transform: rotate(1.5deg);
  border: 1px solid #d8d0fb;
  border-radius: 18px;
  background: #f0edff;
  box-shadow: 0 2px 6px rgb(109 91 208 / 8%), 0 16px 32px rgb(109 91 208 / 14%);
  animation:
    note-in 700ms cubic-bezier(.22, 1, .36, 1) 480ms both,
    note-float 6.6s ease-in-out 1.25s infinite alternate;
  transition: translate 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 200ms ease;
}
.mode-note-ai:hover {
  translate: 0 -3px;
  box-shadow: 0 4px 10px rgb(109 91 208 / 10%), 0 20px 38px rgb(109 91 208 / 18%);
}
.mode-note-ai strong {
  color: #6d5bd0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mode-note-ai p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
/* 追问轮换：三问绝对定位叠放，容器高度锁定不跳动；
   每问 7s 切换，旧问淡出、新问自下方 10px 进入，切换点与插槽下沉/高亮对齐。 */
.followup-cycle {
  position: relative;
  height: 42px;
}
.followup-cycle span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: followup-cycle 21s ease-in-out infinite;
}
.followup-cycle span:nth-child(1) { animation-delay: 2.4s; }
.followup-cycle span:nth-child(2) { animation-delay: 9.4s; }
.followup-cycle span:nth-child(3) { animation-delay: 16.4s; }
@keyframes followup-cycle {
  0% { opacity: 0; transform: translateY(10px); }
  2.5% { opacity: 1; transform: none; }
  30% { opacity: 1; transform: none; }
  33.3% { opacity: 0; transform: none; }
  33.4%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes cue-in {
  from { opacity: 0; transform: rotate(-2deg) translateY(16px); }
  to { opacity: 1; transform: rotate(-2deg); }
}
@keyframes cue-float {
  0% { transform: rotate(-2deg) translate(0, 0); }
  50% { transform: rotate(-3deg) translate(3px, -10px); }
  100% { transform: rotate(-2.3deg) translate(0, 0); }
}
@keyframes note-in {
  from { opacity: 0; transform: rotate(1.5deg) translateY(16px); }
  to { opacity: 1; transform: rotate(1.5deg); }
}
@keyframes note-float {
  0% { transform: rotate(1.5deg) translate(0, 0); }
  50% { transform: rotate(2.4deg) translate(-2px, -11px); }
  100% { transform: rotate(1.5deg) translate(0, 0); }
}
@keyframes transcript-in {
  from { opacity: 0; transform: rotate(-1.2deg) translateY(16px); }
  to { opacity: 1; transform: rotate(-1.2deg); }
}
/* 转写卡与话题/追问卡同语言：入场结束后接小幅漂浮，起止姿态对齐入场末避免跳变。 */
@keyframes transcript-float {
  0% { transform: rotate(-1.2deg) translate(0, 0); }
  50% { transform: rotate(-2.2deg) translate(-2px, -8px); }
  100% { transform: rotate(-1.3deg) translate(0, 0); }
}

/* 卡片间流动连接线：细虚线曲线表达 Topic → Transcript → Follow-up 的数据流，
   蓝紫光点沿路径游走。线条先于卡片绘制，处于卡片背景层不遮挡文字。 */
.mode-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.flow-path {
  fill: none;
  stroke: rgb(122 108 220 / 26%);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.flow-dot {
  fill: #8a7ae0;
  opacity: 0;
}
@supports (offset-path: path("M0,0")) {
  .flow-dot {
    offset-rotate: 0deg;
    animation: flow-travel 6s ease-in-out infinite;
  }
  .flow-dot-a { offset-path: path("M268 88 C 316 102, 318 140, 248 162"); }
  .flow-dot-b {
    offset-path: path("M218 200 C 280 214, 330 228, 368 240");
    animation-delay: 3s;
  }
}
@keyframes flow-travel {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: .95; }
  85% { opacity: .95; }
  100% { offset-distance: 100%; opacity: 0; }
}

.practice-page {
  height: 100dvh;
  padding: 16px;
  overflow: hidden;
}
.app-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #8ab0d0 0, #b5d5e5 240px, #f0f6f9 520px);
}
.conversation {
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior-y: contain;
}
.practice-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 34px;
  text-align: center;
}
.practice-intro h1 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.practice-intro > p {
  max-width: 570px;
  margin: 16px auto 0;
  color: #304f64;
  font-size: 16px;
  line-height: 1.6;
}
.practice-workspace {
  width: min(940px, calc(100% - 48px));
  min-height: 260px;
  margin: 0 auto 24px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 20px;
  background: rgb(255 255 255 / 93%);
  box-shadow: var(--paper-shadow);
}
.practice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.practice-context {
  display: flex;
  align-items: center;
  gap: 12px;
}
.context-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ai);
}
.context-icon svg {
  width: 21px;
  height: 21px;
}
.practice-context h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}
.session-status {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
}
.session-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.session-timer {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.part-picker select, .secondary-button {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
.part-picker select {
  padding: 0 12px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 600;
}
.secondary-button:hover:not(:disabled) {
  background: var(--surface-soft);
}
.secondary-button svg, .icon-command svg, .send-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.practice-note {
  margin: 0;
  padding: 18px 24px 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}
.topic-picker {
  padding: 20px 24px 0;
}
.panel-kicker {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}
.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-chip {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}
.topic-chip:hover:not(:disabled) {
  background: var(--surface-soft);
  color: var(--ink);
}
.topic-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.topic-chip.is-active:hover:not(:disabled) {
  background: var(--primary-hover);
  color: #fff;
}
.topic-chip-icon {
  border-color: transparent;
}
.topic-chip svg {
  width: 17px;
  height: 17px;
}
.message-list {
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 12px;
}
.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--ai);
  font-size: 11px;
  font-weight: 650;
}
.message-body {
  min-width: 0;
  max-width: min(690px, calc(100% - 46px));
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px;
  background: var(--surface);
}
.message-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}
.message-author {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
}
.message-body > .message-author {
  margin-bottom: 8px;
}
.message-time {
  color: var(--ink-subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.message-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message-audio-button {
  margin-top: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition-property: border-color, color, background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.message-audio-button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.message-audio-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.message-audio-button:active:not(:disabled) {
  transform: scale(.96);
}
.message-user {
  flex-direction: row-reverse;
}
.message-user .message-avatar {
  background: var(--primary);
  color: #fff;
}
.message-user .message-body {
  border-color: #d2e2ec;
  border-radius: 16px 4px 16px 16px;
  background: var(--surface-soft);
}
.message-pending .message-text {
  color: var(--ink-muted);
}
.message-error .message-body {
  border-color: #e8b4ad;
  background: #fff4f2;
}
.message-error .message-text {
  color: var(--error);
}
.assessment-card {
  width: min(560px, 100%);
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  text-align: left;
}

.assessment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.assessment-header p,
.assessment-weak-list h4,
.assessment-weak-list p,
.assessment-ai-note p,
.assessment-error {
  margin: 0;
}

.assessment-header p {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.assessment-header strong {
  display: block;
  margin-top: 2px;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.35;
}

.assessment-header span {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.assessment-scores {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.assessment-score {
  display: grid;
  grid-template-columns: 78px minmax(72px, 1fr) 40px 112px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.assessment-score > span:first-child {
  color: var(--ink-muted);
}

.assessment-score strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.assessment-score em {
  color: var(--ink-muted);
  font-style: normal;
  font-size: 12px;
}

.assessment-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.assessment-bar::before {
  content: "";
  display: block;
  width: calc(var(--score) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--score-color, var(--action));
}

.assessment-score.is-good {
  --score-color: #247a57;
}

.assessment-score.is-mid {
  --score-color: #a66a14;
}

.assessment-score.is-low {
  --score-color: #a73427;
}

.assessment-score.is-empty {
  --score-color: var(--border-strong);
}

.assessment-weak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.assessment-weak-list {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
}

.assessment-weak-list h4 {
  color: var(--ink-strong);
  font-size: 13px;
}

.assessment-weak-list p {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.assessment-ai-note {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--ai-border);
  border-radius: 8px;
  background: var(--ai-soft);
}

.assessment-ai-note strong {
  color: var(--ai);
  font-size: 13px;
}

.assessment-ai-note p {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.assessment-error {
  margin-top: 12px;
  color: var(--error);
  font-size: 13px;
  line-height: 1.45;
}


.composer-area {
  background: var(--canvas);
}
.composer-inner {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 max(14px, env(safe-area-inset-bottom));
}
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgb(34 65 87 / 5%);
}
.composer:focus-within {
  border-color: var(--ai);
  box-shadow: 0 0 0 3px rgb(56 101 130 / 12%);
}
.composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 150px;
  resize: none;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-y: auto;
}
.composer textarea:focus {
  outline: 0;
}
.composer textarea::placeholder {
  color: var(--ink-subtle);
}
.icon-command, .send-button {
  min-height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.icon-command {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
}
.icon-command:hover:not(:disabled) {
  background: var(--primary-soft);
}
.icon-command.is-recording {
  border-color: var(--recording);
  background: var(--recording-soft);
  color: var(--error);
}
.send-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}
.send-button:hover:not(:disabled) {
  background: var(--primary-hover);
}
.composer-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 10px 4px 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}
.error-text {
  margin: 8px 4px 0;
  color: var(--error);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.error-text:empty {
  display: none;
}
.recording-bar {
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e8b4ad;
  border-radius: 12px;
  background: var(--recording-soft);
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}
.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--recording);
}
.recording-bar time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* 考试操作固定在消息滚动区外，短屏也能看见当前阶段。 */
.exam-shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.exam-controls {
  width: min(940px, calc(100% - 48px));
  margin: 8px auto 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
}
.exam-controls .practice-context h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.exam-controls .session-actions {
  align-items: flex-end;
}
.exam-controls .part-picker {
  display: grid;
  gap: 5px;
  color: var(--ink-muted);
  font-size: 12px;
}
.exam-controls .secondary-button {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.exam-controls .secondary-button:hover:not(:disabled) {
  background: var(--primary-hover);
}
.exam-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 13px;
}
.exam-progress p {
  margin: 0;
}
.exam-progress .session-timer {
  margin-left: auto;
  flex-basis: auto;
}
.preparation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-basis: 100%;
  gap: 12px;
}
.preparation-controls time {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.exam-conversation {
  scrollbar-gutter: auto;
}
.exam-conversation .practice-workspace {
  min-height: 100%;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--surface);
}
.exam-welcome {
  max-width: 600px;
  padding: 40px 32px;
}
.exam-welcome h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.exam-welcome p, .exam-welcome li {
  color: var(--ink-muted);
  line-height: 1.7;
}
.exam-welcome ul {
  margin: 20px 0 0;
  padding-left: 20px;
}
.exam-welcome + .message-list:empty {
  display: none;
}
.message-cue-card .message-body {
  border-left: 3px solid var(--ai);
  background: var(--ai-soft);
}
.message-body details {
  margin-top: 16px;
}
.message-body summary {
  padding-block: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ai);
}
.exam-error {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exam-error .error-text {
  flex: 1;
}
.exam-error .secondary-button {
  flex-shrink: 0;
  margin-top: 8px;
}

@media (max-width: 680px) {
  .hero-voice-wave-desktop { display: none; }
  .hero-voice-wave-mobile { display: block; }
  .hero-audio-waveform { display: none; }
  .home-shell, .practice-page {
    padding: 8px;
  }
  .home-hero, .app-shell {
    border-radius: 20px;
  }
  .home-nav {
    padding: 14px 16px;
    flex-direction: column;
    gap: 10px;
  }
  .home-brand {
    font-size: 15px;
  }
  .brand-mark {
    width: 28px;
    height: 30px;
    border-radius: 8px;
  }
  .home-links {
    width: 100%;
    gap: 4px;
    justify-content: center;
  }
  .home-links a {
    flex: 1;
    max-width: 140px;
    padding: 0 10px;
  }
  .hero-content {
    padding: 32px 20px 245px;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .hero-actions {
    width: min(300px, 100%);
  }
  .hero-button {
    width: 100%;
  }
  .hero-paper-scene {
    width: 100%;
    height: 210px;
  }
  .paper-envelope {
    width: 310px;
    height: 140px;
  }
  .paper {
    width: 122px;
    min-height: 126px;
    padding: 13px 12px 16px;
  }
  .paper span {
    font-size: 13px;
  }
  .paper p {
    margin-top: 18px;
    font-size: 11px;
  }
  .paper-before {
    left: 38px;
  }
  .paper-after-slot {
    right: 32px;
  }
  .paper-strip {
    width: 120px;
    height: 46px;
    border-width: 7px;
  }
  /* 移动端减少环境动画：纸卡只留入场动画；After 叙事循环、光束、标签轮换、
     光晕漂移、连接线停用，听写波形收窄。 */
  .paper-before { animation: paper-before-in 700ms cubic-bezier(.22, 1, .36, 1) both; }
  .paper-after { animation: paper-after-in 700ms cubic-bezier(.22, 1, .36, 1) both; }
  .paper-after-slot { animation: none; }
  .paper-after-slot::after { animation: none; }
  .paper-beam-clip, .mode-flow { display: none; }
  .mode-tag { animation: none; }
  .mode-feature-scene::before,
  .mode-feature-scene::after { animation: none; }
  .mode-section-inner {
    padding: 48px 12px;
  }
  .mode-heading h2 {
    font-size: 28px;
  }
  .mode-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px;
  }
  .mode-feature h3 {
    font-size: 27px;
  }
  .mode-feature-scene {
    min-height: 0;
  }
  /* 窄屏：四件元素纵向堆叠、轻微错位；关闭持续浮动，只留入场动画。 */
  .mode-listen {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 0 12px 2px;
  }
  .mode-paper-cue {
    position: relative;
    top: auto;
    left: auto;
    width: min(320px, 94%);
    animation: cue-in 700ms cubic-bezier(.22, 1, .36, 1) both;
  }
  .mode-transcript {
    position: relative;
    top: auto;
    left: auto;
    width: min(300px, 90%);
    margin: 10px auto 0 8px;
    animation: transcript-in 700ms cubic-bezier(.22, 1, .36, 1) 120ms both;
  }
  .note-slot {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(280px, 88%);
    margin: -10px 0 4px auto;
    animation: none;
  }
  .note-slot::after { animation: none; }
  .mode-note-ai {
    animation: note-in 700ms cubic-bezier(.22, 1, .36, 1) 220ms both;
  }
  .practice-intro {
    padding: 16px 20px 20px;
  }
  .practice-intro h1 {
    font-size: 28px;
  }
  .practice-intro > p {
    font-size: 14px;
    margin-top: 10px;
  }
  .practice-workspace {
    width: calc(100% - 24px);
    border-radius: 16px;
  }
  .practice-toolbar {
    padding: 16px;
    gap: 12px;
  }
  .practice-context {
    gap: 8px;
  }
  .context-icon {
    display: none;
  }
  .session-actions {
    gap: 8px;
  }
  .session-timer {
    flex-basis: 100%;
  }
  .topic-picker {
    padding: 16px 16px 0;
  }
  .topic-row {
    gap: 6px;
  }
  .topic-chip {
    padding: 0 9px;
    font-size: 12px;
  }
  .topic-chip-icon {
    gap: 5px;
  }
  .topic-chip-icon svg {
    width: 14px;
    height: 14px;
  }
  .practice-note {
    padding: 16px 16px 0;
  }
  .message-list {
    padding: 22px 16px 0;
  }
  .message {
    gap: 8px;
  }
  .message-avatar {
    width: 28px;
    height: 30px;
    flex-basis: 28px;
    border-radius: 9px;
  }
  .message-body {
    max-width: calc(100% - 36px);
    padding: 12px;
  }
  .assessment-score {
    grid-template-columns: 1fr 36px;
  }
  .assessment-score .assessment-bar, .assessment-score em {
    grid-column: 1 / -1;
  }
  .assessment-weak-grid {
    grid-template-columns: 1fr;
  }
  .assessment-header {
    flex-wrap: wrap;
  }
  .composer-inner {
    width: calc(100% - 24px);
    padding-top: 8px;
  }
  .composer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
  }
  .composer textarea {
    grid-column: 1 / -1;
  }
  .icon-command {
    justify-self: start;
  }
  .composer-hint {
    font-size: 11px;
  }
  .composer-hint span {
    display: none;
  }
  .exam-controls {
    width: calc(100% - 24px);
    margin-top: 0;
    border-radius: 16px 16px 0 0;
  }
  .exam-controls .practice-toolbar {
    padding: 12px 16px;
  }
  .exam-controls .practice-context {
    width: 100%;
  }
  .exam-controls .session-actions {
    width: 100%;
    justify-content: space-between;
  }
  .exam-controls .part-picker {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .exam-controls .part-picker > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .exam-progress {
    padding: 10px 16px;
    font-size: 12px;
  }
  .exam-welcome {
    padding: 24px 20px;
  }
  .exam-welcome h2 {
    font-size: 23px;
  }
  .exam-error {
    align-items: flex-start;
  }
}

@media (max-height: 540px) and (min-width: 681px) {
  .practice-page {
    padding: 8px;
  }
  .app-shell .home-nav {
    padding-block: 8px;
  }
  .practice-intro {
    padding-block: 16px;
  }
  .exam-controls {
    margin-top: 0;
  }
  .exam-controls .practice-toolbar {
    padding: 8px 16px;
  }
  .exam-controls .part-picker > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .exam-progress {
    padding: 8px 16px;
  }
  .preparation-controls {
    flex-basis: auto;
    margin-left: auto;
  }
  .exam-page .composer-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    /* 入场/漂浮/光晕动画直接落到最终帧，不再播放。 */
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
  /* 分段转写与轮播追问改为完整静态内容。 */
  .mode-transcript p > span {
    opacity: 1;
    animation: none;
  }
  .followup-cycle span {
    opacity: 1;
    animation: none;
  }
  .followup-cycle span + span { display: none; }
  .mode-tag { animation: none; }
  /* After 卡叙事循环终帧是隐藏态，直接停用并静态显示；
     光束与流光点属于纯过程元素，静态时直接隐藏。 */
  .paper-after-slot { animation: none; opacity: 1; transform: none; }
  .paper-after-slot::after { animation: none; }
  .paper-beam-clip, .flow-dot { display: none; }
  .note-slot, .note-slot::after { animation: none; }
  .hero-accent { animation: none; }
}

/* 页面在后台标签页时暂停环境动画，回到前台恢复（配合 index.html 的 visibilitychange）。 */
html.anim-paused *, html.anim-paused *::before, html.anim-paused *::after {
  animation-play-state: paused !important;
}

/* 深色主题：与设置页同一套 zinc 中性色（#09090b/#111113/#18181b/#27272a），
   面板层级靠“越浮起越亮”表达，不用底色渐变，强调色只留少量低饱和蓝。 */
html.dark {
  color-scheme: dark;
  --ink: #e4e4e7;
  --ink-strong: #fafafa;
  --ink-muted: #a1a1aa;
  --ink-subtle: #71717a;
  --canvas: #09090b;
  --surface: #111113;
  --surface-soft: #18181b;
  --border: #26262a;
  --border-strong: #3f3f46;
  --primary: #fafafa;
  --primary-hover: #e4e4e7;
  --primary-soft: #27272a;
  --ai: #7fb0d0;
  --ai-soft: #171b21;
  --ai-border: #2d3540;
  --accent-sheen: #b7def4;
  --recording: #e0857c;
  --recording-soft: #26191a;
  --error: #e0857c;
  --sky: linear-gradient(180deg, #121215 0%, #0d0d0f 55%, #09090b 100%);
  --paper-shadow: 0 2px 5px rgb(0 0 0 / 22%), 0 16px 44px rgb(0 0 0 / 38%);
  color: var(--ink);
  background: var(--canvas);
}
html.dark a:focus-visible,
html.dark button:focus-visible,
html.dark select:focus-visible,
html.dark textarea:focus-visible,
html.dark .conversation:focus-visible {
  outline-color: #6b9cbf;
}
html.dark .home-links a:hover {
  background: rgb(255 255 255 / 7%);
}
html.dark .home-links a[aria-current="page"] {
  background: rgb(255 255 255 / 13%);
}
html.dark .hero-glows::before { opacity: .07; }
html.dark .hero-glows::after { opacity: .06; }
html.dark .hero-glow-c { opacity: .05; }
html.dark .home-links .nav-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px rgb(0 0 0 / 40%);
}
html.dark .brand-mark {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 9%);
}
html.dark .hero-copy,
html.dark .practice-intro > p {
  color: #a1a1aa;
}
html.dark .hero-button-secondary {
  background: var(--surface-soft);
}
html.dark .paper-envelope::before,
html.dark .paper-envelope::after {
  background: #18181b;
  box-shadow: 0 20px 42px rgb(0 0 0 / 42%);
}
html.dark .paper {
  background: rgb(24 24 27 / 96%);
  color: #a1a1aa;
  border-color: rgb(255 255 255 / 6%);
  box-shadow: 0 2px 6px rgb(0 0 0 / 25%), 0 18px 36px rgb(0 0 0 / 42%);
}
html.dark .paper::before {
  background: rgb(24 24 27 / 90%);
  box-shadow: 0 8px 22px rgb(0 0 0 / 36%);
}
html.dark .paper span {
  color: #8f8f97;
}
html.dark .paper-before p {
  color: rgb(161 161 170 / 58%);
}
html.dark .paper-after {
  border-color: rgb(64 168 154 / 32%);
  /* 深色下停用阴影呼吸（浅色调阴影在深色卡上不成立），只保留漂浮。 */
  animation:
    paper-after-in 700ms cubic-bezier(.22, 1, .36, 1) 720ms both,
    paper-after-float 7.5s ease-in-out 2350ms infinite alternate;
}
/* 深色下叙事元素与连接线的配色：光束提亮、高亮与光点换用更亮的蓝紫。 */
html.dark .paper-beam {
  background: linear-gradient(90deg, rgb(125 190 230 / 0%), rgb(125 190 230 / 90%) 45%, rgb(255 255 255 / 100%));
}
html.dark .paper-after-slot::after {
  background: radial-gradient(120% 90% at 50% 30%, rgb(255 255 255 / 18%) 0%, rgb(64 168 154 / 28%) 55%, rgb(64 168 154 / 0%) 100%);
}
html.dark .flow-path { stroke: rgb(168 156 224 / 34%); }
html.dark .flow-dot { fill: #a89ce0; }
html.dark .mode-feature:hover {
  box-shadow: 0 24px 56px rgb(0 0 0 / 48%);
}
html.dark .mode-paper-cue {
  box-shadow: 0 2px 6px rgb(0 0 0 / 24%), 0 16px 32px rgb(0 0 0 / 36%);
}
html.dark .mode-note-ai {
  box-shadow: 0 2px 6px rgb(0 0 0 / 24%), 0 16px 32px rgb(74 60 150 / 30%);
}
html.dark .mode-tag { animation-name: tag-glow-dark; }
@keyframes tag-glow-dark {
  0%, 32%, 100% { background-color: var(--primary-soft); border-color: var(--border); }
  10%, 20% { background-color: #32323a; border-color: #45454f; }
}
html.dark .mode-feature-scene::before { opacity: .07; }
html.dark .mode-feature-scene::after { opacity: .06; }
html.dark .mode-transcript {
  box-shadow: 0 2px 6px rgb(0 0 0 / 24%), 0 16px 32px rgb(0 0 0 / 36%);
}
html.dark .mode-listen {
  box-shadow: 0 2px 6px rgb(0 0 0 / 24%), 0 10px 24px rgb(0 0 0 / 32%);
}
html.dark .mode-listen:hover,
html.dark .mode-paper-cue:hover,
html.dark .mode-transcript:hover,
html.dark .mode-note-ai:hover {
  box-shadow: 0 4px 10px rgb(0 0 0 / 30%), 0 20px 38px rgb(0 0 0 / 42%);
}
html.dark .hero-button-primary:hover,
html.dark .hero-button-secondary:hover,
html.dark .mode-cta-button:hover {
  box-shadow: 0 10px 24px rgb(0 0 0 / 45%);
}
html.dark .paper-strip {
  border-color: rgb(255 255 255 / 14%);
}
html.dark .mode-note-ai {
  border-color: #2c2940;
  background: #1b1926;
}
html.dark .mode-note-ai strong {
  color: #a89ce0;
}
html.dark .app-shell {
  background: var(--surface);
}
html.dark .practice-workspace {
  border-color: var(--border);
  background: var(--surface);
}
/* 练习页的工作区本身透明，避免在平色底上浮出一块矩形边缘。 */
html.dark .talk-page .practice-workspace {
  border-color: transparent;
  background: transparent;
}
html.dark .message-user .message-body {
  border-color: #2a2a2f;
}
html.dark .message-error .message-body {
  border-color: #332022;
  background: #1f1516;
}
html.dark .assessment-card {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}
html.dark .assessment-weak-list {
  background: #18181b;
}
html.dark .assessment-score.is-good {
  --score-color: #4db98a;
}
html.dark .assessment-score.is-mid {
  --score-color: #d9a552;
}
html.dark .assessment-score.is-low {
  --score-color: #e0857c;
}
html.dark .recording-bar {
  border-color: #332022;
}
/* 浅色主按钮在深色页面上把文字换成深色，保持对比。 */
html.dark .hero-button-primary,
html.dark .home-links .nav-cta,
html.dark .mode-cta-button,
html.dark .message-user .message-avatar,
html.dark .topic-chip.is-active,
html.dark .exam-controls .secondary-button,
html.dark .talk-page .exam-controls .secondary-button,
html.dark .talk-page .composer:not(.text-mode) .icon-command,
html.dark .talk-page .composer.text-mode .send-button,
html.dark .talk-page .preparation-controls .secondary-button,
html.dark .modal-btn.is-primary,
html.dark .talk-page .topic-chip.is-active::after {
  color: #09090b;
}

/* 首页尾页：与英雄区同为圆角卡片，浅色用雾蓝画布，深色换成浮起的面板色。 */
.home-footer {
  margin: 8px 16px 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--canvas);
  box-shadow: var(--paper-shadow);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 48px;
  padding: 40px 48px 32px;
}
.footer-brand .home-brand {
  font-size: 15px;
}
.footer-tagline {
  max-width: 36ch;
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer-column h2 {
  margin: 0 0 4px;
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-column a {
  width: fit-content;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}
.footer-column a:hover {
  color: var(--ink);
  transform: translateX(2px);
}
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 48px 18px;
  border-top: 1px solid var(--border);
  color: var(--ink-subtle);
  font-size: 12.5px;
}
/* 底部寄语沿用题卡纸片的衬线字，与正文区分。 */
.footer-base-note {
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-style: italic;
}
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 32px 26px;
  }
}
@media (max-width: 680px) {
  .home-footer {
    margin: 8px 8px 14px;
    border-radius: 20px;
  }
  .footer-top {
    gap: 26px;
    padding: 26px 22px 22px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 22px 16px;
  }
}
html.dark .home-footer {
  background: var(--surface);
}
