/* 京西智谷 */
:root {
  --bg: #d5dde8;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --soft: #f4f5f7;
  --city-ink: #1a3048;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-latin: "Manrope", var(--font-sans);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 28px;
  /* 与场景页一致的 16:9 舞台尺寸 */
  --stage-w: min(96.5vw, calc((100dvh - 1rem) * 16 / 9));
  --stage-h: min(calc(100dvh - 1rem), calc(96.5vw * 9 / 16));
}

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

html, body {
  margin: 0;
  height: 100%;
  background: linear-gradient(165deg, #e8eef4 0%, #d4dde8 45%, #b8c6d6 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 全局 / 场景滚动条淡化 */
.deck,
.scenes-side {
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 48, 72, 0.18) transparent;
}

.deck::-webkit-scrollbar,
.scenes-side::-webkit-scrollbar {
  width: 5px;
}

.deck::-webkit-scrollbar-track,
.scenes-side::-webkit-scrollbar-track {
  background: transparent;
}

.deck::-webkit-scrollbar-thumb,
.scenes-side::-webkit-scrollbar-thumb {
  background: rgba(26, 48, 72, 0.16);
  border-radius: 999px;
}

.deck::-webkit-scrollbar-thumb:hover,
.scenes-side::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 48, 72, 0.28);
}

.topnav {
  position: fixed;
  top: 1.1rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.28rem;
  border-radius: 999px;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #222;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 24px rgba(26, 48, 72, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.nav-rail {
  position: absolute;
  inset: 0.28rem;
  pointer-events: none;
  z-index: 0;
}

.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a3048 0%, #2a4a68 100%);
  box-shadow: 0 4px 14px rgba(26, 48, 72, 0.28);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
}

.topnav a {
  position: relative;
  z-index: 1;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  opacity: 0.72;
  color: #1a3048;
  transition: opacity 0.25s, color 0.25s, background 0.25s;
}

.topnav a:hover { opacity: 1; }

/* 高亮块未就位时也保持可读：深底白字 */
.topnav a.is-active {
  opacity: 1;
  color: #fff;
  background: #1a3048;
}

.topnav.has-pill a.is-active {
  background: transparent;
}

.deck {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  padding: clamp(0.3rem, 0.8vw, 0.55rem);
}

.panel {
  width: var(--stage-w);
  max-width: none;
  height: var(--stage-h);
  max-height: calc(100dvh - 1rem);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow:
    0 18px 60px rgba(26, 48, 72, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* —— 1. Hero —— */
.hero-shot {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #8fa4b8;
}

.slide-hero .ppt-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0;
  filter: contrast(1.04) saturate(1.06);
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(6, 12, 22, 0.42), transparent 70%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.45) 0%, rgba(6, 10, 18, 0.18) 42%, rgba(6, 10, 18, 0.62) 100%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  width: min(92%, 52rem);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 1.6vh, 1.35rem);
  text-align: center;
  color: #fff;
  animation: rise 1s var(--ease) both;
}

