/* 新用户引导：与首页同一套浅色天空底 + 白色纸质卡片。 */
#onboarding-root[hidden] { display: none; }

#onboarding-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  /* 复用首页 .home-hero 的 --sky 渐变与光晕语言 */
  background: linear-gradient(180deg, #8ab0d0 0%, #b5d5e5 320px, #f0f6f9 640px);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
/* 柔和光晕，对应首页 hero-glows */
#onboarding-root::before {
  content: "";
  position: absolute;
  top: 12%;
  left: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 92%) 0%, rgb(255 255 255 / 0%) 70%);
  filter: blur(46px);
  opacity: .5;
  pointer-events: none;
}
#onboarding-root::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(143 201 232 / 30%) 0%, rgb(143 201 232 / 0%) 70%);
  filter: blur(52px);
  opacity: .55;
  pointer-events: none;
}

.ob-pane {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px 34px 26px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 22px;
  background: rgb(255 255 255 / 93%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  box-shadow: 0 2px 6px rgb(39 74 98 / 6%), 0 12px 28px rgb(39 74 98 / 8%), 0 32px 68px rgb(39 74 98 / 11%);
  backdrop-filter: blur(10px);
}
.ob-pane.ob-anim { animation: ob-in 560ms cubic-bezier(.22, 1, .36, 1) both; }
#onboarding-root [data-ob-step] { display: block; }

@keyframes ob-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 阶段进度与阶段级跳过 */
.ob-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ob-phase-nav {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ob-phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-subtle);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.ob-phase.is-active { color: var(--ai); font-weight: 650; }
.ob-phase.is-complete { color: var(--ink-muted); }
.ob-phase-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.ob-phase.is-active .ob-phase-number,
.ob-phase.is-complete .ob-phase-number {
  border-color: var(--ai-border);
  background: var(--ai-soft);
  color: var(--ai);
}
.ob-phase-divider {
  width: clamp(20px, 8vw, 78px);
  height: 1px;
  background: var(--border);
}
.ob-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}
.ob-skip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-subtle);
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.ob-skip:hover {
  color: var(--ai);
  background: var(--surface-soft);
}

.ob-kicker {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ai);
}

.ob-title {
  margin: 0;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(27px, 3.4vw, 34px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--ink);
}
.ob-title-sm { font-size: clamp(21px, 2.6vw, 27px); }
.ob-copy {
  max-width: 470px;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #304f64;
}
.ob-question-title {
  margin: 28px 0 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink);
}

.ob-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ob-question-actions,
.ob-tour-actions { justify-content: space-between; }
.ob-btn-text {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.ob-btn-text:hover { background: var(--surface-soft); color: var(--ai); }

/* 主按钮 = 首页 .hero-button-primary */
.ob-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 14px rgb(23 44 60 / 12%);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.ob-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 24px rgb(23 44 60 / 18%);
  transform: translateY(-1px);
}
.ob-btn-primary:active { transform: translateY(0); }

/* 次按钮 = 首页 .hero-button-secondary */
.ob-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.ob-btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px rgb(23 44 60 / 10%);
}

/* 档案：白纸选项卡片 */
.ob-choices {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
}
.ob-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms cubic-bezier(.22, 1, .36, 1), box-shadow 150ms ease;
}
.ob-choice::after {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ob-choice:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgb(23 44 60 / 8%);
}
.ob-choice:hover::after { border-color: var(--ai); }
.ob-choice.is-active {
  border-color: var(--ai);
  background: var(--ai-soft);
}
.ob-choice.is-active::after {
  border-color: var(--ai);
  box-shadow: inset 0 0 0 4px var(--ai);
}

/* 功能导览：图标 + 对话示例 */
.ob-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ai);
}
.ob-feature-icon svg { width: 18px; height: 18px; }
.ob-feature-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--ai-border);
  background: linear-gradient(160deg, var(--ai-soft), #fff);
}
.ob-feature-icon-lg svg { width: 27px; height: 27px; }

