/* ============================================================
   宝妈返岗自查 — 样式
   移动优先；无外部字体 / 图片 / 框架依赖
   ============================================================ */

:root {
  --paper: #f3ecdd;
  --paper-2: #fbf6ea;
  --paper-3: #e9deca;
  --ink: #201d18;
  --ink-2: #57503f;
  --ink-3: #6d6455;
  --line: rgba(32, 29, 24, 0.14);
  --line-strong: rgba(32, 29, 24, 0.24);
  --terra: #a9452f;
  --terra-deep: #87341f;
  --moss: #3c5a50;
  --gold: #b28a4c;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 30px 70px -40px rgba(58, 44, 30, 0.55), 0 6px 20px -12px rgba(58, 44, 30, 0.25);
  --shadow-soft: 0 18px 44px -30px rgba(58, 44, 30, 0.4);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(1100px 680px at 88% -8%, #fdf7ea 0%, rgba(253, 247, 234, 0) 62%),
    radial-gradient(900px 640px at -12% 38%, #e9dcc4 0%, rgba(233, 220, 196, 0) 58%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}

html.modal-open, body.modal-open { overflow: hidden; }

::selection { background: rgba(169, 69, 47, 0.2); }

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

a { color: inherit; }

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

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 300;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-align: center;
}

/* ---------- 通用元素 ---------- */

.view {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) 20px calc(26px + var(--safe-bottom));
}

.view.is-entering { animation: viewIn 0.55s var(--ease-out) both; }

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.eyebrow__line {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--light { color: rgba(250, 244, 232, 0.65); }

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: transform 0.16s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 18px 34px -22px rgba(38, 33, 27, 0.9);
}

.btn--soft {
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--light { background: var(--paper-2); color: var(--ink); }
.btn--outline-light { border: 1px solid rgba(250, 244, 232, 0.35); color: var(--paper-2); }
.btn--text { color: rgba(250, 244, 232, 0.7); padding-inline: 10px; }
.btn--text:active { color: #fff; }

.btn--start { padding: 16px 26px; font-size: 15px; }
.btn__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(250, 244, 232, 0.14);
  font-size: 14px;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.ghost-btn span[aria-hidden] { font-size: 15px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-2);
  background: rgba(255, 253, 247, 0.7);
  transition: transform 0.16s var(--ease), background 0.2s;
}
.icon-btn:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--terra); transform: translateY(-2px); }
  .btn--primary:hover .btn__arrow { transform: translateX(3px); background: rgba(255, 255, 255, 0.2); }
  .btn--soft:hover { background: #fff; border-color: var(--line-strong); }
  .btn--light:hover { background: #fff; transform: translateY(-2px); }
  .btn--outline-light:hover { border-color: rgba(250, 244, 232, 0.7); background: rgba(250, 244, 232, 0.08); }
  .ghost-btn:hover { color: var(--ink); }
  .icon-btn:hover { background: #fff; }
  .note:hover .note__no { color: var(--terra); }
}

/* ---------- 首页 ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1;
  transform: rotate(-18deg);
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand__text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}

.head-link {
  min-height: 44px;
  padding: 6px 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.hero {
  display: grid;
  gap: 34px;
  padding: 22px 0 8px;
}

.hero__copy { max-width: 620px; }

.hero__title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 0.98;
}
.hero__title-small {
  display: block;
  margin-bottom: 10px;
  padding-left: 0.12em;
  font-family: var(--sans);
  font-size: clamp(18px, 4.6vw, 24px);
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--ink-3);
}
.hero__title-big {
  display: block;
  font-size: clamp(3.5rem, 15.5vw, 6.6rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero__dot { color: var(--terra); }

.hero__lede {
  margin-top: 22px;
  font-size: clamp(16px, 4.2vw, 20px);
  line-height: 1.7;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.hero__hint {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.hero__visual { min-width: 0; }

.scene-card {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.6);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.1deg);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
  will-change: transform;
}

.scene-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: #2f2a22;
}

.scene-card__frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-card__tag {
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(28, 24, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 250, 240, 0.9);
  font-size: 10px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.scene-card__no {
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.hero__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.hero__caption span { color: var(--terra); margin-right: 4px; }

.hero__copy > * { animation: riseIn 0.8s var(--ease-out) both; }
.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.36s; }
.hero__visual { animation: riseIn 1s 0.2s var(--ease-out) both; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.notes {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.notes__intro h2 {
  margin-top: 12px;
  max-width: 22em;
  font-family: var(--serif);
  font-size: clamp(24px, 6.2vw, 34px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.notes__grid {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.note { padding-top: 14px; border-top: 1px solid var(--line); }
.note__no {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  transition: color 0.3s;
}
.note h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.note p {
  margin-top: 9px;
  max-width: 26em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

.site-foot {
  margin-top: 64px;
  padding: 24px 0 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 2;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.site-foot__brand {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.site-foot__brand span { padding-inline: 6px; color: var(--ink-3); }

/* ---------- 测试 ---------- */

.view--quiz {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 780px;
  padding-bottom: calc(18px + var(--safe-bottom));
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 14px;
}

.quiz-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
}
.quiz-count strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.progress {
  position: relative;
  height: 3px;
  border-radius: 99px;
  background: rgba(38, 33, 27, 0.1);
  overflow: hidden;
}
.progress__fill {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), var(--terra));
  transition: width 0.55s var(--ease-out);
}

