/* ==================== 0. 全局纯白科技配色与高对比度高质感主题 ==================== */
:root {
  /* 白色主基调 */
  --bg-deep: #ffffff;
  --bg-canvas: #ffffff;
  --bg-panel: #ffffff;
  --bg-card: #f8fafc;
  --border-panel: #dce5ef;
  --border-scope: #cbd5e1;
  
  /* 仿真平台工业科技标志青绿 (Teal) */
  --primary-teal: #087f8c;
  --primary: #0f766e;
  --primary-hover: #066b77;
  --primary-light: #e6f6f8;
  --teal-glow: rgba(8, 127, 140, 0.28);

  /* 7 大资源极值高饱和标志色 (浅底强对比度标定) */
  --res-textbook: #1d4ed8;    /* 01 教材：高饱和宝蓝 */
  --res-exercise: #b45309;    /* 02 习题：琥珀亮棕金 */
  --res-courseware: #6d28d9;  /* 03 课件：深紫/典雅紫 */
  --res-video: #be123c;       /* 04 微课：玫瑰洋红 */
  --res-ngspice: #047857;     /* 05 NGSPICE：翡翠深绿 */
  --res-virtuallab: #087f8c;  /* 06 虚拟实验：工业青绿 */
  --res-homework: #c2410c;    /* 07 作业批改：朱批亮橙 */

  /* 读数与时间基准指示色 */
  --readout-tag: #0f766e;
  --readout-bg: #e6fffa;
  --readout-border: #99f6e4;

  /* 字体与排版 */
  --text-main: #0f172a;       /* 深黑深灰正文 */
  --text-muted: #475569;      /* 次级灰色 */
  --font-code: 'Fira Code', ui-monospace, monospace;
  --font-tech: 'Orbitron', 'Fira Code', sans-serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shell-max-w: min(1760px, 96vw);
  --shell-px: clamp(16px, 2vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f4f7fb;
  background-image: radial-gradient(rgba(148, 163, 184, 0.38) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  color: var(--text-main);
  font-family: var(--font-sans);
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
  html, body {
    -webkit-font-smoothing: antialiased;
  }
}

/* ==================== 1. 三阶段陶瓷电路板 Bento 工作台 ==================== */
.portal-shell {
  width: 100%;
  max-width: var(--shell-max-w);
  margin: 0 auto;
  padding: clamp(12px, 1.6vh, 20px) var(--shell-px) clamp(14px, 1.8vh, 24px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 18px);
}

@media (min-width: 1024px) and (min-height: 500px) {
  .portal-shell {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: clamp(10px, 1.4vh, 18px) var(--shell-px) clamp(12px, 1.6vh, 20px);
    gap: clamp(10px, 1.4vh, 16px);
  }
  .bento-grid {
    grid-template-rows: minmax(0, 1fr);
  }
}

/* 顶部三段式导航栏 */
.bento-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 20;
}

.bento-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bento-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #beeae4;
  border: 1.5px solid #88d8ce;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(8, 127, 140, 0.14);
}

.bento-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-brand-text h1 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-author {
  font-size: 0.86em;
  font-weight: 600;
  color: var(--primary-teal);
}

.bento-brand-text p {
  font-size: 0.72rem;
  font-family: var(--font-code);
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
}

/* 居中胶囊阶段筛选栏 */
.bento-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.nav-pill-btn {
  position: relative;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-pill-btn:hover {
  color: #0f172a;
  background: rgba(241, 245, 249, 0.75);
}

.nav-pill-btn.active {
  color: var(--primary-teal);
  font-weight: 700;
  background: rgba(230, 247, 245, 0.65);
}

.nav-pill-btn.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0d9488, #06b6d4);
}

.nav-pill-pulse {
  width: 32px;
  height: 32px;
  margin-left: 2px;
  border-radius: 50%;
  border: 1px solid #dce6f0;
  background: #f8fafc;
  color: var(--primary-teal);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.nav-pill-pulse:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #ffffff;
}

.nav-pill-pulse.is-paused {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

/* 顶部右侧为默认悬浮在模块 05 上方右上角的 MOS仔博士 预留视觉空间 */
.bento-topbar-spacer {
  width: 150px;
  height: 44px;
  flex-shrink: 0;
  pointer-events: none;
}

/* ==================== 2. 主 Bento 画板与 PCB 铜箔连线层 ==================== */
.bento-board {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bento-trace-svg,
.bento-pulse-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.bento-pulse-canvas {
  z-index: 2;
}

.pcb-trace {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.24s ease, stroke-width 0.22s ease, filter 0.22s ease;
}

.pcb-trace.trace-teal {
  stroke: rgba(13, 148, 136, 0.72);
  stroke-width: 2px;
}

.pcb-trace.trace-gold {
  stroke: rgba(217, 155, 16, 0.72);
  stroke-width: 2px;
}

.pcb-trace.is-hot {
  stroke-width: 3.1px;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(8, 145, 178, 0.45));
}

.pcb-trace.trace-gold.is-hot {
  filter: drop-shadow(0 0 6px rgba(217, 155, 16, 0.5));
}

.pcb-trace.is-dimmed,
.pcb-pad.is-dimmed {
  opacity: 0.16;
}

.pcb-pad {
  transition: opacity 0.24s ease;
}

/* 三阶段网格布局 */
.bento-grid {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.22fr) minmax(0, 0.86fr);
  column-gap: clamp(55px, calc((min(96vw, 1760px) - 890px) / 4), 220px);
  align-items: stretch;
}

.bento-stage-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: opacity 0.26s ease, filter 0.26s ease, transform 0.26s ease;
}

.bento-stage-col.stage-dimmed {
  opacity: 0.28;
  filter: grayscale(0.32);
}

.stage-heading {
  font-size: clamp(0.8rem, 0.72rem + 0.16vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #334155;
  margin-bottom: clamp(6px, 0.9vh, 12px);
  padding-left: 2px;
  flex-shrink: 0;
  font-family: var(--font-code), var(--font-sans);
}

.stage-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 24px);
}

.stage2-stack {
  gap: clamp(14px, 2.8vh, 36px);
}

/* 通用 Bento 白瓷卡片 */
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px 15px;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow:
    0 10px 28px -10px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  min-height: 0;
}

