/* ============================================================
   片语 · 官网视觉增强层 (vt-cine.css)
   - #vt-cine 滚动序列章节：默认（无 JS / 降级）为普通堆叠图；
     JS 升级 .vt-cine--live 后变为 pinned 全视口舞台，
     滚动驱动交叉淡入 + 缓慢推近 + 文字浮现 + 进度 UI
   - #heroGl Hero three.js 悬浮 3D 卡片画布（垫在装饰 DOM 之下）
   动画只动 transform / opacity；不使用大面积 backdrop-filter。
   ============================================================ */

/* ── 滚动序列章节 ── */
.vt-cine {
  position: relative;
  background:
    radial-gradient(900px 480px at 82% 8%, rgba(139, 92, 246, 0.14), transparent),
    radial-gradient(820px 460px at 10% 88%, rgba(79, 124, 255, 0.12), transparent),
    linear-gradient(180deg, #05080F 0%, #0A1020 52%, #05080F 100%);
}

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

/* 静态（默认 / 降级）布局：章节纵向堆叠，窗口框 + 文字 */
.vt-cine-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 72px 24px 30px;
}

/* 深色窗口框：截图包装成产品 UI 展示，配色对齐站内 .player */
.vt-cine-window {
  width: min(1060px, 88vw);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
}
.vt-cine-wtop {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.vt-cine-wtitle { margin-left: 8px; font-size: 12px; color: #5C6B85; letter-spacing: 0.5px; }
.vt-cine-window img {
  display: block;
  width: 100%;
  max-height: 56vh;
  object-fit: cover;
}

.vt-cine-text { text-align: center; max-width: 640px; margin: 0 auto; }
.vt-cine-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 3.5px;
  background: linear-gradient(92deg, #60A5FA 5%, #A78BFA 52%, #22D3EE 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vt-cine-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-top: 10px; letter-spacing: 1px; }
.vt-cine-desc { margin-top: 12px; font-size: 16px; color: #93A0B8; }

/* 进度 UI + 滚动提示：默认隐藏，仅 live 模式由 JS 注入并显示 */
.vt-cine-ui, .vt-cine-hint { display: none; }

/* ── live（JS 升级后）：pinned 全视口舞台 ── */
.vt-cine--live .vt-cine-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.vt-cine--live .vt-cine-layer {
  position: absolute;
  inset: 0;
  gap: 0;
  padding: 0 24px 18vh; /* 底部留白给文字，窗口重心略偏上 */
  justify-content: center;
  opacity: 0;
  will-change: opacity;
}
.vt-cine--live .vt-cine-layer:first-child { opacity: 1; }
.vt-cine--live .vt-cine-window { will-change: transform; }
.vt-cine--live .vt-cine-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  padding: 0 24px;
  will-change: opacity, transform;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.vt-cine--live .vt-cine-ui {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  color: rgba(232, 237, 247, 0.7);
  font-size: 12px;
  letter-spacing: 2.5px;
  pointer-events: none;
  z-index: 5;
}
.vt-cine-track {
  flex: 1;
  height: 2px;
  background: rgba(232, 237, 247, 0.18);
  border-radius: 1px;
  overflow: hidden;
}
.vt-cine-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(92deg, #60A5FA, #A78BFA 52%, #22D3EE);
  border-radius: 1px;
}
.vt-cine--live .vt-cine-hint {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  color: rgba(232, 237, 247, 0.75);
  font-size: 11.5px;
  letter-spacing: 4.5px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.5s;
}
.vt-cine-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 32px;
  margin: 8px auto 0;
  background: linear-gradient(180deg, rgba(232, 237, 247, 0.85), transparent);
  animation: vtCineDrop 1.8s ease-in-out infinite;
}
@keyframes vtCineDrop {
  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; }
}

/* ── Hero 3D 画布：垫在 hero-visual 装饰 DOM（player/chips）之下 ── */
.vt-hero-gl {
  position: absolute;
  top: -12%;
  left: -16%;
  width: 132%;
  height: 124%;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 720px) {
  .vt-cine-layer { padding: 56px 18px 22px; }
  .vt-cine--live .vt-cine-layer { padding: 0 18px 20vh; }
  .vt-cine--live .vt-cine-text { bottom: 12vh; }
  .vt-cine--live .vt-cine-ui { padding: 14px 18px; }
}

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