@charset "UTF-8";
/* ============================================================
   TYPE — Design Tokens & Global Styles
   ------------------------------------------------------------
   Phase 12-UI · 「Quiet Psychological Space」视觉系统

   目标气质：清新 · 治愈 · 安静 · 克制 · 有心理空间感
   参考感受：一本安静的电子杂志 + 一个自我探索空间
             （不是 AI 工具 / 数据后台 / 心理 SaaS）

   本次只改视觉层。以下东西一个字节都没动：
   路由、测试逻辑、评分、题库、存储结构、支付/解锁流程、
   localStorage key、无障碍语义（role / aria-*）。

   ── 怎么用这套 token ────────────────────────────────────────
   1) 页面里禁止出现随机颜色 / 随机圆角 / 随机阴影，
      一律走下面的 CSS 变量。
   2) 层级只有三级：
      Level 1 主视觉（Hero / 核心标题 / CTA / 结果类型）
      Level 2 辅助视觉（卡片 / 维度 / 信息模块）—— 轻
      Level 3 背景视觉（渐变 / 光晕 / 装饰）—— 必须非常轻
      用户永远先看到内容，再看到设计。
   3) --color-text-muted 只用于装饰与大字号标注，
      **不要**用在正文与说明句上（对比度不足）。
   ============================================================ */

/* ============================================================
   1. Design Tokens
   ============================================================ */
:root {
  /* ---------- Color -------------------------------------------------
     Phase 20 ·「晴日 Sunlit」。底色从冷灰绿转到暖米纸，主色由鼠尾草绿
     换成暖阳橙；原先的绿意没有丢，降级成成功态与极小的植物点缀。

     令牌名一个都没改 —— 页面、内联样式、分享卡读的还是同一批变量，
     所以这次物理上只可能是「颜色变了」，不可能是「某块丢了样式」。

       --color-bg            #F5F7F3 冷灰绿 → #FFFBF3 暖米纸
       --color-bg-soft       #F0F3EF → #FDF4E7（分区底）
       --color-surface       #FFFFFF → #FFFFFF（弹窗/输入框实体面）
       --color-surface-veil  rgba(245,247,243,.74) → rgba(255,251,243,.74)
       --color-border        #E3E8E3 → #F0E1CB（暖沙；卡片仍不加阴影）
       --color-border-strong #D2DAD3 → #E2CBA9
       --color-text          #35413C → #40342A（暖墨，与纸底 11.7:1）
       --color-text-secondary#65706A → #6B5B4C（纸底 6.31:1）
       --color-text-muted    #9AA39E → #A38D75（仅装饰/大字号，勿用于正文）
       --color-primary       #567C6C → #B4551C（白字 4.93:1，过 AA）
       --color-primary-hover #48695A → #96440F（白字 6.71:1）
       --color-primary-text  #4A6D5F → #A24C15（纸底 5.68:1）
       --color-primary-muted #78988A → #D9A15E（细线/山影，只做装饰）
       --color-primary-soft  #DCE8E1 → #FBE7CE
       --color-accent        #D8AFA0 → #E08A66
       --color-accent-soft   #F1E6E0 → #F9E3D9

     新增 --color-sun / --color-leaf：那束光是光，那片叶子是原来剩下的
     绿。两者都只做装饰与状态，不承担正文。
     ------------------------------------------------------------------ */
  --color-bg: #fffbf3;
  --color-bg-soft: #fdf4e7;
  --color-surface: #ffffff;
  --color-surface-soft: rgba(255, 255, 255, 0.72);
  --color-surface-veil: rgba(255, 251, 243, 0.74);
  --color-border: #f0e1cb;
  --color-border-strong: #e2cba9;

  --color-text: #40342a;
  --color-text-secondary: #6b5b4c;
  --color-text-muted: #a38d75; /* 仅装饰 / 大字号，勿用于正文 */

  --color-primary: #b4551c;
  --color-primary-hover: #96440f;
  --color-primary-text: #a24c15; /* 浅底上的主色文字 / 链接（纸底 5.68:1） */
  --color-primary-muted: #d9a15e; /* 极轻装饰：山影、细线、悬停描边 */
  --color-primary-soft: #fbe7ce;

  --color-sun: #f5b942; /* 晨光：只进渐变与光晕，不做文字底色 */
  --color-leaf: #6e8f5e; /* 旧主色，降级为小面积点缀 */
  --color-leaf-soft: #e6eee1;

  --color-accent: #e08a66; /* 只能小面积使用 */
  --color-accent-soft: #f9e3d9;

  --color-success: #3b7358;
  --color-success-soft: #e4f0e8;
  --color-warning: #7c5a24;
  --color-warning-soft: #f7e9cb;
  --color-error: #9b503c;
  --color-error-soft: #f4e5e0;

  /* ---------- Typography ------------------------------------------
     中文字体优先：PingFang SC / Noto Sans SC / 思源黑体 / 微软雅黑
     英文字体优先：Inter / Avenir / system-ui
     不引入任何外部字体依赖（零下载）。
     ------------------------------------------------------------------ */
  --font-sans: Inter, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --font-size-display: clamp(30px, 8vw, 52px);
  --font-size-h1: clamp(25px, 6.2vw, 34px);
  --font-size-h2: clamp(19px, 3.6vw, 22px);
  --font-size-h3: 17px;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-caption: 12.5px;

  /* 一级文字「大而轻」，二级「medium」，三级靠颜色退后 */
  --weight-display: 400;
  --weight-h1: 400;
  --weight-h2: 500;
  --weight-h3: 500;
  --weight-strong: 600;

  --line-tight: 1.38;
  --line-title: 1.5;
  --line-body: 1.9;
  --tracking-wide: 0.16em;
  --reading-measure: 34em;

  /* ---------- Radius ----------------------------------------------
     柔和，但不幼稚。旧值 → 新值：
       --radius-sm  8px  → 8px
       --radius-md  12px → 12px（按钮从「胶囊」改为 12px 圆角）
       --radius-lg  20px → 18px（卡片）
     新增 --radius-xl 24px（大型容器）/ --radius-2xl 32px（Hero）
     ------------------------------------------------------------------ */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  /* ---------- Shadow ----------------------------------------------
     旧值 → 新值：由黑色 SaaS 阴影改为带绿调的极轻阴影。
     多数卡片不用阴影，只靠「浅色面 + 一条细边框」区分。
     ------------------------------------------------------------------ */
  --shadow-soft: 0 8px 30px rgba(122, 92, 48, 0.06);
  --shadow-medium: 0 16px 44px rgba(122, 92, 48, 0.09);
  /* 兼容旧变量名 */
  --shadow-sm: 0 2px 10px rgba(122, 92, 48, 0.05);
  --shadow-md: var(--shadow-soft);

  /* ---------- Spacing --------------------------------------------- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;

  /* ---------- Motion ----------------------------------------------
     只允许 fade / translateY / scale(0.98→1) / opacity。
     像呼吸，不像动画网站。
     ------------------------------------------------------------------ */
  --motion-fast: 120ms;
  --motion-normal: 200ms;
  --motion-slow: 320ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-fast: var(--motion-fast) var(--ease-out);
  --transition-normal: var(--motion-normal) var(--ease-out);

  /* ---------- Layout ---------------------------------------------- */
  --content-max-width: 1200px;
  --container-padding: 24px;
  --focus-ring: 0 0 0 3px rgba(180, 85, 28, 0.24);

  /* ---------- Component-local ------------------------------------- */
  --likert-dot-size: 38px;
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--color-bg);
}

/* 「早晨的窗」：左上是一片斜进来的阳光，右上有一点暖，中间干净。
   Level 3 背景视觉 —— 应该被「感觉到」，而不是「看到一个装饰」。
   刻意不使用 background-attachment: fixed（移动端 Safari 上会掉帧）。 */
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(
      1100px 640px at 4% -120px,
      rgba(245, 185, 66, 0.2),
      rgba(245, 185, 66, 0) 70%
    ),
    radial-gradient(
      900px 560px at 102% -80px,
      rgba(224, 138, 102, 0.11),
      rgba(224, 138, 102, 0) 68%
    ),
    radial-gradient(
      1200px 900px at 50% 120%,
      rgba(245, 185, 66, 0.07),
      rgba(245, 185, 66, 0) 72%
    );
  background-repeat: no-repeat;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
  color: var(--color-text);
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(245, 185, 66, 0.34);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 页面外壳 */
.page {
  position: relative;
}

