/* ============================================================
   主站专属样式
   -----------------------------------------------------------
   背景策略：纯黑幕布 + 标题自身的两层蓝色辉光
   -----------------------------------------------------------
   之前 Hero 自己带极光 + 黑色遮罩，下方的 cinema 区又刷一层 #000，
   等于两块独立的幕布拼在一起，交界处必然有落差 ——
   即使把遮罩调到像素级连续，鼠标辉光照上去仍能看出分界。

   现在：
     ① .stage 是整页画布，背景只有纯黑 #000，
        不带任何光、任何色偏，所以全页不存在「拼接」问题；
     ② 蓝色辉光属于「奇思妙构」四个字，由 .hero h1::before / ::after
        画在文字背后，跟着标题走 —— 它是标题的发光，不是背景；
     ③ .hero / .cinema / .bento 全部透明，只叠加在画布之上。
   ============================================================ */

/* ---------- 整页幕布：暖暗底 + 自然过渡 ----------
   不用纯黑，也不用一片死板的单色：
     · 中心偏亮（#15100B），四周渐暗到近黑（#050403），
       形成一层很轻的「纵深」，视觉上不是平涂；
     · 落在暖色系，与橙色主题、暖灰卡片同温；
     · 与卡片的亮度差从 23 级收窄到 7 级，
       卡片不再是「贴在黑底上」，而是浮在幕布上。
   渐变以视口中心为原点铺开，滚动时随视口常驻、不抖动。 */