.hero-eyebrow {
  margin: 0;
  font-family: var(--font-latin);
  font-size: clamp(0.78rem, 1.35vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-logo {
  width: clamp(96px, 12vw, 148px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.hero-brand {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 900;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.45;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* —— PPT full slides（与场景同画幅） —— */
.slide-ppt .ppt-panel {
  width: var(--stage-w);
  max-width: none;
  height: var(--stage-h);
  max-height: calc(100dvh - 1rem);
  display: flex;
  flex-direction: column;
  padding: 0.55rem;
  overflow: hidden;
}

.slide-ppt .ppt-panel.zoom-host {
  /* 全屏按钮叠在画面内 */
  cursor: default;
}

.ppt-shot {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: #0b1526;
}

.slide-ppt:not(.slide-hero) .ppt-shot {
  object-fit: contain;
  background: #0b1526;
}

/* —— Scenes —— */
.slide-scenes .scenes-panel {
  width: var(--stage-w);
  max-width: none;
  height: var(--stage-h);
  max-height: calc(100dvh - 1rem);
}

.scenes-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  aspect-ratio: auto;
  min-height: 0;
  padding: 0.7rem 0.75rem 0.55rem;
  overflow: hidden;
}

.scenes-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.15rem;
  align-self: stretch;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.scene-chapter {
  /* 可长高铺满，但不压缩到内容以下，避免缩放时标题重叠 */
  border-bottom: 0;
  padding-bottom: 0.1rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: min-content;
}

.chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  flex: 0 0 auto;
  padding: 0.3rem 0.08rem 0.14rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chapter-no {
  font-family: var(--font-latin);
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 0.12rem;
  line-height: 1.2;
}

.chapter-text {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
}

.chapter-name {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-en {
  font-family: var(--font-latin);
  font-size: clamp(0.58rem, 0.8vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 全部展开：有空间时拉开间距；不够时整栏滚动，禁止压缩重叠 */
.chapter-items {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex: 1 0 auto;
  gap: 0.18rem;
  min-height: min-content;
  padding: 0.05rem 0 0.2rem 1.05rem;
}

.scene-chapter:has(.scene-item.is-active) .chapter-name {
  color: #0b4f8a;
}

.scene-chapter:has(.scene-item.is-active) .chapter-en {
  color: #3d6f9a;
}

.scene-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 0;
  padding: 0.3rem 0.32rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  min-width: 0;
}

.scene-item .item-zh {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  font-size: clamp(0.72rem, 0.98vw, 0.82rem);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.scene-item .item-no {
  flex: 0 0 auto;
  font-family: var(--font-latin);
  font-variant-numeric: normal;
  opacity: 0.9;
}

/* 侧栏二级标题不展示英文，英文放到右侧详情 */
.scene-item .item-en {
  display: none;
}

.scene-item:hover {
  color: var(--ink);
  background: rgba(11, 79, 138, 0.05);
}

.scene-item.is-active {
  color: #0b4f8a;
  background: rgba(11, 79, 138, 0.08);
  transform: translateX(2px);
}

.scenes-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.28rem;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.scenes-title {
  padding: 0.55rem 0.1rem 0.18rem;
  min-height: 0;
  flex-shrink: 0;
}

.scenes-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  /* 预留底边，让 PPT 图整体略上移，标题/算法文案位置不变 */
  padding-bottom: 1.1rem;
}

.scenes-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  /* 按每张 PPT 固有比例缩放进预览区，不再用深色 letterbox */
  object-fit: contain;
  object-position: var(--scene-pos, center center);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: opacity 0.35s var(--ease);
  transform: translateY(-0.55rem);
}

.scenes-preview img.is-swap {
  opacity: 0;
}

.scenes-detail {
  padding: 0.05rem 0.1rem 0.2rem;
  min-height: 0;
  overflow: visible;
}

.scenes-zh {
  margin: 0 0 0.08rem;
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #12263a;
  line-height: 1.3;
}

.scenes-en {
  margin: 0;
  font-family: var(--font-latin);
  font-size: clamp(0.7rem, 0.98vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #3d6f9a;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
}

.scenes-algo {
  margin: 0;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  line-height: 1.5;
  color: #445566;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes rise {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes hero-kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

/* —— 2. Gallery：双 16:9 PPT 横版 —— */
.slide-gallery {
  position: relative;
  cursor: none;
}

.gallery-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.6vh, 1.15rem);
  /* 按内容定高，上下留适度留白 */
  height: auto;
  max-height: var(--stage-h);
  padding:
    clamp(1.15rem, 2.4vh, 1.7rem)
    clamp(1.25rem, 2.6vw, 2rem)
    clamp(1.25rem, 2.6vh, 1.85rem);
  overflow: hidden;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.gallery-kicker {
  margin: 0 0 0.28rem;
  font-family: var(--font-latin);
  font-size: clamp(0.7rem, 0.98vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #6b7c8f;
}

.gallery-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.25vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #12263a;
  line-height: 1.15;
}

.gallery-hint {
  margin: 0;
  font-family: var(--font-latin);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #1a3048;
  animation: hint-pulse 2.2s ease-in-out infinite;
}

.gallery-hint.is-hidden {
  opacity: 0.28;
  animation: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.2rem);
  min-height: 0;
}

.gallery-grid.is-hovering .gallery-card:not(.is-hot) {
  opacity: 0.55;
  filter: saturate(0.85);
}

.gallery-card {
  --mx: 50%;
  --my: 50%;
  display: block;
  min-width: 0;
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery-card.is-hot {
  z-index: 2;
  transform: translateY(-3px);
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1a28;
  box-shadow:
    0 12px 30px rgba(18, 38, 58, 0.14),
    0 0 0 1px rgba(18, 38, 58, 0.06);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery-card.is-hot .gallery-media {
  box-shadow:
    0 22px 48px rgba(18, 38, 58, 0.22),
    0 0 0 1px rgba(18, 38, 58, 0.1);
}

.gallery-card.is-idle .gallery-media {
  animation: card-invite 3s ease-in-out infinite;
}

.gallery-card.is-idle:nth-child(2) .gallery-media {
  animation-delay: 1.5s;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease);
  transform: scale(1.02);
}

.gallery-card.is-hot .gallery-media img {
  transform: scale(1.06);
}

.gallery-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.28),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.gallery-card.is-hot .gallery-shine { opacity: 1; }

.gallery-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 28, 0.05) 35%,
    rgba(8, 16, 28, 0.72) 100%
  );
  pointer-events: none;
}

.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.28rem;
  padding: clamp(0.9rem, 1.8vw, 1.25rem) clamp(1rem, 1.8vw, 1.35rem) clamp(0.95rem, 1.6vw, 1.2rem);
  color: #fff;
  pointer-events: none;
}

.gallery-cap strong {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.gallery-cap span {
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22em;
}

.gallery-enter {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #12263a;
  font-family: var(--font-latin);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.gallery-card.is-hot .gallery-enter,
.gallery-card.is-idle .gallery-enter {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-card.is-idle .gallery-enter {
  animation: enter-bob 2s ease-in-out infinite;
}

.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.55);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(0.4);
  transition: width 0.25s, height 0.25s, margin 0.25s, opacity 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-blob.is-on {
  opacity: 1;
}

.cursor-blob.is-over {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.cursor-blob::after {
  content: "打开";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-blob.is-over::after { opacity: 1; }

@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes card-invite {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes enter-bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 5px)); }
}

/* —— 3. List + preview (原第2张) —— */
.list-panel {
  position: relative;
  min-height: min(72vh, 640px);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  align-content: center;
  overflow: hidden;
}

.nexus-list {
  display: grid;
  width: min(100%, 820px);
}

.nexus-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s;
}

.nexus-row:first-child { border-top: 1px solid var(--line); }

.nexus-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.nexus-meta {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.nexus-list:hover .nexus-row { opacity: 0.28; }
.nexus-list:hover .nexus-row:hover,
.nexus-row.is-active { opacity: 1; }

.nexus-preview {
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(28vw, 260px);
  aspect-ratio: 3 / 4;
  transform: translateY(-50%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  z-index: 2;
}

.nexus-preview.is-on {
  opacity: 1;
  transform: translateY(-50%) translateY(-6px);
}

.nexus-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— 4. Split (原第3张) —— */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.5rem);
  min-height: min(70vh, 620px);
}

.split-copy h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.split-copy p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
}