/* ============================================================
   3. Layout container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================================
   4. Buttons — 温柔，不发光，不缩放
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-body);
  font-weight: var(--weight-h3);
  line-height: 1;
  letter-spacing: 0.01em;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--color-surface-soft);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-primary-muted);
  color: var(--color-primary-text);
}

.btn-secondary:active {
  transform: translateY(1px);
}

/* 首页主 CTA：比普通按钮更从容（高 52px），仍然只是「稍微变深 + 上移 1px」 */
.btn-lg {
  min-height: 52px;
  padding: 15px 38px;
  font-size: 16.5px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   5. Header — 几乎「隐形」的一条
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface-veil);
  /* 唯一允许使用毛玻璃的地方：贴在内容之上的导航条 */
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid rgba(240, 225, 203, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-text);
  padding: 4px 2px;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.site-nav a:hover {
  color: var(--color-primary-text);
}

/* ============================================================
   6. Home — hero
   ============================================================ */
.hero {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 84px var(--container-padding) 64px;
}

/* 极轻的中心光晕（Level 3）：取代原先的紫色椭圆。
   width 用 min(760px, 100%) 而不是 130% —— 130% 会在手机上把页面顶出
   横向滚动条（实测 360px 视口溢出 55px），光晕外侧本来就是透明的，
   收回容器内不影响观感。 */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(760px, 100%);
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(245, 185, 66, 0.15),
    rgba(245, 185, 66, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 28px;
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--font-size-display);
  line-height: 1.28;
  font-weight: var(--weight-display);
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.hero-subtitle {
  margin-top: 22px;
  font-size: 17px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.hero-actions {
  margin-top: 44px;
}

.hero-meta {
  margin-top: 28px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

.hero-note {
  margin-top: 10px;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* ============================================================
   7. Home — steps（三步说明）
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 16px var(--container-padding) 40px;
}

.step {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.step:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.step-num {
  display: inline-block;
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary-muted);
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin-top: 14px;
  font-size: var(--font-size-h3);
  font-weight: var(--weight-h3);
  line-height: 1.55;
}

.step-desc {
  margin-top: 8px;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

/* ============================================================
   8. Home — dimensions（四维装饰）
   ============================================================ */
.dimensions {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px var(--container-padding) 64px;
}

.dim-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dim-label {
  width: 16px;
  text-align: center;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.dim-track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.dim-dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-primary-muted);
  transform: translate(-50%, -50%);
}

.dimensions-caption {
  margin-top: 26px;
  text-align: center;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* ============================================================
   8b. Home — explore entry（16 型人格库入口）
   ============================================================ */
.explore {
  /* 一块被晒暖的纸：只给底色与圆角，不加阴影（沿用全站「卡片无阴影」）。
     16 型入口原来是悬在空白里的一行字，加上这块底之后，首页从「三段冷场」
     变成「亮-静-亮」的呼吸节奏。 */
  width: calc(100% - 2 * var(--container-padding));
  max-width: 680px;
  margin: 0 auto 52px;
  padding: 26px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  text-align: center;
}

.explore-text {
  margin-bottom: 16px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

/* ============================================================
   9. Placeholder / not-found
   ============================================================ */
.placeholder,
.not-found {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 104px var(--container-padding) 96px;
}

.placeholder-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}

.placeholder-title,
.not-found h1 {
  margin-top: 20px;
  font-size: var(--font-size-h1);
  font-weight: var(--weight-h1);
  line-height: var(--line-title);
}

.placeholder-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.placeholder-note {
  margin-top: 6px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

.not-found p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--color-text-secondary);
}

.placeholder .btn,
.not-found .btn {
  margin-top: 34px;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

/* ============================================================
   10. Footer — 极简
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 36px var(--container-padding) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.footer-brand {
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-text);
}

/* ICP 备案号：法规要求必须出现在首页底部并可点击核验。
   字号与页脚其它行一致，不再弱化 —— 它是「这站是真的」的凭据，
   不是可以藏起来的装饰。 */
.footer-beian {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-beian:hover {
  color: var(--color-primary-text);
  border-bottom-color: currentColor;
}

.footer-beian:focus-visible {
  border-radius: 2px;
}

/* ============================================================
   11. Test page — 进度 / 题目 / 尺度
   让用户忘记「我正在做测试」，而是在认真想一个关于自己的问题。
   ============================================================ */
.test-root {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px var(--container-padding) 104px;
}

/* ---------- progress ---------- */
.test-progress {
  margin-bottom: 52px;
}

.test-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.test-progress-count {
  font-weight: 500;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.test-progress-pct {
  font-variant-numeric: tabular-nums;
}

/* 极细、柔和、安静的进度线。
   填充色必须是「看得见的一根线」，不是「纸上的另一层纸」：底色转暖之后
   原来那支浅鼠尾草（--color-primary-muted）和轨道几乎同色，进度直接消失，
   所以这里改用主色 —— 3px 的暖阳橙不吵，但它确实在说话。 */
.test-progress-bar {
  height: 3px;
  margin-top: 12px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

/* ---------- question ---------- */
.question-card {
  margin-bottom: 52px;
}

.question-text {
  font-size: 23px;
  line-height: 1.7;
  font-weight: var(--weight-display);
  letter-spacing: 0.01em;
  color: var(--color-text);
  max-width: 30em;
}

/* 换题时的一次呼吸：淡入 + 轻微上移 6px */
@keyframes test-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- likert：一条连续的心理尺度 ---------- */
.likert {
  margin-bottom: 52px;
}

.likert-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-size: var(--font-size-caption);
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
}

.likert-options {
  position: relative;
  display: flex;
  /* 每个选项约 45px 宽（375px 视口）——仍 ≥44px 触控目标，
     且永不产生横向滚动。 */
  gap: 0;
}

/* 连接两端的细线（Level 3 装饰，纯 CSS，不影响无障碍语义） */
.likert-options::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(7.15% + var(--likert-dot-size) / 2);
  right: calc(7.15% + var(--likert-dot-size) / 2);
  height: 1px;
  background: var(--color-border-strong);
  pointer-events: none;
}

.likert-option {
  position: relative;
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.likert-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.likert-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--likert-dot-size);
  height: var(--likert-dot-size);
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  /* 白圆心而不是透明圆心：暖米纸上同色的圆圈会「沉进纸里」，
     只有让它比纸更亮一格，7 个选项才读得成一排刻度。 */
  background: var(--color-surface);
  font-size: var(--font-size-small);
  font-weight: 400;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.likert-option:hover .likert-dot {
  border-color: var(--color-primary-muted);
  color: var(--color-primary-text);
}

/* 选中：柔和填充 + 一圈很轻的光环，轻微放大，绝不「强烈蓝色」 */
.likert-option input:checked + .likert-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 500;
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.likert-option input:focus-visible + .likert-dot {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Very narrow phones (e.g. 320px): shrink the scale so the row never
   forces a horizontal scroll. */
@media (max-width: 359px) {
  :root {
    --likert-dot-size: 34px;
  }

  .likert-dot {
    font-size: 13px;
  }
}

/* ---------- navigation ---------- */
.test-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.test-nav-btn {
  min-width: 132px;
}

.test-hint {
  margin-top: 26px;
  text-align: center;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* ---------- panel (intro / transition / complete) ---------- */
.test-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 0;
}

.test-panel-inner {
  position: relative;
  z-index: 1;
}

.test-panel-title {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-h1);
  line-height: var(--line-tight);
  letter-spacing: 0.01em;
}

.test-panel-desc {
  margin-top: 18px;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.test-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
}

.test-panel-actions .btn {
  min-width: 220px;
}

.test-complete-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 24px;
  font-weight: 500;
}

/* ---------- Stage 1: bipolar ---------- */
.bipolar {
  display: grid;
  gap: 14px;
  margin-bottom: 52px;
}

.bipolar-card {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.bipolar-side {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.bipolar-text {
  margin: 0 0 16px;
  padding-right: 24px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--color-text);
}

.bipolar-row {
  display: flex;
  gap: 8px;
}

.bipolar-option {
  position: relative;
  flex: 1;
  display: flex;
  cursor: pointer;
}

.bipolar-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bipolar-option-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--font-size-caption);
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-align: center;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.bipolar-option:hover .bipolar-option-text {
  border-color: var(--color-primary-muted);
  color: var(--color-primary-text);
}

/* 选中 = 柔和填充 + 轻微边框（不是满色块） */
.bipolar-option input:checked + .bipolar-option-text {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-muted);
  color: var(--color-primary-text);
  font-weight: var(--weight-h3);
}

.bipolar-option input:focus-visible + .bipolar-option-text {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.bipolar-mid {
  display: flex;
  justify-content: center;
}

.bipolar-option--neutral {
  flex: 0 1 auto;
}

.bipolar-option--neutral .bipolar-option-text {
  flex: 0 1 auto;
  padding: 0 26px;
  border-style: dashed;
  background: transparent;
}

/* ---------- intro / transition scene ---------- */
.test-intro {
  text-align: left;
  padding: 56px 0 0;
}

.test-intro .test-panel-desc {
  margin-top: 18px;
  line-height: var(--line-body);
}

.test-intro .test-panel-actions {
  align-items: flex-start;
  margin-top: 38px;
}

.test-intro .test-hint {
  text-align: left;
}

.test-intro,
.test-transition {
  min-height: 66vh;
  padding-bottom: 0;
}

.test-intro .test-panel-inner,
.test-transition .test-panel-inner {
  padding-bottom: 132px;
}

/* Two hill silhouettes and a pale sun: 5–9% accent, behind everything,
   clipped by the panel so they can never create horizontal overflow. */
.scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 168px;
  pointer-events: none;
  z-index: 0;
  /* 山影要「散进纸里」，不能是一块贴上去的矩形：底部羽化 + 左右羽化。
     两层 mask 求交集，只留中间那道起伏的轮廓。不支持 mask-composite 的
     浏览器会退回「并集」，也就是不羽化 —— 只是回到旧外观，不会破版。 */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 96%),
    linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 96%),
    linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}

