/* Jookei 作品集样式。手工维护；build.mjs 只负责带版本号引用。
   动效都从「放映」里来：光缝、曝光、推拉镜头、光扫、字卡升起、胶片颗粒。
   藏内容的样式一律以 html.js 开头：脚本没跑起来时，页面是完整可读的。 */

/* 配色取自《拯救小绵羊》的夜空与奖杯的金 */
:root {
  --night: #111B40;
  --deep: #0A1130;
  --cream: #FFF6E3;
  --gold: #FFC857;
  --amber: #F08A24;
  --haze: #AEB8DE;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --stripw: 1760px; /* 作品每一行最宽到多少（比正文栏宽，再宽的屏幕上居中） */
  --name: "Baloo 2", "ZCOOL QingKe HuangYou", "PingFang SC", "Microsoft YaHei", sans-serif;
  --disp: "ZCOOL QingKe HuangYou", "Baloo 2", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, .05, .2, 1);
  --ease-cut: cubic-bezier(.55, .06, .4, .85); /* 放映幕换片时揭开画面的那一扫：两头都收着，但收尾不拖——到了边上还要接着滑出去 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

/* 细金色滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 200, 87, .38);
  border: 3px solid var(--night);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 200, 87, .7);
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: rgba(255, 200, 87, .5) transparent;
  }
}

body {
  margin: 0;
  font: 400 17px/1.9 var(--text);
  letter-spacing: .01em;
  overflow-x: hidden;
}

/* 夜空的两团光：右上放映机的暖光、左中一点冷光，缓慢呼吸 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 40rem at 90% -6%, rgba(255, 190, 80, .13), transparent 62%),
    radial-gradient(48rem 36rem at -14% 46%, rgba(96, 124, 255, .10), transparent 62%);
  animation: breathe 9s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    opacity: .72;
  }
  to {
    opacity: 1;
  }
}

/* 星星单独一层：闪烁，加上极慢的漂移 */
.sky {
  position: fixed;
  inset: -8%;
  z-index: -1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cg fill='%23FFF6E3'%3E%3Ccircle cx='52' cy='78' r='1.3' opacity='.55'/%3E%3Ccircle cx='214' cy='40' r='.9' opacity='.4'/%3E%3Ccircle cx='402' cy='126' r='1.1' opacity='.5'/%3E%3Ccircle cx='566' cy='60' r='.8' opacity='.35'/%3E%3Ccircle cx='120' cy='300' r='1' opacity='.4'/%3E%3Ccircle cx='330' cy='262' r='1.4' opacity='.5'/%3E%3Ccircle cx='590' cy='352' r='.9' opacity='.4'/%3E%3Ccircle cx='40' cy='512' r='1.1' opacity='.45'/%3E%3Ccircle cx='268' cy='560' r='.8' opacity='.35'/%3E%3Ccircle cx='486' cy='500' r='1.2' opacity='.5'/%3E%3Ccircle cx='612' cy='596' r='.9' opacity='.35'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 640px 640px repeat;
  animation: twinkle 7s ease-in-out infinite alternate, drift 120s linear infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: .55;
  }
  to {
    opacity: 1;
  }
}

@keyframes drift {
  to {
    transform: translate3d(-24px, 32px, 0);
  }
}

/* 胶片颗粒：一格一格地跳，像放映时活的颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: -60%;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background: var(--grain) 0 0 / 160px 160px repeat;
  animation: grain .9s steps(1) infinite;
}

@keyframes grain {
  0% {
    transform: translate3d(0, 0, 0);
  }
  10% {
    transform: translate3d(-2%, -3%, 0);
  }
  20% {
    transform: translate3d(-5%, 1%, 0);
  }
  30% {
    transform: translate3d(3%, -2%, 0);
  }
  40% {
    transform: translate3d(-1%, 4%, 0);
  }
  50% {
    transform: translate3d(-4%, -4%, 0);
  }
  60% {
    transform: translate3d(2%, 2%, 0);
  }
  70% {
    transform: translate3d(-3%, 3%, 0);
  }
  80% {
    transform: translate3d(4%, -1%, 0);
  }
  90% {
    transform: translate3d(-2%, 2%, 0);
  }
  100% {
    transform: translate3d(1%, -4%, 0);
  }
}

/* 放映机的光跟着指针走。只有精确指针的设备才有（脚本负责点亮） */
.beam {
  position: fixed;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s;
  background: radial-gradient(circle, rgba(255, 214, 140, .1), rgba(255, 214, 140, .04) 38%, transparent 68%);
  mix-blend-mode: screen;
}

html.js .beam.is-on {
  opacity: 1;
}

/* 顶部的放映进度：随滚动走的一线金 */
.progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  z-index: 40;
  pointer-events: none;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  box-shadow: 0 0 12px rgba(255, 200, 87, .55);
}

img {
  display: block;
  max-width: 100%;
}

/* 只给读屏看的文字 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 作者样式里的 display 会盖掉 hidden，这里兜底 */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--night);
  border-radius: 6px;
  text-decoration: none;
  transition: top .2s;
}

.skip:focus {
  top: 8px;
}

/* 一行文字的裁切容器：换字幕时旧字升出去、新字从下面升进来 */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
}

.line > span {
  display: block;
}

/* ---------- 导航 ---------- */
.top {
  position: relative;
  z-index: 5;
}

.top nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  height: 60px;
}

.top a {
  position: relative;
  font-size: 15px;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  opacity: .82;
  transition: opacity .25s, color .25s;
}

.top a:hover,
.top a[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
}

.top a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease-out);
}

.top a:hover::after {
  transform: scaleX(1);
}

/* 当前所在的页面：金色，底线常亮 */
.top a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 页面链接与当前页里的锚点之间的一道竖线 */
.top__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 246, 227, .28);
}

/* ---------- 首屏：名字 + 关注按钮 + 身份与战绩 ---------- */
.hero {
  padding-top: clamp(8px, 2.5vh, 28px);
}

.hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 12px 48px;
  margin-bottom: clamp(18px, 3vh, 34px);
}

.hero__id {
  min-width: 0;
}