.split-media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--soft);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— 5. Close (原第5张) —— */
.close-panel {
  min-height: min(72vh, 640px);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.close-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.close-top h3 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.close-top p {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.close-top a:hover { color: var(--ink); }

.close-logo {
  width: clamp(110px, 14vw, 160px);
  height: auto;
  margin-bottom: 1rem;
}

.close-brand h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 0.95;
}

.close-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .topnav {
    right: 0.55rem;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .topnav a {
    padding: 0.36rem 0.62rem;
  }


  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .hero-brand {
    font-size: clamp(2rem, 10vw, 2.8rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

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

  .gallery-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .panel,
  .slide-ppt .ppt-panel,
  .slide-scenes .scenes-panel,
  .gallery-panel {
    width: min(96.5vw, 100%);
    height: auto;
    max-height: min(92dvh, 900px);
  }

  .gallery-media {
    aspect-ratio: 16 / 9;
  }

  .gallery-enter {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .scenes-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: auto;
  }

  .scenes-main {
    order: -1;
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .scenes-preview {
    height: auto;
    max-height: 42vh;
    min-height: 12rem;
  }

  .scenes-preview img {
    width: 100%;
    height: auto;
    max-height: 42vh;
  }

  .scenes-detail {
    overflow: visible;
  }

  .scenes-side {
    align-self: stretch;
    height: auto;
    max-height: 38vh;
    overflow-y: auto;
  }

  .scenes-zh,
  .scenes-en,
  .scenes-algo {
    white-space: normal;
    -webkit-line-clamp: unset;
    display: block;
  }

  .close-top {
    flex-direction: column;
  }

  .close-brand h2 {
    letter-spacing: 0.08em;
  }

  .hero-logo {
    width: clamp(72px, 22vw, 110px);
  }

  .hero-desc {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    white-space: normal;
    max-width: 16em;
  }

  .slide-gallery {
    cursor: auto;
  }

  .cursor-blob {
    display: none;
  }
}

@media (hover: none) {
  .slide-gallery {
    cursor: auto;
  }

  .cursor-blob {
    display: none;
  }

  .gallery-enter {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* —— 图片 / PPT 全屏预览 —— */
.zoom-host {
  position: relative;
}

.zoom-expand {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}

.zoom-expand svg {
  display: block;
  opacity: 0.9;
}

.zoom-host:hover .zoom-expand,
.zoom-host:focus-within .zoom-expand {
  opacity: 0.72;
  transform: translateY(0) scale(1);
}

.zoom-expand:hover,
.zoom-expand:focus-visible {
  opacity: 1;
  color: #12263a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px) scale(1.06);
  outline: none;
}

.zoom-expand:active {
  transform: translateY(0) scale(0.98);
}

.slide-hero .zoom-expand {
  bottom: 1rem;
  right: 1rem;
}

.gallery-media .zoom-expand {
  right: 0.65rem;
  bottom: 0.65rem;
}

body.lightbox-on {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(6, 12, 22, 0.82);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

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

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: grid;
}

.lightbox-stage {
  margin: 0;
  max-width: min(96vw, 1600px);
  max-height: min(90dvh, 960px);
  width: auto;
  height: auto;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1600px);
  max-height: min(90dvh, 960px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  --cx: 0px;
  --cy: 0px;
  position: fixed;
  top: clamp(1rem, 3vh, 1.8rem);
  right: clamp(1rem, 3vw, 1.8rem);
  z-index: 210;
  width: 3.4rem;
  height: 3.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #12263a;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  transform: translate(var(--cx), var(--cy)) scale(1);
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}

.lightbox-close-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.lightbox-close-x,
.lightbox-close-x::before,
.lightbox-close-x::after {
  display: block;
}

.lightbox-close-x {
  position: absolute;
  inset: 0;
}

.lightbox-close-x::before,
.lightbox-close-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}

.lightbox-close-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
  color: #0b1c2e;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
  transform: translate(var(--cx), var(--cy)) scale(1.12);
  outline: none;
}

.lightbox-close:hover .lightbox-close-ring,
.lightbox-close:focus-visible .lightbox-close-ring {
  opacity: 1;
  transform: scale(1.08);
}

.lightbox-close:active {
  transform: translate(var(--cx), var(--cy)) scale(0.96);
}

@media (hover: none) {
  .zoom-expand {
    opacity: 0.7;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .deck { scroll-behavior: auto; }
}
