@font-face {
  font-family: "Dawn Alibaba PuHuiTi";
  src: url("assets/dawn-alibaba-puhuiti-heavy.woff2?v=20260804-213445") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

@font-face {
  font-family: "Dawn PingFang SC Light";
  src: url("assets/dawn-pingfang-sc-light.woff2?v=20260804-213445") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Aeonik Local";
  src: url("assets/aeonik-medium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  --story-night: #000000;
  --story-panel: #050209;
  --story-panel-raised: #090311;
  --story-panel-active: #10051D;
  --story-ink: #faf8ff;
  --story-copy: rgba(247, 243, 252, 0.88);
  --story-muted: rgba(207, 198, 224, 0.68);
  --story-violet: #D5C0FF;
  --story-violet-bright: #D5C0FF;
  --story-core: #D5C0FF;
  --story-plasma: #D5C0FF;
  --story-line: rgba(213, 192, 255, 0.2);
  --story-title-font: "Dawn Alibaba PuHuiTi", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  --story-copy-font: "Dawn PingFang SC Light", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --story-number-font: "Aeonik Local", "SFMono-Regular", Menlo, Monaco, monospace;
  --story-wide: min(1120px, calc(100vw - 48px));
  color-scheme: dark;
}

html {
  background: var(--story-night);
}

body.story-page {
  --bg-color: var(--story-night);
  color: var(--story-copy);
  background:
    radial-gradient(58% 24% at 72% 8%, rgba(213, 192, 255, 0.15), transparent 74%),
    radial-gradient(44% 22% at 4% 38%, rgba(213, 192, 255, 0.055), transparent 78%),
    var(--story-night);
}

body.story-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 26%, rgba(213, 192, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 20%, rgba(213, 192, 255, 0.82) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 74%, rgba(213, 192, 255, 0.74) 0 1px, transparent 1.4px),
    radial-gradient(circle at 18% 82%, rgba(234, 228, 255, 0.76) 0 1px, transparent 1.5px);
  background-size: 283px 287px, 397px 401px, 347px 353px, 459px 463px;
  content: "";
}

body.story-page canvas#starfield {
  position: absolute;
  z-index: 0;
  height: min(100svh, 820px);
  opacity: 0.24;
  filter: saturate(0.95) hue-rotate(8deg) brightness(0.86);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.78) 28%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.78) 28%, transparent 78%);
}

body.story-page .site-space-bg {
  display: none;
}

body.story-page :where(a, button):focus-visible {
  outline-color: var(--story-violet-bright);
}

/* 新首屏方案保留为备用样式；当前页面恢复原来的标题 + 甘特图结构。 */
body.story-page .story-hero {
  position: relative;
  display: grid;
  width: var(--story-wide);
  min-height: clamp(620px, calc(100svh - 76px), 820px);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 118px) 0 clamp(62px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.74fr);
  align-items: end;
  gap: clamp(38px, 6vw, 84px);
  border-bottom: 1px solid var(--story-line);
  font-family: var(--story-copy-font);
  isolation: isolate;
}

body.story-page .story-hero::before {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: 3%;
  width: min(54vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 192, 255, 0.18), rgba(213, 192, 255, 0.055) 42%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  content: "";
}

body.story-page .story-hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(8px, 2.4vw, 30px);
}

body.story-page .story-hero-kicker {
  display: inline-flex;
  min-height: 36px;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding: 7px 12px 7px 9px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(213, 192, 255, 0.28);
  border-radius: 999px;
  color: rgba(247, 243, 252, 0.78);
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--story-number-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(234, 228, 255, 0.07), 0 0 22px rgba(213, 192, 255, 0.08);
}

body.story-page .story-hero-kicker img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.92;
}

body.story-page .story-hero-kicker i {
  width: 1px;
  height: 12px;
  background: rgba(213, 192, 255, 0.48);
}

body.story-page .story-hero h1 {
  margin: 0;
  color: var(--story-ink);
  font-family: var(--story-title-font);
  font-size: clamp(54px, 6.3vw, 90px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

body.story-page .story-hero h1 > span {
  display: block;
}

body.story-page .story-hero h1 > span + span {
  margin-top: 0.09em;
}

body.story-page .story-hero h1 em {
  color: var(--story-core);
  font-style: normal;
}

body.story-page .story-hero-lead {
  max-width: 620px;
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  color: rgba(247, 243, 252, 0.78);
  font-size: clamp(15.5px, 1.25vw, 17px);
  letter-spacing: 0.015em;
  line-height: 1.9;
}

body.story-page .story-hero-anchor {
  display: inline-flex;
  margin-top: 24px;
  align-items: center;
  gap: 10px;
  color: rgba(213, 192, 255, 0.9);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 180ms ease;
}

body.story-page .story-hero-anchor span:last-child {
  font-family: var(--story-number-font);
  font-size: 16px;
  transition: transform 180ms ease;
}

body.story-page .story-hero-anchor:hover {
  color: var(--story-ink);
}

body.story-page .story-hero-anchor:hover span:last-child {
  transform: translate(2px, 2px);
}

body.story-page .story-hero-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 0 0 auto;
}

body.story-page .story-hero-portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(213, 192, 255, 0.24);
  border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(155deg, rgba(28, 18, 50, 0.94), rgba(5, 3, 10, 0.98));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.48), inset 0 1px rgba(234, 228, 255, 0.075), 0 0 34px rgba(213, 192, 255, 0.09);
}

