:root {
  --teal: #00bebe;
  --cyan: #00ffcc;
  --blue: #12abdb;
  --navy: #006fac;
  --dark: #0e3d47;
  --dark2: #204553;
  --purple: #2b133c;
  --paper: #f0f7f8;
  --white: #fff;
  --muted: #5a7a84;
  --text: #2a4a54;
  --border: rgba(0, 190, 190, 0.22);
  --nav-h: 60px;
  --slide-radius: 18px;
  --panel-bg: rgba(8, 20, 28, 0.62);
  --panel-border: rgba(0, 255, 204, 0.18);
  --glow: 0 0 40px rgba(0, 190, 190, 0.12);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "Consolas", monospace;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: #081018;
  color: var(--white);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  background: rgba(8, 16, 24, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-text span {
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.nav-center {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 50vw;
  scrollbar-width: none;
  padding: 0 8px;
}

.nav-center::-webkit-scrollbar {
  display: none;
}

.nav-item {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
  font-family: inherit;
  outline: none;
  box-shadow: none;
}

.nav-item:focus {
  outline: none;
  box-shadow: none;
}

.nav-item:focus-visible {
  outline: 2px solid rgba(0, 255, 204, 0.55);
  outline-offset: 2px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: var(--dark);
  background: var(--cyan);
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.page-info {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  min-width: 64px;
  text-align: center;
}

.btn-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 255, 204, 0.35);
  background: rgba(0, 190, 190, 0.1);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: 0.2s;
  outline: none;
}

.btn-nav:hover:not(:disabled) {
  background: var(--cyan);
  color: var(--dark);
}

.btn-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 0.25s;
  padding: 0;
  outline: none;
}

.dot.active {
  background: var(--cyan);
  width: 18px;
  border-radius: 3px;
}

.deck {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px 16px;
  z-index: 2;
}

.slide {
  position: absolute;
  inset: 12px 20px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(36px) scale(0.98);
  transition: opacity 0.4s, transform 0.4s, visibility 0.4s;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.slide.exit-left {
  transform: translateX(-36px) scale(0.98);
}

.slide-inner {
  height: 100%;
  border-radius: var(--slide-radius);
  background-color: transparent;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 65%, rgba(0, 0, 0, 0.04) 100%),
    var(--slide-bg-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 204, 0.1);
}

.slide-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 1;
}

.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vh, 44px) clamp(32px, 5vw, 56px);
  overflow: auto;
  background: transparent;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.slide-inner.dense .slide-content {
  justify-content: flex-start;
  padding-top: clamp(24px, 3.5vh, 40px);
}

.slide-inner.dense .slide-content > .section-tag,
.slide-inner.dense .slide-content > .slide-header {
  margin-bottom: 4px;
}

.slide-header {
  margin-bottom: 18px;
}

.slide-header h2 {
  margin-bottom: 0;
}

.slide-inner.cover .slide-content {
  align-items: center;
  text-align: center;
  justify-content: center;
  max-width: 960px;
}

.cover-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cover-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 20px;
}

.cover-pill {
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(0, 190, 190, 0.15);
  border: 1px solid rgba(0, 255, 204, 0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.slide-inner.part .slide-content,
.slide-inner.end .slide-content {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.part-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 32px;
  background: rgba(8, 20, 28, 0.45);
  border: 1px solid rgba(0, 255, 204, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
  max-width: 720px;
}

.part-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.part-chips span {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0, 190, 190, 0.12);
  border: 1px solid rgba(0, 255, 204, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.slide-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
  z-index: 3;
}

.cover-brand {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.cover-tag {
  color: rgba(0, 255, 204, 0.95);
  margin-bottom: 14px;
}

.slide-inner.cover h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  max-width: 900px;
}

.cover-desc {
  max-width: 760px;
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.cover-line {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 4px 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.cover-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-tag.light {
  color: var(--cyan);
}

h1, h2 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.slide-inner.part h2,
.slide-inner.end h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  margin: -8px 0 16px;
}

.lead {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}

.footer-note {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-note.center {
  text-align: center;
}

.part-label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.part-line {
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--cyan), transparent);
  margin: 0 auto 22px;
}

.part-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
}

.highlight-box {
  background: rgba(8, 16, 24, 0.45);
  backdrop-filter: blur(6px);
  border-left: 3px solid var(--cyan);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--cyan);
}

.temp {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
}

.temp.warn {
  color: #ffb347;
}

.temp-arrow {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.6);
}

