/* /defense/ 纵向滚动 + 思维导图 + 证据侧边栏
   继承根 styles.css 的色卡和气质，仅在此扩展页面专属布局 */

/* ============ 页面基底 ============ */
.defense-page {
  min-height: 100vh;
  /* 比首页更暗，让正文更聚焦 */
  background:
    radial-gradient(circle at 18% 8%, rgba(137, 162, 255, 0.10), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(196, 166, 255, 0.09), transparent 26rem),
    linear-gradient(180deg, #03040b 0%, #05070f 60%, #02030a 100%);
}

.defense-header.site-header {
  /* 复用根 .site-header；这里只调标记当前页 */
}
.defense-header nav a.current {
  color: var(--cyan);
  position: relative;
}
.defense-header nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* ============ 思维导图（左上常驻） ============ */
/* ---- 思维导图（push 模式，参照 Claude/Codex desktop 侧栏） ---- */
.mindmap {
  position: fixed;
  top: 92px;
  left: 24px;
  width: 232px;
  max-height: calc(100vh - 120px);
  padding: 14px 12px 12px;
  background: rgba(7, 10, 22, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  z-index: 20;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* 3D 折叠基础：自身定义 perspective，沿左缘旋转 */
  perspective: 1100px;
  perspective-origin: 0% 30%;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  transition:
    transform 0.55s cubic-bezier(.62,.04,.22,1),
    opacity 0.45s ease 0.05s,
    filter 0.55s ease,
    box-shadow 0.55s ease;
  will-change: transform, opacity, filter;
}
/* 收纳：左缘为铰链，右边向屏幕内 60° 折，留在原位让出像素，不淡出不滑离 */
body.mindmap-collapsed .mindmap {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: mm-fold-out 0.85s cubic-bezier(.62,.04,.22,1) forwards;
}
body:not(.mindmap-collapsed) .mindmap {
  animation: mm-fold-in 0.7s cubic-bezier(.2,.7,.2,1);
}
@keyframes mm-fold-out {
  0%   { transform: perspective(1100px) rotateY(0deg); }
  100% { transform: perspective(1100px) rotateY(35deg); }
}
@keyframes mm-fold-in {
  0%   { transform: perspective(1100px) rotateY(35deg); }
  100% { transform: perspective(1100px) rotateY(0deg); }
}

/* 收纳时的重开小按钮（左缘悬浮） */
.mindmap-reopen {
  position: fixed;
  top: 96px;
  left: 16px;
  z-index: 19;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(17, 21, 33, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 13px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.mindmap-reopen:hover { border-color: var(--cyan); transform: scale(1.06); }
body.mindmap-collapsed .mindmap-reopen { display: flex; }
.mindmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mindmap-title {
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.mindmap-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 24px; height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}
.mindmap-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.mindmap-svg {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: visible;
  display: block;
}
.mindmap-svg .mm-line {
  stroke: rgba(174, 182, 215, 0.22);
  stroke-width: 1.2;
  fill: none;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}
.mindmap-svg .mm-line.is-past { stroke: rgba(185, 204, 255, 0.45); }
.mindmap-svg .mm-line.is-active { stroke: var(--cyan); stroke-width: 2; }
.mindmap-svg .mm-dot {
  fill: #1a1f31;
  stroke: rgba(174, 182, 215, 0.4);
  stroke-width: 1.4;
  cursor: pointer;
  transition: fill 0.25s, stroke 0.25s, r 0.25s;
}
.mindmap-svg .mm-dot:hover {
  fill: #232a44;
  stroke: var(--cyan);
}
.mindmap-svg .mm-node.is-past .mm-dot { fill: #1f273f; stroke: rgba(185, 204, 255, 0.55); }
.mindmap-svg .mm-node.is-active .mm-dot {
  fill: var(--cyan);
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(185, 204, 255, 0.55));
}
/* ASCII 十字 — 节点切换时迸发 */
.mindmap-svg .mm-cross {
  font-family: "Cuomotype", "Essays1743", ui-monospace, Menlo, monospace;
  font-size: 18px;
  fill: var(--cyan);
  pointer-events: none;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4) rotate(0deg);
  filter: drop-shadow(0 0 6px rgba(185, 204, 255, 0.6));
}
.mindmap-svg .mm-cross.mm-cross-x {
  font-size: 14px;
  fill: rgba(185, 204, 255, 0.85);
}
/* 进入 active → + 由小变大并旋出，x 反向旋出后淡掉 */
.mindmap-svg .mm-node.is-active .mm-cross {
  animation: mm-cross-burst 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.mindmap-svg .mm-node.is-active .mm-cross.mm-cross-x {
  animation: mm-cross-burst-x 1.05s cubic-bezier(.2,.7,.2,1) forwards;
}
/* 离开 active（往下/往上滚过）→ 反向短爆并消失 */
.mindmap-svg .mm-node.is-past .mm-cross {
  animation: mm-cross-fade 0.55s ease forwards;
}
.mindmap-svg .mm-node.is-past .mm-cross.mm-cross-x {
  animation: mm-cross-fade-x 0.55s ease forwards;
}
@keyframes mm-cross-burst {
  0%   { opacity: 0; transform: scale(0.2) rotate(0deg); }
  35%  { opacity: 1; transform: scale(2.2) rotate(45deg); }
  100% { opacity: 0.55; transform: scale(1.1) rotate(90deg); }
}
@keyframes mm-cross-burst-x {
  0%   { opacity: 0; transform: scale(0.2) rotate(0deg); }
  40%  { opacity: 0.9; transform: scale(2.6) rotate(-50deg); }
  100% { opacity: 0; transform: scale(1.6) rotate(-110deg); }
}
@keyframes mm-cross-fade {
  0%   { opacity: 0.55; transform: scale(1.1) rotate(90deg); }
  60%  { opacity: 0.8; transform: scale(1.8) rotate(140deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(180deg); }
}
@keyframes mm-cross-fade-x {
  0%   { opacity: 0; transform: scale(1.6) rotate(-110deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(-180deg); }
}
.mindmap-svg .mm-label {
  /* 西文：Kingthings Typewriter（打字机感+清晰）；中文：同文新字典体（字典体，体量饱满便于小字号阅读） */
  font-family: "Kingthings Typewriter", "Tongwen Dict", "Huiwen Tsukiji5", "PingFang SC", "Songti SC", ui-serif, serif;
  font-size: 15px;
  fill: #ffffff;
  cursor: pointer;
  letter-spacing: 0.03em;
  user-select: none;
  transition: fill 0.25s;
}
.mindmap-svg .mm-node .mm-label { fill: rgba(255, 255, 255, 0.78); }
.mindmap-svg .mm-node.is-past .mm-label { fill: rgba(255, 255, 255, 0.92); }
.mindmap-svg .mm-node.is-active .mm-label { fill: #ffffff; font-weight: 600; }
.mindmap-svg .mm-node:hover .mm-label { fill: var(--cyan); }
.mindmap-svg .mm-node.is-past .mm-label { fill: rgba(245, 247, 255, 0.78); }
.mindmap-svg .mm-node.is-active .mm-label { fill: var(--text); font-weight: 600; }
.mindmap-svg .mm-node:hover .mm-label { fill: var(--cyan); }
.mindmap-hint {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: rgba(174, 182, 215, 0.6);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============ 正文章节布局 ============ */
.defense-main {
  --defense-main-left: 280px;
  --defense-main-pad-x: clamp(40px, 4vw, 96px);
  position: relative;
  margin: 0 0 0 var(--defense-main-left);   /* 给思维导图让出空间 */
  padding: clamp(72px, 7vh, 96px) var(--defense-main-pad-x) 40px;
  max-width: min(1740px, calc(100vw - var(--defense-main-left) - var(--defense-main-pad-x) - var(--defense-main-pad-x)));
  z-index: 2;
  transition: margin-left 0.32s cubic-bezier(.2,.7,.2,1), max-width 0.32s cubic-bezier(.2,.7,.2,1);
}
body.mindmap-collapsed .defense-main {
  --defense-main-left: 230px;
  margin-left: var(--defense-main-left);
  max-width: min(1840px, calc(100vw - var(--defense-main-left) - var(--defense-main-pad-x) - var(--defense-main-pad-x)));
}
/* 折叠态：reopen 按钮不再需要（导图本体仍可点） */
body.mindmap-collapsed .mindmap-reopen { display: none !important; }
@media (max-width: 1100px) {
  .defense-main { --defense-main-left: 240px; --defense-main-pad-x: 36px; padding-top: 64px; padding-bottom: 32px; }
  .mindmap { width: 200px; left: 20px; }
}
@media (max-width: 860px) {
  .mindmap { width: 180px; }
  .defense-main { --defense-main-left: 200px; --defense-main-pad-x: 24px; padding-top: 56px; padding-bottom: 28px; }
}
@media (max-width: 720px) {
  .mindmap { width: 86px; padding: 10px 8px; }
  .mindmap[data-collapsed="false"] .mindmap-svg .mm-label { display: none; }
  .defense-main { --defense-main-left: 110px; --defense-main-pad-x: 16px; padding-top: 48px; padding-bottom: 24px; }
}

.slide {
  min-height: 92vh;
  padding: 60px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  scroll-margin-top: 80px;
}
.slide:last-of-type { border-bottom: none; }

.slide-eyebrow {
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.slide-title {
  font-size: clamp(28px, 3.1vw, 58px);
  line-height: 1.18;
  margin: 0 0 28px;
  letter-spacing: -0.005em;
  color: var(--text);
  font-weight: 600;
  max-width: min(1320px, 100%);
}
.slide-narrative {
  max-width: min(980px, 100%);
  margin: 0 0 36px;
}
.slide-narrative p {
  font-size: 16.5px;
  line-height: 1.78;
  color: rgba(245, 247, 255, 0.86);
  margin: 0 0 14px;
}

/* ============ Hero (题目页) — 单张静帧背景 / 可回退拼贴 ============ */
.slide.hero {
  min-height: 100vh;
  padding-top: 40px;
  isolation: isolate;        /* 创建独立 stacking context，避免 hero-mosaic 穿透到 ASCII canvas 下 */
  overflow-x: hidden;        /* 兜底防止 mosaic 突破后造成水平滚动 */
}
.hero-backdrop {
  position: absolute;
  inset: 0 calc(0px - var(--defense-main-pad-x, 64px)) 0 calc(0px - var(--defense-main-left, 280px) - var(--defense-main-pad-x, 64px));
  z-index: 0;
  overflow: hidden;
  background: #03040b;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
  /* 明媚版：基本保留原图，只略提对比，不再压暗/降饱和 */
  filter:
    saturate(1.02)
    brightness(0.96)
    contrast(1.04);
  transform: scale(1.02);
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 遮罩只在标题区域（左下）轻微暗化保护文字可读，其他区域几乎不动 */
  background:
    radial-gradient(ellipse at 30% 78%, rgba(3, 4, 11, 0.55) 0%, rgba(3, 4, 11, 0.25) 38%, rgba(3, 4, 11, 0.0) 60%),
    linear-gradient(180deg, rgba(3, 4, 11, 0.0) 0%, rgba(3, 4, 11, 0.0) 50%, rgba(3, 4, 11, 0.35) 100%);
}
.hero-mosaic {
  position: absolute;
  top: 0;
  /* 跟随当前版心变量扩展到视口边缘，避免宽屏右侧留空 */
  left: calc(0px - var(--defense-main-left, 280px) - var(--defense-main-pad-x, 64px));
  right: calc(0px - var(--defense-main-pad-x, 64px));
  /* 直接给 height，不依赖 aspect-ratio（部分浏览器对 abs + left/right + aspect-ratio 算不出） */
  height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
  z-index: 0;
  overflow: hidden;
  opacity: 0.82;
}
.hero-mosaic::after {
  content: "";
  position: absolute; inset: 0;
  /* 黑色遮罩 + 中下径向暗化保护标题区 */
  background:
    radial-gradient(ellipse at 50% 58%, rgba(3, 4, 11, 0.0) 0%, rgba(3, 4, 11, 0.55) 55%, rgba(3, 4, 11, 0.88) 100%),
    linear-gradient(90deg, rgba(3, 4, 11, 0.5) 0%, rgba(3, 4, 11, 0.18) 38%, rgba(3, 4, 11, 0.5) 100%),
    linear-gradient(180deg, rgba(3, 4, 11, 0.15), rgba(3, 4, 11, 0.55));
  pointer-events: none;
}
.hero-mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* 视觉统一处理：拉低饱和、加冷色调、轻微 sepia 削弱原片色差，让 12 张更像一组 */
  filter:
    saturate(0.65)
    brightness(0.62)
    contrast(1.12)
    hue-rotate(-8deg);
  /* 主体居中显示 */
  object-position: center;
}
.slide.hero .slide-content {
  position: relative;
  z-index: 2;
  padding: 24px 36px;
}

/* ============ 单张 hero 图 ============ */
.slide-hero-img {
  position: relative;
  margin: 0 0 32px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
  max-width: min(1180px, 100%);
  max-height: 52vh;
}
.slide-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.95);
}
.slide-hero-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(3, 4, 11, 0.72) 100%);
  pointer-events: none;
}
.hero-sequence {
  background: #050812;
}
.hero-sequence img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
}
.hero-sequence img.is-active {
  z-index: 1;
  opacity: 1;
}
.hero-sequence::after {
  z-index: 2;
}
.hero-sequence-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 7px;
  align-items: center;
}
.hero-sequence-dots span {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(200, 211, 255, 0.32);
  box-shadow: 0 0 10px rgba(175, 187, 255, 0.08);
  transition: width 300ms ease, background 300ms ease, box-shadow 300ms ease;
}
.hero-sequence-dots span.is-active {
  width: 34px;
  background: rgba(217, 224, 255, 0.86);
  box-shadow: 0 0 16px rgba(172, 187, 255, 0.42);
}
@media (prefers-reduced-motion: reduce) {
  .hero-sequence img {
    transition: none;
  }
}

/* ============ 5 片例横排 / scene-cards ============ */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
/* 研究对象页：按屏幕宽度重排，宽屏 5 张一排 */
.scene-grid.is-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(16px, 1.2vw, 24px);
  margin-top: 36px;
  margin-bottom: 16px;
  width: 100%;
}
.scene-grid.is-large .scene-card {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  min-width: 0;
}
.scene-grid.is-large .scene-card .scene-meta strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}
@media (min-width: 1500px) {
  .scene-grid.is-large {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1101px) and (max-width: 1499px) {
  .scene-grid.is-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .scene-grid.is-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .scene-grid.is-large { grid-template-columns: 1fr; }
}
.scene-card {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  background: var(--panel);
}
.scene-card img,
.scene-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.92);
  transition: filter 0.3s, transform 0.5s;
}
.scene-card:hover img,
.scene-card:hover video {
  filter: brightness(0.85) saturate(1.05);
  transform: scale(1.03);
}
.scene-card.has-video::before {
  /* 视频自动循环播放，去掉装饰性的 ▶ 标识 */
  display: none;
}
.scene-card .scene-meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
}
.scene-card .scene-meta strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}
.scene-card .scene-meta span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============ 论文路径示意 ============ */
.path-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
  max-width: min(1120px, 100%);
}
.path-node {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(23, 27, 42, 0.78), rgba(17, 21, 33, 0.78));
}
.path-node + .path-node::before {
  content: "→";
  position: absolute;
  left: -16px; top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 14px;
  opacity: 0.7;
}
.path-node h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin: 0 0 8px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
}
.path-node p {
  font-size: 13.5px;
  color: rgba(245, 247, 255, 0.78);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .path-diagram { grid-template-columns: repeat(2, 1fr); }
  .path-node + .path-node::before { display: none; }
}

