:root {
  --primary: #2F5D8A;
  --primary-dark: #214466;
  --primary-tint: #EEF3F7;
  --primary-border: #B5C8DA;

  --morning: #2F5D8A;
  --morning-dark: #214466;
  --morning-tint: #EEF3F7;
  --morning-border: #B5C8DA;

  --afternoon: #B5562E;
  --afternoon-dark: #8C3F1E;
  --afternoon-tint: #FBF0EA;
  --afternoon-border: #DFBBA9;

  --hl-yellow: rgba(255, 229, 138, 0.84);
  --tape-bg: rgba(242, 226, 174, 0.72);
  --tape-border: rgba(204, 184, 128, 0.65);

  --bg-viewport: #23201C;
  --bg-stage: #FBF8F1;
  --bg-card: #FFFDF8;
  --bg-soft: #F3ECE0;
  --text-main: #2B2B2B;
  --text-sub: #544F48;
  --text-muted: #787066;
  --border-light: #DDD4C3;
  --border-sketch: #B8AE9E;

  --done-bg: #EEF5EC;
  --done-border: #3E7448;
  --done-label: #2E5B36;
  --done-text: #224028;

  --warn-bg: #FCF2E4;
  --warn-border: #C46827;
  --warn-label: #9A4C15;
  --warn-text: #5E2D0C;

  --bad-bg: #FAF0ED;
  --bad-border: #B84A39;
  --bad-text: #7C2D21;

  --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "KaiTi", "STKaiti", "Kaiti SC", serif;
  --font-mono: Consolas, "Cascadia Mono", "SFMono-Regular", Menlo, Monaco, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body.theme-morning {
  --primary: var(--morning);
  --primary-dark: var(--morning-dark);
  --primary-tint: var(--morning-tint);
  --primary-border: var(--morning-border);
}

body.theme-afternoon {
  --primary: var(--afternoon);
  --primary-dark: var(--afternoon-dark);
  --primary-tint: var(--afternoon-tint);
  --primary-border: var(--afternoon-border);
}

/* ===========================
   荧光笔重点与手写批注
   =========================== */
.hl {
  display: inline;
  padding: 0 6px;
  background-image: linear-gradient(103deg, transparent 0%, rgba(255, 229, 138, 0.85) 4%, rgba(255, 229, 138, 0.9) 95%, transparent 100%);
  background-size: 100% 42%;
  background-position: 0 88%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hl-2 {
  display: inline;
  padding: 0 7px;
  background-image: linear-gradient(98deg, transparent 0%, rgba(255, 229, 138, 0.78) 3%, rgba(255, 229, 138, 0.88) 97%, transparent 100%);
  background-size: 100% 46%;
  background-position: 0 86%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hand-note {
  font-family: var(--font-hand);
  font-size: 34px;
  line-height: 1.45;
  color: var(--primary-dark);
  font-weight: 400;
}

.hand-note-sm {
  font-size: 30px;
}

.hand-note-warm {
  color: #7D4622;
}

.hand-note-tilt-l {
  display: inline-block;
  transform: rotate(-1.2deg);
}

.hand-note-tilt-r {
  display: inline-block;
  transform: rotate(1deg);
}

.sketch-svg {
  display: block;
  overflow: visible;
}

/* ===========================
   首页样式（老师的笔记本）
   =========================== */
body.home-page {
  min-height: 100vh;
  background: #F4EFE4;
  background-image:
    linear-gradient(to bottom, rgba(184, 174, 158, 0.14) 1px, transparent 1px);
  background-size: 100% 36px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 28px;
}

.home-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.home-header {
  text-align: center;
  margin-bottom: 32px;
}

.home-kicker {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--text-sub);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.home-title {
  margin: 0 0 12px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.home-subtitle {
  margin: 0;
  font-size: 20px;
  color: var(--text-sub);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-stage);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 30px 32px;
  text-decoration: none;
  color: inherit;
  box-shadow: 4px 6px 0 rgba(184, 174, 158, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 6px 10px 0 rgba(184, 174, 158, 0.35);
  outline: none;
}

.home-card-morning {
  border-top: 7px solid var(--morning);
}

.home-card-morning:hover,
.home-card-morning:focus-visible {
  border-color: var(--morning);
}

.home-card-afternoon {
  border-top: 7px solid var(--afternoon);
}

.home-card-afternoon:hover,
.home-card-afternoon:focus-visible {
  border-color: var(--afternoon);
}

.home-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-card-icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  opacity: 0.92;
}

.home-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.home-card-morning .home-card-badge {
  background: var(--morning-tint);
  color: var(--morning-dark);
}

.home-card-afternoon .home-card-badge {
  background: var(--afternoon-tint);
  color: var(--afternoon-dark);
}

.home-card-title {
  margin: 0 0 10px;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.home-card-desc {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-sub);
}

.home-card-topics {
  margin: 0 0 22px;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
}

.home-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border-light);
  font-size: 17px;
  font-weight: 700;
}

.home-card-morning .home-card-cta {
  color: var(--morning);
}

.home-card-afternoon .home-card-cta {
  color: var(--afternoon);
}

.home-card-meta {
  color: var(--text-muted);
  font-weight: 600;
}

.home-shortcuts {
  background: var(--bg-stage);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 22px 28px;
}

.home-shortcuts-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 18px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.4;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--border-sketch);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home-cards {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .home-title {
    font-size: 32px;
  }
}

