:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #66706b;
  --line: #d9ded8;
  --teal: #0f766e;
  --teal-soft: #dff4ef;
  --red: #b42318;
  --red-soft: #ffe8e2;
  --gold: #b7791f;
  --gold-soft: #fff1cf;
  --blue: #2563eb;
  --blue-soft: #e6efff;
  --green: #15803d;
  --green-soft: #e5f6e8;
  --shadow: 0 20px 50px rgba(23, 32, 28, 0.12);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 28, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
}

body {
  overflow: hidden;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.deck-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px 10px;
  border-bottom: 1px solid rgba(23, 32, 28, 0.08);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
}

.deck-title {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.topbar-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.slides {
  position: relative;
  display: grid;
  place-items: center;
  padding: 22px 24px 74px 124px;
}

.slide {
  width: min(1180px, calc(100vw - 180px));
  min-height: min(680px, calc(100vh - 172px));
  display: none;
  background: var(--surface);
  border: 1px solid rgba(23, 32, 28, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.slide.active {
  display: block;
}

.slide-inner {
  min-height: min(680px, calc(100vh - 172px));
  padding: 54px 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 3.8rem;
  line-height: 1.06;
  margin-bottom: 22px;
  max-width: 820px;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.18;
  margin-bottom: 4px;
  max-width: 980px;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

p,
li {
  font-size: 1rem;
  line-height: 1.72;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #34413b;
  max-width: 720px;
}

.muted {
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.hero-copy {
  align-self: center;
}

.hero-tags,
.mini-metrics,
.sources,
.poc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.mini-metrics span,
.poc-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
}

.process-visual {
  min-height: 470px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.08), transparent 38%),
    #fbfcfa;
  overflow: hidden;
}

.process-visual::before,
.process-visual::after {
  content: "";
  position: absolute;
  inset: 78px;
  border: 2px solid rgba(15, 118, 110, 0.22);
  border-radius: 50%;
}

.process-visual::after {
  inset: 116px;
  border-color: rgba(180, 35, 24, 0.18);
}

.material-stack {
  position: absolute;
  left: 28px;
  top: 38px;
  display: grid;
  gap: 8px;
}

.material-stack span {
  width: 110px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold-soft);
  border: 1px solid rgba(183, 121, 31, 0.35);
}

.material-stack span:nth-child(2) {
  width: 88px;
  background: var(--green-soft);
  border-color: rgba(21, 128, 61, 0.32);
}

.material-stack span:nth-child(3) {
  width: 128px;
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.28);
}

.loop-node {
  position: absolute;
  width: 150px;
  min-height: 98px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.08);
}

.loop-node b,
.quality-badge strong {
  display: block;
  font-size: 1.05rem;
}

.loop-node small,
.quality-badge span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.loop-node.sense {
  right: 44px;
  top: 54px;
}

.loop-node.model {
  left: 54px;
  bottom: 90px;
}

.loop-node.action {
  right: 54px;
  bottom: 66px;
}

.quality-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  min-height: 120px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: grid;
  align-content: center;
  padding: 22px;
  text-align: center;
}

.quality-badge span {
  color: rgba(255, 255, 255, 0.78);
}

.three-force {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.force-card,
.persona-card,
.case-tile,
.question-grid article,
.closing-card,
.appendix-grid > div,
.input-panel,
.output-panel,
.scenario-main,
.scenario-side,
.path-step,
.knowledge-layer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.force-card {
  padding: 22px;
  min-height: 216px;
}

.force-card strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.force-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-weight: 800;
  font-size: 0.85rem;
}

.evidence-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.evidence-row div {
  padding: 18px 20px;
  background: #fbfcfa;
  border-right: 1px solid var(--line);
}

.evidence-row div:last-child {
  border-right: 0;
}

.evidence-row b {
  display: block;
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.evidence-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.persona-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
}

.persona-card {
  padding: 28px;
}

.avatar-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.priority-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.priority-map div {
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fbfcfa;
}

.priority-map div:nth-child(2) {
  background: var(--blue-soft);
}

.priority-map div:nth-child(3) {
  background: var(--gold-soft);
}

.priority-map div:nth-child(4) {
  background: var(--green-soft);
}

.priority-map b,
.priority-map span {
  display: block;
}

.priority-map span {
  margin-top: 8px;
  color: #46524c;
  line-height: 1.55;
}