/* ============ 五个听觉锚点 ============ */
.anchor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.anchor-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 21, 33, 0.6);
}
.anchor-item strong {
  display: block;
  color: var(--cyan);
  font-size: 14.5px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.anchor-item span {
  color: rgba(245, 247, 255, 0.74);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ============ CST 三阶段 ============ */
.cst-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.cst-phase {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  background: rgba(17, 21, 33, 0.6);
}
.cst-phase h4 {
  margin: 0 0 6px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  color: var(--cyan);
  letter-spacing: 0.08em;
  font-size: 15px;
}
.cst-phase .cst-role {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--magenta);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.cst-phase p { margin: 0; color: rgba(245, 247, 255, 0.78); font-size: 13.5px; }
@media (max-width: 800px) { .cst-strip { grid-template-columns: 1fr; } }

/* ============ 效果链链路 ============ */
.chain-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
  max-width: min(960px, 100%);
}
.chain-step {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 21, 33, 0.6);
}
.chain-step .chain-step-num {
  flex: 0 0 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 204, 255, 0.12);
  color: var(--cyan);
  border-radius: 8px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}
.chain-step .chain-step-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chain-step strong {
  color: var(--text);
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}
.chain-step span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ============ Audio Doctor workflow ============ */
.workflow-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
}
.workflow-chain .wf-step {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 27, 42, 0.7);
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.workflow-chain .wf-step + .wf-step { position: relative; }
.workflow-chain .wf-step + .wf-step::before {
  content: "→";
  color: var(--muted);
  margin-right: 12px;
  margin-left: -4px;
}

