/* ==========================================================================
   九重云天 3D 叙事（P3：金箍棒加载屏 + 自动播放入场 + 五阶段内容屏）
   作用域一律 .story / .story-finale / .page-story，不改既有 .hp / .site-header 全局语义。
   断点沿用 site.css：≥1200 桌面 / 768–1199 平板 / <768 手机
   ========================================================================== */

.page-story {
  background: #05070f;
}

/* 动画播放期间锁滚动（index.js 加/去 class）：不进滚轮、不进触摸、不进方向键、不进平滑滚动 */
html.is-story-locked,
body.is-story-locked {
  overflow: hidden;
  overscroll-behavior: none;
}
html.is-story-locked {
  /* 锁住期间必须"跳"而不是"平滑滑动"，否则复位会和正在进行的平滑滚动打架 */
  scroll-behavior: auto;
}

/* ── 深色页头（只在本页） ─────────────────────────────────── */
.page-story .site-header {
  background: rgba(5, 7, 15, 0.62);
  border-bottom: 1px solid rgba(232, 194, 122, 0.12);
  backdrop-filter: saturate(140%) blur(12px);
}
.page-story .site-header.is-scrolled {
  border-bottom-color: rgba(232, 194, 122, 0.24);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}
/* 深色页头里的品牌字（只限页头；页脚仍是浅底，不能被这条染色，否则"悟空"会白字白底） */
.page-story .site-header .brand {
  color: #f2f5ff;
}
.page-story .site-header .brand__text-strong {
  color: #ffd98a;
}
.page-story .nav__link {
  color: rgba(226, 233, 255, 0.78);
}
.page-story .nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.page-story .nav__link.is-active {
  background: rgba(232, 194, 122, 0.14);
  color: #ffe6b0;
}
.page-story .header__login {
  color: rgba(226, 233, 255, 0.78);
}
.page-story .nav-toggle span {
  background: #e8eeff;
}
.page-story .nav-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 194, 122, 0.28);
}
body.nav-open .page-story .nav-toggle {
  background: #fff;
  border-color: var(--line);
}
body.nav-open .page-story .nav-toggle span {
  background: var(--ink);
}
/* 抽屉本身仍是浅色（沿用 site.css），在抽屉里把链接颜色还原 */
.page-story body.nav-open .nav__link,
body.nav-open .page-story .nav__link {
  color: var(--ink-soft);
}

/* ── 舞台：正好占满页头以下的视口（P3 不再有 600vh 滚动轨道） ── */
.story {
  --story-gold: #e8c27a;
  --story-gold-2: #ffe6b0;
  --story-ink: #05070f;
  --story-line: rgba(232, 194, 122, 0.22);
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--story-ink);
  color: #eef2ff;
}

.story__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 22% 18%, rgba(61, 91, 255, 0.22), transparent 62%),
    radial-gradient(620px 460px at 82% 30%, rgba(107, 78, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 50% 105%, rgba(232, 194, 122, 0.12), transparent 68%),
    #060a18;
}

.story__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.story__canvas.is-live {
  opacity: 1;
}

/* 文案可读性遮罩：左侧压暗 + 底部渐隐 */
.story__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background:
    linear-gradient(100deg, rgba(4, 6, 14, 0.92) 0%, rgba(4, 6, 14, 0.74) 34%, rgba(4, 6, 14, 0) 62%),
    linear-gradient(to top, rgba(4, 6, 14, 0.96) 0%, rgba(4, 6, 14, 0.45) 26%, rgba(4, 6, 14, 0) 52%);
}

/* ==========================================================================
   开场「金箍棒杵地」转场（P4 · opening.js）
   加载屏满格 → 棒转竖 → 仰角砸向镜头 → 棒身占屏遮挡 → 杵地冲击波 → 拉远 → 云散 → 开播
   转场这 4.8 秒里文案 / 顶栏 / 遮罩全部让位，先让人把这一棒看完。
   ========================================================================== */
.story--opening .story__veil {
  opacity: 0;
}
.story--opening .story__beats,
.story--opening .story__rail,
.story--opening .story__skip,
.story--opening .story__preload,
.story--opening .story__pbar {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   金箍棒加载屏
   ========================================================================== */
.story__boot {
  /* 盖住整个视口（含页头）：首屏第一眼就是一根金箍棒，其它一律让路 */
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 50% 40%, rgba(61, 91, 255, 0.16), transparent 64%),
    radial-gradient(560px 340px at 50% 54%, rgba(232, 194, 122, 0.1), transparent 72%),
    #05070f;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* 兜底：JS 根本没跑起来时（脚本 404 / 语法错），20s 后自己让开，绝不让首屏停在这 */
  animation: boot-failsafe 0.3s 20s forwards;
}
.story__boot[hidden] {
  display: none;
}
.story__boot.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: linear-gradient(rgba(120, 150, 230, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 230, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%);
}