.bento-card:hover,
.bento-card.is-active-trace {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.58);
  box-shadow:
    0 18px 36px -12px rgba(8, 127, 140, 0.2),
    0 0 0 1px rgba(13, 148, 136, 0.14);
}

.bento-card[data-idx="1"]:hover,
.bento-card[data-idx="1"].is-active-trace {
  border-color: rgba(217, 155, 16, 0.62);
  box-shadow:
    0 18px 36px -12px rgba(180, 83, 9, 0.18),
    0 0 0 1px rgba(217, 155, 16, 0.16);
}

.bento-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.bento-kicker {
  font-size: 0.74rem;
  font-family: var(--font-code);
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.bento-mini-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

.badge-teal {
  background: #e6f7f5;
  color: #0f766e;
  border: 1px solid #99e2d8;
}

.badge-amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.badge-rose {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.badge-violet {
  background: #f3e8ff;
  color: var(--res-courseware);
  border: 1px solid #d8b4fe;
}

.bento-card-foot {
  margin-top: auto;
  padding-top: 8px;
  flex-shrink: 0;
}

.bento-card-foot h2,
.cw-copy h2,
.tool-copy h2 {
  font-size: 1.04rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.bento-card-foot p,
.cw-copy p,
.tool-copy p {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stage 1 卡片（01 主教材大，02 习题解答小，凸显主教材主体地位） */
.stage1-stack .bento-card {
  flex: 1 1 0%;
}

.stage1-stack #bento-card-0 {
  flex: 1.58 1 0%;
}

.stage1-stack #bento-card-1 {
  flex: 0.72 1 0%;
  padding: 10px 14px;
}

.stage1-stack #bento-card-1 .bento-card-head {
  margin-bottom: 5px;
}

.stage1-stack #bento-card-1 .bento-card-foot {
  padding-top: 6px;
}

.stage1-stack #bento-card-1 .bento-card-foot h2 {
  font-size: 0.96rem;
}

.bento-cover-stage {
  flex: 1;
  min-height: 0;
  border-radius: 11px;
  padding: clamp(4px, 0.8vh, 9px) 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bento-cover-stage.tone-teal {
  background: linear-gradient(135deg, #d8eeec 0%, #e7f6f5 100%);
  border: 1px solid rgba(13, 148, 136, 0.14);
}

.bento-cover-stage.tone-amber {
  background: linear-gradient(135deg, #f7ead1 0%, #fdf5e4 100%);
  border: 1px solid rgba(217, 155, 16, 0.16);
}

.bento-cover-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease;
}

.bento-card:hover .bento-cover-stage img {
  transform: scale(1.04);
}

/* Stage 2 上方卡片（03 精品课件，与模块 04 等高同宽） */
.bento-card-cw {
  flex: 1 1 0%;
  padding: 14px 16px 13px;
}

.cw-media-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3e8ff 0%, #f8f5ff 100%);
  border: 1px solid rgba(109, 40, 217, 0.14);
  padding: clamp(10px, 1.5vh, 18px) clamp(12px, 1.4vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cw-stack-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 9px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow:
    5px -5px 0 -1px #f8fafc,
    5px -5px 0 0 #cbd5e1,
    10px -10px 0 -2px #f1f5f9,
    10px -10px 0 -1px #cbd5e1,
    0 10px 22px -8px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 8px 0 0;
  transition: transform 0.25s ease;
}

.bento-card-cw:hover .cw-stack-preview {
  transform: translateY(-2px) scale(1.02);
}

.cw-stack-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Stage 2 核心主卡（04 实战微课 + 实时示波器波条） */
.bento-card-hero {
  flex: 1 1 0%;
  padding: 14px 16px 13px;
}

.hero-media-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 12px 12px 6px 6px;
  background: radial-gradient(circle at 50% 45%, #112a3a 0%, #0b1c28 100%);
  border: 1px solid #1e3a4c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.28s ease;
}

.bento-card-hero:hover .hero-media-frame img {
  transform: scale(1.02);
}

.hero-play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  color: #ffffff;
  font-size: 1.28rem;
  padding-left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.35),
    0 0 0 8px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.bento-card-hero:hover .hero-play-orb {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(8, 127, 140, 0.92);
}

.hero-scope-bar {
  margin-top: 8px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(90deg, #070b14 0%, #0d1522 50%, #070b14 100%);
  border: 1px solid #1e293b;
  padding: 0 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

.scope-play-tag {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #22c55e;
  color: #052e16;
  font-size: 0.7rem;
  font-weight: 800;
  padding-left: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

#micro-wave-canvas {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  height: 28px;
  display: block;
}

/* Stage 3 右侧仿真与评测工具卡片（05/06/07：图片在上，标题在底） */
.stage3-stack .bento-card-tool {
  flex: 1;
  padding: 10px 14px 11px;
  justify-content: space-between;
}

.stage3-stack .bento-card-head {
  margin-bottom: 6px;
}

@keyframes statusLedBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.24), 0 0 12px rgba(34, 197, 94, 0.92);
  }
  48% {
    opacity: 0.34;
    transform: scale(0.84);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), 0 0 3px rgba(34, 197, 94, 0.25);
  }
}

@keyframes statusLedRing {
  0% {
    transform: scale(0.95);
    opacity: 0.72;
  }
  70%, 100% {
    transform: scale(2.25);
    opacity: 0;
  }
}

.status-led {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dcfce7 0%, #22c55e 58%, #15803d 100%);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 0 10px rgba(34, 197, 94, 0.85);
  flex-shrink: 0;
  animation: statusLedBlink 1.35s ease-in-out infinite;
}

.status-led::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.65);
  animation: statusLedRing 1.35s ease-out infinite;
  pointer-events: none;
}

.stage3-stack .bento-card-tool:nth-child(2) .status-led,
.stage3-stack .bento-card-tool:nth-child(2) .status-led::after {
  animation-delay: 0.35s;
}

.stage3-stack .bento-card-tool:nth-child(3) .status-led,
.stage3-stack .bento-card-tool:nth-child(3) .status-led::after {
  animation-delay: 0.7s;
}

.tool-card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.tool-thumb {
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  border: 1px solid #dce5ef;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease;
}

.bento-card-tool:hover .tool-thumb img {
  transform: scale(1.04);
}

