/* ===== 人生电脑 · 理想创造实验室（明亮主题） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --l0: #8b3fd9;
  --l1: #e07b1a;
  --l2: #1a86d9;
  --l3: #14a25c;
  --l4: #0e9db8;
  --ink: #1c2534;
  --ink-dim: #5c6a80;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #dfe6ee;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

#scene { position: fixed; inset: 0; display: block; }

.hidden { opacity: 0 !important; pointer-events: none !important; }

/* ===== 开场遮罩（场景在背后实时渲染，海报式排版） ===== */
#intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(12,16,28,0) 38%, rgba(12,16,28,.34) 70%, rgba(10,13,24,.62) 100%);
  transition: opacity 1.2s ease;
  cursor: pointer;
}
.intro-inner {
  max-width: 680px; padding: 0 6vw 7.5vh;
  text-align: left; color: #f2f5fa;
  text-shadow: 0 2px 18px rgba(8,12,22,.55);
}
/* 逐行浮现 */
.intro-inner > * { opacity: 0; animation: rise .9s cubic-bezier(.2,.8,.3,1) forwards; }
.intro-inner > *:nth-child(1) { animation-delay: .15s; }
.intro-inner > *:nth-child(2) { animation-delay: .35s; }
.intro-inner > *:nth-child(3) { animation-delay: .6s; }
.intro-inner > *:nth-child(4) { animation-delay: .85s; }
.intro-inner > *:nth-child(5) { animation-delay: 1.05s; }
.intro-inner > *:nth-child(6) { animation-delay: 1.2s; }
.intro-inner > *:nth-child(7) { animation-delay: 1.35s; }
.intro-inner > *:nth-child(8) { animation-delay: 1.55s; }
.intro-inner > *:nth-child(9) { animation-delay: 1.7s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro-legend {
  margin-top: 24px;
  display: flex; justify-content: flex-start; gap: 16px; flex-wrap: wrap;
}
.intro-legend span {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .08em; color: rgba(232,238,247,.82);
}
.intro-legend i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}
.intro-kicker {
  letter-spacing: .5em; font-size: 12px; color: #ffd9a8;
  margin-bottom: 18px;
}
#intro h1 {
  font-size: clamp(48px, 8vw, 78px);
  font-weight: 800; letter-spacing: .14em; color: #ffffff;
}
.intro-sub { margin-top: 16px; font-size: 18px; color: #e8edf5; }
.intro-sub strong {
  background: linear-gradient(120deg, #8b3fd9, #1a86d9, #14a25c);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-text { margin-top: 16px; font-size: 14.5px; line-height: 1.95; color: rgba(232,238,247,.88); }
.intro-text.dim { color: rgba(210,220,233,.62); }
#enterBtn {
  margin-top: 32px; padding: 14px 40px;
  font-size: 16px; letter-spacing: .25em;
  color: #fff; background: linear-gradient(120deg, #1a86d9, #0e9db8);
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 134, 217, .35);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: rise .9s cubic-bezier(.2,.8,.3,1) forwards, btnPulse 2.6s ease-in-out 2s infinite;
}
#enterBtn span { font-size: 11px; letter-spacing: .08em; opacity: .75; margin-left: 8px; }
#enterBtn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 36px rgba(26,134,217,.5); }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(26,134,217,.35); }
  50% { box-shadow: 0 8px 38px rgba(26,134,217,.75); }
}
.intro-hint { margin-top: 22px; font-size: 12px; color: rgba(200,212,228,.55); letter-spacing: .2em; }
.intro-quiz { margin-top: 14px; }
#quizLink {
  background: none; border: none; cursor: pointer;
  color: rgba(255, 217, 168, .9); font-size: 14px; letter-spacing: .12em;
  border-bottom: 1px solid rgba(255, 217, 168, .45);
  padding: 2px 2px 4px; font-family: inherit;
  transition: color .2s ease, border-color .2s ease;
}
#quizLink:hover { color: #ffd9a8; border-color: #ffd9a8; }