.boot__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(680px, 90vw);
  text-align: center;
}

.boot__brand {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 230, 176, 0.8);
}
.boot__brand span {
  display: inline-block;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(232, 194, 122, 0.35);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(198, 208, 236, 0.5);
}

.boot__bar {
  width: 100%;
  height: 210px;
  margin: 6px 0 -4px;
}
.boot__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.boot__read {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 0;
}
.boot__say {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(226, 233, 255, 0.6);
  animation: boot-say 1.9s ease-in-out infinite;
}
.boot__pct {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.boot__pct b {
  font-size: 22px;
  font-weight: 700;
  color: #ffe6b0;
  letter-spacing: 0.02em;
}
.boot__pct em {
  margin-left: 2px;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 230, 176, 0.55);
}

.boot__hint {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(198, 208, 236, 0.36);
}

.boot__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 246, 216, 0.9), rgba(255, 214, 140, 0.36) 34%, transparent 68%);
}
.story__boot.is-flash .boot__flash {
  animation: boot-flash 0.55s ease-out;
}

@keyframes boot-say {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes boot-flash {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes boot-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ── HUD ──────────────────────────────────────────────────── */
.story__hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.story__topbar {
  position: absolute;
  top: 18px;
  left: max(20px, 5vw);
  right: max(20px, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 3;
}

.story__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 230, 176, 0.92);
}
.story__kicker span {
  padding-left: 10px;
  border-left: 1px solid rgba(232, 194, 122, 0.4);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(226, 233, 255, 0.55);
}

/* 跳过动画（P3 起是按钮：点一下就跳到结尾并解锁滚动） */
.story__skip {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(232, 194, 122, 0.35);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 230, 176, 0.92);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.3s ease, border-color 0.2s ease;
}
.story__skip:hover {
  background: rgba(232, 194, 122, 0.14);
  border-color: rgba(232, 194, 122, 0.6);
  text-decoration: none;
}
.story__skip:focus-visible {
  outline: 2px solid rgba(232, 194, 122, 0.7);
  outline-offset: 2px;
}
.story__skip.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── 六段字幕（每站一段） ─────────────────────────────────── */
.story__beats {
  position: absolute;
  left: max(20px, 5vw);
  bottom: 10vh;
  width: min(640px, 50vw);
  z-index: 2;
  transition: opacity 0.5s ease;
}

.story__beat {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.5s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.5s ease;
  will-change: opacity, transform;
}
.story__beat.is-on {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.story__idx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(226, 233, 255, 0.62);
}
.story__idx b {
  padding: 3px 9px;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--story-gold-2);
  letter-spacing: 0.08em;
}

.story__title {
  margin: 16px 0 0;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff8e6 6%, #ffd98a 52%, #c9942f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 40px rgba(232, 194, 122, 0.16);
}

.story__lead {
  margin: 18px 0 0;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.6;
  color: rgba(240, 244, 255, 0.94);
}

.story__h2 {
  margin: 16px 0 0;
  max-width: 20em;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fdf6e6;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.story__meta,
.story__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(206, 216, 244, 0.62);
}

.story__slogan {
  margin: 16px 0 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
  color: #ffe6b0;
}

/* 对话气泡 */
.story__dialog {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.story__say {
  position: relative;
  margin: 0;
  max-width: 34em;
  padding: 12px 16px 12px 18px;
  border-left: 2px solid var(--story-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(10, 16, 34, 0.62);
  backdrop-filter: blur(6px);
  font-size: 16px;
  line-height: 1.68;
  color: rgba(240, 244, 255, 0.94);
}
.story__say--them {
  border-left-color: #6fa8ff;
  background: rgba(12, 22, 48, 0.62);
}
.story__who {
  display: inline-block;
  margin-right: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--story-gold-2);
}
.story__say--them .story__who {
  color: #9ecbff;
}

.story__tag {
  display: inline-block;
  margin: 18px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(232, 194, 122, 0.42);
  border-radius: 8px;
  background: rgba(232, 194, 122, 0.1);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #ffe6b0;
}

.story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.story__tags li {
  padding: 7px 13px;
  border: 1px solid rgba(160, 190, 255, 0.28);
  border-radius: 999px;
  background: rgba(14, 22, 48, 0.5);
  font-size: 14px;
  color: rgba(226, 236, 255, 0.9);
  white-space: nowrap;
}

/* 大屏数字（第 4 段） */
.story__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  max-width: 30em;
}
.story__stats li {
  padding: 10px 12px;
  border: 1px solid rgba(160, 190, 255, 0.22);
  border-radius: 10px;
  background: rgba(10, 18, 40, 0.6);
}
.story__stats span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(198, 210, 240, 0.6);
}
.story__stats strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #ffe6b0;
}