.tool-copy {
  flex-shrink: 0;
  min-width: 0;
}

.tool-copy h2 {
  font-size: 1.02rem;
}

@media (max-width: 1240px) and (min-width: 1024px) {
  :root {
    --shell-px: 18px;
  }
  .portal-shell {
    padding: 12px var(--shell-px) 14px;
  }
  .bento-grid {
    column-gap: clamp(48px, calc((96vw - 830px) / 4), 90px);
  }
}

/* 兼容外接屏/缩放后浏览器可用高度较矮（500px~759px，含书签栏）的整屏自适应 */
@media (min-width: 1024px) and (max-height: 759px) {
  :root {
    --shell-px: 18px;
  }
  .portal-shell {
    padding: 8px var(--shell-px) 10px;
    gap: 8px;
  }
  .bento-topbar {
    gap: 10px;
  }
  .bento-brand {
    gap: 10px;
  }
  .bento-brand-icon {
    width: 36px;
    height: 36px;
  }
  .bento-brand-text h1 {
    font-size: 0.92rem;
  }
  .bento-brand-text p {
    font-size: 0.66rem;
  }
  .nav-pill-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .nav-pill-pulse {
    width: 28px;
    height: 28px;
  }
  .bento-topbar-spacer {
    width: 142px;
  }
  .stage-heading {
    font-size: 0.78rem;
    margin-bottom: 5px;
  }
  .stage-stack {
    gap: 12px;
  }
  .stage2-stack {
    gap: 12px;
  }
  .bento-card {
    padding: 8px 11px;
    border-radius: 13px;
  }
  .bento-card-head {
    margin-bottom: 4px;
  }
  .bento-kicker {
    font-size: 0.7rem;
  }
  .bento-card-foot {
    padding-top: 5px;
  }
  .bento-card-foot h2,
  .cw-copy h2,
  .tool-copy h2 {
    font-size: 0.92rem;
  }
  .bento-card-foot p,
  .cw-copy p,
  .tool-copy p {
    font-size: 0.7rem;
    margin-top: 1px;
  }
  .bento-cover-stage {
    padding: 5px 8px;
  }
  .bento-card-cw {
    flex: 1 1 0%;
    padding: 8px 12px 9px;
  }
  .cw-media-frame {
    padding: 8px 12px 6px;
  }
  .bento-card-hero {
    padding: 8px 12px 9px;
  }
  .hero-media-frame {
    padding: 4px;
  }
  .hero-play-orb {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .hero-scope-bar {
    height: 26px;
    margin-top: 5px;
  }
  .scope-play-tag {
    width: 20px;
    height: 20px;
  }
  #micro-wave-canvas {
    height: 20px;
  }
  .stage3-stack .bento-card-tool {
    padding: 7px 10px 8px;
  }
  .stage3-stack .bento-card-head {
    margin-bottom: 3px;
  }
  .tool-card-body {
    gap: 4px;
  }
  .tool-thumb {
    padding: 3px;
  }
}

@media (max-width: 1023px) {
  .portal-shell {
    height: auto;
    overflow: visible;
    padding: 14px 16px 86px;
    gap: 18px;
  }
  .ai-fab-wrapper {
    top: 8px;
    right: 16px;
  }
  .bento-topbar {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 8px;
  }
  .bento-brand {
    flex: 1 1 0%;
    min-width: 0;
    padding-right: 68px;
  }
  .bento-brand-text {
    min-width: 0;
  }
  .bento-brand-text h1 {
    font-size: 0.94rem;
    white-space: normal;
    line-height: 1.25;
  }
  .bento-brand-text p {
    display: none;
  }
  .bento-topbar-spacer {
    display: none;
  }
  .bento-nav-pill {
    order: 3;
    width: 100%;
    padding: 4px 6px;
    gap: 2px;
    justify-content: space-between;
  }
  .nav-pill-btn {
    padding: 6px 8px;
    font-size: 0.76rem;
  }
  .nav-pill-btn.active::after {
    left: 10px;
    right: 10px;
  }
  .nav-pill-pulse {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .stage1-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .stage2-stack {
    gap: 22px;
  }
  .cw-media-frame,
  .hero-media-frame {
    min-height: 200px;
  }
  .stage3-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .tool-card-body {
    flex-direction: column;
    align-items: stretch;
  }
  .tool-thumb {
    flex: none;
    width: 100%;
    height: 110px;
  }
}

/* 悬停提示文字 */
#hover-tooltip {
  position: fixed;
  z-index: 120;
  padding: 9px 15px;
  background: #0f172a;
  border: 1px solid var(--primary-teal);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-family: var(--font-code);
  pointer-events: none;
  display: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -135%);
  white-space: nowrap;
}

/* ==================== 仿真平台专属 MOS仔挂件 ==================== */
@keyframes mos-thinking-sway {
  0%, 12%, 50%, 100% { transform: translateY(0) rotate(0); }
  23%, 32% { transform: translateY(-1px) rotate(-5deg); }
  40% { transform: translateY(0) rotate(2deg); }
  63%, 71% { transform: translateY(-2px) rotate(4deg); }
  82% { transform: translateY(0) rotate(-2deg); }
}
@keyframes mos-thinking-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025, 1.035); }
}
@keyframes mos-question-think {
  0%, 12%, 50%, 100% { transform: translateY(0) rotate(8deg) scale(1); }
  23%, 32% { transform: translateY(-3px) rotate(-7deg) scale(1.06); }
  63%, 71% { transform: translateY(-2px) rotate(13deg) scale(1.03); }
}
@keyframes mosfetBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.ai-fab-wrapper {
  position: fixed;
  top: clamp(4px, 1vh, 14px);
  right: calc(max(0px, (100vw - var(--shell-max-w)) / 2) + var(--shell-px));
  width: 78px;
  height: 64px;
  z-index: 120;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.ai-fab-wrapper.is-dragging {
  z-index: 160;
}

.ai-fab-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 256px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid var(--primary-teal);
  border-radius: 10px;
  padding: 10px 26px 10px 14px;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(8, 127, 140, 0.2);
  cursor: pointer;
  line-height: 1.5;
  z-index: 2;
}
.ai-bubble-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  z-index: 2;
}
.ai-bubble-close:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}
.ai-fab-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1.5px solid var(--primary-teal);
  border-bottom: 1.5px solid var(--primary-teal);
  transform: rotate(45deg);
}
.ai-fab-wrapper.bubble-below .ai-fab-bubble {
  bottom: auto;
  top: calc(100% + 10px);
}
.ai-fab-wrapper.bubble-below .ai-fab-bubble::after {
  bottom: auto;
  top: -6px;
  transform: rotate(-135deg);
}
.ai-fab-wrapper.bubble-align-left .ai-fab-bubble {
  right: auto;
  left: 0;
}
.ai-fab-wrapper.bubble-align-left .ai-fab-bubble::after {
  right: auto;
  left: 28px;
}