.name {
  font: 800 clamp(76px, 13.5vw, 196px)/1.12 var(--name);
  letter-spacing: -.012em;
  margin: 0 0 .02em -.04em; /* 字标左侧的留白收到容器左缘 */
}

/* 片名美术字：奶白到金的渐变，底下压一道琥珀色硬边，外面一圈暖光——呼应他海报上的片名。
   字落定后，一道光从左到右逐字扫过去（只扫这一次） */
.name span {
  display: inline-block;
  padding: .02em .012em .14em;
  margin-bottom: -.14em;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, 0) 58%) no-repeat -60% 0 / 260% 100%,
    linear-gradient(180deg, #FFFBEF 0%, #FFE59C 44%, #FFB43A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(122, 58, 0, .5)) drop-shadow(0 0 28px rgba(255, 180, 60, .36));
  animation:
    rise .7s var(--ease) backwards,
    sheen 1.5s var(--ease-soft) backwards;
  animation-delay: calc(var(--i) * 60ms + 100ms), calc(var(--i) * 110ms + 1.25s);
}

@supports not (-webkit-background-clip: text) {
  .name span {
    background: none;
    color: var(--gold);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(.4em) rotate(5deg);
  }
}

@keyframes sheen {
  from {
    background-position: 120% 0, 0 0;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes unmask {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(14px);
  }
}

/* 关注按钮：紧贴在名字下面，名字落定后从裁切里升出来 */
.follow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  animation: unmask .9s .75s var(--ease-out) backwards;
}

.follow__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 7px 9px;
  border: 1px solid rgba(255, 246, 227, .3);
  border-radius: 999px;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .3s, color .3s, transform .4s var(--ease-out), box-shadow .4s;
}

.follow__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  transition: transform .5s var(--ease-out);
}

.follow__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(255, 200, 87, .7);
}

/* 悬停时图标轻轻一歪，像在招手 */
.follow__btn:hover .follow__icon {
  transform: rotate(-8deg) scale(1.1);
}

.creds > * {
  animation: unmask 1s var(--ease-out) backwards;
}

.creds__role {
  font: 400 clamp(26px, 2.6vw, 38px)/1.2 var(--disp);
  color: var(--gold);
  animation-delay: .55s;
}

/* 身份与奖项连成一行、斜杠隔开，像片头字幕一样依次升起；奖项是金色 */
.creds__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  max-width: 36em;
  margin-top: 10px;
  padding: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 2.05;
  color: var(--cream);
  animation-delay: .7s;
}

/* 里面这一层平时不存在（各项直接参与上面的排版）；窄屏时它变成自己的排版，见「窄屏」一节 */
.creds__flow {
  display: contents;
}

.cred {
  display: inline-block;
  white-space: nowrap;
  animation: fadein .6s var(--ease-out) backwards;
  animation-delay: calc(var(--i) * 60ms + .8s);
}

.cred--award {
  color: var(--gold);
}

.cred__sep {
  margin: 0 .6em;
  color: var(--haze);
  opacity: .6;
}

/* 宽屏时名字在左、身份战绩在右，底边对齐 */
@media (min-width: 1100px) {
  .hero__head {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: space-between;
  }
}

/* ---------- 放映幕 ---------- */
/* 幕布高度跟着视口走，让字幕条和 logo 条留在首屏内：扣掉的是幕布上方的头部高度（名字与战绩上下排时更高） */
.reel {
  position: relative;
  height: clamp(280px, calc(100svh - 620px), 720px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--deep);
  isolation: isolate;
  box-shadow:
    0 40px 110px -44px rgba(255, 170, 60, .34),
    0 28px 60px -30px rgba(3, 6, 24, .95),
    0 0 0 1px rgba(255, 246, 227, .09),
    inset 0 1px 0 rgba(255, 246, 227, .14);
  animation: fadein 1.6s .1s var(--ease-soft) backwards;
}

@media (min-width: 1100px) {
  .reel {
    height: clamp(280px, calc(100svh - 520px), 720px);
  }
}

/* 开场：银幕先是一道横光缝，然后曝光亮起，闪两下稳住 */
.reel__frames {
  position: absolute;
  inset: 0;
  transition: transform 1.1s var(--ease);
  animation: expose 2s .1s var(--ease-soft) backwards;
}

@keyframes expose {
  0% {
    clip-path: inset(50% 0 50% 0);
    filter: brightness(0);
  }
  32% {
    clip-path: inset(0 0 0 0);
    filter: brightness(.25);
  }
  46% {
    filter: brightness(1.5);
  }
  58% {
    filter: brightness(.85);
  }
  70% {
    filter: brightness(1.15);
  }
}

/* 指针在幕布上：画面朝反方向轻轻错开一点，像往银幕里看 */
.reel.is-point .reel__frames {
  transform: scale(1.04) translate3d(calc((.5 - var(--px, .5)) * 16px), calc((.5 - var(--py, .5)) * 10px), 0);
}

.frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}

.frame.is-on {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility 0s;
}

/* 推拉镜头：每一帧都在缓缓推近，方向四帧一轮（build 写在 --kx --ky --kxe --kye 上） */
.frame.is-on img {
  animation: push 8.5s linear both;
}

@keyframes push {
  from {
    transform: scale(1.03) translate3d(var(--kx, 1.4%), var(--ky, 0%), 0);
  }
  to {
    transform: scale(1.15) translate3d(var(--kxe, -.8%), var(--kye, -.9%), 0);
  }
}

/* 换片：新画面被一道光从右往左揭开（往回翻时从左往右），旧画面原地轻轻后退变暗。
   揭开用 1.2s，那道光接着再花 0.5s 滑出画面——不是停在边上淡掉。2026-12-05 用户说光「消失的时候是硬切」：
   那时揭开和光用同一条 1.5s 的 --ease-soft，尾巴太长，1.1s 就走完了 95%，光在左边缘上停了约 0.2s，
   然后在最后 0.16s 里淡掉，看着就是亮着亮着忽然熄了 */
.frame.is-on.is-cut {
  animation: cut 1.2s var(--ease-cut) both;
}

.reel[data-dir="-1"] .frame.is-on.is-cut {
  animation-name: cut-rev;
}

