/* ================================================================
   Onomeo 新用户问卷 — Onboarding Survey
   - 默认值 = 卡通风（童书绘本气质：浅、快、活、亲和）
   - 金箔风的差异化覆盖见 luxe.css 末尾 "ONBOARDING — LUXE OVERRIDES"
   - 所有差异化参数走 CSS 变量，方便未来加第三套主题
   注：禁 emoji / 卡片不要 border / 字号最小 13px
   ================================================================ */

:root {
  /* ===== 差异化变量（卡通默认） ===== */
  --ob-overlay-bg:      rgba(255, 255, 255, 0.55);
  --ob-overlay-blur:    24px;
  --ob-scrim-bg:        radial-gradient(ellipse 120% 80% at 50% 30%, #fff8ee 0%, #f4ecda 100%);
  --ob-scrim-noise:     0.02;
  --ob-orb-opacity:     0;

  --ob-card-bg:         #ffffff;
  --ob-card-shadow:     0 18px 60px -20px rgba(70, 72, 212, 0.18),
                        0 6px 22px -10px rgba(0, 0, 0, 0.08);
  --ob-card-radius:     24px;

  --ob-ink:             #1a1c1c;
  --ob-ink-soft:        rgba(26, 28, 28, 0.6);
  --ob-accent:          #4648d4;
  --ob-accent-2:        #fea619;
  --ob-accent-soft:     rgba(70, 72, 212, 0.1);
  --ob-selected-bg:     #4648d4;
  --ob-selected-ink:    #ffffff;

  --ob-option-bg:       #fbf5e8;
  --ob-option-hover:    #f4ecda;
  --ob-option-shadow:   0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --ob-option-shadow-h: 0 8px 24px -6px rgba(70, 72, 212, 0.18);

  --ob-dot-pending:     rgba(26, 28, 28, 0.15);
  --ob-dot-done:        #4648d4;

  --ob-progress-track:  rgba(70, 72, 212, 0.12);
  --ob-progress-fill:   linear-gradient(90deg, #4648d4 0%, #6063ee 100%);
  --ob-progress-shine:  rgba(255, 255, 255, 0.5);

  /* 字体 / 字重 */
  --ob-title-font:      'Fredoka', 'Nunito', system-ui, sans-serif;
  --ob-title-weight:    500;
  --ob-title-tracking:  0;
  --ob-body-font:       'Nunito', 'Noto Sans SC', system-ui, sans-serif;

  /* 缓动 / 时长 */
  --ob-dur-scale:       1;
  --ob-stagger:         80ms;
  --ob-overshoot:       1.02;

  --ob-ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --ob-ease-in:         cubic-bezier(0.7, 0, 0.84, 0);
  --ob-ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);

  /* 完成动画 */
  --ob-confetti-count:  18;
  --ob-confetti-c1:     #ff9600;
  --ob-confetti-c2:     #58cc02;
  --ob-confetti-c3:     #1cb0f6;
  --ob-confetti-c4:     #ffc800;
  --ob-confetti-gravity: 0.42;
  --ob-confetti-rspeed:  1;
}

/* ================ 全屏 overlay ================ */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* 用 dvh 适配 iOS Safari 键盘弹起时浏览器工具栏收缩，旧浏览器降级到 vh */
  height: 100vh;
  height: 100dvh;
  background: var(--ob-scrim-bg);
  backdrop-filter: blur(var(--ob-overlay-blur));
  -webkit-backdrop-filter: blur(var(--ob-overlay-blur));
  font-family: var(--ob-body-font);
  color: var(--ob-ink);
  overflow: hidden;
  opacity: 0;
  transition: opacity 320ms var(--ob-ease-out);
  /* 数字一律等宽，进度数字/时长格子不会"跳来跳去" */
  font-variant-numeric: tabular-nums;
}
/* profile 学习偏好的数字也走等宽 */
.pf-pref-v { font-variant-numeric: tabular-nums; }
.ob-overlay.is-mounted { opacity: 1; }
.ob-overlay.is-leaving { opacity: 0; transition-duration: calc(480ms * var(--ob-dur-scale)); }