/* ============ 现场演示步骤表 ============ */
.demo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13.5px;
}
.demo-table th, .demo-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.demo-table th {
  color: var(--cyan);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.demo-table td:first-child {
  font-family: ui-monospace, Menlo, monospace;
  color: var(--magenta);
  width: 110px;
  font-size: 12.5px;
}
.demo-table td:nth-child(2) { color: var(--text); width: 180px; }
.demo-table td:nth-child(3) { color: var(--muted); }

/* ============ 图 / 图注 ============ */
.slide-figure {
  margin: 16px 0;
  border: 1px solid rgba(185, 204, 255, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #050810;
  max-width: min(1120px, 100%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
}
/* 让深色图稍微提亮，从背景中跳出来 */
.slide-figure img {
  width: 100%;
  display: block;
  max-height: 64vh;
  object-fit: contain;
  background: #050810;
  filter: brightness(1.12) contrast(1.04);
}
.slide-figure-caption {
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid rgba(185, 204, 255, 0.12);
  letter-spacing: 0.02em;
  background: rgba(7, 10, 22, 0.7);
}

/* ============ .clz 演示入口 ============ */
.clz-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px dashed rgba(196, 166, 255, 0.4);
  border-radius: 8px;
  background: rgba(196, 166, 255, 0.06);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: var(--magenta);
}
.clz-chip .clz-label {
  background: var(--magenta);
  color: #0a0d1a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.clz-chip.is-primary {
  border-style: solid;
  border-color: var(--cyan);
  background: rgba(185, 204, 255, 0.08);
  color: var(--cyan);
}
.clz-chip.is-primary .clz-label { background: var(--cyan); }
.clz-chip .clz-view {
  color: var(--muted);
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

/* ============ 附录入口区 ============ */
.appendix-portal {
  --defense-main-left: 280px;
  --defense-main-pad-x: clamp(40px, 4vw, 96px);
  margin: 80px 0 40px var(--defense-main-left);
  padding: 60px var(--defense-main-pad-x);
  max-width: min(1740px, calc(100vw - var(--defense-main-left) - var(--defense-main-pad-x) - var(--defense-main-pad-x)));
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  transition: margin-left 0.32s cubic-bezier(.2,.7,.2,1), max-width 0.32s cubic-bezier(.2,.7,.2,1);
}
body.mindmap-collapsed .appendix-portal {
  --defense-main-left: 60px;
  margin-left: var(--defense-main-left);
  max-width: min(1840px, calc(100vw - var(--defense-main-left) - var(--defense-main-pad-x) - var(--defense-main-pad-x)));
}
@media (max-width: 1100px) { .appendix-portal { --defense-main-left: 240px; --defense-main-pad-x: 36px; padding-top: 48px; padding-bottom: 48px; } }
@media (max-width: 860px) { .appendix-portal { --defense-main-left: 200px; --defense-main-pad-x: 24px; } }
@media (max-width: 720px) { .appendix-portal { --defense-main-left: 110px; --defense-main-pad-x: 16px; padding-top: 40px; padding-bottom: 40px; } }
.appendix-head {
  margin-bottom: 32px;
}
.appendix-head .eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  color: var(--magenta);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.appendix-head h2 {
  font-size: 30px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}
.appendix-head p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  max-width: min(900px, 100%);
  line-height: 1.65;
}
.appendix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.appendix-card {
  background: rgba(17, 21, 33, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.appendix-card:hover {
  border-color: var(--cyan);
  background: rgba(23, 27, 42, 0.92);
  transform: translateY(-1px);
}
.appendix-card .appendix-tag {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--magenta);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.appendix-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}
.appendix-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============ footer ============ */
.defense-footer {
  position: relative;
  z-index: 2;
  --defense-main-left: 280px;
  --defense-main-pad-x: clamp(40px, 4vw, 96px);
  margin: 24px 0 40px var(--defense-main-left);
  padding: 24px var(--defense-main-pad-x);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  max-width: min(1740px, calc(100vw - var(--defense-main-left) - var(--defense-main-pad-x) - var(--defense-main-pad-x)));
  transition: margin-left 0.32s cubic-bezier(.2,.7,.2,1), max-width 0.32s cubic-bezier(.2,.7,.2,1);
}
body.mindmap-collapsed .defense-footer {
  --defense-main-left: 60px;
  margin-left: var(--defense-main-left);
  max-width: min(1840px, calc(100vw - var(--defense-main-left) - var(--defense-main-pad-x) - var(--defense-main-pad-x)));
}
@media (max-width: 1100px) { .defense-footer { --defense-main-left: 240px; --defense-main-pad-x: 36px; } }
@media (max-width: 860px) { .defense-footer { --defense-main-left: 200px; --defense-main-pad-x: 24px; } }
@media (max-width: 720px) { .defense-footer { --defense-main-left: 110px; --defense-main-pad-x: 16px; padding-top: 20px; padding-bottom: 20px; } }

/* ============ 证据 drawer ============ */
.evidence-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(460px, 92vw);
  height: 100vh;
  background: rgba(7, 10, 22, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
}
.evidence-drawer[aria-hidden="false"] {
  transform: translateX(0);
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.6);
}
.evidence-drawer-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.evidence-drawer header {
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.evidence-drawer header .eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--magenta);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.evidence-drawer header h3 {
  margin: 0;
  font-size: 19px;
  color: var(--text);
  font-weight: 600;
  padding-right: 36px;
}
.evidence-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.evidence-close:hover { color: var(--cyan); border-color: var(--cyan); }
.evidence-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 40px;
}
.evidence-section {
  margin-bottom: 28px;
}
.evidence-section h4 {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.evidence-book {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 33, 0.5);
}
.evidence-book img {
  width: 100%;
  border-radius: 4px;
}
.evidence-book .book-name {
  font-size: 13px;
  color: var(--text);
  margin: 0 0 4px;
  font-weight: 600;
}
.evidence-book .book-role {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.evidence-src {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 33, 0.5);
  margin-bottom: 10px;
}
.evidence-src .src-fn {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: var(--cyan);
}
.evidence-src .src-file {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.evidence-src img {
  margin-top: 8px;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.evidence-fig {
  margin-bottom: 12px;
}
.evidence-fig img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.evidence-fig p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 6px 0 0;
}
.evidence-clz {
  padding: 10px 12px;
  border: 1px dashed var(--magenta);
  border-radius: 6px;
  background: rgba(196, 166, 255, 0.06);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: var(--magenta);
  word-break: break-all;
}

/* ============================================================
   章节 intro — mini-flow / mini-mindmap
   挂在 .slide-title 下方、正文之前，给老师一个秒读的逻辑骨架
   ============================================================ */
.slide-intro {
  margin: 4px 0 28px;
  padding: 20px 22px;
  border: 1px solid rgba(185, 204, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(23, 27, 42, 0.6), rgba(17, 21, 33, 0.4));
  max-width: min(1120px, 100%);
  position: relative;
}
.slide-intro::before {
  content: attr(data-intro-type);
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--magenta);
  text-transform: uppercase;
  background: #050810;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid rgba(196, 166, 255, 0.3);
}

/* ----- mini-flow（横向流程图） ----- */
.mini-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-flow .mf-node {
  flex: 1 1 0;
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 204, 255, 0.22);
  border-radius: 8px;
  background: rgba(17, 21, 33, 0.7);
  position: relative;
  text-align: center;
}
.mini-flow .mf-node strong {
  display: block;
  color: var(--cyan);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.mini-flow .mf-node span {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.mini-flow .mf-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: rgba(185, 204, 255, 0.45);
  font-size: 14px;
  user-select: none;
}
@media (max-width: 780px) {
  .mini-flow { flex-direction: column; }
  .mini-flow .mf-arrow { transform: rotate(90deg); }
}

/* ----- mini-mindmap（中心放射） ----- */
.mini-mindmap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.mini-mindmap .mm-root {
  justify-self: center;
  padding: 10px 18px;
  background: rgba(185, 204, 255, 0.14);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  position: relative;
}
.mini-mindmap .mm-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  position: relative;
}
/* 顶部小连接线（视觉提示分支） */
.mini-mindmap .mm-branches::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 4%,
    rgba(185, 204, 255, 0.25) 20%,
    rgba(185, 204, 255, 0.25) 80%,
    transparent 96%);
}
.mini-mindmap .mm-branch {
  padding: 12px 14px;
  border: 1px solid rgba(185, 204, 255, 0.18);
  border-radius: 10px;
  background: rgba(17, 21, 33, 0.65);
  position: relative;
}
.mini-mindmap .mm-branch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 1px;
  height: 8px;
  background: rgba(185, 204, 255, 0.25);
}
.mini-mindmap .mm-branch strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.mini-mindmap .mm-leaves {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.mini-mindmap .mm-leaf {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(174, 182, 215, 0.08);
  letter-spacing: 0.02em;
}

/* ============================================================
   附录全屏 modal + 大图 lightbox
   ============================================================ */
.appendix-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.appendix-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.appendix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 9, 0.85);
  backdrop-filter: blur(8px);
  border: 0;
  cursor: pointer;
}
.appendix-modal-panel {
  position: absolute;
  top: 4vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, 96vw);
  max-height: 92vh;
  background: linear-gradient(180deg, #0a0d1a 0%, #060812 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.appendix-modal-head {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex: 0 0 auto;
}
.appendix-modal-head .eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  color: var(--magenta);
  font-size: 11px;
  letter-spacing: 0.22em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.appendix-modal-head h2 {
  margin: 0;
  font-size: 24px;
  color: var(--text);
  font-weight: 600;
  padding-right: 60px;
}
.appendix-modal-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.appendix-modal-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.appendix-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px 32px 40px;
}
@media (max-width: 720px) {
  .appendix-modal-panel { top: 2vh; width: 96vw; max-height: 96vh; }
  .appendix-modal-head { padding: 18px 20px 14px; }
  .appendix-modal-head h2 { font-size: 18px; }
  .appendix-modal-body { padding: 18px 20px 32px; }
}

