:root {
  --bg: #FAF9F5;
  --card: #FFFFFF;
  --card-2: #F3F1EA;
  --border: #E6E4DD;
  --text: #141413;
  --muted: #87867F;
  --orange: #D97757;
  --orange-soft: #F6E4DB;

  /* ABC 三类题的主题色：浅蓝 / 浅红 / 浅绿 */
  --a: #7DAEE0; --a-deep: #3F78B5; --a-tint: #EDF4FB;
  --b: #EC968E; --b-deep: #BF5348; --b-tint: #FCEEEC;
  --c: #86C796; --c-deep: #3D8C53; --c-tint: #EBF6EE;

  --serif: 'Instrument Serif', 'Newsreader', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
  --sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.serif { font-family: var(--serif); }
[hidden] { display: none !important; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .2s var(--ease-out), background .2s, opacity .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--orange); }
.btn-primary:disabled { background: #CFCDC5; color: #fff; cursor: not-allowed; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 13px; font-weight: 500; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- 顶部进度线 ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 30px;
  pointer-events: none;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.progress.show { opacity: 1; transform: none; }
.progress::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(var(--bg) 40%, rgba(250, 249, 245, 0));
}
.progress-svg { position: absolute; left: 0; top: 4px; width: 100%; height: 18px; overflow: visible; }
.progress-track { fill: none; stroke: var(--border); stroke-width: 2; }
.progress-line { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.progress-text {
  position: absolute; right: 14px; top: 12px;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
  background: var(--bg); padding: 0 6px; border-radius: 8px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 980px; margin: 0 auto; padding: 72px 24px;
  pointer-events: none;
}
.hero-inner .btn, .hero-inner a { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.brand-name { font-family: var(--serif); font-size: 20px; }
.brand-name em { color: var(--muted); font-style: italic; margin-left: 4px; }
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 7.4vw, 76px);
  line-height: 1.15; letter-spacing: -.01em;
  margin: 0 0 22px;
  text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg);
}
.hero-sub { font-family: var(--serif); font-size: clamp(18px, 2.6vw, 24px); margin: 0 0 6px; text-shadow: 0 0 10px var(--bg); }
.hero-meta { color: var(--muted); margin: 0 0 34px; font-size: 14px; text-shadow: 0 0 8px var(--bg); }
.hero-tip { color: var(--muted); font-size: 13px; margin-top: 22px; opacity: .8; }

/* ---------- 问卷 ---------- */
.survey { max-width: 780px; margin: 0 auto; padding: 24px 16px 40px; }
.q-block { padding: 34px 0; }
.q-head { display: flex; align-items: baseline; gap: 12px; }
.q-no {
  flex: none;
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--m-deep, var(--orange));
  min-width: 30px;
}
.q-title { flex: 1; font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2.6vw, 21px); line-height: 1.5; margin: 0; }
.q-value {
  flex: none; font-family: var(--serif); font-size: 26px; color: var(--orange);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: transform .25s var(--ease-out);
}
.q-value.bump { transform: scale(1.12); }
.q-hint { color: var(--muted); font-size: 14px; margin: 6px 0 0 42px; }
.q-hint.italic { font-style: italic; }

/* Q0 角色卡 */
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.role-card {
  position: relative; text-align: left;
  /* button 默认把内容垂直居中，说明多折一行的卡片就会和别的卡片错位，这里统一顶部对齐 */
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 22px;
  transition: border-color .25s, background .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.role-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -14px rgba(20, 20, 19, .3); }
.role-card .rc-key { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--m); }
.role-card .rc-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 18px; margin-top: 10px; }
.role-card .rc-desc { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; word-break: keep-all; }
.role-card svg { position: absolute; left: 14px; right: 14px; bottom: 8px; width: calc(100% - 28px); height: 12px; overflow: visible; }
.role-card svg path { fill: none; stroke: var(--m); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease-out); }
.role-card .rc-check {
  position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 13px; color: #fff;
  transition: background .2s, border-color .2s;
}
.role-card[aria-checked="true"] { border-color: var(--m); background: var(--m-tint); }
.role-card[aria-checked="true"] svg path { stroke-dashoffset: 0; }
.role-card[aria-checked="true"] .rc-check { background: var(--m-deep); border-color: var(--m-deep); }