.stage{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden;
  background:
    radial-gradient(120% 90% at 50% 38%,
      #15100B 0%,
      #100C08 32%,
      #0A0705 62%,
      #050403 100%),
    #050403}

/* ---------- 标题自身的两层蓝色辉光 ----------
   光斑不属于幕布，而是「奇思妙构」四个字的发光：
   用 h1 的 ::before / ::after 画在文字背后，跟着标题元素走，
   标题在哪光就在哪，滚动时随标题一起移动。
   两层分工：
     ::before  宽幅柔光，横向铺开，衬托整行字
     ::after   亮核，紧贴字底边，制造字在发光的实感 */
.hero h1{position:relative;isolation:isolate}

.hero h1::before,
.hero h1::after{content:"";position:absolute;left:50%;z-index:-1;
  border-radius:50%;pointer-events:none;mix-blend-mode:screen;
  transform:translateX(-50%)}

/* 第一层：宽幅柔光 */
.hero h1::before{
  bottom:-58%;
  width:min(1120px,88vw);height:min(440px,38vh);
  background:radial-gradient(closest-side,
    rgba(var(--theme-rgb),.60) 0%,
    var(--theme-a34) 42%,
    var(--theme-a12) 70%,
    rgba(0,0,0,0) 100%);
  filter:blur(60px)}

/* 第二层：紧贴字底的亮核 */
.hero h1::after{
  bottom:-34%;
  width:min(720px,62vw);height:min(270px,24vh);
  background:radial-gradient(closest-side,
    rgba(var(--theme-hi-rgb),.55) 0%,
    rgba(var(--theme-rgb),.26) 46%,
    rgba(0,0,0,0) 100%);
  filter:blur(44px)}

/* ---------- 内容区：全部透明，叠在幕布上 ---------- */
.hero{position:relative;z-index:1;padding:96px 0 24px;text-align:center}
.main{position:relative;z-index:1}

.hero .lead{margin:24px auto 0;max-width:560px;
  font-size:clamp(15px,1.7vw,18px);color:var(--ink-2);line-height:1.75}
.cta-row{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:34px}


/* ---------- 滚动叙事 ----------
   窗口 sticky 固定在屏幕中央，滚动驱动四章依次展开：
       线索(01) → 方向(02) → 热度(03) → 归档(04)
    440vh = 100vh（窗口）+ 340vh（行程）。
    行程历经 160vh → 240vh → 340vh，现在加长到 340vh：
    入场约 75vh、每章约 60vh —— 呼入呼出与翻章都不再仓促。
    行程必须足够长，否则「固定 + 逐章推进」的叙事感会消失，
    只剩窗口轻微摆动的装饰效果。

    背景保持透明 —— 整页共用 .stage 幕布，这里不再单独刷底色，
    否则又会变成两块幕布拼接。 */
.cinema{position:relative;height:440vh;margin:0}
.cinema-sticky{position:sticky;top:0;height:100vh;display:flex;
  flex-direction:column;align-items:center;justify-content:center;
  perspective:1500px;perspective-origin:50% 50%}
@media (max-height:660px){.cinema-sticky{perspective:1150px}}

/* 3D 变换载体。
   注意三个坑：
   ① 不用 will-change —— 与 preserve-3d 同元素会强制创建独立合成层，
      3D 子元素容易被错误裁剪，表现为窗口在入场中途突然整块消失
   ② 不用 backface-visibility:hidden —— 窗口 tz 变换后可能被判为背面
   ③ transform 里保留 translateZ(0) 的占位，浏览器会自动为动画中的
      transform 创建合成层，不需要显式声明 will-change */
.cinema-rig{width:100%;max-width:880px;padding:0 32px;
  transform-style:preserve-3d;
  transform:translate3d(0,0,0) rotateX(0) rotateY(0) scale(1);
  opacity:1;
  backface-visibility:visible}

/* 内容层翻页（只用 transform + opacity，避免重排） */
@keyframes cinemaIn{
  0%{opacity:0;transform:translate3d(0,20px,0) rotateX(-12deg)}
  100%{opacity:1;transform:translate3d(0,0,0) rotateX(0)}
}
@keyframes cinemaOut{0%{opacity:1}100%{opacity:0}}
.cinema-layer.enter{animation:cinemaIn .46s cubic-bezier(.16,1,.3,1) both}
.cinema-layer.leave{position:absolute;left:24px;right:24px;top:22px;
  animation:cinemaOut .2s linear both;pointer-events:none}

.win-body{perspective:900px;transform-style:preserve-3d;min-height:250px}
/* 窗口外观样式统一在 shared.css，此处只保留 3D 透视属性 */
.win-body{perspective:900px;transform-style:preserve-3d}
/* ---------- 卡片网格 ---------- */
/* 卡片区
   ------------------------------------------------------------
   margin-top:-100vh 是关键：让 bento 的自然位置正好落在视口顶部，
   于是退场结束时把 translateY 归零，卡片就正好铺满屏幕。
   若不加这个负边距，bento 在最大滚动量时永远位于视口下方 100vh，
   无论怎么调整 cinema 高度都一样（sticky 容器高度恒为 100vh）。

   这样处理后：
     · 退场期间由 JS 把它从 +100vh 推到 0
     · 位移归零 = 卡片占满视口，且自动回到正常文档流
     · 用户继续往下滚，卡片像普通内容一样向上滚走，不会露出空白 */
/* 只补充主站独有的差异，布局属性沿用 shared.css 的 .bento 基础定义。
   不重复写 max-width / padding / display / grid，避免两处冲突时行为不确定。 */
.bento{margin:-100vh auto 0;
  position:relative;z-index:2;
  /* 退场时由 JS 驱动上滑：提前声明让浏览器建合成层 */
  will-change:transform}
/* ---------- 降级 ---------- */
@media (prefers-reduced-motion:reduce){
  .cinema{height:auto}
  .cinema-sticky{position:relative;height:auto;padding:40px 0;perspective:none}
  .cinema-rig{transform:none !important;opacity:1 !important}
  .cinema-layer.enter,.cinema-layer.leave{animation:none}
  /* 降级时不做卡片覆盖动画：必须撤销 -100vh 负边距，
     否则 cinema 已经变成 height:auto，卡片会被拉上去盖住 Hero */
  .bento{margin-top:0;transform:none !important;opacity:1 !important;will-change:auto}
}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .hero{padding:64px 0 20px}
  .cinema{height:auto}
  .cinema-sticky{position:relative;height:auto;padding:40px 0 20px;perspective:none}
  .cinema-rig{padding:0 20px;transform:none !important}
  /* 移动端不做退场覆盖动画：取消负边距，卡片正常跟随文档流 */
  .bento{margin-top:0;transform:none !important;opacity:1 !important;will-change:auto}
}
@media (max-width:560px){
  .hero h1{font-size:clamp(44px,13vw,72px)}
  .cta-row{gap:10px;margin-top:26px}
}