/* ===========================
   幻灯片舞台与缩放
   =========================== */
body.deck-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-viewport);
}

.deck-viewport {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-viewport);
}

body.deck-page.notes-open .deck-viewport {
  bottom: 220px;
}

.deck-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  flex: 0 0 auto;
  transform-origin: center center;
  background: var(--bg-stage);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  user-select: text;
}

/* 默认隐藏演讲者备注，确保永不上投影屏 */
aside.notes {
  display: none !important;
}

/* ===========================
   单页基础布局（1920x1080）
   =========================== */
.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 54px 92px 84px;
  background: var(--bg-stage);
  background-image:
    radial-gradient(rgba(160, 146, 126, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-main);
}

.slide.is-active {
  display: flex;
}

.slide-header {
  flex: 0 0 auto;
  margin-bottom: 24px;
}

.slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.slide-kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.slide-title {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-main);
}

.slide-subtitle {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.4;
  color: var(--text-sub);
}

.slide-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.slide-body-center {
  justify-content: center;
}

/* 封面页 */
.slide-cover {
  padding: 88px 116px 96px;
  justify-content: space-between;
  background: var(--bg-stage);
}

.cover-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex: 1 1 auto;
}

.cover-main {
  flex: 1 1 auto;
  min-width: 0;
}

.cover-sketch {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cover-top-bar {
  width: 150px;
  height: 7px;
  border-radius: 4px;
  background: var(--primary);
  margin-bottom: 34px;
}

.cover-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--primary-tint);
  border: 1.5px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 30px;
}

.cover-title {
  margin: 0 0 24px;
  font-size: 88px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

.cover-subtitle {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-sub);
}

.cover-meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.cover-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  box-shadow: 2px 3px 0 rgba(184, 174, 158, 0.22);
  font-size: 34px;
  font-weight: 600;
  color: var(--text-main);
}

/* 章节分隔页 */
.slide-section {
  justify-content: center;
  padding: 96px 132px;
  background: var(--primary);
  background-image: none;
  color: #FBF8F1;
}

.section-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.section-text {
  flex: 1 1 auto;
  min-width: 0;
}