/* —— 通用文本块 —— */
.apx-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.7;
  max-width: 820px;
}
.apx-section { margin-bottom: 32px; }
.apx-section h4 {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.apx-paragraph {
  font-size: 15px;
  color: rgba(245, 247, 255, 0.86);
  line-height: 1.8;
  margin: 0 0 14px;
  max-width: 820px;
}
.apx-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.apx-link {
  padding: 8px 14px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-family: ui-monospace, Menlo, monospace;
  text-decoration: none;
  transition: background 0.2s;
}
.apx-link:hover { background: rgba(185, 204, 255, 0.1); }
.apx-final {
  padding: 18px 22px;
  border-left: 3px solid var(--cyan);
  background: rgba(185, 204, 255, 0.06);
  margin: 12px 0 24px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.78;
  border-radius: 0 8px 8px 0;
}

/* —— A2 view list —— */
.apx-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.apx-view-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 21, 33, 0.6);
}
.apx-view-item strong {
  display: block;
  color: var(--cyan);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  margin-bottom: 6px;
}
.apx-view-item span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* —— A3 book grid —— */
.apx-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.apx-book {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 21, 33, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apx-book img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1f31;
}
.apx-book .bk-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.apx-book .bk-role {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.apx-book .bk-gold {
  font-size: 11.5px;
  color: #e8d488;
  margin: 0;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid rgba(232, 212, 136, 0.15);
}
/* —— A3 theory pages thumbnail wall —— */
.apx-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.apx-thumb {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050810;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  padding: 0;
}
.apx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(0.92);
}
.apx-thumb:hover img { transform: scale(1.04); filter: brightness(1); }