/* 模块容器：平滑展开 */
.module-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.module-wrap.open { grid-template-rows: 1fr; }
.module-wrap > .module { overflow: hidden; min-height: 0; }
.module { position: relative; padding-left: 26px; }
.module-thread { position: absolute; left: 4px; top: 40px; bottom: 30px; width: 12px; overflow: visible; }
.module-thread path { fill: none; stroke: var(--m); stroke-width: 2.5; stroke-linecap: round; opacity: .8; }
.module-head { padding: 40px 0 0; display: flex; align-items: center; gap: 10px; }
.module-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--m-deep); background: var(--m-tint); border: 1px solid var(--m);
  padding: 3px 12px; border-radius: 999px;
}
.module-title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0; }
.module .q-block { border-bottom: 1px dashed var(--border); }
.module .q-block:last-child { border-bottom: 0; }

/* 滑块：轨道本身是一根会随数值起伏的线 */
.slider { position: relative; height: 56px; margin: 26px 0 0 42px; }
.slider-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sl-rest { fill: none; stroke: #D9D6CC; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.sl-fill { fill: none; stroke: var(--m); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.slider input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: grab;
  touch-action: pan-y;
}
.slider input:active { cursor: grabbing; }
.slider input:focus { outline: none; }
.slider input::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.slider input::-moz-range-track { height: 100%; background: transparent; }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: 15px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--text); box-shadow: 0 2px 8px rgba(20, 20, 19, .18);
  transition: border-color .2s, transform .2s var(--ease-out);
}
.slider input::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--text); box-shadow: 0 2px 8px rgba(20, 20, 19, .18);
}
.slider.active input::-webkit-slider-thumb, .slider input:focus-visible::-webkit-slider-thumb { border-color: var(--orange); transform: scale(1.15); }
.slider.active input::-moz-range-thumb { border-color: var(--orange); }
.slider-bubble {
  position: absolute; top: -22px; transform: translateX(-50%) translateY(6px) scale(.9);
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity .2s, transform .25s var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.slider-bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px;
  background: var(--orange); transform: translateX(-50%) rotate(45deg); border-radius: 1px;
}
.slider.active .slider-bubble { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.slider-scale { display: flex; justify-content: space-between; gap: 16px; margin: 2px 0 0 42px; font-size: 12px; color: var(--muted); }
.slider-scale span { transition: color .2s, font-weight .2s; max-width: 48%; }
.slider-scale span:last-child { text-align: right; }
.slider-scale span.near { color: var(--text); font-weight: 600; }
.q-sem {
  margin: 14px 0 0 42px; min-height: 44px;
  background: var(--m-tint); border-left: 3px solid var(--m);
  border-radius: 4px 12px 12px 4px; padding: 10px 14px;
  font-size: 15px; overflow: hidden;
}
.q-sem span { display: inline-block; animation: semIn .35s var(--ease-out); }
@keyframes semIn { from { opacity: 0; transform: translateY(10px); } }

/* 多选标签 */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0 42px; }
.tag {
  text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 14px; font-size: 14px; line-height: 1.5;
  transition: border-color .2s, background .2s, opacity .2s, transform .2s var(--ease-out);
}
.tag:hover { border-color: var(--m); }
.tag[aria-pressed="true"] { background: var(--m-tint); border-color: var(--m-deep); color: var(--m-deep); font-weight: 500; }
.tag[aria-pressed="true"]::before { content: '✓ '; }
.tag.dim { opacity: .45; }
.tag.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tag-count { font-size: 13px; color: var(--muted); margin: 10px 0 0 42px; }
.other-input {
  display: block; width: calc(100% - 42px); margin: 12px 0 0 42px;
  border: 0; border-bottom: 2px solid var(--m); background: transparent;
  font: inherit; padding: 8px 2px; outline: none;
}