.section-visual {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.section-number {
  font-size: 96px;
  font-weight: 700;
  line-height: 1.1;
  color: rgba(251, 248, 241, 0.45);
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 26px;
  font-size: 74px;
  font-weight: 700;
  line-height: 1.22;
  color: #FBF8F1;
}

.section-desc {
  margin: 0;
  max-width: 1280px;
  font-size: 38px;
  line-height: 1.52;
  color: rgba(251, 248, 241, 0.92);
}

/* 结束页 */
.slide-end {
  justify-content: center;
  align-items: flex-start;
  padding: 100px 132px;
  background: var(--bg-stage);
}

.end-accent {
  width: 120px;
  height: 7px;
  border-radius: 4px;
  background: var(--primary);
  margin-bottom: 34px;
}

.end-title {
  margin: 0 0 24px;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.end-desc {
  margin: 0 0 40px;
  font-size: 38px;
  line-height: 1.55;
  color: var(--text-sub);
}

/* ===========================
   笔记本风格排版组件
   =========================== */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 26px 30px;
  box-shadow: 0 4px 14px rgba(43, 35, 24, 0.04);
}

.card-tint {
  background: var(--primary-tint);
  border-color: var(--primary-border);
}

.card-plain {
  background: transparent;
  border: none;
  border-left: 5px solid var(--primary);
  border-radius: 0;
  padding: 8px 0 8px 26px;
  box-shadow: none;
}

.card-title {
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.card-text,
.body-text {
  margin: 0;
  font-size: 34px;
  line-height: 1.52;
  color: var(--text-main);
}

.text-sub {
  color: var(--text-sub);
}

.corner-note {
  font-size: 26px;
  line-height: 1.5;
  color: var(--text-sub);
}

/* 开放式笔记本横线列表（无卡片壳） */
.note-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 20px 10px;
  border-bottom: 1.5px dashed var(--border-light);
}

.note-item:last-child {
  border-bottom: none;
}

.note-index {
  flex: 0 0 auto;
  min-width: 64px;
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

.note-icon {
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.note-content {
  flex: 1 1 auto;
  font-size: 34px;
  line-height: 1.48;
  color: var(--text-main);
}

.note-content strong {
  color: var(--text-main);
}

/* 手绘勾选清单（课前准备） */
.checklist-pad {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-top: 6px solid var(--primary);
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: 4px 6px 0 rgba(184, 174, 158, 0.22);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1.5px dashed var(--border-light);
}

.check-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.check-box-svg {
  flex: 0 0 40px;
  margin-top: 4px;
}

/* 开放式左右对比（白板分栏，不再套双层彩色卡片） */
.board-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.board-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 42px 10px 12px;
}

.board-col-right {
  padding: 10px 12px 10px 44px;
  border-left: 2.5px dashed var(--border-sketch);
}

.board-col-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
}

.board-col-right .board-col-title {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-border);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.split-50-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.split-42-58 {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 36px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.split-58-42 {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 36px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.split-38-62 {
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: 36px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.split-62-38 {
  display: grid;
  grid-template-columns: 62fr 38fr;
  gap: 36px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.col-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
}

.bullet-list {
  margin: 0;
  padding-left: 40px;
  font-size: 34px;
  line-height: 1.54;
  color: var(--text-main);
}

.bullet-list li {
  margin-bottom: 12px;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

/* 编号步骤列表 */
.num-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.num-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-left: 6px solid var(--primary);
  border-radius: 6px;
  padding: 18px 24px;
  font-size: 34px;
  line-height: 1.48;
}

.num-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #FBF8F1;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.num-content {
  flex: 1 1 auto;
}

.inline-code {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text-main);
}

/* 链接样式 */
.deck-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  word-break: break-all;
}

/* ===========================
   语义提示框（完成标志 / 注意 / 提示）
   =========================== */
.callout {
  border-radius: 8px;
  padding: 20px 26px;
  border: 1.5px solid var(--border-light);
  border-left-width: 8px;
  font-size: 34px;
  line-height: 1.48;
}

.callout-compact {
  padding: 16px 24px;
  font-size: 34px;
}

.callout-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 5px;
  font-size: 25px;
  font-weight: 700;
  margin-right: 12px;
  vertical-align: middle;
}

.callout-done {
  background: var(--done-bg);
  border-color: #B4D3B8;
  border-left-color: var(--done-border);
  color: var(--done-text);
}