.mos-help-hint {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.ai-fab-wrapper.is-dragging .mos-help-hint,
.mos-help-hint:active {
  cursor: grabbing;
}
.ai-fab-wrapper.is-dragging .mos-body img {
  transform: scale(1.06);
  filter: drop-shadow(0 8px 14px rgba(8, 127, 140, 0.34));
}
.mos-body {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 58px;
  height: 58px;
  transform-origin: 50% 88%;
  animation: mos-thinking-sway 9s ease-in-out infinite;
  pointer-events: none;
}
.mos-body img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 90%;
  animation: mos-thinking-breathe 4.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}
.mos-question {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 22px;
  height: 34px;
  font: 900 32px/1 Arial, sans-serif;
  color: #f59e0b;
  text-shadow: 0 1px 0 #d97706, 1px 2px 0 #b45309, 2px 3px 0 #78350f, 2px 4px 4px rgba(120, 53, 15, 0.3);
  transform-origin: 50% 80%;
  animation: mos-question-think 9s ease-in-out infinite;
  pointer-events: none;
}
.mos-help-hint:hover .mos-question {
  color: #fbbf24;
  transform: scale(1.15);
}

/* ==================== 弹窗 Modal 抽屉与阅读器系统 ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-panel);
  border-radius: 14px;
  max-width: 980px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: 24px 28px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--text-main);
}
.modal-backdrop.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-panel);
  background: #f8fafc;
  color: #64748b;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-panel);
  padding-bottom: 14px;
}
.modal-title-row h2 {
  font-size: 1.32rem;
  color: #0f172a;
  font-weight: 800;
}

/* 阅读器 Tab 导航栏 */
.reader-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 8px;
  overflow-x: auto;
}
.tab-pill {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-pill:hover {
  color: #0f172a;
}
.tab-pill.active {
  background: #ffffff;
  color: var(--primary-teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 阅读器工具栏 (翻页与页码指示) */
.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  margin-bottom: 14px;
  font-family: var(--font-code);
  font-size: 0.85rem;
}
.reader-ctrl-btn {
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  font-size: 0.82rem;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.reader-ctrl-btn:hover:not(:disabled) {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #ffffff;
}
.reader-ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-indicator {
  font-weight: 700;
  color: var(--primary-teal);
}

/* 目录多页跳转小标条 */
.toc-subnav-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 10px 0;
  scrollbar-width: thin;
  margin-bottom: 12px;
}
.toc-subnav-btn {
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 0.76rem;
  border-radius: 4px;
  border: 1px solid var(--border-panel);
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-family: var(--font-code);
  transition: all 0.2s;
}
.toc-subnav-btn:hover, .toc-subnav-btn.active {
  background: var(--primary-teal);
  color: #ffffff;
  border-color: var(--primary-teal);
  font-weight: 700;
}

/* 阅读器核心展示舞台 */
.reader-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-panel);
  border-radius: 10px;
  padding: 16px;
  min-height: 480px;
  max-height: 65vh;
  overflow-y: auto;
  position: relative;
}
.reader-img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.14);
  background: #ffffff;
  transition: transform 0.2s ease;
}

/* 课件 16:9 宽屏放映厅 */
.courseware-viewer-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slide-banner-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-panel);
  border-radius: 8px;
}
.slide-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--res-courseware);
  color: #ffffff;
  font-size: 0.76rem;
  font-family: var(--font-code);
  font-weight: 700;
}
.slide-stage-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.slide-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 缩略图底栏 (Filmstrip) */
.filmstrip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4px;
  margin-top: 12px;
}
.filmstrip-card {
  flex: 0 0 110px;
  border-radius: 6px;
  border: 2px solid var(--border-panel);
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
}
.filmstrip-card:hover, .filmstrip-card.active {
  border-color: var(--primary-teal);
  box-shadow: 0 4px 12px rgba(8, 127, 140, 0.25);
  transform: translateY(-2px);
}
.filmstrip-card img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 3px;
}
.filmstrip-card span {
  font-size: 0.7rem;
  color: #475569;
  font-family: var(--font-code);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.filmstrip-card.active span {
  color: var(--primary-teal);
  font-weight: 700;
}

/* 目录树检索面板 */
.tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}
.tree-card {
  background: #f8fafc;
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  padding: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.tree-card:hover {
  border-color: var(--primary-teal);
  background: #edf7fa;
}
.tree-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--primary-teal);
  margin-bottom: 6px;
  font-weight: 600;
}
.tree-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.tree-sub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-panel);
  padding-top: 8px;
}

/* 视频点播大厅 */
.video-view-wrap {
  background: #000000;
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.video-view-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}
.video-playlist-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.v-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid var(--border-panel);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}
.v-chip:hover, .v-chip.active {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #fff;
  font-weight: 700;
}

/* 抖音横幅 */
.douyin-vip-box {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.08) 0%, rgba(8, 127, 140, 0.08) 100%);
  border: 1px solid rgba(219, 39, 119, 0.25);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.douyin-btn {
  padding: 10px 22px;
  background: #fe2c55;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(254, 44, 85, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}
.douyin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.5);
}

