/* Stopwatch · 冷白金属设计系统 */
:root {
  --color-bg-primary: #edeff2;
  --color-bg-secondary: #e8eaed;
  --color-bg-tertiary: #e4e7eb;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-solid: #f5f6f8;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #8e8e93;
  --color-text-tertiary: #bbbbbb;
  --color-accent: #1a1a1a;
  --color-muscle: #e74c3c;
  --color-ring-outer: #e8eaed;
  --color-ring-mid: #d5d8dc;
  --color-ring-inner: #c0c4c9;

  --radius-card: 20px;
  --radius-inner: 14px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-emboss:
    0 14px 32px rgba(0, 0, 0, 0.07),
    0 4px 10px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.72),
    inset 0 -1px 3px rgba(0, 0, 0, 0.03);
  --shadow-emboss-active:
    inset 0 6px 14px rgba(0, 0, 0, 0.06),
    inset 0 -2px 6px rgba(255, 255, 255, 0.55);
  --shadow-soft-pill:
    0 10px 24px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 2px rgba(0, 0, 0, 0.025);
  --shadow-soft-pill-active:
    inset 0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 -1px 4px rgba(255, 255, 255, 0.6);

  --font: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --phone-width: 390px;
  --phone-height: 844px;
  --phone-aspect: calc(390 / 844);
}

html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--color-text-primary);
  background: linear-gradient(
    160deg,
    var(--color-bg-primary) 0%,
    var(--color-bg-tertiary) 55%,
    var(--color-bg-primary) 100%
  );
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* ── Landing hero ── */

.hero {
  text-align: center;
  padding: 24px 0 32px;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
}

.lead {
  max-width: 560px;
  margin: 16px auto 28px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn:active {
  transform: scale(0.98);
}

.btn.ghost {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.version-hint {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ── Interactive preview ── */

.preview-section {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.preview-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 为上方 tab + 标题预留高度，手机框剩余空间不超出视口 */
  --preview-chrome: 168px;
  max-height: calc(100dvh - var(--preview-chrome));
}

.preview-header {
  text-align: center;
  margin-bottom: 20px;
}

.preview-header h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.preview-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.preview-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding: 0 4px 8px;
  -webkit-overflow-scrolling: touch;
}

.preview-tabs::-webkit-scrollbar {
  display: none;
}

.preview-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}

.preview-tab.active {
  background: var(--color-text-primary);
  color: #fff;
  border-color: var(--color-text-primary);
}

.phone-shell {
  margin: 0 auto;
  flex-shrink: 1;
  min-height: 0;
  /* 固定 390×844，按视口等比缩小，绝不超出 */
  --shell-h: min(
    var(--phone-height),
    calc(100dvh - var(--preview-chrome)),
    calc(100vw * 844 / 390)
  );
  --shell-w: min(var(--phone-width), 100%, calc(var(--shell-h) * 390 / 844));
  width: var(--shell-w);
  height: var(--shell-h);
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(145deg, #d8dbe0, #f0f2f5);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  container-type: size;
  container-name: phone;
  background: linear-gradient(
    165deg,
    var(--color-bg-primary) 0%,
    var(--color-bg-secondary) 45%,
    var(--color-bg-tertiary) 100%
  );
}

.app-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  max-height: 100%;
}

.app-screen.active {
  display: flex;
}

.screen-main {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.main-belt-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.embossed-btn--white {
  /* 白带默认；其他段位后期接 token */
}

.embossed-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embossed-wrap--hero {
  width: min(248px, 64cqw, 54cqh);
  height: min(248px, 64cqw, 54cqh);
}

.embossed-wrap--cta {
  display: none;
}

.embossed-pulse {
  display: none;
}

.embossed-glass-ring {
  position: absolute;
  width: 104%;
  height: 104%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.embossed-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 32%,
    #f4f5f7 0%,
    var(--color-bg-primary) 38%,
    var(--color-bg-secondary) 72%,
    #dfe2e6 100%
  );
  box-shadow: var(--shadow-emboss);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  font-family: inherit;
  color: var(--color-text-primary);
}

.embossed-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 30%,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.embossed-btn:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-emboss-active);
}

.embossed-btn__label {
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
}

.embossed-btn__label--lg {
  font-size: clamp(1.85rem, 10.5cqw, 2.65rem);
}

.embossed-btn__label--sm {
  font-size: 1.35rem;
}

/* 计划页 · 柔软胶囊 CTA（非圆形） */
.soft-cta-btn {
  position: relative;
  overflow: hidden;
  width: min(100%, 300px);
  min-height: 56px;
  padding: 15px 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #f7f8fa 0%,
    #eef0f3 48%,
    #e8ebef 100%
  );
  box-shadow: var(--shadow-soft-pill);
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text-primary);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.soft-cta-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 55%
  );
  pointer-events: none;
}