.callout-done .callout-tag {
  background: var(--done-border);
  color: #FBF8F1;
}

.callout-warn {
  background: var(--warn-bg);
  border-color: #E7BC95;
  border-left-color: var(--warn-border);
  color: var(--warn-text);
}

.callout-warn .callout-tag {
  background: var(--warn-border);
  color: #FBF8F1;
}

.callout-tip {
  background: var(--primary-tint);
  border-color: var(--primary-border);
  border-left-color: var(--primary);
  color: var(--text-main);
}

.callout-tip .callout-tag {
  background: var(--primary);
  color: #FBF8F1;
}

/* ===========================
   通用引导与总结栏
   =========================== */
.banner-lead {
  padding: 16px 24px;
  border-left: 6px solid var(--primary);
  background: var(--primary-tint);
  border-radius: 4px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary-dark);
}

.plain-summary {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1.5px dashed var(--border-sketch);
  font-size: 34px;
  line-height: 1.48;
  color: var(--text-main);
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  flex: 1 1 auto;
}

.col-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 26px 28px;
}

.col-card-highlight {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.col-card-head {
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--border-light);
}

.col-card-highlight .col-card-head {
  border-bottom-color: var(--primary-border);
}

.col-card-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--text-sub);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.col-card-highlight .col-card-label {
  background: var(--primary);
  color: #FBF8F1;
}

.col-card-title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-main);
}

/* ===========================
   6 张概念页专用样式
   =========================== */

/* ① Skill 到底是什么 */
.concept-question {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-dark);
  margin: 0;
}

.sketch-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  flex: 1 1 auto;
}

.concept-footer-grid {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border-sketch);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.concept-footer-main {
  flex: 1 1 auto;
}

.concept-footer-side {
  flex: 0 0 540px;
  padding: 12px 18px;
  background: var(--bg-soft);
  border-left: 4px solid var(--border-sketch);
  border-radius: 4px;
  font-size: 26px;
  line-height: 1.48;
  color: var(--text-sub);
}

/* ② 打开一个 Skill 看看 */
.skill-anatomy {
  display: grid;
  grid-template-columns: 340px 830px 1fr;
  gap: 28px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.anatomy-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.paper-sheet {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #C8BFA8;
  border-radius: 4px;
  padding: 20px 26px 20px 36px;
  box-shadow: 5px 7px 0 rgba(184, 174, 158, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-sans);
}

.paper-sheet::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: rgba(181, 86, 46, 0.24);
}

.paper-block {
  position: relative;
  padding: 10px 14px;
  border-radius: 4px;
}

.paper-block-head {
  background: rgba(255, 229, 138, 0.35);
  border-left: 5px solid #D4A11E;
}

.paper-block-body {
  background: rgba(47, 93, 138, 0.06);
  border-left: 5px solid var(--morning);
  margin-top: 10px;
}

.paper-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.42;
  color: var(--text-main);
  white-space: pre-wrap;
}

.paper-sec-title {
  margin: 10px 0 3px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--morning-dark);
}

.paper-sec-title:first-child {
  margin-top: 0;
}

.paper-sec-line {
  margin: 0;
  font-size: 24px;
  line-height: 1.38;
  color: var(--text-main);
}

.anatomy-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.anatomy-tag-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.anatomy-tag-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.anatomy-label {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-main);
}

/* ③ AI 怎么知道该翻哪本手册 */
.shelf-layout {
  display: grid;
  grid-template-columns: 790px 1fr;
  gap: 48px;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}

.shelf-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.shelf-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.shelf-turn {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
}