/* 域名输入台（真表单，与现有 data-site-form 同一条提交通道） */
.story__console {
  pointer-events: auto;
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
  max-width: 40em;
  padding: 8px;
  border: 1px solid rgba(232, 194, 122, 0.3);
  border-radius: 14px;
  background: rgba(8, 14, 30, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.story__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7ff;
  font: inherit;
  font-size: 15px;
}
.story__input::placeholder {
  color: rgba(198, 208, 236, 0.5);
}
.story__input:focus {
  outline: 2px solid rgba(232, 194, 122, 0.6);
  outline-offset: 1px;
}
.story__go {
  flex: none;
  white-space: nowrap;
}
.story__console--final {
  max-width: 46em;
}

/* ── 进度轨 / 顶部进度条 / 预载提示 ───────────────────────── */
.story__rail {
  position: absolute;
  right: max(18px, 2.4vw);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
  transition: opacity 0.5s ease;
}
.story__rail-num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(198, 208, 236, 0.55);
}
.story__rail-num b {
  font-size: 15px;
  color: var(--story-gold-2);
}
.story__dots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.story__dots i {
  width: 2px;
  height: 15px;
  background: rgba(198, 208, 236, 0.22);
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.story__dots i.is-on {
  background: linear-gradient(to bottom, #ffe6b0, #c9942f);
  transform: scaleY(1.18);
}
.story__rail-hint {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(198, 208, 236, 0.36);
  writing-mode: vertical-rl;
}

.story__pbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 4;
  background: rgba(232, 194, 122, 0.1);
  transition: opacity 0.5s ease;
}
.story__pbar i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #8a5c14, #e8c27a 58%, #fff3cf);
}

.story__preload {
  position: absolute;
  right: max(18px, 2.4vw);
  bottom: 20px;
  z-index: 4;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(198, 208, 236, 0.34);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.story__preload.is-on {
  opacity: 1;
}
.story__preload.is-done {
  color: rgba(232, 194, 122, 0.5);
}
.story__preload b {
  font-weight: 600;
  color: rgba(255, 230, 176, 0.8);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   首屏收尾：宝座定格 → 淡出到内容区
   ========================================================================== */
.story__outro {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px max(20px, 5vw);
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(900px 560px at 50% 38%, rgba(26, 36, 72, 0.88), rgba(5, 7, 15, 0.97) 72%),
    linear-gradient(to bottom, rgba(5, 7, 15, 0.94), rgba(5, 7, 15, 0.99));
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.story--outro .story__outro {
  opacity: 1;
  visibility: visible;
}
.story__outro-inner {
  max-width: 720px;
  text-align: center;
}
.so__kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(232, 194, 122, 0.35);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffe6b0;
}
.so__title {
  margin: 22px 0 0;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff8e6 8%, #ffd98a 54%, #c9942f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.so__lead {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.8;
  color: rgba(226, 233, 255, 0.72);
}
.so__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 44px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.so__stats li {
  text-align: center;
}
.so__stats b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffe6b0;
  font-variant-numeric: tabular-nums;
}
.so__stats span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(198, 208, 236, 0.45);
}
.story__outro .btn-row {
  justify-content: center;
  margin-top: 30px;
}
.so__ghost {
  background: transparent;
  border-color: rgba(232, 194, 122, 0.4);
  color: #ffe6b0;
}
.so__ghost:hover {
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.68);
  color: #fff3cf;
}
.so__hint {
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(198, 208, 236, 0.4);
}
.so__hint span {
  display: inline-block;
  margin-left: 8px;
  animation: so-hint 1.8s ease-in-out infinite;
}
@keyframes so-hint {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}