/* 功能导览：左侧选择，右侧看简短示例 */
.ob-tour-layout {
  display: grid;
  grid-template-columns: minmax(170px, 205px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}
.ob-tour-nav {
  display: grid;
  gap: 6px;
  padding-right: 18px;
  border-right: 1px solid var(--border);
}
.ob-tour-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.ob-tour-link:hover { background: var(--surface-soft); color: var(--ink); }
.ob-tour-link.is-active { background: var(--ai-soft); color: var(--ai); }
.ob-tour-link-index {
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--ink-subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ob-tour-detail { min-width: 0; }
.ob-feature-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ob-feature-heading > div { min-width: 0; }
.ob-feature-heading .ob-kicker { margin-bottom: 6px; }
.ob-feature-heading .ob-copy { margin-top: 8px; }
.ob-feature-icon-lg {
  flex: 0 0 auto;
  margin: 0;
  box-shadow: none;
}
.ob-tour-actions { margin-top: 24px; }

@media (max-width: 560px) {
  #onboarding-root { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .ob-pane { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 20px 18px 18px; border-radius: 18px; }
  .ob-topbar { gap: 4px; }
  .ob-phase-nav { gap: 7px; }
  .ob-phase { gap: 5px; font-size: 11px; }
  .ob-phase-number { width: 22px; height: 22px; font-size: 9px; }
  .ob-phase-divider { width: 12px; }
  .ob-skip { min-height: 38px; padding: 0 7px; font-size: 11px; }
  .ob-stage-meta { margin: 18px 0; padding-bottom: 10px; }
  .ob-title { font-size: 25px; }
  .ob-title-sm { font-size: 21px; }
  .ob-question-title { margin-top: 22px; }
  .ob-choices { grid-template-columns: 1fr; gap: 8px; }
  .ob-choice { min-height: 46px; font-size: 14px; }
  .ob-tour-layout { grid-template-columns: 1fr; gap: 18px; }
  .ob-tour-nav {
    display: flex;
    gap: 6px;
    margin-right: -18px;
    padding: 0 18px 8px 0;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
  }
  .ob-tour-nav::-webkit-scrollbar { display: none; }
  .ob-tour-link { flex: 0 0 auto; width: auto; min-height: 40px; padding: 9px 10px; }
  .ob-feature-heading { gap: 12px; }
  .ob-feature-icon-lg { width: 44px; height: 44px; border-radius: 12px; }
  .ob-feature-icon-lg svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-pane.ob-anim { animation: none; }
  .ob-btn-primary:hover, .ob-choice:hover { transform: none; }
}

/* 深色主题：跟随首页的 zinc 中性色 */
html.dark #onboarding-root {
  background: linear-gradient(180deg, #09090b 0%, #111113 60%, #18181b 100%);
  color: var(--ink);
}
html.dark #onboarding-root::before,
html.dark #onboarding-root::after { opacity: .06; }
html.dark .ob-pane {
  background: #18181b;
  border-color: #27272a;
  box-shadow: 0 2px 6px rgb(0 0 0 / 40%), 0 20px 48px rgb(0 0 0 / 46%);
}
html.dark .ob-skip,
html.dark .ob-choice,
html.dark .ob-btn-ghost {
  background: #111113;
  border-color: #27272a;
  color: var(--ink);
}
html.dark .ob-skip:hover,
html.dark .ob-choice:hover,
html.dark .ob-btn-ghost:hover {
  background: #1f1f23;
  border-color: #3f3f46;
}
html.dark .ob-choice.is-active {
  background: #1b2430;
  border-color: var(--ai);
}
html.dark .ob-btn-primary {
  background: #fafafa;
  color: #09090b;
}
html.dark .ob-btn-primary:hover { background: #e4e4e7; }
html.dark .ob-copy { color: var(--ink-muted); }
html.dark .ob-skip { background: transparent; border-color: transparent; color: var(--ink-muted); }
html.dark .ob-skip:hover { background: #1f1f23; }
html.dark .ob-phase-number { border-color: #3f3f46; }
html.dark .ob-phase.is-active .ob-phase-number,
html.dark .ob-phase.is-complete .ob-phase-number { border-color: #334351; background: #1b2430; color: #a9c8dc; }
html.dark .ob-phase-divider,
html.dark .ob-stage-meta,
html.dark .ob-tour-nav { border-color: #27272a; }
html.dark .ob-tour-link.is-active { background: #1b2430; color: #b5d4e7; }
html.dark .ob-tour-link:hover,
html.dark .ob-btn-text:hover { background: #1f1f23; }
html.dark .ob-feature-icon-lg { background: #1b2430; border-color: #334351; color: #a9c8dc; }
/* 教学页：用一段小故事把三项练习串起来。 */
.ob-pane--tour { width: min(1000px, 100%); }
.ob-feature-demo { min-width: 0; margin-top: 22px; }
.ob-scene {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid #dce8ee;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f9fb, #eaf3f7);
  color: #193244;
}
.ob-scene [hidden] { display: none !important; }
.ob-scene-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #55758a;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.ob-scene-caption i,
.ob-story-bubble--reply > span i,
.ob-pron-status i,
.ob-exam-top i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78a9c4;
}
.ob-scene--talk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 18px;
  background:
    radial-gradient(ellipse at 92% 14%, rgb(194 220 234 / 42%), transparent 28%),
    linear-gradient(145deg, #f8fbfc, #eaf3f7);
}
.ob-scene-dolphin {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 92px;
  height: 54px;
  overflow: visible;
  fill: #6290b1;
  opacity: .2;
  animation: ob-dolphin-drift 4.6s ease-in-out infinite;
}
@keyframes ob-dolphin-drift {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50% { transform: translate(-4px, -3px) rotate(1deg); }
}
.ob-scene-dolphin circle { fill: #f8fbfc; }
.ob-story-bubble {
  position: relative;
  z-index: 1;
  width: min(82%, 440px);
  padding: 11px 15px 12px;
  border: 1px solid #dbe7ed;
  border-radius: 14px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 5px 16px rgb(45 79 101 / 5%);
}
.ob-story-bubble > span {
  display: block;
  margin-bottom: 5px;
  color: #7990a0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
}
.ob-story-bubble p {
  margin: 0;
  color: #233d4f;
  font-size: 13px;
  line-height: 1.5;
}
.ob-story-bubble--reply {
  align-self: flex-end;
  border-color: #cbdfe9;
  background: #f7fbfd;
}
.ob-story-bubble--reply > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #507b96;
}
.ob-story-current {
  position: relative;
  z-index: 0;
  width: 54%;
  height: 17px;
  margin: -7px 0 -7px 7%;
  overflow: visible;
}
.ob-story-current path,
.ob-exam-current path {
  fill: none;
  stroke: #9dc2d5;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 5 5;
}
.ob-demo-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 13px;
  border: 1px solid #cbdfe9;
  border-radius: 9px;
  background: rgb(255 255 255 / 78%);
  color: #315a73;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.ob-demo-button:hover { background: #fff; border-color: #9dbed0; transform: translateY(-1px); }
.ob-demo-button span { color: #6e9ab4; font-size: 15px; line-height: 1; }
.ob-demo-button:focus-visible,
.ob-pron-highlight:focus-visible { outline: 3px solid rgb(98 144 177 / 35%); outline-offset: 3px; }
.ob-story-bubble--reply:not([hidden]),
.ob-pron-hint:not([hidden]),
.ob-exam-outline:not([hidden]) { animation: ob-reveal .26s cubic-bezier(.2, .75, .3, 1) both; }
@keyframes ob-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ob-scene--pronunciation {
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(ellipse at 10% 100%, rgb(193 221 235 / 40%), transparent 38%),
    linear-gradient(140deg, #f7fafc, #edf5f8);
}
.ob-pron-card {
  width: min(100%, 500px);
  padding: 18px 21px 16px;
  border: 1px solid #dbe7ed;
  border-radius: 15px;
  background: rgb(255 255 255 / 91%);
  box-shadow: 0 10px 28px rgb(42 78 101 / 7%);
}
.ob-pron-card-head,
.ob-exam-top,
.ob-exam-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ob-pron-card-head { color: #587486; font-size: 11px; font-weight: 650; }
.ob-pron-status { display: inline-flex; align-items: center; gap: 6px; color: #7c929f; font-size: 10px; font-weight: 500; }
.ob-pron-status i { width: 6px; height: 6px; }
.ob-pron-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  margin: 10px 0 9px;
}
.ob-pron-wave i {
  width: 3px;
  height: var(--bar);
  max-height: 40px;
  border-radius: 99px;
  background: linear-gradient(180deg, #a6cedf, #6f9fba);
  transform-origin: center;
  animation: ob-wave 1.3s ease-in-out var(--delay) infinite alternate;
}
@keyframes ob-wave { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.ob-pron-sentence {
  margin: 0;
  color: #223d50;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 520;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.ob-pron-highlight {
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid #77a8c2;
  border-radius: 2px 2px 0 0;
  background: #e8f2f7;
  color: #315f7c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ob-pron-hint {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid #d5e6ee;
  border-radius: 9px;
  background: #f1f7fa;
  color: #43677e;
  font-size: 11px;
  line-height: 1.45;
}
.ob-pron-hint strong { color: #294f68; font-size: 12px; }
.ob-pron-instruction { display: block; margin-top: 13px; color: #8195a1; font-size: 10px; }

.ob-scene--exam {
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(ellipse at 85% 100%, rgb(194 220 234 / 42%), transparent 37%),
    linear-gradient(145deg, #f7fafc, #edf4f7);
}
.ob-exam-card {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  padding: 18px 20px 16px;
  border: 1px solid #dbe7ed;
  border-radius: 14px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 8px 24px rgb(42 78 101 / 7%);
}
.ob-exam-top { color: #577991; font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.ob-exam-top > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.ob-exam-top i { width: 6px; height: 6px; }
.ob-exam-top > span:last-child { padding: 5px 8px; border-radius: 5px; background: #edf4f7; color: #496d83; letter-spacing: .05em; }
.ob-exam-rule { height: 1px; margin: 13px 0 12px; background: #e4edf1; }
.ob-exam-meta { color: #8395a0; font-size: 10px; }
.ob-exam-timer { display: inline-flex; align-items: center; gap: 5px; color: #50738a; font-variant-numeric: tabular-nums; }
.ob-exam-timer svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.ob-exam-card h2 { max-width: 400px; margin: 14px 0 15px; color: #213c4f; font-size: clamp(17px, 2.2vw, 20px); font-weight: 620; line-height: 1.4; letter-spacing: -.015em; }
.ob-exam-outline { margin: 0 0 12px; padding: 11px 13px; border-left: 2px solid #83aec5; border-radius: 0 8px 8px 0; background: #f1f7fa; color: #587487; font-size: 10px; }
.ob-exam-outline ol { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 8px 0 0; padding-left: 17px; color: #36586e; font-size: 11px; }
.ob-demo-button--exam { min-height: 33px; margin-top: 0; }
.ob-exam-current { position: absolute; right: 0; bottom: 9px; left: 0; width: 100%; height: 35px; opacity: .46; }
.ob-exam-current path { stroke-width: 1; stroke-dasharray: 3 6; }

html.dark .ob-scene { border-color: #2a3a46; background: linear-gradient(145deg, #17212a, #1a2934); color: #e2edf3; }
html.dark .ob-scene--talk { background: radial-gradient(ellipse at 92% 14%, rgb(72 112 139 / 22%), transparent 29%), linear-gradient(145deg, #17212a, #1a2934); }
html.dark .ob-scene-caption { color: #a7c2d2; }
html.dark .ob-scene-caption i,
html.dark .ob-story-bubble--reply > span i,
html.dark .ob-pron-status i,
html.dark .ob-exam-top i { background: #81aec7; }
html.dark .ob-scene-dolphin { fill: #8bb4cc; opacity: .26; }
html.dark .ob-scene-dolphin circle { fill: #17212a; }
html.dark .ob-story-bubble { border-color: #30414d; background: #202d37; box-shadow: none; }
html.dark .ob-story-bubble > span { color: #9eb1bd; }
html.dark .ob-story-bubble p { color: #e1eaf0; }
html.dark .ob-story-bubble--reply { border-color: #3a5363; background: #1b2b36; }
html.dark .ob-story-bubble--reply > span { color: #a8cadd; }
html.dark .ob-story-current path,
html.dark .ob-exam-current path { stroke: #6f9bb6; }
html.dark .ob-demo-button { border-color: #3a5261; background: #202d37; color: #c0d9e7; }
html.dark .ob-demo-button:hover { border-color: #54758a; background: #263640; }
html.dark .ob-demo-button span { color: #9bc1d6; }
html.dark .ob-scene--pronunciation { background: radial-gradient(ellipse at 10% 100%, rgb(72 112 139 / 22%), transparent 38%), linear-gradient(140deg, #17212a, #1b2933); }
html.dark .ob-pron-card,
html.dark .ob-exam-card { border-color: #30414d; background: #202b34; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
html.dark .ob-pron-card-head,
html.dark .ob-exam-meta { color: #a9bdc9; }
html.dark .ob-pron-status { color: #94aab7; }
html.dark .ob-pron-sentence,
html.dark .ob-exam-card h2 { color: #e4edf2; }
html.dark .ob-pron-highlight { border-bottom-color: #7da9c2; background: #263b49; color: #c1dbea; }
html.dark .ob-pron-hint,
html.dark .ob-exam-outline { border-color: #344c5a; background: #1b2932; color: #b1c7d3; }
html.dark .ob-pron-hint strong,
html.dark .ob-exam-outline ol { color: #d2e2eb; }
html.dark .ob-pron-instruction { color: #94a9b6; }
html.dark .ob-exam-top { color: #a8c3d2; }
html.dark .ob-exam-top > span:last-child { background: #293944; color: #c4dae5; }
html.dark .ob-exam-rule { background: #34434d; }

@media (max-width: 560px) {
  .ob-pane--tour { padding: 18px 16px 16px; }
  .ob-feature-demo { margin-top: 18px; }
  .ob-scene { min-height: 238px; border-radius: 15px; }
  .ob-scene--talk { gap: 9px; padding: 17px 15px 15px; }
  .ob-scene-dolphin { top: 10px; right: 12px; width: 68px; height: 43px; }
  .ob-story-bubble { width: min(90%, 440px); padding: 10px 12px; }
  .ob-story-bubble p { font-size: 12px; }
  .ob-story-current { width: 62%; }
  .ob-demo-button { min-height: 36px; font-size: 11px; }
  .ob-scene--pronunciation,
  .ob-scene--exam { padding: 14px; }
  .ob-pron-card,
  .ob-exam-card { padding: 15px 14px 14px; }
  .ob-pron-wave { gap: 3px; }
  .ob-pron-wave i { width: 2px; }
  .ob-pron-hint { flex-wrap: wrap; gap: 4px 8px; }
  .ob-exam-outline ol { display: grid; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-story-bubble--reply:not([hidden]),
  .ob-pron-hint:not([hidden]),
  .ob-exam-outline:not([hidden]) { animation: none; }
  .ob-pron-wave i { animation: none; }
  .ob-scene-dolphin { animation: none; }
  .ob-demo-button:hover { transform: none; }
}

/* 插画式教学引导：三项核心功能 + 一条使用流程。 */
.ob-pane--tour {
  width: min(780px, 100%);
  padding-bottom: 24px;
}

.ob-tour-slide {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(320px, 1.28fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  min-height: 330px;
}

.ob-tour-copy {
  min-width: 0;
  padding-left: 6px;
}

.ob-tour-kicker {
  margin: 0 0 9px;
  color: #5f8ca8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
}

.ob-tour-copy .ob-copy {
  max-width: 310px;
  margin-top: 11px;
  line-height: 1.65;
}

.ob-tour-illustration {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 318px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 52% 50%, rgb(220 236 254 / 88%) 0%, rgb(237 246 250 / 62%) 56%, rgb(255 255 255 / 0%) 76%);
}

.ob-tour-illustration img {
  display: block;
  width: min(100%, 500px);
  height: auto;
  max-height: 318px;
  object-fit: contain;
}

.ob-feature-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 24px;
  margin: 4px 0 0;
}

.ob-feature-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ob-feature-dot span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #c4d7e2;
  transition: width 180ms ease, background 180ms ease;
}

.ob-feature-dot:hover span {
  background: #7da9c2;
}

.ob-feature-dot.is-active span {
  width: 22px;
  background: #386582;
}

.ob-feature-dot:focus-visible {
  outline: 3px solid rgb(98 144 177 / 30%);
  outline-offset: 2px;
  border-radius: 99px;
}

.ob-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(560px, 88%);
  margin: 15px auto 0;
}

.ob-journey::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: #d8e5ec;
}

.ob-journey-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #7d919d;
}

.ob-journey-step i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #d6e3ea;
  border-radius: 50%;
  background: #fff;
  color: #8196a3;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.ob-journey-step b {
  font-size: 11px;
  font-weight: 600;
}

.ob-journey-step.is-complete,
.ob-journey-step.is-current {
  color: #315d77;
}

.ob-journey-step.is-complete i {
  border-color: #b8d5e4;
  background: #edf6fa;
  color: #4f819e;
}

.ob-journey-step.is-current i {
  border-color: #386582;
  background: #386582;
  color: #fff;
  box-shadow: 0 0 0 4px rgb(56 101 130 / 9%);
}

.ob-tour-actions {
  margin-top: 20px;
}

html.dark .ob-tour-kicker {
  color: #9dc5dc;
}

html.dark .ob-tour-illustration {
  background: radial-gradient(circle at 52% 50%, #edf6fb 0%, #dcecf5 58%, rgb(220 236 245 / 0%) 78%);
}

html.dark .ob-feature-dot span {
  background: #3b4c57;
}

html.dark .ob-feature-dot:hover span,
html.dark .ob-feature-dot.is-active span {
  background: #9fc5da;
}

html.dark .ob-journey::before {
  background: #34454f;
}

html.dark .ob-journey-step {
  color: #8296a2;
}

html.dark .ob-journey-step i {
  border-color: #3b4c57;
  background: #202d36;
  color: #9fb2be;
}

html.dark .ob-journey-step.is-complete,
html.dark .ob-journey-step.is-current {
  color: #c3d9e5;
}

html.dark .ob-journey-step.is-complete i {
  border-color: #4b6a7d;
  background: #243844;
  color: #b8d4e3;
}

html.dark .ob-journey-step.is-current i {
  border-color: #9fc5da;
  background: #9fc5da;
  color: #172c3c;
}

@media (max-width: 560px) {
  .ob-pane--tour {
    padding: 18px 16px 16px;
  }

  .ob-pane--tour .ob-stage-meta {
    margin: 14px 0 10px;
  }

  .ob-tour-slide {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 0;
  }

  .ob-tour-copy {
    padding: 0 10px;
    text-align: center;
  }

  .ob-tour-copy .ob-copy {
    max-width: 330px;
    margin: 7px auto 0;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .ob-tour-kicker {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .ob-tour-illustration {
    min-height: 210px;
    border-radius: 22px;
  }

  .ob-tour-illustration img {
    width: min(100%, 390px);
    max-height: 250px;
  }

  .ob-feature-dots {
    margin-top: 0;
  }

  .ob-journey {
    width: 96%;
    margin-top: 8px;
  }

  .ob-journey-step {
    gap: 4px;
  }

  .ob-journey-step i {
    width: 26px;
    height: 26px;
  }

  .ob-journey-step b {
    font-size: 10px;
  }

  .ob-journey::before {
    top: 12px;
  }

  .ob-tour-actions {
    margin-top: 13px;
  }
}

@media (max-height: 700px) and (max-width: 560px) {
  .ob-tour-illustration {
    min-height: 170px;
  }

  .ob-tour-illustration img {
    max-height: 190px;
  }
}
/* 显式居中网格轨道，避免不同浏览器对隐式轨道的对齐差异。 */
#onboarding-root {
  place-content: center;
  grid-template-columns: minmax(0, 1fr);
}

.ob-tour-slide {
  grid-template-columns: minmax(290px, .9fr) minmax(280px, 1.1fr);
  gap: clamp(14px, 3vw, 28px);
}

.ob-tour-copy .ob-title {
  white-space: nowrap;
  font-size: clamp(24px, 2.6vw, 27px);
}

@media (max-width: 560px) {
  .ob-tour-slide {
    grid-template-columns: 1fr;
  }

  .ob-tour-copy .ob-title {
    white-space: normal;
  }
}

/* 建立练习档案：问题与实时档案在桌面端并排，避免传统问卷感。 */
.ob-pane--survey,
.ob-pane--summary {
  width: min(1060px, calc(100vw - 48px));
  padding: 28px 32px 30px;
}

.ob-pane--survey .ob-stage-meta,
.ob-pane--summary .ob-stage-meta {
  margin: 20px 0 24px;
}

.ob-survey-layout,
.ob-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
  gap: clamp(34px, 5vw, 58px);
  align-items: stretch;
}

.ob-survey-main,
.ob-summary-copy {
  min-width: 0;
  padding: 12px 2px 2px;
}

.ob-survey-kicker {
  margin: 0 0 8px;
  color: #5d8299;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
}

#onboarding-root .ob-survey-title {
  max-width: 540px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.17;
  letter-spacing: -.035em;
}

.ob-pane--survey .ob-question-title {
  margin-top: clamp(28px, 4.6vh, 42px);
  font-size: clamp(21px, 2vw, 24px);
  line-height: 1.3;
  letter-spacing: -.015em;
}

.ob-question-impact {
  max-width: 510px;
  min-height: 42px;
  margin: 7px 0 0;
  color: #5b7485;
  font-size: 13px;
  line-height: 1.6;
}

.ob-pane--survey .ob-choices {
  max-width: none;
  margin-top: 18px;
  gap: 10px;
}

.ob-pane--survey .ob-choice {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 14px;
  border-color: #dbe7ed;
  border-radius: 14px;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 1px 0 rgb(45 78 99 / 2%);
  transform: none;
}

.ob-pane--survey .ob-choice::after {
  display: none;
}

.ob-pane--survey .ob-choice span {
  display: block;
  color: #193244;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
}

.ob-pane--survey .ob-choice small {
  display: block;
  margin-top: 5px;
  color: #78909f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.ob-pane--survey .ob-choice:hover {
  border-color: #a9c7d7;
  background: #f8fbfd;
  box-shadow: 0 7px 18px rgb(43 79 102 / 7%);
  transform: translateY(-1px);
}

.ob-pane--survey .ob-choice.is-active {
  border-color: #5f8da9;
  background: #edf6fa;
  box-shadow: inset 0 0 0 1px rgb(95 141 169 / 18%), 0 7px 20px rgb(43 79 102 / 8%);
}

.ob-pane--survey .ob-choice.is-active::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #4f7e99;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.ob-pane--survey .ob-question-actions {
  margin-top: 14px;
}

.ob-profile-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px 24px 22px;
  border: 1px solid #d6e6ee;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 6%, rgb(211 233 244 / 68%), transparent 34%),
    linear-gradient(150deg, #f7fbfd 0%, #edf6fa 100%);
  box-shadow: 0 18px 42px rgb(39 74 98 / 9%);
}

.ob-profile-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(104 151 177 / 13%);
  border-radius: 50%;
  pointer-events: none;
}

.ob-profile-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.ob-profile-head span,
.ob-profile-recommendation > span {
  display: block;
  color: #7691a1;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
}

.ob-profile-head h3 {
  margin: 4px 0 0;
  color: #1d394b;
  font-size: 17px;
  font-weight: 680;
}

.ob-profile-head > strong {
  color: #496f86;
  font-size: 12px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.ob-profile-progress {
  position: relative;
  height: 4px;
  margin: 17px 0 18px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(112 153 176 / 14%);
}

.ob-profile-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ab8cf, #4d7c98);
  transition: width 240ms cubic-bezier(.22, 1, .36, 1);
}

.ob-profile-rows {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.ob-profile-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(118 153 173 / 16%);
}

.ob-profile-row span {
  color: #76909f;
  font-size: 11px;
}

.ob-profile-row strong {
  overflow: hidden;
  color: #a2b2bc;
  font-size: 12.5px;
  font-weight: 620;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-profile-row.is-filled strong {
  color: #24485e;
}

.ob-profile-recommendation {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px dashed #c8dce7;
  border-radius: 14px;
  background: rgb(255 255 255 / 40%);
}

.ob-profile-recommendation strong {
  display: block;
  margin-top: 5px;
  color: #8297a4;
  font-size: 14px;
  font-weight: 670;
}

.ob-profile-recommendation p {
  margin: 5px 0 0;
  color: #77909f;
  font-size: 11px;
  line-height: 1.5;
}

.ob-profile-recommendation.is-ready {
  border-style: solid;
  border-color: #bfd9e6;
  background: rgb(255 255 255 / 68%);
}

.ob-profile-recommendation.is-ready strong {
  color: #315f79;
}

.ob-profile-card.is-complete .ob-profile-head > div > span {
  color: #4c7d98;
}

.ob-summary-layout {
  align-items: center;
  min-height: 460px;
}

.ob-summary-copy {
  padding-left: 10px;
}

.ob-summary-check {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid #bad6e4;
  border-radius: 50%;
  background: #edf7fb;
  color: #4e809c;
  font-size: 18px;
  font-weight: 750;
}

.ob-summary-copy .ob-copy {
  max-width: 470px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.7;
}

.ob-summary-actions {
  margin-top: 28px;
}

html.dark .ob-pane--survey .ob-choice {
  border-color: #2f404b;
  background: #1b272f;
}

html.dark .ob-pane--survey .ob-choice span,
html.dark .ob-profile-head h3 {
  color: #e1edf3;
}

html.dark .ob-pane--survey .ob-choice small,
html.dark .ob-question-impact {
  color: #93a9b6;
}

html.dark .ob-pane--survey .ob-choice:hover,
html.dark .ob-pane--survey .ob-choice.is-active {
  border-color: #557b91;
  background: #223642;
}

html.dark .ob-profile-card {
  border-color: #30444f;
  background: radial-gradient(circle at 90% 6%, rgb(57 91 109 / 28%), transparent 34%), linear-gradient(150deg, #1c2932, #19252d);
  box-shadow: 0 18px 42px rgb(0 0 0 / 18%);
}

html.dark .ob-profile-row {
  border-color: rgb(126 161 181 / 13%);
}

html.dark .ob-profile-row.is-filled strong,
html.dark .ob-profile-recommendation.is-ready strong {
  color: #c2ddea;
}

html.dark .ob-profile-recommendation {
  border-color: #354c59;
  background: rgb(18 27 33 / 40%);
}

html.dark .ob-profile-recommendation.is-ready {
  border-color: #46677a;
  background: rgb(29 47 58 / 72%);
}

@media (max-width: 780px) {
  .ob-pane--survey,
  .ob-pane--summary {
    width: min(620px, calc(100vw - 24px));
    padding: 22px 20px 20px;
  }

  .ob-survey-layout,
  .ob-summary-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ob-survey-main,
  .ob-summary-copy {
    padding: 0;
  }

  #onboarding-root .ob-survey-title {
    font-size: clamp(27px, 8vw, 34px);
  }

  .ob-pane--survey .ob-question-title {
    margin-top: 25px;
    font-size: 20px;
  }

  .ob-profile-card {
    padding: 20px;
  }

  .ob-summary-layout {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .ob-pane--survey,
  .ob-pane--summary {
    padding: 18px 16px 17px;
  }

  .ob-pane--survey .ob-stage-meta,
  .ob-pane--summary .ob-stage-meta {
    margin: 14px 0 18px;
  }

  .ob-survey-kicker {
    font-size: 10.5px;
  }

  #onboarding-root .ob-survey-title {
    font-size: 27px;
  }

  .ob-question-impact {
    min-height: 0;
  }

  .ob-pane--survey .ob-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ob-pane--survey .ob-choice {
    flex-direction: column;
    min-height: 68px;
    padding: 10px 11px;
  }

  .ob-pane--survey .ob-choice span {
    padding-right: 18px;
    font-size: 13px;
  }

  .ob-pane--survey .ob-choice small {
    margin-top: 4px;
  }

  .ob-profile-card {
    padding: 17px;
    border-radius: 18px;
  }

  .ob-summary-check {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
  }

  .ob-summary-actions {
    align-items: stretch;
  }

  .ob-summary-actions .ob-btn-primary {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ob-profile-progress i {
    transition: none;
  }

  .ob-pane--survey .ob-choice:hover {
    transform: none;
  }
}

/* 档案卡组：左侧实时档案，右侧纵向问题层。 */
.ob-pane--survey { width: min(1160px, calc(100vw - 48px)); }
.ob-pane--survey .ob-stage-meta { margin-bottom: 16px; }

.ob-profile-builder {
  display: grid;
  grid-template-columns: minmax(270px, .35fr) minmax(0, .65fr);
  gap: clamp(34px, 4.5vw, 58px);
  align-items: center;
  min-height: 500px;
}

.ob-profile-rail { min-width: 0; padding: 4px 0; }
#onboarding-root .ob-profile-rail .ob-survey-title {
  max-width: 350px;
  font-size: clamp(30px, 2.8vw, 36px);
  line-height: 1.14;
}
.ob-profile-intro {
  max-width: 330px;
  margin: 11px 0 0;
  color: #6e8796;
  font-size: 12px;
  line-height: 1.6;
}
.ob-profile-rail .ob-profile-card {
  margin-top: 22px;
  padding: 19px 20px 17px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgb(39 74 98 / 7%);
}
.ob-profile-rail .ob-profile-progress { margin: 13px 0 10px; }
.ob-profile-rail .ob-profile-row { min-height: 31px; padding: 7px 0; }
.ob-profile-rail .ob-profile-recommendation { margin-top: 12px; padding: 12px 13px; }

.ob-question-stage {
  position: relative;
  min-width: 0;
  height: 500px;
  overflow: hidden;
  border: 1px solid #dce8ee;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgb(211 233 244 / 68%), transparent 32%),
    linear-gradient(150deg, rgb(247 251 253 / 92%), rgb(235 245 249 / 88%));
  perspective: 1100px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}
.ob-question-deck {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.ob-question-card {
  position: absolute;
  right: clamp(18px, 4vw, 40px);
  left: clamp(18px, 4vw, 40px);
  box-sizing: border-box;
  border: 1px solid rgb(211 227 235 / 92%);
  border-radius: 22px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 16px 38px rgb(42 77 99 / 10%);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: top 460ms cubic-bezier(.22, 1, .36, 1), bottom 460ms cubic-bezier(.22, 1, .36, 1), transform 460ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease, filter 460ms ease;
}
.ob-question-card--active {
  top: 50%;
  z-index: 3;
  padding: 27px 28px 22px;
  transform: translateY(-50%) translateZ(0);
}
.ob-question-card--prev,
.ob-question-card--next {
  z-index: 1;
  min-height: 92px;
  padding: 19px 24px;
  opacity: .33;
  filter: saturate(.65) blur(1px);
  box-shadow: 0 9px 26px rgb(42 77 99 / 5%);
}
.ob-question-card--prev { top: 14px; transform: rotateX(-7deg) scale(.92) translateZ(-70px); }
.ob-question-card--next { bottom: 14px; transform: rotateX(7deg) scale(.92) translateZ(-70px); }
.ob-question-preview span,
.ob-card-index {
  display: block;
  color: #7893a3;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em;
}
.ob-question-preview strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #31566d;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-question-card--active .ob-question-title {
  margin-top: 10px;
  font-size: clamp(21px, 2vw, 25px);
}
.ob-question-card--active .ob-question-impact { min-height: 0; }
.ob-question-card--active .ob-choices { margin-top: 16px; }

.ob-deck-advance .ob-question-card--active {
  opacity: .05;
  filter: saturate(.5) blur(2px);
  transform: translateY(calc(-50% - 180px)) rotateX(-7deg) scale(.92) translateZ(-70px);
}
.ob-deck-advance .ob-question-card--next {
  top: 50%;
  bottom: auto;
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translateY(-50%) rotateX(0) scale(1) translateZ(0);
}
.ob-deck-retreat .ob-question-card--active {
  opacity: .05;
  filter: saturate(.5) blur(2px);
  transform: translateY(calc(-50% + 180px)) rotateX(7deg) scale(.92) translateZ(-70px);
}
.ob-deck-retreat .ob-question-card--prev {
  top: 50%;
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translateY(-50%) rotateX(0) scale(1) translateZ(0);
}

/* 教学 Coverflow：三项功能同时在场，中心清晰、两侧柔焦。 */
.ob-pane--tour {
  width: min(1080px, calc(100vw - 48px));
  padding-bottom: 22px;
}
.ob-pane--tour .ob-stage-meta { margin-bottom: 8px; }
.ob-coverflow {
  position: relative;
  height: 304px;
  margin: 0 -8px;
  overflow: hidden;
  border-radius: 26px;
  perspective: 1200px;
  touch-action: pan-y;
}
.ob-coverflow:focus-visible { outline: 3px solid rgb(80 126 153 / 24%); outline-offset: 3px; }
.ob-coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.ob-coverflow-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(470px, 48vw);
  height: 276px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dbe8ee;
  border-radius: 25px;
  background: radial-gradient(circle at 50% 48%, rgb(219 236 247 / 92%), rgb(244 249 251 / 94%) 66%, #fff 100%);
  box-shadow: 0 18px 44px rgb(39 74 98 / 11%);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1), opacity 360ms ease, filter 460ms ease, box-shadow 460ms ease;
}
.ob-coverflow-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.ob-coverflow-card > span {
  position: absolute;
  top: 15px;
  left: 17px;
  padding: 6px 9px;
  border: 1px solid rgb(200 221 232 / 80%);
  border-radius: 99px;
  background: rgb(255 255 255 / 76%);
  color: #557a90;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
}
.ob-coverflow-card.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate3d(-50%, -50%, 0) rotateY(0) scale(1);
  box-shadow: 0 22px 48px rgb(39 74 98 / 14%);
}
.ob-coverflow-card.is-prev {
  z-index: 1;
  opacity: .42;
  filter: saturate(.55) grayscale(.2) blur(1px);
  transform: translate3d(calc(-50% - clamp(270px, 27vw, 340px)), -50%, -90px) rotateY(7deg) scale(.88);
}
.ob-coverflow-card.is-next {
  z-index: 2;
  opacity: .42;
  filter: saturate(.55) grayscale(.2) blur(1px);
  transform: translate3d(calc(-50% + clamp(270px, 27vw, 340px)), -50%, -90px) rotateY(-7deg) scale(.88);
}
.ob-coverflow-card:hover:not(.is-active) { opacity: .56; }
.ob-coverflow-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid #d8e6ed;
  border-radius: 50%;
  background: rgb(255 255 255 / 86%);
  color: #486f86;
  font: 400 25px/1 Georgia, serif;
  box-shadow: 0 7px 20px rgb(39 74 98 / 9%);
  cursor: pointer;
  transform: translateY(-50%);
}
.ob-coverflow-arrow--prev { left: 12px; }
.ob-coverflow-arrow--next { right: 12px; }
.ob-coverflow-detail {
  display: grid;
  justify-items: center;
  max-width: 620px;
  margin: 10px auto 0;
  text-align: center;
}
.ob-coverflow-detail .ob-copy { margin-top: 6px; }
.ob-coverflow-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}
.ob-coverflow-segment {
  display: grid;
  place-items: center;
  width: 58px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ob-coverflow-segment i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: #cfdee6;
  transition: background 180ms ease, height 180ms ease;
}
.ob-coverflow-segment.is-active i { height: 3px; background: #3d6982; }
.ob-pane--tour .ob-journey { margin-top: 13px; }
.ob-pane--tour .ob-tour-actions { margin-top: 12px; }

html.dark .ob-question-stage,
html.dark .ob-question-card,
html.dark .ob-coverflow-card { border-color: #30444f; background: #1b2831; }
html.dark .ob-question-preview strong { color: #b7d3e1; }
html.dark .ob-coverflow-card > span { border-color: #3c5665; background: rgb(22 34 42 / 78%); color: #b7d3e1; }
html.dark .ob-coverflow-arrow { border-color: #354b57; background: #202f38; color: #bed8e5; }

@media (max-width: 780px) {
  .ob-pane--survey,
  .ob-pane--tour { width: min(620px, calc(100vw - 24px)); }
  .ob-profile-builder { grid-template-columns: 1fr; gap: 24px; }
  .ob-profile-rail { padding: 0; }
  .ob-profile-rail .ob-profile-card { margin-top: 17px; }
  .ob-question-stage { height: 480px; }
  .ob-coverflow-card { width: min(430px, 72vw); }
  .ob-coverflow-card.is-prev { transform: translate3d(calc(-50% - 245px), -50%, -60px) rotateY(5deg) scale(.9); }
  .ob-coverflow-card.is-next { transform: translate3d(calc(-50% + 245px), -50%, -60px) rotateY(-5deg) scale(.9); }
}

@media (max-width: 560px) {
  .ob-profile-builder { gap: 18px; }
  #onboarding-root .ob-profile-rail .ob-survey-title { max-width: none; font-size: 27px; }
  .ob-profile-intro { margin-top: 7px; }
  .ob-profile-rail .ob-profile-card { padding: 15px; }
  .ob-profile-rail .ob-profile-row { min-height: 27px; padding: 5px 0; }
  .ob-profile-rail .ob-profile-recommendation p { display: none; }
  .ob-question-stage { height: 450px; border-radius: 22px; perspective: none; }
  .ob-question-card { right: 10px; left: 10px; border-radius: 18px; }
  .ob-question-card--active { padding: 22px 16px 17px; }
  .ob-question-card--prev,
  .ob-question-card--next { min-height: 70px; padding: 13px 17px; filter: none; transform: scale(.96); }
  .ob-question-card--prev { top: 8px; }
  .ob-question-card--next { bottom: 8px; }
  .ob-question-card--active .ob-question-title { font-size: 20px; }
  .ob-deck-advance .ob-question-card--active { transform: translateY(calc(-50% - 145px)) scale(.95); }
  .ob-deck-retreat .ob-question-card--active { transform: translateY(calc(-50% + 145px)) scale(.95); }
  .ob-coverflow { height: 235px; margin: 0 -16px; border-radius: 0; perspective: none; }
  .ob-coverflow-card { width: min(300px, 78vw); height: 218px; border-radius: 20px; }
  .ob-coverflow-card.is-prev { transform: translate3d(calc(-50% - 205px), -50%, 0) scale(.9); }
  .ob-coverflow-card.is-next { transform: translate3d(calc(-50% + 205px), -50%, 0) scale(.9); }
  .ob-coverflow-arrow { width: 33px; height: 33px; font-size: 21px; }
  .ob-coverflow-arrow--prev { left: 10px; }
  .ob-coverflow-arrow--next { right: 10px; }
  .ob-coverflow-detail { margin-top: 7px; }
  .ob-coverflow-detail .ob-title-sm { font-size: 22px; }
  .ob-coverflow-detail .ob-copy { max-width: 320px; font-size: 12px; }
  .ob-coverflow-segment { width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-question-card,
  .ob-coverflow-card,
  .ob-coverflow-segment i { transition-duration: 1ms; }
  .ob-question-card--prev,
  .ob-question-card--next,
  .ob-coverflow-card.is-prev,
  .ob-coverflow-card.is-next { filter: none; }
}