@keyframes cut {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes cut-rev {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.frame.is-off {
  z-index: 0;
  opacity: 1;
  visibility: visible;
  animation: recede 1.7s var(--ease-soft) both;
}

@keyframes recede {
  to {
    transform: scale(1.06);
    filter: brightness(.5);
  }
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 上下各压一道暗边，电影画幅的味道 */
.reel__bars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 30, .36), transparent 16%, transparent 86%, rgba(6, 10, 30, .46));
}

/* 幕布上的胶片颗粒 */
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .07;
  background: var(--grain) 0 0 / 160px 160px repeat;
  mix-blend-mode: overlay;
}

/* 揭开画面的那道光：一条中间亮、两边散开的柔光 */
.reel__streak {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 36%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 240, 205, 0), rgba(255, 240, 205, .45) 44%, rgba(255, 252, 240, .95) 50%, rgba(255, 240, 205, .45) 56%, rgba(255, 240, 205, 0));
  mix-blend-mode: screen;
}

/* 那道光和 clip 的边同步走。前 1.2s（到 70.6%）它的光心就是裁切边；之后裁切已经完成，
   它接着原来的速度越走越快地滑出画面，透明度一直是 1——光是被画框挡在外面的，不是熄掉的。
   位移和淡入是两段动画，缓动只管位移。关键帧里的 animation-timing-function 必须直接写曲线：
   写 var(--ease-cut) 不生效，Chrome 会悄悄退回默认的 ease，光心就跑到裁切边前面去了
   （2026-12-05 实测差了 38%）。下面揭开那一段的曲线要和 --ease-cut 保持一样 */
.reel.is-cutting .reel__streak {
  animation: streak 1.7s both, streak-fade 1.7s both;
}

.reel[data-dir="-1"].is-cutting .reel__streak {
  animation-name: streak-rev, streak-fade;
}

@keyframes streak {
  0% {
    transform: translateX(228%);
    animation-timing-function: cubic-bezier(.55, .06, .4, .85);
  }
  70.6% {
    transform: translateX(-50%);
    animation-timing-function: cubic-bezier(.5, .145, .75, .5); /* 起步的速度正好接上揭开的收尾 */
  }
  100% {
    transform: translateX(-150%);
  }
}

@keyframes streak-rev {
  0% {
    transform: translateX(-50%);
    animation-timing-function: cubic-bezier(.55, .06, .4, .85);
  }
  70.6% {
    transform: translateX(228%);
    animation-timing-function: cubic-bezier(.5, .145, .75, .5);
  }
  100% {
    transform: translateX(328%);
  }
}

/* 进场那一下亮起来（0.12s）；之后一直到滑出去都是亮的 */
@keyframes streak-fade {
  0% {
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* 表面反光：跟着指针的一团柔光 */
.reel__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s;
  background: radial-gradient(42% 60% at calc(var(--px, .5) * 100%) calc(var(--py, .5) * 100%), rgba(255, 244, 214, .16), transparent 72%);
  mix-blend-mode: screen;
}

.reel.is-point .reel__glare {
  opacity: 1;
}

/* 底部一线放映进度：6 秒走满就换下一帧 */
.reel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 4;
  pointer-events: none;
  background: rgba(255, 246, 227, .12);
}

.reel__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.reel.is-running .reel__progress::after {
  animation: run 6s linear both;
}

.reel.is-running.is-paused .reel__progress::after {
  animation-play-state: paused;
}

@keyframes run {
  to {
    transform: scaleX(1);
  }
}

.reelbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  animation: fadein .9s 1.5s var(--ease) backwards;
}

.reelbar__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  min-width: 0;
}

.reelbar__t {
  font: 400 clamp(21px, 2.2vw, 27px)/1.3 var(--disp);
  color: var(--cream);
}

.reelbar__n {
  font-size: 15px;
  color: var(--haze);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.reelbar__ctrl {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

/* 页码是一位数字的滚轮：换到第几帧就滚到第几格。
   必须是两层：外面是只露一格的窗口（不动），里面是整条数字（被脚本挪上去）。
   以前只有一层，脚本挪的是窗口自己——数字跟着窗口一起往上飘，窗口原来的位置空着 */
.reelbar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  min-width: 2.8em;
  font-size: 14px;
  color: var(--haze);
  font-variant-numeric: tabular-nums;
}

.reelbar__win {
  display: block;
  height: 1.5em;
  overflow: hidden;
  line-height: 1.5;
}

.reelbar__wheel {
  display: block;
  transition: transform .7s var(--ease-out);
}

.reelbar__wheel span {
  display: block;
  height: 1.5em;
}

.reelbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 246, 227, .28);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s;
}

.reelbtn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.reelbtn:active {
  transform: scale(.92);
}

/* 暂停 / 继续自动换片：放在银幕右下角，播放器的惯例位置 */
.reelbtn--play {
  display: none; /* 脚本没跑起来时它是个点不动的摆设，不显示 */
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--cream);
  background: rgba(10, 17, 48, .55);
  backdrop-filter: blur(6px);
}

html.js .reelbtn--play {
  display: grid;
}

.reelbtn--play svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.reelbtn--play .i-play,
.reelbtn--play .i-pause {
  transition: opacity .25s;
}

.reelbtn--play.is-on .i-play {
  opacity: 0;
}

.reelbtn--play:not(.is-on) .i-pause {
  opacity: 0;
}

/* ---------- 版块 ---------- */
.sec {
  padding-top: clamp(72px, 11vw, 136px);
}

.sec__t {
  font: 400 clamp(46px, 6.4vw, 78px)/1.08 var(--disp);
  letter-spacing: .01em;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}

/* 版块标题是片头字卡：进入视口时逐字从下方的裁切里升起 */
html.js [data-split] {
  overflow: hidden;
  padding-bottom: .12em;
  margin-bottom: calc(clamp(16px, 2.4vw, 26px) - .12em);
}

html.js [data-split] span {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em) rotate(5deg);
  transition:
    transform 1s var(--ease-out) calc(var(--i) * 80ms),
    opacity .6s ease calc(var(--i) * 80ms);
}