.soft-cta-btn:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-soft-pill-active);
}

.soft-cta-btn__label {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ── Main screen ── */

.screen-main__noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #fff 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

/* ── Plan overview · 人体肌肉图 ── */

.screen-plan {
  overflow: hidden;
}

.plan-topbar {
  display: flex;
  align-items: center;
  padding: 12px 16px 4px;
  flex-shrink: 0;
  z-index: 2;
}

.plan-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-body-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px 8px;
  position: relative;
  overflow: hidden;
}

.body-map {
  position: relative;
  width: min(100%, 280px);
  max-height: min(68cqh, 520px);
  aspect-ratio: 200 / 420;
  flex-shrink: 1;
}

.body-map__svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.muscle-hotspot {
  position: absolute;
  left: var(--hot-x);
  top: var(--hot-y);
  width: var(--hot-w);
  height: var(--hot-h);
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.muscle-hotspot--active {
  background: rgba(231, 76, 60, 0.22);
  border-color: rgba(231, 76, 60, 0.45);
  box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.15);
}

.muscle-hotspot--active:hover {
  background: rgba(231, 76, 60, 0.32);
}

.muscle-hotspot--selected {
  background: rgba(231, 76, 60, 0.48) !important;
  border-color: var(--color-muscle);
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.35);
}

.muscle-hotspot--inactive {
  cursor: default;
  opacity: 0.35;
}

.body-map-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  flex-shrink: 0;
}

.body-map-hint[hidden] {
  display: none;
}

.muscle-sheet {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 12px;
  background: rgba(26, 26, 26, 0.18);
  backdrop-filter: blur(4px);
}

.muscle-sheet[hidden] {
  display: none;
}

.muscle-sheet__panel {
  width: 100%;
  max-height: 52cqh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-solid);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.muscle-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.muscle-sheet__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.muscle-sheet__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muscle-sheet__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 14px;
  scrollbar-width: none;
}

.muscle-sheet__list::-webkit-scrollbar {
  display: none;
}

.surface-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.exercise-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exercise-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.exercise-index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
}

.exercise-card:first-child .exercise-index {
  background: var(--color-text-primary);
  color: #fff;
}

.exercise-info {
  flex: 1;
  min-width: 0;
}