.quiz-stage {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 26px 0 30px;
}

.question-card {
  position: relative;
  width: 100%;
  padding: clamp(22px, 5.4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.94);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.question-card.is-in { animation: cardIn 0.5s var(--ease-out) both; }
.question-card.is-in-back { animation: cardInBack 0.5s var(--ease-out) both; }
.question-card.is-out { animation: cardOut 0.22s var(--ease) both; }

@keyframes cardIn {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes cardInBack {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes cardOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-18px); }
}

.question-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 160, 106, 0.16), transparent 68%);
  pointer-events: none;
}

.question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.question-kicker {
  padding-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--terra-deep);
}

.question-ghost {
  font-family: var(--serif);
  font-size: clamp(48px, 12vw, 76px);
  font-weight: 700;
  line-height: 0.75;
  color: var(--ink);
  opacity: 0.07;
  letter-spacing: -0.02em;
}

.question-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(23px, 5.6vw, 32px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.question-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  min-height: 62px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.72);
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  transition: border-color 0.18s, background 0.18s, transform 0.16s var(--ease), box-shadow 0.18s;
  animation: optionIn 0.45s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}

@keyframes optionIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.option__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.option__text { padding-top: 1px; }

.option.is-selected {
  border-color: var(--terra);
  background: rgba(169, 69, 47, 0.07);
  box-shadow: 0 0 0 1px var(--terra) inset, 0 12px 26px -22px rgba(163, 77, 48, 0.8);
}
.option.is-selected .option__mark {
  border-color: var(--terra);
  background: var(--terra);
  color: #fff8ef;
  transform: scale(1.06);
}

.option.is-locked { pointer-events: none; }

.options.is-locked .option:not(.is-selected) { opacity: 0.45; }

.quiz-foot {
  font-size: 10.5px;
  text-align: center;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- 结果 ---------- */

.view--result {
  max-width: 900px;
  padding-bottom: calc(30px + var(--safe-bottom));
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 16px;
}
.brand--small .brand__text { font-size: 14px; }
.brand--small .brand__mark { width: 23px; height: 23px; font-size: 11px; }

.result-wrap { animation: riseIn 0.7s var(--ease-out) both; }

.result-hero {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  overflow: hidden;
  border-radius: 28px;
  background: #2a241c;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.result-scene { position: absolute; inset: 0; }
.result-scene svg { width: 100%; height: 100%; }

.result-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 15, 11, 0.18) 0%, rgba(18, 15, 11, 0) 28%, rgba(18, 15, 11, 0) 48%, rgba(18, 15, 11, 0.62) 82%, rgba(18, 15, 11, 0.86) 100%);
}

.result-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 5vw, 34px);
  color: var(--room-ink, #faf4e8);
}

.result-no {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(12, 10, 8, 0.45);
}

