/*
 * 16:9 大教室投影字号基准（约 80 人教室）
 * 后续课件在自身主题样式之后引用本文件即可复用：
 * <link rel="stylesheet" href="css/classroom-large.css">
 * 设计画布建议保持 Reveal.initialize({ width: 1600, height: 900 })。
 */

/* 44px 基准配合 1600 x 900 画布，正文约 34px。 */
.reveal {
  font-size: 44px;
}

.reveal h1 {
  font-size: 2.05em;
  line-height: 1.08;
}

.reveal h2 {
  font-size: 1.45em;
  line-height: 1.15;
}

.reveal h3 {
  font-size: 1em;
  line-height: 1.2;
}

.reveal p,
.reveal li {
  font-size: 0.78em;
  line-height: 1.42;
}

.reveal li {
  margin: 0.18em 0;
}

.reveal pre {
  font-size: 0.55em;
  line-height: 1.35;
}

.reveal table {
  font-size: 0.68em;
}

/* 原主题中的辅助文字也要保证后排基本可辨。 */
.slide-no {
  font-size: 0.36em;
}
.eyebrow {
  font-size: 0.46em;
}
.lead {
  font-size: 0.95em !important;
  line-height: 1.38 !important;
}
.kicker,
.pill {
  font-size: 0.5em;
}
.activity .tag {
  font-size: 0.44em;
}
.activity p {
  font-size: 0.68em;
  line-height: 1.4;
}
.node {
  font-size: 0.66em;
  line-height: 1.25;
}
.media-placeholder strong {
  font-size: 0.66em;
}
.media-placeholder small {
  font-size: 0.44em;
}
.title-mark {
  font-size: 0.46em;
}
.micro {
  font-size: 0.5em !important;
  line-height: 1.4 !important;
}
.footer-src {
  font-size: 0.38em !important;
}
.time {
  font-size: 0.6em;
}
.event {
  font-size: 0.64em;
}
.badge-new {
  font-size: 0.38em;
}

/* Chapter 1-3 Demo互动版页面 */
.gpu-system-shell {
  height: 420px;
}
.pipeline-shell {
  height: 430px;
}
.vertex-shell {
  height: 420px;
}
.api-shell {
  height: 415px;
}
.camera-api-shell {
  height: 415px;
}
.pipeline-road,
.pipeline-final-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr;
  gap: 6px;
  align-items: stretch;
  margin: 26px 0 18px;
}
.pipeline-final-flow {
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  margin-top: 48px;
}
.pipe-stage {
  background: linear-gradient(180deg, #fff, #f5f8fc);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 11px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 7px 18px rgba(31, 56, 88, 0.05);
}
.pipe-stage.programmable {
  background: linear-gradient(180deg, #eef7fc, #e9f1ff);
  border-color: rgba(21, 125, 184, 0.24);
}
.pipe-stage span {
  font-size: 0.38em;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pipe-stage strong {
  font-size: 0.59em;
  line-height: 1.2;
  margin: 0.3em 0;
}
.pipe-stage small {
  font-size: 0.43em;
  line-height: 1.28;
  color: var(--muted);
}
.pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 0.72em;
  font-weight: 900;
}
.code-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.code-compare pre {
  margin: 0.35em 0 0.45em;
}
.demo-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 26px;
  align-items: center;
  margin-top: 36px;
  padding: 34px 38px;
  border: 1px solid rgba(21, 125, 184, 0.22);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f2f8fc);
  box-shadow: 0 12px 28px rgba(31, 56, 88, 0.08);
}
.demo-card h3 {
  margin-top: 0;
  color: var(--cyan);
}
.demo-card p,
.demo-card li {
  font-size: 0.76em;
}
.demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  border-radius: 18px;
  background: var(--cyan);
  color: white !important;
  font-size: 0.78em;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(21, 125, 184, 0.22);
}
.demo-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0 24px;
}
.route-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 18px rgba(31, 56, 88, 0.06);
  min-height: 210px;
}
.route-item span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e6f3fa;
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 16px;
}
.route-item strong {
  display: block;
  font-size: 0.86em;
  margin-bottom: 12px;
  color: #14345e;
}
.route-item small {
  display: block;
  font-size: 0.54em;
  line-height: 1.38;
  color: var(--muted);
}

.course-map {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 1280px;
  margin: 28px auto 18px;
}
.course-map .course-block {
  flex: 1 1 0;
  min-height: 180px;
  padding: 18px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f5f8fc);
  box-shadow: 0 8px 18px rgba(31, 56, 88, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.course-map .course-block span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf5ff;
  color: var(--cyan);
  font-size: 0.46em;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.course-map .course-block strong {
  display: block;
  font-size: 0.82em;
  line-height: 1.2;
  color: #14345e;
  margin-bottom: 8px;
}
.course-map .course-block small {
  display: block;
  font-size: 0.46em;
  line-height: 1.42;
  color: var(--muted);
}
.course-map .course-arrow {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.1em;
  font-weight: 900;
}

.imaging-map {
  margin-top: 28px;
  margin-bottom: 18px;
}
.imaging-map .course-block {
  min-height: 180px;
  padding: 18px 15px;
}
.chapter-map-flow .node {
  min-width: 165px;
}
@media (max-aspect-ratio: 4/3) {
  .gpu-system-shell,
  .pipeline-shell,
  .vertex-shell,
  .api-shell,
  .camera-api-shell {
    height: 350px;
  }
  .demo-card {
    grid-template-columns: 1fr;
  }
  .demo-route {
    grid-template-columns: 1fr;
  }
}

/* Demo 阶段思考问题嵌入页 */
.demo-think {
  margin-top: 16px;
  border-left-color: var(--amber);
  background: linear-gradient(135deg, rgba(154, 93, 0, 0.08), rgba(21, 125, 184, 0.03));
}
.demo-think .tag {
  color: var(--amber);
}
.demo-btn[data-placeholder]::after {
  content: '占位';
  display: inline-block;
  margin-left: 0.6em;
  font-size: 0.62em;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.15em 0.45em;
  border-radius: 999px;
}

/* 有序步骤列表：避免默认编号跑出卡片边界 */
.step-list {
  list-style: none;
  counter-reset: demo-step;
  margin: 0.35em 0 0;
  padding: 0;
}
.step-list li {
  counter-increment: demo-step;
  position: relative;
  padding-left: 2.15em;
  margin: 0.42em 0;
  line-height: 1.38;
}
.step-list li::before {
  content: counter(demo-step) '.';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.55em;
  text-align: right;
  font-weight: 800;
  color: var(--cyan);
}