.exercise-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.exercise-desc {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.exercise-reps {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.plan-footer {
  flex-shrink: 0;
  padding: 8px 24px clamp(16px, 3.5cqh, 32px);
  display: flex;
  justify-content: center;
  background: linear-gradient(
    to top,
    var(--color-bg-primary) 60%,
    transparent
  );
  position: relative;
  z-index: 6;
}

/* ── Training & Rest · 柯基居中舞台 ── */

.screen-training,
.screen-rest {
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.coach-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3cqh, 28px) 16px 8px;
  min-height: 0;
  overflow: hidden;
}

.coach-headline {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 7cqw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.1;
  z-index: 2;
  flex-shrink: 0;
}

.coach-headline--countdown {
  font-size: clamp(2rem, 14cqw, 3.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.coach-canvas-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 55cqh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D / 动效留白占位 */
.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: min(280px, 50cqh);
  max-width: min(340px, 88cqw);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.media-placeholder__tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.media-placeholder__note {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.4;
  max-width: 220px;
}

.media-placeholder--peer {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.media-placeholder--celebrate {
  width: 100%;
  max-width: 300px;
  min-height: 120px;
  max-height: 28cqh;
}

.media-placeholder--belt {
  width: 100%;
  max-width: 320px;
  min-height: 200px;
  max-height: 42cqh;
}

.coach-subline {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

.next-preview {
  margin-top: clamp(6px, 2cqh, 14px);
  padding: 10px 16px;
  border-radius: var(--radius-inner);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card);
  text-align: center;
  flex-shrink: 0;
  max-width: 100%;
}

.next-preview[hidden] {
  display: none;
}

.next-preview-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muscle);
}

.next-preview-name {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.next-preview-meta {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.training-bottom {
  flex-shrink: 0;
  padding: 6px 20px clamp(16px, 4cqh, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.training-timer {
  font-size: clamp(1.5rem, 9cqw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
}

.training-complete-btn {
  width: 100%;
  max-width: 280px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-text-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.training-complete-btn:active {
  transform: scale(0.98);
}

.rest-footer {
  flex-shrink: 0;
  padding: 8px 24px 28px;
  display: flex;
  justify-content: center;
}

.rest-skip-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.rest-skip-btn:active {
  transform: scale(0.98);
}

/* ── §4.0 登录 ── */

.screen-login,
.screen-onboard {
  padding: 0;
}

.auth-stage,
.onboard-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

.auth-logo {
  margin: 0;
  font-size: 2.5rem;
  text-align: center;
}

.auth-title {
  margin: 8px 0 0;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
}

.auth-subtitle {
  margin: 4px 0 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.auth-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.auth-tab--active {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--grow {
  flex: 1;
  justify-content: center;
  position: relative;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.field-input--lg {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  padding-right: 48px;
}

.field-suffix {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-text-primary);
  cursor: pointer;
}

.btn-primary--green {
  background: #2d8f5f;
}

.btn-primary:active,
.btn-outline:active {
  transform: scale(0.98);
}

.btn-text {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
}

.btn-outline {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-surface);
  cursor: pointer;
}

.btn-ghost-sm {
  padding: 12px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.chip-btn {
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── §4.1 入门 ── */

.onboard-progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.onboard-progress span {
  display: block;
  height: 100%;
  background: #2d8f5f;
  border-radius: 2px;
}

.onboard-step {
  margin: 20px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.onboard-question {
  margin: 8px 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.onboard-footer {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.onboard-footer .btn-primary {
  flex: 1;
}

/* ── §4.5 同道鼓励 ── */

.screen-encourage {
  flex-direction: column;
}

.encourage-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 8px;
  text-align: center;
  overflow-y: auto;
}

.encourage-eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.encourage-quote {
  margin: 16px 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.encourage-author {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.encourage-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.encourage-stage .btn-outline {
  max-width: 260px;
}

.encourage-footer {
  flex-shrink: 0;
  padding: 6px 20px clamp(16px, 4cqh, 28px);
  display: flex;
  justify-content: center;
}

/* ── §4.6 完成 ── */

.screen-done {
  flex-direction: column;
}

.done-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.done-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.done-stats,
.done-comment {
  width: 100%;
  padding: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row strong {
  color: var(--color-text-primary);
  font-weight: 800;
}

.done-comment p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-primary);
}

.done-footer {
  flex-shrink: 0;
  padding: 8px 20px clamp(16px, 4cqh, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* ── §3.1 升段 ── */

.screen-belt {
  flex-direction: column;
}

.belt-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  gap: 12px;
}

.belt-rank-line {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.belt-from {
  color: var(--color-text-secondary);
}

.belt-to {
  color: #c9a227;
}

.belt-caption {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.belt-danmaku-preview {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
}

.belt-danmaku-preview p {
  margin: 4px 0;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.belt-footer {
  flex-shrink: 0;
  padding: 6px 20px clamp(16px, 4cqh, 28px);
  display: flex;
  justify-content: center;
}

/* ── Features ── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-card);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.55;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .page {
    padding: 20px 12px 48px;
  }

  .preview-stage {
    --preview-chrome: 220px;
  }

  .embossed-wrap--hero {
    width: min(220px, 68cqw, 58cqh);
    height: min(220px, 68cqw, 58cqh);
  }

  .embossed-btn__label--lg {
    font-size: clamp(1.75rem, 12cqw, 2.5rem);
  }
}

/* 真机宽度：预览区占满一屏，应用界面不溢出 */
@media (max-width: 430px) {
  .page {
    padding: 0;
    max-width: none;
  }

  .hero,
  .features {
    display: none;
  }

  .preview-section {
    margin: 0;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .preview-header {
    display: none;
  }

  .preview-tabs {
    margin: 0;
    padding: 10px 12px 8px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--color-bg-primary);
    width: 100%;
    box-sizing: border-box;
  }

  .preview-stage {
    --preview-chrome: 56px;
    flex: 1;
    width: 100%;
    max-height: none;
    min-height: 0;
  }

  .phone-shell {
    width: 100%;
    height: calc(100dvh - var(--preview-chrome));
    max-height: calc(100dvh - var(--preview-chrome));
    aspect-ratio: unset;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .phone-screen {
    border-radius: 0;
  }
}

/* Figma 抓取：仅导出手机框 UI */
body.capture-mode .hero,
body.capture-mode .features,
body.capture-mode .preview-header {
  display: none !important;
}

body.capture-mode .page {
  padding: 0;
  max-width: none;
  margin: 0;
}

body.capture-mode .preview-section {
  margin: 0;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.capture-mode .preview-stage {
  --preview-chrome: 0px;
  min-height: 100dvh;
  max-height: 100dvh;
}

body.capture-phone .preview-tabs {
  display: none !important;
}

body.capture-phone .preview-stage {
  justify-content: center;
}

body.capture-phone .phone-shell {
  width: 390px;
  height: 844px;
  max-height: 844px;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

body.capture-phone .phone-screen {
  border-radius: 0;
}
