/* 电影感氛围层 — 与 Tailwind / site.css 叠加 */
.immerse-body {
  background:
    radial-gradient(1100px 520px at 90% -10%, rgba(127, 154, 171, 0.35), transparent 55%),
    radial-gradient(800px 420px at 0% 30%, rgba(31, 67, 55, 0.1), transparent 50%),
    linear-gradient(180deg, #c5d2cf 0%, #d5dedb 40%, #cfc8be 100%);
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 18, 16, 0.18) 100%);
}

.nav-on-dark .nav-link { color: rgba(220, 232, 227, 0.72); }
.nav-on-dark .nav-link::before { color: rgba(212, 162, 143, 0.7); }
.nav-on-dark .nav-link:hover,
.nav-on-dark .nav-link.on { color: #eef4f1; }
.nav-on-dark .nav-link:not(:last-child)::after { background: rgba(212, 162, 143, 0.45); }

.ken-burns {
  animation: ken-burns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ken-burns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.immerse-reveal {
  opacity: 0;
  transform: translateY(28px);
}
.immerse-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-cue {
  animation: cue-bounce 2.2s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(8px); opacity: 1; }
}

.parallax-slow { will-change: transform; }

/* fixed header offset for non-cinema pages（导航多项时顶栏更高，避免标题上沿被挡住） */
body:not(.cinema-shell) main {
  padding-top: 6.25rem;
}

@media (max-width: 900px) {
  body:not(.cinema-shell) main {
    padding-top: 7.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ken-burns,
  .scroll-cue { animation: none !important; }
  .immerse-reveal { opacity: 1; transform: none; }
}