/* ===== 自检答题 ===== */
#quiz {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(26,20,48,.86), rgba(44,62,112,.82));
  backdrop-filter: blur(6px);
  transition: opacity .4s ease;
}
#quizTower {
  display: flex; flex-direction: column-reverse; gap: 6px;
  align-items: flex-start; margin-bottom: 26px;
}
#quizTower i {
  width: 108px; height: 9px; border-radius: 5px;
  background: rgba(255,255,255,.12);
  transition: background .3s ease, box-shadow .3s ease;
}
#quizTower i.cur { background: rgba(255,255,255,.32); animation: barBlink 1s ease-in-out infinite; }
#quizTower i.lit { background: var(--c); box-shadow: 0 0 12px var(--c); }
@keyframes barBlink { 50% { background: rgba(255,255,255,.58); } }
.confetti {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  z-index: 90; pointer-events: none;
  animation: confettiFly .75s ease-out forwards;
}
@keyframes confettiFly {
  to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
#mascotLive {
  position: absolute;
  cursor: grab;
  touch-action: none;
}
#posterCard { position: relative; }
#quizCard {
  width: min(560px, calc(100vw - 32px));
  max-height: 92vh; overflow-y: auto;
  padding: 30px 30px 22px;
}
#quizTop {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 26px;
}
#quizStep { font-size: 13px; letter-spacing: .25em; color: rgba(255,255,255,.5); }
#quizClose {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
  color: rgba(255,255,255,.7); font-size: 18px; cursor: pointer;
}
#quizClose:hover { background: rgba(255,255,255,.1); }
.quiz-q {
  font-size: 23px; line-height: 1.7; color: #fff; font-weight: 700;
  margin-bottom: 26px;
  animation: rise .5s cubic-bezier(.2,.8,.3,1) forwards;
}
.quiz-opt {
  display: block; width: 100%; text-align: left;
  margin-bottom: 12px; padding: 16px 20px;
  border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  border-left: 3px solid var(--c, #1a86d9);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.6;
  font-family: inherit;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  opacity: 0; animation: rise .45s cubic-bezier(.2,.8,.3,1) forwards;
}
.quiz-opt:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.quiz-opt.picked { background: rgba(255,255,255,.18); border-color: var(--c, #1a86d9); }
.quiz-note {
  margin-top: 18px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.35); letter-spacing: .2em;
}

/* ===== 自检海报 ===== */
#posterWrap {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 13, 24, .88);
  backdrop-filter: blur(8px);
  transition: opacity .4s ease;
}
#posterCard {
  width: min(430px, calc(100vw - 32px));
  max-height: 94vh; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
}
#posterImg {
  width: 100%; border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: rise .6s cubic-bezier(.2,.8,.3,1) forwards;
}
#posterBtns {
  display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center;
}
#posterBtns button {
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  font-size: 14px; font-family: inherit; letter-spacing: .06em;
  transition: background .2s ease, transform .2s ease;
}
#posterBtns button:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
#posterBtns button.primary {
  background: linear-gradient(120deg, #1a86d9, #0e9db8);
  border: none; color: #fff;
  box-shadow: 0 8px 24px rgba(26,134,217,.4);
}
.poster-tip { margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .15em; }

/* 总结面板里的自检入口 */
.p-quiz-entry { margin-top: 20px; }
.quiz-cta {
  width: 100%; padding: 15px 20px;
  border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(120deg, #8b3fd9, #1a86d9, #0e9db8);
  color: #fff; font-size: 15px; letter-spacing: .08em;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(139, 63, 217, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.quiz-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139,63,217,.5); }

/* ===== 顶部标题 ===== */
#hud-title {
  position: fixed; top: 22px; left: 28px; z-index: 20;
  transition: opacity .8s ease; pointer-events: none;
}
#hud-title .t1 { font-size: 20px; font-weight: 700; letter-spacing: .12em; }
#hud-title .t1 span { font-size: 11px; color: #7a8aa0; letter-spacing: .3em; margin-left: 8px; }
#hud-title .t2 { margin-top: 6px; font-size: 11px; color: #7a8aa0; letter-spacing: .15em; }

/* ===== 连接线 ===== */
#connector {
  position: fixed; inset: 0; z-index: 29;
  width: 100%; height: 100%;
  pointer-events: none;
  transition: opacity .4s ease;
}
#connPath { fill: none; stroke: #1a86d9; stroke-width: 2; stroke-dasharray: 7 6; stroke-linecap: round; }
#connDot { fill: #1a86d9; }

/* ===== 详情面板（明亮玻璃） ===== */
#panel {
  position: fixed; top: 50%; right: 28px; z-index: 30;
  transform: translateY(-50%);
  width: min(440px, calc(100vw - 56px));
  max-height: 80vh; overflow-y: auto;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(28, 37, 52, .08);
  border-left: 5px solid var(--accent, #1a86d9);
  border-radius: 18px;
  padding: 30px 30px 34px;
  backdrop-filter: blur(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .9, .25, 1);
  box-shadow: 0 20px 60px rgba(28, 37, 52, .22);
}
#panel.hidden { transform: translateY(-50%) translateX(70px); }
#panel::-webkit-scrollbar { width: 4px; }
#panel::-webkit-scrollbar-thumb { background: rgba(28,37,52,.2); border-radius: 2px; }
#panelClose {
  position: absolute; top: 10px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(28,37,52,.15);
  color: #7a8aa0; font-size: 16px; cursor: pointer; line-height: 1;
}
#panelClose:hover { color: var(--ink); border-color: rgba(28,37,52,.4); }