html.js [data-split].is-in span {
  opacity: 1;
  transform: none;
}

/* 通用的「浮入」：小标题、获奖行、关于正文 */
html.js [data-reveal="fade"] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .9s ease var(--d, 0ms),
    transform 1s var(--ease-out) var(--d, 0ms);
}

html.js [data-reveal="fade"].is-in {
  opacity: 1;
  transform: none;
}

.group + .group {
  margin-top: clamp(44px, 6vw, 76px);
}

.group__h {
  font: 400 16px/1.6 var(--text);
  color: var(--haze);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 36px 10px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.grid + .grid,
.grid + .group__h {
  margin-top: 36px;
}

/* ---------- 作品卡片 ---------- */
.work {
  min-width: 0;
}

.work__hit {
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  cursor: zoom-in;
  transition: transform .6s var(--ease-out);
}

.work__hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 14px;
}

/* 画面自带的环境光：同一张图的模糊放大版垫在底下，像相纸透出来的光。
   只靠模糊不行——模糊到固定距离就没了，看上去是画框外面一圈带直边的浅色方块。
   所以垫的那张比画框大一圈，外面罩一层椭圆遮罩，让亮度从画框边沿一开始就最亮、往外越走越缓地散进夜色。
   （不能是「贴着画框一段一样亮、再突然变暗」：平—陡—平的轮廓，眼睛会读成一条边。）
   上下伸到画框高度的 20% 以外，正好够不到长条滚动框的边——光一被滚动框裁掉又是直边。
   下方比上方短一截：说明文字就挂在画框下面，别让悬停时的光铺到字底下。
   左右最多伸到页边距以内：网格里的卡片不在滚动框里，光伸出去会把页面撑宽 */
.work__glow {
  position: absolute;
  inset: -20% calc(var(--gutter) * -0.9) -16%;
  z-index: 0;
  pointer-events: none;
  background: var(--lqip) center / cover no-repeat;
  filter: blur(30px) saturate(1.5);
  opacity: .5;
  transform: scale(.96);
  transition: opacity .7s, transform 1s var(--ease-out);
  -webkit-mask-image: radial-gradient(closest-side, #000 71.4%, rgba(0, 0, 0, .8) 75%, rgba(0, 0, 0, .56) 80%, rgba(0, 0, 0, .35) 85%, rgba(0, 0, 0, .19) 90%, rgba(0, 0, 0, .06) 95%, transparent);
  mask-image: radial-gradient(closest-side, #000 71.4%, rgba(0, 0, 0, .8) 75%, rgba(0, 0, 0, .56) 80%, rgba(0, 0, 0, .35) 85%, rgba(0, 0, 0, .19) 90%, rgba(0, 0, 0, .06) 95%, transparent);
}

/* 画框：圆角、顶上一线亮边、一层淡淡的投影，把画面从背景里托起来。
   投影不能重——底下垫着画面自己的环境光，投影一重就把画框下方的光压黑，看上去上亮下暗 */
.work__frame {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--lqip) center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 227, .16),
    0 0 0 1px rgba(255, 246, 227, .08),
    0 16px 34px -20px rgba(3, 6, 24, .6);
}

.work--poster .work__frame {
  aspect-ratio: 4 / 3;
}

/* 画框里的一层胶片颗粒：给画面统一的质感 */
.work__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .085;
  background: var(--grain) 0 0 / 160px 160px repeat;
  mix-blend-mode: overlay;
}

.work__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 进入视口：光缝张开（和开场银幕是同一个动作），同一行里依次错开 */
html.js .work__frame {
  opacity: 0;
  clip-path: inset(46% 7% 46% 7% round 18px);
  transform: scale(1.1);
  transition:
    clip-path 1.3s var(--ease-soft) var(--d, 0ms),
    transform 1.3s var(--ease-soft) var(--d, 0ms),
    opacity .6s ease var(--d, 0ms);
}

/* 进了视口就张开。网格里每张卡片自己触发；长条里由整条带着走（见下面的 .strip） */
html.js .work.is-in .work__frame,
html.js .strip.is-in .work__frame {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 12px);
  transform: none;
}

html.js .work__glow {
  opacity: 0;
}

html.js .work.is-in .work__glow,
html.js .strip.is-in .work__glow {
  opacity: .5;
  transition-delay: calc(var(--d, 0ms) + 350ms);
}

html.js .work__cap {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .9s ease calc(var(--d, 0ms) + 380ms),
    transform 1s var(--ease-out) calc(var(--d, 0ms) + 380ms);
}

html.js .work.is-in .work__cap,
html.js .strip.is-in .work__cap {
  opacity: 1;
  transform: none;
}

/* 图片由糊变清：先露出模糊占位，原图解码完再显出来 */
html.js .work__frame img {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(16px) saturate(1.1);
  transition:
    opacity .8s ease,
    transform 1.6s var(--ease-out),
    filter 1s ease;
}

html.js .work__frame img.is-loaded {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 表面反光：指针在哪，高光就在哪 */
.work__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s;
  background: radial-gradient(70% 90% at var(--mx, 50%) var(--my, 50%), rgba(255, 246, 220, .6), transparent 64%);
  mix-blend-mode: soft-light;
}

/* 「放大」的提示：悬停时从右下角浮出来 */
.work__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--night);
  background: rgba(255, 246, 227, .94);
  box-shadow: 0 8px 22px rgba(3, 6, 24, .55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(.9);
  transition:
    opacity .4s,
    transform .5s var(--ease-out);
}

.work__zoom svg {
  width: 14px;
  height: 14px;
}

/* 说明文字底下衬一层很淡的暗色：在夜色背景上看不出来，悬停时环境光铺到字背后，字仍然清楚 */
.work__cap {
  padding-top: 11px;
  text-shadow:
    0 0 3px rgba(5, 9, 30, .7),
    0 0 14px rgba(5, 9, 30, .75);
}

.work__t {
  display: block;
  font: 400 22px/1.35 var(--disp);
  color: var(--cream);
  transition: color .25s;
}

.grid--2 .work__t,
.grid--1 .work__t {
  font-size: clamp(24px, 2.3vw, 30px);
}

.grid--1 .work__n {
  font-size: 16px;
}