/* —— A4 source code cards 按章分组 —— */
.apx-chapter-group {
  margin-bottom: 24px;
}
.apx-chapter-group .chap-head {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--magenta);
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--magenta);
}
.apx-src-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.apx-src-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 33, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.apx-src-card .src-thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top left;
  background: #0c1020;
  cursor: zoom-in;
  filter: brightness(0.95);
  display: block;
}
.apx-src-card .src-thumb:hover { filter: brightness(1.05); }
.apx-src-card .src-meta {
  padding: 10px 14px 14px;
}
.apx-src-card .src-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 4px;
}
.apx-src-card .src-file {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: var(--cyan);
  margin: 0 0 6px;
  display: block;
  word-break: break-all;
}
.apx-src-card .src-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* —— A5 QA list —— */
.apx-qa-list { display: flex; flex-direction: column; gap: 10px; }
.apx-qa {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 33, 0.6);
  overflow: hidden;
}
.apx-qa summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  user-select: none;
}
.apx-qa summary::-webkit-details-marker { display: none; }
.apx-qa summary::before {
  content: counter(qa-n);
  counter-increment: qa-n;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: var(--cyan);
  flex: 0 0 28px;
  padding-top: 2px;
}
.apx-qa[open] summary { background: rgba(185, 204, 255, 0.06); }
.apx-qa-body { padding: 8px 18px 18px 60px; }
.apx-qa-short {
  font-size: 13.5px;
  color: var(--cyan);
  margin: 0 0 8px;
  line-height: 1.65;
}
.apx-qa-expand {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.apx-qa-list { counter-reset: qa-n; }

/* —— lightbox（点 thumb 放大） —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  border: 0;
  cursor: zoom-out;
}
.lightbox-figure {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}
.lightbox-figure img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.lightbox-figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
  font-family: ui-monospace, Menlo, monospace;
}

/* ============================================================
   A3 接线表样式（route 列表）
   ============================================================ */
.apx-route {
  margin-bottom: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 21, 33, 0.45), rgba(10, 13, 26, 0.55));
}
.apx-route .route-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.apx-route .route-head h3 {
  margin: 0;
  color: var(--cyan);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
}
.apx-route .route-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.apx-route .route-anchors code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--magenta);
  background: rgba(196, 166, 255, 0.08);
  border: 1px solid rgba(196, 166, 255, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  word-break: break-all;
}
.apx-route .route-what,
.apx-route .route-boundary {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(245, 247, 255, 0.82);
}
.apx-route .route-what strong { color: var(--cyan); }
.apx-route .route-boundary {
  color: var(--muted);
  font-style: italic;
  padding: 8px 12px;
  background: rgba(255, 109, 158, 0.05);
  border-left: 2px solid rgba(255, 109, 158, 0.35);
  border-radius: 4px;
  margin: 6px 0 14px;
}
.apx-route .route-boundary strong { color: var(--danger); font-style: normal; }
.apx-route .route-sub {
  margin-top: 18px;
}
.apx-route .route-sub h4 {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--magenta);
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 500;
}
/* src 截图横排（mini）— 自适应高度，不裁切 */
.route-src-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  align-items: start;
}
.route-src-mini {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #050810;
  display: flex;
  flex-direction: column;
}
.route-src-mini img {
  width: 100%;
  aspect-ratio: 16 / 11;       /* 统一卡片高度，横向比例容下大多源码截图顶部 */
  object-fit: cover;
  object-position: top left;   /* 保留左上的代码顶端，超出截掉 */
  background: #0c1020;
  cursor: zoom-in;
  filter: brightness(0.96);
  display: block;
}
.route-src-mini img:hover { filter: brightness(1.1); }
.route-src-mini figcaption {
  padding: 8px 12px;
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 22, 0.6);
}
.route-src-mini strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 12.5px;
}
.route-src-mini code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: var(--cyan);
  word-break: break-all;
}
/* book row：竖向卡片，cover 完整展示，hover 浮层显示文本 */
.route-book-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.route-book {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1020;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.route-book:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}
/* cover 完整显示（保持比例 + 居中 cover 让所有书一个大小） */
.route-book img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;            /* 全统一卡片大小 */
  object-position: center;
  background: #0c1020;
  display: block;
}
/* hover 浮层 — 默认隐藏，hover 时滑入 */
.route-book .bk-meta {
  position: absolute;
  inset: 0;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background: linear-gradient(180deg,
    rgba(7, 10, 22, 0.0) 0%,
    rgba(7, 10, 22, 0.65) 38%,
    rgba(7, 10, 22, 0.94) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.route-book:hover .bk-meta,
.route-book:focus-visible .bk-meta {
  opacity: 1;
}
.route-book .bk-meta strong {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.route-book .bk-meta span {
  font-size: 11px;
  color: var(--cyan);
  line-height: 1.5;
}
.route-book .bk-meta em {
  font-style: normal;
  font-size: 10.5px;
  color: #e8d488;
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px solid rgba(232, 212, 136, 0.2);
}
/* ↗ PDF badge — 始终可见，提示这是可点击的 */
.route-book::after {
  content: "↗ PDF";
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  background: rgba(7, 10, 22, 0.85);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(185, 204, 255, 0.4);
  z-index: 2;
  pointer-events: none;
}
/* theory pages 横排 thumbs */
.route-pages-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
}
.route-page {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050810;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.route-page img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.25s, transform 0.3s;
}
.route-page:hover img { filter: brightness(1); transform: scale(1.04); }
.route-page .pg-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  background: rgba(7, 10, 22, 0.85);
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.route-page .pg-badge.pri {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ============================================================
   .clz chip → button + 点击 → helper 拉起 GOODMETER
   ============================================================ */
.clz-chip {
  /* 覆盖 button 默认样式 */
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.clz-chip:hover {
  background: rgba(196, 166, 255, 0.16);
  transform: translateY(-1px);
  border-style: solid;
}
.clz-chip.is-primary:hover {
  background: rgba(185, 204, 255, 0.18);
}
.clz-chip:active { transform: translateY(0); }
.clz-chip .clz-source {
  color: var(--cyan);
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.clz-chip .clz-arrow {
  margin-left: auto;
  padding-left: 10px;
  color: var(--magenta);
  font-family: ui-monospace, Menlo, monospace;
  opacity: 0.7;
}
.clz-chip.is-primary .clz-arrow { color: var(--cyan); opacity: 1; }

/* ============================================================
   Toast — chip 点击成功 / 失败的瞬时反馈
   ============================================================ */
.defense-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 80px);
  z-index: 200;
  padding: 12px 22px;
  background: rgba(7, 10, 22, 0.95);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), opacity 0.3s;
  max-width: 86vw;
  text-align: center;
}
.defense-toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}
.defense-toast.is-error {
  border-color: var(--danger);
  color: #ffd2dd;
}

/* ============================================================
   重点色（金 / 紫）— 论文组 20260521 规则
   金色：一级论点、老师需要记住的关键词
   紫色：技术节点 / 指标 / 处理环节 / 辅助概念
   只染词或短语，不整段染色
   ============================================================ */
.hi-gold {
  color: #FFD56A;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hi-violet {
  color: #B68CFF;
  font-weight: 500;
}

/* ============================================================
   .slide-hero-video — 章节顶部单视频（CST / Layering / Fusion / Scene）
   ============================================================ */
.slide-hero-video {
  margin: 0 0 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050810;
  max-width: min(1120px, 100%);
  position: relative;
}
.slide-hero-video video {
  width: 100%;
  display: block;
  max-height: 56vh;
  object-fit: cover;
  background: #050810;
  filter: brightness(0.82) saturate(0.95);
}
.slide-hero-video video.is-audible {
  filter: none;
}
.slide-hero-video figcaption {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(7, 10, 22, 0.65);
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}

/* ============================================================
   A3 三维思维导图 (Three.js)
   ============================================================ */
.appendix-modal.is-fullscreen .appendix-modal-panel {
  top: 0;
  left: 0;
  transform: none;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: none;
}
.appendix-modal.is-fullscreen .appendix-modal-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 18px 28px 14px;
  z-index: 10;
  background: linear-gradient(180deg, rgba(3,4,11,0.92) 0%, rgba(3,4,11,0) 100%);
  border-bottom: none;
}
.appendix-modal.is-fullscreen .appendix-modal-body {
  padding: 0;
  overflow: hidden;
  height: 100vh;
}
.a3-3d-container {
  width: 100%;
  height: 100vh;
  position: relative;
}
.a3-3d-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.a3-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;       /* 移动端拖拽不触发页面滚动 */
}
.a3-3d-canvas:active { cursor: grabbing; }
.a3-3d-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.a3-3d-overlay > * {
  pointer-events: auto;
}
.a3-back {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 4px 2px;
  background: transparent;
  border: none;
  color: #ffffff;
  border-radius: 0;
  font-family: "Cuomotype", "Essays1743", "Huiwen Mincho", "PingFang SC", ui-serif, serif;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.18em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.85),
    0 0 14px rgba(185, 204, 255, 0.55),
    0 0 32px rgba(196, 166, 255, 0.35);
  opacity: 0.78;
  transition: opacity 0.3s ease, transform 0.3s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease;
}
.a3-back .a3-back-glyph {
  font-size: 14px;
  opacity: 0.7;
  transform: translateY(-1px);
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.a3-back[hidden] { display: none !important; }
.a3-back:hover {
  opacity: 1;
  letter-spacing: 0.22em;
  transform: translateX(-50%) translateY(-1px);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(185, 204, 255, 0.8),
    0 0 40px rgba(196, 166, 255, 0.55);
}
.a3-back:hover .a3-back-glyph {
  opacity: 1;
  transform: translateY(-1px) rotate(180deg);
}

.a3-node-label {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  /* 打字机 / 明朝体：白字 + 节点色光晕（--node-glow 由 JS 注入） */
  font-family: "Cuomotype", "Essays1743", "Huiwen Mincho", "PingFang SC", "Songti SC", ui-serif, serif;
  font-size: 19px;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: transparent;
  padding: 0;
  border: none;
  white-space: nowrap;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.85),
    0 0 10px var(--node-glow, rgba(185, 204, 255, 0.7)),
    0 0 24px var(--node-glow, rgba(137, 162, 255, 0.4));
  transition: opacity 0.3s, text-shadow 0.3s, font-size 0.3s;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.a3-node-label.is-center {
  font-size: 30px;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(255, 255, 255, 0.55),
    0 0 36px var(--node-glow, rgba(185, 204, 255, 0.5));
}
.a3-node-label.is-dim {
  opacity: 0.22;
}
.a3-node-label.is-active {
  font-size: 23px;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 14px var(--node-glow, rgba(185, 204, 255, 0.85)),
    0 0 32px var(--node-glow, rgba(196, 166, 255, 0.6));
}

/* 左右浮面板：无框、无背景、纯浮空文字 */
.a3-panel {
  position: absolute;
  top: 80px;
  bottom: 32px;
  width: min(560px, 40vw);
  padding: 12px 24px;
  overflow-y: auto;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
  pointer-events: auto;
  /* 默认完全隐形，鼠标进面板才隐约一条，拖动时才点亮成站点 palette 细弧 */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  /* 顶/底淡出条收窄到 1.5%（原 6% 太宽，会把标题第一行吃掉一半） */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 1.5%, black 98.5%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 1.5%, black 98.5%, transparent 100%);
}
.a3-panel:hover,
.a3-panel:focus-within {
  scrollbar-color: rgba(168, 196, 255, 0.22) transparent;
}
.a3-panel::-webkit-scrollbar { width: 3px !important; background: transparent !important; }
.a3-panel::-webkit-scrollbar-track { background: transparent !important; box-shadow: none !important; border: none !important; }
.a3-panel::-webkit-scrollbar-thumb {
  background: transparent !important;
  border: none !important;
  border-radius: 2px;
  box-shadow: none !important;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.a3-panel:hover::-webkit-scrollbar-thumb {
  background: rgba(168, 196, 255, 0.22) !important;
}
/* 拖动时（:active）才点亮成 cyan→mid→violet 细弧 + 柔光晕 */
.a3-panel::-webkit-scrollbar-thumb:hover,
.a3-panel::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #7de9ff 0%, #a8c4ff 50%, #c5a6ff 100%) !important;
  box-shadow:
    0 0 3px rgba(125, 233, 255, 0.65),
    0 0 10px rgba(168, 196, 255, 0.45),
    0 0 18px rgba(197, 166, 255, 0.30) !important;
}
.a3-panel::-webkit-scrollbar-corner,
.a3-panel::-webkit-scrollbar-button { display: none !important; background: transparent !important; }
.a3-panel-left { left: 28px; transform: translateX(-40px); }
.a3-panel-right { right: 28px; transform: translateX(40px); }
.a3-panel.is-on { opacity: 1; transform: translateX(0); }

