/* =========================================================================
   创业故事导航 · 样式（竖屏 / 手机电脑自适应）
   设计语言：一条「创业之路」从街角小店走向摩天楼；玩家是主角「卿工」。
   · 身份卡置顶，强化代入；
   · 旅程节点沿竖线串联，5 个场景如漫画分镜；
   · 措辞与配色全程正向，敌人是「认知陷阱」，战胜即成长。
   ========================================================================= */

.storymap {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 14px 28px;
  background: #fff;
}

/* ---- 创业者身份卡 ---- */
.sm-identity {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.sm-avatar {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(160deg, var(--accent-soft), var(--panel-soft));
  border: 1px solid var(--line); border-radius: 14px;
}
.sm-id-text { flex: 1; min-width: 0; }
.sm-id-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.sm-id-title { color: var(--accent-deep); background: var(--accent-soft); padding: 1px 8px; border-radius: 8px; font-size: 13px; }
.sm-id-motto { font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; }
/* （顶部右侧的宠物头像 .sm-id-pet 已随宠物养成线删除，2026-10-11） */

/* ---- 章节导言 ---- */
.sm-chapter { padding: 18px 4px 6px; text-align: center; }
.sm-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 20px;
}
.sm-title { font-size: 21px; font-weight: 900; color: var(--ink); margin: 10px 0 8px; }
/* 章头点亮徽标：✅学完 N/M · 💡刷过（折叠态也看得到"领地"进度） */
.sm-ch-lit {
  display: inline-block; margin: 2px 0 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: var(--accent-deep); background: rgba(58, 107, 92, .10);
  padding: 3px 10px; border-radius: 999px;
}
/* 兴趣标记：由「卡片正反面账本」算出这一章你刷得最多、停得最久 → 章头调亮一档。
   只借金色调，不动任何状态色（✅ 点亮 / 🔒 未解锁 仍由原样式表达），也不改解锁逻辑。 */
.sm-chapter.sm-chapter-hot {
  background: linear-gradient(160deg, #FFFDF8, #FBF1DD);
  border-color: rgba(217, 164, 65, .45);
  box-shadow: 0 0 0 1px rgba(217, 164, 65, .16), 0 6px 18px rgba(217, 164, 65, .10);
}
.sm-ch-hot {
  color: #8A6410; background: rgba(217, 164, 65, .16);
  border: 1px solid rgba(217, 164, 65, .32);
}
.sm-lead { font-size: 13px; line-height: 1.7; color: var(--ink-soft); text-align: left; }

/* 章内子段标题（如第1章=教学段 / 主体战役）：与章节头拉开层次 */
.sm-stage-name {
  margin: 16px 4px 0; padding: 10px 14px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 1px;
  color: var(--accent-deep); background: var(--accent-soft);
  border-radius: 12px; border: 1px solid var(--accent-line);
}
.sm-chapter-locked .sm-title { color: var(--ink-soft); }

/* 下一片大陆待启预告（锁态） */
.sm-next-teaser {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  background: var(--panel); border: 1.5px dashed var(--line); border-radius: 16px;
  padding: 14px 16px; opacity: .8;
}
.sm-next-emoji { font-size: 26px; filter: grayscale(.3); }
.sm-next-body { flex: 1; min-width: 0; }
.sm-next-body b { font-size: 13.5px; color: var(--ink); }
.sm-next-body p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-top: 3px; }
.sm-next-lock { font-size: 16px; }

/* ---- 创业之路（竖线串联） ---- */
.sm-path { position: relative; margin-top: 14px; padding: 4px 0; }
.sm-path::before {
  content: ''; position: absolute; left: 33px; top: 30px; bottom: 46px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--accent), var(--line));
}

.sm-node {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; cursor: pointer;
  animation: smIn .45s ease both;
}
.sm-node:nth-child(1) { animation-delay: .02s; }
.sm-node:nth-child(2) { animation-delay: .08s; }
.sm-node:nth-child(3) { animation-delay: .14s; }
.sm-node:nth-child(4) { animation-delay: .20s; }
.sm-node:nth-child(5) { animation-delay: .26s; }
.sm-node:nth-child(6) { animation-delay: .32s; }
@keyframes smIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sm-node-body {
  flex: 1; min-width: 0; margin-left: 34px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 13px; box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s;
}
.sm-node:not(.locked):hover .sm-node-body { transform: translateY(-2px); box-shadow: var(--shadow); }
.sm-node:not(.locked):active .sm-node-body { transform: translateY(0); }