.p-kicker { font-size: 12px; letter-spacing: .3em; color: var(--accent, #1a86d9); font-weight: 700; }
.p-title { margin-top: 10px; font-size: 32px; font-weight: 800; }
.p-title small { font-size: 13px; color: #93a2b6; letter-spacing: .25em; margin-left: 10px; font-weight: 400; }
.p-sub { margin-top: 8px; font-size: 14px; color: var(--ink-dim); }
.p-q { margin-top: 20px; font-size: 15px; line-height: 1.95; color: #3c4a60; }
.p-q::before { content: "你有没有想过"; display: block; font-size: 11px; letter-spacing: .3em; color: #93a2b6; margin-bottom: 6px; }
.p-ans { margin-top: 18px; font-size: 15px; line-height: 1.95; color: var(--ink); }
.p-ans strong { color: var(--accent, #1a86d9); }
.p-action {
  margin-top: 22px; padding: 16px 18px;
  border-radius: 12px;
  background: rgba(26, 134, 217, .06);
  border: 1px dashed rgba(26, 134, 217, .35);
  font-size: 15px; line-height: 1.8;
}
.p-action::before {
  content: attr(data-layer) " 要做的事";
  display: block; font-size: 11px; letter-spacing: .3em;
  color: var(--accent, #1a86d9); margin-bottom: 6px; font-weight: 700;
}

/* ===== 小剧场字幕条 ===== */
#stageCap {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  z-index: 24;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(20, 26, 38, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--accent, #1a86d9);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(20, 26, 38, .3);
  transition: opacity .4s ease, transform .4s ease;
  white-space: nowrap;
}
#stageCap.hidden { transform: translateX(-50%) translateY(16px); }
#stageCapText { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .06em; }
#stageCapBar {
  width: 110px; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, .18); overflow: hidden;
}
#stageCapProg {
  display: block; width: 0%; height: 100%;
  background: var(--accent, #1a86d9);
  border-radius: 3px;
  transition: width .2s linear;
}
#stageCapNote { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .05em; }
#stageSkip {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: rgba(255,255,255,.85);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; cursor: pointer; font-family: inherit;
  transition: all .2s ease;
}
#stageSkip:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ===== 影院模式（小剧场黑边 + 字幕） ===== */
.cinema-bar {
  position: fixed; left: 0; right: 0; height: 7vh; z-index: 23;
  background: rgba(6, 8, 14, .94);
  transition: transform .8s cubic-bezier(.4, 0, .2, 1), opacity .5s ease;
  pointer-events: none;
}
#cinemaTop { top: 0; transform: translateY(-100%); }
#cinemaBottom { bottom: 0; transform: translateY(100%); }
.cinema-bar.on { transform: translateY(0); }
#theaterCaption {
  position: fixed; bottom: 19vh; left: 50%; transform: translateX(-50%);
  z-index: 24; max-width: min(720px, 86vw);
  font-size: 19px; line-height: 1.8; letter-spacing: .12em;
  color: #fff; text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
  transition: opacity .5s ease;
  pointer-events: none;
}
#theaterCaption::before {
  content: '“';
  color: var(--accent, #1a86d9);
  font-size: 30px; margin-right: 6px;
}
@media (max-width: 720px) {
  #theaterCaption { font-size: 15px; bottom: 14vh; }
}
@media (max-width: 720px) {
  #stageCap { bottom: auto; top: 108px; gap: 8px; padding: 8px 12px; max-width: calc(100vw - 24px); }
  #stageCapNote { display: none; }
  #stageCapBar { width: 60px; }
  #stageCapText { font-size: 12px; }
}

/* ===== 导览进度胶囊 ===== */
#stepPill {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 22; padding: 8px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(28, 37, 52, .1);
  backdrop-filter: blur(10px);
  font-size: 12px; letter-spacing: .15em; color: var(--ink-dim);
  box-shadow: 0 6px 20px rgba(28,37,52,.1);
  transition: opacity .5s ease;
  pointer-events: none; white-space: nowrap;
}
#stepPill strong { color: var(--ink); }

/* ===== 层中世界返回按钮 ===== */
#worldBack {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  z-index: 25; padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(20,26,38,.8); color: #fff;
  backdrop-filter: blur(10px);
  font-size: 13px; letter-spacing: .1em; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 24px rgba(10,14,24,.3);
  transition: opacity .4s ease, background .2s ease;
}
#worldBack:hover { background: rgba(45,58,82,.9); }
.course-tag { color: var(--c, #1a86d9); font-size: 18px; }

/* ===== 课程地图 ===== */
#mapOverlay {
  position: fixed; inset: 0; z-index: 55;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 13, 24, .85);
  backdrop-filter: blur(8px);
  transition: opacity .4s ease;
}
#mapCard {
  width: min(1080px, calc(100vw - 32px));
  max-height: 90vh; overflow-y: auto;
  padding: 26px 28px;
}
#mapTop {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .1em;
}
#mapClose {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
  color: rgba(255,255,255,.7); font-size: 18px; cursor: pointer;
}
#mapClose:hover { background: rgba(255,255,255,.1); }
#mapStages { display: block; position: relative; }
#mapView {
  position: relative; width: 100%; height: min(62vh, 560px);
  overflow: hidden; border-radius: 16px;
  cursor: grab; touch-action: none;
  background: #3a2c1a;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