/* 左侧讲稿 — Geist Pixel 浮空字（字号放大） */
.a3-panel-left header { margin-bottom: 22px; border: none; padding: 0; }
.a3-panel-left .lec-n {
  display: inline-block;
  font-family: "Geist Pixel Square", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: #c4a6ff;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(196, 166, 255, 0.6);
  -webkit-font-smoothing: none;
}
.a3-panel-left header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 16px rgba(185,204,255,0.4);
}
.a3-panel-left p {
  font-size: 16.5px;
  line-height: 1.85;
  margin: 0 0 18px;
  color: rgba(245,247,255,0.94);
  text-shadow: 0 0 8px rgba(0,0,0,0.85), 0 0 18px rgba(0,0,0,0.6);
}
.a3-panel-left .lec-quote {
  font-size: 17.5px;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.8;
  text-shadow:
    0 0 4px rgba(0,0,0,0.85),
    0 0 14px rgba(185,204,255,0.32);
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  margin-bottom: 22px;
}
.a3-panel-left .lec-hua {
  color: rgba(245,247,255,0.86);
  font-size: 16px;
  line-height: 1.85;
}
.a3-panel-left .lec-boundary {
  font-style: italic;
  color: #ffd2dd;
  text-shadow: 0 0 8px rgba(0,0,0,0.85), 0 0 14px rgba(255,109,158,0.25);
  padding: 0;
  border: none;
  background: none;
  font-size: 14.5px;
  margin-top: 16px;
}