.shelf-turn-focus {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.shelf-turn-num {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.shelf-turn-focus .shelf-turn-num {
  background: var(--primary);
  color: #FBF8F1;
}

.shelf-turn-text {
  font-size: 34px;
  line-height: 1.45;
  color: var(--text-main);
}

.shelf-arrow-row {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

/* ④ 为什么不把所有手册一次全塞给 AI */
.cabinet-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
}

.token-strip {
  width: 100%;
  padding: 12px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--border-sketch);
  border-radius: 4px;
  font-size: 26px;
  line-height: 1.48;
  color: var(--text-sub);
  text-align: center;
}

/* ⑤ 什么样的技能好用（便利贴） */
.sticky-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  flex: 1 1 auto;
  align-items: stretch;
  padding: 18px 8px 10px;
}

.sticky-note {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 28px 28px;
  border: 1.5px solid #D6CCA9;
  border-radius: 4px;
  box-shadow: 5px 8px 0 rgba(164, 152, 128, 0.25);
}

.sticky-note::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 106px;
  height: 26px;
  background: var(--tape-bg);
  border: 1px solid var(--tape-border);
}

.sticky-yellow {
  background: #FFF8D8;
  transform: rotate(-1.3deg);
}

.sticky-green {
  background: #F1F6EA;
  transform: rotate(1.1deg);
}

.sticky-blue {
  background: #EEF4F9;
  transform: rotate(-0.9deg);
}

.sticky-tag {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-sub);
  border-bottom: 1.5px dashed rgba(43, 43, 43, 0.18);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.sticky-note-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-family: var(--font-hand);
  font-size: 36px;
  line-height: 1.44;
  color: var(--text-main);
}

.sticky-bad {
  color: var(--bad-text);
  text-decoration: line-through;
  text-decoration-thickness: 2.5px;
  padding: 8px 10px;
}

.sticky-arrow-down {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

.sticky-good {
  color: var(--text-main);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 5px solid var(--primary);
  border-radius: 4px;
}

/* ⑥ 下午 云服务：把登记本放到网上 */
.cloud-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0 18px;
  border-bottom: 1.5px dashed var(--border-sketch);
}

.cloud-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 100%;
}

.cloud-node-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 390px;
  text-align: center;
}

.cloud-node-caption {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

.cloud-five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0;
}

.cloud-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 10px;
  text-align: center;
}

.cloud-mini-label {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

/* ===========================
   表格样式（>= 24px）
   =========================== */
.table-wrap {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(43, 35, 24, 0.04);
}

.deck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 28px;
  line-height: 1.45;
}

.deck-table th {
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
  padding: 15px 24px;
  border-bottom: 2px solid var(--primary-border);
}

.deck-table td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  color: var(--text-main);
}

.deck-table tr:last-child td {
  border-bottom: none;
}

.deck-table-compact {
  font-size: 26px;
}

.deck-table-compact th,
.deck-table-compact td {
  padding: 12px 20px;
}

/* ===========================
   提示词代码块（>= 24px）
   =========================== */
.prompt-box {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid var(--primary-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(43, 35, 24, 0.05);
  min-height: 0;
}

.prompt-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: var(--primary-tint);
  border-bottom: 1.5px solid var(--primary-border);
}

.prompt-label {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-dark);
}

.prompt-copy-btn {
  appearance: none;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  background: var(--primary);
  color: #FBF8F1;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.prompt-copy-btn:hover {
  background: var(--primary-dark);
}

.prompt-copy-btn:active {
  transform: scale(0.97);
}

.prompt-copy-btn.is-copied {
  background: var(--done-border);
}

.prompt-code {
  margin: 0;
  padding: 22px 26px;
  background: #F7F4EC;
  color: #2B2B2B;
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}

.prompt-code-md {
  font-size: 24px;
  line-height: 1.46;
}

.prompt-code-lg {
  font-size: 32px;
  line-height: 1.55;
}

.prompt-scroll-tall {
  max-height: 700px;
}

.prompt-scroll-mid {
  max-height: 540px;
}

/* ===========================
   图片展示、胶带贴纸与缩放
   =========================== */
.shot-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.shot-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}

.shot-taped::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 26px;
  width: 104px;
  height: 26px;
  background: var(--tape-bg);
  border: 1px solid var(--tape-border);
  transform: rotate(12deg);
  z-index: 2;
  pointer-events: none;
}