.quote-bar {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(8, 16, 24, 0.55);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bullet-list {
  list-style: none;
}

.bullet-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bullet-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.slide-inner.split .slide-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  justify-content: stretch;
  max-width: none;
  width: 100%;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: clamp(20px, 2.5vh, 28px) clamp(22px, 2.5vw, 28px);
  backdrop-filter: blur(14px);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.panel.accent {
  background: linear-gradient(160deg, rgba(14, 61, 71, 0.88) 0%, rgba(8, 20, 28, 0.75) 100%);
  border-color: rgba(0, 255, 204, 0.22);
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mission-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border-left: 3px solid var(--cyan);
  transition: border-color 0.2s, background 0.2s;
}

.mission-item:hover {
  background: rgba(0, 190, 190, 0.08);
  border-color: rgba(0, 255, 204, 0.25);
}

.mission-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 28px;
  line-height: 1.5;
}

.mission-item p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.lifecycle {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.lifecycle.timeline {
  position: relative;
  padding-left: 8px;
}

.lifecycle.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 255, 204, 0.15));
}

.lc-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
  transition: transform 0.2s, border-color 0.2s;
}

.lc-step:hover {
  transform: translateX(4px);
  border-color: rgba(0, 255, 204, 0.35);
}

.lc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lc-body strong {
  font-size: 0.92rem;
  color: #fff;
}

.lc-body span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
}

.lc-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--cyan);
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 16px;
  flex: 1;
  align-content: start;
}

.card-grid.two {
  grid-template-columns: 1fr 1fr;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(2, 1fr);
}

.pain-card,
.client-card,
.arch-card,
.ind-card {
  padding: 18px 20px;
  background: rgba(8, 16, 24, 0.58);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  border-top: 3px solid var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, border-color 0.2s;
}

.pain-card:hover,
.client-card:hover,
.arch-card:hover,
.ind-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 204, 0.3);
}

.pain-card h3,
.client-card h3,
.arch-card h3,
.ind-card h3 {
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 6px;
}

.pain-sub {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 4px;
}