.work__n {
  display: block;
  font-size: 15px;
  line-height: 1.65;
  color: var(--haze);
}

/* 卡片上的获奖标注：奖级在前，赛事另起一行 */
.work__a {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--haze);
}

.work__a b {
  font: 400 18px/1.5 var(--disp);
  color: var(--gold);
}

.work__a span {
  display: block;
}

@media (hover: hover) {
  .work__hit:hover {
    transform: translateY(-5px);
  }
  /* 带 html.js 前缀是为了压过上面入场规则的优先级 */
  html.js .work__hit:hover .work__glow,
  .work__hit:hover .work__glow {
    opacity: .95;
    transform: scale(1.04);
    transition-delay: 0s;
  }
  .work__hit:hover .work__frame {
    box-shadow:
      inset 0 1px 0 rgba(255, 246, 227, .2),
      0 0 0 1px rgba(255, 246, 227, .12),
      0 26px 50px -26px rgba(3, 6, 24, .7);
  }
  html.js .work__hit:hover .work__frame img.is-loaded,
  .work__hit:hover .work__frame img {
    transform: scale(1.055);
  }
  .work__hit:hover .work__sheen {
    opacity: 1;
  }
  .work__hit:hover .work__zoom {
    opacity: 1;
    transform: none;
  }
  .work__hit:hover + .work__cap .work__t {
    color: var(--gold);
  }
}

/* ---------- 作品：一行一组，横着走 ----------
   每格画面等高、宽按原图比例走，不裁图；两端溶进夜色里，暗示这一行还在往前。
   一个系列占一行（2026-12-05 用户：不同系列不要放在同一行），单件另占一行，每一行各自滑动。
   不钉住页面、不接管滚轮：竖向滚动永远归页面，横移靠原生滑动（触屏、触控板）、鼠标拖拽和每一行右上角的箭头 */
.works__head .sec__t {
  margin-bottom: 0;
}

/* 每一行右上角的两个箭头，落在小标题那一行的右端。手机上不出（见「窄屏」）；这一行放得下、不用滑时，脚本会把它藏起来 */
.strip__nav {
  position: absolute;
  top: calc(var(--pad) - 6px); /* 箭头 40px 高，底边正好和画面上沿齐平 */
  right: var(--gutter);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.reelbtn:disabled {
  opacity: .28;
  border-color: rgba(255, 246, 227, .16);
  cursor: default;
}

.reelbtn:disabled:hover {
  border-color: rgba(255, 246, 227, .16);
  color: inherit;
}

.stripbox {
  --h: clamp(250px, min(24vw, 36vh), 420px); /* 每格画面的高；宽 = 高 × 原图比例（--ar，构建时写在每张卡片上） */
  --gap: clamp(22px, 2.6vw, 40px);
  --pad: 38px; /* 滚动框上方的留白：环境光、悬停浮起都要占地方 */
  --label: 34px; /* 小标题那一行，在画面上沿之上；单件那一行也留出同样的高度，所有画面才从同一条线上开始 */
  --rgap: var(--gap); /* 这一行画面之间的间距：单件行隔开，系列行贴紧（见 .stripbox--series） */
  max-width: var(--stripw);
  margin-inline: auto;
  /* 电脑上「铺满」的那一版（见下面 stripbox--fit）按这一行自己的宽度算画面的高（100cqw），所以要把它当成尺寸的参照 */
  container-type: inline-size;
  position: relative;
  /* 滚动框会裁掉所有超出它的东西，环境光一被裁就是一条直边。所以上方多留了一截（见 --pad），
     再用负外边距还回去：画面离标题和原来一样 */
  margin-top: -8px;
}

.stripbox + .stripbox {
  margin-top: clamp(22px, 3vw, 44px);
}

/* 系列里的几件贴在一起 */
.stripbox--series {
  --rgap: clamp(8px, .9vw, 12px);
}

.strip {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  padding: var(--pad) 0 4px; /* 左右的页边距放在里面的 .strip__track 上 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  outline: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 200, 87, .7);
}

/* 脚本没跑起来：箭头是点不动的、进度不会走，都不显示；长条本身照样能滑，并留出系统滚动条 */
html:not(.js) .strip {
  cursor: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 246, 227, .28) transparent;
}

html:not(.js) .strip__nav,
html:not(.js) .strip__bar {
  display: none;
}

html:not(.js) .strip::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.strip.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.strip__track {
  display: flex;
  align-items: stretch;
  gap: var(--rgap); /* 单件之间隔开，系列里贴在一起（见 --rgap） */
  width: max-content;
  padding-inline: var(--gutter);
  list-style: none;
  margin: 0;
}

.strip__track > li {
  display: flex;
}

.strip__track--single > li {
  padding-top: var(--label);
}

/* 系列这一格：上面一行小标题，下面几件贴在一起，靠间距说明它们是一组。
   选择器带上 .strip__track > 是为了压过上面那条 display: flex */
.strip__track > .strip__group {
  display: grid;
  grid-template-rows: var(--label) auto;
}

.strip__eps {
  display: flex;
  align-items: stretch;
  gap: var(--rgap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.strip__eps > li {
  display: flex;
}

/* 小标题贴在画面上沿之上，吸在左边：这一行滑到中间，它也留在原处。
   left: var(--gutter) 落在轨道的左页边距上（滚动框自己左右没有内边距：Chrome 按内容框算吸顶位置，实测滚动框带 64px 内边距时
   会停在 128px；内边距为 0，各家内核算出来才一样）。宽度只能是文字自己的（justify-self: start）：撑满整格就没有余地挪动了 */
.strip__label {
  position: sticky;
  left: var(--gutter);
  align-self: end;
  justify-self: start;
  margin: 0 0 10px;
  font: 400 16px/1.5 var(--text);
  color: var(--haze);
  white-space: nowrap;
}

/* 小标题以书名号开头时：《的左半边是空的，挂出去才和画面左沿对齐（构建时按开头加这个类） */
.strip__label--hang {
  text-indent: -.4em;
}

/* 卡片在格子里占满高度、宽按原图比例；画面在上，说明文字垫在下面 */
.strip .work {
  display: flex;
  flex: none;
  flex-direction: column;
  width: calc(var(--h) * var(--ar, 1.78));
}

.strip .work__frame {
  aspect-ratio: auto;
  height: var(--h);
}

.strip .work__frame img {
  -webkit-user-drag: none;
}

/* 长条里的卡片，光横向会被滚动框裁住，不会撑宽页面，所以左右可以伸得更开 */
.strip .work__glow {
  inset-inline: -10%;
}

.strip .work__cap {
  flex: 1;
  padding-top: 31px; /* 画面落在线上，说明像展签一样挂在线下 */
}

/* 长条里的获奖标注并成一行，省出一行的高度：各格的说明文字长短才不会差太多 */
.strip .work__a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
}

.strip .work__a span {
  display: inline;
}

/* 画面落在这条线上：整条线是这一行的底片，金色那段是此刻放到的位置。它盖在滚动框外面，不跟着横移 */
.strip__line {
  position: absolute;
  top: calc(var(--pad) + var(--label) + var(--h) + 14px);
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: rgba(255, 246, 227, .16);
  pointer-events: none;
}

.strip__bar {
  position: absolute;
  top: -0.5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--gold));
}

