/* ============================================================
   东吴摄影 · 滚动电影组件 (dw-cine)
   Apple 式 pinned 滚动序列：CSS sticky 舞台 + 滚动进度驱动
   交叉淡化 / 缩放 / 文字浮现。降级：.dw-cine--static 只显示第一章
   ============================================================ */

.dw-cine {
  position: relative;
  background: #0c0b0e;
}

.dw-cine-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.dw-cine-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.dw-cine-layer:first-child { opacity: 1; }

.dw-cine-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dw-cine-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.12);
}

.dw-cine-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 10, 0.42) 0%, rgba(8, 7, 10, 0.08) 38%, rgba(8, 7, 10, 0.55) 100%);
}

.dw-cine-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12vh;
  text-align: center;
  color: #f5f2ec;
  padding: 0 24px;
  will-change: opacity, transform;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.dw-cine-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 10px;
}

.dw-cine-title {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.dw-cine-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  opacity: 0.88;
  margin: 0 0 18px;
}

.dw-cine-link {
  display: inline-block;
  font-size: 0.92rem;
  color: #f5f2ec;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 236, 0.55);
  padding-bottom: 2px;
  transition: border-color 0.3s, opacity 0.3s;
}

.dw-cine-link:hover { border-color: #f5f2ec; }

/* 进度条 + 章节计数 */
.dw-cine-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  color: rgba(245, 242, 236, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  pointer-events: none;
  z-index: 5;
}

.dw-cine-track {
  flex: 1;
  height: 2px;
  background: rgba(245, 242, 236, 0.22);
  border-radius: 1px;
  overflow: hidden;
}

.dw-cine-bar {
  height: 100%;
  width: 0;
  background: #f5f2ec;
  border-radius: 1px;
}

/* 滚动提示 */
.dw-cine-hint {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  color: rgba(245, 242, 236, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.5s;
}

.dw-cine-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  margin: 8px auto 0;
  background: linear-gradient(180deg, rgba(245, 242, 236, 0.9), transparent);
  animation: dwCineDrop 1.8s ease-in-out infinite;
}

@keyframes dwCineDrop {
  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; }
}

/* 静态降级：单屏首章，无滚动驱动 */
.dw-cine--static { height: auto !important; }
.dw-cine--static .dw-cine-stage { position: relative; }
.dw-cine--static .dw-cine-layer { display: none; }
.dw-cine--static .dw-cine-layer:first-child { display: block; opacity: 1; }
.dw-cine--static .dw-cine-bg img { transform: none; }
.dw-cine--static .dw-cine-ui,
.dw-cine--static .dw-cine-hint { display: none; }

/* ── Hero 3D 画布 ── */
.dw-hero { position: relative; }
.dw-hero-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.dw-hero .dw-container { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .dw-cine-text { bottom: 14vh; }
  .dw-cine-ui { padding: 14px 18px; }
}

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