.sm-node-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sm-node-head b { font-size: 16px; color: var(--ink); }
.sm-tag {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  background: var(--panel-soft); color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap;
}
.sm-tag.done { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.sm-tag.depot { background: #FBF1DC; color: var(--amber); border-color: #EAD9AE; }

.sm-sit { font-size: 13px; line-height: 1.65; color: var(--ink-soft); margin-top: 7px; }

.sm-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.sm-chip-lbl { font-size: 12px; color: var(--ink-soft); }
.sm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.sm-chip small { font-size: 10px; opacity: .8; font-weight: 600; }
.sm-chip.danger { background: #FBEAE7; color: var(--danger); border: 1px solid #EFC9C0; }
.sm-chip.good { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid #C9D7E4; }

.sm-method-line { font-size: 12.5px; line-height: 1.65; color: var(--ink); margin-top: 9px; }
.sm-quote {
  font-size: 12.5px; line-height: 1.6; color: var(--accent-deep);
  margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--accent);
  font-style: italic;
}

/* 状态标记 */
.sm-done {
  position: absolute; right: 6px; top: 6px; z-index: 2;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 13px; border-radius: 50%;
}
.sm-lock {
  position: absolute; left: 16px; top: 28px; z-index: 2; font-size: 18px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
.sm-node.locked { cursor: not-allowed; }
.sm-node.locked .sm-node-body { opacity: .5; }
.sm-node.is-done .sm-node-body { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--panel)); }
.sm-node.is-done .sm-node-body::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
  border-radius: 4px; background: var(--accent);
}
.sm-node.is-done .sm-node-body { position: relative; overflow: hidden; }
/* 区域征服后的终点站：亮绿描边，不再是“灰扑扑”的尽头 */
.sm-node.conquered { cursor: default; }
.sm-node.conquered .sm-node-body { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--panel)); }
.sm-node.conquered .sm-tag.done { background: var(--accent); color: #fff; }

/* 页脚那排工具（刷全书 / 存档 / 内测全解锁 / 清空刷卡记录 / 重置进度）
   已整体搬到「我的」页，样式改由 me.css 的 .me-tool 承担，这里不再保留。 */
/* 内测/自测：清空刷卡记录（金色虚线，跟「内测全解锁」同一族语气） */


/* 抖音模式入口：本章刷（章节体内） */
.sm-dy-ch {
  display: block; margin: 0 0 10px; padding: 8px 16px;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: rgba(217, 164, 65, .10);
  border: 1px dashed rgba(217, 164, 65, .65); border-radius: 999px;
  cursor: pointer;
}
.sm-dy-ch:hover { background: rgba(217, 164, 65, .2); }
.sm-dy-ch:active { transform: translateY(1px); }

/* 多档存档管理弹窗 */
.slot-overlay {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(28, 40, 34, .5); backdrop-filter: blur(2px);
}
.slot-overlay.hidden { display: none; }
.slot-panel {
  width: min(440px, 92vw); max-height: 80vh; overflow-y: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-md);
}
.slot-head { font-size: 16px; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.slot-close { cursor: pointer; color: var(--ink-soft); font-size: 18px; }
.slot-list { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.slot-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.slot-item.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(58,107,92,.15); }
.slot-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.slot-meta { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.slot-ops { display: flex; align-items: center; gap: 6px; }
.slot-switch, .slot-del {
  font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: #fff;
}
.slot-switch { color: var(--accent); font-weight: 700; }
.slot-del { color: #c0392b; }
.slot-cur { font-size: 11px; color: var(--accent); font-weight: 700; }
.slot-empty { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 16px; }
.slot-new { display: flex; gap: 8px; margin-top: 6px; }
.slot-new-input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.slot-new-btn {
  padding: 9px 14px; font-weight: 700; color: #fff; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, var(--accent), #2c5246);
}

/* =========================================================================
   章末游戏入口（每章下方 · 学完 5 小节解锁的验收战）
   ========================================================================= */
.sm-game {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 4px 4px; padding: 13px 15px;
  background: var(--panel); border: 2px dashed var(--line);
  border-radius: 16px; cursor: not-allowed; box-shadow: var(--shadow-sm);
}
.sm-game.ready { border-color: var(--amber); border-style: solid; cursor: pointer; background: linear-gradient(180deg, var(--accent-soft), var(--panel)); }
.sm-game.ready:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sm-game.done { border-color: var(--accent); border-style: solid; cursor: default; background: linear-gradient(180deg, var(--accent-soft), var(--panel)); }
.sm-game-ico { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; font-size: 24px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px; }
.sm-game.ready .sm-game-ico, .sm-game.done .sm-game-ico { border-color: var(--amber); background: #fff8ec; }
.sm-game-body { flex: 1; min-width: 0; }
.sm-game-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sm-game-head b { font-size: 15px; color: var(--ink); }
.sm-game .sm-tag { font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--panel-soft); color: var(--ink-soft); white-space: nowrap; }
.sm-game .sm-tag.done { background: var(--accent); color: #fff; }
.sm-game-body .sm-sit { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.sm-go { font-size: 13px; font-weight: 800; color: var(--accent-deep); }

/* =========================================================================
   学习页（模拟对话框 · 逐条推进学习 + 内嵌测试）
   ========================================================================= */
.study {
  flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  padding: 0 16px;
  background: #fff;
}
.study-topbar {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto; z-index: 61;
  margin: 0 -16px 12px; padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #ECECEC;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.study-topbar .study-cbar { flex: 1; min-width: 0; margin-top: 0; }
.study-head { margin: 12px 0; }
.study-kicker { font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--accent-deep); }
.study-title { font-size: 22px; color: var(--ink); margin-top: 4px; }

/* 学习页标题行（宠物头像 .study-pet / .pet-avatar-big 已随养成线删除，2026-10-11） */
.study-title-row { display: flex; align-items: center; gap: 12px; }

.study-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }
.study-cbar { flex: 1; min-width: 0; }
.scb-label { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; letter-spacing: .3px; }
.study-cprog { height: 5px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.study-cprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--amber)); transition: width .45s ease; }

/* 连击提示（连续答对 ≥3 时显眼出现于进度条旁） */
.study-combo {
  flex: 0 0 auto; min-width: 92px; height: 30px; display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: 0 14px; border-radius: 999px; font-weight: 900;
  background: transparent; color: transparent; opacity: 0; transform: scale(.8);
  transition: opacity .2s, transform .2s, background .2s, color .2s; pointer-events: none;
}
.study-combo.show {
  opacity: 1; transform: scale(1);
  background: linear-gradient(135deg, var(--amber), #c8912f); color: #fff;
  box-shadow: 0 3px 12px rgba(217,164,65,.35);
}
.study-combo .combo-bolt { font-size: 19px; line-height: 1; filter: drop-shadow(0 0 3px rgba(255,240,180,.9)); }
.study-combo .combo-num { font-size: 15px; letter-spacing: .5px; }
.study-combo.pop { animation: comboPop .45s ease; }
.study-combo.triple { background: linear-gradient(135deg, #ffd24a, var(--amber)); animation: comboZap .55s ease; }
.study-combo.triple .combo-bolt { animation: boltFlash .55s ease; }
.study-combo.triple .combo-num { color: #fff; text-shadow: 0 0 6px rgba(255,240,180,.95); }
@keyframes comboPop {
  0% { transform: scale(.7); } 45% { transform: scale(1.22); } 100% { transform: scale(1); }
}
@keyframes comboZap {
  0% { box-shadow: 0 0 0 0 rgba(255,210,74,.7); }
  40% { box-shadow: 0 0 0 10px rgba(255,210,74,0); }
  100% { box-shadow: 0 3px 12px rgba(217,164,65,.35); }
}
@keyframes boltFlash {
  0%,100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 3px rgba(255,240,180,.9)); }
  35% { transform: scale(1.5) rotate(-12deg); filter: drop-shadow(0 0 10px rgba(255,240,180,1)); }
  70% { transform: scale(1.2) rotate(8deg); }
}
/* —— 三连击全屏闪电：从屏幕顶部贯穿到底部的竖直大闪电 —— */
.combo-lightning {
  position: fixed; left: 50%; top: 0; z-index: 96; pointer-events: none;
  width: 220px; height: 100vh;
  transform: translateX(-50%);
  display: flex; align-items: stretch; justify-content: center;
  animation: lightningStrike 1.3s cubic-bezier(.2,.8,.3,1) both;
}
/* 闪电主体：用 SVG 锯齿路径铺满整屏高度，竖直贯穿 */
.combo-lightning svg { width: 100%; height: 100%; overflow: visible; }
.combo-lightning .bolt-core {
  fill: #fff7d6;
  filter: drop-shadow(0 0 18px rgba(255,224,120,1)) drop-shadow(0 0 40px rgba(255,210,80,.85));
}
.combo-lightning .bolt-glow {
  fill: rgba(255,214,90,.55);
  filter: drop-shadow(0 0 26px rgba(255,200,70,.9));
}
/* 全屏金色闪光（一闪而过，时间拉长） */
.combo-flash {
  position: fixed; inset: 0; z-index: 94; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,242,190,.85), rgba(255,224,120,.35) 55%, transparent 80%);
  animation: comboFlash 1s ease-out both;
}
@keyframes lightningStrike {
  0%   { opacity: 0; transform: translateX(-50%) scaleY(.02); }
  8%   { opacity: 1; transform: translateX(-50%) scaleY(1); }
  20%  { opacity: .55; }
  32%  { opacity: 1; }
  50%  { opacity: .7; }
  68%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1); }
}
@keyframes comboFlash {
  0% { opacity: 0; }
  10% { opacity: .9; }
  40% { opacity: .35; }
  100% { opacity: 0; }
}
.study-chat {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 2px;
  background: transparent; border: none;
  border-radius: 0; box-shadow: none;
}
/* 内容逐条入场：从下往上淡入滑入（解决长内容“啪一下闪现”的问题）*/
@keyframes study-enter-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.study-enter {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.study-enter.study-enter-in {
  animation: study-enter-up .42s cubic-bezier(.22,.61,.36,1) both;
}
@media (prefers-reduced-motion: reduce) {
  .study-enter, .study-enter.study-enter-in { animation: none; opacity: 1; transform: none; }
}
.study-actions { margin-top: 14px; display: flex; justify-content: center; }
.study-next {
  width: 100%; padding: 14px 28px; font-size: 14px; font-weight: 600;
  color: #fff; background: #1A1A1A;
  border: none; border-radius: 8px; cursor: pointer;
  transition: all .3s ease;
}
.study-next:hover { background: #2F6BFF; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(47,107,255,.3); }
.study-next:active { transform: translateY(2px); box-shadow: none; }
.study-next.go { background: #2F6BFF; }
.study-next.go:hover { background: #1F55DB; box-shadow: 0 4px 10px rgba(47,107,255,.35); }

/* 学习页内嵌测试 —— 白底卡片，焦点高亮框 */
.study-test {
  background: #fff; border: 1px solid transparent; border-radius: 12px;
  padding: 14px 16px 16px; box-shadow: none; animation: smIn .4s ease both;
  transition: background .3s cubic-bezier(.25,.46,.45,.94), border-color .3s cubic-bezier(.25,.46,.45,.94),
              box-shadow .3s cubic-bezier(.25,.46,.45,.94), transform .3s cubic-bezier(.25,.46,.45,.94);
}
.study-test.is-current {
  background: #F7F8FA; border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0,0,0,.03); transform: translateY(-2px);
}
/* 完成块：外层只是容器（不显示框），高亮只给内层 .study-done-box，避免两层框 */
.study-test.study-done {
  background: transparent; border-color: transparent;
  box-shadow: none; transform: none;
}
.study-test.study-done.is-current {
  background: transparent; border-color: transparent;
  box-shadow: none; transform: none;
}
.study-done-box.is-current {
  background: #F7F8FA; border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0,0,0,.03); transform: translateY(-2px);
}
.study-test-kicker { font-size: 13px; font-weight: 600; color: #1A1A1A; letter-spacing: .1em; margin-bottom: 8px; }
.study-test-q { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.6; margin-bottom: 10px; }
.study-test-opts { display: flex; flex-direction: column; gap: 8px; }
.study-opt {
  text-align: left; padding: 14px 15px; font-size: 14px; line-height: 1.5;
  background: #fff; border: 1px solid #E5E5E5; border-radius: 8px;
  color: var(--ink); cursor: pointer; transition: all .2s ease;
}
.study-opt:hover { border-color: #4CA572; background: #E6F4EA; }
.study-opt.ok { border-color: #4CA572; background: #E6F4EA; color: #2F7A52; font-weight: 700; }
.study-opt.no { border-color: #d97777; background: #fdecec; }
.study-opt.locked { pointer-events: none; }
.study-done { border-top: none; }
.study-done-box {
  background: #fff; border: 1px solid transparent;
  border-radius: 12px; padding: 20px 16px; text-align: center; box-shadow: none;
  transition: background .3s cubic-bezier(.25,.46,.45,.94), border-color .3s cubic-bezier(.25,.46,.45,.94),
              box-shadow .3s cubic-bezier(.25,.46,.45,.94), transform .3s cubic-bezier(.25,.46,.45,.94);
}
.study-done-box:hover {
  background: #F7F8FA; border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0,0,0,.03); transform: translateY(-2px);
}
.study-done-ico { font-size: 40px; }
.study-done-t { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.study-done-d { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; margin-top: 6px; }
.study-done-quote {
  margin: 12px auto 0; max-width: 280px; padding: 10px 14px;
  font-size: 13px; line-height: 1.6; font-style: italic; color: #1A1A1A;
  background: #fff; border: 1px solid transparent; border-radius: 8px;
  transition: all .2s ease;
}
.study-done-quote:hover { background: #F0F5FF; border-color: #D6E4FF; color: #2F6BFF; }
.study-done-card {
  margin: 14px auto 0; max-width: 260px; padding: 12px;
  background: #fff; border: 1px solid transparent; border-radius: 12px;
  transition: background .3s cubic-bezier(.25,.46,.45,.94), border-color .3s cubic-bezier(.25,.46,.45,.94),
              box-shadow .3s cubic-bezier(.25,.46,.45,.94), transform .3s cubic-bezier(.25,.46,.45,.94);
}
.study-done-card:hover {
  background: #F7F8FA; border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0,0,0,.03); transform: translateY(-2px);
}
.study-done-card-emoji { font-size: 30px; }
.study-done-card-name { font-size: 14px; font-weight: 700; color: #1A1A1A; margin-top: 4px; }
.study-done-card-desc { font-size: 12px; color: #666666; margin-top: 3px; line-height: 1.6; }
.study-done-kn { font-size: 13px; font-weight: 700; color: #2F6BFF; margin-top: 12px; }
.study-done-box .ix-btn { margin-top: 14px; }

/* 认知战力条（机制2·多巴胺喷泉：数字跳动 +N）—— 纯平 */
.study-knbar {
  position: relative;
  margin-top: 10px; font-size: 13px; color: var(--ink-soft); font-weight: 700;
  background: #fff; border: 1px solid transparent; border-radius: 8px;
  padding: 7px 12px; text-align: center;
  transition: background .3s cubic-bezier(.25,.46,.45,.94), border-color .3s cubic-bezier(.25,.46,.45,.94);
}
.study-knbar:hover { background: #F7F8FA; border-color: #E5E5E5; }
.study-knbar b { color: var(--accent-deep); font-size: 16px; margin-left: 4px; }
.study-knbar.bump { animation: knBump .5s ease; }
@keyframes knBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); background: var(--accent-soft); }
  100% { transform: scale(1); }
}

/* 思维钩子（开战前带着问题进）—— 参考「学习页排版模版2」：白底圆角模块，hover 浅灰上浮 */
.study-hook {
  display: flex; gap: 10px; align-items: flex-start;
  background: #F7F8FA;            /* 永远显示高亮框（不受焦点追踪影响）*/
  border: 1px solid #E5E5E5;
  border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.03); animation: smIn .4s ease both;
  transition: background .3s cubic-bezier(.25,.46,.45,.94), border-color .3s cubic-bezier(.25,.46,.45,.94),
              box-shadow .3s cubic-bezier(.25,.46,.45,.94), transform .3s cubic-bezier(.25,.46,.45,.94);
}
.study-hook:hover {
  background: #fff;              /* hover 反白更突出 */
  border-color: #2F6BFF;
  box-shadow: 0 6px 16px rgba(47,107,255,.12);
  transform: translateY(-2px);
}
.study-hook-emoji { font-size: 26px; flex: 0 0 auto; }
.study-hook-body { flex: 1; min-width: 0; }
.study-hook-kicker { font-size: 12px; font-weight: 600; color: #666666; letter-spacing: .1em; text-transform: uppercase; }
.study-hook-q { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.6; margin: 4px 0; }
.study-hook-hint { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* 结构化内容块（五步框架：步骤名 + 段落/表格/列表/引用，成块输出不散落）—— 参考模板：白底圆角模块 */
.study-block {
  position: relative; overflow: hidden;
  background: #fff;            /* 纯白 */
  border: 1px solid transparent;   /* 预留边框高亮 */
  border-radius: 12px; padding: 14px 16px; box-shadow: none;
  animation: smIn .4s ease both;
  transition: background .3s cubic-bezier(.25,.46,.45,.94), border-color .3s cubic-bezier(.25,.46,.45,.94),
              box-shadow .3s cubic-bezier(.25,.46,.45,.94), transform .3s cubic-bezier(.25,.46,.45,.94);
}
.study-block:hover {
  background: #F7F8FA;            /* 极浅灰底 */
  border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
  transform: translateY(-2px);
}
.study-block .sb-kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: #fff; background: #1A1A1A;
  padding: 3px 11px; border-radius: 6px; margin-bottom: 10px;
}
.study-block .sb-p { font-size: 13.5px; line-height: 1.7; color: var(--ink); margin: 0 0 8px; }
.study-block .sb-p:last-child { margin-bottom: 0; }
.study-block .sb-table { margin: 6px 0 10px; overflow-x: auto; border-radius: 0; }
.study-block .sb-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: transparent; }
.study-block .sb-table th {
  background: #F7F8FA; color: #1A1A1A; font-weight: 600; text-align: left;
  padding: 8px 10px; white-space: nowrap; border-bottom: 2px solid #E5E5E5;
}
.study-block .sb-table td {
  padding: 7px 10px; border-top: 1px solid #EEEEEE; color: var(--ink); line-height: 1.55; vertical-align: top;
}
.study-block .sb-table tbody tr:nth-child(even) td { background: #fff; }
.study-block .sb-table tbody tr { transition: background .2s ease; }
.study-block .sb-table tbody tr:hover td { background: #F0F5FF; }
.study-block .sb-table td:first-child { font-weight: 600; color: #1A1A1A; white-space: nowrap; }
.study-block .sb-table tbody tr:hover td:first-child { color: #2F6BFF; }
.study-block .sb-list { margin: 4px 0 10px; padding-left: 4px; list-style: none; }
.study-block .sb-list li {
  position: relative; font-size: 13px; line-height: 1.6; color: var(--ink);
  padding: 6px 0 6px 20px; border-bottom: 1px solid rgba(64,50,25,.10);
}
.study-block .sb-list li:last-child { border-bottom: none; }
.study-block .sb-list li::before {
  content: ''; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: #999999;
}
.study-block .sb-quote {
  margin: 8px 0; padding: 10px 14px; font-size: 13.5px; line-height: 1.6; font-style: italic;
  color: var(--ink-soft); background: #fff;
  border: 1px solid transparent; border-radius: 8px;
  transition: all .2s ease;
}
.study-block .sb-quote:hover { background: #F0F5FF; border-color: #D6E4FF; color: #1A1A1A; }

/* 交互式思考卡（pick/write：避免单向灌输）—— 参考模板：白底圆角模块 */
.study-card {
  position: relative; overflow: hidden;
  background: #fff;            /* 纯白 */
  border: 1px solid transparent;   /* 预留边框高亮 */
  border-radius: 12px; padding: 14px; box-shadow: none;
  animation: smIn .4s ease both;
  transition: background .3s cubic-bezier(.25,.46,.45,.94), border-color .3s cubic-bezier(.25,.46,.45,.94),
              box-shadow .3s cubic-bezier(.25,.46,.45,.94), transform .3s cubic-bezier(.25,.46,.45,.94);
}
.study-card:hover {
  background: #F7F8FA;            /* 极浅灰底 */
  border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
  transform: translateY(-2px);
}
/* 刚显示出来的内容块：默认高亮框（.is-current），往上滚离开视口后由 JS 移除 */
.study-block.is-current,
.study-hook.is-current,
.study-card.is-current {
  background: #F7F8FA; border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0,0,0,.03); transform: translateY(-2px);
}
.study-card-kicker { font-size: 12px; font-weight: 600; color: #666666; letter-spacing: .1em; margin-bottom: 6px; }
.study-card-q { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.6; margin-bottom: 10px; }
.study-card-opts { display: flex; flex-direction: column; gap: 8px; }
.study-card-opt {
  text-align: left; padding: 14px 15px; font-size: 14px; line-height: 1.5;
  background: #fff; border: 1px solid #E5E5E5; border-radius: 8px;
  color: var(--ink); cursor: pointer; transition: all .2s ease;
}
.study-card-opt:hover { border-color: #4CA572; background: #E6F4EA; }
.study-card-opt:active { transform: scale(.98); }
.study-card-opt.chosen {
  border-color: #4CA572; background: #E6F4EA; color: #2F7A52; font-weight: 700;
  animation: optPop .45s ease; box-shadow: 0 0 0 3px rgba(76,165,114,.25), 0 4px 12px rgba(76,165,114,.15);
}
@keyframes optPop { 0% { transform: scale(.96); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.study-card-opt.wrong { border-color: #d97777; background: #fdecec; }
.study-card-opt.locked { pointer-events: none; opacity: .7; }
.study-card-input {
  width: 100%; min-height: 64px; resize: vertical; font-family: inherit; font-size: 14px;
  color: var(--ink); background: #fff; border: 1px solid #E5E5E5; border-radius: 8px; padding: 11px 13px;
  transition: all .2s ease;
}
.study-card-input:focus { outline: none; border-color: #2F6BFF; box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.study-card-input.empty { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217,80,80,.2); }
.study-card-submit {
  position: relative; overflow: hidden;
  margin-top: 10px; width: 100%; padding: 12px; font-size: 14px; font-weight: 600; color: #fff;
  background: #1A1A1A; border: none; border-radius: 8px; cursor: pointer;
  transition: all .3s ease;
}
.study-card-submit:hover { background: #2F6BFF; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(47,107,255,.3); }
.study-card-submit:active { transform: translateY(2px); box-shadow: none; }
.study-card-submit.fired { animation: optPop .4s ease; box-shadow: 0 0 22px rgba(47,107,255,.6); }

/* 回看思维钩子（闭环）—— 与普通钩子同模板风格，仅默认字色稍深区分 */
.study-hook-review { background: #fff; }
.study-hook-review:hover { background: #F7F8FA; }

/* 概念卡掉落动画（机制2/3：3D 翻转飘落 + 收集） */
.study-drop {
  position: fixed; left: 50%; top: 0; transform: translateX(-50%) translateY(-120%);
  z-index: 60; width: min(320px, 88vw);
  transition: transform .8s cubic-bezier(.2,.85,.25,1.2);
  cursor: pointer; perspective: 800px;
}
.study-drop.landed { transform: translateX(-50%) translateY(36vh) rotateX(0deg); }
.study-drop.gone { transform: translateX(-50%) translateY(36vh) scale(.85); opacity: 0; transition: .3s; }
.study-drop-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fffdf6, #fff3da); border: 2px solid var(--amber);
  border-radius: 18px; padding: 18px 16px; text-align: center; box-shadow: 0 14px 40px rgba(217,164,65,.5);
  animation: dropFloat 2.4s ease-in-out infinite, dropFlip .9s ease both;
}
@keyframes dropFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dropFlip { from { transform: rotateX(90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
.study-drop-shine {
  position: absolute; top: -60%; left: -30%; width: 60%; height: 220%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(18deg); animation: dropShine 2.2s ease-in-out infinite;
}
@keyframes dropShine { 0% { left: -40%; } 60%,100% { left: 130%; } }
.study-drop-emoji { font-size: 44px; animation: dropBob 1.8s ease-in-out infinite; }
@keyframes dropBob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.08); } }
.study-drop-name { font-size: 17px; font-weight: 900; color: var(--accent-deep); margin-top: 4px; }
.study-drop-rarity { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; color: #fff; background: var(--amber); padding: 2px 10px; border-radius: 999px; }
.study-drop-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 8px; }
.study-drop-tip { font-size: 12px; font-weight: 700; color: var(--accent-deep); margin-top: 10px; }

/* 完成页：认知解锁光环 + 章节征服感 */
.study-done-ring {
  width: 76px; height: 76px; margin: 0 auto 10px; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  animation: ringPulse 1.6s ease-in-out infinite;
}
.study-done-ring::before {
  content: ''; position: absolute; width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--accent); opacity: .6; animation: ringExpand 1.6s ease-out infinite;
}
@keyframes ringPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ringExpand { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.study-done-ico { font-size: 40px; animation: dropBob 1.8s ease-in-out infinite; }

/* 认知战力 +N 飘字 */
.kn-plus {
  position: absolute; top: -2px; right: -14px; font-size: 14px; font-weight: 900; color: var(--accent-deep);
  animation: knPlus 0.9s ease forwards; pointer-events: none;
}
@keyframes knPlus { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-22px); opacity: 0; } }

/* 旧的"鼓励飘字"praisePop 已废弃（交互反馈统一走底部弹窗） */

/* =========================================================================
   场景详情（开战前 · 把创业情境与书中方法讲透）
   ========================================================================= */
.scene-detail {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px 28px;
  background: #fff;
}
.sd-back {
  font-size: 13px; color: var(--ink-soft); background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; cursor: pointer;
}
.sd-back-icon {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; line-height: 1; flex: 0 0 auto;
}
.sd-back-icon:hover { background: var(--panel-soft); border-color: var(--amber); }
.sd-hero { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.sd-stage {
  width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center;
  font-size: 36px; background: var(--panel); border: 2px solid var(--accent);
  border-radius: 18px; box-shadow: var(--shadow-sm);
}
.sd-kicker { font-size: 15px; font-weight: 800; color: var(--ink); }
.sd-chapter { font-size: 12px; color: var(--accent-deep); margin-top: 3px; }

.sd-block {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.sd-lbl { font-size: 12px; font-weight: 800; color: var(--accent-deep); margin-bottom: 7px; letter-spacing: .3px; }
.sd-sit { font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.sd-problem { font-size: 15px; color: var(--ink); }
.sd-tag {
  font-size: 11px; font-weight: 700; color: var(--danger); background: #FBEAE7;
  border: 1px solid #EFC9C0; padding: 2px 9px; border-radius: 20px; margin-left: 6px;
}
.sd-gain { border-color: #C9D7E4; background: linear-gradient(180deg, var(--accent-soft), var(--panel)); }
/* 深入了解内容块（sceneDeepBlocks 输出，浅色版） */
.sd-block .dd-name { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.7; margin-bottom: 4px; }
.sd-block .dd-desc { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.sd-block .dd-tag {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; color: var(--danger); background: #FBEAE7; border: 1px solid #EFC9C0;
}
.sd-block .dd-rarity {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft);
}
.sd-block .dd-quote {
  margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--accent);
  background: var(--panel); color: var(--accent-deep); font-size: 13.5px; line-height: 1.75; font-style: italic;
}
.sd-block .dd-opt {
  margin-top: 6px; padding: 8px 10px; border-radius: 10px;
  background: #F4F1EA; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7;
}
.sd-block .dd-opt.ok { background: #E7F4EC; color: #2F6B45; font-weight: 600; }
.sd-empty { font-size: 13.5px; color: var(--ink-soft); }
.sd-card { display: flex; gap: 12px; align-items: center; }
.sd-card-emoji {
  width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center;
  font-size: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.sd-card-text b { font-size: 15px; color: var(--ink); }
.sd-card-text p { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); margin-top: 4px; }
.sd-method-line { font-size: 13px; line-height: 1.7; color: var(--ink); margin-top: 11px; }

/* 战前思考清单：用递进提问引导玩家自己推导出概念，而非直接给结论 */
.sd-checklist { list-style: none; margin: 0; padding: 0; counter-reset: chk; }
.sd-check-item {
  position: relative; padding: 10px 12px 10px 38px; margin-top: 8px;
  font-size: 13px; line-height: 1.65; color: var(--ink);
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px;
}
.sd-check-item::before {
  counter-increment: chk; content: counter(chk);
  position: absolute; left: 9px; top: 10px;
  width: 20px; height: 20px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--accent); border-radius: 50%;
}
.sd-check-item strong { color: var(--accent-deep); }

/* 清单读完后的「点破」——顺其自然地命名概念，并过渡到将获得的武器 */
.sd-reveal {
  font-size: 13.5px; line-height: 1.7; color: var(--ink);
  background: var(--panel-soft); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 10px 12px; margin-bottom: 12px;
}
.sd-reveal b { color: var(--accent-deep); }

/* 知识卡片：核心原理 / 经典案例 / 应用场景 / 使用边界（旧版预热页结构，按关拆分） */
.sd-principle, .sd-case {
  background: var(--panel-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-top: 8px;
}
.sd-principle-name, .sd-case-name {
  font-size: 13px; font-weight: 800; color: var(--accent-deep); margin-bottom: 3px;
}
.sd-principle-desc, .sd-case-desc {
  font-size: 12.5px; line-height: 1.65; color: var(--ink);
}
.sd-tips { display: flex; gap: 10px; flex-wrap: wrap; }
.sd-tip-col {
  flex: 1; min-width: 0;
  background: var(--panel-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
}
.sd-tip-col p { font-size: 12.5px; line-height: 1.65; color: var(--ink); margin: 4px 0 0; }
.sd-tip-lbl { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 2px; }
.sd-tip-apply { color: #16a34a; }
.sd-tip-warn { color: #d97706; }
.sd-quote {
  font-size: 14px; line-height: 1.65; color: var(--accent-deep); font-style: italic;
  padding: 10px 12px; background: var(--panel); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; margin-bottom: 16px;
}
.sd-go {
  width: 100%; padding: 15px; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  border: none; border-radius: 14px; cursor: pointer; box-shadow: var(--shadow);
}
.sd-go:active { transform: translateY(1px); }

/* =========================================================================
   出征前锦囊（开局两件思维武器 · 首进引导 + 回看）
   ========================================================================= */
.pouches {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px 30px;
  background: #fff;
}
.ph-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  color: var(--accent-deep); background: var(--panel);
  padding: 4px 12px; border-radius: 20px; border: 1px solid var(--line);
}
.ph-title { font-size: 21px; font-weight: 900; color: var(--ink); margin: 10px 0 6px; }
.ph-mentor { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-bottom: 8px; }
.ph-lead { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }

.ph-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0; }
@media (min-width: 620px) { .ph-cards { grid-template-columns: 1fr 1fr; } }

.ph-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  animation: smIn .45s ease both;
}
.ph-card.a { border-top: 4px solid var(--accent); }
.ph-card.b { border-top: 4px solid var(--amber); }

.ph-card-head { display: flex; align-items: center; gap: 12px; }
.ph-card-emoji {
  width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center;
  font-size: 30px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 14px;
}
.ph-tag { font-size: 11px; font-weight: 800; color: var(--accent-deep); letter-spacing: 1px; }
.ph-card.b .ph-tag { color: var(--amber); }
.ph-card-name { font-size: 18px; font-weight: 900; color: var(--ink); margin-top: 2px; }

.ph-opener {
  font-size: 13.5px; line-height: 1.6; color: var(--ink);
  background: var(--panel-soft); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 8px 11px; margin: 12px 0;
}
.ph-card.b .ph-opener { border-left-color: var(--amber); }

.ph-sec { margin-top: 10px; }
.ph-lbl {
  display: inline-block; font-size: 11px; font-weight: 800; color: #fff;
  background: var(--accent-deep); padding: 2px 10px; border-radius: 20px; margin-bottom: 5px;
}
.ph-lbl-b { background: var(--amber); }
.ph-sec p { font-size: 12.8px; line-height: 1.7; color: var(--ink-soft); }

.ph-tip {
  font-size: 12px; line-height: 1.6; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid #C9D7E4;
  border-radius: 10px; padding: 8px 11px; margin-top: 12px;
}

.ph-foot { font-size: 13px; line-height: 1.7; color: var(--ink); margin: 4px 0 16px; text-align: center; }
.ph-go {
  width: 100%; padding: 15px; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  border: none; border-radius: 14px; cursor: pointer; box-shadow: var(--shadow);
}
.ph-go:active { transform: translateY(1px); }

/* =========================================================================
   创业地图 · 审美增强（基于上方既有结构，锦上添花，不重写正常规则）
   ========================================================================= */

/* 身份卡：暖光晕 + 左侧青墨绿色条，强化“创业者名片”质感 */
.sm-identity {
  position: relative; overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(217,164,65,.14), transparent 55%),
    linear-gradient(180deg, var(--panel), var(--panel-soft));
  box-shadow: var(--shadow);
}
.sm-identity::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent) 0, var(--accent) 4px, transparent 4px);
  pointer-events: none;
}
.sm-avatar {
  border-radius: 16px;
  background: rgba(58,107,92,.10);
  border: 1.5px solid rgba(58,107,92,.22);
  box-shadow: inset 0 2px 6px rgba(58,107,92,.08);
}
.sm-id-name { letter-spacing: .3px; }
.sm-id-motto {
  font-family: "Noto Serif SC", "STSong", serif; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.sm-stat b { font-family: "Noto Serif SC", serif; }

/* 章节头：标题渐变文字 + 副标题层级 */
.sm-title {
  background: linear-gradient(90deg, var(--ink), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sm-title small {
  display: block; margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--ink-soft); -webkit-text-fill-color: var(--ink-soft);
}

/* 路径：圆点 hover 微互动（保留既有竖线 ::before） */
.sm-node { transition: transform .14s ease; }
.sm-node:not(.locked):hover { transform: translateY(-2px); }

/* 章末游戏：可挑战/已通关发光强化（既有边框色保留） */
.sm-game.ready { box-shadow: 0 6px 20px rgba(217,164,65,.18); }
.sm-game.ready:hover { box-shadow: 0 8px 26px rgba(217,164,65,.26); }
.sm-game.done { box-shadow: 0 6px 18px rgba(58,107,92,.16); }
.sm-go { color: var(--amber); }

/* 窄屏收紧：身份卡换行、标题缩小 */
@media (max-width: 560px) {
  .sm-identity { flex-wrap: wrap; gap: 12px; }
  .sm-title { font-size: 22px; }
}

/* =========================================================================
   章节可折叠
   ========================================================================= */
.sm-chapter-block { margin-bottom: 18px; }

/* =========================================================================
   三篇归类：计划篇 / 驾驭篇 / 加速篇 —— 每篇内章节卡片 0 间距相连成一体
   ========================================================================= */
/* 篇容器：篇与篇之间留明显间距，使三部分界限分明 */
.sm-part { margin-bottom: 22px; }
.sm-part:last-child { margin-bottom: 0; }

/* 篇头（篇名 + 副标题） */
.sm-part-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 2px 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(58,107,92,.28);
}
.sm-part-emoji { font-size: 22px; line-height: 1; }
.sm-part-name {
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: var(--accent);
}
.sm-part-sub {
  font-size: 11px; color: var(--ink-soft); margin-top: 1px;
}

/* 篇内章节卡片：去掉彼此间距，连成一张长卡 */
.sm-part > .sm-chapter-block { margin: 0; }
/* 身份卡与首个篇容器之间留间距 */
.sm-identity + .sm-part { margin-top: 24px; }

/* 首卡片：顶部圆角（章节头 16px 顶部圆，小节容器底部圆，已由默认规则给出） */
/* 中卡片：上下全直角，与上/下卡无缝相接 */
.sm-chapter-block.sm-mid > .sm-chapter { border-radius: 0; }
.sm-chapter-block.sm-mid > .sm-chapter-body { border-radius: 0; }
/* 尾卡片：顶部直角接上卡，底部圆角收尾 */
.sm-chapter-block.sm-last > .sm-chapter { border-radius: 0; }
.sm-chapter-block.sm-last > .sm-chapter-body { border-radius: 0 0 14px 14px; }

/* 接缝处：去掉相邻卡片重叠的双线（上卡底部边框 + 下卡顶部边框） */
.sm-part > .sm-chapter-block + .sm-chapter-block > .sm-chapter { border-top: none; }
/* 接缝处上卡小节容器底部边框也去掉，与下卡章节头顶角形成单线连续 */
.sm-part > .sm-chapter-block:not(.sm-last) > .sm-chapter-body { border-bottom: none; }
.sm-chapter {
  cursor: pointer;
  user-select: none;
  display: flex; align-items: flex-start; gap: 12px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 0 46px 14px;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.sm-chapter:hover {
  background: var(--panel-soft);
  border-color: rgba(58,107,92,.35);
  box-shadow: var(--shadow-sm);
}
.sm-chapter-toggle {
  position: absolute; left: 14px; top: 6px;
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 13px;
  border-radius: 8px;
  transition: transform .18s ease;
}
.sm-chapter-block.collapsed .sm-chapter-toggle { transform: rotate(-90deg); }
.sm-chapter-headtext { flex: 1; min-width: 0; text-align: center; }
/* 折叠态隐藏章节内容（路径 + 故事块 + 章末游戏） */
.sm-chapter-block.collapsed .sm-chapter-body { display: none; }
/* 章头导语（.sm-lead）跟着开合一起收：
   导语有 3~4 行，地图默认是全折叠的，一屏里每章都摊着一段说明文字，
   扫视时就是"一堵字墙"（用户 2026-10-11 提出）。收进展开态后，
   收起的一屏只剩「章标题 + 点亮 N/M」，想读本章讲什么再点开。 */
.sm-chapter-block.collapsed .sm-lead { display: none; }
/* 展开时导语淡入：它是"点开才给"的内容，直接闪现会让页面看着跳一下 */
.sm-chapter-block:not(.collapsed) .sm-lead { animation: smLeadIn .3s ease both; }
@keyframes smLeadIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sm-chapter-block:not(.collapsed) .sm-lead { animation: none; }
}
/* 折叠态给章节头一点“收起”提示底色（body 隐藏，章节头即该卡） */
/* 圆角规则与展开态一致：首张顶部圆、尾张底部圆、中间全直角，保持连卡美观 */
.sm-chapter-block.collapsed > .sm-chapter {
  background: var(--panel-soft);
  border-style: dashed;
  border-bottom: 1px dashed rgba(58,107,92,.30);
}
.sm-chapter-block.collapsed.sm-first > .sm-chapter { border-radius: 16px 16px 0 0; }
.sm-chapter-block.collapsed.sm-mid > .sm-chapter { border-radius: 0; }
.sm-chapter-block.collapsed.sm-last > .sm-chapter { border-radius: 0 0 16px 16px; }
/* 单章既是首又是尾（如某篇仅一章）：完整圆角 */
.sm-chapter-block.collapsed.sm-first.sm-last > .sm-chapter { border-radius: 16px; }

/* 小节容器：淡背景从章节卡片底部「延伸」出来，体现从属关系 */
.sm-chapter-body {
  margin-top: 0;
  padding: 14px 12px 14px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(58,107,92,.16);
  border-top: none;
  border-radius: 0 0 14px 14px;
}
/* 展开态：非末章的小节容器底部改为利角，与下方章节头（直角）顺接，避免圆角突兀 */
.sm-chapter-block:not(.collapsed):not(.sm-last) > .sm-chapter-body { border-radius: 0; }

/* =========================================================================
   修复：多图标 + 节点与竖线错位
   ========================================================================= */

/* 竖线对齐圆点圆心：伪元素为 content-box，圆点 width14 + border3×2 = 外径20，圆心在 left+10 = 15px；竖线宽2px 故 left = 14 */
.sm-path::before { left: 14px; }

/* 已完成节点强制隐藏锁，避免数据异常时同时出现 🔒+✓ 两个图标 */
.sm-node.is-done .sm-lock { display: none; }

/* 锁图标挪到圆形左上方外侧，不再遮挡 emoji（提高优先级，盖过原 .sm-lock 规则） */
.sm-path .sm-lock { left: -10px; top: 12px; }

/* =========================================================================
   创业地图 · 第二轮精修（ui-design-guide：暖纸书房 · 精装手账）
   在既有结构之上强化"高级书卷感"，不破坏折叠/间距/图标清理成果
   ========================================================================= */

/* 页面纸纹底：极淡噪点 + 暖光，营造书房书桌氛围（非纯色、非渐变滥用） */
.storymap {
  background: #fff;
}

/* 身份卡：双线精装书脊 + 纸影层次 */
.sm-identity {
  border-radius: 18px;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(217,164,65,.14), transparent 55%),
    linear-gradient(160deg, #FFFDF8, #F7F1E6);
  box-shadow: 0 8px 24px rgba(46,42,36,.10), var(--shadow-sm);
}
.sm-identity::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent) 0, var(--accent) 3px, transparent 3px, transparent 7px, rgba(58,107,92,.5) 7px, rgba(58,107,92,.5) 9px, transparent 9px);
  pointer-events: none; border-radius: 18px;
}
.sm-avatar {
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(58,107,92,.14), rgba(58,107,92,.05));
  border: 1.5px solid rgba(58,107,92,.28);
  box-shadow: inset 0 2px 6px rgba(58,107,92,.10), 0 2px 6px rgba(46,42,36,.08);
}

/* 章节头卡片：书签签条 kicker + 衬线大标题 + 纸影 */
.sm-chapter {
  background: linear-gradient(160deg, #FFFDF8, #F7F1E6);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(46,42,36,.07);
}
.sm-chapter-toggle {
  width: 24px; height: 24px; margin-top: 4px;
  background: var(--accent); color: #fff; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(58,107,92,.30);
}
.sm-chapter-block.collapsed .sm-chapter-toggle { background: var(--accent-soft); color: var(--accent-deep); box-shadow: none; }
.sm-kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: #fff; background: linear-gradient(135deg, var(--amber), #c8912f);
  padding: 4px 14px 5px; border-radius: 0 0 11px 11px; margin-bottom: 9px;
}
.sm-title {
  font-size: 23px; font-weight: 900; letter-spacing: .5px; line-height: 1.3;
  background: linear-gradient(90deg, var(--ink), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sm-title small {
  display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--ink-soft); -webkit-text-fill-color: var(--ink-soft);
}
.sm-lead { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }

/* 折叠态章节头：虚线书脊 + 略暗，提示"收起" */
.sm-chapter-block.collapsed > .sm-chapter {
  background: var(--panel-soft);
  border-style: dashed; border-color: rgba(58,107,92,.30);
  box-shadow: none;
}

/* 创业之路：虚线书脊 + 圆点内圈层次（时间轴隐喻） */
.sm-path::before {
  left: 14px; top: 28px; bottom: 40px; width: 2px;
  background: repeating-linear-gradient(var(--accent) 0 6px, transparent 6px 12px);
  opacity: .55;
}
.sm-node::before {
  content: ""; position: absolute; left: 5px; top: 22px; z-index: 2;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
  transition: background .14s ease, transform .14s ease;
}
.sm-node:not(.locked):hover::before { background: var(--accent); transform: scale(1.12); }
.sm-node.is-done::before { background: var(--accent); border-color: var(--accent); }
.sm-node.locked::before { border-color: var(--line); background: var(--panel-soft); }
.sm-node.conquered::before { background: var(--amber); border-color: var(--amber); }

/* 节点卡片：纸影 + hover 微抬升（保留既有 emoji 圆形） */
.sm-node-body {
  box-shadow: 0 3px 12px rgba(46,42,36,.06); border-color: rgba(58,107,92,.18);
}
.sm-node:not(.locked):hover .sm-node-body { box-shadow: 0 8px 22px rgba(46,42,36,.12); border-color: rgba(58,107,92,.40); }

/* 章末游戏：签条风格强化 */
.sm-game {
  background: linear-gradient(160deg, #FFFDF8, #F7F1E6);
  border: 2px dashed rgba(58,107,92,.30);
  box-shadow: 0 3px 12px rgba(46,42,36,.06);
}
.sm-game.ready {
  border: 2px solid var(--amber);
  background: linear-gradient(160deg, #FFF8EC, #FCF3DF);
  box-shadow: 0 6px 22px rgba(217,164,65,.22);
}
.sm-game.done {
  border: 2px solid var(--accent);
  background: linear-gradient(160deg, var(--accent-soft), #F4F8F4);
  box-shadow: 0 6px 20px rgba(58,107,92,.18);
}



/* 窄屏：纸纹底保持，字号微调 */
@media (max-width: 560px) {
  .sm-title { font-size: 20px; }
  .sm-kicker { font-size: 10px; letter-spacing: 1.5px; }
}

/* ============================================================
   创业地图 · 可点击章节卡片的炫酷悬停反馈
   目标：鼠标移上去明确暗示“这里可点击”，张扬、有动感
   作用于：章节头 / 学习小节节点 / 章末游戏
   ============================================================ */

/* —— 统一可点击光标与入场准备 —— */
.sm-chapter,
.sm-node:not(.locked) .sm-node-body,
.sm-game.ready,
.sm-game.done {
  cursor: pointer;
  position: relative;
  transition:
    transform .28s cubic-bezier(.22,1.2,.36,1),
    box-shadow .28s ease,
    border-color .28s ease,
    background .28s ease;
}

/* —— 流光扫过：所有可点击卡片都铺一层扫光层 —— */
.sm-chapter::after,
.sm-node:not(.locked) .sm-node-body::after,
.sm-game.ready::after,
.sm-game.done::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255,255,255,.55) 50%,
    rgba(217,164,65,.35) 56%,
    transparent 70%,
    transparent 100%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
  transition: opacity .25s ease;
  mix-blend-mode: screen;
}

/* —— 章节头：整块发光上浮 + 标题流光 —— */
.sm-chapter:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow:
    0 10px 26px -8px rgba(58,107,92,.45),
    0 0 0 1px rgba(217,164,65,.35);
}
.sm-chapter:hover::after {
  opacity: 1;
  animation: smSweep 1.1s ease forwards;
}
.sm-chapter:hover .sm-title {
  color: var(--accent-deep);
  text-shadow: 0 0 14px rgba(217,164,65,.45);
}

/* —— 学习小节节点：边框描金 + 抬升 + 圆点脉冲 —— */
.sm-node:not(.locked) .sm-node-body:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--amber);
  box-shadow:
    0 14px 30px -10px rgba(58,107,92,.40),
    0 0 0 2px rgba(217,164,65,.30),
    0 0 22px -2px rgba(217,164,65,.55);
}
.sm-node:not(.locked) .sm-node-body:hover::after {
  opacity: 1;
  animation: smSweep 1.05s ease forwards;
}
/* 节点连卡圆点（.sm-node::before）脉冲发光 */
.sm-node:not(.locked):hover::before {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--bg), 0 0 18px 3px rgba(217,164,65,.9);
  animation: smPulse 1.2s ease-out infinite;
}
.sm-node:not(.locked) .sm-node-body:hover .sm-tag {
  border-color: var(--amber);
}

/* —— 章末游戏：琥珀金描边 + 抬升 + 扫光 —— */
.sm-game.ready:hover,
.sm-game.done:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--amber);
  box-shadow:
    0 14px 30px -10px rgba(58,107,92,.45),
    0 0 0 2px rgba(217,164,65,.45),
    0 0 24px -2px rgba(217,164,65,.6);
}
.sm-game.ready:hover::after,
.sm-game.done:hover::after {
  opacity: 1;
  animation: smSweep 1.1s ease forwards;
}
/* 游戏图标上浮微旋，强化“可点” */
.sm-game.ready:hover .sm-game-ico,
.sm-game.done:hover .sm-game-ico {
  transform: translateY(-2px) rotate(-6deg) scale(1.12);
  filter: drop-shadow(0 4px 8px rgba(217,164,65,.6));
}
.sm-game-ico { transition: transform .3s cubic-bezier(.22,1.2,.36,1), filter .3s ease; }

/* —— 章节头折叠指示箭头（▾）随悬停轻晃 + 描金 —— */
.sm-chapter:hover .sm-chapter-toggle {
  color: var(--amber);
  animation: smWobble 1.4s ease-in-out infinite;
}

/* —— 关键帧 —— */
@keyframes smSweep {
  0%   { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}
@keyframes smPulse {
  0%   { box-shadow: 0 0 0 0 rgba(58,107,92,.55), 0 0 16px 2px rgba(217,164,65,.85); }
  70%  { box-shadow: 0 0 0 10px rgba(58,107,92,0), 0 0 16px 2px rgba(217,164,65,.30); }
  100% { box-shadow: 0 0 0 0 rgba(58,107,92,0), 0 0 16px 2px rgba(217,164,65,.85); }
}
@keyframes smWobble {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}

/* =========================================================================
   概念链（章节小节的新型组织方式）
   一条竖线串起：链头「本章问题」→ 概念节点（默认收起成一行省空间，
   鼠标经过 / 点选才展开成一张概念卡）→ 链尾「落点」。
   节点之间的入边标签（决定了 / 唯一方法 / 结构化闭环 / 启动钥匙 …）
   就是这一章的推理骨架——看组织流就能看懂本章逻辑。
   ========================================================================= */
.sm-chain { position: relative; margin: 14px 0 4px; padding-left: 26px; }
.sm-chain::before {
  content: ''; position: absolute; left: 10px; top: 20px; bottom: 24px;
  width: 2px; border-radius: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent), var(--line) 65%, transparent);
}

/* 链头问题 / 链尾落点：都是纯展示，不可点击（不是小节） */
.sm-chain-cap {
  position: relative; display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 10px; padding: 10px 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px;
  cursor: default; user-select: text;
}
.sm-chain-cap p { font-size: 13px; line-height: 1.6; font-weight: 700; color: var(--accent-deep); }
.sm-chain-cap-i { font-size: 15px; line-height: 1.45; }
/* 链头：本章要解决的问题（出发点）—— 用虚线边与「可点击的小节卡」区分开 */
.sm-chain-cap.head { border-style: dashed; }
.sm-chain-cap.land { margin: 10px 0 0; background: #FFF7E8; border-color: #F0DDB4; border-style: dashed; }
.sm-chain-cap.land p { color: #8A6A22; }
.sm-chain-cap::before {
  content: ''; position: absolute; left: -16px; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.sm-chain-cap.land::before { background: var(--amber); box-shadow: 0 0 0 3px #FFF3DB; }

/* 概念节点（.sm-cnode 只包卡片本身 → 圆点 top:50% 正好是卡片竖直中心） */
.sm-cnode { position: relative; margin-bottom: 8px; }
.sm-cnode::before {
  content: ''; position: absolute; left: -16px; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); transition: background .2s ease, border-color .2s ease;
}
.sm-cnode:not(.locked)::before { border-color: var(--accent); }
.sm-cnode.is-done::before { background: var(--accent); border-color: var(--accent); }
.sm-cnode-body {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.sm-cnode:not(.locked) .sm-cnode-body { cursor: pointer; }
.sm-cnode.locked .sm-cnode-body { opacity: .62; }
.sm-cnode.is-done .sm-cnode-body { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--panel)); }
/* 收起态 = 干净的一行：序号 + 概念名 + 状态 */
.sm-cnode-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.sm-cnode-row .sm-nidx { font-size: 13px; font-weight: 800; color: var(--accent-deep); }
.sm-ctitle { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.sm-cnode.locked .sm-ctitle { color: var(--ink-soft); }
/* 卡片区：默认收起（max-height 0），hover（桌面）或 .open（点选 / 移动端）时展开 */
/* 展开高度不写死：由 JS 按内容实际高度设置（.sm-cnode-card 上的 inline max-height）。
   手机屏窄、文字换行多，写死 max-height 会把底部的「深入学习」按钮裁掉。
   展开动画结束后高度限制放开（none），内容再怎么折行都不会被裁。 */
.sm-cnode-card {
  max-height: 0; opacity: 0; overflow: hidden; padding: 0 14px;
  transition: max-height .22s ease, opacity .18s ease, padding .22s ease;
}
/* .open = 点选展开（移动端唯一路径），无条件下发 */
.sm-cnode.open .sm-cnode-card { opacity: 1; padding: 0 14px 14px; }
.sm-cnode.open .sm-cnode-body {
  border-color: rgba(58,107,92,.40); box-shadow: 0 8px 22px rgba(46,42,36,.10); transform: translateY(-1px);
}
/* hover 展开只给真正的指针设备。
   为什么必须隔开：触屏 tap 之后浏览器会留下 sticky :hover（手指离开也不撤），
   于是"再点一次收起"时——JS 已经把 inline max-height 清掉回到 0，
   但 :hover 又把 padding/opacity 顶回来 → 卡片塌到 0 高却留着一圈内边距和内容，
   看上去就是"没合上"。桌面鼠标移开 :hover 即失效，所以只有手机端会犯这个病。
   JS 侧同样用 matchMedia('(hover: hover) and (pointer: fine)') 分流（见 main.js 的 CAN_HOVER），
   两边口径必须一致，否则会出现"CSS 认 hover、JS 不认"的错位。 */
@media (hover: hover) and (pointer: fine) {
  .sm-cnode:hover .sm-cnode-card { opacity: 1; padding: 0 14px 14px; }
  .sm-cnode:not(.locked):hover .sm-cnode-body {
    border-color: rgba(58,107,92,.40); box-shadow: 0 8px 22px rgba(46,42,36,.10); transform: translateY(-1px);
  }
}
/* 这一节的来历：拆书稿「逻辑关系」原句 —— 前因 → 关系词 → 结论（不做多余装饰） */
.sm-cwhy {
  margin: 0 0 10px; padding: 8px 10px;
  background: var(--panel-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-soft);
}
.sm-cwhy-from { display: block; }
.sm-cwhy-rel {
  display: inline-block; margin: 4px 0; padding: 1px 8px;
  font-weight: 800; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 20px;
}
.sm-cwhy-note { display: block; color: var(--ink); font-weight: 600; }
.sm-cquote { margin-top: 8px; font-size: 12.5px; line-height: 1.65; font-style: italic; color: var(--accent-deep); }
.sm-cgo {
  margin-top: 12px; padding: 7px 14px; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--accent); border: 0; border-radius: 9px; cursor: pointer;
}
.sm-cgo:disabled { background: var(--panel-soft); color: var(--ink-soft); cursor: default; }

/* 入边标签：这一节为什么会出现在这里 */
.sm-cedge { display: flex; align-items: center; gap: 8px; padding: 4px 0 4px 2px; }
.sm-cedge::before { content: ''; width: 2px; height: 12px; background: var(--line); border-radius: 2px; }
.sm-cedge span {
  font-size: 11.5px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 2px 9px; border-radius: 20px;
}

/* 刚学完的概念入链：闪一下，让「回到内容流」看得见 */
.sm-cnode.just-lit .sm-cnode-body { animation: conceptLit 2.2s ease; }
@keyframes conceptLit {
  0%   { box-shadow: 0 0 0 0 rgba(217,164,65,.55); border-color: var(--amber); }
  35%  { box-shadow: 0 0 0 10px rgba(217,164,65,0); border-color: var(--amber); }
  100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); }
}

/* =========================================================================
   进度站点条 .pbar-*（书籍介绍屏 / 学习地图吸顶 / 收尾屏 共用一份，不再各写一套）
   —— 三种状态（2026-09-20 用户定义）：
     ① 你正读到的那一章（地图滚动同步加 .cur）→ 节点"换颜色"，不放大
     ② 刷过但没深入学习（.walk）         → 走线是焦糖粗线，节点焦糖实心
     ③ 每一节都深入学习过（.learn）       → 走线换成彩色渐变、节点放大并染成该章主题色
   刻度位置严格照原型（D:\...\原型开发\地图原型.html）：
     第 i 章走完 = 轨道第 (i+1)/N 处，且走线宽度按"章占 1/N、章内按节细分"——
     于是"条子走到哪"与"第几枚刻度亮"永远咬合，不会出现越过刻度还没亮的情况。
   线条双层叠放：walk 在下（粗焦糖），learn 盖其上（彩色）——
   一眼读作「刷到哪」+「其中真正学透的到了哪」。
   ========================================================================= */
.pbar-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 9px;
}
.pbar-l { font-size: 12px; font-weight: 700; color: #7A5D44; }
.pbar-r { font-size: 10.5px; color: #A99A88; white-space: nowrap; }
.pbar-track { position: relative; height: 16px; }
/* 底线：还没走到的部分（细、淡棕） */
.pbar-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px; border-radius: 2px; background: #EADACB;
}
/* ② 走过的那段：只比底线粗一点点、颜色重一点点（用户反馈：原来太粗了，抢戏）。
   底线 2px → 这里 3px；焦糖加深一档、光晕收窄 —— 它只是"刷到这了"的提示，
   主角是下面那条"真正学透"的彩色线，这条不许压过它。 */
.pbar-line.walk {
  position: absolute; left: 0; top: 50%;
  height: 3px; margin-top: -1.5px; width: var(--wp, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, #9E6B47, #BE8C3C);
  box-shadow: 0 0 5px rgba(150, 105, 60, .30);
  transition: width .45s ease;
}
/* ③ 深入学过的那段：彩色渐变线，压在走线上（学得越深越好看） */
.pbar-line.learn {
  position: absolute; left: 0; top: 50%;
  height: 6px; margin-top: -3px; width: var(--lp, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, #2a5aaa, #6f9eff, #7ee08a, #ffd166);
  box-shadow: 0 0 12px rgba(74, 138, 255, .48);
  transition: width .45s ease;
}
/* 刻度：一枚菱形 = 一章走完；绝对定位在 (i+1)/N 处（--tc = 该章主题色） */
.pbar-stw {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 1;
}
.pbar-st {
  width: 9px; height: 9px; flex: 0 0 9px;
  border-radius: 2px; transform: rotate(45deg);
  background: #FFFFFF; border: 1.5px solid #E0CCB8;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
/* ② 走过：**不填充** —— 维持白芯，只把边框染成焦糖。
   「填满」是独家信号：全章每一节都深度学习过之前，节点一律不允许实心。
   否则刷完几节点就满上了，"学透"这件事就没有可读的落点了（用户口径 2026-09-20）。 */
.pbar-stw.walk .pbar-st {
  background: #FFFFFF;
  border-color: #D9A441;
  box-shadow: 0 0 6px rgba(217, 164, 65, .34);
}
/* ③ 每节都深入学过：**实心填充**该章主题色，尺寸与常态完全一致（不放大）。
   形态只走"填充"一条：节点本就是刻度尺上的读数，大小统一才像一条尺，
   状态差异靠"空 / 填满"已经读得出来，不需要再靠放大喊第二遍。
   留一道白边：实心块直接压在彩色走线上会和线糊在一起，白边把它从线上抠出来。 */
.pbar-stw.learn .pbar-st {
  background: var(--tc, #D9A441);
  border-color: #FFFFFF;
  box-shadow: 0 0 9px var(--tc, #D9A441);
}
/* 悬停：只放大、不改色（颜色是状态，不能被悬停抢走）——放在状态规则之后才压得住 */
.pbar-stw:hover .pbar-st { transform: rotate(45deg) scale(1.36); }
/* ① 你正读到的那一章：白芯（还没学透就不许填满）+ 青墨绿**边框**。
   填充同样是"学透"专属：没填满正是"到过这儿、还没吃透"的诚实读数。
   用青墨绿而不是焦糖：焦糖已被"走过"占用，换个色系才区分得出来。 */
.pbar-stw.cur .pbar-st {
  background: #FFFFFF;
  border: 2px solid #3A6B5C;
  box-shadow: 0 0 8px rgba(58, 107, 92, .50);
}
/* 既"每节都学过"又是"你正读到的那一章"：填色照旧是该章主题色（学透的事实不能被
   "当前"抹掉），外面再套一圈青墨绿 —— 两条信息都不丢。
   （若让"当前"直接盖掉节点，"用户滚回自己学过的那一章"时那一章就看不见了；
   而"当前"本身是随时会移走的临时状态。） */
.pbar-stw.cur.learn .pbar-st {
  background: var(--tc, #D9A441);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px #3A6B5C, 0 0 9px var(--tc, #D9A441);
}
/* 下一站：缓慢呼吸（全屏只有这一处在动）。用 drop-shadow 而不是 box-shadow，
   免得把上面的状态光晕覆盖掉。 */
.pbar-stw.now .pbar-st { animation: pbarPulse 2.4s ease-in-out infinite; }
@keyframes pbarPulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(217, 164, 65, .55)); }
  50%      { filter: drop-shadow(0 0 9px rgba(217, 164, 65, .95)); }
}
@media (prefers-reduced-motion: reduce) {
  .pbar-stw.now .pbar-st { animation: none; }
}
/* 挂界标时把轨道垫高：小字落在轨道下方约 13px 处 */
.pbar-track.has-cap { margin-bottom: 22px; }
/* 界标小字（每篇末章 / 地图 live 模式的每章） */
.pbar-cap {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; letter-spacing: .2px; line-height: 1.3;
  white-space: nowrap; color: #C2B1A0; pointer-events: none;
  transition: color .2s ease;
}
.pbar-stw.mark .pbar-cap { color: #B47B56; }
/* 首/末两枚：气泡与界标贴边，免得顶破卡片左右边界 */
.pbar-stw.edge-r .pbar-cap { left: auto; right: 0; transform: none; }
.pbar-stw.edge-l .pbar-cap { left: 0; right: auto; transform: none; }
/* 悬停气泡：深棕底奶油字的"名牌"，带一枚小三角。只做提示，不接点击 */
.pbar-tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(3px);
  z-index: 9;
  padding: 5px 10px 6px; border-radius: 9px;
  background: #4A3A2C; color: #FBF3E6;
  font-size: 10.5px; font-weight: 700; line-height: 1.35; letter-spacing: .3px;
  text-align: center; white-space: nowrap;
  box-shadow: 0 7px 18px rgba(74, 58, 44, .24);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.pbar-tip em {
  display: block; margin-top: 1px;
  font-style: normal; font-weight: 600; font-size: 9px; letter-spacing: .2px;
  color: #CDB9A2;
}
.pbar-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; margin-left: -4px;
  border: 4px solid transparent; border-top-color: #4A3A2C;
}
.pbar-stw:hover .pbar-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.pbar-stw.edge-l .pbar-tip { left: 0; transform: translateX(0) translateY(3px); }
.pbar-stw.edge-l:hover .pbar-tip { transform: translateX(0) translateY(0); }
.pbar-stw.edge-l .pbar-tip::after { left: 4px; margin-left: 0; }
.pbar-stw.edge-r .pbar-tip { left: auto; right: 0; transform: translateX(0) translateY(3px); }
.pbar-stw.edge-r:hover .pbar-tip { transform: translateX(0) translateY(0); }
.pbar-stw.edge-r .pbar-tip::after { left: auto; right: 4px; margin-left: 0; }

/* live 界标（只有学习地图用）：每章一条、默认全隐，由滚动同步点亮"当前这一章"。
   任何时刻只亮一条小字 —— 它于是读作"你在这儿"，而不是一串待办清单。 */
.camp.storymap .pbar-cap.live { opacity: 0; transition: opacity .25s ease, color .25s ease; }
.camp.storymap .pbar-cap.live.on { opacity: 1; color: #B47B56; font-weight: 800; }

/* =========================================================================
   学习小结卡：学完一小节后出现（概念名 + 一句话定义 + 金句 + 认知数）。
   点「回到内容流」→ 卡片收起 → 该概念在章节逻辑链上点亮。
   ========================================================================= */
.study-summary {
  position: relative; max-width: 320px; margin: 6px auto 0; padding: 22px 18px 18px;
  text-align: center;
  background: linear-gradient(180deg, #FFFDF7, #FFF7E8);
  border: 1px solid #F0DDB4; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(46,42,36,.10);
  animation: ssIn .42s cubic-bezier(.2,.8,.3,1);
}
@keyframes ssIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.study-summary.ss-fly { animation: ssFly .28s ease forwards; }
@keyframes ssFly { to { opacity: 0; transform: translateY(-18px) scale(.92); } }
.ss-pin {
  position: absolute; top: -13px; left: 50%; margin-left: -13px;
  width: 26px; height: 26px; display: grid; place-items: center; font-size: 15px;
  background: #fff; border: 1px solid #F0DDB4; border-radius: 50%; box-shadow: 0 3px 8px rgba(46,42,36,.14);
}
.ss-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 2px; color: #8A6A22; }
.ss-ico { font-size: 40px; margin-top: 4px; }
.ss-name { margin-top: 2px; font-size: 19px; font-weight: 900; color: var(--ink); }
.ss-def { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.ss-quote {
  margin: 12px auto 0; max-width: 280px; padding: 10px 14px;
  font-size: 13px; line-height: 1.65; font-style: italic; color: #1A1A1A;
  background: #fff; border: 1px dashed #E6D7B4; border-radius: 10px;
}
/* ===== 编码增强件：先行组织者 / 旧知提取 / 真下注 / 学后休息 ===== */
/* 先行组织者：这一节为什么在这儿（上接 → 本节） */
.study-orient {
  background: #FBF7EF; border: 1px solid #EDE0C8; border-radius: 12px;
  padding: 12px 14px; margin: 2px 0;
}
.so-kicker { font-size: 12px; font-weight: 800; color: #A8842C; letter-spacing: .04em; }
.so-chain { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.so-seg {
  font-size: 13px; line-height: 1.6; color: #6B6152;
  background: #fff; border: 1px solid #EDE0C8; border-radius: 8px; padding: 5px 10px;
}
.so-seg b { color: #3A6B5C; }
.so-now { color: #3A6B5C; font-weight: 700; border-color: #C9D9C6; background: #F4F9F3; }
.so-arrow { color: #C0B49A; font-size: 12px; }
.so-note { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: #8A8073; }
/* 上次回顾：先提取一次旧知，给新内容准备挂钩 */
.study-recall {
  background: #F7F8FA; border: 1px dashed #D9D9D9; border-radius: 12px; padding: 12px 14px; margin: 2px 0;
}
.sr-kicker { font-size: 12px; font-weight: 800; color: #A8842C; letter-spacing: .04em; }
.sr-name { margin-top: 6px; font-size: 14.5px; font-weight: 800; color: #1A1A1A; }
.sr-quote {
  margin-top: 8px; font-size: 13px; line-height: 1.7; font-style: italic; color: #6B6152;
  border-left: 3px solid #E6D7B4; padding-left: 10px;
}
.sr-tip { margin-top: 8px; font-size: 12px; line-height: 1.6; color: #9A9086; }
/* 思维钩子「真下注」：选项按钮组（不判对错，只记录） */
.sh-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sh-opt {
  text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; line-height: 1.6; color: #1A1A1A;
  background: #fff; border: 1px solid #E5E5E5; transition: background .15s, border-color .15s;
}
.sh-opt:hover:not(:disabled) { background: #FBF7EF; border-color: #D9C9A6; }
.sh-opt.on { background: #F4F9F3; border-color: #3A6B5C; font-weight: 700; }
.sh-opt:disabled { cursor: default; opacity: .75; }
/* 回看钩子：回显开课前的下注，让「我变了」被看见 */
.hr-before {
  margin-bottom: 10px; padding: 8px 11px; border-radius: 9px;
  background: #FBF7EF; border: 1px dashed #E0CFA8;
  font-size: 12.5px; line-height: 1.7; color: #6B6152;
}
.hr-before b { color: #A8842C; }
/* 学后休息提示（巩固：学后需要时间，不是越多越好） */
.ss-rest {
  margin-top: 10px; padding: 9px 11px; border-radius: 9px;
  background: #F7F8FA; border: 1px dashed #DDD;
  font-size: 12.5px; line-height: 1.75; color: #6B6152;
}
/* 「你已经点亮 X / Y 张地图」——嗑瓜子模型落在学习小结卡上的那一点反馈。
   比"继续加油"具体，又比一整条站点条克制：小结卡的主角是刚学的那个概念，
   进度只做配角（一条细条 + 两行小字），免得抢了概念名的注意力。 */
.ss-lit { margin-top: 14px; }
.ss-lit-bar {
  height: 5px; border-radius: 3px; overflow: hidden;
  background: #F0E4CE; border: 1px solid #EAD9BC;
}
.ss-lit-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #B47B56, #D9A441);
  transition: width .45s ease;
}
.ss-lit-txt { margin-top: 7px; font-size: 12px; font-weight: 700; color: #8A6A22; }
/* 同 .dy-end-cheer：文案自带 \n 分段，靠它渲染成真实换行（不插 <br>，也就没有注入面） */
.ss-lit-cheer { margin-top: 6px; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); white-space: pre-line; }
.ss-kn { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.ss-btn {
  margin-top: 14px; padding: 10px 20px; font-size: 14px; font-weight: 800;
  color: #fff; background: var(--accent); border: 0; border-radius: 10px; cursor: pointer;
}

/* —— 尊重减少动效偏好 —— */
@media (prefers-reduced-motion: reduce) {
  .sm-chapter,
  .sm-node:not(.locked) .sm-node-body,
  .sm-game.ready,
  .sm-game.done { transition: box-shadow .2s ease, border-color .2s ease; }
  .sm-chapter::after,
  .sm-node:not(.locked) .sm-node-body::after,
  .sm-game.ready::after,
  .sm-game.done::after { display: none; }
  .sm-chapter:hover,
  .sm-node:not(.locked) .sm-node-body:hover,
  .sm-game.ready:hover,
  .sm-game.done:hover { transform: none; }
  .sm-node:not(.locked):hover::before,
  .sm-chapter:hover .sm-chapter-toggle,
  .sm-game.ready:hover .sm-game-ico,
  .sm-game.done:hover .sm-game-ico { animation: none; }
}

/* =========================================================================
   公共题型引擎（question.js）：单选 / 多选 / 匹配 / 短答 / 画布
   classify 复用 camp.css 的 ix-* 视觉；通关回顾主题类仍走 hl-extract-*
   ========================================================================= */
.q-q { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.6; margin-bottom: 10px; }
.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt {
  display: flex; align-items: center; gap: 8px; width: 100%;
  text-align: left; padding: 13px 15px; font-size: 14px; line-height: 1.5;
  background: #fff; border: 1px solid #E5E5E5; border-radius: 10px;
  color: var(--ink); cursor: pointer; transition: all .2s ease;
}
.q-opt:hover { border-color: #4CA572; background: #E6F4EA; }
.q-opt:active { transform: scale(.99); }
.q-opt .q-ot { flex: 1; min-width: 0; }
.q-opt.ok { border-color: #4CA572; background: #E6F4EA; color: #2F7A52; font-weight: 700; }
.q-opt.no { border-color: #d97777; background: #fdecec; }
.q-opt.miss { border-color: #E5C56E; background: #FBF6E7; }
.q-opt.locked { pointer-events: none; opacity: .7; }

/* 多选：选中态 + 提交按钮 */
.q-multi-opt.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px rgba(58,107,92,.18); }
.q-submit {
  margin-top: 12px; width: 100%; padding: 13px; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--accent); border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 3px 0 #2E5549; transition: all .25s ease;
}
.q-submit:hover { background: var(--accent-deep); transform: translateY(-1px); }
.q-submit:active { transform: translateY(2px); box-shadow: 0 1px 0 #2E5549; }
.q-submit:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.q-submit.ghost { background: var(--panel-soft); color: var(--ink-soft); box-shadow: 0 3px 0 #D8CFBB; }

/* 匹配：两列点击配对 */
.q-match { display: flex; gap: 10px; align-items: stretch; }
.q-match-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.q-match-item {
  display: flex; align-items: center; gap: 7px; width: 100%;
  text-align: left; padding: 11px 12px; font-size: 13px; line-height: 1.5;
  background: #fff; border: 1.5px solid #E5E5E5; border-radius: 10px;
  color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.q-match-item:hover { border-color: var(--accent); }
.q-match-item.hold { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(58,107,92,.15); }
.q-match-item.ok { border-color: #4CA572; background: #E6F4EA; }
.q-match-item.wrong { border-color: #d97777; background: #fdecec; }
.q-match-item.locked { pointer-events: none; opacity: .75; }
.q-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #D8D3C8; transition: background .15s; }
.q-match-item.hold .q-dot { background: var(--accent); }
.q-match-item.ok .q-dot { background: #4CA572; }
.q-match-item.wrong .q-dot { background: #d97777; }

/* 短答 / 画布 */
.q-write {
  width: 100%; min-height: 64px; resize: vertical; font-family: inherit; font-size: 14px;
  color: var(--ink); background: #fff; border: 1px solid #E5E5E5; border-radius: 10px; padding: 11px 13px;
  transition: all .2s ease;
}
.q-write:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,107,92,.15); }
.q-write.empty { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217,80,80,.2); }
.q-field { margin-bottom: 10px; }
.q-field label { display: block; font-weight: 800; font-size: 12.5px; margin-bottom: 5px; color: var(--ink); }
.q-field textarea {
  width: 100%; background: #FBF7EE; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 10px 12px; font-family: inherit; font-size: 13.5px; color: var(--ink); resize: vertical;
}
.q-field textarea:focus { outline: none; border-color: var(--accent); }

/* =========================================================================
   焦点内容块"燃烧"边框特效（fireFX.js）
   当前获得高亮（.is-current）的内容块边缘会燃起火焰；
   火焰渲染逻辑逐字搬自原型（lighter 叠加），canvas 背景透明、不画任何底色。
   ========================================================================= */
.camp.study { position: relative; }
/* 火焰 canvas 挂进 .is-current 内部、absolute 相对它定位，需高亮框当定位容器；
   放开 overflow 让外扩 PAD 的火焰不被裁切（其它块仍保持 overflow:hidden 裁圆角/入场动画） */
.is-current { position: relative; overflow: visible; }
.fire-fx {
  position: absolute;
  pointer-events: none;
  z-index: 60;
  border-radius: 14px;
}
/* 减少动效偏好：关掉火焰 */
@media (prefers-reduced-motion: reduce) {
  .fire-fx { display: none !important; }
}