.scene-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 山影：暖化，但不改成纯金 —— 纯金会变成沙漠。
   远山是「被阳光晒亮的坡」，近山是「坡下的阴影」，靠暖沙的两个深浅做层次。
   底色变暖之后，原来的灰绿在米纸上会发脏，所以这里必须一起换。 */
.scene-hill--far {
  fill: rgba(214, 176, 116, 0.2);
}

.scene-hill--near {
  fill: rgba(196, 146, 84, 0.26);
}

/* 那颗太阳。颜色走 --color-sun，透明度留在 CSS 里而不是写进 SVG 属性，
   否则「一束光」会变成 JS 里的一个魔法数字。 */
.scene-sun {
  fill: var(--color-sun);
  fill-opacity: 0.34;
}

.scene-sun--dusk {
  fill-opacity: 0.22;
}

.test-intro-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
}

.test-intro-facts li {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-soft);
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.test-intro-note {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--color-primary-muted);
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.test-intro-legacy {
  margin-top: 24px;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.test-intro-legacy a {
  color: var(--color-primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-primary-soft);
}

/* ---------- PHASE16.13 · 版本标识 / 计分失败提示 ---------- */
/* 版本标识落在标题上方一行小字：读作「这是哪一套题库」，不抢主标题。 */
.test-intro-version {
  margin-bottom: 14px;
  font-size: var(--font-size-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
}

/* 计分失败：细边浅底，不用报错红 —— 它是「这次没算出来」，不是用户做错了什么 */
.test-intro-error {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text);
}

/* ---------- transition ---------- */
.test-transition {
  text-align: left;
  padding: 56px 0 0;
}

.test-transition .test-panel-desc {
  margin-top: 18px;
  line-height: var(--line-body);
}

.test-transition .test-panel-actions {
  align-items: flex-start;
}

.test-transition .test-hint {
  text-align: left;
}

/* ---------- analyzing ---------- */
.test-analyzing {
  padding: 104px 0;
}

.test-analyzing-ring {
  width: 40px;
  height: 40px;
  margin: 0 auto 30px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary-muted);
  border-radius: 50%;
  animation: test-spin 1100ms linear infinite;
}

.test-analyzing.is-reduced .test-analyzing-ring {
  animation: none;
  border-top-color: var(--color-primary-muted);
}

@keyframes test-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .test-analyzing-ring {
    animation-duration: 2000ms;
  }
}

.test-analyzing-line {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-secondary);
  min-height: 1.6em;
  transition: opacity var(--transition-normal);
}

/* ---------- stage progress (144) ---------- */
.test-progress--staged {
  margin-bottom: 44px;
}

.test-stage-chip {
  padding: 3px 11px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.test-progress-stages {
  display: flex;
  gap: 8px;
}

.test-progress-stages .test-progress-bar {
  flex: 1;
  margin-top: 12px;
}

.test-progress-bar--stage1,
.test-progress-bar--stage2 {
  opacity: 0.45;
}

.test-progress-bar--stage1.is-active,
.test-progress-bar--stage2.is-active {
  opacity: 1;
}

.test-progress-meta--sub {
  margin-top: 12px;
  font-size: 11.5px;
}

/* ---------- question footer ---------- */
.test-question-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.test-question-foot .test-hint {
  flex: 1 1 240px;
  margin: 0;
  text-align: left;
}

.test-leave {
  padding: 6px 2px;
  border: 0;
  background: none;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-border-strong);
  cursor: pointer;
}

.test-leave:hover {
  color: var(--color-primary-text);
}

/* ============================================================
   12. Result page
   「这是一个关于你的观察」，不是「你是 INFP，以下是数据分析」。
   ============================================================ */
.result {
  max-width: 740px;
  margin: 0 auto;
  padding: 8px var(--container-padding) 96px;
}

/* ---------- hero ---------- */
.result-hero {
  text-align: center;
  padding: 64px 0 48px;
}

.result-hero-label {
  font-size: var(--font-size-caption);
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

.result-hero-type {
  margin-top: 18px;
  font-size: clamp(48px, 13vw, 68px);
  line-height: 1;
  font-weight: var(--weight-display);
  letter-spacing: 0.14em;
  /* 类型色差：同一品牌世界内的极轻微区别（见文件末尾 16 型色表） */
  color: var(--type-tint, var(--color-text));
  text-indent: 0.14em; /* 视觉居中：补掉尾字符的字距 */
}

/* 未解锁的 142 结果：标题位置站的是「你的类型」四个字，不是四字母。
   48–68px 是给 4 个字母留的，中文四个字在这个字号会顶满一行、还把
   下面那句说明挤走，所以这一档单独收小。颜色也退到次要级 —— 它不是结果，
   是「结果在这里」的路标。 */
.result-hero-type--locked {
  font-size: clamp(28px, 7vw, 34px);
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  color: var(--color-text-secondary);
}

/* 某一块被锁住时的占位：虚线框说明「这里是空的，不是没测出来」。
   不用灰色实底 —— 那会和卡片糊成一片，看着像已经给出的内容。 */
.result-note--locked {
  padding: 14px 16px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
}

/* 两档价目表里的说明行：另起一行，否则「¥0.99 思维倾向 四个字母…」会读成
   一整句，价格和交付内容粘在一起。 */
.unlock-toc-desc {
  display: block;
  margin-top: 4px;
}

.result-hero-name {
  margin-top: 20px;
  font-size: 20px;
  font-weight: var(--weight-h3);
  color: var(--color-primary-text);
}

.result-hero-tagline {
  margin: 14px auto 0;
  max-width: 30em;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.result-hero-link {
  display: inline-block;
  margin-top: 24px;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-primary-text);
  border-bottom: 1px solid var(--color-primary-soft);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.result-hero-link:hover {
  color: var(--color-primary-hover);
  border-bottom-color: var(--color-primary-muted);
}

/* ---------- sections ---------- */
.result-section {
  margin-top: 64px;
}

/* 每条小节标题上的一条 22px 细线：像书里的分隔，替代粗重标题 */
.result-section-title {
  display: block;
  font-size: 18px;
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
  margin-bottom: 22px;
}

.result-section-title::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--color-primary-muted);
  opacity: 0.7;
}