/* —— 讲稿小标题（"流程："、"代码入口"、"FFT 怎么理解" 等） —— */
.a3-panel-left .lec-sub {
  font-family: "Kingthings Typewriter", "Tongwen Dict", "PingFang SC", ui-serif, serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(185, 204, 255, 0.25);
  text-shadow: 0 0 10px rgba(185, 204, 255, 0.35);
}
.a3-panel-left .lec-code { margin-top: 6px; }
.a3-panel-left .lec-code .lec-sub { color: rgba(160, 232, 196, 0.92); }

/* —— ↓ 流程图：参考主页左侧坐标节点（subway 风） —— */
.a3-panel-left .lec-flow {
  list-style: none;
  margin: 10px 0 18px;
  padding: 0 0 0 6px;
}
.a3-panel-left .lec-flow li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0 8px 6px;
  margin: 0;
  /* 竖向连接线：在 dot 中心位置 */
}
.a3-panel-left .lec-flow li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(185, 204, 255, 0.35) 0%,
    rgba(185, 204, 255, 0.55) 50%,
    rgba(185, 204, 255, 0.35) 100%);
}
.a3-panel-left .lec-flow li:first-child::before { top: 14px; }
.a3-panel-left .lec-flow li:last-child::before  { bottom: calc(100% - 14px); }
.a3-panel-left .lec-flow .lec-flow-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 0 2px rgba(7, 10, 22, 0.95),
    0 0 10px rgba(185, 204, 255, 0.65);
}
.a3-panel-left .lec-flow .lec-flow-text {
  flex: 1 1 auto;
  font-family: "Kingthings Typewriter", "Tongwen Dict", "PingFang SC", ui-serif, serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(245, 247, 255, 0.92);
  padding-top: 2px;
}

