/* ==========================================================================
   开屏幻灯片（2026-11-02）—— 移动端替代视频开屏
   背景：移动端视频开屏存在三重损耗——
     ① 服务器给 mp4 的 Cache-Control 只有 max-age=300，超 5 分钟再进首页要重下 1.4MB；
     ② 微信内 play() 要等 WeixinJSBridge + 手势，被拒后最多重试 6 次（累计 5~8 秒），
        期间锁死滚动、只有一张静态封面；
     ③ 每次进首页都播 15 秒。
   改为 4 屏静态图（合计 192KB）后，首帧零等待、不依赖解码与播放权限。

   设计原则（与站点调性一致：宏伟感、克制、不杂糅）：
   - 只用一种转场语言：整块「能量面板」带透视从右推入，左缘一道青绿光刃
   - 旧屏在下方后退变暗垫底，全程不交叉淡化，避免中途发灰、露黑底
   - Ken Burns 缓慢推近 + HUD 四角括号 + 扫描带，科技感靠细节而非堆特效
   - 配色锁定站点既有品牌色：#050A12 底， #00E5C0 / #8CFFE6 / #3DA0FF 强调

   ⚠ 关键工程约束：**可见性绝不依赖 CSS animation**
   转场用 transition 而非 @keyframes。原因：animation 有一个「起点帧」，
   一旦动画时钟未推进（低端机省电模式、后台标签页、某些 WebView），
   就会永久冻结在起点帧；若起点是 clip-path 零面积或 opacity 0，画面即全黑。
   transition 在时钟跳变时会直接落到终值，不会停在中间态。
   animation 仅用于 Ken Burns 与光刃这类「起点也安全」的纯装饰。
   ========================================================================== */

/* 默认隐藏：桌面端仍走原视频，只有 JS 判定为移动端才挂 is-mobile-splash */
.splash-stack { display: none; }
.is-mobile-splash .splash-stack { display: block; }
.is-mobile-splash .splash-video { display: none; }

/* ---------- 幻灯片容器 ---------- */
.splash-stack {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #0A1626 0%, #050A12 62%, #03070D 100%);
  /* ⚠ 不放 perspective / preserve-3d：这会把所有子层（4 张整屏 slide、50 块
     方块、文案）全部拉进 3D 渲染上下文排序，手机上合成开销翻倍。
     v2「面板推入」时代的遗留，现在只有方块层自己需要透视，就地声明。 */
}

/* ==========================================================================
   切屏主语言：「立方棋盘」（2026-11-03 第五版）
   --------------------------------------------------------------------------
   前四版走过的弯路，一句话总结：都在「怎么遮」，从没让画面自己成为动效。
     v3 方格幕布 = 一块深色网格被拖开，画面全程静止；
     v4 光爆圆扩散 = 有光有动，但圆弧只有一个方向，看三次就腻，且偏「震撼」不「活泼」。
   这一版换成「无数小立方块拼合 / 拆走」：
     · 屏幕上有一层 4×N 方块，每块显示「当前这张照片」对应位置的切片
       （块内 figure 与整屏 bg 用同一张图、同一 cover 规则、同一容器尺寸，
        拼起来与原图逐像素一致，接缝没有任何错位）。
     · 切换 = 旧画面被这层方块一块块揭走：每块以自身横边为轴向后翻倒，
       棋盘式波次（对角 + 奇偶错峰），翻起的缝里先透出新画面。
     · 开场 = 反向：方块从翻倒态一块块落平，画面像被拼装出来。
   为什么这一版会「活泼」：
     ① 36 个独立运动体，节奏错落，任何两个瞬间的画面都不一样；
     ② 每块的青绿边光在翻动时会扫过，像一片方块阵列被逐格点亮；
     ③ 方块同时承担「画面」与「几何」，没有任何纯色遮罩空档 —— 全程都有照片。
   ⚠ 不黑屏的三重保证：
     ① 方块层默认 display:none，只有切换时 live；
     ② 合上动作瞬时（no-anim）且显示的就是旧画面，与屏幕上原样严丝合缝；
     ③ 万一方块层未建成或被打断，旧屏仍走 is-leaving 淡出兜底。
   ========================================================================== */