/* 微课专栏页眉 */
.weike-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: 20px 62px 20px 24px;
  margin-bottom: 18px;
  border: 1px solid #d5e7e3;
  border-radius: 12px;
  background: linear-gradient(112deg, #edf7f5, #f8fbfc 76%);
  box-shadow: inset 4px 0 var(--site-accent);
}
.weike-header-kicker {
  display: block;
  margin-bottom: 6px;
  color: #35645e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.weike-header-title h2 {
  margin: 0;
  color: #163339;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}
.weike-header-title p, .weike-notice-summary {
  margin: 8px 0 0;
  color: #465e67;
  font-size: 13px;
  line-height: 1.6;
}
.weike-notice-text {
  border-left: 1px solid #cddfdd;
  padding-left: clamp(16px, 2.6vw, 30px);
}
.weike-notice-access {
  display: block;
  color: #234e49;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.weike-view-count {
  margin: 0;
  color: #35645e;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.weike-notice-text .weike-view-count {
  margin-top: 5px;
}
.weike-header .modal-close {
  top: 12px;
  right: 12px;
  border-color: #d5e7e3;
  background: #fff;
  color: #46635e;
}
.weike-header .modal-close:hover {
  border-color: #a9ceca;
  background: #e6f3f0;
  color: #234e49;
}
@media (max-width: 640px) {
  .weike-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 14px;
    padding: 14px 16px 14px 18px;
  }
  .weike-header-title { padding-right: 34px; }
  .weike-header-title p, .weike-notice-summary { margin-top: 4px; }
  .weike-notice-text {
    border-top: 1px solid #d5e7e3;
    border-left: 0;
    padding: 9px 0 0;
  }
  .weike-notice-access { font-size: 13px; }
  .weike-header .modal-close { top: 8px; right: 8px; }
}

/* 微课双栏布局：左边是章，右侧显示微课和微课名 */
.weike-layout-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  min-height: 480px;
  max-height: 560px;
}
@media (max-width: 860px) {
  .weike-layout-wrap {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

/* 左侧章节侧边栏 */
.weike-chapter-sidebar {
  background: #f8fafc;
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 560px;
}
.weike-ch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.weike-ch-btn:hover {
  background: #f1f5f9;
  color: var(--primary-teal);
  border-color: #cbd5e1;
}
.weike-ch-btn.active {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(13, 148, 136, 0.12);
}
.weike-ch-badge {
  font-family: var(--font-code);
  font-size: 0.72rem;
  padding: 2px 5px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #475569;
  flex: 0 0 auto;
}
.weike-ch-btn.active .weike-ch-badge {
  background: #0d9488;
  color: #ffffff;
}
.weike-ch-online-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ffe4e6;
  color: #e11d48;
  font-weight: 700;
  flex: 0 0 auto;
}
.weike-ch-dev-tag {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #94a3b8;
  flex: 0 0 auto;
}
.weike-ch-btn.active .weike-ch-online-tag {
  background: #fe2c55;
  color: #ffffff;
}

/* 右侧微课内容区 */
.weike-content-main {
  overflow-y: auto;
  max-height: 560px;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.weike-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-panel);
}
.weike-main-header h3 {
  font-size: 1.02rem;
  color: #0f172a;
  font-weight: 800;
  margin: 0;
}

/* 一行一个：视频预览不要太大，预览视频右侧给出微课名字就好，清爽风格 */
.weike-item-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.2s;
}
.weike-item-row:hover {
  border-color: #0d9488;
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.08);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .weike-item-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.weike-item-thumb {
  flex: 0 0 190px;
  width: 190px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-panel);
}
.weike-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.weike-item-thumb:hover img {
  transform: scale(1.05);
}
.weike-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.weike-item-thumb:hover .weike-thumb-overlay {
  opacity: 1;
  background: rgba(15, 23, 42, 0.45);
}
.weike-thumb-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fe2c55;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding-left: 2px;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.5);
}
.weike-thumb-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-code);
}
.weike-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.weike-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.weike-item-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}
.weike-item-version {
  font-size: 0.78rem;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
}
.weike-item-status-online {
  font-size: 0.7rem;
  color: #be123c;
  background: #ffe4e6;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 700;
}
.weike-item-status-upcoming {
  font-size: 0.7rem;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 600;
}
.weike-item-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.weike-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.weike-btn-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #fe2c55 0%, #be123c 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.weike-btn-go:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.weike-btn-copy {
  padding: 5px 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-panel);
  color: #334155;
  font-size: 0.78rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.weike-btn-copy:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.weike-search-tip {
  font-size: 0.76rem;
  color: #9f1239;
  margin-left: 4px;
}