#mapView.dragging { cursor: grabbing; }
#parkMap {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  border-radius: 10px;
}
#mapTip {
  position: absolute; z-index: 3;
  max-width: 260px; padding: 10px 14px;
  border-radius: 10px; pointer-events: none;
  background: rgba(30, 22, 10, .92);
  border: 1px solid var(--c, rgba(255,255,255,.2));
  color: #fff8ea; font-size: 12.5px; line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: opacity .15s ease;
}
#mapTip strong { display: block; font-size: 13px; color: var(--c, #fff); margin-bottom: 2px; }
#mapTip.hidden { opacity: 0; }
.map-stage-title {
  color: var(--c); font-size: 16px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: .08em;
}
.map-stage-title small {
  display: block; color: rgba(255,255,255,.45);
  font-size: 11px; font-weight: 400; margin-top: 4px; letter-spacing: .2em;
}
.map-gate {
  display: block; width: 100%; text-align: left;
  margin-bottom: 10px; padding: 12px 14px;
  border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid var(--c);
  background: rgba(255,255,255,.06);
  color: #fff; font-family: inherit;
  transition: background .2s ease, transform .2s ease;
}
.map-gate:hover { background: rgba(255,255,255,.13); transform: translateX(3px); }
.map-gate strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.map-gate span { display: block; font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5; }
.map-gate em { display: block; font-style: normal; font-size: 11px; color: var(--c); margin-top: 5px; }
.map-gates-back {
  display: block; margin-bottom: 10px; padding: 0;
  border: none; background: none; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: 12px; font-family: inherit;
  letter-spacing: .1em;
}
.map-gates-back:hover { color: #fff; }
.map-note { margin-top: 18px; text-align: center; color: rgba(255,255,255,.35); font-size: 12px; letter-spacing: .2em; }
@media (max-width: 720px) {
  #mapTop { font-size: 16px; }
  #mapGates { position: static; width: 100%; max-height: 40vh; margin-top: 12px; }
}

/* ===== 静音按钮 ===== */
/* ===== 悬浮工具球（FAB） ===== */
#fab {
  position: fixed; top: 20px; right: 24px; z-index: 26;
  display: flex; flex-direction: column; align-items: flex-end;
  transition: opacity .5s ease;
}
#fabMain {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(28, 37, 52, .12);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  font-size: 19px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(28,37,52,.16);
  transition: transform .25s ease;
}
#fabMain:hover { transform: scale(1.1) rotate(12deg); }
#fabMenu {
  display: flex; flex-direction: column; gap: 10px; margin-top: 10px;
}
#fabMenu button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(28, 37, 52, .12);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  font-size: 17px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(28,37,52,.12);
  opacity: 0; pointer-events: none;
  transform: translateY(-10px) scale(.55);
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), opacity .22s ease, background .3s ease;
}
#fabMenu button:hover { background: rgba(255,255,255,1); }
#fab.open #fabMenu button {
  opacity: 1; pointer-events: auto; transform: none;
}
#fab.open #fabMenu button:nth-child(1) { transition-delay: .02s; }
#fab.open #fabMenu button:nth-child(2) { transition-delay: .07s; }
#fab.open #fabMenu button:nth-child(3) { transition-delay: .12s; }
#fab.open #fabMenu button:nth-child(4) { transition-delay: .17s; }
#fab:not(.open) #fabMenu button { transition-delay: 0s; }
#rainBtn.on { background: rgba(120, 160, 210, .9); }