.shot-wrap img.zoomable {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1.5px solid #CEC5B4;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(43, 35, 24, 0.1);
  background: #FFFFFF;
  cursor: zoom-in;
}

.shot-caption {
  flex: 0 0 auto;
  font-size: 24px;
  color: var(--text-muted);
  text-align: center;
}

.shot-wrap img.phone-shot {
  max-height: 640px;
}

.shot-wrap img.shot-h-560 {
  max-height: 560px;
}

.shot-wrap img.shot-h-460 {
  max-height: 460px;
}

.shot-wrap img.shot-h-400 {
  max-height: 400px;
}

.shot-wrap img.shot-h-340 {
  max-height: 340px;
}

/* ===========================
   底部 HUD 栏与进度条
   =========================== */
.deck-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 56px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.hud-section {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-page {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.hud-action {
  pointer-events: auto;
  appearance: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--text-sub);
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.hud-action:hover {
  opacity: 1;
  border-color: var(--primary);
  color: var(--primary);
}

.deck-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: #E5DEC9;
  z-index: 6;
}

.deck-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.2s ease;
}

/* 章节页 HUD 适配 */
.deck-stage.is-section-slide .hud-section,
.deck-stage.is-section-slide .hud-page {
  color: rgba(251, 248, 241, 0.88);
}

.deck-stage.is-section-slide .deck-progress {
  background: rgba(251, 248, 241, 0.22);
}

.deck-stage.is-section-slide .deck-progress-bar {
  background: #FBF8F1;
}

/* ===========================
   单屏备注抽屉（N）
   =========================== */
.notes-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: #1E1C19;
  color: #FBF8F1;
  border-top: 3px solid var(--primary);
  padding: 16px 32px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}

body.deck-page.notes-open .notes-drawer {
  display: flex;
}

.notes-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: #C4BBA8;
}

.notes-drawer-close {
  appearance: none;
  border: 1px solid #635D53;
  border-radius: 6px;
  background: transparent;
  color: #EDE7DA;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
}

.notes-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  font-size: 22px;
  line-height: 1.6;
  color: #FBF8F1;
}

/* ===========================
   总览模式（O / Esc）
   =========================== */
.overview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 25, 0.94);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 24px 32px;
  overflow: hidden;
}

.overview-overlay.is-open {
  display: flex;
}

.overview-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FBF8F1;
  margin-bottom: 20px;
}

.overview-title {
  font-size: 22px;
  font-weight: 700;
}

.overview-hint {
  font-size: 16px;
  color: #D4CBB8;
}

.overview-close-btn {
  appearance: none;
  border: 1px solid #787066;
  border-radius: 8px;
  background: #302C27;
  color: #FBF8F1;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.overview-grid {
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 6px 4px 20px;
  align-content: start;
}

.overview-item {
  background: #2C2924;
  border: 3px solid #4A443C;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.overview-item:hover {
  border-color: #FFE58A;
  transform: translateY(-2px);
}

.overview-item.is-current {
  border-color: #FFE58A;
  box-shadow: 0 0 0 3px rgba(255, 229, 138, 0.3);
}

.thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bg-stage);
}

.thumb-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  pointer-events: none;
}

.thumb-stage .slide {
  display: flex;
}

.overview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #EDE7DA;
  font-size: 14px;
  line-height: 1.35;
}

.overview-num {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 5px;
  background: #4A443C;
  color: #FBF8F1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.overview-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===========================
   通用弹窗（跳转 G / 帮助 ? H / 放大图片）
   =========================== */
.deck-modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 25, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}

.deck-modal.is-open {
  display: flex;
}

.modal-card {
  background: var(--bg-stage);
  color: var(--text-main);
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  padding: 26px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 780px;
  width: 100%;
}

.modal-card-sm {
  max-width: 420px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.modal-close {
  appearance: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  cursor: pointer;
}

.goto-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.goto-input {
  flex: 1 1 auto;
  padding: 12px 14px;
  font-size: 22px;
  font-family: var(--font-sans);
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-main);
  outline: none;
}