.submit-zone { text-align: center; padding: 56px 0 20px; }
.submit-hint { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- 结果页 ---------- */
.result { padding: 40px 16px 60px; }
.result-inner { max-width: 960px; margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--muted); margin: 0 0 14px; text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 32px; margin-bottom: 20px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

.score-card { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.score-ring { position: relative; width: 220px; height: 220px; }
.score-ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--card-2); stroke-width: 10; stroke-linecap: round; }
.ring-line { fill: none; stroke: var(--orange); stroke-width: 10; stroke-linecap: round; }
.score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-num { font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.score-label { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .1em; }
.score-title { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.35; margin: 0 0 12px; }
.score-comment { color: #3D3D3A; font-size: 17px; line-height: 1.8; margin: 0 0 20px; }
.module-scores { display: grid; gap: 10px; }
.ms-row { display: grid; grid-template-columns: 96px 1fr 34px; gap: 12px; align-items: center; font-size: 13px; }
.ms-row svg { width: 100%; height: 12px; overflow: visible; }
.ms-row path.track { fill: none; stroke: var(--card-2); stroke-width: 6; stroke-linecap: round; }
.ms-row path.fill { fill: none; stroke: var(--m); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); }
.ms-row b { font-family: var(--serif); font-size: 18px; color: var(--m-deep); text-align: right; font-weight: 600; }

.bills { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.bills li {
  background: var(--m-tint); border-left: 3px solid var(--m); border-radius: 6px 18px 18px 6px;
  padding: 16px 20px; font-size: 16px; line-height: 1.75;
}
.bills li strong { color: var(--orange); font-family: var(--serif); font-size: 1.25em; }

.hook {
  margin: 0 0 20px; padding: 26px 30px;
  background: var(--card-2); border-radius: 24px; position: relative;
  font-size: 18px; line-height: 1.85;
}
.hook::before {
  content: '“'; position: absolute; left: 14px; top: -14px;
  font-family: var(--serif); font-size: 72px; color: var(--orange); line-height: 1;
}

/* 彩蛋画布 */
.egg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.egg-head .btn { flex: none; white-space: nowrap; }
.egg-desc { margin: 0 0 18px; color: #3D3D3A; font-size: 15px; }
.egg-desc .ca { color: var(--a-deep); } .egg-desc .cb { color: var(--b-deep); } .egg-desc .cc { color: var(--c-deep); }
.egg-body { display: grid; grid-template-columns: 1fr 168px; gap: 14px; }
.egg-stage {
  position: relative; height: 380px; border-radius: 16px; overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(circle, #E3E0D6 1px, transparent 1.2px);
  background-size: 22px 22px;
  border: 1px solid var(--border);
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: crosshair;
}
.egg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.egg-tools { position: absolute; inset: 0; pointer-events: none; }
.egg-tool {
  position: absolute; pointer-events: auto;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  background: var(--text); color: var(--bg); border: 0; border-radius: 999px;
  font-size: 13px; font-weight: 600; padding: 6px 14px; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(20, 20, 19, .45);
  transition: transform .35s var(--ease-out), opacity .25s, background .2s;
}
.egg-tools.in .egg-tool { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.egg-tool:hover { background: var(--orange); }
.egg-tool:disabled { background: #CFCDC5; cursor: not-allowed; }
.egg-undo, .egg-redo { width: 38px; height: 38px; padding: 0; font-size: 18px; }
.egg-pop {
  position: absolute; pointer-events: auto; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; box-shadow: 0 10px 28px -10px rgba(20, 20, 19, .35);
  animation: popIn .3s var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateX(-50%) scale(.85); } }
.egg-pop .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); padding: 0; }

.egg-layers { display: flex; flex-direction: column; gap: 8px; }
.egg-layers .lh { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.layer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; text-align: left;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; font-size: 13px;
  transition: border-color .2s, background .2s, opacity .2s;
}
.layer-row .eye { width: 18px; text-align: center; color: var(--muted); }
.layer-row .lname { flex: 1; white-space: nowrap; }
.layer-row .lcount { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.layer-row .lthumb { display: block; flex: 0 0 100%; height: 3px; border-radius: 2px; }
.layer-row.off { opacity: .45; }
.layer-row.flash { border-color: var(--orange); background: var(--orange-soft); }
.egg-status { font-size: 13px; color: var(--muted); margin: 12px 0 0; min-height: 1.6em; }
.egg-status b { color: var(--orange); }

/* 如果我当时…… */
.story-card { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; padding: 40px; }
.story-slot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; min-height: 120px; }
.slot-prefix { font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; color: var(--text); white-space: nowrap; }
.slot-window { position: relative; flex: 1; min-width: 240px; height: 96px; overflow: hidden; }
.slot-item {
  position: absolute; inset: 0; display: flex; align-items: center;
  font-family: var(--serif); font-style: italic; color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5;
  animation: slotUp var(--d, .3s) var(--ease-out) both;
}
.slot-item.out { animation: slotOut var(--d, .3s) ease-in both; }
@keyframes slotUp { from { opacity: 0; transform: translateY(70%); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes slotOut { to { opacity: 0; transform: translateY(-70%); filter: blur(2px); } }
.slot-final {
  position: absolute; inset: 0; display: flex; align-items: center;
  font-family: var(--serif); font-weight: 700; font-style: normal;
  color: var(--orange); font-size: clamp(36px, 5.4vw, 54px); white-space: nowrap;
  animation: finalIn .9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slot-final .ul { position: absolute; left: 0; bottom: 8px; width: 100%; height: 14px; overflow: visible; }
.slot-final .ul path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 1s .5s var(--ease-out) forwards; }
@keyframes finalIn { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.slot-replay {
  position: absolute; left: 0; bottom: -28px; border: 0; background: none;
  font-size: 12px; color: var(--muted); padding: 0; opacity: 0; transition: opacity .3s;
}
.slot-replay.show { opacity: 1; }
.slot-replay:hover { color: var(--orange); }

.qr-box { text-align: center; }
.qr-frame {
  width: 190px; height: 190px; margin: 0 auto; padding: 8px;
  border: 1.5px solid var(--orange); border-radius: 18px; background: #262626;
  display: grid; place-items: center;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; display: block; }
.qr-fallback svg { width: 100%; height: 100%; }
.qr-title { font-size: 17px; font-weight: 600; margin: 14px 0 2px; white-space: nowrap; }
.qr-sub { color: var(--orange); font-size: 14px; letter-spacing: .2em; margin: 0 0 10px; }
.qr-group { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline dotted; padding: 0; }
.qr-group:hover { color: var(--orange); }

.result-actions { text-align: center; padding-top: 18px; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 16px 40px; }

/* ---------- 调试/导出 ---------- */
.debug-dot {
  position: fixed; right: 10px; bottom: 10px; z-index: 60;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted); font-size: 10px; opacity: .25; padding: 0;
  transition: opacity .2s;
}
.debug-dot:hover, .debug-dot.show { opacity: 1; }
.debug-panel {
  position: fixed; right: 10px; bottom: 50px; z-index: 60;
  width: min(440px, calc(100vw - 20px)); max-height: 60vh; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px;
  box-shadow: 0 18px 40px -16px rgba(20, 20, 19, .35);
}
.debug-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.debug-row strong { flex: 1; font-size: 13px; }
.debug-json { flex: 1; overflow: auto; font-size: 11px; background: var(--bg); border-radius: 8px; padding: 10px; margin: 10px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-size: 14px; padding: 9px 18px; border-radius: 999px;
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  transition: opacity .25s, transform .3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 模块主题色 */
[data-mod="A"] { --m: var(--a); --m-deep: var(--a-deep); --m-tint: var(--a-tint); }
[data-mod="B"] { --m: var(--b); --m-deep: var(--b-deep); --m-tint: var(--b-tint); }
[data-mod="C"] { --m: var(--c); --m-deep: var(--c-deep); --m-tint: var(--c-tint); }

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  .hero-inner { padding: 64px 20px; }
  .role-cards { grid-template-columns: 1fr; }
  .module { padding-left: 18px; }
  .module-thread { left: 0; }
  .q-head { flex-wrap: wrap; gap: 4px 10px; }
  .q-title { flex-basis: calc(100% - 42px); }
  .q-value { margin-left: 40px; font-size: 22px; }
  .q-hint, .tags, .tag-count, .q-sem, .slider, .slider-scale { margin-left: 0; }
  .other-input { margin-left: 0; width: 100%; }
  .q-no { min-width: 0; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .score-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .score-ring { width: 190px; height: 190px; }
  .score-body { width: 100%; text-align: left; }
  .egg-body { grid-template-columns: 1fr; }
  .egg-stage { height: 340px; }
  .egg-layers { display: grid; grid-template-columns: 1fr 1fr; }
  .egg-layers .lh { grid-column: 1 / -1; }
  .layer-row { font-size: 12px; padding: 7px 9px; }
  .story-card { grid-template-columns: 1fr; padding: 28px 18px 36px; gap: 40px; }
  .story-slot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .slot-window { width: 100%; min-width: 0; height: 110px; }
  .hook { padding: 22px 20px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 彩蛋入口：结尾「记艺线」三个字 */
.egg-trigger {
  cursor: pointer; border-radius: 8px; padding: 0 2px;
  transition: background .2s;
  animation: eggHint 2.6s 1.6s ease-in-out infinite;
}
.egg-trigger:hover, .egg-trigger:focus-visible { background: var(--orange-soft); outline: none; }
@keyframes eggHint { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 16px rgba(217, 119, 87, .5); } }