/* 全局 Toast */
.toast-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #0f172a;
  border: 1px solid var(--primary-teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.86rem;
  z-index: 2000;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ==================== 移动端与不同屏宽响应式体验优化 ==================== */
@media (max-width: 860px) {
  .weike-layout-wrap {
    grid-template-columns: 1fr;
    max-height: none;
    gap: 12px;
  }
  .weike-chapter-sidebar {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    gap: 6px;
    max-height: none;
    scrollbar-width: none;
  }
  .weike-chapter-sidebar::-webkit-scrollbar {
    display: none;
  }
  .weike-ch-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 11px;
    font-size: 0.8rem;
  }
  .weike-content-main {
    max-height: calc(85vh - 180px);
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .bento-brand-text h1 {
    font-size: 0.78rem;
  }
  .brand-author {
    display: block;
    font-size: 0.71rem;
    margin-top: 1px;
  }
  .author-dot {
    display: none;
  }
  .bento-brand-text p {
    display: none;
  }
  .bento-brand-icon {
    width: 36px;
    height: 36px;
  }
  .stage1-stack,
  .stage3-stack {
    grid-template-columns: 1fr;
  }
  .bento-card-cw {
    flex: none;
  }
  .cw-media-frame {
    min-height: 160px;
  }
  .tool-thumb {
    width: 100%;
    height: 146px;
  }

  /* MOS仔陪伴精灵默认右上角与气泡适配 */
  .ai-fab-wrapper {
    top: 8px;
    right: 10px;
    width: 56px;
    height: 52px;
  }
  .ai-fab-bubble {
    width: 214px;
    max-width: calc(100vw - 20px);
    font-size: 0.76rem;
    padding: 8px 26px 8px 10px;
  }
  .ai-fab-bubble::after {
    right: 20px;
  }
  .ai-fab-wrapper.bubble-align-left .ai-fab-bubble::after {
    left: 20px;
  }
  .mos-body {
    width: 46px;
    height: 46px;
  }
  .mos-question {
    right: 1px;
    top: 2px;
    width: 18px;
    height: 28px;
    font-size: 24px;
  }

  /* 弹窗容器全屏/大屏适配 */
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-box {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    padding: 16px 14px;
    border-radius: 14px 14px 10px 10px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .modal-title-row {
    gap: 10px;
    margin-bottom: 12px;
  }
  .modal-title-row h2 {
    font-size: 1.02rem;
  }
  .modal-title-row p {
    font-size: 0.76rem !important;
  }
  .pulse-diode-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* 阅读器核心展示舞台与工具栏 */
  .reader-stage {
    min-height: 220px;
    max-height: 48vh;
    padding: 8px;
  }
  .reader-toolbar {
    padding: 6px 8px;
  }
  .reader-ctrl-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .page-indicator {
    font-size: 0.78rem;
  }

  .slide-banner-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tree-grid {
    grid-template-columns: 1fr;
  }
  .douyin-vip-box {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 微课专栏移动端适配 */
  .weike-vip-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }
  .weike-vip-card .vip-action-btn {
    width: 100%;
    justify-content: center;
  }
  .weike-item-row {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }
  .weike-item-thumb {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .weike-item-actions {
    width: 100%;
  }
  .weike-play-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }
}

/* Keep modal titles clear of the close button across all viewports. */
.modal-title-row > div:last-child { min-width: 0; padding-right: 36px; }
#modal-textbook .tree-card, #modal-exercises .tree-card { min-width: 0; overflow-wrap: anywhere; }

/* ==================== 优化增强样式：加载态、气泡折叠、高清放大镜与无障碍焦点 ==================== */
#webgl-container { touch-action: none; }
.modal-box--wide { max-width: 1040px; }
@media (max-width: 768px) {
  .modal-box.modal-box--wide { max-width: 100%; }
  #modal-video .weike-layout-wrap { min-height: 0; }
}
.weike-chapter-sidebar, .weike-content-main { min-width: 0; }

.scene-status-pill {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-panel);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  color: var(--primary-teal);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scene-status-pill.hidden { display: none; }

.ai-fab-bubble.is-collapsed { display: none; }
.mos-hint-pill {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(8, 127, 140, 0.35);
  color: var(--primary-teal);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(8, 127, 140, 0.14);
  cursor: grab;
  touch-action: none;
}
.ai-fab-wrapper.bubble-align-left .mos-hint-pill {
  right: auto;
  left: calc(100% + 6px);
}
.ai-fab-wrapper.is-dragging .mos-hint-pill {
  cursor: grabbing;
}
.ai-fab-wrapper.bubble-open .mos-hint-pill { display: none; }
@media (max-width: 768px) {
  .mos-hint-pill { display: none; }
}

.reader-img, .slide-stage-img { cursor: zoom-in; }
.reader-toolbar-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reader-zoom-btn {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--primary-teal);
  font-weight: 600;
  cursor: pointer;
}
.reader-zoom-btn:hover { background: var(--primary-light); }

/* 高清大图放大检阅层 */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
}
.lightbox-backdrop.open { display: flex; }
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.lightbox-title {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lightbox-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.lightbox-btn:hover { background: var(--primary-teal); border-color: var(--primary-teal); }
.lightbox-stage {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.lightbox-stage.zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  cursor: zoom-in;
  transition: width 0.2s ease;
}
.lightbox-stage.zoomed .lightbox-img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}


/* ============================================================================
   5 套主页版式切换器与新增 4 套突破性版式（统一网站配色：#f7f8fa / #ffffff / #188c8c / #dff4f2 / #047857）
   ============================================================================ */
:root {
  --site-bg: #f7f8fa;
  --site-panel: #ffffff;
  --site-soft: #f0f2f5;
  --site-text: #1c1f24;
  --site-muted: #68707d;
  --site-line: #e4e7ec;
  --site-accent: #188c8c;
  --site-accent-deep: #0f6262;
  --site-accent-soft: #dff4f2;
  --site-category: #047857;
}

.bento-topbar {
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: 10px;
  padding-right: 158px;
}

.bento-layout-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 5px 4px 10px;
  border-radius: 999px;
  background: var(--site-panel);
  border: 1px solid color-mix(in srgb, var(--site-accent) 24%, var(--site-line));
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  flex-wrap: nowrap;
}
.layout-switcher-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--site-accent-deep);
  margin-right: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.layout-pill-btn {
  border: 0;
  background: transparent;
  color: var(--site-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.layout-pill-btn:hover {
  color: var(--site-accent-deep);
  background: rgba(24, 140, 140, 0.08);
}
.layout-pill-btn.active {
  background: var(--site-accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(24, 140, 140, 0.28);
}

.portal-layout-view {
  display: none;
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
}
.portal-layout-view.is-active {
  display: flex;
}
.portal-layout-view[hidden] {
  display: none !important;
}

/* 通用阶段筛选暗化过渡 */
.bento-stage-col {
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}
.bento-stage-col.stage-dimmed {
  opacity: 0.25;
  filter: grayscale(0.45);
}

/* 通用起振示波器模块（网站统一亮色风格） */
.orbital-osc-box {
  width: 100%;
  padding: 9px 14px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
  border: 1px solid color-mix(in srgb, var(--site-accent) 30%, var(--site-line));
  box-shadow: 0 8px 20px -12px rgba(24, 140, 140, 0.18);
  flex-shrink: 0;
}
.orbital-osc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  color: var(--site-accent-deep);
  margin-bottom: 4px;
  white-space: nowrap;
}
.orbital-osc-meta [data-portal-osc-stage] {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--site-accent-soft);
  color: var(--site-category);
  font-size: 10.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-osc-canvas {
  display: block;
  width: 100%;
  height: 50px;
}

.orbital-core-kicker {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--site-accent-soft);
  border: 1px solid color-mix(in srgb, var(--site-accent) 35%, transparent);
  color: var(--site-accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.orbital-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--site-soft);
  border: 1px solid var(--site-line);
  color: var(--site-accent-deep);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.orbital-cta-pill.primary {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(24, 140, 140, 0.25);
}
.orbital-cta-pill.amber {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.22);
}
.orbital-cta-pill:hover {
  transform: translateY(-1px);
}

.orbital-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: var(--site-category);
  font-size: 10.5px;
  font-weight: 800;
}

/* ============================================================================
   版式 1：方案一 · 星环引力舱（网站统一陶瓷白与 #188c8c 青色全息星环风格）
   ============================================================================ */
