/* ============================================================================
 * 职业倾向 · 探索手册 — 设计系统 v3「纸与墨」
 * ----------------------------------------------------------------------------
 * 视觉主张：一份该被认真读完的报告，而不是一个产品落地页。
 *   · 浅底、深墨字、一个克制的品牌蓝；不用深色舞台、不用渐变文字
 *   · 层级靠字号、留白、细线；不靠发光、光斑、玻璃拟态
 *   · 正文 15–16px 起，标注不低于 12.5px，行距 1.7 以上
 * 基准：375px 移动端 H5；桌面为居中设备框视图
 * ========================================================================== */

/* ------------------------------------------------------------- 01 · Tokens */
:root {
  color-scheme: light;

  /* 页面 / 卡片：暖纸底 —— 米白纸面 + 纸白卡片 + 纸张阴影 */
  --bg:          #F7F3EA;
  --surface:     #FFFDF8;
  --surface-2:   #F0E9DC;
  --surface-3:   #E7DECE;
  --card-line:   #F0E8DA;

  /* 文字：对应 --text-primary / --text-secondary / --text-placeholder */
  --ink:         #221E19;
  --ink-2:       #544C42;
  --ink-3:       #74695C;
  --ink-4:       #A2968A;
  --line:        #E4DACA;
  --line-2:      #D3C5B0;

  /* 品牌：--color-primary 及浅底、描边；渐变只给主按钮与强调小条 */
  --brand:       #4F46E5;
  --brand-ink:   #4338CA;
  --brand-soft:  #EFEAF9;
  --brand-line:  #CCC4EF;
  --g-primary:   linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);

  /* 语义色：--match-high / --match-mid / --match-low 的浅底与深字 */
  --mint:        #10B981;
  --mint-ink:    #047857;
  --mint-soft:   #EAF5EE;
  --amber:       #F59E0B;
  --amber-ink:   #A85F0B;
  --amber-soft:  #FBEDD7;
  --rose:        #DC2626;
  --rose-soft:   #FAEEE9;

  /* 兼容旧内联样式引用 */
  --indigo:      var(--brand);
  --blue:        var(--brand);
  --violet:      var(--brand);
  --grad:        var(--g-primary);
  --grad-line:   var(--brand);
  --grad-soft:   var(--brand-soft);

  /* 半径：--r-sm / --r-md / --r-lg / --r-xl */
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  /* 阴影：--sh-1 / --sh-2 / --sh-3，--sh-glow 只给主按钮 */
  --sh-1: 0 1px 2px rgba(58, 42, 24, .05);
  --sh-2: 0 2px 10px rgba(58, 42, 24, .06);
  --sh-3: 0 8px 24px -6px rgba(58, 42, 24, .13);
  --sh-glow: 0 8px 20px -6px rgba(79, 70, 229, .45);

  /* 动效 */
  --ease: cubic-bezier(.22, .68, .28, 1);
  --d:    220ms;

  /* 字体：现代无衬线，数字等宽 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Pro Display", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;

  --pad: 20px;

  --z-sheet: 60;
  --z-toast: 80;
}

/* ------------------------------------------------------------- 02 · Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

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

input, select, textarea { font: inherit; color: inherit; }

p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }

::selection { background: rgba(79, 70, 229, .18); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -160%);
  z-index: 999; background: var(--ink); color: #fff; font-size: 14px;
  padding: 9px 16px; border-radius: 10px; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

:where(button, a, input, label[for], [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- 03 · 外壳 */
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.appbar {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.appbar__brand { display: flex; align-items: center; min-width: 0; }
.appbar__logo { height: 20px; width: auto; mix-blend-mode: multiply; }
.appbar__spacer { flex: 1; }
.appbar__sep { color: var(--line-2); font-size: 14px; }
.appbar__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.appbar__page {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.iconbtn {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  transition: background .16s, border-color .16s;
}
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:active { background: var(--surface-3); }

.scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

.view {
  flex: 1 0 auto;
  min-height: 100%;
  padding: 20px var(--pad) 40px;
}
.view.is-entering { animation: viewIn 260ms var(--ease) both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.dock {
  flex: 0 0 auto;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.dock:empty { display: none; }
.dock__row { display: flex; gap: 10px; align-items: center; }
.dock__note { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-bottom: 8px; }

/* ------------------------------------------------------------- 04 · 原子 */
.display {
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.28;
  color: var(--ink);
}
.display--xl { font-size: 30px; }
.display--lg { font-size: 26px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  height: 22px;
  min-width: 30px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.lede { margin-top: 14px; font-size: 16px; line-height: 1.78; color: var(--ink-2); }
.body { font-size: 15.5px; line-height: 1.76; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.meta { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.num { font-variant-numeric: tabular-nums; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--calm { background: var(--mint-soft); color: var(--mint-ink); }
.tag--plain { background: var(--surface-2); color: var(--ink-3); }

.notice {
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}
.notice strong { display: block; color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.notice--soft { background: var(--surface-2); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .16s, border-color .16s, transform .16s;
}
.btn--primary {
  background-color: var(--brand);
  background-image: var(--g-primary);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn--primary:active {
  background-image: none;
  background-color: var(--brand-ink);
  box-shadow: none;
  transform: none;
}
.btn--outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--sh-1);
}
.btn--outline:active { background: var(--surface-3); }
.btn--quiet { color: var(--ink-3); font-weight: 600; padding: 0 4px; }
.btn--quiet:active { color: var(--ink); }
.btn--accent { background: var(--rose); color: #fff; }
.btn--block { display: flex; width: 100%; height: 52px; font-size: 17px; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn--sm.btn--block { height: 44px; }
.btn[disabled] { opacity: .36; pointer-events: none; }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:active .btn__arrow { transform: translateX(2px); }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: .16s var(--ease);
}
.chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.field { margin-top: 20px; }
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-1);
}
.switch__text { flex: 1; min-width: 0; }
.switch__text strong { display: block; font-size: 15px; font-weight: 600; }
.switch__text small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  flex: 0 0 auto;
  width: 48px; height: 28px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  transition: background .2s var(--ease);
  cursor: pointer;
}
.switch__track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(58, 42, 24, .22);
  transition: transform .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }

.page-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.page-brand span { font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.page-brand small { font-size: 12.5px; }

.legal--boxed {
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-3);
}
.result__legal { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  z-index: var(--z-toast);
  max-width: min(86vw, 420px);
  padding: 12px 18px;
  border-radius: 10px;
  background: #2C251C;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.micro {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translate(-50%, 0);
  z-index: 50;
  padding: 9px 16px;
  border-radius: 10px;
  background: #2C251C;
  color: #fff;
  font-size: 13.5px;
  pointer-events: none;
  animation: micro 950ms var(--ease) both;
}
@keyframes micro {
  0%   { opacity: 0; transform: translate(-50%, 8px); }
  18%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

/* 弹层 */
.sheet-backdrop {
  position: absolute; inset: 0;
  z-index: var(--z-sheet);
  background: rgba(46, 34, 20, .38);
  animation: fade .2s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: calc(var(--z-sheet) + 1);
  padding: 12px var(--pad) max(26px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px -24px rgba(58, 42, 24, .38);
  animation: sheetIn .26s var(--ease) both;
}
@keyframes sheetIn {
  from { transform: translateY(22px); opacity: .8; }
  to   { transform: none; opacity: 1; }
}
.sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 18px; }
.sheet__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.sheet__lede { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* ------------------------------------------------------------- 05 · 落地页 */
.hero {
  position: relative;
  margin: -20px calc(var(--pad) * -1) 0;
  padding: 22px var(--pad) 30px;
  background: linear-gradient(180deg, #FCF7ED 0%, #F7F3EA 78%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  color: var(--ink);
}

.credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--ink-3);
}
.credit i { font-style: normal; color: var(--line-2); }
.credit em { font-style: normal; font-weight: 600; color: var(--ink-2); }

/* 首页限时提示：纸面上唯一一块实心品牌色，位置最高、对比最强 */
.promo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: var(--r-md);
  background: var(--brand);
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .55);
  color: #FFFFFF;
}
.promo i {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}
.promo b {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 已完成测评：首屏显著位置的报告入口 */
.report-cta {
  position: relative;
  margin-top: 16px;
  padding: 16px 16px 16px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--brand-line);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.report-cta::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand);
}
.report-cta__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-cta__flag {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 12.5px;
  font-weight: 700;
}
.report-cta__top strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.report-cta__meta { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.hero .report-cta .btn-row { margin-top: 14px; }
.hero .report-cta .btn-row > .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; }
.report-cta__wx {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  background: var(--amber-soft);
  border: 1px solid #F0DDBA;
  font-size: 13.5px;
  line-height: 1.7;
  text-wrap: pretty;
  color: var(--ink-2);
}
.report-cta__wx b { color: var(--amber-ink); font-weight: 700; }
.report-cta__wx-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.report-cta__copy {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--brand-ink);
}
.hero__title {
  text-wrap: pretty;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  color: var(--brand);
}
.hero__lede {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.hero .notice {
  margin-top: 18px;
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.hero .notice strong { color: var(--ink); }
.hero .notice--soft { background: var(--surface-2); border-color: var(--line); }
.hero .btn--outline { background: var(--surface); }
.hero .btn--quiet { color: var(--ink-3); }
.hero .btn-row { margin-top: 12px; }
.hero .btn-row .btn { flex: 0 0 auto; }

.home-note {
  position: relative;
  margin-top: 24px;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-2);
}
.home-note h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.home-note p { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

.home-legal { margin-top: 18px; font-size: 13px; line-height: 1.72; color: var(--ink-3); }


/* ------------------------------------------------------------- 06 · 引导 */
/* 四维抽象刻度：四条基线 + 四个落点，替代原来的旋转彩环 */
.intro__art {
  position: relative;
  height: 112px;
  margin-top: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.intro__glyph {
  position: relative;
  width: 212px;
  height: 66px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) 0 2px / 212px 2px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 22px / 168px 2px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 42px / 196px 2px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 62px / 144px 2px no-repeat;
}
.intro__glyph::before {
  content: '';
  position: absolute;
  left: 74px; top: -1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    40px 20px 0 0 #6366F1,
    22px 40px 0 0 #A5B4FC,
    58px 60px 0 0 #C7D2FE;
}
.intro__glyph i, .intro__glyph b { display: none; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.dim-primer {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.dim-primer h2 { font-size: 18px; font-weight: 700; }
.dim-primer__lead { margin-top: 8px; font-size: 14.5px; line-height: 1.75; color: var(--ink-3); }
.dim-primer__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.dim-primer__row:first-of-type { margin-top: 16px; }
.dim-primer__row > b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--brand-ink);
}
.dim-primer__row strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.dim-primer__row p { margin-top: 5px; font-size: 14px; line-height: 1.72; color: var(--ink-3); }

/* ------------------------------------------------------------- 07 · 答题 */
.view:has(> .quiz) { display: flex; flex-direction: column; }
.quiz { padding-top: 2px; }
.view:has(> .quiz) > .quiz { flex: 1; display: flex; flex-direction: column; }
/* 题目不多时把「题干 + 选项」这组垂直居中，避免下半个屏幕空着 */
.view:has(> .quiz) > .quiz > .q__chapter,
.view:has(> .quiz) > .quiz > .fun-badge { margin-top: auto; }
.view:has(> .quiz) > .quiz > .q__hint,
.view:has(> .quiz) > .quiz > .likert { margin-bottom: auto; }
.view:has(> .quiz) > .quiz > .quiz__foot { margin-top: 0; }

.progress { margin-bottom: 24px; }
.progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}
.progress__meta b {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 2px 9px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.ruler { display: none; }
.progress__bar {
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.progress__bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
  transition: width .4s var(--ease);
}
.progress__nodes {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.q__chapter {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand-ink);
}
.q__chapter::before {
  content: '';
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.q__scene {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.q__scene i {
  flex: 0 0 auto;
  width: 4px; height: 4px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--ink-3);
}

.q__stem {
  margin: 16px 0 22px;
  text-wrap: pretty;
  font-size: 21px;
  line-height: 1.58;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: .16s var(--ease);
}
.opt__key {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--ink-3);
  transition: .16s var(--ease);
}
.opt__text { flex: 1; font-size: 16px; line-height: 1.62; color: var(--ink); font-weight: 400; }
.opt__check {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  opacity: 0;
  transition: .16s var(--ease);
}
.opt__check svg { width: 12px; height: 12px; }
.opt.is-picked {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.opt.is-picked .opt__key { background: var(--brand); color: #fff; }
.opt.is-picked .opt__check { opacity: 1; background: var(--brand); border-color: var(--brand); color: #fff; }

.q__hint { font-size: 13.5px; color: var(--ink-3); }

.likert__rows { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.likert__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 92px;
  padding: 12px 3px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: .16s var(--ease);
}
.likert__btn b { font-size: 17px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.likert__btn small { font-size: 12px; line-height: 1.35; color: var(--ink-3); text-align: center; }
.likert__btn.is-picked {
  background: var(--brand);
  border-color: var(--brand);
}
.likert__btn.is-picked b, .likert__btn.is-picked small { color: #fff; }
.likert__anchors { display: none; }

.tidbit {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.tidbit b {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--brand-ink);
}

.quiz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}
.quiz__foot .btn--quiet { font-size: 14px; }

.fun-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.quiz.q--fun .progress { opacity: .6; }

/* ------------------------------------------------------------- 08 · 状态页 */
.state { padding-top: 4px; }

.state__glyph {
  position: relative;
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.state__glyph::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.state__glyph::after,
.state__glyph b { display: none; }
.state__glyph i { display: none; }
.state--warn .state__glyph { background: var(--rose-soft); border-color: #F0D3C8; }
.state--warn .state__glyph::before { background: var(--rose); }

.state__title { text-wrap: pretty; margin-top: 12px; font-size: 26px; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; }
.state__text { margin-top: 12px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.state__list { margin-top: 22px; }
.state__list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.state__list li i {
  flex: 0 0 auto;
  padding-top: 2px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand-ink);
}

.view:has(> .gen) { display: flex; flex-direction: column; }
.gen {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0 60px;
}
.gen__ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin-bottom: 22px;
  background: conic-gradient(from 0deg, rgba(79, 70, 229, 0) 0deg, var(--brand) 300deg, rgba(79, 70, 229, 0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 26px, #000 27px);
  mask: radial-gradient(circle, transparent 26px, #000 27px);
  animation: spinSlow 1.6s linear infinite;
}
.gen__ring i, .gen__ring b { display: none; }
.gen__label { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.gen__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 24px; }
.gen__steps span {
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.gen__steps .is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.cal-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--card-line);
  box-shadow: var(--sh-2);
  transition: .16s var(--ease);
}
.cal-card p { font-size: 16px; line-height: 1.7; color: var(--ink); }
.cal-card .chips { margin-top: 12px; }
.cal-card.is-answered { border-color: var(--brand); background: var(--brand-soft); }

/* ------------------------------------------------------------- 09 · 报告 */
.report { padding-top: 2px; }

.report__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.report__title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.report__date { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 结果主卡：白卡 + 品牌色顶边，取代原来的深色舞台 */
.core {
  position: relative;
  padding: 24px 20px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-2);
  color: var(--ink);
}
.core__label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.type-code {
  margin-top: 10px;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  font-family: var(--font-num);
}
.type-tag { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--brand-ink); }

.portrait {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.portrait__label { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.portrait__text { margin-top: 6px; font-size: 16px; line-height: 1.72; color: var(--ink); }

.score-line { margin-top: 26px; }
.score-line__label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}

.dim { margin-top: 16px; }
.dim__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
/* 下方已有 E 80 / I 20 的读数，这里只留维度名，避免重复 */
.dim__label b { display: none; }
.dim__axis {
  position: relative;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--surface-3);
}
.dim__axis::before {
  content: '';
  position: absolute;
  left: 50%; top: -3px;
  width: 1px; height: 10px;
  background: var(--line-2);
}
.dim__fill {
  position: absolute;
  top: 0; height: 100%;
  border-radius: 2px;
  background: var(--brand);
}
.dim__dot {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  transform: translateY(-50%);
}
.dim__value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.dim__value b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.dim__value span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dim.is-mid .dim__fill { background: var(--ink-4); }
.dim.is-mid .dim__dot { background: var(--ink-4); box-shadow: 0 0 0 1px var(--ink-4); }

.top1 {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.top1__label { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--brand-ink); }
.top1__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.top1__name { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.top1__match {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  white-space: nowrap;
  font-family: var(--font-num);
}
.top1__match small { font-size: 14px; font-weight: 600; }
.top1__why { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--ink-3); }
.top1__first {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-2);
}
.top1__first b { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.top1__first span { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

.credit--result {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.share-callout { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }

/* 章节导航 */
.report__nav {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 16px calc(var(--pad) * -1) 0;
  padding: 10px var(--pad);
  background: rgba(247, 243, 234, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.report__nav-title { display: none; }
.report__nav-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
}
.report__nav-list::-webkit-scrollbar { display: none; }
.report__nav-item {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: .16s var(--ease);
}
.report__nav-item.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* 章节 */
.chapter { margin-top: 38px; scroll-margin-top: 62px; }
.chapter__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.chapter__no {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.chapter__head h2 { text-wrap: pretty; font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.4; flex: 0 1 auto; }
.chapter__head::after {
  content: '';
  flex: 1 1 auto;
  min-width: 16px;
  height: 1px;
  background: var(--line);
}

/* 人格解释 */
.type-explain {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-2);
}
.type-explain__head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.type-explain__code {
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--brand);
  font-family: var(--font-num);
}
.type-explain__head strong { display: block; font-size: 16px; font-weight: 600; }
.type-explain__head p { margin-top: 6px; font-size: 14.5px; line-height: 1.72; color: var(--ink-3); }

.te-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.te-h::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--brand); }
.te-dims { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.te-dim {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 10px;
  background: var(--surface-2);
}
.te-dim > b {
  flex: 0 0 auto;
  min-width: 80px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--brand-ink);
}
.te-dim span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.te-dim p { margin-top: 4px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.te-p { margin-top: 10px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.te-fun {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

/* 四维细读 */
.dd {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-2);
}
.dd__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dd__name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.dd__name i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 2px 6px;
  border-radius: 5px;
}
.dd__score {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dd__what { margin-top: 14px; font-size: 16px; line-height: 1.72; font-weight: 600; color: var(--ink); }
.dd__story { margin-top: 8px; font-size: 15px; line-height: 1.76; color: var(--ink-3); }
.dd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.dd__cell { padding: 13px; border-radius: 10px; background: var(--mint-soft); }
.dd__cell:nth-child(2) { background: var(--amber-soft); }
.dd__cell b { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--mint-ink); }
.dd__cell:nth-child(2) b { color: var(--amber-ink); }
.dd__cell p { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.dd__tip {
  margin-top: 12px;
  padding: 13px;
  border-radius: 10px;
  border: 1px dashed var(--line-2);
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
}
.dd__tip b { color: var(--brand-ink); font-weight: 600; }
.dd__fun { margin-top: 10px; font-size: 14px; line-height: 1.72; color: var(--ink-3); }
.dd__meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

/* 岗位卡 */
.job-card {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-2);
}
.job-card__head { display: flex; align-items: flex-start; gap: 12px; }
.job-card__idx {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}
.job-card__title { flex: 1; min-width: 0; }
.job-card__title h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.job-card__title p { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.job-card__match {
  flex: 0 0 auto;
  text-align: right;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.job-card__match b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-family: var(--font-num);
}
.job-card__match small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.job-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.job-card__body { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.jb { padding: 14px; border-radius: 10px; background: var(--surface-2); }
.jb h4 { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--ink-3); }
.jb p { font-size: 15px; line-height: 1.74; color: var(--ink-2); }
.jb ul { display: flex; flex-direction: column; gap: 7px; }
.jb li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.72; color: var(--ink-2); }
.jb li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}
.jb--friction { background: var(--amber-soft); }
.jb--friction h4 { color: var(--amber-ink); }
.jb--friction p { color: #78350F; }
.jb--code { padding: 0; background: none; font-size: 12.5px; color: var(--ink-3); }
.jb__sub { margin-top: 8px; font-size: 13.5px; line-height: 1.68; color: var(--ink-3); }

.path { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.path:first-of-type { padding-top: 0; border-top: 0; }
.path b { flex: 0 0 48px; font-size: 13px; font-weight: 700; color: var(--brand-ink); padding-top: 2px; }
.path span { display: flex; flex-direction: column; gap: 3px; }
.path i { font-style: normal; font-size: 14.5px; line-height: 1.68; color: var(--ink-2); }

.kw { display: flex; flex-wrap: wrap; gap: 6px; }
.kw span { font-size: 13px; font-weight: 500; padding: 4px 9px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }

/* 薪酬 */
.salary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.salary__head b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.salary__head span { font-size: 12.5px; color: var(--ink-3); }
.salary__rows { display: flex; flex-direction: column; gap: 6px; }
.salary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}
.salary__row b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.salary__source { margin-top: 10px; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }
.salary--none .salary__none { font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* 再往外看 / 需要投入 */
.mini-job {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-1);
}
.mini-job > div { flex: 1; min-width: 0; }
.mini-job h3 { font-size: 16px; font-weight: 600; }
.mini-job p { margin-top: 4px; font-size: 14px; line-height: 1.66; color: var(--ink-3); }
.mini-job .btn { flex: 0 0 auto; }
.mini-job .btn--quiet { padding: 0 10px; height: 34px; font-size: 14px; color: var(--brand); font-weight: 600; }

/* 通用能力 */
.skill-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-1);
}
.skill-row i {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--surface-3);
  color: var(--ink-3);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.skill-row strong { font-size: 15.5px; font-weight: 600; }
.skill-row p { margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }

/* 接下来 30 天 */
.next-step {
  padding: 20px;
  border-radius: var(--r-lg);
  color: var(--ink);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.next-step__label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--brand-ink); }
.next-step h3 { margin-top: 8px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.next-step ol { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.next-step li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.next-step li i {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.next-step p { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }

.later { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.later div { padding: 15px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.later b { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--brand-ink); }
.later p { margin-top: 6px; font-size: 14px; line-height: 1.68; color: var(--ink-3); }

/* 两次对比 */
.compare {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-color: var(--card-line);
  box-shadow: var(--sh-2);
}
.compare h3 { font-size: 16px; font-weight: 700; }
.compare__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.compare__row b { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.compare__row small { font-size: 12.5px; color: var(--ink-3); }

/* 题库行 */
.bankrow { padding: 16px 0; border-top: 1px solid var(--line); }
.bankrow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bankrow__head b { font-size: 13.5px; font-weight: 700; color: var(--brand-ink); }
.bankrow__head span { font-size: 12.5px; color: var(--ink-3); text-align: right; }
.bankrow__stem { margin-top: 7px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.bankrow__params { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.bankrow__params > div { padding: 9px; border-radius: 8px; background: var(--surface-2); }
.bankrow__params dt { font-size: 12.5px; color: var(--ink-3); }
.bankrow__params dd { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- 10 · 岗位档案 */
.detail__hero {
  position: relative;
  margin: -20px calc(var(--pad) * -1) 0;
  padding: 24px var(--pad) 24px;
  background: linear-gradient(180deg, #FCF7ED 0%, #F7F3EA 78%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  color: var(--ink);
}
.detail__code { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.detail__title { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.detail__alias { margin-top: 8px; font-size: 14px; line-height: 1.66; color: var(--ink-3); }
.detail__match {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 13px;
  border-radius: 9px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.detail__match b {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-family: var(--font-num);
}
.detail__match span { font-size: 12.5px; letter-spacing: .02em; color: var(--brand-ink); }

.section { margin-top: 28px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.section__index {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 3px 7px;
  border-radius: 5px;
}
.section > .jb, .section .jb {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.section > .path {
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

/* ------------------------------------------------------------- 11 · 分享 / 盲盒 */
.share-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.share-preview__brand { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.share-preview__code {
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--brand);
  font-family: var(--font-num);
}
.share-preview__dims { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px; margin-top: 14px; }
.share-preview__dims span { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.share-preview__dims b {
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.share-preview__name { margin-top: 16px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.share-preview__line { margin-top: 5px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.share-preview__credit { font-size: 12.5px; color: var(--ink-3); }
.share-preview__legal { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.share-preview__folio { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.share-preview__qr { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.share-preview__qr img { width: 54px; height: 54px; border-radius: 9px; background: #fff; display: block; }
.share-preview__qr span { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* 长按保存浮层 */
.saver {
  margin-top: 14px;
  padding: 10px;
  max-height: 56vh;
  overflow: auto;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.saver img { width: 100%; height: auto; border-radius: 8px; display: block; -webkit-touch-callout: default; -webkit-user-select: none; user-select: none; }

/* 图片版报告：长图 / 分段图 */
.saver--report { max-height: 62vh; }
.saver__seg-label {
  margin: 14px 2px 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}
.saver__seg-label:first-child { margin-top: 2px; padding-top: 0; border-top: 0; }
.saver--report img + img { margin-top: 4px; }

.share-guide__arrow { font-size: 20px; color: var(--brand); margin-bottom: 10px; }
.share-guide__lead { font-size: 16px; font-weight: 600; line-height: 1.6; }
.share-guide__sub { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }
.share-guide__foot { margin-top: 14px; font-size: 13px; line-height: 1.65; color: var(--ink-3); }

.blindbox {
  padding: 22px;
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.blindbox__q {
  padding: 22px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
}
.blindbox__hint { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.blindbox__reveal h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.blindbox .btn--outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.blindbox .eyebrow { color: var(--ink-3); }

/* ------------------------------------------------------------- 13 · 适配 */
@media (min-width: 560px) {
  :root { --pad: 22px; }
  .hero__title { font-size: 36px; }
  .type-code { font-size: 60px; }
}

@media (min-width: 720px) {
  body {
    display: grid;
    place-items: center;
    background: #E6DBC9;
  }
  .screen {
    width: 460px;
    height: min(920px, 100dvh);
    border-radius: 22px;
    border: 1px solid rgba(58, 42, 24, .1);
    box-shadow: 0 30px 70px -40px rgba(58, 42, 24, .38);
  }
  .toast { position: fixed; }
}

@media (max-width: 340px) {
  .type-code { font-size: 48px; }
  .hero__title { font-size: 30px; }
  .q__stem { font-size: 19.5px; }
  .likert__btn small { font-size: 11.5px; }
  .intro__glyph { transform: scale(.86); }
}

/* ------------------------------------------------------------- 14 · 动效降级 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
body[data-motion="off"] *,
body[data-motion="off"] *::before,
body[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}
body[data-motion="off"] .scroll { scroll-behavior: auto; }

/* ------------------------------------------------------------- 15 · 打印 */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; display: block; }
  .screen { height: auto; max-height: none; width: auto; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .scroll { overflow: visible; display: block; }
  .view { padding: 0; }
  .appbar, .dock, .report__nav, .toast, .page-brand, .skip-link { display: none !important; }
  .core, .next-step, .share-preview, .job-card, .dd, .type-explain, .detail__hero {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .chapter { break-inside: avoid; }
}