/* 定格后：字幕 / 进度轨 / 顶栏让位，画面淡下去，内容区接手 */
.story--outro .story__beats,
.story--outro .story__rail,
.story--outro .story__preload,
.story--outro .story__pbar,
.story--outro .story__skip {
  opacity: 0;
  pointer-events: none;
}
.story--done .story__canvas.is-live {
  opacity: 0.22;
}
.story--done .story__veil {
  opacity: 0;
  transition: opacity 1.1s ease;
}

/* ── 静态降级（无 WebGL / reduced-motion / 初始化失败） ────── */
.story--static {
  height: auto;
  background: #060a18;
}
.story--static .story {
  height: auto;
}
.story--static .story__stage {
  position: relative;
  height: auto;
  overflow: visible;
  padding: calc(var(--header-h) + 64px) 0 72px;
}
.story--static .story__canvas,
.story--static .story__veil,
.story--static .story__boot,
.story--static .story__outro,
.story--static .story__pbar,
.story--static .story__preload {
  display: none;
}
.story--static .story__hud {
  position: relative;
  inset: auto;
}
.story--static .story__topbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.story--static .story__beats {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: auto;
  height: auto;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.story--static .story__beat {
  position: relative;
  top: auto;
  bottom: auto;
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
  margin: 0 0 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232, 194, 122, 0.12);
}
.story--static .story__rail {
  display: none;
}
.story--static .story__skip {
  display: none;
}

/* ==========================================================================
   动画之后：五阶段产品化介绍
   ========================================================================== */
.sp-sec:first-child {
  padding-top: 96px;
}
.sp-phase {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 64px;
  align-items: center;
}
.sp-phase--flip .sp-phase__copy {
  order: 2;
}
.sp-phase--flip .sp-vis {
  order: 1;
}
.sp-phase__copy {
  max-width: 580px;
}
.sp-phase__num {
  display: block;
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #d9e0f2;
}
.sp-phase__h {
  margin: 14px 0 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.26;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hp-ink-2);
}
.sp-phase__val {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 3px solid #2438c8;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 600;
  color: #2a3a6b;
}
.sp-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.sp-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--hp-body);
}
.sp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(140deg, #2438c8, #6b4eff);
}
.sp-points b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-ink);
}
.sp-phase .hp-link {
  margin-top: 24px;
  display: inline-flex;
  gap: 6px;
}