.goto-submit {
  appearance: none;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #FBF8F1;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  font-size: 17px;
  line-height: 1.5;
}

.help-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 图片全屏放大 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  z-index: 95;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  color: #EDE7DA;
  font-size: 18px;
  text-align: center;
}

/* 顶部提示条（弹窗拦截提示等） */
.deck-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: #9A4C15;
  color: #FBF8F1;
  border: 2px solid #FFE58A;
  border-radius: 8px;
  padding: 14px 26px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.deck-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ===========================
   双屏演讲者模式（?speaker=1）
   =========================== */
body.speaker-mode {
  background: #1C1A17;
  color: #FBF8F1;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

body.speaker-mode .deck-viewport,
body.speaker-mode .notes-drawer,
body.speaker-mode .overview-overlay {
  display: none !important;
}

.speaker-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  padding: 16px 22px 20px;
  gap: 16px;
}

.speaker-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #2A2723;
  border: 1px solid #4A443C;
  border-radius: 10px;
  padding: 12px 20px;
}

.speaker-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.speaker-badge {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #FBF8F1;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.speaker-page-num {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.speaker-section {
  font-size: 17px;
  color: #D4CBB8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speaker-clocks {
  display: flex;
  align-items: center;
  gap: 16px;
}

.speaker-clock-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1C1A17;
  border: 1px solid #4A443C;
  border-radius: 8px;
  padding: 6px 14px;
}

.speaker-clock-box.is-clickable {
  cursor: pointer;
}

.speaker-clock-box.is-clickable:hover {
  border-color: #FFE58A;
}

.speaker-clock-label {
  font-size: 13px;
  color: #B8AE9E;
}

.speaker-clock-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #FBF8F1;
}

.speaker-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speaker-btn {
  appearance: none;
  border: 1px solid #635D53;
  border-radius: 8px;
  background: #3D3832;
  color: #FBF8F1;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.speaker-btn:hover {
  background: #524B43;
}

.speaker-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.speaker-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 56fr 44fr;
  gap: 18px;
}

.speaker-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.speaker-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.speaker-panel {
  background: #2A2723;
  border: 1px solid #4A443C;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.speaker-panel-label {
  font-size: 15px;
  font-weight: 700;
  color: #B8AE9E;
  display: flex;
  justify-content: space-between;
}

.speaker-preview-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #141210;
  border-radius: 8px;
}

.speaker-preview-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-stage);
  border-radius: 6px;
}

.speaker-preview-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  pointer-events: none;
}

.speaker-preview-stage .slide {
  display: flex;
}

.speaker-notes-panel {
  flex: 0 0 240px;
}

.speaker-notes-text {
  flex: 1 1 auto;
  overflow-y: auto;
  font-size: 22px;
  line-height: 1.65;
  color: #FBF8F1;
}

.speaker-next-empty {
  color: #B8AE9E;
  font-size: 20px;
}

/* ===========================
   讲师登录页（与首页同风格）
   =========================== */
body.login-page {
  justify-content: center;
}

.login-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.login-card {
  background: var(--bg-stage);
  border: 1.5px solid var(--border-light);
  border-top: 7px solid var(--morning);
  border-radius: 10px;
  padding: 36px 36px 30px;
  box-shadow: 4px 6px 0 rgba(184, 174, 158, 0.25);
}

.login-title {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.login-note {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-sub);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.login-input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1.5px solid var(--border-sketch);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  border-color: var(--morning);
  box-shadow: 0 0 0 3px rgba(47, 93, 138, 0.15);
}