.result-body {
  font-size: 16px;
  line-height: var(--line-body);
  max-width: var(--reading-measure);
  color: var(--color-text);
}

/* ---------- dimension bars ---------- */
.result-dims {
  display: grid;
  gap: 14px;
}

.dim-card {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.dim-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

/* 胜出的一侧靠「颜色」说话，不靠加粗：
   之前 `.dim-pole strong { color: text }` 会让落败一侧的字母反而比胜出侧更深，
   层级被读反。现在两侧字母同为 500，只有胜出一侧变主色。 */
.dim-pole {
  color: var(--color-text-secondary);
}

.dim-pole strong {
  color: inherit;
  font-weight: var(--weight-h3);
}

.dim-pole--win {
  color: var(--color-primary-text);
  font-weight: var(--weight-h3);
}

.dim-pole--win strong {
  color: var(--color-primary-text);
}

.dim-track {
  display: flex;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  overflow: hidden;
}

.dim-seg {
  height: 100%;
  background: transparent;
}

.dim-seg--first {
  transform-origin: left center;
}

.dim-seg--second {
  transform-origin: right center;
}

.dim-seg--win {
  background: var(--color-primary-muted);
}

/* 两侧接近（borderline）：没有「胜出侧」时，两段都不能上胜出色——但也不能因此
   全透明，那看起来像没测出来。改成两段同色 + 中央一道分界，让「各占一半」
   变成一个能看见的结论。透明度 0.34 是量出来的：再深会和 win 混在一起，
   再浅在这 6px 高度上又看不见。 */
.dim-seg--mid {
  background: var(--color-primary-muted);
  opacity: 0.34;
}

.dim-track--edge {
  position: relative;
}

.dim-track--edge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  /* 1px @0.5 在 6px 高的条上实测几乎看不见（截图里整条读成「全填满」），
     所以加粗到 2px、加深到 0.6：这条线是「两边各占一半」的唯一视觉证据。 */
  width: 2px;
  background: var(--color-text-secondary);
  opacity: 0.6;
  transform: translateX(-50%);
}