/* ---------- 电脑上：放得下的行不滚动，整行铺满 ----------
   一行只有三几件，横向浏览没有意义；接着排、露出半张，重心又偏在左边（2026-12-05 用户）。
   有鼠标、宽于 760px、这一行的画面宽高比加起来不超过 6（构建时给的 stripbox--fit）时，画面的高按
   「这一行的宽 − 两个页边距 − 间距」÷ 宽高比之和算：几张画面正好铺满一行，左右都齐着页边距。
   不用滑，箭头和底片线上的金色段就不出。触屏设备（手机、平板）和更长的行照旧横着滑 */
@supports (width: 1cqw) {
  @media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    .stripbox--fit {
      --h: calc((100cqw - 2 * var(--gutter) - (var(--n) - 1) * var(--rgap)) / var(--sum));
    }

    .stripbox--fit .strip {
      overflow: hidden;
      cursor: auto;
      -webkit-mask-image: none;
      mask-image: none;
    }

    .stripbox--fit .strip__bar,
    .stripbox--fit .strip__nav {
      display: none;
    }
  }
}

/* ---------- 触屏设备（手机、平板）：只留横向滑动 ----------
   手机（≤760px）的规则在下面「窄屏」一节。平板宽于 760px，照旧横着滑，但不出箭头；
   画面的高取这一行宽度的 22%：最宽的那一行（三张横图）露出两张半，第三张探出一个角，看得出还能往右滑 */
@media (min-width: 761px) and (hover: none) and (pointer: coarse) {
  .stripbox {
    --h: 22cqw; /* 不认识 cqw 的旧浏览器留着上面那个 clamp */
  }

  .strip__nav {
    display: none;
  }
}

/* ---------- 主页作品区末尾：通往合作伙伴页的入口 ---------- */
.bridge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(44px, 6vw, 76px);
  padding: 22px 4px;
  border-top: 1px solid rgba(255, 246, 227, .14);
  border-bottom: 1px solid rgba(255, 246, 227, .14);
  color: inherit;
  text-decoration: none;
}

/* 紧跟在作品长条后面的入口：上面那条底片线已经起了分隔的作用，不再画自己的上边框 */
.bridge--shelf {
  margin-top: clamp(26px, 3.2vw, 44px);
  padding-top: 0;
  border-top: 0;
}

.bridge__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 18px;
  min-width: 0;
}

.bridge__text .group__h {
  margin-bottom: 0;
}

.bridge__t {
  font: 400 clamp(21px, 2.2vw, 27px)/1.4 var(--disp);
  color: var(--cream);
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: color .3s;
}

/* 句子下面另起一行的名单：小一号的宋体，像片头字幕里的演员表 */
.bridge__names {
  flex-basis: 100%;
  margin-top: 4px;
  font: 400 17px/1.6 var(--text);
  letter-spacing: .04em;
  color: var(--haze);
  word-break: keep-all;
}

.bridge__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.4;
  transition: color .3s;
}

.bridge__cta svg {
  width: 18px;
  height: 12px;
  transition: transform .5s var(--ease-out);
}

/* 悬停：按钮被金色从下往上灌满，箭头往前送一步 */
.bridge__cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}

.bridge:hover .bridge__t {
  color: var(--gold);
}

.bridge:hover .bridge__cta {
  color: var(--night);
}

.bridge:hover .bridge__cta::before {
  transform: none;
}

.bridge:hover .bridge__cta svg {
  transform: translateX(4px);
}

/* ---------- 获奖 ---------- */
/* 总数这一行进入视口时扫过一道金光，只此一次 */
.awards__sum {
  font: 400 clamp(26px, 2.6vw, 34px)/1.3 var(--disp);
  color: var(--gold);
  margin: -4px 0 18px;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  html.js .awards__sum {
    /* 两层：底下一层是常驻的金色渐变，上面一层只是一道会扫过去的高光。高光扫完停在文字外面，底下这层一直都在 */
    background:
      linear-gradient(110deg, rgba(255, 246, 216, 0) 42%, rgba(255, 246, 216, .95) 50%, rgba(255, 246, 216, 0) 58%) no-repeat 120% 0 / 260% 100%,
      linear-gradient(110deg, var(--gold), #FFD98A 50%, var(--gold)) no-repeat 0 0 / 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  html.js .awards__sum[data-reveal].is-in {
    animation: sumsheen 1.9s .45s var(--ease-soft) backwards;
  }
}

@keyframes sumsheen {
  from {
    background-position: 120% 0, 0 0;
  }
  to {
    background-position: -60% 0, 0 0;
  }
}

.awards {
  max-width: 1040px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.award {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 4px 28px;
  align-items: baseline;
  padding: clamp(20px, 3vw, 30px) 0;
}

.award + .award {
  border-top: 1px solid rgba(255, 246, 227, .12);
}

.award__d {
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--haze);
  font-variant-numeric: tabular-nums;
}

.award__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.award__c {
  font-size: 19px;
  line-height: 1.6;
  color: var(--cream);
  text-wrap: pretty; /* 尾行不剩孤词 */
}

.nb {
  white-space: nowrap;
}

.award__s {
  font-size: 15px;
  line-height: 1.6;
  color: var(--haze);
}

.award__w {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
}

.award__r {
  font: 400 clamp(28px, 3vw, 38px)/1.1 var(--disp);
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}

.award__x {
  display: block;
  font-size: .52em;
  line-height: 1.3;
  color: var(--cream);
}

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 112px minmax(0, 44em);
  gap: 30px;
  align-items: start;
}