/* ---------- 幻灯片：只做「在 / 不在」，运动全部交给方块层 ---------- */
.splash-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: none;           /* 切换瞬间到实，被方块层盖着，不需要淡入 */
  will-change: opacity;
}
.splash-slide.is-on { opacity: 1; }
/* 兜底：方块层没跑起来时，旧屏自己淡出，不留残影 */
.splash-slide.is-leaving {
  opacity: 0;
  transition: opacity .5s ease;
}
/* 最后一屏：平滑溶解（不是被方块拆走）。
   ⚠ 不要用 filter: blur 做溶解：全屏 blur 每一帧都要重新光栅化整屏，
   手机 GPU 上就是持续的掉帧源（实测卡顿）。溶解感改由
   scale 1.05 后退 + 透明度散开 + finale 的径向渐变底一起完成，
   观感接近，但全程只动合成器属性。 */
.splash-slide.is-final {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.10s cubic-bezier(.32, 0, .38, 1),
              transform 1.45s cubic-bezier(.32, 0, .38, 1);
}

/* ==========================================================================
   立方方块层（2026-11-04 丝滑化重构）
   --------------------------------------------------------------------------
   ⚠ 上一版掉帧的根源（必须记住，别改回去）：
     每块里放一个「整屏尺寸」的子元素再负偏移 —— 50 块 = 50 张 390×844
     的 GPU 纹理（约 65MB 显存），方块一动合成器全在换页，肉眼可见的卡。
   这版的画法：照片直接画在方块自己的 background 上 ——
     background-size 定死为「整屏 cover 后的像素尺寸」（--bsw/--bsh，JS 算），
     background-position 用 calc(整屏偏移 + 本块负偏移) 拼出属于自己那格。
     每块的渲染结果仍与 .splash-slide__bg 逐像素一致，但纹理只有 78×74，
     50 块合计不到 1MB，合成器毫无压力。
   代价：必须知道图片真实宽高才能算 cover —— JS 预加载 4 张小图拿
   naturalWidth/Height；尺寸没就绪前宁可走普通淡入兜底，绝不猜。
   ========================================================================== */
.splash-tiles {
  position: absolute; inset: 0;
  z-index: 35;                /* 压住 slide(12~17) 与其文案，低于 HUD(40)/进度(50) */
  display: none;
  pointer-events: none;
  perspective: 900px;
  perspective-origin: 50% 44%;
  /* 不加 preserve-3d：方块之间不需要 3D 交叉排序，各自的 rotateX 用
     容器透视就够；加了它 50 个子层全进 3D 排序，纯烧性能。 */
  /* 必须完全透明：块翻走后要露出下面的新画面，这正是「揭走」的意义 */
  background: transparent;
}
.splash-tiles.is-live { display: block; }

.splash-tile {
  position: absolute;
  overflow: hidden;
  display: block;
  /* 方块自己的「立方体表面」：照片退掉后露出这个深色面 → 深色小方板
     缩小、后仰、被吸走。下面是新画面，方板轮廓被亮画面衬出来。 */
  background: #070D16;
  transform-origin: 50% 100%;
  transform: rotateX(0deg) translate3d(0, 0, 0) scale(1);
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  /* 三段严格错开的时序：
       0 → +0.26s  方板完整、实心、正在缩小      ← 形状被看清的窗口
       +0.26 → +0.38s  快速淡掉                  ← 只留最后一瞬 */
  transition: transform .38s cubic-bezier(.32, .06, .24, 1),
              opacity .12s linear;
  transition-delay: var(--d, 0s), calc(var(--d, 0s) + .26s);
}
/* 方块上的照片切片：--bsw/--bsh 是整屏 cover 后的像素尺寸（同一张图对
   所有块相同，挂在容器上），--tx/--ty 是本块的负偏移（建块时定死）。
   background 不溢出元素边界，所以每块的纹理就是块自身大小。 */
.splash-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: var(--img, none);
  background-repeat: no-repeat;
  background-size: var(--bsw, auto) var(--bsh, auto);
  background-position: calc(var(--ox, 0px) + var(--tx, 0px))
                       calc(var(--oy, 0px) + var(--ty, 0px));
  opacity: 1;
  transition: opacity .13s linear;
  transition-delay: var(--d, 0s);
}
/* 方板表面：顶部青白高光 + 底部青绿反光 + 1px 内描边。
   常态 opacity:0（合上时要与整屏背景逐像素一致），只有 .is-cubed 时亮。 */
.splash-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(200, 255, 248, .10) 0%, rgba(200, 255, 248, 0) 34%),
    linear-gradient(0deg, rgba(0, 229, 192, .18) 0%, rgba(0, 229, 192, 0) 28%);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 192, .30);
  opacity: 0;
  transition: opacity .14s linear;
  transition-delay: var(--d, 0s);
}
.splash-tiles.is-cubed .splash-tile::after { opacity: 1; }