body.story-page .story-hero-portrait-panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 49.88%, rgba(213, 192, 255, 0.052) 50%, transparent 50.12%),
    linear-gradient(transparent 49.88%, rgba(213, 192, 255, 0.036) 50%, transparent 50.12%),
    radial-gradient(ellipse 70% 48% at 60% 31%, rgba(213, 192, 255, 0.18), transparent 75%);
  background-size: 88px 88px, 88px 88px, 100% 100%;
}

body.story-page .story-hero-portrait-frame::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 35%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 3, 10, 0.58));
  content: "";
}

body.story-page .story-hero-portrait-frame > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

body.story-page .story-hero-portrait-frame .story-hero-portrait-optics {
  z-index: 2;
  opacity: 0.52;
  mix-blend-mode: screen;
}

/* 首屏之后只更换色彩和材质，不覆盖旧布局属性 */
body.story-page .content-box,
body.story-page .gantt-chart {
  border-color: var(--story-line);
  background: rgba(13, 8, 24, 0.68);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.46), inset 0 1px rgba(234, 228, 255, 0.055), 0 0 42px rgba(213, 192, 255, 0.055);
}

body.story-page .content-box p,
body.story-page .gantt-intro {
  color: var(--story-copy);
}

body.story-page .page-title h1 {
  background: linear-gradient(180deg, #faf8ff 8%, #eae4ff 56%, #D5C0FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(213, 192, 255, 0.24));
}

body.story-page .content-box .highlight {
  color: #A875FF;
  text-shadow: 0 0 12px rgba(168, 117, 255, 0.4);
}

/* 三个页面的首个标题使用同一套主标题字号；时间线标题保留自己的排版。 */
body.story-page .page-title h1 {
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
}

body.story-page .content-box blockquote {
  border-left-color: rgba(213, 192, 255, 0.56);
  color: rgba(247, 243, 252, 0.84);
  background: rgba(213, 192, 255, 0.065);
}

body.story-page .content-box figure figcaption,
body.story-page .content-box figure figcaption.fig-note {
  color: var(--story-muted);
}

body.story-page .section-title,
body.story-page .chapter-heading .line-num,
body.story-page .chapter-heading .line-title {
  background: linear-gradient(180deg, #faf8ff 8%, #eae4ff 56%, #D5C0FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(213, 192, 255, 0.24));
}

body.story-page .chapter-heading .line-sub,
body.story-page .chapter-foot {
  color: rgba(247, 243, 252, 0.88);
}

body.story-page .chapter-heading .line-date {
  color: var(--story-muted);
}

body.story-page .gantt-filter-pill {
  border-color: rgba(213, 192, 255, 0.28);
  color: rgba(247, 243, 252, 0.88);
  background:
    radial-gradient(circle at 0% 0%, rgba(234, 228, 255, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(28, 18, 50, 0.95), rgba(13, 8, 24, 0.97));
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.54);
}

body.story-page .gantt-filter-pill:hover {
  border-color: rgba(213, 192, 255, 0.5);
  box-shadow: 0 0 18px rgba(213, 192, 255, 0.24);
}

body.story-page .gantt-filter-dot {
  box-shadow: 0 0 10px rgba(213, 192, 255, 0.42);
}

body.story-page .gantt-canvas {
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 27 - 1px), rgba(213, 192, 255, 0.08) calc(100% / 27 - 1px), rgba(213, 192, 255, 0.08) calc(100% / 27));
}

body.story-page .gantt-axis-cell:hover {
  background: rgba(213, 192, 255, 0.09);
}

body.story-page .gantt-axis-cell:active {
  background: rgba(213, 192, 255, 0.15);
}

body.story-page .gantt-slice-highlight {
  background: linear-gradient(180deg, rgba(213, 192, 255, 0.15), transparent 48%, rgba(213, 192, 255, 0.08));
}

body.story-page .gantt-axis-cell.is-highlight .gantt-year,
body.story-page .gantt-axis-cell.is-highlight .gantt-age {
  text-shadow: 0 0 10px rgba(213, 192, 255, 0.5);
}

body.story-page .section-nav-line.active .section-nav-bar,
body.story-page .section-nav-line.active:hover .section-nav-bar {
  background: var(--story-violet-bright);
  box-shadow: 0 0 12px rgba(213, 192, 255, 0.58), 0 0 20px rgba(213, 192, 255, 0.24);
}

