/* 具身叙事官网 v4（12-04 大付总改版）—— 一套设计令牌，内容页只做浅色。
   字：英文一律 Montserrat；中文标题思源黑体 Bold，正文思源黑体 Regular / Medium。
   背景：一层固定的渐变，跟着往下滑从白慢慢变成浅紫（site.js 的 paintBg）。
   首屏和“等你加入”是影片，字体蒙版先是镭射字再透出影片；三个平台放在一本立体书里；结尾前是开盲盒。 */
@font-face { font-family: "JS Latin"; src: url("../fonts/latin-400.woff2") format("woff2"); font-weight: 300 400; font-display: swap; size-adjust: 94%; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027; }
@font-face { font-family: "JS Latin"; src: url("../fonts/latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; size-adjust: 94%; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027; }
@font-face { font-family: "JS Latin"; src: url("../fonts/latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; size-adjust: 94%; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027; }
@font-face { font-family: "JS Latin"; src: url("../fonts/latin-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; size-adjust: 94%; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027; }
@font-face { font-family: "JS Sans"; src: url("../fonts/sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JS Sans"; src: url("../fonts/sans-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "JS Sans"; src: url("../fonts/sans-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --sans: "JS Latin", "JS Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: var(--sans);

  /* 字号阶梯：手机 */
  --fs-display: 32px; --fs-statement: 27px; --fs-title: 24px; --fs-card: 21px;
  --fs-lead: 17px; --fs-body: 16px; --fs-small: 14px; --fs-caption: 12px;
  --lh-display: 1.22; --lh-statement: 1.5; --lh-title: 1.3; --lh-lead: 1.7; --lh-body: 1.7;

  /* 间距（8 的倍数）与尺寸 */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 160px;
  --section-y: 96px;
  --gutter: 20px;
  --maxw: 1200px;
  --r-sm: 12px; --r-lg: 24px; --r-xl: 28px; --r-pill: 999px;
  --tap: 44px;

  /* 颜色（只有浅色）：底色由 .bgfx 画，白 → 浅紫 */
  --bg: #ffffff; --bg-2: #f4f0fb; --card: #ffffff;
  --fg: #17141f; --fg-2: #5f5a6e; --fg-3: #8a849a; --unlit: #cfc8de;
  --line: rgba(40, 20, 80, 0.1);
  --accent: #6a42d4; --accent-hover: #5a33c4; --accent-ink: #ffffff; --link: #5e37c8;
  --plum: #3f2268;
  --glass: rgba(29, 29, 31, 0.56); --glass-hover: rgba(29, 29, 31, 0.72);
  --soft: rgba(90, 60, 160, 0.1); --soft-hover: rgba(90, 60, 160, 0.18);
  --shadow-card: 0 1px 2px rgba(40, 20, 80, .06), 0 16px 36px -14px rgba(60, 30, 120, .22);
  --navbg: #ffffff;
  color-scheme: light;
}
@media (min-width: 761px) {
  :root {
    --fs-display: 44px; --fs-statement: 36px; --fs-title: 28px; --fs-card: 22px;
    --fs-lead: 19px; --fs-body: 17px; --fs-small: 14px; --fs-caption: 13px;
    --section-y: 120px; --gutter: 40px;
  }
}
@media (min-width: 1069px) {
  :root { --fs-display: 52px; --fs-statement: 44px; --fs-title: 32px; --fs-lead: 20px; --section-y: 150px; --gutter: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 52px; background: #ffffff; }
body {
  margin: 0; color: var(--fg);
  font-family: var(--sans); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; letter-spacing: -0.01em; }
.nw { white-space: nowrap; display: inline-block; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls { display: none !important; }
.filmsheet video::-webkit-media-controls { display: flex !important; }

/* 背景：固定一层，颜色由脚本按滚动位置给（--g1 顶、--g2 底） */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--g1, #ffffff) 0%, var(--g2, #faf8fe) 100%); }

/* ---------- 文字层级 ---------- */
.display { font-size: var(--fs-display); line-height: var(--lh-display); }
.title { font-size: var(--fs-title); line-height: var(--lh-title); }
.lead { text-wrap: pretty; font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 500; color: var(--fg-2); max-width: 36em; }
.body { font-size: var(--fs-body); color: var(--fg-2); max-width: 36em; }

/* ---------- 按钮：主按钮、圆形图标钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 22px; border: 0; cursor: pointer;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font: 500 var(--fs-body) / 1 var(--sans); text-decoration: none; transition: background-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { background: var(--accent-hover); } }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) { .btn-ghost:hover { background: rgba(106, 66, 212, .1); } }
.icon-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--soft); color: var(--fg); transition: background-color .2s, opacity .2s;
}
@media (hover: hover) { .icon-btn:hover { background: var(--soft-hover); } }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 导航 ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--navbg); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { height: 52px; display: flex; align-items: center; justify-content: space-between; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); padding: 13px 0; }
.nav-logo { width: 26px; height: 26px; border-radius: 7px; }
.wordmark { height: 18px; width: 72px; fill: currentColor; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: var(--fs-small); color: var(--fg-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--fg); }
.nav-menu { display: none; width: var(--tap); height: var(--tap); margin-right: -12px; border: 0; background: none; color: var(--fg); cursor: pointer; position: relative; }
.nav-menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s; }
.nav-menu span:first-child { top: 18px; } .nav-menu span:last-child { top: 25px; }
.nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-menu { display: block; }
  .nav-links {
    position: fixed; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navbg); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { font-size: var(--fs-lead); font-weight: 500; color: var(--fg); min-height: var(--tap); padding: 12px 0; border-bottom: 1px solid var(--line); }
}
/* 深色画面（首屏、等你加入、盲盒打开前）上导航用白字 */
.nav.on-hero { background: #0d0a12; border-bottom-color: transparent; }
.nav.on-hero .nav-brand, .nav.on-hero .nav-links a, .nav.on-hero .nav-menu { color: #fff; }
.nav.on-hero .nav-links a { opacity: .82; }
.nav.on-hero .nav-links a:hover { opacity: 1; }
@media (min-width: 761px) { .nav.on-hero { background: transparent; } .nav.on-hero.on-dark { background: rgba(13, 10, 18, .58); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); } }
@media (max-width: 760px) { .nav.on-hero .nav-links.open { background: #0d0a12; } .nav.on-hero .nav-links.open a { border-bottom-color: rgba(255, 255, 255, .14); } }

/* 进入视口时淡入上移（没有脚本时直接显示） */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.locked { overflow: hidden; }
.head { margin-bottom: var(--s-5); }


/* ================================================================ 2 介绍 */
.statement { padding: var(--s-8) 0 var(--s-7); }
.lit { text-wrap: pretty; max-width: 21em; font-family: var(--display); font-weight: 700; font-size: var(--fs-statement); line-height: var(--lh-statement); letter-spacing: -0.005em; }
.lit .seg-l { color: var(--unlit); transition: color .5s ease; }
.lit .seg-l.on { color: var(--fg); }
.lit .em { color: #cbbdf0; transition: color .5s ease; }
.lit .seg-l.on .em { color: #6a42d4; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .lit .seg-l.on .em { color: transparent; background: linear-gradient(100deg, #8a5cf6 0%, #6a42d4 45%, #4d27b5 100%); -webkit-background-clip: text; background-clip: text; }
}
.statement-sub { margin-top: var(--s-4); max-width: 34em; }
@media (max-width: 760px) { .statement { padding: var(--s-7) 0 var(--s-6); } }

/* ================================================================ 3 品牌故事：左右滑 */
.story { padding: var(--s-5) 0 var(--section-y); }
.story-head { margin-bottom: var(--s-4); }
.srail, .rail {
  display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: var(--s-1) max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 64px; margin-bottom: -32px;   /* 下面留够地方给卡片阴影，不让滚动区切掉 */
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.srail::-webkit-scrollbar, .rail::-webkit-scrollbar { display: none; }
.srail:focus-visible, .rail:focus-visible { outline-offset: -2px; }
.scard {
  flex: 0 0 auto; width: min(1040px, calc(100vw - 2 * var(--gutter) - 56px)); scroll-snap-align: start;
  display: grid; grid-template-columns: 1.12fr 1fr; min-height: 500px;
  background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); isolation: isolate;
}
.scard-media { position: relative; overflow: hidden; background: #1a1424; }
.scard-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1a1424; transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.scard.on .scard-media video { transform: scale(1); }
.scard-body { display: flex; flex-direction: column; justify-content: center; padding: var(--s-5) var(--s-5) 44px; }
.scard-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.28; }
.scard-body p { margin-top: var(--s-2); font-size: var(--fs-body); line-height: 1.8; color: var(--fg-2); text-wrap: pretty; }
.scard-body .scard-end { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--fg); font-weight: 500; }
/* 排比句一句一行（12-05 付总）：每句都从左边起头；放不下时在逗号处折，折下去的半句缩进两格 */
.slines { margin-top: var(--s-2); }
.scard-body .sl { margin: 0; padding-left: 2em; text-indent: -2em; line-height: 1.75; }
.scard-body .sl + .sl { margin-top: 6px; }
.scard-body .sl .nw { text-indent: 0; }
.scard-body .sl-lead { color: var(--fg); font-weight: 500; }
@media (min-width: 1069px) { .scard { grid-template-columns: 1fr 1fr; } .scard-body { padding: 44px 44px 40px; } .scard-body p { font-size: 16px; } }
@media (max-width: 1068px) and (min-width: 761px) { .scard { grid-template-columns: 1fr 1fr; min-height: 460px; } .scard-body { padding: var(--s-4); } }
@media (max-width: 760px) {
  .scard { width: calc(100vw - 2 * var(--gutter) - 20px); grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
  .scard-media { aspect-ratio: 4 / 3; }   /* 付总的短片是方形：手机上裁成 4:3，上下各少一点，人物和主体都在 */
  .scard-body { justify-content: flex-start; padding: var(--s-3) 22px 26px; }
  .scard-title { font-size: 23px; }
  .scard-body p { font-size: 15.5px; line-height: 1.75; margin-top: 12px; }
  .scard-body .scard-end { margin-top: var(--s-2); padding-top: var(--s-2); }
  /* 手机上一句固定折成两行（逗号前、逗号后），一组一组排，句和句之间空一点 */
  .slines { margin-top: 12px; }
  .scard-body .sl { padding-left: 0; text-indent: 0; line-height: 1.65; }
  .scard-body .sl + .sl { margin-top: 10px; }
  .scard-body .sl .nw { display: block; white-space: normal; }   /* 窄屏（360）半句也放不下时照常折 */
  .scard-body .sl .ph { display: inline-block; white-space: nowrap; }   /* 半句里再分词组：要折只在词组之间折 */
}
.rail-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); }
.story-ctrl { justify-content: space-between; }
.rail-btns { display: flex; gap: 12px; }
.dots { display: flex; align-items: center; }
.dot { width: 22px; height: var(--tap); padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(60, 30, 120, .22); transition: width .35s cubic-bezier(.2, .7, .2, 1), background-color .35s; }
.dot[aria-selected="true"] { width: 34px; }
.dot[aria-selected="true"]::before { width: 24px; background: var(--accent); }

/* ================================================================ 4 工种卡 */
.section { padding: var(--section-y) 0; }
.roles { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.card {
  flex: 0 0 auto; width: clamp(232px, 19vw, 272px); scroll-snap-align: start; position: relative;
  background: var(--card); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); } }
.card-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
.card-body { display: block; padding: var(--s-3) var(--s-3) 88px; }
.card-name { display: block; font-family: var(--display); font-weight: 700; font-size: var(--fs-card); line-height: 1.3; }
.card-line { display: block; margin-top: var(--s-1); font-size: var(--fs-small); line-height: 1.65; color: var(--fg-2); }
.card-ava { position: absolute; left: var(--s-3); bottom: 18px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #ddd;
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 3.5px rgba(40, 20, 80, .14), 0 6px 14px -4px rgba(40, 20, 80, .3); }
.card-plus { position: absolute; right: var(--s-2); bottom: 22px; }
.card-plus svg { width: 18px; height: 18px; }

/* 工种详情 */
.sheet {
  width: min(980px, calc(100vw - 48px)); max-height: min(calc(100dvh - 64px), 820px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--card); color: var(--fg); overflow: hidden;
}
.sheet::backdrop { background: rgba(20, 12, 36, .58); }
.sheet[open] { animation: sheet-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.sheet-close { position: absolute; top: var(--s-2); right: var(--s-2); z-index: 3; background: var(--glass); color: #fff; }
@media (hover: hover) { .sheet-close:hover { background: var(--glass-hover); } }
.sheet-in { display: grid; grid-template-columns: 5fr 7fr; max-height: min(calc(100dvh - 64px), 820px); overflow-y: auto; overscroll-behavior: contain; }
.sheet-media { position: sticky; top: 0; align-self: start; height: min(calc(100dvh - 64px), 820px); background: #d9d6dd; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.sheet-body { padding: var(--s-5); }
.sheet-body .lead { margin-top: var(--s-2); }
.sheet-props { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: var(--s-4); }
.sheet-props:empty { display: none; }
.sheet-props img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #e8e6eb; }
.sheet-block { margin-top: var(--s-4); }
.sheet-block h4 { margin: 0 0 var(--s-1); display: flex; align-items: center; gap: 10px; font-size: var(--fs-body); font-weight: 600; }
.sheet-block h4 img { width: 24px; height: 24px; border-radius: 22%; }
.sheet-block p { margin-top: var(--s-1); color: var(--fg-2); }
.sheet-block p b { color: var(--fg); font-weight: 600; }
.sheet-gain { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.sheet-gain:empty { display: none; }
.sheet-watch { margin-top: var(--s-3); }


/* ================================================================ 1 影片和进度条 */
.hero { --ink: #0d0a12; position: relative; height: 240vh; background: #0d0a12; color: #fff; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--ink); }
.screen { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--ink); overflow: hidden; }
.screen video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; pointer-events: none; }
#film:fullscreen { object-fit: contain !important; object-position: 50% 50% !important; transform: none !important; pointer-events: auto; background: #000; }
#film:-webkit-full-screen { object-fit: contain !important; object-position: 50% 50% !important; transform: none !important; pointer-events: auto; background: #000; }
.screen-tap { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.screen-tap:focus-visible { outline-offset: -6px; }
.mask-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, visibility 0s; }
.mask-film.off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s, visibility 0s .5s; }
.chap-box { min-width: 0; }
.hero-role { margin-top: 6px; max-width: 34em; font-size: var(--fs-small); line-height: 1.6; color: rgba(255, 255, 255, .82); text-wrap: pretty; }
.hero-role[hidden] { display: none; }
.hero-role-btn { margin-left: 4px; padding: 0; border: 0; background: none; color: #ffcf4a; font: 600 var(--fs-small) / 1.6 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; background: #0d0a12; z-index: 2; }
.mask.drawn { background: transparent; }
.screen-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 5, 14, .55) 0, rgba(8, 5, 14, 0) 120px), linear-gradient(0deg, rgba(8, 5, 14, .86) 0, rgba(8, 5, 14, .5) 130px, rgba(8, 5, 14, 0) 300px); }
.ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 var(--gutter) max(22px, env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ctrl.show { opacity: 1; visibility: visible; }
.ctrl-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); margin-bottom: 14px; }
.chap { min-width: 0; overflow: hidden; }
.chap-name { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: .04em; }
.chap-name.swap { animation: chap-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes chap-in { from { opacity: 0; transform: translateY(60%); } }
.ctrl-btns { display: flex; align-items: center; gap: 8px; flex: none; }
.time { font-size: var(--fs-small); color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; margin-right: 6px; transition: opacity .3s; }
.ctrl.saying .time { opacity: 0; }
.ctrl-btn { width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); transition: background-color .2s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (hover: hover) { .ctrl-btn:hover { background: rgba(255, 255, 255, .26); } }
.ctrl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctrl-btn svg .solid { fill: currentColor; stroke: none; }
.ctrl-btn svg polygon, .ctrl-btn svg rect { fill: currentColor; }

/* 进度条：分段（每个工种一段），圆点是 logo 的两只眼睛 */
.bar { --h: 4px; position: relative; height: 34px; cursor: pointer; touch-action: none; outline: none; }
.bar:focus-visible .bar-track { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.bar-track { position: absolute; left: 0; right: 0; top: 50%; height: var(--h); transform: translateY(-50%); transition: height .2s; }
.bar:hover, .bar.drag { --h: 6px; }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.seg i { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); background: linear-gradient(90deg, #b99cff, #ffcf4a); background-size: var(--bw, 100%) 100%; background-position: var(--bx, 0) 0; }
.seg.hover { background: rgba(255, 255, 255, .42); }
.knob { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; will-change: transform; pointer-events: none; }
.knob-eyes { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 1.5px rgba(255, 255, 255, .85); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.bar:hover .knob-eyes, .bar.drag .knob-eyes { transform: scale(1.18); }
.eye { transform-box: fill-box; transform-origin: center; }
.eye.blink { animation: blink .16s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(.08); } }
.bar.drag .eye { transform: scale(1.08, 1.12); }
.pupil { transition: transform .18s ease-out; }
/* 换段时冒出来的小道具 */
.knob-pop { position: absolute; left: 50%; bottom: 100%; width: 34px; height: 34px; margin: 0 0 8px -17px; display: grid; place-items: center;
  border-radius: 50%; background: #ffcf4a; color: #2a1650; box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 1.5px rgba(255, 255, 255, .85); opacity: 0; transform: translateY(8px) scale(.4); }
.knob-pop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.knob-pop.go { animation: pop 1.6s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes pop { 0% { opacity: 0; transform: translateY(8px) scale(.4) rotate(-20deg); } 18% { opacity: 1; transform: translateY(0) scale(1.08) rotate(6deg); } 30% { transform: translateY(0) scale(1) rotate(0); } 78% { opacity: 1; transform: translateY(-4px) scale(1); } 100% { opacity: 0; transform: translateY(-18px) scale(.85); } }
/* 全员集结时眼睛上方冒一句“等你加入” */
.knob-say { position: absolute; left: 50%; bottom: 100%; margin-bottom: 12px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; pointer-events: auto; cursor: pointer;
  background: #ffcf4a; color: #2a1650; font-weight: 600; font-size: var(--fs-small); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(-50%, 8px) scale(.6); transform-origin: 50% 100%; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); visibility: hidden; }
.knob-say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #ffcf4a; }
.knob-say.on { opacity: 1; transform: translate(-50%, 0) scale(1); visibility: visible; }
/* 片尾小猫小狗出场时，进度条上留一串爪印 */
.bar-paws { position: absolute; inset: 0; pointer-events: none; }
.paw { position: absolute; top: 50%; width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; color: #ffcf4a; animation: paw-in .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.paw svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
@keyframes paw-in { from { opacity: 0; transform: translate(var(--px), var(--py)) scale(.2) rotate(var(--pr)); } to { opacity: .95; transform: translate(var(--px), var(--py)) scale(1) rotate(var(--pr)); } }
/* 悬停预览：缩略图、段名、时间 */
.tip { position: absolute; bottom: 100%; left: 0; margin-bottom: 12px; padding: 4px; border-radius: 10px; background: rgba(20, 14, 30, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.tip.on { opacity: 1; visibility: visible; transform: none; }
.tip-thumb { display: block; width: 160px; height: 90px; border-radius: 7px; background: #000 url("../img/sprite.webp") no-repeat; background-size: 1280px 630px; }
.tip-text { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 4px 2px; font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.tip-text b { font-weight: 600; color: #fff; }

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .screen-shade { display: none; }
  .ctrl { display: flex; flex-direction: column-reverse; }
  .ctrl-row { margin: 6px 0 0; align-items: flex-start; }
  .chap-name { font-size: 28px; }
  .hero-role { font-size: var(--fs-body); }
  .hero-role-btn { font-size: var(--fs-body); }
  .knob-pop { left: 100%; bottom: auto; top: 50%; margin: -17px 0 0 8px; }
  .ctrl { bottom: auto; top: var(--ctrl-top, auto); padding: 12px var(--gutter) 0; }
  .time { display: none; }
  .tip-thumb { width: 128px; height: 72px; background-size: 1024px 504px; }
  /* 竖屏：按钮和段名同一行，说明占整行 */
  .ctrl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .chap-box { display: contents; }
  .chap { grid-area: 1 / 1; }
  .ctrl-btns { grid-area: 1 / 2; }
  .hero-role { grid-area: 2 / 1 / 3 / 3; margin-top: 8px; max-width: none; }
  /* 竖屏：底部分段缩略图条 */
  .chapters.fits { position: absolute; left: 0; right: 0; top: var(--strip-top, auto); bottom: auto; z-index: 3; display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--gutter); scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .chapters.fits.show { opacity: 1; visibility: visible; }
  .chapters::-webkit-scrollbar { display: none; }
  .chip { flex: none; width: 96px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .56); font: 500 13px / 1.3 var(--sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s; }
  .chip-thumb { display: block; width: 96px; height: 54px; border-radius: 8px; background: #000 url("../img/sprite.webp") no-repeat; background-size: 768px 378px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); opacity: .62; transition: opacity .2s, box-shadow .2s; }
  .chip-name { display: block; margin-top: 7px; white-space: nowrap; }
  .chip.on { color: #fff; }
  .chip.on .chip-thumb { opacity: 1; box-shadow: inset 0 0 0 2px #ffcf4a; }
}
.chapters { display: none; }   /* 只有竖屏且放得下（.fits）时出现，见上面竖屏那段 */

/* ================================================================ 4 立体书 */
.bookscene { --stage-fg: var(--fg); position: relative; height: 720vh; color: var(--stage-fg); }
.book-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.book-big { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .32em; margin: 0; pointer-events: none;
  font-family: var(--display); font-weight: 600; font-size: clamp(48px, 8.4vw, 128px); line-height: 1; letter-spacing: .06em; color: #1b1530; will-change: transform, opacity; }
.book-big span { display: inline-block; }
@media (max-width: 760px) { .book-big { flex-direction: column; gap: .16em; font-size: clamp(48px, 17vw, 92px); } }
.book-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding-top: calc(52px + var(--s-3)); position: relative; z-index: 2; }
.book-title { font-size: var(--fs-title); line-height: 1.3; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(90, 60, 160, .1); }
.tab { min-height: 36px; min-width: 64px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: inherit; opacity: .62; font: 500 var(--fs-small) / 1 var(--sans); cursor: pointer; transition: background-color .3s, opacity .3s, box-shadow .3s; }
.tab[aria-selected="true"] { opacity: 1; background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.book-view { position: relative; flex: 1; min-height: 0; overflow: hidden; perspective-origin: 50% 20%; }
.book-fit { position: absolute; left: 50%; top: 50%; width: 1000px; height: 620px; margin: -310px 0 0 -500px; transform-style: preserve-3d; }
.book { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; }
.book * { transform-style: preserve-3d; }
.book img { display: block; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.book .flip { transform: scaleX(-1); }
.book .face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-style: flat; }
.book .face * { transform-style: flat; }
.book .face.back { transform: rotateY(180deg); }
.table-shadow { position: absolute; left: -60px; width: 1120px; top: -40px; bottom: -70px; transform-origin: 100% 50%; background: radial-gradient(closest-side, rgba(40, 20, 60, .3), rgba(40, 20, 60, 0)); }
/* 书板：右半边一直在，左半边是翻开的封面 */
.board-back { position: absolute; left: 500px; top: -12px; width: 512px; height: 644px; border-radius: 4px 10px 10px 4px; background: #3b2270; transform: translateZ(0); }
.page, .page-a-l, .page-a-r, .page-b-l, .page-b-r { background-size: 1000px 620px; background-repeat: no-repeat; }
.page-a-l, .page-a-r { background-image: url("../img/book/floor-a.svg"); }
.page-b-l, .page-b-r { background-image: url("../img/book/c-floor.svg"); }
.page-a-l, .page-b-l { background-position: 0 0; box-shadow: inset -18px 0 18px -12px rgba(0, 0, 0, .3); }
.page-a-r, .page-b-r { background-position: -500px 0; box-shadow: inset 18px 0 18px -12px rgba(0, 0, 0, .3); }
.page-b-r { position: absolute; left: 500px; top: 0; width: 500px; height: 620px; transform: translateZ(1px); }
.leaf { position: absolute; left: 500px; top: 0; width: 500px; height: 620px; transform-origin: 0 50%; }
.cover { position: absolute; left: 500px; top: -12px; width: 512px; height: 644px; transform-origin: 0 50%; }
.cover-front { border-radius: 4px 10px 10px 4px; background: linear-gradient(135deg, #5d3aa6, #3a2170 70%); box-shadow: inset 14px 0 0 rgba(0, 0, 0, .18), inset 0 0 0 18px rgba(0, 0, 0, 0), inset 0 0 0 20px #e2b857, inset 0 0 0 26px rgba(0, 0, 0, 0), inset 0 0 0 27px rgba(226, 184, 87, .7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: #e9c46a; }
.cover-front::before { content: ""; position: absolute; inset: 20px 20px 20px 30px; border: 2px solid #e2b857; border-radius: 4px; outline: 1px solid rgba(226, 184, 87, .6); outline-offset: -8px; pointer-events: none; }
.cover-logo { width: 168px !important; height: 168px !important; border-radius: 38px; box-shadow: 0 10px 30px rgba(10, 4, 30, .45); }
.cover-title { font-family: var(--display); font-weight: 700; font-size: 64px; letter-spacing: .18em; margin-right: -.18em; line-height: 1; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.cover-sub { font-size: 20px; letter-spacing: .32em; margin-right: -.32em; opacity: .85; }
.cover-in { border-radius: 10px 4px 4px 10px; background: #3b2270; }
.cover-in .page-a-l { position: absolute; left: 12px; top: 12px; width: 500px; height: 620px; }
.spread { position: absolute; inset: 0; pointer-events: none; }
.pop { position: absolute; transform-origin: 50% 100%; }
.pop .face img { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .28)); }
.pop .face img.cut { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); object-fit: contain; object-position: 50% 100%; }
.pop-shadow { position: absolute; transform: translateZ(2.6px); border-radius: 40% 40% 4px 4px / 100% 100% 4px 4px; background: linear-gradient(0deg, rgba(25, 12, 0, .42), rgba(25, 12, 0, 0)); opacity: 0; pointer-events: none; }
.beam-l, .beam-r { -webkit-mask: linear-gradient(0deg, #000 35%, rgba(0, 0, 0, 0) 92%); mask: linear-gradient(0deg, #000 35%, rgba(0, 0, 0, 0) 92%); }
.beam-l img, .beam-r img { transform-origin: 50% 100%; animation: sweep 7s ease-in-out infinite alternate; }
.beam-r img { animation-delay: -3.5s; animation-direction: alternate-reverse; }
@keyframes sweep { from { transform: rotate(-20deg); } to { transform: rotate(16deg); } }
.fill-dark { background: #24152c; }
.fill-card { background: #cdb38c; }
.stencil { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 700; font-size: 54px; letter-spacing: .3em; margin-left: .15em; color: #4a3826; opacity: .82; }
.spot { opacity: .9; }
.pool { position: absolute; left: 380px; top: 317px; width: 240px; height: 110px; border-radius: 50%; transform: translateZ(2.2px);
  background: radial-gradient(closest-side, rgba(255, 244, 214, .55), rgba(255, 232, 180, 0)); animation: pool 4s ease-in-out infinite; }
@keyframes pool { 50% { opacity: .65; } }
.facade .poster { position: absolute; top: 42.1%; width: 11.11%; height: 39.47%; object-fit: cover; }
/* 宣发页（CineVi）：屏幕墙上五块屏，大屏上一道扫描光来回走；招牌字用 Montserrat（SVG 里拿不到网页字体，所以招牌字放在 HTML 里） */
.cvwall .scr { position: absolute; width: 20.44%; height: 26.58%; object-fit: cover; border-radius: 2px; }
.cvwall .scr-big { left: 28.89%; top: 28.95%; width: 42.22%; height: 58.95%; }
.cvwall .scan { position: absolute; left: 28.89%; top: 28.95%; width: 42.22%; height: 58.95%; overflow: hidden; pointer-events: none; }
.cvwall .scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(180deg, rgba(127, 227, 255, 0), rgba(127, 227, 255, .28) 85%, rgba(220, 248, 255, .85) 100%); animation: scan 4.2s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(555%); } }
.cvsign { position: absolute; left: 32.89%; top: 10.53%; width: 34.22%; height: 14.74%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: .02em; color: #fff; text-shadow: 0 0 12px rgba(127, 227, 255, .55); }
.marquee { position: absolute; left: 29.1%; top: 13.7%; width: 41.8%; height: 27.4%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 56px; letter-spacing: .04em; color: #3b2270; }
.flash { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, .7) 30%, rgba(255, 255, 255, 0)); opacity: 0; animation: flash 3.2s infinite; }
@keyframes flash { 0%, 86%, 100% { opacity: 0; transform: scale(.4); } 89% { opacity: 1; transform: scale(1.6); } 94% { opacity: .2; transform: scale(1); } }
/* 说明文字：一次只显示当前这一页 */
.caps { position: relative; z-index: 2; min-height: 210px; padding-bottom: max(var(--s-4), env(safe-area-inset-bottom)); }
.cap { position: absolute; left: var(--gutter); bottom: max(var(--s-4), env(safe-area-inset-bottom)); max-width: 30em; opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1), visibility .45s; }
.cap.on { opacity: 1; transform: none; visibility: visible; }
.cap-title { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: var(--fs-title); line-height: 1.25; }
.cap-title img { width: 32px; height: 32px; border-radius: 22%; }
.cap-text { margin-top: 10px; font-size: var(--fs-body); line-height: 1.7; color: var(--fg-2); word-break: keep-all; overflow-wrap: anywhere; }
.cap-link { display: flex; flex-wrap: wrap; gap: 12px; }
.cap-link { margin-top: var(--s-2); }
@media (min-width: 1069px) {
  .caps { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
  .cap { max-width: 22em; top: calc(50% - 96px); bottom: auto; transform: translateY(16px); pointer-events: auto; }
  .cap.on { transform: none; }
  .book-top { position: absolute; left: 0; right: 0; top: calc(50% - 164px); padding-top: 0; z-index: 3; justify-content: flex-start; }
  .cap-title { font-size: 34px; }
}
@media (max-width: 760px) {
  .book-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .caps { min-height: 236px; }
  .cap { right: var(--gutter); }
}


/* ================================================================ 6 等你加入 */
/* 上面浅色的立体书和这里的深色之间，用一段渐变过渡，不要一刀切 */
.joinscene { color: #fff; }
.joinscene::before { content: ""; display: block; height: 30vh; background: linear-gradient(180deg, rgba(142, 124, 195, 0) 0%, #8e7cc3 36%, #2b1f4f 70%, #0d0a12 100%); }
.join { position: relative; height: 260vh; background: #0d0a12; }
.join-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.join-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 40%; will-change: transform; }
.join-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 5, 14, .86) 0, rgba(8, 5, 14, .35) 45%, rgba(8, 5, 14, .15) 100%); opacity: 0; pointer-events: none; }
.join-cta { position: absolute; left: 0; right: 0; bottom: max(56px, 9vh); z-index: 3; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .6s, transform .8s cubic-bezier(.2, .7, .2, 1), visibility .6s; }
.join-cta.on { opacity: 1; visibility: visible; transform: none; }
.join-brand { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lead); font-weight: 600; }
.join-brand img { width: 28px; height: 28px; border-radius: 8px; }
.join-mail { display: inline-block; margin-top: var(--s-2); font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; text-decoration: none; word-break: break-all; }
@media (hover: hover) { .join-mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; } }

/* ================================================================ 7 开盲盒：深色里一个 CC 盒子，炸开以后亮成浅紫，周边落位 */
.gift { position: relative; height: 340vh; }
.gift-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.gift-dark { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 52%, #2a1a45 0%, #150f20 55%, #0d0a12 100%); }
.gift-light { position: absolute; inset: 0; --r: 0px;
  -webkit-mask: radial-gradient(circle at 50% 52%, #000 calc(var(--r) * .8), rgba(0, 0, 0, 0) var(--r)); mask: radial-gradient(circle at 50% 52%, #000 calc(var(--r) * .8), rgba(0, 0, 0, 0) var(--r));
  background: radial-gradient(75% 65% at 50% 50%, #ffffff 0%, #f3eefd 42%, #e7def8 100%); }
.gift-rays { position: absolute; left: 50%; top: 52%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 246, 228, 0) 0deg 6deg, rgba(255, 246, 228, .9) 8deg, rgba(255, 246, 228, 0) 10deg 15deg); mix-blend-mode: screen;
  -webkit-mask: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 18%, rgba(0, 0, 0, 0) 62%); mask: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 18%, rgba(0, 0, 0, 0) 62%); }
.gift-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gift-box { --bs: clamp(120px, 17vmin, 184px); position: absolute; left: 50%; top: 52%; width: var(--bs); height: var(--bs); margin: calc(var(--bs) / -2) 0 0 calc(var(--bs) / -2); perspective: 1000px; }
.gbox { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
/* 盒子（12-05 付总参考图）：整只哑光紫纸盒，没有丝带；四个侧面印同一幅黑线勾的 CC 标，标和盒子同色、底边出血；顶上一行白字 */
.gf { position: absolute; inset: 0; border-radius: 5px; overflow: hidden;
  background: linear-gradient(168deg, #7956ea 0%, #6845d6 46%, #5a37c4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 -14px 22px rgba(22, 0, 64, .16); }
.gf-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: var(--ink, 1); }
.gf-word { position: absolute; left: 0; right: 0; top: 17%; z-index: 1; text-align: center; color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: calc(var(--bs) * .088); line-height: 1; letter-spacing: .01em; opacity: var(--ink, 1); }
/* 跟着转动算的明暗（--shade，脚本按每个面朝光的程度给），盖在印刷层上面 */
.gf::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #12082e; opacity: var(--shade, 0); pointer-events: none; }
.gf::after { content: ""; position: absolute; inset: -40%; z-index: 2; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .13) 49%, rgba(255, 255, 255, 0) 58%);
  transform: translateX(var(--sheen, -40%)); pointer-events: none; }
.gf-back::after, .gf-left::after, .gf-right::after, .gf-bottom::after { display: none; }
.gf-top { background: linear-gradient(168deg, #8462f0 0%, #7250de 55%, #6442cd 100%); }
/* 盒底的接触阴影，炸开时淡掉（::before 排在盒子前面，画在盒子底下） */
.gift-box::before { content: ""; position: absolute; left: -35%; right: -35%; top: 88%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); opacity: var(--sh, 1); pointer-events: none; }
.gf-front { transform: translateZ(calc(var(--bs) / 2)); }
.gf-back { transform: rotateY(180deg) translateZ(calc(var(--bs) / 2)); }
.gf-left { transform: rotateY(-90deg) translateZ(calc(var(--bs) / 2)); }
.gf-right { transform: rotateY(90deg) translateZ(calc(var(--bs) / 2)); }
.gf-top { transform: rotateX(90deg) translateZ(calc(var(--bs) / 2)); }
.gf-bottom { transform: rotateX(-90deg) translateZ(calc(var(--bs) / 2)); }
.gift-head { position: absolute; left: 0; right: 0; top: calc(52px + 6vh); z-index: 4; text-align: center; opacity: 0; transform: translateY(18px); color: var(--fg); }
.gift-head .display { font-size: clamp(28px, 4.2vw, 52px); }
.gift-items { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gi { position: absolute; left: 50%; top: 52%; width: var(--w, 200px); opacity: 0; will-change: transform, opacity; }
.gi img { width: 100%; height: auto; transform: rotate(var(--rot, 0deg)); filter: drop-shadow(0 26px 24px rgba(48, 22, 100, .26)) drop-shadow(0 4px 6px rgba(48, 22, 100, .18)); }
.gi-name { position: absolute; left: 50%; top: 100%; margin-top: 10px; transform: translate(-50%, 6px); white-space: nowrap; opacity: var(--lab, 0);
  font-size: var(--fs-small); font-weight: 500; color: var(--fg); letter-spacing: .02em; transition: transform .5s; }
.gi[data-k="badge"] .gi-name { font-size: var(--fs-body); font-weight: 600; }
/* 盲盒打开后底下的按钮：深色胶囊，一圈流光边（12-04 大付总发的「AI 暗黑界面」参考：流光边框像在呼吸） */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.gift-cta { position: absolute; left: 0; right: 0; bottom: max(28px, 7vh); z-index: 5; margin: 0; display: flex; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1), visibility .5s; }
.gift-cta.on { opacity: 1; visibility: visible; transform: none; }
.glow-btn { --a: 0deg; position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px; border: 1.5px solid transparent; border-radius: 999px; color: #fff; font-weight: 600; font-size: var(--fs-body); letter-spacing: .02em; text-decoration: none;
  background: linear-gradient(#1b1131, #1b1131) padding-box, conic-gradient(from var(--a), #c7b0ff, #8fe6ff, #ffd77a, #f3b0ff, #c7b0ff) border-box; animation: glow-spin 4.5s linear infinite; }
.glow-btn::after { content: ""; position: absolute; inset: -5px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--a), #c7b0ff, #8fe6ff, #ffd77a, #f3b0ff, #c7b0ff); filter: blur(14px); opacity: .5; animation: glow-spin 4.5s linear infinite; }
@keyframes glow-spin { to { --a: 360deg; } }
@media (hover: hover) { .glow-btn:hover { background: linear-gradient(#2a1a4c, #2a1a4c) padding-box, conic-gradient(from var(--a), #c7b0ff, #8fe6ff, #ffd77a, #f3b0ff, #c7b0ff) border-box; } }

/* ================================================================ 8 最后一页：团队、联系 */
.endscene { position: relative; padding: var(--section-y) 0 0; color: var(--fg); }
.team { margin-bottom: var(--s-7); }
/* 团队：一格一个人，上面头像、下面职位和名字（参考付总 12-05 给的样式）；名字没填时只放头像 */
.team-grid { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.team-grid.bare { grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); }
.tm { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.tm-ava { aspect-ratio: 1; background: #fff; }
.tm-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-text { padding: var(--s-2) var(--s-3) var(--s-3); border-top: 1px solid var(--line); }
.tm-role { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.tm-name { display: block; margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: .02em; }
@media (max-width: 760px) { .team-grid, .team-grid.bare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tm-text { padding: 12px 14px 16px; } }
.contact { padding-bottom: var(--s-7); }
.contact-brand { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lead); font-weight: 600; }
.contact-brand img { width: 36px; height: 36px; border-radius: 10px; }
.contact-mail { display: inline-block; margin-top: var(--s-3); font-family: var(--display); font-weight: 700; font-size: clamp(38px, 7.4vw, 104px); line-height: 1.05; letter-spacing: -0.03em; color: var(--fg); text-decoration: none; word-break: break-all;
  background: linear-gradient(100deg, #22123f 0%, #45269a 55%, #5d37c9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
@media (hover: hover) { .contact-mail:hover { opacity: .85; } }
.contact-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-4); }
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.contact-links a { color: var(--fg); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; font-size: var(--fs-body); font-weight: 500; border-bottom: 1px solid transparent; }
@media (hover: hover) { .contact-links a:hover { color: var(--accent); } }
.foot-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); padding-top: var(--s-3); padding-bottom: max(var(--s-4), env(safe-area-inset-bottom)); font-size: var(--fs-caption); color: var(--fg-2); }
.foot-base a { color: inherit; text-decoration: none; }
@media (hover: hover) { .foot-base a:hover { color: var(--fg); } }

/* 宣传片弹窗：竖版（演技艺站）居中 9:16，横版（CineVi）16:9；手机上铺满 */
.filmsheet { width: fit-content; height: fit-content; max-width: calc(100vw - 32px); margin: auto; background: #000; }
.filmsheet::backdrop { background: rgba(0, 0, 0, .84); }
.filmsheet video { display: block; height: min(86dvh, 820px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.filmsheet.land video { width: min(calc(100vw - 96px), 1280px, calc(86dvh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; }

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .sheet-in { grid-template-columns: 1fr; max-height: 100dvh; height: 100dvh; }
  .sheet-media { position: relative; height: auto; aspect-ratio: 1 / 1; }
  .sheet-body { padding: var(--s-4) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); }
  .sheet-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; }
  .filmsheet, .filmsheet.land { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  .filmsheet video, .filmsheet.land video { width: 100%; height: 100%; aspect-ratio: auto; }
  .gift { height: 300vh; }
  .gift-head { top: calc(52px + 4vh); }
}

/* 减少动态：立体书不跟着滚动，点上面三个按钮切换；盲盒直接是打开后的样子；其他过渡关掉 */
@media (prefers-reduced-motion: reduce) {
  .hero, .join, .gift { height: auto; }
  .hero-stage, .join-stage { position: relative; }
  .gift-stage { position: relative; }
  .bookscene { height: auto; }
  .book-big { display: none; }
  .book-stage { position: relative; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sheet[open] { animation: none; }
  .card, .lit .seg-l, .knob-pop, .paw, .chap-name.swap, .scard-media video { transition: none; animation: none; }
  .flash, .pool, .beam-l img, .beam-r img, .glow-btn, .glow-btn::after { animation: none; }
  .gift-cta { opacity: 1; visibility: visible; transform: none; }
}