/* 噪点纹理 + 漂浮光斑 */
.ob-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  opacity: var(--ob-scrim-noise);
  mix-blend-mode: overlay;
}
.ob-overlay::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 211, 122, var(--ob-orb-opacity)) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(245, 196, 90, calc(var(--ob-orb-opacity) * 0.8)) 0%, transparent 32%);
  filter: blur(60px);
  animation: ob-orb-drift 30s ease-in-out infinite;
}
@keyframes ob-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(3%, -2%); }
}

/* ================ 顶部进度条 ================ */
.ob-progress {
  position: relative;
  height: 3px;
  margin: 0;
  background: var(--ob-progress-track);
  overflow: hidden;
}
.ob-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ob-progress-fill);
  transition: width calc(480ms * var(--ob-dur-scale)) var(--ob-ease-out);
  position: relative;
}
.ob-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--ob-progress-shine) 50%, transparent 100%);
  animation: ob-shine 2s linear infinite;
}
@keyframes ob-shine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ================ 跳过链接 ================ */
.ob-skip {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  background: transparent;
  border: 0;
  color: var(--ob-ink-soft);
  font-size: 13px;
  font-family: var(--ob-body-font);
  font-weight: 500;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 200ms var(--ob-ease-out);
}
.ob-skip:hover { opacity: 1; }

/* ================ 中央舞台 ================ */
.ob-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  overflow: hidden;
}

.ob-card {
  position: absolute;
  width: min(640px, 92%);
  background: var(--ob-card-bg);
  border-radius: var(--ob-card-radius);
  padding: 56px 48px 48px;
  box-shadow: var(--ob-card-shadow);
  opacity: 0;
  transform: translateX(48px) scale(0.96);
  pointer-events: none;
  transition:
    opacity calc(380ms * var(--ob-dur-scale)) var(--ob-ease-emphasized),
    transform calc(380ms * var(--ob-dur-scale)) var(--ob-ease-emphasized);
}
.ob-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  position: relative;
}
.ob-card.is-leaving-left {
  opacity: 0;
  transform: translateX(-48px) scale(0.96);
  transition-duration: calc(320ms * var(--ob-dur-scale));
  transition-timing-function: var(--ob-ease-in);
}
.ob-card.is-leaving-right {
  opacity: 0;
  transform: translateX(48px) scale(0.96);
  transition-duration: calc(320ms * var(--ob-dur-scale));
  transition-timing-function: var(--ob-ease-in);
}

/* 题目标题 + 副标题 */
.ob-title {
  margin: 0 0 12px;
  font-family: var(--ob-title-font);
  font-weight: var(--ob-title-weight);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: var(--ob-title-tracking);
  color: var(--ob-ink);
}
.ob-sub {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--ob-ink-soft);
  line-height: 1.5;
}

/* 选项进场用 stagger，由 JS 设置 --i 索引 */
.ob-card.is-active .ob-title,
.ob-card.is-active .ob-sub,
.ob-card.is-active .ob-option,
.ob-card.is-active .ob-input-wrap,
.ob-card.is-active .ob-minutes {
  animation: ob-rise calc(360ms * var(--ob-dur-scale)) var(--ob-ease-out) backwards;
}
.ob-card.is-active .ob-title { animation-delay: 0ms; }
.ob-card.is-active .ob-sub   { animation-delay: 120ms; }
.ob-card.is-active .ob-option,
.ob-card.is-active .ob-input-wrap,
.ob-card.is-active .ob-minutes {
  animation-delay: calc(240ms + var(--ob-stagger) * var(--i, 0));
}

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

/* ================ 输入框（第 1 题：昵称） ================ */
.ob-input-wrap { position: relative; }
.ob-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 18px;
  font-family: var(--ob-body-font);
  background: var(--ob-option-bg);
  color: var(--ob-ink);
  border: 0;
  border-radius: 14px;
  outline: 0;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 200ms var(--ob-ease-out), background 200ms;
}
.ob-input:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--ob-accent),
              0 0 0 4px var(--ob-accent-soft);
}