.layout-orbital {
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 46%, rgba(223, 244, 242, 0.92) 0%, rgba(223, 244, 242, 0.35) 42%, rgba(247, 248, 250, 0.96) 76%),
    var(--site-bg);
  border: 1px solid color-mix(in srgb, var(--site-accent) 22%, var(--site-line));
  padding: 14px 18px;
  overflow: hidden;
  align-items: stretch;
}
.orbital-floor {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -175px;
  height: 410px;
  background-image:
    linear-gradient(to right, rgba(24, 140, 140, 0.13) 1px, transparent 1px),
    linear-gradient(to top, rgba(24, 140, 140, 0.15) 1px, transparent 1px);
  background-size: 52px 36px;
  transform: perspective(540px) rotateX(68deg);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 8%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 8%, rgba(0,0,0,0) 90%);
  pointer-events: none;
}
.orbital-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.orbital-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 345px minmax(0, 1fr) 345px;
  gap: 20px;
  align-items: center;
}
.orbital-wing {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
  min-height: 0;
}
.orbital-sat-card {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid color-mix(in srgb, var(--site-accent) 24%, var(--site-line));
  box-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.1), inset 0 1px 0 #ffffff;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--site-text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex: 1;
  min-height: 0;
}
.orbital-sat-card:hover {
  transform: translateY(-2px);
  border-color: var(--site-accent);
  box-shadow: 0 18px 34px -14px rgba(24, 140, 140, 0.22);
}
.orbital-sat-media {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.orbital-sat-media.tone-violet {
  background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
  border: 1px solid #e9d5ff;
}
.orbital-sat-media.tone-dark {
  background: radial-gradient(circle at 50% 45%, #112a3a 0%, #0b1c28 100%);
  border: 1px solid #1e3a4c;
}
.orbital-sat-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}
.orbital-tool-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.orbital-tool-thumb {
  height: 100%;
  max-height: 92px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef5f5 0%, #f8fafc 100%);
  border: 1px solid var(--site-line);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.orbital-tool-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.orbital-tool-copy h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--site-text);
}
.orbital-tool-copy p {
  font-size: 11.5px;
  color: var(--site-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.orbital-link-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--site-accent-deep);
}

/* 中央 C 位：3D 悬浮双书引力核 */
.orbital-core {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px;
}
.orbital-core-header {
  text-align: center;
  flex-shrink: 0;
}
.orbital-core-header h2 {
  font-size: 21px;
  font-weight: 900;
  color: var(--site-text);
  margin-top: 5px;
  letter-spacing: 0.01em;
}
.orbital-books-pedestal {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(24, 140, 140, 0.16) 0%, rgba(255, 255, 255, 0.96) 68%),
    #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--site-accent) 36%, var(--site-line));
  box-shadow: 0 22px 48px -18px rgba(24, 140, 140, 0.24), inset 0 1px 0 #ffffff;
}
.orbital-book-card {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(223, 244, 242, 0.42) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid color-mix(in srgb, var(--site-accent) 22%, var(--site-line));
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  min-height: 0;
}
.orbital-book-card[data-idx="1"] {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.5) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-color: rgba(217, 119, 6, 0.25);
}
.orbital-book-3d {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  filter: drop-shadow(0 16px 22px rgba(15, 23, 42, 0.18));
}
.orbital-book-3d img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.28s ease;
}
.orbital-book-3d.is-left img {
  transform: perspective(760px) rotateY(13deg) rotateX(3deg);
}
.orbital-book-3d.is-right img {
  transform: perspective(760px) rotateY(-13deg) rotateX(3deg);
}
.orbital-book-card:hover .orbital-book-3d img {
  transform: perspective(760px) rotateY(0deg) scale(1.03);
}
.orbital-book-card h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--site-text);
  margin-top: 4px;
}
.orbital-book-card p {
  font-size: 11.5px;
  color: var(--site-muted);
  margin-top: 2px;
}
.orbital-book-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================================
   版式 2：方案二 · 空间剧场（上层 3D 透视书廊与 IMAX 微课舱 + 下层实验坞）
   ============================================================================ */
.layout-theater {
  flex-direction: column;
  gap: 14px;
}
.theater-upper {
  flex: 1.32;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
.theater-gallery,
.theater-cinema {
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f1faf9 65%, #e6f6f4 100%);
  border: 1px solid color-mix(in srgb, var(--site-accent) 30%, var(--site-line));
  box-shadow: 0 16px 34px -16px rgba(24, 140, 140, 0.18);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
}
.theater-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.theater-gallery-head h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--site-text);
  margin-top: 4px;
}
.theater-trio-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.theater-trio-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--site-line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  min-height: 0;
}
.theater-trio-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.theater-trio-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transform: perspective(600px) rotateY(-10deg) rotateX(3deg);
  filter: drop-shadow(-8px 10px 16px rgba(15, 23, 42, 0.16));
}
.theater-trio-card h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--site-text);
  margin-top: 4px;
}
.theater-trio-card p {
  font-size: 11px;
  color: var(--site-muted);
}

.theater-screen-box {
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--site-line);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 10px;
  align-items: stretch;
}
.theater-video-stage {
  border: 0;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 45%, #112a3a 0%, #0b1c28 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
  min-height: 0;
}
.theater-video-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.theater-playlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.theater-ep-btn {
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--site-bg);
  border: 1px solid var(--site-line);
  color: var(--site-text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.theater-ep-btn:hover,
.theater-ep-btn.is-active {
  background: var(--site-accent-soft);
  border-color: var(--site-accent);
  color: var(--site-accent-deep);
  font-weight: 800;
}
.theater-cinema-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--site-muted);
  font-weight: 600;
}