.pain-card p,
.client-card p,
.arch-card p,
.ind-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.metric-card {
  padding: 22px 14px;
  background: linear-gradient(160deg, rgba(14, 61, 71, 0.9), rgba(8, 20, 28, 0.8));
  border: 1px solid rgba(0, 255, 204, 0.15);
  border-radius: 12px;
  text-align: center;
  color: #fff;
  box-shadow: var(--glow);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.metric-lbl {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.info-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.info-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(8, 16, 24, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  border-left: 3px solid var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--cyan);
}

.info-k {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
}

.info-v {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.mini-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.bullet-list.compact li {
  padding: 10px 0 10px 24px;
  font-size: 0.86rem;
}

.bullet-list.compact li:last-child {
  border-bottom: none;
}

.mini-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mini-card {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  transition: background 0.2s;
}

.mini-card:hover {
  background: rgba(0, 190, 190, 0.1);
}

.mini-card h4 {
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.mini-card p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

.dark-panel {
  background: var(--dark);
  padding: 20px;
  border-radius: 12px;
  color: #fff;
}

.case-list {
  list-style: none;
}

.case-list li {
  padding: 10px 0 10px 18px;
  position: relative;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  padding: 6px 14px;
  background: var(--dark);
  color: var(--cyan);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

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

.cap-card {
  padding: 16px;
  background: rgba(8, 16, 24, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.cap-code {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  margin-bottom: 6px;
}

.cap-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

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

.adv-card {
  padding: 14px 12px;
  background: rgba(8, 16, 24, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  border-bottom: 3px solid var(--cyan);
}

.adv-card h3 {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 6px;
}

.adv-card p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.ind-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
}

.driver-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.driver-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(8, 16, 24, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.driver-k {
  font-weight: 700;
  color: var(--cyan);
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.step-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 0.75rem;
}

.step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

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

.tier-card {
  padding: 14px;
  background: var(--dark);
  border-radius: 10px;
  text-align: center;
  color: #fff;
}

.tier-card h4 {
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.tier-card p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.case-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(8, 16, 24, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  font-size: 0.75rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-c {
  font-weight: 600;
  color: #fff;
}

.case-s {
  color: rgba(255, 255, 255, 0.72);
}

.case-r {
  color: var(--cyan);
  font-weight: 600;
}

.train-card {
  padding: 16px;
  background: rgba(8, 16, 24, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  text-align: center;
}

.train-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.train-card h3 {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #fff;
}

.train-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.outcomes {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.outcomes-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-right: 8px;
}

.outcome {
  font-size: 0.78rem;
  padding: 6px 12px;
  background: rgba(8, 16, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.road-card {
  padding: 18px;
  background: rgba(8, 16, 24, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  position: relative;
}

.road-card h3 {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 8px;
}

.road-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 12px;
}

.road-tag {
  font-size: 0.68rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.end-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.end-ring::after {
  content: "✓";
  font-size: 1.6rem;
  color: var(--cyan);
}

.end-body {
  max-width: 720px;
  text-align: left;
  margin: 12px auto;
}

.end-body p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.end-contact {
  font-size: 0.8rem;
  color: var(--teal);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

.progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 255, 204, 0.15);
  z-index: 200;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transition: width 0.4s;
}

.body-text p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 8px;
}

@media (max-width: 1000px) {
  .nav-center {
    display: none;
  }

  .split,
  .slide-inner.split .slide-content,
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .cap-grid,
  .adv-grid,
  .metric-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .slide-content {
    padding: 24px 20px;
  }

  .panel {
    min-height: auto;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* Mobile: hide bottom Three.js decorations (prd) */
  .dragonfly-stage,
  .butterfly-stage {
    display: none !important;
  }
}

/* ── Markdown slides: 文字面板全高，左右留空 ── */
.slide-md .slide-content,
.slide-inner.md .slide-content {
  justify-content: stretch;
  align-items: stretch;
  padding: clamp(10px, 1.8vh, 20px) clamp(14px, 2.5vw, 28px);
  max-width: 1180px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.md-shell {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  background: rgba(6, 16, 22, 0.52);
  border: 1px solid rgba(0, 255, 204, 0.32);
  border-radius: 14px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.slide-inner.md.scrollable .md-shell {
  max-height: none;
  height: 100%;
}

.md-slide-header {
  flex-shrink: 0;
  margin: 0;
  padding: clamp(18px, 2.5vh, 26px) clamp(24px, 3vw, 36px) clamp(14px, 2vh, 20px);
  border-bottom: 1px solid rgba(0, 255, 204, 0.15);
  background: linear-gradient(180deg, rgba(0, 190, 190, 0.14) 0%, rgba(0, 190, 190, 0.04) 100%);
}

.md-slide-header h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  margin: 0;
}

/* Centered speaker credit — first page body */
.md-body--credit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-credit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(28px, 4vh, 40px) clamp(36px, 5vw, 56px);
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(0, 190, 190, 0.14) 0%, rgba(6, 16, 22, 0.35) 55%, rgba(6, 16, 22, 0.2) 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(0, 255, 204, 0.12);
  max-width: min(420px, 86%);
}

.md-credit-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.85vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--cyan);
  text-transform: uppercase;
}

.md-credit-label::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
}

.md-credit-name {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.42em;
  padding-right: 0.2em;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.md-credit-org {
  margin: 4px 0 0;
  font-size: clamp(0.88rem, 1.15vw, 1.02rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.18em;
  padding-right: 0.1em;
  line-height: 1.5;
}

.md-body {
  flex: 1;
  min-height: 0;
  padding: clamp(18px, 2.5vh, 28px) clamp(24px, 3vw, 36px);
  padding-bottom: clamp(22px, 3vh, 32px);
  font-size: clamp(0.84rem, 1.15vw, 0.96rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 204, 0.35) transparent;
}

.slide-inner.md .md-body::-webkit-scrollbar {
  width: 5px;
}

.slide-inner.md .md-body::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 204, 0.35);
  border-radius: 3px;
}

.slide-inner.md.scrollable .md-body {
  padding-right: clamp(16px, 2vw, 24px);
}

.md-body > * + * {
  margin-top: 0.7em;
}

.md-body > *:first-child {
  margin-top: 0;
}

.md-body > *:last-child {
  margin-bottom: 0;
}

/* Body section headings: one accent style (cyan + left bar), all levels.
   Page title stays white via .md-slide-header h2. */
.md-body h2,
.md-body h3,
.md-body h4 {
  font-weight: 600;
  color: var(--cyan);
  margin: 1.25em 0 0.6em;
  line-height: 1.5;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
}

.md-body h2 {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.md-body h3 {
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
}

.md-body h4 {
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
}

.md-body h2:first-child,
.md-body h3:first-child,
.md-body h4:first-child {
  margin-top: 0;
}

.md-body h2 strong,
.md-body h3 strong,
.md-body h4 strong {
  color: inherit;
  font-weight: 600;
}

.md-body p {
  margin: 0.55em 0;
}

.md-body ul,
.md-body ol {
  margin: 0.65em 0 0.85em;
  padding: 0;
  list-style: none;
}

.md-body ul li,
.md-body ol li {
  position: relative;
  margin: 0.45em 0;
  padding-left: 1.1em;
  line-height: 1.75;
}

.md-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.85;
}

.md-body ol {
  counter-reset: md-ol;
}

.md-body ol li {
  counter-increment: md-ol;
  padding-left: 1.5em;
}

.md-body ol li::before {
  content: counter(md-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-size: 0.9em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.md-body ul ul,
.md-body ol ol,
.md-body ul ol,
.md-body ol ul {
  margin: 0.3em 0 0.15em;
  padding-left: 0.45em;
}

.md-body ul ul li::before {
  width: 4px;
  height: 4px;
  background: rgba(0, 255, 204, 0.55);
}

.md-body strong {
  color: #fff;
  font-weight: 600;
}

.md-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.85em 0 1.1em;
  font-size: 0.88em;
  background: rgba(4, 12, 18, 0.65);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 204, 0.18);
  display: table;
}

.md-body th,
.md-body td {
  border-bottom: 1px solid rgba(0, 255, 204, 0.12);
  border-right: 1px solid rgba(0, 255, 204, 0.08);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.md-body th:last-child,
.md-body td:last-child {
  border-right: none;
}

.md-body tr:last-child td {
  border-bottom: none;
}

.md-body th {
  background: rgba(0, 190, 190, 0.2);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.92em;
}

.md-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.md-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 24px);
  margin: 1em auto;
  max-width: 100%;
  width: 100%;
}

.md-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em auto;
  padding: 0;
  width: 100%;
  max-width: 560px;
  clear: both;
}

.md-gallery .md-figure {
  flex: 0 1 calc(50% - 12px);
  max-width: 400px;
  margin: 0;
}

/* 宽图（流程图/截图）单独占一行 */
.md-figure:only-child {
  max-width: min(720px, 100%);
}

/* Three.js dragonfly — fixed bottom-right, visible on every page */
.dragonfly-stage {
  position: fixed;
  right: clamp(8px, 1.5vw, 24px);
  bottom: clamp(10px, 1.8vh, 28px);
  width: clamp(130px, 14vw, 200px);
  height: clamp(95px, 12vh, 150px);
  margin: 0;
  z-index: 150;
  pointer-events: none;
}

.dragonfly-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Cute butterfly on flower — left margin only, clear of content box */
.butterfly-stage {
  position: fixed;
  left: 0;
  bottom: clamp(2px, 0.8vh, 12px);
  width: clamp(130px, 10vw, 155px);
  height: clamp(200px, 24vh, 300px);
  margin: 0;
  z-index: 150;
  pointer-events: none;
  overflow: visible;
}

.butterfly-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.md-body img,
.md-body .md-img {
  display: block;
  width: 100%;
  height: clamp(160px, 24vh, 280px);
  object-fit: contain;
  margin: 0 auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  background: rgba(4, 12, 18, 0.7);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
  transition: box-shadow 0.2s, border-color 0.2s;
}

/* 同页多图时缩小高度，避免底部被裁切 */
.md-body:has(.md-figure:nth-of-type(2)) .md-figure img {
  height: clamp(100px, 14vh, 175px);
}

.md-body img:hover,
.md-body .md-img:hover {
  border-color: rgba(0, 255, 204, 0.4);
  box-shadow: 0 10px 32px rgba(0, 190, 190, 0.2);
}

.md-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  text-align: center;
  padding: 2.5em 1.5em;
  border: 1px dashed rgba(0, 255, 204, 0.2);
  border-radius: 12px;
  background: rgba(4, 12, 18, 0.45);
}

/* Image lightbox */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 16, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  cursor: zoom-out;
}

.img-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.img-lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.img-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-lightbox-close:hover {
  background: rgba(0, 255, 204, 0.2);
  border-color: var(--cyan);
}