body.story-page .section-nav-tooltip {
  color: rgba(247, 243, 252, 0.92);
}

body.story-page .sg-article-signature,
body.story-page .sg-article-signature div {
  color: var(--story-muted);
}

body.story-page .sg-article-signature .sg-signature-img {
  filter: grayscale(1) brightness(1.45) sepia(0.08) hue-rotate(220deg);
}

body.story-page .copy-toast {
  border-color: rgba(213, 192, 255, 0.3);
  color: var(--story-ink);
  background: rgba(13, 8, 24, 0.94);
  box-shadow: 0 0 32px rgba(213, 192, 255, 0.22);
}

body.story-page .site-footer {
  border-top-color: var(--story-line);
  color: rgba(207, 198, 224, 0.62);
  background: rgba(5, 3, 10, 0.97);
}

body.story-page .site-footer a {
  color: rgba(213, 192, 255, 0.8);
}

body.story-page .dawn-experiment-navbar {
  color: var(--story-ink);
  background: linear-gradient(180deg, rgba(5, 3, 10, 0.96), rgba(5, 3, 10, 0.48) 72%, transparent);
}

body.story-page .dawn-experiment-navbar.scrolled,
body.story-page .dawn-experiment-navbar.is-menu-open {
  border-bottom-color: var(--story-line);
  background: rgba(13, 8, 24, 0.92);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.5), inset 0 -1px rgba(234, 228, 255, 0.06);
}

body.story-page .dawn-experiment-navbar .nav-logo-img {
  filter: brightness(0) invert(1);
}

body.story-page .dawn-experiment-navbar .nav-link {
  color: rgba(250, 248, 255, 0.9);
}

body.story-page .dawn-experiment-navbar .nav-link::before {
  background: linear-gradient(90deg, transparent, #D5C0FF, #D5C0FF 52%, #D5C0FF, transparent);
  box-shadow: 0 0 14px rgba(213, 192, 255, 0.46);
}

body.story-page .dawn-experiment-navbar .nav-link:hover,
body.story-page .dawn-experiment-navbar .nav-item.is-open > .nav-link,
body.story-page .dawn-experiment-navbar .nav-item.is-hover-open > .nav-link {
  color: var(--story-ink);
  text-shadow: none;
}

body.story-page .dawn-experiment-navbar .nav-dropdown {
  border-color: var(--story-line);
  background: rgba(13, 8, 24, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56), inset 0 1px rgba(234, 228, 255, 0.08);
}

body.story-page .dawn-experiment-navbar .nav-dropdown-item {
  color: rgba(247, 243, 252, 0.78);
}

body.story-page .dawn-experiment-navbar .nav-dropdown-item:hover,
body.story-page .dawn-experiment-navbar .nav-dropdown-item:focus-visible {
  color: var(--story-ink);
  background: rgba(213, 192, 255, 0.12);
}

@media (max-width: 1023px) {
  :root {
    --story-wide: min(calc(100% - 64px), 960px);
  }

  body.story-page .story-hero {
    min-height: 650px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
    gap: 34px;
  }

  body.story-page .story-hero h1 {
    font-size: clamp(50px, 7.2vw, 72px);
  }
}

@media (max-width: 767px) {
  :root {
    --story-wide: calc(100vw - 40px);
  }

  body.story-page .story-hero {
    min-height: auto;
    padding: 62px 0 52px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 44px;
  }

  body.story-page .story-hero-copy {
    padding-bottom: 0;
  }

  body.story-page .story-hero-kicker {
    margin-bottom: 24px;
  }

  body.story-page .story-hero h1 {
    font-size: clamp(43px, 13.3vw, 62px);
    letter-spacing: -0.065em;
    line-height: 1;
  }

  body.story-page .story-hero-lead {
    margin-top: 26px;
    font-size: 16px;
  }

  body.story-page .story-hero-portrait {
    width: min(100%, 390px);
    margin: 0 auto;
  }

  body.story-page .dawn-experiment-navbar .navbar-links {
    border-color: var(--story-line);
    background: rgba(13, 8, 24, 0.98);
  }

  body.story-page .dawn-experiment-navbar .nav-dropdown {
    background: rgba(213, 192, 255, 0.08);
  }
}

@media (max-width: 479px) {
  :root {
    --story-wide: calc(100vw - 36px);
  }

  body.story-page .story-hero {
    padding-top: 50px;
  }

  body.story-page .story-hero-kicker {
    min-height: 34px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  body.story-page .story-hero-kicker img {
    width: 17px;
    height: 17px;
  }

  body.story-page .story-hero h1 {
    font-size: clamp(40px, 13vw, 52px);
  }

  body.story-page .story-hero-portrait {
    width: min(100%, 350px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.story-page .story-hero *,
  body.story-page .story-hero *::before,
  body.story-page .story-hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