/* ================ 选项卡片 ================ */
.ob-options {
  display: grid;
  gap: 10px;
}
.ob-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ob-option-bg);
  color: var(--ob-ink);
  border: 0;
  border-radius: 14px;
  font-family: var(--ob-body-font);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--ob-option-shadow);
  transition:
    transform 180ms var(--ob-ease-out),
    background 200ms,
    box-shadow 200ms,
    color 200ms;
  overflow: hidden;
}
.ob-option:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--ob-option-hover);
  box-shadow: var(--ob-option-shadow-h);
}
.ob-option:active {
  transform: scale(0.98);
}
.ob-option.is-selected {
  background: var(--ob-selected-bg);
  color: var(--ob-selected-ink);
  transform: scale(var(--ob-overshoot));
}
.ob-option-kbd {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ob-ink-soft);
  border-radius: 6px;
  font-family: var(--ob-body-font);
  transition: background 200ms, color 200ms;
}
.ob-option.is-selected .ob-option-kbd {
  background: rgba(255, 255, 255, 0.22);
  color: var(--ob-selected-ink);
}
.ob-option-body { flex: 1; }
.ob-option-title { display: block; font-size: 15px; font-weight: 700; }
.ob-option-desc  { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; opacity: 0.7; }
.ob-option-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms, transform 280ms var(--ob-ease-out);
}
.ob-option.is-selected .ob-option-check {
  opacity: 1;
  transform: scale(1);
}
.ob-option-check path {
  stroke: var(--ob-selected-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 320ms var(--ob-ease-out) 80ms;
}
.ob-option.is-selected .ob-option-check path { stroke-dashoffset: 0; }

/* 涟漪 */
.ob-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
  transform: scale(0);
  pointer-events: none;
  animation: ob-ripple 600ms var(--ob-ease-out) forwards;
}
@keyframes ob-ripple {
  to { transform: scale(1.5); opacity: 0; }
}

/* ================ 分钟滑块（第 4 题） ================ */
.ob-minutes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ob-minutes .ob-option {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 10px;
  gap: 4px;
}
.ob-minutes .ob-option-title { font-size: 22px; font-weight: 800; }
.ob-minutes .ob-option-desc  { font-size: 12px; }

/* ================ 底部脚条 ================ */
.ob-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 32px 28px;
  gap: 16px;
}
.ob-back, .ob-next {
  font-family: var(--ob-title-font);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 12px;
  transition:
    transform 180ms var(--ob-ease-out),
    background 200ms,
    box-shadow 200ms,
    opacity 200ms;
}
.ob-back {
  justify-self: start;
  background: transparent;
  color: var(--ob-ink-soft);
}
.ob-back:hover { color: var(--ob-ink); }
.ob-back[hidden] { visibility: hidden; }

.ob-next {
  justify-self: end;
  background: var(--ob-accent);
  color: var(--ob-selected-ink);
  box-shadow: 0 6px 18px -4px rgba(70, 72, 212, 0.45);
}
.ob-next:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -6px rgba(70, 72, 212, 0.55);
}
.ob-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* 进度小圆点 */
.ob-dots {
  display: flex;
  gap: 8px;
  justify-self: center;
}
.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ob-dot-pending);
  transition: background 280ms var(--ob-ease-out), transform 280ms var(--ob-ease-out);
}
.ob-dot.is-done { background: var(--ob-dot-done); }
.ob-dot.is-active {
  background: var(--ob-dot-done);
  transform: scale(1.4);
  animation: ob-dot-pulse 2s ease-in-out infinite;
}
@keyframes ob-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--ob-accent-soft); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