/* 收走：照片退净 → 变深色方板 → 缩小、后仰、往画面深处退一步 → 散掉。
   不转满 90°（转过 90° 透视拉成横跨半屏长条）；34° 保留方形轮廓。 */
.splash-tiles.is-up .splash-tile::before { opacity: 0; }
.splash-tiles.is-up .splash-tile {
  transform: rotateX(-34deg) translate3d(0, -4%, -34px) scale(.66);
  opacity: 0;
}
/* 取消过渡：用于「瞬时把方块层合上」。此刻它显示的就是屏幕上原本的画面，
   必须严丝合缝、绝不能看到它自己在动。 */
.splash-tiles.no-anim .splash-tile,
.splash-tiles.no-anim .splash-tile::before,
.splash-tiles.no-anim .splash-tile::after { transition: none; }

/* 开场专用（铺开）：波次压到七成、块动得更快，全程不淡出 ——
   铺开是「小方块长大成画面」，淡出会把「长大」抹掉。 */
.splash-tiles.is-fast .splash-tile {
  transition: transform .34s cubic-bezier(.3, .06, .22, 1);
  transition-delay: calc(var(--d, 0s) * .7);
}
/* 铺开时不要描边：相邻块的边会连成满屏网格 = 坐标纸。 */
.splash-tiles.is-fast .splash-tile::after { opacity: 0; }
.splash-tiles.is-fast .splash-tile::before {
  transition-delay: calc(var(--d, 0s) * .7);
}
.splash-tiles.is-fast.is-up .splash-tile { opacity: 1; }
/* 铺开时小方块里要「已经有照片」：从 66% 边长的小图块长大落平拼成整图。
   没照片的话头 300ms 是 50 个深色块浮在深背景上，整屏近空。 */
.splash-tiles.is-fast.is-up .splash-tile::before { opacity: 1; }

/* 压暗层：与 .splash-slide__bg::after 同一套渐变、同一整屏坐标。
   少了这层，方块层合上的瞬间画面会突然变亮（方块里只有纯图，没有压暗）。 */
.splash-tiles::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 8, 15, .90) 0%, rgba(3, 8, 15, .48) 24%, rgba(3, 8, 15, 0) 50%),
    linear-gradient(to bottom, rgba(3, 8, 15, .58) 0%, rgba(3, 8, 15, 0) 28%);
}

/* 背景层：负责背景图 + Ken Burns 推近 + 上下压暗
   压暗做在 bg 内而非容器 ::after，避免遮住上层文案 */
.splash-slide__bg {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: cover;
  /* 不能有任何 transform：方块切片是按「未被变换的 cover 结果」计算的，
     一旦这里 scale(1.06)，整屏背景比切片大 6%，切换瞬间画面会跳一下。 */
}
.splash-slide__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 8, 15, .90) 0%, rgba(3, 8, 15, .48) 24%, rgba(3, 8, 15, 0) 50%),
    linear-gradient(to bottom, rgba(3, 8, 15, .58) 0%, rgba(3, 8, 15, 0) 28%);
}

/* ---------- 每屏文案：编号 + 主题词 + 说明 ---------- */
.splash-cap {
  position: absolute; left: 30px; right: 30px;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  z-index: 4; pointer-events: none;
}
.splash-cap > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  /* ⚠ 不动画 filter：文字 blur 每帧都要重新光栅化文本，和方块切换撞在
     同一时刻就是肉眼可见的顿挫。入场感用位移 + 透明度就够了。 */
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
.splash-slide.is-on .splash-cap > * { opacity: 1; transform: translate3d(0, 0, 0); }
/* 退场要比入场快得多：否则交叉淡化期间两屏文字会在同一位置叠成一团 */
.splash-slide:not(.is-on) .splash-cap > * { transition-duration: .18s; transition-delay: 0s !important; }
/* 三段错时入场：图先到、编号先落、标题次之、说明最后 */
.splash-slide.is-on .splash-cap__idx   { transition-delay: .34s; }
.splash-slide.is-on .splash-cap__title { transition-delay: .42s; }
.splash-slide.is-on .splash-cap__desc  { transition-delay: .52s; }

