/* 首页 3D 影片：画布固定在后面，滚动只用来推进镜头；文字压在画面上。方角，无卡片。 */
.page-film { background: var(--night); }
.film-track { position: relative; height: 760vh; }

.scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.scene-fallback { position: fixed; inset: 0; z-index: 0; display: none;
  background: url(../assets/film-still.jpg) center / cover no-repeat,
    radial-gradient(60% 50% at 50% 62%, #5a1f12 0%, rgba(13, 10, 9, 0) 70%), var(--night); }
.no-webgl .scene { display: none; }
.no-webgl .scene-fallback { display: block; }
/* 左下角压暗，保证文字可读 */
.scene-shade { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(13, 10, 9, .78) 0%, rgba(13, 10, 9, 0) 46%),
    linear-gradient(to right, rgba(13, 10, 9, .45) 0%, rgba(13, 10, 9, 0) 50%); }

/* 顶栏：只有字，没有按钮框 */
.fbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); }
.fbar__nav { display: flex; gap: 28px; font-size: 14px; }
.fbar__nav a { color: rgba(243, 238, 228, .72); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.fbar__nav a:hover { color: var(--text); border-color: var(--text); }

/* 章节 */
.ch { position: fixed; z-index: 10; left: var(--gut); bottom: 11vh; width: min(660px, calc(100% - var(--gut) * 2)); opacity: 0; pointer-events: none; will-change: opacity, transform; }
.ch.is-on { pointer-events: auto; }
.ch h1, .ch h2 { font-weight: 600; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.16; letter-spacing: .01em; color: var(--text); text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.ch h1 { font-weight: 900; font-size: clamp(46px, 6.4vw, 96px); line-height: 1.08; }
.ch p { margin-top: 20px; max-width: 470px; font-size: 16px; line-height: 1.85; color: rgba(243, 238, 228, .82); text-shadow: 0 1px 18px rgba(0, 0, 0, .6); }
.ch b { font-weight: 500; color: var(--text); }
.ch b.up { color: #ff6a52 !important; }
.ch b.down { color: #36d6a0 !important; }
.ch--3 { left: auto; right: var(--gut); text-align: right; }
.ch--3 p { margin-left: auto; }
.ch--5 { left: 0; right: 0; margin: 0 auto; bottom: 9vh; text-align: center; width: min(640px, calc(100% - var(--gut) * 2)); }
.ch--5 p { margin-left: auto; margin-right: auto; }
.ch__cta { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.ch__legal { margin-top: 26px !important; font-size: 12px !important; color: rgba(243, 238, 228, .45) !important; }

/* 方形主按钮 */
.btn-sq { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 34px; background: var(--red); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .04em; border: 0; transition: background-color .15s, transform .15s; }
.btn-sq:hover { background: var(--red-2); }
.btn-sq:active { transform: translateY(1px); }

/* 起始的滚动提示 */
.scroll-cue { position: fixed; z-index: 10; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; color: rgba(243, 238, 228, .6); transition: opacity .4s; }
.scroll-cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.is-scrolled .scroll-cue { opacity: 0; }

/* 加载幕：黑幕上挖出星形，星形放大把页面露出来 */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--night); display: grid; place-items: center;
  -webkit-mask-image: url(../assets/star.svg), linear-gradient(#000, #000);
  -webkit-mask-size: 0 0, 100% 100%; -webkit-mask-position: center, center; -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: xor;
  mask-image: url(../assets/star.svg), linear-gradient(#000, #000);
  mask-size: 0 0, 100% 100%; mask-position: center, center; mask-repeat: no-repeat, no-repeat;
  mask-composite: exclude; }
.loader__star { width: 120px; height: 120px; filter: drop-shadow(0 0 16px rgba(255, 214, 160, .8)) drop-shadow(0 0 50px rgba(232, 67, 46, .6)); animation: loader-breathe 1.8s ease-in-out infinite; }
@keyframes loader-breathe { 50% { transform: scale(.9) rotate(4deg); opacity: .75; } }
.loader.is-out { animation: star-open 1.6s cubic-bezier(.75, 0, .2, 1) forwards; pointer-events: none; }
.loader.is-out .loader__star { animation: loader-star-out .5s ease-in forwards; }
@keyframes star-open {
  0% { -webkit-mask-size: 0 0, 100% 100%; mask-size: 0 0, 100% 100%; }
  100% { -webkit-mask-size: 1600vmax 1600vmax, 100% 100%; mask-size: 1600vmax 1600vmax, 100% 100%; }
}
@keyframes loader-star-out { to { transform: scale(1.6); opacity: 0; } }

@media (max-width: 760px) {
  .fbar__nav { gap: 18px; font-size: 13px; }
  .fbar__nav a:nth-child(3) { display: none; }
  .ch { bottom: 8vh; }
  .ch h2 { font-size: clamp(26px, 7.3vw, 38px); }
  .ch h1 { font-size: clamp(44px, 13vw, 60px); }
  .ch p { font-size: 15px; margin-top: 14px; }
  .ch--3 { left: var(--gut); right: auto; text-align: left; }
  .ch--3 p { margin-left: 0; }
  .scene-shade { background: linear-gradient(to top, rgba(13, 10, 9, .86) 0%, rgba(13, 10, 9, 0) 58%); }
}
@media (prefers-reduced-motion: reduce) {
  .loader.is-out { animation: loader-fade .4s ease forwards; }
  @keyframes loader-fade { to { opacity: 0; } }
  .scroll-cue i { animation: none; }
}