.dim-pcts {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.dim-pct--win {
  color: var(--color-primary-text);
  font-weight: 500;
}

.dim-note {
  margin: 12px 0 0;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.result-note {
  margin-top: 18px;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* ---------- strengths / challenges ---------- */
.result-cols {
  display: grid;
  gap: 44px;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.result-list-item {
  max-width: var(--reading-measure);
}

.result-list-title {
  font-size: 16px;
  font-weight: var(--weight-h3);
  line-height: 1.6;
  margin: 0;
}

.result-list-desc {
  margin: 8px 0 0;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

/* plain list variant used by the preview (no bullets, spaced) */
.result-list--plain {
  margin-top: 24px;
}

/* ---------- actions + disclaimer ---------- */
.result-actions {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.result-actions .btn {
  min-width: 200px;
}

.result-disclaimer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--font-size-caption);
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.result-disclaimer p + p {
  margin-top: 8px;
}

/* ---------- preview hero ---------- */
.preview-hero {
  padding: 8px 0 4px;
}

.preview-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.preview-title {
  margin: 0;
  font-size: var(--font-size-h1);
  font-weight: var(--weight-h1);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.preview-sub {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: var(--line-body);
  max-width: var(--reading-measure);
  color: var(--color-text-secondary);
}

/* ---------- preview axes ---------- */
.pv-axes {
  display: grid;
  gap: 14px;
}

.pv-axis-card {
  padding: 20px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.pv-axis-name {
  margin: 0 0 14px;
  font-size: var(--font-size-small);
  font-weight: var(--weight-h3);
}

.pv-axis-poles {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.pv-pole--right {
  text-align: right;
}

.pv-track {
  position: relative;
  height: 3px;
  margin: 18px 0 14px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.pv-mid {
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1px;
  background: var(--color-border-strong);
}

.pv-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--color-primary-muted);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-primary-muted);
}

.pv-band {
  margin: 0;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

/* ---------- unlock block（付费入口 · 克制版） ---------- */
.unlock-block {
  padding: 28px 24px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.unlock-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.unlock-badge--owned {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.unlock-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
}

.unlock-desc {
  margin: 0 0 22px;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  max-width: var(--reading-measure);
  color: var(--color-text-secondary);
}

.unlock-toc {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.unlock-toc li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.unlock-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.unlock-actions .btn {
  min-height: 48px;
}

/* 价格：安静地陈述，不吆喝 */
.unlock-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.unlock-note {
  margin: 18px 0 0;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* 「已经买过、手里有解锁码」的那一行。
   它卖的不是内容，是一条回路：付过款的人回到这一页必须能立刻看见输码的入口，
   所以链接用主强调色、加一条下划线，而不是混在灰色小字里。 */
.unlock-note--code a {
  color: var(--color-primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* The 消保法 §25 notice that must sit next to the buy button, not in a footer.
   Same size as .unlock-note but set apart by a hairline so it reads as a
   condition rather than as more marketing copy. */
.unlock-legal {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.unlock-legal a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.unlock-legal a:hover {
  border-bottom-color: var(--color-text-secondary);
}

.unlock-legal a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* ---------- locked report ---------- */
.report-lock {
  padding: 26px 24px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.report-lock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-lock-head .result-section-title {
  margin-bottom: 0;
}

.report-lock-head .result-section-title::before {
  display: none;
}

.report-lock-badge {
  flex: none;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.report-lock-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.report-lock-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.report-lock-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.report-lock-actions .btn {
  min-height: 48px;
}

/* ---------- share ---------- */
.result-share {
  margin-top: 64px;
  text-align: center;
}

.result-share-preview {
  display: flex;
  justify-content: center;
  margin: 8px 0 26px;
}

.share-card-canvas {
  display: block;
  width: 100%;
  max-width: 272px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.result-share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.result-share-actions .btn {
  min-width: 200px;
}

.result-share-note {
  margin-top: 18px;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

/* ============================================================
   12b. Booklet — 《人格使用说明书》正文（网页版）
   ------------------------------------------------------------
   PDF 与网页共用一份内容（products/content/，见
   scripts/build-report-content.mjs），但排版各自实现：
   PDF 是 A4 分页印刷，这里是连续滚动的一篇长文。

   阅读优先的三条约束：
     · 行宽不超过 --reading-measure（34em），再宽中文断行会散
     · 行高 1.9，与结果页正文一致
     · 每一章的标题上有一条 1px 细线 + 「第 NN 章」，替代大色块分隔
   ============================================================ */
.booklet-host {
  margin-top: 64px;
}

.booklet {
  max-width: var(--reading-measure);
}

/* ---------- 封面 / 阅读说明 ---------- */
.booklet-cover {
  padding: 26px 24px 24px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.booklet-kicker {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-primary-text);
}

.booklet-cover-line {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--color-text);
}

.booklet-how {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.booklet-how-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.booklet-how-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.booklet-how-list li {
  margin-bottom: 8px;
}

.booklet-how-list li:last-child {
  margin-bottom: 0;
}

/* ---------- 章 ---------- */
.booklet-ch {
  margin-top: 56px;
  /* 吸顶页头 60px + 一点余量：目录跳转后标题不会被页头盖住 */
  scroll-margin-top: 78px;
}

.booklet-ch-head {
  padding-top: 18px;
  border-top: 1px solid var(--color-border-strong);
}

.booklet-ch-no {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-primary-text);
}

.booklet-ch-title {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: var(--weight-h2);
  line-height: 1.45;
  color: var(--color-text);
}

.booklet-ch-lead {
  margin: 18px 0 0;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--color-text);
}

.booklet-body {
  margin-top: 8px;
}

/* ---------- 正文块 ---------- */
.booklet-p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.booklet-h3 {
  margin: 32px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--color-primary-soft);
  font-size: var(--font-size-h3);
  font-weight: var(--weight-h3);
  line-height: 1.6;
  color: var(--color-text);
}

.booklet-list {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.booklet-list li {
  margin-bottom: 8px;
}

.booklet-list li:last-child {
  margin-bottom: 0;
}

/* 机制 → 因此 → 表现 → 场景：一条竖线串起来，读起来是一条推理而不是四条并列 */
.booklet-flow {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--color-primary-soft);
}

.booklet-flow-step {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--color-text);
}

.booklet-flow-label {
  margin-right: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-primary-text);
}

.booklet-callout {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.booklet-callout-label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary-text);
}

.booklet-callout .booklet-p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--color-text);
}

/* 可以立刻照做的一条 —— 暖陶色竖线是全篇唯一使用 accent 的地方，
   面积小到不构成强调，但足以和上面的 callout 区分开 */
.booklet-action {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.booklet-action-when {
  margin: 0;
  font-size: 15.5px;
  font-weight: var(--weight-h3);
  line-height: 1.75;
  color: var(--color-text);
}

.booklet-action-try {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--color-text);
}

.booklet-action-try::before {
  content: "→ ";
  color: var(--color-primary-text);
}

/* 留给自己的问题：靠留白和细线分隔，不加框 */
.booklet-qa {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.booklet-qa-no {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-primary-text);
}

.booklet-qa-q {
  margin: 6px 0 0;
  font-size: 16.5px;
  font-weight: var(--weight-h3);
  line-height: 1.75;
  color: var(--color-text);
}

.booklet-qa-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

/* ---------- 写在最后 ---------- */
.booklet-closing {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-strong);
}

.booklet-closing-title {
  margin: 0;
  font-size: 21px;
  font-weight: var(--weight-h2);
  line-height: 1.45;
}

.booklet-end-mark {
  width: 96px;
  height: 3px;
  margin: 20px 0 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary-muted);
  opacity: 0.7;
}

.booklet-disclaimer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.booklet-disclaimer .booklet-p {
  margin-top: 8px;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* ---------- 加载中 / 打不开 ---------- */
.booklet-loading {
  margin: 0;
  padding: 28px 0;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

.booklet-fallback {
  padding: 22px 22px 24px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.booklet-fallback-title {
  margin: 0 0 4px;
  font-size: var(--font-size-h3);
  font-weight: var(--weight-h3);
  color: var(--color-text);
}

.booklet-fallback a {
  color: var(--color-primary-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary-soft);
}

/* ---------- 已解锁目录（可点击跳转） ---------- */
.booklet-toc {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.booklet-toc li {
  border-bottom: 1px solid var(--color-border);
}

.booklet-toc-btn {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.booklet-toc-btn:hover .booklet-toc-name,
.booklet-toc-btn:hover .booklet-toc-no {
  color: var(--color-primary-hover);
}

.booklet-toc-btn:focus-visible {
  outline: 2px solid var(--color-primary-text);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.booklet-toc-no {
  flex: none;
  width: 24px;
  font-size: var(--font-size-caption);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary-text);
}

.booklet-toc-name {
  flex: 1;
  font-size: var(--font-size-small);
  line-height: 1.65;
  color: var(--color-text);
}

/* 手机：卡片内边距收一点，正文不缩字号（16px 已是最小可读值），
   只把 15.5 / 16.5 这类「略大一点」的层级拉回正文级，避免窄屏上层次打架。 */
@media (max-width: 480px) {
  .booklet-cover {
    padding: 22px 18px 20px;
  }

  .booklet-callout,
  .booklet-action {
    padding: 16px 16px;
  }

  .booklet-ch-title,
  .booklet-closing-title {
    font-size: 19.5px;
  }

  .booklet-ch-lead,
  .booklet-qa-q {
    font-size: 16px;
  }

  .booklet-flow-step,
  .booklet-action-when,
  .booklet-action-try,
  .booklet-callout .booklet-p {
    font-size: 15.5px;
  }
}

/* ============================================================
   13. Types library (/types) + detail (/types/:code)
   ============================================================ */
.types {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px var(--container-padding) 88px;
}

.types-hero {
  text-align: center;
  padding: 56px 0 44px;
}

.types-hero-title {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-h1);
  line-height: var(--line-tight);
}

.types-hero-subtitle {
  margin-top: 18px;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.types-group {
  margin-top: 56px;
}

.types-group-head {
  margin-bottom: 22px;
}

.types-group-name {
  font-size: 19px;
  font-weight: var(--weight-h2);
}

.types-group-name::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--color-primary-muted);
  opacity: 0.7;
}

.types-group-desc {
  margin-top: 8px;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.type-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.type-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.type-card-code {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.type-card-arrow {
  font-size: 15px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.type-card:hover .type-card-arrow {
  transform: translateX(3px);
  color: var(--color-primary-muted);
}

.type-card-name {
  font-size: var(--font-size-caption);
  font-weight: var(--weight-h3);
  color: var(--color-primary-text);
}

.type-card-tagline {
  font-size: var(--font-size-caption);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.types-footer {
  margin-top: 64px;
  text-align: center;
}

/* ---------- type detail ---------- */
.type-detail {
  max-width: 740px;
  margin: 0 auto;
  padding: 24px var(--container-padding) 88px;
}

.type-detail-back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.type-detail-back:hover {
  color: var(--color-primary-text);
}

.type-detail-hero {
  text-align: center;
  padding: 32px 0 44px;
}

.type-detail-group {
  display: inline-block;
  padding: 4px 14px;
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  background: var(--type-tint-soft, var(--color-primary-soft));
  border-radius: var(--radius-full);
}

.type-detail-code {
  margin-top: 20px;
  font-size: clamp(44px, 12vw, 60px);
  line-height: 1;
  font-weight: var(--weight-display);
  letter-spacing: 0.14em;
  color: var(--type-tint, var(--color-text));
  text-indent: 0.14em;
}

.type-detail-name {
  margin-top: 16px;
  font-size: 20px;
  font-weight: var(--weight-h3);
  color: var(--color-primary-text);
}

.type-detail-tagline {
  margin: 14px auto 0;
  max-width: 30em;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.type-section {
  margin-top: 60px;
}

/* 引导式阅读：一条细线 + 留白 + 短行宽 */
.type-section-title {
  display: block;
  font-size: 18px;
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
  margin-bottom: 22px;
}

.type-section-title::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--color-primary-muted);
  opacity: 0.7;
}

.type-body {
  font-size: 16px;
  line-height: var(--line-body);
  max-width: var(--reading-measure);
  color: var(--color-text);
}

.type-cols {
  display: grid;
  gap: 44px;
}

.type-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.type-list-item {
  max-width: var(--reading-measure);
}

.type-list-title {
  font-size: 16px;
  font-weight: var(--weight-h3);
  line-height: 1.6;
  margin: 0;
}

.type-list-desc {
  margin: 8px 0 0;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.type-related {
  margin-top: 60px;
}

.type-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.type-related-item {
  padding: 10px 16px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.type-related-item:hover {
  border-color: var(--color-primary-muted);
  color: var(--color-primary-text);
}

.type-detail-footer {
  margin-top: 56px;
  text-align: center;
}

/* ============================================================
   14. CTA — 「探索更多」入口（无销售压力、无倒计时）
   ============================================================ */
.cta {
  max-width: 740px;
  margin: 64px auto 0;
  padding: 36px 28px;
  text-align: center;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.cta-title {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
}

.cta-desc {
  margin: 14px auto 22px;
  max-width: 34em;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cta-price {
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   15. Contact（联系 / 付款 / 解锁）
   ============================================================ */
.contact {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px var(--container-padding) 88px;
}

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

.contact-title {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-h1);
  line-height: var(--line-tight);
}

.contact-desc {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

a.contact-item:hover {
  border-color: var(--color-primary-muted);
}

.contact-label {
  flex: 0 0 auto;
  min-width: 34px;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.contact-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: var(--weight-h3);
  word-break: break-all;
  user-select: all;
}

/* copy / mail button — kept at 44px so it stays an easy tap target */
.contact-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary-text);
  font-size: var(--font-size-caption);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.contact-copy:hover {
  border-color: var(--color-primary-muted);
}

.contact-copy.is-copied {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-muted);
  color: var(--color-primary-text);
}

.contact-copy:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.contact-item--qr {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ---------- payment ---------- */
.pay-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  justify-items: center;
}

/* one column on phones: a QR has to be big enough to be scanned off the screen */
.pay-grid--two,
.pay-grid--one {
  grid-template-columns: 1fr;
}

.pay-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pay-qr {
  width: 100%;
  max-width: 260px;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.pay-label {
  font-size: var(--font-size-caption);
  font-weight: var(--weight-h3);
  color: var(--color-text-secondary);
}

.contact-steps {
  margin: 22px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: csteps;
  display: grid;
  gap: 12px;
}

.contact-steps li {
  counter-increment: csteps;
  position: relative;
  padding-left: 32px;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text);
}

.contact-steps li::before {
  content: counter(csteps);
  position: absolute;
  left: 0;
  top: 4px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-note {
  margin-top: 18px;
  font-size: var(--font-size-caption);
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.contact-empty {
  margin-top: 16px;
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

.contact-actions {
  margin-top: 44px;
  text-align: center;
}

.contact-disclaimer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--font-size-caption);
  line-height: 1.9;
  color: var(--color-text-secondary);
}

/* Unlock code — flex-wrap keeps the input and its button on one line on
   desktop and stacks them on narrow screens without a media query. */
.unlock-code {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.unlock-code-label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: 400;
  color: var(--color-text);
}

.unlock-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.unlock-code-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--font-size-small);
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.unlock-code-input:focus-visible {
  outline: none;
  border-color: var(--color-primary-muted);
  box-shadow: var(--focus-ring);
}

.unlock-code-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.unlock-code-msg {
  min-height: 21px;
  margin-top: 12px;
  font-size: var(--font-size-caption);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.unlock-code-msg[data-state="error"] {
  color: var(--color-error);
}

.unlock-code-msg[data-state="ok"] {
  color: var(--color-success);
}

/* ---------- contact: product entries ---------- */
.contact-section {
  margin-top: 44px;
}

.contact-section-title {
  display: block;
  font-size: 17px;
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
  margin-bottom: 18px;
}

.contact-section-title::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--color-primary-muted);
  opacity: 0.7;
}

.contact-products {
  display: grid;
  gap: 12px;
}

.contact-product {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 16px 20px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.contact-product:hover {
  border-color: var(--color-primary-muted);
}

.contact-product-name {
  font-size: 16px;
  font-weight: var(--weight-h3);
}

.contact-product-meta {
  grid-column: 1 / 2;
  font-size: var(--font-size-caption);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.contact-product-arrow {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  align-self: center;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-product:hover .contact-product-arrow {
  transform: translateX(3px);
  color: var(--color-primary-muted);
}

/* ============================================================
   16. Products (/products · /products/:id)
   ============================================================ */
.products {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px var(--container-padding) 88px;
}

.products-hero {
  text-align: center;
  padding: 56px 0 44px;
}

.products-hero-title {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-h1);
  line-height: var(--line-tight);
}

.products-hero-subtitle {
  margin-top: 16px;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.product-kind {
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.product-name {
  margin-top: 18px;
  font-size: 19px;
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
}

.product-tagline {
  margin-top: 8px;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.product-price {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.product-price--soon {
  font-size: var(--font-size-small);
  font-weight: 400;
  color: var(--color-text-secondary);
}

.product-features {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-feature {
  position: relative;
  padding-left: 18px;
  font-size: var(--font-size-caption);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.product-feature::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary-muted);
  opacity: 0.7;
}

.product-cta {
  margin-top: auto;
  width: 100%;
}

.products-footer {
  margin-top: 56px;
  text-align: center;
}

.products-note {
  margin-top: 36px;
  text-align: center;
  font-size: var(--font-size-caption);
  line-height: 1.9;
  color: var(--color-text-secondary);
}

/* ---------- product detail ---------- */
.product-detail {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px var(--container-padding) 88px;
}

.product-back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.product-back:hover {
  color: var(--color-primary-text);
}

.product-detail-hero {
  padding: 24px 0 8px;
}

.product-detail-name {
  margin-top: 18px;
  font-size: var(--font-size-h1);
  font-weight: var(--weight-h1);
  line-height: var(--line-tight);
}

.product-detail-tagline {
  margin-top: 12px;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.product-section {
  margin-top: 48px;
}

.product-section-title {
  display: block;
  font-size: 18px;
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
  margin-bottom: 18px;
}

.product-section-title::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--color-primary-muted);
  opacity: 0.7;
}

.product-body {
  font-size: 16px;
  line-height: var(--line-body);
  max-width: var(--reading-measure);
  color: var(--color-text);
}

.product-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text);
}

/* Report skeleton — numbered, quieter than the feature list */
.product-outline {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: outline;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.product-outline li {
  counter-increment: outline;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* product page: plain (non-numbered) outline list */
.product-outline--plain {
  counter-reset: none;
}

.product-outline--plain li::before {
  display: none;
}

.product-outline--plain li {
  padding-left: 0;
}

/* available type chips (e.g. INFP / ESTJ) */
.product-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.product-type-chip {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-primary-text);
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.product-meta {
  margin-top: 12px;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

/* ordered fulfilment steps — buying means contacting a human */
.product-steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 12px;
}

.product-steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 34px;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text);
}

.product-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-fineprint {
  margin-top: 16px;
  font-size: var(--font-size-caption);
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.product-detail-actions {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail-actions .btn {
  width: 100%;
}

/* ============================================================
   17. Modal
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  background: rgba(64, 52, 42, 0.34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: type-fade var(--motion-fast) var(--ease-out);
}

.modal {
  width: 100%;
  max-width: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-medium);
  animation: type-rise var(--motion-normal) var(--ease-out);
}

.modal-title {
  font-size: 18px;
  font-weight: var(--weight-h2);
  line-height: var(--line-title);
}

.modal-desc {
  margin-top: 12px;
  font-size: var(--font-size-small);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.modal-actions .btn {
  flex: 1;
}

/* ============================================================
   18. Motion — 统一 token，只有 fade / translateY / 极轻 scale
   ============================================================ */
@keyframes type-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes result-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dim-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* 换题：一次呼吸，而不是一次切换 */
  .question-text,
  .bipolar,
  .likert {
    animation: test-fade-in var(--motion-normal) var(--ease-out);
  }

  .result-hero {
    animation: result-fade var(--motion-slow) var(--ease-out) both;
  }

  .result-section {
    animation: result-fade var(--motion-slow) var(--ease-out) both;
    animation-delay: 120ms;
  }

  .result-actions {
    animation: result-fade var(--motion-slow) var(--ease-out) both;
    animation-delay: 200ms;
  }

  .dim-seg--first,
  .dim-seg--second {
    animation: dim-grow 700ms var(--ease-out) both;
  }

  .types-hero,
  .types-group,
  .type-detail-hero,
  .type-section,
  .type-related {
    animation: result-fade var(--motion-slow) var(--ease-out) both;
  }
}

/* 尊重系统「减少动态效果」：一切动画/过渡降到接近 0（含 .is-reduced 兜底） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   19. 16 型人格 · 极低饱和类型色差
   ------------------------------------------------------------
   Phase 20「晴日」：色相带整体挪进暖区，四个家族各占一段 ——
     分析家 = 暖灰褐 · 外交家 = 苔绿（那点绿意留在这里）
     守护者 = 陶土   · 探索者 = 琥珀
   低饱和、同一明度带，仍属同一个品牌世界；全部经
   scripts/visual-token-check.mjs 校验（大字号 ≥3:1）。
   只用在：完整报告的四个字母、人格详情页的类型代号。
   ============================================================ */
[data-type="INTJ"] { --type-tint: #7c6a5c; --type-tint-soft: #eae4db; }
[data-type="INTP"] { --type-tint: #6e6055; --type-tint-soft: #e8e2da; }
[data-type="ENTJ"] { --type-tint: #8a7866; --type-tint-soft: #ece6dc; }
[data-type="ENTP"] { --type-tint: #75675c; --type-tint-soft: #e9e3db; }
[data-type="INFJ"] { --type-tint: #6e8a5e; --type-tint-soft: #e8e9db; }
[data-type="INFP"] { --type-tint: #7c9a62; --type-tint-soft: #eaebdc; }
[data-type="ENFJ"] { --type-tint: #7e8c4a; --type-tint-soft: #eae9d8; }
[data-type="ENFP"] { --type-tint: #5f7a4e; --type-tint-soft: #e5e6d9; }
[data-type="ISTJ"] { --type-tint: #8c7563; --type-tint-soft: #ede6dc; }
[data-type="ISFJ"] { --type-tint: #9c8570; --type-tint-soft: #efe8de; }
[data-type="ESTJ"] { --type-tint: #7e6a58; --type-tint-soft: #eae4da; }
[data-type="ESFJ"] { --type-tint: #a0735b; --type-tint-soft: #f0e5db; }
[data-type="ISTP"] { --type-tint: #b0763f; --type-tint-soft: #f2e6d6; }
[data-type="ISFP"] { --type-tint: #a86a33; --type-tint-soft: #f1e4d4; }
[data-type="ESTP"] { --type-tint: #c0804a; --type-tint-soft: #f5e7d8; }
[data-type="ESFP"] { --type-tint: #8f5a2c; --type-tint-soft: #ede1d3; }

/* ============================================================
   20. Responsive
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --container-padding: 20px;
  }
}

/* ---------- tablet ---------- */
@media (min-width: 768px) {
  .hero {
    padding: 116px var(--container-padding) 76px;
  }

  .hero::before {
    height: 420px;
  }

  .hero-title {
    font-size: clamp(46px, 6vw, 56px);
  }

  .hero-eyebrow {
    margin-bottom: 32px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .test-root {
    padding-top: 72px;
  }

  .question-text {
    font-size: 27px;
  }

  .bipolar-text {
    font-size: 17.5px;
  }

  .bipolar-option-text {
    font-size: var(--font-size-small);
  }

  .test-panel-actions {
    flex-direction: row;
    justify-content: center;
  }

  .test-intro .test-panel-actions,
  .test-transition .test-panel-actions {
    justify-content: flex-start;
  }

  .test-panel-actions .btn {
    min-width: 200px;
  }

  .result {
    padding-top: 16px;
  }

  .result-cols {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .result-actions {
    flex-direction: row;
    justify-content: center;
  }

  .result-share-actions {
    flex-direction: row;
    justify-content: center;
  }

  .scene {
    height: 190px;
  }

  .test-intro .test-panel-inner,
  .test-transition .test-panel-inner {
    padding-bottom: 150px;
  }

  .preview-title {
    font-size: 32px;
  }

  .types-hero-title,
  .products-hero-title {
    font-size: clamp(34px, 4vw, 42px);
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-cols {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail-actions {
    flex-direction: row;
  }

  .product-detail-actions .btn {
    width: auto;
    min-width: 180px;
  }

  /* roomier screens: two payment codes side by side */
  .pay-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .pay-qr {
    max-width: 300px;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .hero {
    padding: 132px var(--container-padding) 84px;
  }

  .hero-title {
    font-size: 58px;
  }

  .type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Phase 13 · TYPE V1.0 探索原型（#/explore · #/explore/result）
   复用既有 result-* 组件；此处只补三处：原型说明条、单极指标条。
   颜色 / 圆角 / 阴影一律取自 :root，不写死值。
   ───────────────────────────────────────────────────────────────────────── */

/* 原型说明条：提醒这是 V1.0 试测，不是正式结论 */
.proto-banner {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  color: var(--color-primary-text);
  font-size: var(--font-size-caption);
  line-height: 1.8;
}

/* 单极 TYPE 指标：实心条比双极轨稍粗，读起来更像「程度」 */
.result-dims--traits .dim-track {
  height: 8px;
  border-radius: var(--radius-full);
}

.dim-card--trait .dim-head {
  margin-bottom: 12px;
}

/* V1.0 探索画像：顶部有原型说明条，hero 的上留白相应收紧 */
.result--explore .result-hero {
  padding-top: 36px;
}

/* 边界轴的占位符：比字母后退一级，读作「这一位还没定」而不是「缺字」 */
.result--explore .edge-char {
  color: var(--color-text-secondary);
  font-weight: var(--weight-display);
}

/* 首页 hero 的次级入口链接（新版探索）：沿用既有的「细下划线」链接语言 */
.hero-note a {
  color: var(--color-primary-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-primary-soft);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.hero-note a:hover {
  color: var(--color-primary-hover);
  text-decoration-color: var(--color-primary-muted);
}


/* ─────────────────────────────────────────────────────────────────────────────
   TYPE V2.0 · 主原型（#/explore/result）
   原型是报告里的「第二个标题」：紧跟 MBTI 类型码之后出现，所以用主色文字
   而不是一个新色系 —— 它属于同一个品牌世界。修饰语沿用既有标签语言
   （浅底 / 细边 / 药丸），与 .preview-tag 同一套 token，但独立定义，
   避免两个不相干的组件互相牵制。所有颜色都来自 :root，无随机值。
   ───────────────────────────────────────────────────────────────────────────── */
.archetype-card {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.archetype-name {
  font-size: 26px;
  line-height: 1.2;
  font-weight: var(--weight-h2);
  letter-spacing: 0.06em;
  color: var(--color-primary-text);
}

.archetype-short {
  margin-top: 12px;
  font-size: 16px;
  line-height: var(--line-body);
  color: var(--color-text);
}

.archetype-long {
  margin-top: 14px;
  font-size: 15px;
  line-height: var(--line-body);
  max-width: var(--reading-measure);
  color: var(--color-text-secondary);
}

.archetype-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.archetype-mod {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary-text);
  font-size: 12.5px;
  font-weight: 500;
  /* 标签可能较长，窄屏上允许折行而不是撑破布局 */
  max-width: 100%;
  overflow-wrap: anywhere;
}

.archetype .result-note {
  margin-top: 18px;
}

@media (max-width: 480px) {
  .archetype-card {
    padding: 22px 18px;
  }

  .archetype-name {
    font-size: 22px;
  }
}

/* ============================================================
   PHASE16 · Cinema Persona 匹配结果
   ------------------------------------------------------------
   沿用既有 token，不引入新颜色 / 新圆角 / 新阴影。
   层级保持在 Level 2（辅助视觉）—— Top1 只做「轻微强调」：
   一条主色细边 + 略深的面，不做发光、不做大色块。
   ============================================================ */

/* 区块容器：与上面的画像段落之间留出更明显的呼吸 */
.cinema {
  margin-top: var(--space-xl);
}

.cinema-list {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.cinema-card {
  padding: 24px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
}

/* Top1 的「适度视觉强调」：左侧一条主色细边 + 实体白面 */
.cinema-card--top {
  border-left: 3px solid var(--color-primary-muted);
  background: var(--color-surface);
}

/* PHASE16.16 · 人物肖像 + 情节对照
   ------------------------------------------------------------
   肖像是一个 92px 的方形「像素画框」：浅实体面 + 细边 + 无阴影，
   与站内卡片规则一致（卡片不投影）。像素图必须 crispEdges 放大，
   不允许浏览器做平滑插值 —— 一平滑就不是像素画了。
   ------------------------------------------------------------ */
.cinema-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.cinema-portrait {
  flex: 0 0 auto;
  /* 108px 是量出来的平衡点：再大右侧姓名区在 390px 下会被挤成两行，
     再小（96 及以下）Q 版的眼睛只剩 4px，表情就白画了。 */
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  /* 不做方画框：肖像自带淡色圆底 + 一圈更浅的描边，再加方框会变成两层边框 */
  border-radius: 50%;
  overflow: visible;
}

.pixel-portrait {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.cinema-portrait svg {
  display: block;
  /* 尺寸跟随画框，不写死：桌面 108 / 移动 92 只改容器一处。
     另：这里是矢量图形，**不要**加 image-rendering: pixelated ——
     那是给 24×24 像素图用的，会把 Q 版的曲线边缘砍成锯齿。 */
  width: 100%;
  height: 100%;
}

/* ---------- 银幕剪影肖像（PHASE16.18）-------------------------------
   与 Q 版并存：有剪影用剪影，没有就回退 Q 版（见 character-stills.js）。
   图是 512×512 的方图，这里裁成圆 —— 圆形取景会自然切掉四角，
   所以构图只需要保证「头在圆心偏上」，不必为圆形单独重画。
   ------------------------------------------------------------------- */
.cinema-portrait img.still-portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  /* 剪影接近纯黑，浅底上会「陷进去」，给一圈极淡描边当边界 */
  box-shadow: 0 0 0 1px rgba(64, 52, 42, 0.12);
  animation: qs-enter 620ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
  animation-delay: var(--qs-delay, 0ms);
  /* 拖动/长按不该把肖像拖出来：它是界面的一部分，不是图片素材 */
  -webkit-user-drag: none;
  user-select: none;
}

.cinema-card--top img.still-portrait {
  /* 与 Q 版同一套节奏：Top 1 稍慢、幅度稍大，但都不做循环强调 */
  animation-duration: 760ms;
}

@keyframes qs-enter {
  from { opacity: 0; transform: scale(0.965); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Q 版人物肖像（PHASE16.17）-------------------------------
   动效只有四种，全部用 transform / opacity，不触发布局：
     · 入场   —— 淡入 + 轻微放大（只在结果页首次渲染时跑一次）
     · 待机   —— 极小幅上下浮动，读作呼吸
     · 眨眼   —— 眼组整体 scaleY 压扁，5.6s 一次
     · 星光   —— 只给 3 位角色，opacity + 缩放
   SVG 里没有任何 <style> 或定时器：结果页每次重渲染都是新 DOM，
   动画自然重放一次，不需要 JS 注册任何监听器。
   ------------------------------------------------------------------- */
.q-avatar {
  display: block;
  overflow: visible;
  transform-box: fill-box;
  transform-origin: center;
  animation: qa-enter 620ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
  animation-delay: var(--qa-delay, 0ms);
}

.cinema-card--top .q-avatar {
  /* Top 1 的入场稍微慢一点、幅度大一点，但**不做**循环强调动画：
     卡片上不该有持续抢眼的东西。 */
  animation-duration: 760ms;
}

.q-avatar__stage {
  transform-box: fill-box;
  transform-origin: 50% 88%;
  animation: qa-breathe 5.2s ease-in-out infinite;
  animation-delay: calc(var(--qa-delay, 0ms) + 220ms);
}

.q-avatar__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: qa-blink 5.6s ease-in-out infinite;
  animation-delay: calc(var(--qa-delay, 0ms) + 1100ms);
}

.q-avatar__sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: qa-twinkle 3.6s ease-in-out infinite;
  animation-delay: calc(var(--qa-delay, 0ms) + 500ms);
}

/* 装饰层不接收指针事件：星光压在圆底上，不该影响用户点卡片 / 选中文字。
   这条同时让 visual-token-check 的「类名必须有样式」成立。 */
.q-avatar__sparkle-layer {
  pointer-events: none;
}

@keyframes qa-enter {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes qa-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.6px);
  }
}

@keyframes qa-blink {
  0%,
  91%,
  100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.12);
  }
  97% {
    transform: scaleY(1);
  }
}

@keyframes qa-twinkle {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* 系统开启「减少动态效果」时全部停住，停在最终可见状态（不是 opacity:0）。
   这一条要排在文件后面、且用 !important 压过第 19 节的全局兜底规则。 */
@media (prefers-reduced-motion: reduce) {
  .q-avatar,
  .q-avatar__stage,
  .q-avatar__eyes,
  .q-avatar__sparkle {
    animation: none !important;
  }
}


.cinema-identity {
  min-width: 0;
  padding-top: 2px;
}

/* 情节对照 */
.cinema-block--plot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.cinema-plot-intro {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.cinema-plot-text {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.cinema-plot-where {
  margin-left: 4px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--color-text-secondary);
}

.cinema-plot-why {
  display: block;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--color-primary-soft);
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.cinema-rank {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.cinema-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--color-warning-soft);
  color: var(--color-warning);
  font-size: 12px;
}

.cinema-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.cinema-movie {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--color-text-secondary);
}

.cinema-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 14px;
  color: var(--color-text);
}

.cinema-score strong {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-primary-text);
}

.cinema-score-sub {
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

.cinema-summary {
  margin-bottom: 16px;
  font-size: 14.5px;
  line-height: var(--line-body);
  /* 正文一律用 secondary，不用 muted（对比度不足） */
  color: var(--color-text-secondary);
  max-width: var(--reading-measure);
}

.cinema-block {
  margin-top: 16px;
}

.cinema-block-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-primary-text);
}

.cinema-evidence {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.cinema-evidence li {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.cinema-evidence li:last-child {
  margin-bottom: 0;
}

.cinema-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cinema-chip {
  display: inline-block;
  max-width: 100%;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-primary-text);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

/* 「与你不同」用暖陶色区分，但只在这一处小面积使用 */
.cinema-chip--diff {
  border-color: var(--color-accent-soft);
  color: var(--color-text-secondary);
}

.cinema-meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

.cinema-notice-action {
  margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────
   PHASE16.13 · 体验版（preview）标注
   ------------------------------------------------------------
   只做「这一块是试测」的视觉提示，不改任何既有卡片的层级：
   徽标用细边药丸（不是实底色块），草稿标签与「资料待完善」区分开，
   证据来源用小号浅底标，读起来是「出处」而不是「结论」。
   颜色 / 圆角全部取自 :root，无新增 token。
   ───────────────────────────────────────────────────────────────────────── */
.cinema-preview-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

/* 草稿角色标签：中性细边，故意不用 warning 色 —— 它是状态，不是错误 */
.cinema-tag--draft {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* 证据出处：这条剧情来自角色的哪一项画像 */
.cinema-evidence-src {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  font-size: 11.5px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────
   PHASE16.13 · 首页「新版测试」入口卡
   ------------------------------------------------------------
   与 hero 主 CTA 并列但不抢主次：一个浅底细边容器 + 一行事实 + 一个次级按钮。
   刻意不做渐变 / 阴影 / 大色块 —— 首页仍然是「一个目标：开始测试」。
   ───────────────────────────────────────────────────────────────────────── */
.v1-entry {
  width: calc(100% - 2 * var(--container-padding));
  max-width: 560px;
  margin: 32px auto 0;
  padding: 22px 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  text-align: center;
}

.v1-entry-badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.v1-entry-title {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.v1-entry-desc {
  margin-top: 8px;
  font-size: var(--font-size-small, 14px);
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.v1-entry-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

.v1-entry-actions {
  margin-top: 18px;
}

.v1-entry-alt {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

.v1-entry-alt a {
  color: var(--color-primary-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-primary-soft);
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .v1-entry {
    margin-top: 26px;
    padding: 18px 16px 20px;
  }

  .v1-entry-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .cinema-card {
    padding: 20px 16px;
  }

  .cinema-head {
    gap: 12px;
  }

  .cinema-portrait {
    /* 390px 下 92 + 12 gap + 右侧 214px 文本：
       「菲茨威廉·达西」7 个全角字 × 20px = 140px，仍不换行。 */
    width: 92px;
    height: 92px;
  }

  .cinema-name {
    font-size: 20px;
  }

  .cinema-score strong {
    font-size: 16px;
  }
}

/* ============================================================
   法律声明页（#/privacy · #/terms · #/refund）
   ------------------------------------------------------------
   复用 .contact 的容器与 .contact-section-title 的分节标题，
   这里只补阅读长文需要的东西：日期行、段落节奏、条款列表、页间导航。

   正文颜色一律 --color-text-secondary。不用 --color-text-muted ——
   那是给装饰和大字号标注的，承载 15px 正文对比度不足。
   字重只用 400 / 500，不出现 700。
   ============================================================ */
.legal {
  max-width: 660px;
}

.legal-hero {
  padding-bottom: 20px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.legal-body {
  margin-top: 8px;
}

.legal-block .contact-section-title {
  margin-bottom: 14px;
}

.legal-p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.legal-p:last-child {
  margin-bottom: 0;
}

.legal-p strong {
  font-weight: 500;
  color: var(--color-text);
}

.legal-list {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 15px;
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}

.legal-list:last-child {
  margin-bottom: 0;
}

.legal-list li {
  padding-left: 2px;
}

.legal-list li::marker {
  color: var(--color-primary-muted);
}

.legal-list strong {
  font-weight: 500;
  color: var(--color-text);
}

.legal-list--ordered {
  list-style: decimal;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.legal-nav-link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.legal-nav-link:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

.legal-nav-link.is-current {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-surface-soft);
}

.legal-nav-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Inline entry to the three documents, used under the disclaimer on the
   contact page and beside the buy buttons. Smaller than a nav: it is a
   legal footnote, not a navigation menu. */
.legal-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
}

.legal-inline-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.legal-inline-link:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}

.legal-inline-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.legal-inline-sep {
  color: var(--color-text-secondary);
  opacity: 0.6;
}