/* ================ 完成动画：金缝裂纹（金箔默认） ================ */
.ob-crack {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
  display: block;
  width: 100%;
  height: 100%;
}
.ob-crack path {
  fill: none;
  stroke: var(--ob-accent, #E6B450);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--ob-accent, #E6B450));
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: ob-crack-draw 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ob-crack-draw {
  to { stroke-dashoffset: 0; }
}
.ob-crack-core {
  fill: var(--ob-accent, #E6B450);
  transform-origin: 300px 200px;
  animation: ob-crack-pulse 1400ms ease-out forwards;
}
@keyframes ob-crack-pulse {
  0%   { transform: scale(0); opacity: 1; filter: drop-shadow(0 0 0 var(--ob-accent, #E6B450)); }
  20%  { transform: scale(1.8); opacity: 1; filter: drop-shadow(0 0 16px var(--ob-accent, #E6B450)); }
  100% { transform: scale(0.6); opacity: 0; }
}

/* ================ 完成动画：贴纸蹦出（卡通） ================ */
.ob-medal {
  position: fixed;
  top: 28%;
  left: 50%;
  display: block;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  pointer-events: none;
  z-index: 10001;
  /* CSS filter 替代 SVG <filter>，避免某些渲染上下文丢失 */
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
  transform: scale(0) rotate(-12deg);
  transform-origin: 50% 50%;
  /* 节奏：0-700ms 弹入 → 700-1200ms hold（让用户看清）→ 1200-1700ms 淡出
     欢迎卡在 1680ms 浮现，刚好和勋章 fade 同步 */
  animation:
    ob-medal-bounce 700ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    ob-medal-fade   500ms ease-in 1200ms forwards;
}
@keyframes ob-medal-bounce {
  0%   { transform: scale(0) rotate(-12deg); }
  60%  { transform: scale(1.15) rotate(6deg); }
  78%  { transform: scale(0.92) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes ob-medal-fade { to { opacity: 0; } }
.ob-medal text { user-select: none; pointer-events: none; }

/* ================ 完成动画：慢绽金印 + 金粉（金箔主题） ================
   节奏：0-500ms 印章浮现 → 500-1440ms hold（金粉错落上飘）→ 1440-2000ms 淡出
   欢迎卡在 1920ms 浮现，刚好和金印 fade 同步 */
.ob-seal {
  position: fixed;
  top: 32%;
  left: 50%;
  width: 260px;
  height: 260px;
  margin-left: -130px;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  filter: drop-shadow(0 0 18px rgba(230, 180, 80, 0.45));
  animation: ob-seal-bloom 2000ms ease-out forwards;
}
@keyframes ob-seal-bloom {
  0%   { transform: scale(0.7);  opacity: 0; }
  25%  { transform: scale(1.04); opacity: 1; }
  35%  { transform: scale(1);    opacity: 1; }
  72%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1.02); opacity: 0; }
}
.ob-seal text { user-select: none; pointer-events: none; }
.ob-seal-mote {
  position: fixed;
  bottom: 40%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #E6B450;
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px #E6B450);
  animation: ob-seal-mote-rise 1700ms ease-out forwards;
  animation-delay: var(--mote-delay, 0ms);
}
@keyframes ob-seal-mote-rise {
  0%   { transform: translate(var(--mote-x, 0), 0);      opacity: 0; }
  20%  { transform: translate(var(--mote-x, 0), -30px);  opacity: 1; }
  70%  { transform: translate(var(--mote-x, 0), -200px); opacity: 1; }
  100% { transform: translate(var(--mote-x, 0), -300px); opacity: 0; }
}

/* prefers-reduced-motion：所有特效降级为简单淡入 */
@media (prefers-reduced-motion: reduce) {
  .ob-crack path { animation: none; stroke-dashoffset: 0; }
  .ob-crack-core { animation: none; opacity: 0; }
  .ob-medal { animation: none; transform: scale(1) rotate(0); opacity: 1; }
  .ob-seal  { animation: none; transform: scale(1); opacity: 1; }
  .ob-seal-mote { display: none; }
}
.ob-finish {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10000;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ob-ease-out);
}
.ob-finish.is-on { opacity: 1; pointer-events: auto; }
.ob-finish-inner { max-width: 480px; padding: 0 24px; }
.ob-finish-hello {
  font-family: var(--ob-title-font);
  font-weight: var(--ob-title-weight);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: var(--ob-title-tracking);
  color: var(--ob-ink);
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms var(--ob-ease-out) 600ms, transform 480ms var(--ob-ease-out) 600ms;
}
.ob-finish.is-on .ob-finish-hello { opacity: 1; transform: translateY(0); }
.ob-finish-sub {
  font-size: 15px;
  color: var(--ob-ink-soft);
  margin: 0 0 32px;
  opacity: 0;
  transition: opacity 360ms var(--ob-ease-out) 1100ms;
}
.ob-finish.is-on .ob-finish-sub { opacity: 1; }
.ob-finish-cta {
  font-family: var(--ob-title-font);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: var(--ob-accent);
  color: var(--ob-selected-ink);
  box-shadow: 0 8px 24px -4px rgba(70, 72, 212, 0.5);
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 320ms var(--ob-ease-out) 1300ms,
    transform 320ms var(--ob-ease-out) 1300ms;
  animation: ob-cta-breathe 2.4s ease-in-out infinite 1.6s;
}
.ob-finish.is-on .ob-finish-cta { opacity: 1; transform: scale(1); }
@keyframes ob-cta-breathe {
  0%, 100% { box-shadow: 0 8px 24px -4px rgba(70, 72, 212, 0.5); }
  50%      { box-shadow: 0 12px 38px -2px rgba(70, 72, 212, 0.75); }
}

/* ================ 蒙层晃动（用户点了禁用区） ================ */
.ob-overlay.is-shake {
  animation: ob-shake 280ms ease-in-out;
}
@keyframes ob-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

/* ================ 减动效降级 ================ */
@media (prefers-reduced-motion: reduce) {
  .ob-overlay, .ob-card, .ob-title, .ob-sub, .ob-option, .ob-input-wrap,
  .ob-minutes, .ob-finish-hello, .ob-finish-sub, .ob-finish-cta {
    animation: none !important;
    transition: opacity 160ms ease !important;
  }
  .ob-overlay::after { display: none; }
  .ob-progress-fill::after { display: none; }
}

/* ================ 跳过确认气泡 ================ */
.ob-skip-pop {
  position: absolute;
  top: 50px;
  right: 22px;
  z-index: 3;
  width: min(320px, calc(100% - 44px));
  background: var(--ob-card-bg);
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: var(--ob-card-shadow);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 200ms var(--ob-ease-out),
    transform 220ms var(--ob-ease-out);
}
.ob-skip-pop.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ob-skip-pop-title {
  margin: 0 0 6px;
  font-family: var(--ob-title-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--ob-ink);
}
.ob-skip-pop-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ob-ink-soft);
  line-height: 1.5;
}
.ob-skip-pop-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.ob-skip-pop-cancel, .ob-skip-pop-ok {
  font-family: var(--ob-body-font);
  font-weight: 600;
  font-size: 13px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 180ms, color 180ms, transform 120ms;
}
.ob-skip-pop-cancel {
  background: transparent;
  color: var(--ob-ink-soft);
}
.ob-skip-pop-cancel:hover {
  background: var(--ob-option-bg);
  color: var(--ob-ink);
}
.ob-skip-pop-ok {
  background: var(--ob-accent);
  color: var(--ob-selected-ink);
}
.ob-skip-pop-ok:hover:not(:disabled) { transform: translateY(-1px); }
.ob-skip-pop-ok:disabled { opacity: 0.5; cursor: wait; }

/* ================ 移动端 ================ */
@media (max-width: 640px) {
  .ob-card { padding: 40px 24px 28px; }
  .ob-foot { padding: 16px 18px 22px; }
  .ob-minutes { grid-template-columns: repeat(2, 1fr); }
  .ob-skip-pop { top: 46px; right: 14px; }
}

/* ================================================================
   首页"为你推荐"模块（消费 onboarding.goals 推算的主题）
   两套主题共用结构，配色用现有 token 而非 --ob-*
   ================================================================ */
.scene-pick {
  margin: 18px 0 4px;
  padding: 14px 16px;
  background: var(--panel, #ffffff);
  border-radius: 14px;
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.08);
}
.scene-pick.hide { display: none; }
.scene-pick-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.scene-pick-eyebrow {
  font-family: var(--font-display, 'Fredoka', sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink, #3c3c3c);
}
.scene-pick-sub {
  font-size: 12px;
  color: var(--ink-soft, #888);
}
.scene-pick-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.scene-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg, #fff8ee);
  color: var(--ink, #3c3c3c);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms;
}
.scene-pick-chip:hover {
  transform: translateY(-1px);
  background: var(--panel, #ffffff);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.12);
}
.scene-pick-chip-ic { display: inline-flex; width: 16px; height: 16px; }
.scene-pick-chip-ic svg { width: 16px; height: 16px; }

/* ================================================================
   Profile 页"学习偏好"卡片
   ================================================================ */
.pf-pref { padding: 4px 0; }
.pf-pref-empty {
  margin: 0 0 12px;
  color: var(--ink-soft, #777);
  font-size: 14px;
}
.pf-pref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .pf-pref-grid { grid-template-columns: 1fr; }
}
.pf-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  gap: 12px;
}
.pf-pref-k {
  font-size: 13px;
  color: var(--ink-soft, #777);
}
.pf-pref-v {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink, #3c3c3c);
  text-align: right;
}
.pf-pref-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 14px;
}
.pf-pref-btn svg { width: 14px; height: 14px; }