.login-error {
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  color: var(--bad-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.login-btn {
  appearance: none;
  margin-top: 4px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: var(--morning);
  color: #FBF8F1;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-btn:hover:not(:disabled) {
  background: var(--morning-dark);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border-light);
  text-align: center;
}

.login-back {
  color: var(--morning);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.login-back:hover {
  text-decoration: underline;
}

/* ===========================
   同步演示：讲师控制条
   =========================== */
.sync-teacher-bar {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans);
}

.sync-teacher-bar.is-hidden:not(.has-alert) {
  display: none;
}

.sync-teacher-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--border-light);
  box-shadow: 0 3px 10px rgba(35, 32, 28, 0.16);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.7;
  cursor: default;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}

.sync-teacher-bar:hover .sync-teacher-pill,
.sync-teacher-bar:focus-within .sync-teacher-pill,
.sync-teacher-bar.has-alert .sync-teacher-pill {
  opacity: 1;
  border-color: var(--primary);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--done-border);
  flex: 0 0 auto;
}

.sync-teacher-bar.has-alert .sync-dot {
  background: var(--warn-border);
}

.sync-pill-text strong {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.sync-teacher-panel {
  display: none;
  margin-top: 6px;
  width: 244px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(35, 32, 28, 0.25);
  color: var(--text-main);
  font-size: 14px;
}

.sync-teacher-bar:hover .sync-teacher-panel,
.sync-teacher-bar:focus-within .sync-teacher-panel,
.sync-teacher-bar.has-alert .sync-teacher-panel {
  display: block;
}

.sync-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
}

.sync-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.sync-viewers-badge {
  font-size: 13px;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}

.sync-panel-status {
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 13px;
  font-weight: 600;
}

.sync-relogin-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

.sync-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--text-main);
}

.sync-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.sync-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #CFC6B4;
  transition: background 0.15s ease;
}

.sync-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFDF8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.sync-switch-input:checked + .sync-switch-track {
  background: var(--primary);
}

.sync-switch-input:checked + .sync-switch-track::after {
  transform: translateX(16px);
}

.sync-switch-input:focus-visible + .sync-switch-track {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sync-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.sync-logout-btn {
  appearance: none;
  border: 1px solid var(--border-sketch);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sync-logout-btn:hover {
  border-color: var(--bad-border);
  color: var(--bad-text);
  background: var(--bad-bg);
}

.sync-panel-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===========================
   同步演示：学员界面与画布红点
   =========================== */
body.sync-student [data-presenter-only],
body.sync-student #notes-drawer {
  display: none !important;
}

.sync-home-wait {
  margin: 0 auto 24px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--morning-tint);
  border: 1.5px solid var(--morning-border);
  border-left: 6px solid var(--morning);
  color: var(--morning-dark);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.sync-student-stack {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.sync-offline-pill {
  pointer-events: auto;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-border);
  color: var(--warn-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(35, 32, 28, 0.25);
}

.sync-return-btn {
  pointer-events: auto;
  appearance: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-left: 5px solid var(--primary);
  color: var(--primary-dark);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(35, 32, 28, 0.25);
  transition: background 0.15s ease;
}

.sync-return-btn:hover {
  background: var(--primary-tint);
}

.sync-pointer {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.76);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 18px 8px rgba(220, 38, 38, 0.42),
    0 0 6px 2px rgba(220, 38, 38, 0.68);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  will-change: transform, opacity;
  transition: transform 80ms linear, opacity 220ms ease;
}

.sync-pointer.is-visible {
  opacity: 1;
}

.sync-pointer.no-move-transition {
  transition: opacity 220ms ease;
}

.sync-portrait-hint {
  display: none;
}

@media (orientation: portrait) and (max-width: 599px) {
  body.deck-page.sync-student .sync-portrait-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    top: calc(50% + 28.125vw + 26px);
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.1);
    border: 1px solid rgba(251, 248, 241, 0.22);
    color: #EDE7DA;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 20;
  }

  body.deck-page.sync-student .sync-portrait-icon {
    flex: 0 0 auto;
    opacity: 0.9;
  }
}

@media (max-width: 600px) {
  .sync-student-stack {
    top: 8px;
    right: 10px;
  }

  .sync-offline-pill,
  .sync-return-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .login-card {
    padding: 28px 22px 24px;
  }
}