.speaker-note,
.single-message,
.quote-band,
.asset-question,
.final-line {
  border-left: 4px solid var(--teal);
  background: #f2faf7;
  color: #1e3832;
  padding: 15px 18px;
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
}

.cqa-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.56fr 0.72fr;
  gap: 18px;
  align-items: stretch;
}

.input-panel,
.output-panel {
  padding: 24px;
  background: #fbfcfa;
}

.input-panel ul,
.output-panel ul,
.check-list,
.appendix-grid ul {
  margin: 0;
  padding-left: 1.1rem;
}

.bridge-diagram {
  min-height: 310px;
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr 42px 1fr;
  align-items: center;
}

.bridge-node {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  font-weight: 800;
}

.bridge-node small {
  color: var(--muted);
  font-weight: 500;
}

.bridge-node.accent-red {
  background: var(--red-soft);
  border-color: rgba(180, 35, 24, 0.25);
  color: var(--red);
}

.bridge-node.accent-green {
  background: var(--green-soft);
  border-color: rgba(21, 128, 61, 0.25);
  color: var(--green);
}

.bridge-line {
  height: 2px;
  background: var(--teal);
}

.case-matrix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.case-tile {
  min-height: 290px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.case-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.case-tile h3 {
  font-size: 1.28rem;
}

.case-tile small {
  margin-top: auto;
  color: var(--muted);
  line-height: 1.55;
}

.case-tile.strong {
  border-top: 5px solid var(--green);
}

.case-tile.medium {
  border-top: 5px solid var(--blue);
}

.case-tile.caution {
  border-top: 5px solid var(--gold);
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.scenario-main,
.scenario-side {
  padding: 26px;
}

.architecture {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.architecture span {
  min-height: 78px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}

.architecture span:nth-child(2) {
  background: var(--blue-soft);
  color: var(--blue);
}

.architecture span:nth-child(3) {
  background: var(--gold-soft);
  color: var(--gold);
}

.architecture span:nth-child(4) {
  background: var(--red-soft);
  color: var(--red);
}

.architecture span:nth-child(5) {
  background: var(--green-soft);
  color: var(--green);
}

.poc-strip {
  justify-content: center;
}

.control-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.path-step {
  min-height: 278px;
  padding: 22px;
  position: relative;
}

.path-step span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
  margin-bottom: 20px;
}

.aps-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.aps-map {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  position: relative;
}

.plant,
.hub {
  position: absolute;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #fff;
}

.plant {
  width: 110px;
  height: 62px;
}

.plant:nth-child(1) {
  left: 52px;
  top: 48px;
}

.plant:nth-child(2) {
  right: 54px;
  top: 58px;
}

.plant:nth-child(3) {
  left: 74px;
  bottom: 54px;
}

.plant:nth-child(4) {
  right: 60px;
  bottom: 48px;
}

.hub {
  width: 150px;
  height: 150px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 50%;
}

.aps-map::before,
.aps-map::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
  background: rgba(15, 118, 110, 0.32);
}

.aps-map::after {
  top: 18%;
  bottom: 18%;
  left: 50%;
  right: auto;
  width: 2px;
  height: auto;
}

.aps-copy {
  padding-right: 8px;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.knowledge-layer {
  min-height: 244px;
  padding: 24px;
}

.knowledge-layer.cloud {
  background: var(--blue-soft);
}

.knowledge-layer.edge {
  background: var(--green-soft);
}

.knowledge-layer.expert {
  background: var(--gold-soft);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
}

.road-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-height: 300px;
  background: #fff;
}

.road-item span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0f2ef;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.road-item.now {
  border-color: rgba(180, 35, 24, 0.35);
  background: var(--red-soft);
}

.road-item.future {
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--teal-soft);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.question-grid article {
  min-height: 250px;
  padding: 22px;
}

.question-grid article:nth-child(1) {
  border-top: 5px solid var(--red);
}

.question-grid article:nth-child(2) {
  border-top: 5px solid var(--teal);
}

.question-grid article:nth-child(3) {
  border-top: 5px solid var(--gold);
}

.question-grid article:nth-child(4) {
  border-top: 5px solid var(--blue);
}

.question-grid article:nth-child(5) {
  border-top: 5px solid var(--green);
}

.closing-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.closing-card {
  min-height: 240px;
  padding: 24px;
}

.closing-card.primary {
  background: var(--ink);
  color: white;
}

.closing-card.primary p {
  color: rgba(255, 255, 255, 0.78);
}

.appendix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.appendix-grid > div {
  padding: 24px;
  min-height: 260px;
}

.sources a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0f2ef;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.controls {
  position: fixed;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 32, 28, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(23, 32, 28, 0.12);
}

.icon-button:hover,
.icon-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.slide-status {
  min-width: 66px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 32, 28, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.progress-track {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(23, 32, 28, 0.08);
  z-index: 22;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--red), var(--gold));
  transition: width 180ms ease;
}