.about__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 246, 227, .16), 0 16px 40px -16px rgba(3, 6, 24, .9);
}

/* 头像像光圈一样打开 */
html.js .about__avatar {
  clip-path: inset(50% 50% 50% 50% round 50%);
  transition: clip-path 1.2s var(--ease-soft) .1s;
}

html.js .about.is-in .about__avatar {
  clip-path: inset(0 0 0 0 round 50%);
}

.about__intro {
  font-size: 19px;
  line-height: 1.95;
}

.about .follow {
  margin-top: 22px;
}

/* 短句中文只在标点、空格处断行，不把词拆开；万一某一段比容器还宽，才允许从中间断（兜底） */
.about__intro,
.work__n,
.work__a span,
.award__s,
.award__c {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- 合作伙伴页 ---------- */
.phead {
  padding-top: clamp(28px, 6vh, 64px);
}

.phead .sec__t {
  margin-bottom: 10px;
}

.phead__intro {
  max-width: 34em;
  color: var(--haze);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* logo 墙：按 logo 自身的宽度一行行居中排开。有案例的品牌是链接，点了跳到下面它那一段 */
.wall {
  padding-top: clamp(30px, 4.5vw, 54px);
}

.wall__group + .wall__group {
  margin-top: clamp(22px, 3.2vw, 36px);
}

/* 分组名居中，两边各牵一道细线 */
.wall__group .group__h {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.wall__group .group__h::before,
.wall__group .group__h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 246, 227, .14);
}

.wall__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px 56px;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wall__logo,
.brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  color: var(--cream);
  opacity: .84;
  transition: opacity .3s, filter .4s, transform .5s var(--ease-out);
}

/* 格子比 logo 窄时（手机上）按宽度缩，画面不会被压扁 */
.logo__img,
.logo__svg {
  display: block;
  width: auto;
  height: var(--h);
  max-width: 100%;
}

.logo__img {
  object-fit: contain;
}

a.wall__logo:hover,
a.wall__logo:focus-visible {
  opacity: 1;
  transform: translateY(-3px);
  filter: drop-shadow(0 0 14px rgba(255, 200, 87, .5));
}

/* 下面按品牌放案例：品牌标 + 名称在上，案例图在下 */
#cases.sec {
  padding-top: clamp(56px, 8vw, 96px);
}

.brand {
  padding-top: clamp(26px, 4vw, 44px);
  scroll-margin-top: 16px;
}

.brand + .brand {
  margin-top: clamp(36px, 5.5vw, 64px);
  border-top: 1px solid rgba(255, 246, 227, .1);
}

.brand__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.brand__logo {
  opacity: 1;
}

.brand__n {
  font: 400 clamp(26px, 2.8vw, 36px)/1.2 var(--disp);
  color: var(--cream);
  transition: color .4s;
}

.brand__c {
  margin-left: auto;
  font-size: 15px;
  color: var(--haze);
}

/* 从上面的 logo 墙点过来时，这一家的标亮一下，告诉人「就是这家」 */
.brand:target .brand__logo {
  color: var(--gold);
  filter: drop-shadow(0 0 16px rgba(255, 200, 87, .6));
}

.brand:target .brand__n {
  color: var(--gold);
}

/* ---------- 获奖页 ---------- */
/* 每一行的主角是奖级：大号金字，进入视口时逐字升起；赛事、赛道、作品在右边，日期在右上角 */
.prizes {
  padding-top: clamp(14px, 2.6vw, 30px);
}

.prizes .awards__sum {
  margin-bottom: clamp(8px, 1.6vw, 18px);
}

.prize {
  display: grid;
  grid-template-columns: minmax(clamp(230px, 29vw, 392px), auto) minmax(0, 1fr) auto;
  grid-template-areas:
    "r body d"
    "x body d";
  column-gap: clamp(22px, 4vw, 64px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 40px) 0;
}

.prize + .prize {
  border-top: 1px solid rgba(255, 246, 227, .12);
}

.prize__r {
  grid-area: r;
  align-self: end;
  margin-bottom: 0; /* 版块标题的 data-split 会带一段下边距，这里不要 */
  font: 400 clamp(34px, 4.4vw, 62px)/1.12 var(--disp);
  letter-spacing: .01em;
  color: var(--gold);
  white-space: nowrap;
}

/* 奖级旁边的附注（如「票房之王」） */
.prize__x {
  grid-area: x;
  align-self: start;
  justify-self: start;
  margin-top: 8px;
  padding: 1px 11px;
  border: 1px solid rgba(255, 200, 87, .5);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gold);
}

.prize__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.prize__c {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.6;
  color: var(--cream);
}

.prize__s {
  font-size: 15px;
  line-height: 1.7;
  color: var(--haze);
}

.prize__w {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
}

.prize__c,
.prize__s {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.prize__d {
  grid-area: d;
  align-self: start;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--haze);
  font-variant-numeric: tabular-nums;
}

/* 平台认证：一块块小牌子，平台 logo 在上、身份在下 */
.certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert {
  flex: 1 1 180px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 28px 14px 24px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 246, 227, .055), rgba(255, 246, 227, .018));
  box-shadow: inset 0 0 0 1px rgba(255, 246, 227, .09), inset 0 1px 0 rgba(255, 246, 227, .1);
}

.cert__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  color: var(--cream);
  opacity: .92;
}

.cert__t {
  font: 400 22px/1.45 var(--disp);
  color: var(--cream);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(80px, 12vw, 150px);
  padding: 26px 0 44px;
  font-size: 14px;
  color: var(--haze);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.foot__beian {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--cream);
}