.result-title h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(40px, 10.5vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.result-en {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.result-tagline {
  max-width: 25em;
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
}

.result-stamp {
  position: absolute;
  top: 20px;
  right: 18px;
  padding: 8px 5px;
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 3px;
  color: rgba(255, 250, 240, 0.72);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  opacity: 0.9;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 22px;
}

.keyword {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.6);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.keyword:first-child {
  border-color: rgba(169, 69, 47, 0.3);
  background: rgba(169, 69, 47, 0.08);
  color: var(--terra-deep);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.66);
  padding: 20px;
  box-shadow: 0 14px 38px -34px rgba(58, 44, 30, 0.5);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.panel__head h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.panel__head > span {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: right;
}

.panel__foot {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.axes { margin-top: 18px; }

.axis + .axis { margin-top: 19px; }

.axis__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.axis__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.axis__ends {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.axis__track {
  position: relative;
  height: 2px;
  margin: 12px 7px 9px;
  border-radius: 99px;
  background: rgba(38, 33, 27, 0.12);
}
.axis__dot {
  position: absolute;
  top: 50%;
  left: calc(var(--v, 0.5) * 100%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--terra);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(169, 69, 47, 0.13), 0 2px 5px rgba(38, 33, 27, 0.22);
  transition: left 0.9s var(--ease-out);
}
.axis__poles {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.result-grid {
  display: grid;
  gap: 13px;
  margin-top: 13px;
}

.r-block { position: relative; padding-top: 22px; }
.r-index {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  color: var(--terra-deep);
  letter-spacing: 0.1em;
}
.r-block h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.r-block p {
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.panel--objects,
.panel--palette { margin-top: 13px; }

.object-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.object-list li {
  position: relative;
  padding: 11px 0 11px 20px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.object-list li::before {
  content: "◌";
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 11px;
  color: var(--terra);
  opacity: 0.75;
}

.palette-row {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}
.palette-chip {
  flex: 1;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(38, 33, 27, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.neighbor-line {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
.neighbor-line strong { color: var(--ink-2); font-weight: 600; }

.share-cta {
  position: relative;
  margin-top: 13px;
  padding: clamp(24px, 5vw, 34px);
  border-radius: 26px;
  background:
    radial-gradient(520px 260px at 105% -20%, rgba(194, 160, 106, 0.3), transparent 62%),
    radial-gradient(420px 240px at -10% 110%, rgba(169, 69, 47, 0.24), transparent 60%),
    #26211b;
  color: var(--paper-2);
  overflow: hidden;
}

.share-cta__copy h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 6.4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.share-cta__copy > p:last-child {
  max-width: 30em;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(250, 244, 232, 0.66);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.share-actions .btn--text { flex-basis: 100%; justify-content: flex-start; padding-left: 2px; }

.result-disclaimer {
  max-width: 42em;
  margin: 24px auto 0;
  font-size: 10px;
  line-height: 1.9;
  text-align: center;
  color: var(--ink-3);
}

/* ---------- 房间文案 ---------- */

.room-quote {
  margin-top: 13px;
  padding: 28px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(194, 160, 106, 0.13), transparent 70%),
    rgba(255, 252, 246, 0.62);
  text-align: center;
}
.room-quote p {
  max-width: 24em;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.room-quote p::before { content: "「"; color: var(--terra); }
.room-quote p::after { content: "」"; color: var(--terra); }
.room-quote span {
  display: block;
  margin-top: 13px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

/* ---------- 分享弹层 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: end center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 15, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s var(--ease) both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 18px calc(18px + var(--safe-bottom));
  border-radius: 26px 26px 0 0;
  background: var(--paper-2);
  box-shadow: 0 -20px 70px -30px rgba(0, 0, 0, 0.5);
  animation: sheetUp 0.45s var(--ease-out) both;
}

@keyframes sheetUp {
  from { opacity: 0.6; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.modal__kicker {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.modal__head h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.share-preview {
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-3);
  box-shadow: var(--shadow-soft);
  min-height: 200px;
}
.share-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.share-note {
  margin-top: 12px;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.modal__actions .btn { flex: 1 1 130px; }

.share-fallback {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(169, 69, 47, 0.08);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--terra-deep);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  z-index: 400;
  max-width: min(90vw, 360px);
  padding: 10px 17px;
  border-radius: 999px;
  background: rgba(38, 33, 27, 0.95);
  color: var(--paper-2);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 场景微动效 ---------- */

.scene-dust {
  animation: drift 7s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
.scene-dust.d2 { animation-duration: 9s; animation-delay: -2s; }
.scene-dust.d3 { animation-duration: 11s; animation-delay: -4s; }
.scene-dust.d4 { animation-duration: 8s; animation-delay: -1s; }

@keyframes drift {
  from { opacity: 0.15; transform: translateY(2px); }
  to { opacity: 0.65; transform: translateY(-9px); }
}

/* ---------- 响应式 ---------- */

.only-desk { display: none; }

@media (min-width: 700px) {
  .view { padding: calc(20px + var(--safe-top)) 34px calc(34px + var(--safe-bottom)); }
  .hero { grid-template-columns: 1.04fr 0.96fr; align-items: center; gap: 44px; padding: 38px 0 16px; }
  .hero__visual { margin-top: -10px; }
  .hero__title-big { font-size: clamp(4.6rem, 8.4vw, 6.8rem); }
  .only-desk { display: initial; }
  .notes { margin-top: 88px; padding-top: 44px; display: grid; grid-template-columns: 0.85fr 1.35fr; gap: 40px; }
  .notes__grid { margin-top: 6px; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .note { padding-top: 16px; }
  .site-foot { margin-top: 80px; }
  .site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
  .site-foot__brand { flex-basis: 100%; }
  .quiz-stage { padding: 40px 0 50px; }
  .result-hero { aspect-ratio: 16 / 11; max-height: none; }
  .result-title h1 { font-size: clamp(48px, 6.4vw, 64px); }
  .result-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .object-list { grid-template-columns: repeat(3, 1fr); }
  .object-list li { padding: 13px 16px; border-top: 0; border-left: 1px dashed var(--line); }
  .object-list li:first-child { border-left: 0; padding-left: 0; }
  .modal { place-items: center; padding: 24px; }
  .modal__panel { border-radius: 26px; padding: 22px; max-height: 90dvh; }
  .share-actions .btn--text { flex-basis: auto; margin-left: auto; }
}

@media (min-width: 980px) {
  .hero { padding-top: 56px; }
  .scene-card { transform: rotate(-1.4deg); }
  .result-hero { border-radius: 32px; }
}

@media (hover: hover) and (pointer: fine) {
  .option:hover {
    border-color: var(--line-strong);
    background: #fffefb;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -20px rgba(58, 44, 30, 0.45);
  }
  .option.is-selected:hover { border-color: var(--terra); }
  .scene-card:hover { transform: rotate(0deg) translateY(-4px); }
}

@media (max-width: 359px) {
  .hero__title-big { font-size: 3.15rem; }
  .option { font-size: 14px; padding: 14px; }
  .share-actions .btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scene-dust { animation: none; opacity: 0.3; }
}

/* 首页场景在桌面端的轻微视差 */
.scene-card__frame svg {
  transform: scale(1.035) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.5s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .scene-card__frame svg { transform: none; }
}

.result-stamp {
  background: rgba(20, 16, 12, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.room-quote p { text-wrap: balance; }

/* 标题只用于把屏幕阅读器焦点带到新题目，不显示视觉焦点框 */
.question-title:focus,
.question-title:focus-visible { outline: none; }

.result-title h1:focus,
.result-title h1:focus-visible { outline: none; }

/* ============================================================
   宝妈返岗自查 — 新增结果区块
   指数仪表 / 账本 / 动作 / 风险提示
   ============================================================ */

.panel--index,
.panel--bill,
.panel--actions { margin-top: 13px; }

.axis__note {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-align: right;
  max-width: 58%;
}

/* ---------- 指数 ---------- */
.index-block {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.index-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.index-score strong {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.index-score span {
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--terra-deep);
  background: rgba(169, 69, 47, 0.09);
  border: 1px solid rgba(169, 69, 47, 0.22);
}

.index-score strong[data-band="go"] { color: #3c5a50; }
.index-score strong[data-band="edge"] { color: #8a6725; }
.index-score strong[data-band="fix"] { color: var(--terra-deep); }
.index-score strong[data-band="stop"] { color: var(--ink-3); }

.index-score p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 32ch;
}

.index-parts {
  display: grid;
  gap: 13px;
  align-content: start;
}

.ipart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.ipart__head em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ipart__track {
  height: 4px;
  margin: 7px 0 5px;
  border-radius: 99px;
  background: rgba(32, 29, 24, 0.1);
  overflow: hidden;
}
.ipart__track i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--terra));
  transition: width 0.8s var(--ease-out);
}
.ipart__hint {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

@media (min-width: 720px) {
  .index-block {
    grid-template-columns: minmax(180px, 0.9fr) 1.4fr;
    gap: 34px;
    align-items: center;
  }
}

/* ---------- 账本 ---------- */
.bill-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.bill-list li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 3px 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.bill-list li:first-child { border-top: 0; padding-top: 0; }
.bill-list__k {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  align-self: baseline;
}
.bill-list__v { font-size: 15px; font-weight: 600; color: var(--ink); }
.bill-list__n { grid-column: 2; font-size: 12px; color: var(--ink-2); }

/* ---------- 动作 ---------- */
.action-list {
  counter-reset: act;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.action-list li {
  counter-increment: act;
  position: relative;
  padding-left: 40px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}
.action-list li::before {
  content: counter(act);
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--terra-deep);
  background: rgba(169, 69, 47, 0.08);
  border: 1px solid rgba(169, 69, 47, 0.2);
}

/* ---------- 风险提示 ---------- */
.risk-line {
  margin: 13px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--terra);
  border-radius: 0 14px 14px 0;
  background: rgba(169, 69, 47, 0.06);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}
.risk-line strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--terra-deep);
}

@media (prefers-reduced-motion: reduce) {
  .ipart__track i, .axis__dot { transition: none; }
}

/* 窄屏：面板标题与右侧说明改为上下两行，避免挤在一起 */
@media (max-width: 430px) {
  .panel__head { flex-wrap: wrap; gap: 3px; }
  .panel__head > span { flex-basis: 100%; text-align: left; }
  .index-score strong { font-size: 64px; }
  .bill-list li { grid-template-columns: 72px 1fr; }
}