/* 每阶段的低模示意图（纯 CSS，零图片） */
.sp-vis {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 194, 122, 0.18);
  background:
    radial-gradient(620px 420px at 28% 16%, rgba(48, 72, 160, 0.5), transparent 62%),
    linear-gradient(160deg, #0b1226, #05070f 74%);
  box-shadow: 0 24px 60px rgba(20, 26, 64, 0.18);
}
.sp-vis__grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image: linear-gradient(rgba(140, 170, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 255, 0.075) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sp-vis__cap {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(198, 208, 236, 0.42);
}

/* 01 拆解：图层摊开 */
.sp-vis--layers i {
  position: absolute;
  left: calc(19% + var(--y) * 8%);
  top: calc(15% + var(--y) * 16%);
  width: 58%;
  height: 28%;
  border-radius: 10px;
  border: 1px solid rgba(159, 216, 255, 0.55);
  background: linear-gradient(140deg, rgba(56, 96, 172, 0.62), rgba(16, 28, 58, 0.82));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(200, 226, 255, 0.18);
  animation: sp-float 5.4s ease-in-out infinite;
  animation-delay: calc(var(--y) * 0.35s);
}
/* 02 搭建：格子逐格点亮 */
.sp-vis__blocks {
  position: absolute;
  inset: 17% 15%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}
.sp-vis__blocks i {
  border-radius: 6px;
  border: 1px solid rgba(232, 194, 122, 0.32);
  background: linear-gradient(150deg, rgba(232, 194, 122, 0.46), rgba(36, 56, 200, 0.34));
  animation: sp-pop 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
}
/* 03 统计：六路柱状 */
.sp-vis__bars {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 18%;
  height: 60%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.sp-vis__bars i {
  flex: 1 1 0;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #ffe6b0, #c9942f);
  transform-origin: 50% 100%;
  animation: sp-grow 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
/* 04 融合：多路汇入一个核心 */
.sp-vis__funnel {
  position: absolute;
  left: 12%;
  right: 44%;
  top: 22%;
  bottom: 26%;
  display: grid;
  align-content: space-between;
}
.sp-vis__funnel i {
  height: 2px;
  border-radius: 2px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(159, 216, 255, 0.12), rgba(255, 214, 140, 0.85));
  animation: sp-line 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
}
.sp-vis__core {
  position: absolute;
  right: 15%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin-top: -38px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d6, #e8c27a 46%, rgba(232, 194, 122, 0) 72%);
  box-shadow: 0 0 44px rgba(232, 194, 122, 0.42);
  animation: sp-pulse 2.6s ease-in-out infinite;
}
/* 05 掌控：八块屏 */
.sp-vis__tiles {
  position: absolute;
  inset: 15%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sp-vis__tiles i {
  border-radius: 8px;
  border: 1px solid rgba(232, 194, 122, 0.3);
  background: linear-gradient(160deg, rgba(255, 214, 140, 0.2), rgba(20, 32, 64, 0.6));
  animation: sp-glow 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

@keyframes sp-float {
  0%,
  100% {
    transform: translateY(-4px);
    opacity: 0.72;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}
@keyframes sp-pop {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.95);
  }
  42% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes sp-grow {
  0%,
  100% {
    transform: scaleY(0.82);
    opacity: 0.6;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes sp-line {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleX(0.68);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes sp-pulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes sp-glow {
  0%,
  100% {
    border-color: rgba(232, 194, 122, 0.2);
    box-shadow: inset 0 0 10px rgba(232, 194, 122, 0.06);
  }
  50% {
    border-color: rgba(232, 194, 122, 0.55);
    box-shadow: inset 0 0 26px rgba(232, 194, 122, 0.28);
  }
}

/* ==========================================================================
   片尾板块（沿用 .hp 的变量与 .hp-sec/.hp-card 版式）
   ========================================================================== */
.story-finale {
  background: #fff;
  color: var(--hp-ink);
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sf-card {
  position: relative;
  padding-top: 28px;
}
.sf-card__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #c9d2ea;
}
.sf-card h3 {
  padding-right: 34px;
}

.sf-aud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sf-aud__card p {
  margin-top: 10px;
}
.sf-aud__now {
  font-size: 13px !important;
  color: #8b93a7 !important;
  letter-spacing: 0.02em;
}
.sf-aud__no {
  padding-top: 10px;
  border-top: 1px dashed #e6e9f2;
  font-size: 13px !important;
  color: #b45309 !important;
}

/* 真实案例（只有一个） */
.sf-case {
  padding: 30px 28px;
}
.sf-case__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sf-case__head h3 {
  margin: 0;
  font-size: 20px;
}
.sf-case__meta {
  margin: 10px 0 0 !important;
  font-size: 13px;
  color: #8b93a7;
}
.sf-case__grid {
  gap: 32px;
  margin-top: 22px;
}
.sf-case__grid h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #141a2e;
}
.sf-case__url {
  margin: 16px 0 0;
  font-size: 14px;
}
.sf-case__note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef1f8;
  font-size: 13px;
  color: #8b93a7;
}

.sf-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.sf-plan {
  display: flex;
  flex-direction: column;
}
.sf-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sf-plan__tag {
  margin-top: 8px !important;
  color: #8b93a7 !important;
  font-size: 13px !important;
}
.sf-plan__list {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--hp-body);
  flex: 1 1 auto;
}
.sf-plan__who {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e6e9f2;
  font-size: 13px !important;
  color: #8b93a7 !important;
}
.sf-plan .hp-link {
  margin-top: 12px;
}
.sf-plan--focus {
  border-color: rgba(27, 42, 143, 0.35);
  box-shadow: 0 18px 40px rgba(27, 42, 143, 0.12);
}
.sf-plans__note {
  margin: 20px 0 0;
  font-size: 13px;
  color: #8b93a7;
}

/* 文章栏目入口 */
.sf-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sf-col {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sf-col:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 42, 143, 0.3);
  box-shadow: 0 18px 40px rgba(20, 26, 64, 0.08);
  text-decoration: none;
}
.sf-col p {
  flex: 1 1 auto;
}
.sf-col__go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2438c8;
}
.sf-cols__note {
  margin: 22px 0 0;
  font-size: 13px;
  color: #8b93a7;
}

.sf-thesis {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.sf-thesis__text {
  margin: 18px 0 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.72;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--hp-ink-2);
}
.sf-thesis__meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: #8b93a7;
}

/* ── 平板 768–1199 ────────────────────────────────────────── */
@media (max-width: 1199px) {
  .story__beats {
    width: min(560px, 58vw);
  }
  .sp-phase {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .sp-phase--flip .sp-phase__copy,
  .sp-phase--flip .sp-vis {
    order: 0;
  }
  .sp-vis {
    max-width: 560px;
  }
  .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sf-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sf-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 手机 <768：canvas 占上 52%，文案在下方独立区域，不压 3D ── */
@media (max-width: 767px) {
  .story__stage {
    display: flex;
    flex-direction: column;
  }
  .story__canvas {
    inset: 0 0 auto 0;
    height: 52%;
  }
  .story__veil {
    background:
      linear-gradient(to bottom, rgba(4, 6, 14, 0) 0%, rgba(4, 6, 14, 0) 40%, rgba(4, 6, 14, 0.86) 51%, #05070f 60%);
  }
  .story__topbar {
    top: 16px;
    left: 16px;
    right: 16px;
    justify-content: flex-end;
  }
  .story__kicker {
    display: none;
  }
  .story__beats {
    left: 16px;
    right: 16px;
    top: 54%;
    bottom: auto;
    height: 44%;
    width: auto;
  }
  .story__beat {
    top: 0;
    bottom: auto;
    transform: translateY(20px);
  }
  .story__beat.is-on {
    transform: none;
  }
  .story__title {
    font-size: clamp(34px, 11vw, 54px);
  }
  .story__lead {
    font-size: 16px;
  }
  .story__h2 {
    font-size: 21px;
    line-height: 1.34;
  }
  .story__say {
    font-size: 14px;
    padding: 10px 12px 10px 14px;
  }
  .story__tags li {
    font-size: 12px;
    padding: 6px 10px;
  }
  .story__tags {
    gap: 6px;
    margin-top: 14px;
  }
  .story__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }
  .story__stats li {
    padding: 8px 10px;
  }
  .story__stats strong {
    font-size: 16px;
    margin-top: 2px;
  }
  .story__note,
  .story__meta {
    margin-top: 10px;
    font-size: 12px;
  }
  .story__console {
    flex-direction: column;
  }
  .story__go {
    width: 100%;
  }
  .story__rail {
    display: none;
  }
  .story__preload {
    right: 16px;
    bottom: 12px;
    font-size: 9px;
  }

  /* 加载屏：手机上棒短一点、字再小一点 */
  .boot__bar {
    height: 150px;
  }
  .boot__brand {
    font-size: 11px;
    letter-spacing: 0.26em;
  }

  /* 开场转场：手机上把画布铺满首屏（转场结束收回到 52%，下半屏交给文案） */
  .story__canvas {
    transition: opacity 0.9s ease, height 0.45s ease;
  }
  .story--opening .story__canvas {
    height: 100%;
  }
  .boot__pct b {
    font-size: 19px;
  }
  .boot__hint {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  /* 首屏收尾 */
  .story__outro {
    padding: 24px 20px;
  }
  .so__title {
    font-size: 24px;
  }
  .so__lead {
    font-size: 14px;
  }
  .so__stats {
    gap: 12px 26px;
    margin-top: 20px;
  }
  .so__stats b {
    font-size: 20px;
  }
  .story__outro .btn-row {
    margin-top: 22px;
  }
  .story__outro .btn {
    width: 100%;
  }
  .so__hint {
    margin-top: 16px;
  }

  /* 五阶段 / 片尾 */
  .sp-phase__num {
    font-size: 38px;
  }
  .sp-phase__h {
    font-size: 22px;
  }
  .sp-phase__val {
    font-size: 15px;
  }
  .sp-points li {
    font-size: 13.5px;
  }
  .sp-vis {
    aspect-ratio: 4 / 3;
  }
  .sf-grid,
  .sf-aud,
  .sf-plans,
  .sf-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .sf-case {
    padding: 22px 18px;
  }
  .sf-case__grid {
    gap: 20px;
  }
}

/* 减动效：字幕 / 示意图直接可见（site.css 已有全局 animation/transition 关闭） */
@media (prefers-reduced-motion: reduce) {
  .story__beat {
    filter: none;
  }
  .story__boot {
    display: none;
  }
  .sp-vis__blocks i,
  .sp-vis__bars i,
  .sp-vis__funnel i,
  .sp-vis__tiles i,
  .sp-vis--layers i,
  .sp-vis__core,
  .so__hint span,
  .boot__say {
    animation: none !important;
  }
}