/* ---------- 大图查看 ---------- */
.viewer {
  width: auto;
  max-width: min(96vw, 1500px);
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--cream);
}

.viewer::backdrop {
  background: rgba(6, 10, 30, .82);
  backdrop-filter: blur(16px) saturate(.8);
}

.viewer[open] {
  animation: pop .5s var(--ease-out);
}

/* 用浏览器的共享元素转场从缩略图原位放大时，弹层自己不再另做动画 */
.viewer--vt,
.viewer--vt[open] {
  animation: none;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.96) translateY(10px);
  }
}

/* 当前这张图自己的环境光，铺在暗幕上 */
.viewer__ambient {
  position: absolute;
  inset: -12% -18%;
  z-index: -1;
  pointer-events: none;
  background: var(--amb, none) center / cover no-repeat;
  filter: blur(64px) saturate(1.5);
  opacity: .6;
}

.viewer__stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow:
    0 50px 130px -30px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 246, 227, .12);
}

.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.viewer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  min-width: 0;
}

.viewer__t {
  font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--disp);
}

.viewer__n {
  font-size: 15px;
  color: var(--haze);
}

.viewer__ctrl {
  display: flex;
  flex: none;
  gap: 8px;
}

/* 共享元素转场：缩略图 ↔ 大图之间原位放大、收回。两段画面都按「填满」裁切，形变过程不拉伸 */
::view-transition-group(work-focus) {
  animation-duration: .6s;
  animation-timing-function: var(--ease-out);
}

::view-transition-old(work-focus),
::view-transition-new(work-focus) {
  height: 100%;
  object-fit: cover;
  animation: none;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .6s;
  animation-timing-function: var(--ease-out);
}

/* 平板竖屏：三列只有两百像素宽，比手机上还窄，改成两列 */
@media (min-width: 761px) and (max-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .top nav {
    gap: 14px;
    height: 54px;
  }
  .top a {
    font-size: 14px;
  }
  .creds__role {
    font-size: 26px;
  }
  /* 手机上身份奖项要折成五六行。斜杠改挂在每一项的前面，整条往左挪出一个斜杠的宽度（外层裁掉）：
     换到行首的斜杠正好落在框外，行尾就不留孤零零的「/」。字收小半号，把第一张画面让进首屏 */
  .creds__list {
    display: block;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.7;
  }
  .creds__flow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-left: -1.5em;
  }
  .cred__sep {
    display: none;
  }
  /* 第一项前面没有斜杠，但也要占一个斜杠的位置，否则整条的第一项会被裁掉一截 */
  .cred:first-child::before {
    content: "";
  }
  .cred + .cred::before {
    content: "/";
    color: var(--haze);
    opacity: .6;
  }
  .cred::before {
    display: inline-block;
    width: 1.5em;
    text-align: center;
  }
  .follow {
    gap: 8px;
    margin-top: 12px;
  }
  /* 三个按钮在 360 宽的手机上排成一行（原来 2 + 1，哔哩哔哩孤零零挂在第二行） */
  .follow__btn {
    padding: 6px 12px 6px 8px;
    font-size: 15px;
    white-space: nowrap;
  }
  .follow__icon {
    width: 20px;
    height: 20px;
  }
  /* 竖屏上幕布太竖会把横图的两头裁掉，收到 4:3 */
  .reel {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .grid--3,
  .grid--2,
  .grid--1 {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 手机上的作品：每一行画面小一档，直接滑，不出箭头 */
  .stripbox {
    --h: clamp(168px, 46vw, 250px);
    --pad: 30px;
    --label: 30px;
    margin-top: -2px;
  }
  .stripbox + .stripbox {
    margin-top: 24px;
  }
  .strip__label {
    margin-bottom: 8px;
    font-size: 14px;
  }
  .strip__nav {
    display: none;
  }
  .strip .work__t {
    font-size: 20px;
  }
  /* 手机上只留奖级，赛事名看下面的获奖区 */
  .strip .work__a span {
    display: none;
  }
  .bridge {
    padding: 18px 0;
  }
  .bridge__cta {
    width: 100%;
    justify-content: center;
  }
  .brand__c {
    margin-left: 0;
  }
  .prize {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "r d"
      "body body"
      "x x";
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
  }
  .prize__r {
    font-size: clamp(34px, 10vw, 46px);
  }
  .cert {
    flex: 0 0 calc(50% - 7px);
  }
  /* logo 墙在手机上排成两列格子，留足空当，整体缩小一档 */
  .wall__logos {
    gap: 8px;
    padding: 0;
  }
  .wall__item {
    flex: 0 0 calc(50% - 4px);
    min-height: 88px;
  }
  .wall__logo .logo__img,
  .wall__logo .logo__svg {
    height: calc(var(--h) * .78);
  }
  .brand__logo .logo__img,
  .brand__logo .logo__svg {
    height: calc(var(--h) * .88);
  }
  .award {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .award__r {
    grid-row: 2;
    text-align: left;
  }
  .award__body {
    grid-row: 3;
  }
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
  .about__avatar {
    width: 88px;
    height: 88px;
  }
}

/* 很窄的手机：奖级一行放不下日期，日期挪到下面 */
@media (max-width: 360px) {
  .prize {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "r"
      "d"
      "body"
      "x";
  }
}

/* 再窄一档（320 宽的小屏）：三个关注按钮还要挤在一行里，字和图标各收小一点 */
@media (max-width: 350px) {
  .follow {
    gap: 7px;
  }
  .follow__btn {
    gap: 7px;
    padding: 6px 9px 6px 7px;
    font-size: 14px;
  }
  .follow__icon {
    width: 18px;
    height: 18px;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  /* 入场前的「藏」一律解开 */
  html.js [data-reveal],
  html.js [data-reveal] .work__frame,
  html.js [data-reveal] .work__cap,
  html.js [data-reveal] img,
  html.js .strip .work__frame,
  html.js .strip .work__cap,
  html.js .strip .work__frame img,
  html.js [data-split] span,
  html.js .about__avatar {
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
  }
  html.js [data-reveal] .work__glow,
  html.js .strip .work__glow {
    opacity: .5;
    transform: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