/* 右侧路由证据 — 图片为主，无框 */
.a3-panel-right { padding: 12px 18px; }
.a3-panel-right .r-srcs,
.a3-panel-right .r-books,
.a3-panel-right .r-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.a3-panel-right .r-src {
  margin: 0;
  flex: 1 1 100%;
  border: 1px solid rgba(185,204,255,0.18);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(7,10,22,0.55);
  backdrop-filter: blur(8px);
  cursor: zoom-in;
  transition: border-color 0.2s;
}
.a3-panel-right .r-src:hover { border-color: rgba(185,204,255,0.45); }
.a3-panel-right .r-src img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: top left;
  display: block;
  filter: brightness(0.95);
}
.a3-panel-right .r-src figcaption {
  padding: 6px 10px;
  font-size: 10.5px;
  color: rgba(245,247,255,0.82);
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
}
.a3-panel-right .r-src code {
  font-family: ui-monospace, Menlo, monospace;
  color: #b9ccff;
}
.a3-panel-right .r-books {
  gap: 6px;
}
.a3-panel-right .r-book {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: calc((100% - 12px) / 3);
  text-decoration: none;
  cursor: pointer;
}
.a3-panel-right .r-book img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1f31;
  filter: brightness(0.92);
  transition: filter 0.2s, transform 0.2s;
}
.a3-panel-right .r-book:hover img {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.a3-panel-right .r-book-title {
  font-size: 10px;
  color: rgba(245,247,255,0.78);
  text-align: center;
  text-shadow: 0 0 6px rgba(0,0,0,0.8);
  line-height: 1.3;
}
.a3-panel-right .r-page {
  width: calc((100% - 30px) / 4);
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: #050810;
  filter: brightness(0.85);
  border: 1px solid rgba(185,204,255,0.1);
  cursor: zoom-in;
  transition: filter 0.2s, border-color 0.2s, transform 0.2s;
}
.a3-panel-right .r-page:hover {
  filter: brightness(1.05);
  border-color: rgba(185,204,255,0.4);
  transform: translateY(-2px);
}
.a3-panel-right .r-empty {
  font-family: "Geist Pixel Square", ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  -webkit-font-smoothing: none;
}

@media (max-width: 900px) {
  .a3-panel { width: 88vw; top: 60px; }
  .a3-panel-left { transform: translateY(-40px); }
  .a3-panel-right { display: none; }
}

/* ============ 致谢页 — 请各位老师批评指正 ============ */
.thanks-page {
  position: relative;
  z-index: 2;
  margin: 0 0 0 var(--defense-main-left, 280px);
  padding: clamp(140px, 18vh, 220px) clamp(40px, 4vw, 96px) clamp(140px, 18vh, 220px);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  transition: margin-left 0.32s cubic-bezier(.2,.7,.2,1);
}
body.mindmap-collapsed .thanks-page {
  margin-left: 230px;
}
.thanks-page .thanks-inner {
  max-width: 720px;
}
.thanks-page .thanks-eyebrow {
  font-family: "Kingthings Typewriter", "Cuomotype", ui-monospace, monospace;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: rgba(185, 204, 255, 0.6);
  text-transform: uppercase;
  margin: 0 0 24px;
}
.thanks-page .thanks-title {
  font-family: "Kingthings Typewriter", "Tongwen Dict", "Huiwen Tsukiji5", "PingFang SC", ui-serif, serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.12em;
  margin: 0 0 36px;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(185, 204, 255, 0.35),
    0 0 60px rgba(196, 166, 255, 0.22);
}
.thanks-page .thanks-sign {
  font-family: "Kingthings Typewriter", "Cuomotype", "PingFang SC", monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: rgba(245, 247, 255, 0.55);
  margin: 0;
}
