/* ============================================================
   LensPilot · 视觉增强层 (lp-cine)
   1) Hero three.js 散景光场画布 (.lp-hero-gl)
   2) 滚动电影章节 (.lp-cine)：CSS sticky 舞台 + 滚动进度驱动
      一个固定 WebGL canvas 按章节进度切换程序化场景，文字层交叉淡化
   默认（无 JS / 降级）：章节普通堆叠、canvas 隐藏、进度 UI 隐藏
   仅动 transform/opacity；无大面积 backdrop-filter
   ============================================================ */

/* ── Hero 3D 画布（文案层之后，不拦截交互） ── */
.lp-hero-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── 滚动电影章节：默认静态堆叠（无 JS 也可读） ── */
.lp-cine {
  position: relative;
  background: #05070f;
}

.lp-cine-stage {
  position: relative;
}

.lp-cine-gl {
  display: none; /* 仅 live 模式显示 */
}

.lp-cine-layer {
  position: relative;
  padding: 96px 24px;
  text-align: center;
  border-top: 1px solid rgba(238, 241, 248, .07);
}

.lp-cine-layer:first-child { border-top: none; }

.lp-cine-text {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  color: #eef1f8;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}

.lp-cine-kicker {
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
  font-weight: 600;
}

.lp-cine-title {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 14px;
  color: #f5f7fc;
}

.lp-cine-desc {
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  color: rgba(238, 241, 248, .82);
  margin: 0;
}

/* 进度 UI + 滚动提示：静态模式隐藏 */
.lp-cine-ui,
.lp-cine-hint { display: none; }

/* ── live 模式：pinned 全视口舞台 ── */
.lp-cine--live .lp-cine-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.lp-cine--live .lp-cine-gl {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lp-cine--live .lp-cine-layer {
  position: absolute;
  inset: 0;
  padding: 0;
  border-top: none;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}

.lp-cine--live .lp-cine-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13vh;
  max-width: none;
  padding: 0 24px;
  will-change: opacity, transform;
}

/* 进度条 + 章节计数（仿 dw-cine） */
.lp-cine--live .lp-cine-ui {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  color: rgba(238, 241, 248, .75);
  font-size: .72rem;
  letter-spacing: .18em;
  pointer-events: none;
  z-index: 5;
}

.lp-cine-track {
  flex: 1;
  height: 2px;
  background: rgba(238, 241, 248, .2);
  border-radius: 1px;
  overflow: hidden;
}

.lp-cine-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 1px;
}

.lp-cine--live .lp-cine-hint {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  color: rgba(238, 241, 248, .8);
  font-size: .72rem;
  letter-spacing: .28em;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  transition: opacity .5s;
}

.lp-cine-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  margin: 8px auto 0;
  background: linear-gradient(180deg, rgba(238, 241, 248, .9), transparent);
  animation: lpCineDrop 1.8s ease-in-out infinite;
}

@keyframes lpCineDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 720px) {
  .lp-cine-layer { padding: 64px 20px; }
  .lp-cine--live .lp-cine-text { bottom: 15vh; }
  .lp-cine--live .lp-cine-ui { padding: 14px 18px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-cine-hint::after { animation: none; }
}