/* ===== 卡片内导航（现代化） ===== */
.p-nav {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(28, 37, 52, .08);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.p-nav button {
  border: none;
  background: rgba(28, 37, 52, .06);
  color: var(--ink);
  padding: 11px 20px; border-radius: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .05em; cursor: pointer;
  font-family: inherit;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.p-nav button:hover {
  transform: translateY(-2px);
  background: rgba(28, 37, 52, .1);
  box-shadow: 0 8px 18px rgba(28, 37, 52, .14);
}
.p-nav button:active { transform: translateY(0) scale(.97); }
.p-nav button.primary {
  background: var(--accent, #1a86d9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 134, 217, .35), inset 0 1px 0 rgba(255,255,255,.35);
}
.p-nav button.primary:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(26, 134, 217, .45), inset 0 1px 0 rgba(255,255,255,.35);
}
.p-nav .p-step { font-size: 12px; color: #93a2b6; letter-spacing: .1em; white-space: nowrap; }

/* ===== 悬浮提示 ===== */
#tooltip {
  position: fixed; z-index: 40; pointer-events: none;
  padding: 7px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(28, 37, 52, .12);
  border-left: 3px solid var(--accent, #1a86d9);
  color: var(--ink);
  font-size: 12px; letter-spacing: .08em;
  transform: translate(-50%, -150%);
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(28,37,52,.15);
  transition: opacity .15s ease;
}

/* ===== 底部导航 ===== */
#dock {
  position: fixed; bottom: 22px; left: 50%; z-index: 25;
  transform: translateX(-50%);
  display: flex; gap: 6px; align-items: stretch;
  padding: 8px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(28, 37, 52, .08);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(28, 37, 52, .14);
  transition: opacity .8s ease;
}
.dock-btn {
  border: none; cursor: pointer;
  background: transparent; color: var(--ink-dim);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: .08em;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: background .25s ease, color .25s ease;
  font-family: inherit;
}
.dock-btn small { font-size: 10px; letter-spacing: .12em; opacity: .75; }
.dock-btn:hover { background: rgba(28,37,52,.07); color: var(--ink); }
.dock-btn.active { color: #fff; background: #41506a; }
.dock-btn.l0.active { background: var(--l0); } .dock-btn.l1.active { background: var(--l1); }
.dock-btn.l2.active { background: var(--l2); } .dock-btn.l3.active { background: var(--l3); }
.dock-btn.l4.active { background: var(--l4); }

.dock-btn { position: relative; }
.dock-btn.seen::after {
  content: '✓';
  position: absolute; top: 2px; right: 6px;
  font-size: 9px; font-weight: 700; color: #14a25c;
}
.dock-btn.seen.active::after { color: #fff; }

/* ===== 操作提示 ===== */
#hint {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  z-index: 15; font-size: 11px; letter-spacing: .22em; color: #7a8aa0;
  transition: opacity 1s ease; pointer-events: none; white-space: nowrap;
}

@media (max-width: 720px) {
  #hud-title { top: 14px; left: 16px; }
  #hud-title .t1 { font-size: 15px; }
  #hud-title .t2 { font-size: 9px; }
  #stepPill { top: 58px; font-size: 11px; padding: 6px 14px; }
  #fab { top: 52px; right: 16px; }
  #fabMain { width: 40px; height: 40px; font-size: 16px; }
  #fabMenu button { width: 38px; height: 38px; font-size: 15px; }
  /* 面板变底部小抽屉，内容上下滑动查看 */
  #panel {
    top: auto; bottom: 78px; right: 10px; left: 10px;
    width: auto; transform: none;
    max-height: 27vh; border-radius: 16px; padding: 14px 18px 18px;
  }
  #panel::before {
    content: ''; display: block; width: 44px; height: 4px;
    border-radius: 2px; background: rgba(28,37,52,.18);
    margin: 0 auto 12px;
  }
  #panel.hidden { transform: translateY(40px); }
  .p-title { font-size: 21px; }
  .p-q, .p-ans, .p-action { font-size: 13px; }
  .p-nav button { padding: 10px 14px; font-size: 12px; }
  #connector { display: none; }
  #dock {
    bottom: 10px; gap: 2px; padding: 6px;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
  }
  .dock-btn { padding: 6px 10px; font-size: 12px; flex-shrink: 0; }
  .dock-btn small { font-size: 9px; }
  #hint { display: none; }
}