.splash-cap__idx {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: .34em;
  color: rgba(140, 255, 230, .78);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.splash-cap__idx::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  margin-right: 9px; vertical-align: 1px;
  background: #00E5C0;
  box-shadow: 0 0 10px rgba(0, 229, 192, .95), 0 0 3px rgba(140, 255, 230, .9);
  animation: sPulse 1.8s ease-in-out infinite;
}
@keyframes sPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1; transform: scale(1.15); }
}
.splash-cap__title {
  margin: 0 0 10px;
  font-size: 40px; font-weight: 800; line-height: 1.08; letter-spacing: .16em;
  color: #F2FAFF;
  /* ⚠ letter-spacing 不能进 transition：它是布局属性，逐帧触发整行重排，
     是切换瞬间掉帧的元凶之一。字距保持静态。 */
  text-shadow: 0 2px 26px rgba(0, 12, 24, .72);
}
.splash-cap__title em {
  font-style: normal;
  background: linear-gradient(96deg, #8CFFE6 0%, #00E5C0 46%, #3DA0FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.splash-cap__desc {
  margin: 0;
  font-size: 14.5px; line-height: 1.7; letter-spacing: .06em;
  color: rgba(198, 222, 245, .9);
  max-width: 84%;
}

/* ---------- HUD 边框 + 扫描带：给全屏照片加一层「仪表盘」质感 ---------- */
.splash-hud { display: none; }
.is-mobile-splash .splash-hud {
  display: block;
  position: absolute; inset: 0; z-index: 40; pointer-events: none;
}
/* 四角括号（细线，不抢画面） */
.splash-hud::before {
  content: ""; position: absolute; inset: 13px;
  opacity: .42;
  background:
    linear-gradient(#8CFFE6, #8CFFE6) left top / 22px 1px no-repeat,
    linear-gradient(#8CFFE6, #8CFFE6) left top / 1px 22px no-repeat,
    linear-gradient(#8CFFE6, #8CFFE6) right top / 22px 1px no-repeat,
    linear-gradient(#8CFFE6, #8CFFE6) right top / 1px 22px no-repeat,
    linear-gradient(#8CFFE6, #8CFFE6) left bottom / 22px 1px no-repeat,
    linear-gradient(#8CFFE6, #8CFFE6) left bottom / 1px 22px no-repeat,
    linear-gradient(#8CFFE6, #8CFFE6) right bottom / 22px 1px no-repeat,
    linear-gradient(#8CFFE6, #8CFFE6) right bottom / 1px 22px no-repeat;
}
/* 缓慢下行的扫描带：只动 transform，低端机也吃得消 */
.splash-hud::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32vh;
  background: linear-gradient(to bottom,
    rgba(0, 229, 192, 0) 0%,
    rgba(0, 229, 192, .045) 56%,
    rgba(140, 255, 230, .10) 90%,
    rgba(140, 255, 230, .16) 97%,
    rgba(0, 229, 192, 0) 100%);
  transform: translate3d(0, -120%, 0);
  animation: sScan 8.5s linear infinite;
}
@keyframes sScan {
  from { transform: translate3d(0, -120%, 0); }
  to   { transform: translate3d(0, 350%, 0); }
}

/* ---------- 顶部四段进度条 ---------- */
.splash-prog { display: none; }
.is-mobile-splash .splash-prog {
  position: absolute; left: 30px; right: 30px;
  top: calc(26px + env(safe-area-inset-top, 0px));
  z-index: 50;
  display: flex; gap: 7px;
  pointer-events: none;
}
.splash-prog i {
  flex: 1; height: 2px; border-radius: 2px;
  background: rgba(190, 216, 245, .24);
  overflow: hidden;
  position: relative;
}
.splash-prog i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #00E5C0, #8CFFE6);
  transform: scaleX(0); transform-origin: left center;
  border-radius: 2px;
}
.splash-prog i.is-run::after { animation: sProg var(--dur, 2.6s) linear forwards; }
.splash-prog i.is-done::after { transform: scaleX(1); }
@keyframes sProg {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- 品牌锁：幻灯片期间常驻左上 ---------- */
.is-mobile-splash .splash-brand { top: calc(46px + env(safe-area-inset-top, 0px)); left: 30px; z-index: 45; }
.is-mobile-splash .splash-brand__logo { font-size: 34px; }
/* 手机开屏改全屏 -----------------------------------------------------------------
   桌面端的 .splash 写着 top: var(--header-h)，是为了让页头一直留在上方。
   但手机上那条深蓝导航（logo + 菜单 + 服务热线）会横压在主视觉顶部，
   海报立刻变成"页面里的一个横幅"，沉浸感全没了。
   这里把 top 归零，开屏 z-index 9999 高于页头，整屏交给画面。
   ⚠ 跳过按钮的 top 已用 env(safe-area-inset-top) 让开刘海，不会顶到状态栏。 */
.is-mobile-splash .splash { top: 0; }

/* 手机端开屏海报的文字区：底部安全区 + 更紧凑的字号 */
.is-mobile-splash .splash-brand__name { font-size: 12.5px; letter-spacing: .08em; }

/* 跳过按钮：贴合安全区，层级最高以便随时可点。
   开屏改为全屏后按钮离状态栏更近，用 max() 保证无刘海的安卓也不贴到屏幕边缘。 */
.is-mobile-splash .splash-skip {
  right: 18px;
  top: max(26px, calc(18px + env(safe-area-inset-top, 0px)));
  padding: 7px 15px; font-size: 13px;
  z-index: 55;
}

/* ---------- 收尾：品牌主标语 ---------- */
.splash-finale {
  position: absolute; inset: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 0 34px; text-align: center;
  background:
    radial-gradient(120% 80% at 50% 46%, rgba(0, 229, 192, .16) 0%, rgba(5, 10, 18, .99) 56%, #050A12 100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.splash-finale.is-on { opacity: 1; visibility: visible; }
.splash-finale__line {
  margin: 0;
  font-size: 27px; font-weight: 800; line-height: 1.42; letter-spacing: .1em;
  color: #F2FAFF;
}
.splash-finale__line em {
  font-style: normal;
  background: linear-gradient(96deg, #8CFFE6 0%, #00E5C0 46%, #3DA0FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.splash-finale__sub {
  margin: 0;
  font-size: 12.5px; letter-spacing: .3em;
  color: rgba(160, 196, 226, .8);
}
.splash-finale__rule {
  width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #00E5C0, rgba(61, 160, 255, .2));
}


/* ==========================================================================
   v7（2026-11-03）：手机端改播预渲染转场视频
   --------------------------------------------------------------------------
   为什么又回到视频：CSS 实时演的方块棋盘在低端机上丝滑度有天花板，
   要「像视频那样」的转场，丝滑度只能由渲染端保证 —— splash-m.mp4
   （9.6s / 720×1280@30fps / 1.8MB / Baseline）用 ffmpeg xfade smoothup
   逐帧渲染，转场绝对丝滑，手机只负责播。
   分层方式：html 同时挂 is-mobile-splash（HUD/进度条/品牌锁/文字样式）
   与 is-mobile-video（打开视频画面、关掉幻灯片图片背景）。
   视频播不了时 JS 摘掉 is-mobile-video，降级回幻灯片，永不黑屏。
   ========================================================================== */
.is-mobile-splash.is-mobile-video .splash-video {
  display: block;
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 1;
  object-fit: cover;
  background: #050A12;
  pointer-events: none;
}
/* stack 只当文字承载层：画面来自视频，容器底必须透明 */
.is-mobile-splash.is-mobile-video .splash-stack { background: transparent; }
/* 幻灯片图片退场（视频才是画面），但保留 bg 的 ::after 压暗渐变托文字 */
.is-mobile-splash.is-mobile-video .splash-slide__bg { background-image: none !important; }
/* slide 只承载文字淡入淡出 */
.is-mobile-splash.is-mobile-video .splash-slide { transition: opacity .4s ease; }

/* 主动跳过的快速退场：把 900ms 缩放淡出 + 550ms 隐藏过渡压到 0.3s 内 */
.splash.is-quick { transition-duration: .26s; }
.splash.is-quick.is-out .splash-stack { animation-duration: .3s; }
.splash.is-quick.is-out::after { animation-duration: .3s; }

/* ---------- 出场：复用 style.css 的 is-out 缩放淡出 + 扫光 ---------- */
.is-mobile-splash .splash.is-out .splash-stack {
  animation: splash-out .9s cubic-bezier(.6, .1, .3, 1) forwards;
}

/* ---------- 无障碍：减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .splash-slide,
  .splash-slide.is-leaving,
  .splash-slide.is-final,
  .splash-cap > *,
  .splash-finale { transition-duration: .01s !important; }
  /* 方块：直接切屏，不做翻转 */
  .splash-tile { transition-duration: .01s !important; transition-delay: 0ms !important; }
  .splash-hud::after,
  .splash-cap__idx::before,
  .splash-prog i.is-run::after { animation: none !important; }
}

/* ---------- 矮屏（如 iPhone SE）压缩文案，避免挤出屏幕 ---------- */
@media (max-height: 680px) {
  .splash-cap__title { font-size: 32px; }
  .splash-cap__desc { font-size: 13.5px; max-width: 100%; }
  .splash-cap { bottom: calc(46px + env(safe-area-inset-bottom, 0px)); }
  .is-mobile-splash .splash-brand__logo { font-size: 28px; }
}

/* ---------- 宽屏 / 横屏兜底 ---------- */
@media (min-width: 640px) {
  .splash-cap__title { font-size: 46px; }
  .splash-cap__desc { max-width: 60%; }
}

/* ==========================================================================
   2026-11-03 修复：桌面端开屏只剩黑底，视频"不播放"
   --------------------------------------------------------------------------
   现象：电脑打开首页，只有 #050A12 黑底 + 左上品牌锁 + 右上「跳过」，
        视频既无画面也没有声音，15 秒后自动进首页。
   实测（CDP 真实桌面 UA）：video.paused=false、currentTime=8.5s、
        readyState=4、无 error —— 视频其实一直在正常解码播放。
   根因：2026-11-02 16:23 改 style.css 时把 .splash-video 降级成
        「2×2 隐藏解码源 + opacity:0」，画面改由 .splash-canvas 呈现；
        但 index.html 始终没有 canvas 节点、main.js 里也没有任何绘制代码。
        等于把呈现层拆了、替补却没装 —— 解码好的画面没有任何元素承载。
        手机上因为 2026-11-02 已整体改走幻灯片（.is-mobile-splash），
        所以只在电脑上暴露。
   处理：canvas 方案本来是为了躲开夸克 / UC / 厂商内置浏览器「把整屏 video
        接管成原生播放器」（16:9 居中 + 上下黑边 + 播完停在最后一帧）。
        手机端现在走幻灯片、video 直接 display:none，已经不需要它。
        这里把「非幻灯片路径」的 video 恢复整屏可见：
          · 桌面端（Chrome / Edge / Safari）
          · UA 判定失败的平板（iPadOS 13+ 默认伪装成 Macintosh）
        两条路都靠下面的规则兜住，不会再出现黑屏。
   ⚠ 将来若真要启用 canvas 呈现方案，必须先补齐 <canvas class="splash-canvas">
      与逐帧 drawImage 的 JS，再删掉本节全部规则，否则会重演本次黑屏。
   ========================================================================== */
html:not(.is-mobile-splash) .splash-video {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 1;
  object-fit: cover;
  background: #050A12;
  pointer-events: none;
}
/* 未绘制内容的空 canvas 一律不显示（当前无节点，属防复发） */
html:not(.is-mobile-splash) .splash-canvas { display: none; }

/* 出场特效同步给桌面 video：原规则只钩了 .splash--no-canvas 分支，
   桌面端因此退场时没有缩放淡出，只剩一层淡出，观感比原来"平" */
html:not(.is-mobile-splash) .splash.is-out .splash-video {
  animation: splash-out .9s cubic-bezier(.6, .1, .3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.is-mobile-splash) .splash.is-out .splash-video { animation: none !important; }
}

/* ==========================================================================
   v8（2026-11-03）：手机端极简照片短片
   只让照片和一次柔和交叉淡化成为主角。上一版同时出现品牌锁、四格进度、
   每屏大标题/说明和中央收尾标语，信息互相争抢，照片反而看不清。
   这里只保留一行固定小字与跳过按钮；视频失败摘掉 is-mobile-video 后，
   下列隐藏规则全部失效，原幻灯片降级路径完整恢复。
   ========================================================================== */
.splash-simple { display: none; }
.is-mobile-splash.is-mobile-video .splash-brand,
.is-mobile-splash.is-mobile-video .splash-prog,
.is-mobile-splash.is-mobile-video .splash-finale,
.is-mobile-splash.is-mobile-video .splash-slide { display: none !important; }
.is-mobile-splash.is-mobile-video .splash-stack {
  background: transparent;
  animation: none !important;
}
.is-mobile-splash.is-mobile-video .splash-simple {
  display: block;
  position: absolute;
  left: 0; right: 0;
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  margin: 0;
  color: rgba(236, 248, 255, .88);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .28em;
  text-align: center;
  text-indent: .28em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
  pointer-events: none;
}
.is-mobile-splash.is-mobile-video .splash-simple span {
  margin: 0 .7em;
  color: rgba(91, 235, 207, .82);
}

/* ==========================================================================
   v9：微信也可靠的纯照片淡化（无视频、无播放权限依赖）
   ========================================================================== */
.is-mobile-splash.is-simple-splash .splash-brand,
.is-mobile-splash.is-simple-splash .splash-prog,
.is-mobile-splash.is-simple-splash .splash-finale,
.is-mobile-splash.is-simple-splash .splash-cap { display: none !important; }
.is-mobile-splash.is-simple-splash .splash-slide {
  opacity: 0;
  transition: opacity .8s ease;
  will-change: opacity;
}
.is-mobile-splash.is-simple-splash .splash-slide.is-on {
  opacity: 1;
  animation: simple-curtain .62s cubic-bezier(.3, .06, .24, 1) both;
}
/* 中央光缝拉开：新照片从一条细缝向两侧展开，同时从 1.06 推近落定。
   旧照片留在下面不动，所以接缝处看到的是「上一张被新画面推开」，
   不是一硬切或两张半透明糊在一起。 */
@keyframes simple-curtain {
  0% {
    opacity: 1;
    clip-path: inset(0 49.6% 0 49.6%);
    -webkit-clip-path: inset(0 49.6% 0 49.6%);
    transform: scale(1.055);
  }
  72% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
    transform: scale(1.006);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}
/* 拉开幕布的那道细光：只亮 0.5s，随即让位给照片 */
.is-mobile-splash.is-simple-splash .splash-slide.is-on::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  z-index: 3;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    rgba(160, 255, 240, 0) 0%,
    rgba(220, 255, 250, .95) 18%,
    rgba(92, 255, 224, 1) 50%,
    rgba(220, 255, 250, .95) 82%,
    rgba(160, 255, 240, 0) 100%);
  box-shadow: 0 0 16px rgba(46, 255, 218, .85),
              0 0 42px rgba(46, 255, 218, .38);
  pointer-events: none;
  animation: simple-seam .5s ease-out both;
}
@keyframes simple-seam {
  0%   { opacity: 0; transform: translateX(-50%) scaleY(.55); }
  18%  { opacity: 1; }
  70%  { opacity: .55; }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .is-mobile-splash.is-simple-splash .splash-slide,
  .is-mobile-splash.is-simple-splash .splash-slide.is-on,
  .is-mobile-splash.is-simple-splash .splash-slide.is-on::before {
    animation: none !important;
    transition: none !important;
  }
  .is-mobile-splash.is-simple-splash .splash-slide.is-on::before { opacity: 0; }
}

/* ==========================================================================
   v11：手机端单张 AI 主视觉海报（停留 2.5s）
   --------------------------------------------------------------------------
   一张图同时承载风电、光伏、储能、电网、AI 算力中心五个业务面。
   大面积视觉在上，品牌文案压在底部的深色留白里，不加边框、不加按钮、
   不做多屏切换；只让图片缓慢推近 2.8s，文案淡入。
   ========================================================================== */
.splash-hero { display: none; }
.is-mobile-splash.is-poster-splash .splash-hero {
  display: block;
  position: absolute; inset: 0;
  z-index: 6;
  overflow: hidden;
  background: #03080F;
  /* 让下面两个 screen 混合层只与海报内部像素混合，不跟页面其它层串味 */
  isolation: isolate;
}
.is-mobile-splash.is-poster-splash .splash-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform-origin: 50% 54%;
  animation: splash-hero-drift 2.9s cubic-bezier(.22, .61, .24, 1) both;
}
@keyframes splash-hero-drift {
  0%   { transform: scale(1.045); }
  100% { transform: scale(1); }
}
.is-mobile-splash.is-poster-splash .splash-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(3, 8, 15, .30) 0%,
      rgba(3, 8, 15, 0) 20%,
      rgba(3, 8, 15, 0) 53%,
      rgba(3, 8, 15, .48) 72%,
      rgba(3, 8, 15, .94) 92%,
      #03080F 100%),
    linear-gradient(to right,
      rgba(3, 8, 15, .18) 0%,
      rgba(3, 8, 15, 0) 16%,
      rgba(3, 8, 15, 0) 84%,
      rgba(3, 8, 15, .18) 100%);
}
/* ---------- 渐变闪光（2026-11-03 v12） ----------
   两层，都只播一次，加起来 2s 内结束，剩下 1.5s 让画面安静停着：
     ① .splash-hero__shine —— 一条斜向青白渐变光带从左上扫到右下；
     ② .splash-hero__flash —— 画面中心一团柔光一闪，整体提一下亮。
   为什么不用 background-position 做扫光：那是纯重绘动画，整屏渐变每帧重绘，
   在中低端安卓会明显掉帧。这里整条光带是独立元素，只改 transform / opacity，
   全部走合成层，微信 X5 与 iOS 都稳。 */
.is-mobile-splash.is-poster-splash .splash-hero__shine {
  position: absolute;
  top: -14%; bottom: -14%;
  left: 0;
  width: 23%;
  z-index: 1;
  display: block;
  pointer-events: none;
  background: linear-gradient(104deg,
      rgba(184, 255, 240, 0) 0%,
      rgba(184, 255, 240, .12) 30%,
      rgba(255, 255, 255, .46) 50%,
      rgba(150, 210, 255, .14) 70%,
      rgba(150, 210, 255, 0) 100%);
  mix-blend-mode: screen;
  transform: translate3d(-170%, 0, 0) skewX(-6deg);
  opacity: 0;
  animation: splash-hero-shine 1.2s cubic-bezier(.34, .05, .22, 1) .38s both;
  will-change: transform, opacity;
}
@keyframes splash-hero-shine {
  0%   { transform: translate3d(-170%, 0, 0) skewX(-6deg); opacity: 0; }
  12%  { opacity: 1; }
  80%  { opacity: .92; }
  100% { transform: translate3d(330%, 0, 0) skewX(-6deg); opacity: 0; }
}
.is-mobile-splash.is-poster-splash .splash-hero__flash {
  position: absolute; inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  background: radial-gradient(62% 46% at 50% 44%,
      rgba(216, 255, 248, .30) 0%,
      rgba(150, 220, 255, .12) 38%,
      rgba(150, 220, 255, 0) 72%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: splash-hero-flash 1.25s cubic-bezier(.3, .05, .3, 1) .5s both;
  will-change: opacity;
}
@keyframes splash-hero-flash {
  0%   { opacity: 0; }
  26%  { opacity: 1; }
  100% { opacity: 0; }
}

.is-mobile-splash.is-poster-splash .splash-hero__copy {
  position: absolute;
  left: 28px; right: 28px;
  bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  color: #F4FBFF;
  animation: splash-hero-copy .72s .12s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes splash-hero-copy {
  0%   { opacity: 0; transform: translate3d(0, 14px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.is-mobile-splash.is-poster-splash .splash-hero__brand {
  display: block;
  margin-bottom: 14px;
  color: rgba(151, 196, 222, .82);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
}
.is-mobile-splash.is-poster-splash .splash-hero__title {
  margin: 0 0 14px;
  color: #F4FBFF;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .1em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .65);
}
.is-mobile-splash.is-poster-splash .splash-hero__title em {
  display: block;
  font-style: normal;
  background: linear-gradient(96deg, #B8FFF0 0%, #5CEBD0 42%, #5BA8FF 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.is-mobile-splash.is-poster-splash .splash-hero__sub {
  margin: 0;
  color: rgba(190, 216, 235, .72);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .06em;
}
/* 单图模式：其余开屏元素全部让位 */
.is-mobile-splash.is-poster-splash .splash-stack,
.is-mobile-splash.is-poster-splash .splash-simple,
.is-mobile-splash.is-poster-splash .splash-brand,
.is-mobile-splash.is-poster-splash .splash-prog,
.is-mobile-splash.is-poster-splash .splash-finale,
.is-mobile-splash.is-poster-splash .splash-video { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .is-mobile-splash.is-poster-splash .splash-hero__img,
  .is-mobile-splash.is-poster-splash .splash-hero__copy,
  .is-mobile-splash.is-poster-splash .splash-hero__shine,
  .is-mobile-splash.is-poster-splash .splash-hero__flash { animation: none !important; }
  /* 关动画后两层保持 opacity:0，闪光整体不出现 */
  .is-mobile-splash.is-poster-splash .splash-hero__shine,
  .is-mobile-splash.is-poster-splash .splash-hero__flash { opacity: 0 !important; }
}
.is-mobile-splash.is-simple-splash .splash-simple {
  display: block;
  position: absolute;
  left: 0; right: 0;
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  margin: 0;
  color: rgba(236, 248, 255, .88);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .28em;
  text-align: center;
  text-indent: .28em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
  pointer-events: none;
}
.is-mobile-splash.is-simple-splash .splash-simple span {
  margin: 0 .7em;
  color: rgba(91, 235, 207, .82);
}