.thumbs {
  position: fixed;
  left: 18px;
  top: 92px;
  bottom: 28px;
  width: 82px;
  display: grid;
  grid-auto-rows: 42px;
  gap: 8px;
  overflow: auto;
  z-index: 18;
}

.thumbs button {
  border: 1px solid rgba(23, 32, 28, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.thumbs button[aria-current="true"] {
  background: var(--ink);
  color: white;
}

@media (max-width: 1050px) {
  body {
    overflow: auto;
  }

  .slides {
    padding: 14px 14px 88px;
  }

  .slide {
    width: 100%;
    min-height: auto;
  }

  .slide-inner {
    min-height: auto;
    padding: 34px 24px;
  }

  .thumbs {
    display: none;
  }

  .topbar {
    padding-inline: 16px;
  }

  .topbar-meta {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-grid,
  .persona-layout,
  .scenario-grid,
  .aps-layout {
    grid-template-columns: 1fr;
  }

  .three-force,
  .evidence-row,
  .priority-map,
  .knowledge-layout,
  .appendix-grid,
  .closing-layout {
    grid-template-columns: 1fr;
  }

  .case-matrix,
  .roadmap,
  .question-grid,
  .control-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .cqa-layout {
    grid-template-columns: 1fr;
  }

  .bridge-diagram {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bridge-line {
    width: 2px;
    height: 24px;
    justify-self: center;
  }

  .process-visual {
    min-height: 420px;
  }
}

@media (max-height: 760px) and (min-width: 1051px) {
  .slides {
    padding-top: 14px;
    padding-bottom: 58px;
  }

  .slide {
    min-height: min(610px, calc(100vh - 150px));
  }

  .slide-inner {
    min-height: min(610px, calc(100vh - 150px));
    padding: 38px 52px;
    gap: 16px;
  }

  h1 {
    font-size: 3.35rem;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 1.95rem;
  }

  p,
  li {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .lead {
    font-size: 1.04rem;
  }

  .process-visual {
    min-height: 430px;
  }

  .force-card {
    min-height: 190px;
    padding: 18px;
  }

  .evidence-row b {
    font-size: 1.65rem;
  }

  .persona-card,
  .priority-map div,
  .scenario-main,
  .scenario-side,
  .path-step,
  .knowledge-layer,
  .question-grid article,
  .closing-card,
  .appendix-grid > div {
    padding: 18px;
  }

  .avatar-ring {
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
    margin-bottom: 16px;
  }

  .speaker-note,
  .single-message,
  .quote-band,
  .asset-question,
  .final-line {
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .case-tile {
    min-height: 245px;
    padding: 16px;
  }

  .case-tile h3 {
    font-size: 1.12rem;
  }

  .bridge-diagram {
    min-height: 260px;
  }

  .bridge-node {
    min-height: 92px;
  }

  .architecture span {
    min-height: 64px;
  }

  .path-step {
    min-height: 240px;
  }

  .aps-map {
    min-height: 300px;
  }

  .plant {
    width: 98px;
    height: 54px;
  }

  .hub {
    width: 126px;
    height: 126px;
  }

  .knowledge-layer {
    min-height: 210px;
  }

  .road-item {
    min-height: 252px;
    padding: 16px;
  }

  .question-grid article {
    min-height: 218px;
  }

  .closing-card {
    min-height: 210px;
  }

  .appendix-grid > div {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .case-matrix,
  .roadmap,
  .question-grid,
  .control-path,
  .architecture {
    grid-template-columns: 1fr;
  }

  .slide-inner {
    padding: 28px 18px;
  }

  .process-visual {
    display: none;
  }

  .controls {
    right: 12px;
    bottom: 14px;
  }
}

@media print {
  body {
    overflow: visible;
    background: #fff;
  }

  .topbar,
  .controls,
  .progress-track,
  .thumbs {
    display: none;
  }

  .slides {
    display: block;
    padding: 0;
  }

  .slide,
  .slide.active {
    display: block;
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    page-break-after: always;
  }
}