.theater-dock {
  flex: 0.85;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 305px;
  gap: 14px;
}
.theater-dock-card {
  border-radius: 18px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--site-text);
  min-height: 0;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.08);
}
.theater-dock-preview {
  flex: 1;
  min-height: 0;
  margin: 6px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef6f6 0%, #f8fafc 100%);
  border: 1px solid var(--site-line);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.theater-dock-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
}
.theater-dock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.theater-dock-foot h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--site-text);
}
.theater-dock-foot p {
  font-size: 11.5px;
  color: var(--site-muted);
}
.theater-mos-card {
  text-align: left;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--site-accent-soft) 0%, #ffffff 100%);
  border: 1px solid color-mix(in srgb, var(--site-accent) 35%, var(--site-line));
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.theater-mos-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theater-mos-head img {
  border-radius: 50%;
  border: 2px solid var(--site-accent);
}
.theater-mos-head strong {
  display: block;
  font-size: 13px;
  color: var(--site-accent-deep);
}
.theater-mos-head span {
  font-size: 11px;
  color: var(--site-accent);
}
.theater-mos-quote {
  font-size: 11.5px;
  color: var(--site-text);
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--site-accent) 24%, var(--site-line));
}
.theater-mos-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--site-accent-deep);
}

/* ============================================================================
   版式 3：方案三 · 信号链电路拓扑蓝图（顶部起振三阶段映射总线 + 三级电路画布）
   ============================================================================ */
.layout-topology {
  flex-direction: column;
  gap: 12px;
}
.topo-bus-banner {
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #effaf9 55%, #dff4f2 100%);
  border: 1.5px solid color-mix(in srgb, var(--site-accent) 36%, var(--site-line));
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr) 260px;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.topo-bus-intro h2 {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--site-text);
  margin-top: 3px;
}
.topo-bus-intro p {
  font-size: 11px;
  color: var(--site-muted);
  margin-top: 2px;
}
.topo-bus-scope {
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--site-accent) 28%, var(--site-line));
  border-radius: 12px;
  padding: 6px 12px;
}
.topo-zone-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-family: var(--font-code);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--site-accent-deep);
  margin-bottom: 3px;
}
.topo-bus-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.topo-metric {
  background: #ffffff;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.topo-metric strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--site-accent-deep);
}
.topo-metric span {
  font-size: 10.5px;
  color: var(--site-muted);
}

.topo-columns {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
}
.topo-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.topo-col-head {
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--site-accent-soft);
  border-left: 4px solid var(--site-accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--site-accent-deep);
  flex-shrink: 0;
}
.topo-col-head.is-rose {
  background: #ffe4e6;
  border-left-color: #e11d48;
  color: #be123c;
}
.topo-col-head.is-emerald {
  background: #dcfce7;
  border-left-color: var(--site-category);
  color: var(--site-category);
}
.topo-col-head em {
  font-style: normal;
  font-family: var(--font-code);
  font-size: 10.5px;
}
.topo-card {
  flex: 1;
  min-height: 0;
  text-align: left;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--site-line);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  color: var(--site-text);
  box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.08);
}
.topo-card-row {
  height: 100%;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.topo-art {
  height: 100%;
  max-height: 155px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--site-line);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.topo-art.tone-teal { background: var(--site-accent-soft); border-color: #99e2d8; }
.topo-art.tone-amber { background: #fef3c7; border-color: #fcd34d; }
.topo-art.tone-violet { background: #f3e8ff; border-color: #d8b4fe; }
.topo-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.topo-copy h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--site-text);
  margin-top: 6px;
}
.topo-copy p {
  font-size: 11.5px;
  color: var(--site-muted);
  line-height: 1.4;
  margin: 4px 0 8px;
}

/* ============================================================================
   版式 4：方案四 · 先锋视觉画报（左碑右廊非对称构图 · 网站统一配色）
   ============================================================================ */
.layout-editorial {
  display: none;
  gap: 18px;
}
.layout-editorial.is-active {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
}
.ed-monolith {
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #ebf8f7 55%, #dff4f2 100%);
  border: 1.5px solid color-mix(in srgb, var(--site-accent) 36%, var(--site-line));
  box-shadow: 0 20px 42px -18px rgba(24, 140, 140, 0.22);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
}
.ed-mono-head h2 {
  font-size: 21px;
  font-weight: 900;
  color: var(--site-text);
  margin-top: 6px;
}
.ed-mono-head p {
  font-size: 12px;
  color: var(--site-muted);
  margin-top: 3px;
}
.ed-mono-books {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid color-mix(in srgb, var(--site-accent) 22%, var(--site-line));
}
.ed-book-item {
  border: 1px solid color-mix(in srgb, var(--site-accent) 18%, var(--site-line));
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(223, 244, 242, 0.42) 0%, #ffffff 100%);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 0;
}
.ed-book-item[data-idx="1"] {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.48) 0%, #ffffff 100%);
  border-color: rgba(217, 119, 6, 0.22);
}
.ed-book-item img {
  flex: 1;
  min-height: 0;
  max-width: 100%;
  max-height: 225px;
  object-fit: contain;
  border-radius: 6px;
  transform: perspective(600px) rotateY(9deg);
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.18));
}
.ed-book-item h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--site-text);
  margin-top: 8px;
}
.ed-book-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--site-accent-deep);
  margin-top: 2px;
}
.ed-mos-strip {
  text-align: left;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--site-accent) 30%, var(--site-line));
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ed-mos-strip img {
  border-radius: 50%;
  border: 2px solid var(--site-accent);
  flex-shrink: 0;
}
.ed-mos-strip strong {
  display: block;
  font-size: 12px;
  color: var(--site-accent-deep);
}
.ed-mos-strip span {
  font-size: 11px;
  color: var(--site-muted);
  line-height: 1.35;
}

.ed-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.ed-studio-row {
  flex: 1.15;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: 14px;
}
.ed-lab-row {
  flex: 0.9;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ed-card {
  text-align: left;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--site-line);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--site-text);
  cursor: pointer;
  min-height: 0;
  box-shadow: 0 12px 26px -14px rgba(15, 23, 42, 0.08);
}
.ed-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.ed-card-top h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--site-text);
  margin-top: 4px;
}
.ed-card-top p {
  font-size: 11.5px;
  color: var(--site-muted);
}
.ed-big-num {
  font-family: var(--font-code);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: rgba(24, 140, 140, 0.16);
}
.ed-big-num.is-sm {
  font-size: 28px;
}

@media (max-width: 1180px) {
  .bento-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .orbital-grid,
  .theater-upper,
  .theater-dock,
  .topo-bus-banner,
  .topo-columns,
  .layout-editorial.is-active,
  .ed-studio-row,
  .ed-lab-row {
    grid-template-columns: 1fr;
  }
  .orbital-svg { display: none; }
}

