/* ==========================================================
   虞书欣 · Esther 介绍页 v2（萌版 3D 角色）
   性能原则：所有动画只改 transform / opacity；无运行时 blur / backdrop-filter；
   背景模糊图、霓虹剪影均为预渲染图片。
   ========================================================== */
:root {
  --cream: #fbf4ef;
  --blush: #f6e3dc;
  --ink: #2b1b1d;
  --ink-soft: #6d5557;
  --pome: #b3132f;
  --pome-hot: #ff5c80;
  --pome-soft: #e8a3ad;
  --night: #1a0b10;
  --line: rgba(43, 27, 29, .12);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Didot", "Bodoni 72", "Playfair Display", Georgia, "Songti SC", "STSong", "SimSun", serif;
  --sans: "Helvetica Neue", "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --script: "Segoe Script", "Brush Script MT", "Snell Roundhand", "Apple Chancery", cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--pome); color: #fff; }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor img { cursor: none; } }

/* ---------- 自定义光标 ---------- */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; border-radius: 50%; will-change: transform; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--pome); }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(179, 19, 47, .55); transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .3s; }
.cur-ring.big { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(179, 19, 47, .08); }
#trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 199; }
@media (pointer: coarse) { .cur-dot, .cur-ring, #trail { display: none; } }

/* ---------- 开场 ---------- */
.intro { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: var(--cream); }
.intro.done { animation: introOut 1s var(--ease-out) forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
.intro-badge { display: flex; align-items: center; gap: 18px; }
.intro-dot { width: 72px; height: 72px; border-radius: 50%; background: var(--pome); display: grid; place-items: center; color: #fff; font: italic 600 30px/1 var(--serif);
  transform: scale(0); animation: dotPop .8s var(--ease-back) .2s forwards; box-shadow: 0 0 0 8px rgba(179, 19, 47, .1), 0 0 0 18px rgba(179, 19, 47, .05); }
.intro-name { overflow: hidden; }
.intro-name span { display: block; font: 700 32px/1.1 var(--sans); letter-spacing: .1em; transform: translateY(110%); animation: lineUp .8s var(--ease-out) .8s forwards; }
.intro-name small { display: block; font: italic 16px/1.5 var(--serif); color: var(--ink-soft); transform: translateY(110%); animation: lineUp .8s var(--ease-out) .95s forwards; }
.intro-bar { position: absolute; left: 50%; bottom: 18%; width: 160px; height: 2px; margin-left: -80px; background: var(--line); overflow: hidden; }
.intro-bar i { position: absolute; inset: 0; background: var(--pome); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
@keyframes dotPop { to { transform: scale(1); } }
@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- 导航 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 48px); color: var(--ink); transition: color .6s ease, background .4s ease, box-shadow .4s ease; }
.nav.dark { color: #fbe9ec; }
.nav.solid { background: rgba(251, 244, 239, .95); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .06em; font-size: 14px; }
.logo i { width: 26px; height: 26px; border-radius: 50%; background: var(--pome); color: #fff; display: grid; place-items: center; font: italic 600 13px/1 var(--serif); }
.nav ul { display: flex; gap: clamp(14px, 2.6vw, 34px); list-style: none; font-size: 13px; letter-spacing: .12em; }
.nav li a { position: relative; padding: 4px 0; }
.nav li a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.nav li a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 主舞台 ---------- */
.stage { position: relative; height: 800vh; }
.stage-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; contain: paint; background: var(--cream); }
.stage-pin.dark { background: var(--night); }
.bg { position: absolute; inset: -6%; will-change: transform; }
.bg > div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; }
.bg > div.on { opacity: .62; }
/* 背景在转场遮罩盖住时瞬间切换，不做全屏交叉淡化（全屏图层动画是最大的掉帧来源） */
.veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgba(251, 244, 239, .88) 36%, rgba(251, 244, 239, .2) 68%, rgba(251, 244, 239, .5) 100%); }
.stage-pin.dark .veil { opacity: 0; }
/* 漂浮光晕：大尺寸渐变圆，只做位移动画 */
.aura { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; will-change: transform; pointer-events: none; }
.aura.a1 { left: 30%; top: -30%; background: radial-gradient(circle, var(--aura1, rgba(232, 163, 173, .55)), transparent 62%); animation: drift1 18s ease-in-out infinite alternate; }
.aura.a2 { right: -25%; bottom: -40%; background: radial-gradient(circle, var(--aura2, rgba(179, 19, 47, .22)), transparent 62%); animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(-12vw, 10vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-10vw, -8vh, 0) scale(.92); } }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* 左侧大标题：逐字 3D 翻起 */
.copy { position: absolute; left: clamp(20px, 6vw, 96px); top: 50%; transform: translateY(-50%); z-index: 6; max-width: min(50vw, 720px); pointer-events: none; visibility: hidden; }
.copy.on { visibility: visible; }
.copy .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .32em; color: var(--pome); margin-bottom: 18px; opacity: 0; transform: translateX(-20px); }
.copy .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.copy h1 { font-weight: 800; line-height: .98; letter-spacing: -.01em; }
.copy .l { display: block; perspective: 600px; padding-bottom: .06em; }
.copy .w { display: inline-block; white-space: nowrap; }
.copy .c { display: inline-block; opacity: 0; transform: translate3d(0, .6em, 0) rotateX(-85deg); transform-origin: 50% 100%; }
.copy .l1 { font-family: var(--sans); font-size: clamp(40px, 6.2vw, 100px); text-transform: uppercase; }
.copy .l2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(38px, 5.8vw, 94px); color: var(--pome); }
.copy p { margin-top: 22px; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.85; color: var(--ink-soft); max-width: 30em; opacity: 0; transform: translateY(18px); }
.copy .tag { position: relative; overflow: hidden; display: inline-block; margin-top: 22px; padding: 8px 16px; border-radius: 999px; background: var(--pome); color: #fff; font-size: 12px; letter-spacing: .14em; opacity: 0; transform: translateY(18px); }
.copy .tag::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); }
.copy.on .kicker { animation: inX .8s var(--ease-out) forwards; }
.copy.on .c { animation: charUp .9s var(--ease-out) forwards; animation-delay: calc(.08s + var(--i) * .03s); }
.copy.on p, .copy.on .tag { animation: inY .9s var(--ease-out) forwards; animation-delay: .55s; }
.copy.on .tag { animation-delay: .7s; }
.copy.on .tag::after { animation: glint 3.6s ease-in-out 1.6s infinite; }
@keyframes inX { to { opacity: 1; transform: none; } }
@keyframes inY { to { opacity: 1; transform: none; } }
@keyframes charUp { to { opacity: 1; transform: none; } }
@keyframes glint { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.stage-pin.dark .copy .l1 { color: #fbe9ec; }
.stage-pin.dark .copy .l2, .stage-pin.dark .copy .kicker { color: var(--pome-hot); }
.stage-pin.dark .copy p { color: rgba(251, 233, 236, .7); }

/* ---------- 萌版角色（替换原片绿色角色） ---------- */
.actors { position: absolute; right: clamp(0px, 7vw, 130px); bottom: 0; width: min(46vw, 640px); height: 100%; z-index: 5; perspective: 1400px; }
.actor { position: absolute; left: 0; right: 0; bottom: 5%; height: 84%; display: flex; justify-content: center; align-items: flex-end; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s; }
.actor.on { visibility: visible; opacity: 1; }
.rig { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; transform: translate3d(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 10px), 0) rotateY(calc(var(--mx, 0) * 6deg)); transition: transform .6s var(--ease-out); }
.cam, .body, .flip, .box { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 100%; }
.stack { position: relative; height: 100%; aspect-ratio: var(--ar, 1 / 2); flex: none; cursor: pointer; }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.nozzle { position: absolute; width: 2px; height: 2px; }
.floor { position: absolute; left: 50%; bottom: -2.5%; width: 64%; height: 7%; margin-left: -32%; border-radius: 50%; background: radial-gradient(ellipse, rgba(80, 30, 35, .28), transparent 70%); transform-origin: 50% 50%; }
.dark .floor { background: radial-gradient(ellipse, rgba(255, 92, 128, .35), transparent 70%); }
.tap.jump { animation: tapJump .6s var(--ease-back); }
.tap { height: 100%; display: flex; align-items: flex-end; transform-origin: 50% 100%; }
@keyframes tapJump { 0% { transform: none; } 25% { transform: scale(1.05, .94); } 55% { transform: translateY(-7%) scale(.97, 1.04); } 100% { transform: none; } }

/* 01 走入：镜头先怼近球鞋踏步走进，再拉远到全身（照搬原片 0~1s） */
.actor.on.a-walk .cam { animation: camPull 2.6s cubic-bezier(.6, .05, .25, 1) both; }
@keyframes camPull { 0% { transform: translate3d(55vw, 0, 0) scale(2.3); } 48% { transform: translate3d(0, 0, 0) scale(2.3); } 100% { transform: none; } }
.a-walk .body.walking { animation: stepBob .26s ease-in-out infinite alternate; }
.a-walk .body.idle { animation: idleSway 4s ease-in-out infinite alternate; }
.a-walk img.f2 { opacity: 0; }
.a-walk .alt img.f1 { opacity: 0; }
.a-walk .alt img.f2 { opacity: 1; }
@keyframes stepBob { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-2%) rotate(1deg); } }
@keyframes idleSway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg) translateY(-.6%); } }

/* 02 转身比耶：侧身滑入 → 翻转转正（中点换帧）→ 跳两下 → 歪头 */
.actor.on.a-turn .box { animation: slideR .7s var(--ease-out) both; }
.actor.on.a-turn .flip { animation: flipTurn .62s ease-in-out .55s both; }
.actor.on.a-turn img.side { animation: hideMid .62s steps(1) .55s both; }
.actor.on.a-turn img.front { animation: showMid .62s steps(1) .55s both; }
.actor.on.a-turn .body { animation: hop 1s ease-out 1.15s both, tilt 3.2s ease-in-out 2.2s infinite alternate; }
@keyframes slideR { from { transform: translate3d(24vw, 0, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flipTurn { 0% { transform: scaleX(1); } 50% { transform: scaleX(.04); } 100% { transform: scaleX(1); } }
@keyframes hideMid { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes showMid { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 22% { transform: translateY(-7%); } 44% { transform: translateY(0) scale(1.03, .97); } 64% { transform: translateY(-3%); } 82% { transform: translateY(0); } }
@keyframes tilt { from { transform: rotate(-2deg); } to { transform: rotate(2.2deg); } }

/* 03 喷漆：低机位弹入 → 前倾喷涂（轻微抖动）→ 涂鸦字逐笔画出 */
.actor.on.a-spray .box { animation: popUp .9s var(--ease-back) both; }
.actor.on.a-spray .body { animation: leanSpray 1.8s ease-in-out .9s both, idleSway 4s ease-in-out 2.8s infinite alternate; }
@keyframes popUp { from { transform: translateY(14%) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes leanSpray { 0% { transform: none; } 12% { transform: rotate(-3deg) translateX(-2%); } 20%, 40%, 60%, 80% { transform: rotate(-3.4deg) translateX(-2.3%); } 30%, 50%, 70% { transform: rotate(-2.6deg) translateX(-1.8%); } 100% { transform: none; } }
.graffiti { position: absolute; left: 33%; top: 7%; width: min(42vw, 620px); z-index: 3; visibility: hidden; pointer-events: none; overflow: visible; }
.graffiti text { font-family: var(--script); font-size: 150px; font-weight: 700; }
.graffiti .g-glow { fill: none; stroke: rgba(255, 92, 128, .28); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.graffiti .g-line { fill: none; stroke: var(--pome); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.graffiti .g-fill { fill: url(#gGrad); opacity: 0; }
.graffiti .g-heart { fill: none; stroke: var(--pome-hot); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.graffiti .g-drip { fill: var(--pome); transform-box: fill-box; transform-origin: top; transform: scaleY(0); }
.graffiti.on { visibility: visible; }
.graffiti.on .g-glow, .graffiti.on .g-line { animation: draw 1.7s ease-in-out 1s forwards; }
.graffiti.on .g-fill { animation: fadeIn .6s ease 2.5s forwards; }
.graffiti.on .g-heart { animation: draw .7s ease-out 2.6s forwards; }
.graffiti.on .g-drip { animation: drip 1.4s ease-in 2.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes drip { to { transform: scaleY(1); } }

/* 04 扶帽眨眼：从左侧推近 → 害羞闭眼 → 睁眼 → 周期眨眼 + 呼吸 */
.actor.on.a-beret .box { animation: snowIn 1.6s var(--ease-out) both; }
.actor.on.a-beret .body { animation: breathe 4.2s ease-in-out 1.6s infinite; }
.a-beret img.shut { opacity: 1; }
.actor.on.a-beret img.shut { animation: openEyes .25s ease 1.5s forwards, blink 4.6s linear 2.4s infinite; }
@keyframes snowIn { from { transform: translateX(-16%) scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.016) translateY(-.6%); } }
@keyframes openEyes { to { opacity: 0; } }
@keyframes blink { 0%, 91%, 97%, 100% { opacity: 0; } 92%, 96% { opacity: 1; } }

/* 05 霓虹剪影 → 亮灯（照搬原片“From a thought”发光轮廓，再自拟比心亮灯） */
.a-glow img.glow { position: absolute; left: -11.74%; top: -5.22%; width: 123.48%; height: 110.43%; opacity: 0; }
.a-glow img.lit { opacity: 0; }
.actor.on.a-glow .box { animation: rise 1.4s var(--ease-out) both; }
.actor.on.a-glow img.glow { animation: fadeIn 1s ease .2s forwards, pulse 2.4s ease-in-out 1.2s infinite alternate; }
.actor.on.a-glow img.lit { animation: lightsOn 1.3s var(--ease-out) 2.3s forwards; }
.actor.on.a-glow .body { animation: hop 1s ease-out 2.4s both, idleSway 4s ease-in-out 3.5s infinite alternate; }
@keyframes rise { from { transform: translateY(8%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { from { opacity: .72; } to { opacity: 1; } }
@keyframes lightsOn { 0% { opacity: 0; transform: scale(.985); } 25% { opacity: .9; } 35% { opacity: .5; } 50% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* 06 花中坐姿：由下浮现 → 随风轻摆 */
.actor.on.a-sit .box { animation: bloomUp 1.5s var(--ease-out) both; }
.actor.on.a-sit .body { animation: sway 5s ease-in-out 1.5s infinite alternate; }
@keyframes bloomUp { from { transform: translateY(20%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.a-sit { height: 66%; }

/* 对话气泡 */
.bubble { position: absolute; z-index: 8; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(80, 30, 35, .16); pointer-events: none; opacity: 0; transform-origin: 0 100%; }
.bubble.show { animation: bubble 2.4s var(--ease-back) forwards; }
@keyframes bubble { 0% { opacity: 0; transform: scale(.4) translateY(10px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9) translateY(-8px); } }

/* 07 四种心情：真人照片扇形卡牌 */
.fan { position: absolute; right: clamp(10px, 9vw, 150px); top: 50%; width: min(44vw, 620px); height: min(70vh, 600px); transform: translateY(-50%); z-index: 5; pointer-events: none; visibility: hidden; }
.fan.on { visibility: visible; pointer-events: auto; }
.card { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 3 / 4; margin: -28% 0 0 -21%; border-radius: 18px; overflow: hidden; background: #fff; padding: 8px 8px 34px; box-shadow: 0 12px 28px rgba(80, 30, 35, .18);
  opacity: 0; transform: translateY(40%) rotate(0) scale(.8); transition: transform .9s cubic-bezier(.2, .9, .25, 1.1), opacity .5s ease, box-shadow .3s ease; }
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.card b { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font: italic 14px/1 var(--serif); color: var(--ink-soft); }
.fan.on .card { opacity: 1; }
.fan.on .card:nth-child(1) { transform: translate(-86%, 6%) rotate(-14deg); transition-delay: .05s; }
.fan.on .card:nth-child(2) { transform: translate(-31%, -4%) rotate(-5deg); transition-delay: .12s; }
.fan.on .card:nth-child(3) { transform: translate(31%, -4%) rotate(5deg); transition-delay: .19s; }
.fan.on .card:nth-child(4) { transform: translate(86%, 6%) rotate(14deg); transition-delay: .26s; }
.fan.on .card:hover { z-index: 3; box-shadow: 0 34px 70px rgba(80, 30, 35, .3); transition-delay: 0s; }
.fan.on .card:nth-child(1):hover { transform: translate(-86%, -6%) rotate(-8deg) scale(1.08); }
.fan.on .card:nth-child(2):hover { transform: translate(-31%, -14%) rotate(-2deg) scale(1.08); }
.fan.on .card:nth-child(3):hover { transform: translate(31%, -14%) rotate(2deg) scale(1.08); }
.fan.on .card:nth-child(4):hover { transform: translate(86%, -6%) rotate(8deg) scale(1.08); }

/* ---------- 右上信息卡（实色背景，不用 backdrop-filter） ---------- */
.panel { position: absolute; right: clamp(16px, 3vw, 44px); top: 92px; z-index: 7; width: 236px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 30px rgba(80, 30, 35, .08); display: flex; gap: 12px; align-items: center; }
.dark .panel { background: rgba(40, 16, 24, .92); border-color: rgba(255, 92, 128, .25); color: #fbe9ec; }
.panel .thumb { width: 54px; height: 54px; border-radius: 10px; background-size: cover; background-position: center top; flex: none; }
.panel small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--pome); margin-bottom: 4px; }
.dark .panel small { color: var(--pome-hot); }
.panel strong { display: block; font-size: 13px; line-height: 1.4; }
.panel .eq { display: flex; gap: 2px; align-items: flex-end; height: 12px; margin-top: 6px; }
.panel .eq i { width: 3px; height: 12px; background: var(--pome); border-radius: 2px; transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; }
.panel .eq i:nth-child(2) { animation-delay: .2s; } .panel .eq i:nth-child(3) { animation-delay: .4s; } .panel .eq i:nth-child(4) { animation-delay: .1s; } .panel .eq i:nth-child(5) { animation-delay: .3s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.panel.glitch { animation: glitch .45s steps(2) 1; }
@keyframes glitch { 0% { clip-path: inset(0 0 60% 0); transform: translateX(-6px); } 25% { clip-path: inset(40% 0 20% 0); transform: translateX(5px); } 50% { clip-path: inset(10% 0 70% 0); transform: translateX(-3px); } 75% { clip-path: inset(70% 0 0 0); transform: translateX(4px); } 100% { clip-path: inset(0); transform: none; } }

/* 左下进度 / 章节点 / 右下提示 */
.hud { position: absolute; left: clamp(20px, 6vw, 96px); bottom: 34px; z-index: 7; display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); }
.hud .num { font: italic 22px/1 var(--serif); color: var(--ink); letter-spacing: 0; min-width: 2.2em; }
.hud .bar { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hud .bar i { position: absolute; inset: 0; background: var(--pome); transform-origin: left; transform: scaleX(var(--p, 0)); }
.dots { position: absolute; right: clamp(14px, 2.2vw, 30px); top: 50%; z-index: 7; display: grid; gap: 12px; transform: translateY(-50%); }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(43, 27, 29, .22); cursor: pointer; transition: transform .4s var(--ease-back), background .3s; }
.dots button.on { background: var(--pome); transform: scale(1.6); }
.dark .hud, .dark .hint { color: rgba(251, 233, 236, .6); }
.dark .hud .num { color: #fbe9ec; }
.dark .hud .bar { background: rgba(255, 255, 255, .15); }
.dark .dots button { background: rgba(255, 255, 255, .25); }
.dark .dots button.on { background: var(--pome-hot); }
.hint { position: absolute; right: clamp(46px, 6vw, 80px); bottom: 34px; z-index: 7; font-size: 11px; letter-spacing: .24em; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; transition: opacity .5s; }
.hint.gone { opacity: 0; }
.hint i { width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: hintLine 1.8s ease-in-out infinite; }
@keyframes hintLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 转场遮罩（全部只动 transform/opacity，切章在遮罩完全盖住的 ~440ms 处发生） ---------- */
.tr { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; visibility: hidden; }
.tr.go { visibility: visible; }
/* 丝带擦除：腮红 + 石榴红两条斜带 */
.wipe i { position: absolute; top: 0; bottom: 0; left: -35%; width: 170%; transform: translate3d(120%, 0, 0); }
.wipe i:nth-child(1) { background: linear-gradient(104deg, transparent 0 12%, var(--blush) 12% 88%, transparent 88%); }
.wipe i:nth-child(2) { background: linear-gradient(104deg, transparent 0 12%, var(--pome) 12% 88%, transparent 88%); }
.wipe i:nth-child(2)::after { content: "ESTHER"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: italic 400 clamp(60px, 12vw, 200px)/1 var(--serif); color: rgba(255, 255, 255, .14); white-space: nowrap; }
.wipe.go i:nth-child(1) { animation: wipe .95s cubic-bezier(.7, 0, .3, 1) forwards; }
.wipe.go i:nth-child(2) { animation: wipe .95s cubic-bezier(.7, 0, .3, 1) .07s forwards; }
@keyframes wipe { 0% { transform: translate3d(120%, 0, 0); } 36%, 62% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-120%, 0, 0); } }
/* 圆形光圈：进入 / 离开夜景 */
.iris i { position: absolute; left: var(--ix, 50%); top: var(--iy, 50%); width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; border-radius: 50%; background: var(--iris-c, var(--night)); transform: scale(0); }
.iris.go i { animation: iris 1s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes iris { 0% { transform: scale(0); opacity: 1; } 44% { transform: scale(1); opacity: 1; } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
/* 百叶：六条竖向依次落下再收起 */
.shutter { display: flex; }
.shutter i { flex: 1; height: 100%; background: var(--cream); transform: scaleY(0); transform-origin: top; box-shadow: inset -1px 0 0 rgba(179, 19, 47, .08); }
.shutter.go i { animation: shut .82s cubic-bezier(.7, 0, .3, 1) forwards; }
.shutter.go i:nth-child(2) { animation-delay: .02s; } .shutter.go i:nth-child(3) { animation-delay: .04s; } .shutter.go i:nth-child(4) { animation-delay: .06s; } .shutter.go i:nth-child(5) { animation-delay: .08s; } .shutter.go i:nth-child(6) { animation-delay: .1s; }
@keyframes shut { 0% { transform: scaleY(0); transform-origin: top; } 40% { transform: scaleY(1); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* 光束 + 闪白（照搬原片硬切时的闪光） */
.streak i { position: absolute; top: -50%; left: 0; width: 26vw; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95) 45%, rgba(255, 210, 220, .9) 55%, transparent); transform: translate3d(-40vw, 0, 0) rotate(18deg); }
.streak b { position: absolute; inset: 0; background: #fff; opacity: 0; }
.streak.go i { animation: streak .8s cubic-bezier(.6, 0, .3, 1) forwards; }
.streak.go b { animation: flash .8s ease forwards; }
@keyframes streak { to { transform: translate3d(130vw, 0, 0) rotate(18deg); } }
@keyframes flash { 0%, 38% { opacity: 0; } 52% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 跑马灯分隔带 ---------- */
.marquee { overflow: hidden; background: var(--pome); color: #fff; padding: 16px 0; transform: rotate(-1.6deg); margin: -8px -2vw 0; position: relative; z-index: 2; }
.marquee div { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font: italic 400 clamp(22px, 2.6vw, 36px)/1 var(--serif); white-space: nowrap; padding-right: 40px; }
.marquee span b { font: 800 .8em/1 var(--sans); letter-spacing: .1em; margin: 0 22px; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 通用内容区 ---------- */
.sec { scroll-margin-top: 40px; position: relative; padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 96px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(38px, 5.6vw, 84px); line-height: .98; font-weight: 800; text-transform: uppercase; }
.sec-head h2 em { display: block; font: italic 400 1em/1 var(--serif); color: var(--pome); text-transform: none; }
.sec-head p { max-width: 26em; color: var(--ink-soft); line-height: 1.8; font-size: 15px; }
.reveal { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s ease, transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* 图片幕布揭开：石榴红幕布 scaleX 收走 + 图片由 1.18 缩回 */
.mask { position: relative; overflow: hidden; }
.mask::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--pome); transform-origin: right; transition: transform 1.1s cubic-bezier(.77, 0, .18, 1); transition-delay: calc(var(--d, 0s) + .15s); pointer-events: none; }
.mask img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--d, 0s) + .2s); }
.mask.in::after { transform: scaleX(0); }
.mask.in img { transform: scale(1); }

/* 档案 */
.profile { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.portrait-wrap { position: relative; }
.portrait { border-radius: 28px; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(80, 30, 35, .18); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait span { position: absolute; left: 18px; bottom: 18px; z-index: 3; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); font: italic 15px/1 var(--serif); }
.portrait-wrap .mini { position: absolute; right: -6%; bottom: -8%; width: 34%; z-index: 4; pointer-events: none; animation: miniFloat 3.6s ease-in-out infinite alternate; }
@keyframes miniFloat { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-10px) rotate(2deg); } }
.bio { font-size: clamp(15px, 1.25vw, 18px); line-height: 2; color: var(--ink-soft); margin-bottom: 30px; }
.bio b { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.facts small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--pome); margin-bottom: 6px; }
.facts strong { font-size: 16px; font-weight: 600; }

/* 作品：横向拖动轨道 */
.works { background: var(--ink); color: var(--cream); overflow: hidden; }
.works .sec-head p { color: rgba(251, 244, 239, .6); }
.works .sec-head h2 em { color: var(--pome-soft); }
.track { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 26px; scroll-snap-type: x mandatory; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--pome) transparent; }
.track.drag { cursor: grabbing; scroll-snap-type: none; }
.work { position: relative; overflow: hidden; flex: 0 0 clamp(220px, 22vw, 290px); scroll-snap-align: start; padding: 24px 22px; border-radius: 22px; background: #352426; border: 1px solid rgba(255, 255, 255, .1); transition: transform .4s var(--ease-out); user-select: none; }
.work::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #8c1a2e, #4a1d25); opacity: 0; transition: opacity .35s ease; }
.work > * { position: relative; }
.work:hover { transform: translateY(-6px); }
.work:hover::before { opacity: 1; }
.work .yr { font: italic 40px/1 var(--serif); color: var(--pome-soft); }
.work h3 { margin: 18px 0 6px; font-size: 22px; }
.work .role { font-size: 13px; color: rgba(251, 244, 239, .7); }
.work .note { margin-top: 16px; font-size: 13px; line-height: 1.7; color: rgba(251, 244, 239, .55); }
.work.star { background: linear-gradient(160deg, #7a1527, #45202a); border-color: rgba(232, 163, 173, .4); }

/* 高光荣誉 */
.honors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.honor { position: relative; padding: 30px 26px; border-radius: 24px; background: #fff; box-shadow: 0 14px 40px rgba(80, 30, 35, .07); overflow: hidden; }
.honor.in:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: .4s; }
.honor .big { font: italic 600 clamp(46px, 5vw, 68px)/1 var(--serif); color: var(--pome); font-variant-numeric: tabular-nums; }
.honor h4 { margin: 14px 0 8px; font-size: 17px; }
.honor p { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
.honor::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(179, 19, 47, .14), transparent 70%); }

/* 四季画廊 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { position: relative; border-radius: 22px; aspect-ratio: 3 / 4.4; cursor: zoom-in; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease; }
.shot:nth-child(even) { margin-top: 48px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.in:hover img { transform: scale(1.06); transition-delay: 0s; transition-duration: 1s; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 40px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(30, 10, 14, .6)); font: italic 20px/1.2 var(--serif); }
.shot figcaption small { display: block; font: 11px/1.6 var(--sans); letter-spacing: .2em; opacity: .85; font-style: normal; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(30, 14, 16, .92); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; cursor: zoom-out; }
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88vh; max-width: 90vw; border-radius: 18px; transform: scale(.9); transition: transform .5s cubic-bezier(.2, .9, .3, 1.1); }
.lightbox.on img { transform: scale(1); }

/* 小石榴 / 结尾 */
.fans { text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(179, 19, 47, .16), transparent 60%), var(--blush); overflow: hidden; }
.fans h2 { font-size: clamp(44px, 8vw, 130px); font-weight: 800; line-height: .95; text-transform: uppercase; }
.fans h2 em { display: block; font: italic 400 1em/1 var(--serif); color: var(--pome); text-transform: none; }
.fans p { margin: 26px auto 34px; max-width: 34em; color: var(--ink-soft); line-height: 1.9; }
.fans .wave { width: clamp(150px, 16vw, 230px); margin: 0 auto 10px; cursor: pointer; }
.fans .wave img { width: 100%; animation: miniFloat 3s ease-in-out infinite alternate; }
.mag { display: inline-block; transition: transform .35s var(--ease-out); will-change: transform; }
.pome-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 999px; background: var(--pome); color: #fff; font-weight: 700; letter-spacing: .1em; border: 0; cursor: pointer; font-size: 15px; box-shadow: 0 14px 34px rgba(179, 19, 47, .35); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.pome-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: glint 3.4s ease-in-out 1s infinite; }
.pome-btn:active { transform: scale(.94); }
.counter { margin-top: 18px; font: italic 18px/1 var(--serif); color: var(--ink-soft); }
.heart { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; font-size: 20px; animation: heartFly 1.2s ease-out forwards; }
@keyframes heartFly { 0% { opacity: 1; transform: translate(var(--x), var(--y)) scale(.6) rotate(0); } 100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1.3) rotate(var(--rot)); } }
footer { padding: 34px clamp(20px, 6vw, 96px); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line); line-height: 1.8; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 移动端：文字在上、角色在下 ---------- */
@media (max-width: 820px) {
  .nav ul { display: none; }
  .copy { top: 84px; transform: none; max-width: 90vw; }
  .copy p, .copy .tag { display: none; }
  .copy .l1 { font-size: clamp(34px, 10vw, 56px); }
  .copy .l2 { font-size: clamp(30px, 9vw, 50px); }
  .actors { width: 100%; right: 0; height: 66%; top: auto; }
  .actor { bottom: 9%; }
  .panel, .dots { display: none; }
  .graffiti { left: 6%; top: 30%; width: 70vw; }
  .fan { width: 92vw; right: 4vw; top: 66%; height: 44vh; }
  .profile { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .veil { background: linear-gradient(180deg, var(--cream) 0%, rgba(251, 244, 239, .72) 34%, rgba(251, 244, 239, .2) 70%) !important; }
  .hint { right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .tr { display: none; }
}

/* 开场期间预热：所有角色 / 卡牌 / 涂鸦在开场遮罩后面显示一帧 */
.warm .actor, .warm .fan, .warm .graffiti { visibility: visible !important; opacity: 1 !important; }
.warm .card { opacity: 1; }

/* =====================================================================
   v3 · 真动作萌版角色（分层骨骼 + 逐帧步态）
   ===================================================================== */
.spr { position: relative; overflow: hidden; aspect-ratio: var(--ar); }
.spr img { position: absolute; inset: 0 auto auto 0 !important; width: 400% !important; height: 100% !important; max-width: none; }
.a-walk .body.walking .spr img { animation: walkCycle .56s steps(4) infinite; }
.a-walk .body.idle .spr img { transform: translateX(-25%); }
@keyframes walkCycle { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.chi { --h: 250px; --st: .7s; position: relative; display: inline-flex; flex-direction: column; align-items: center; flex: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chi.sm { --h: 190px; } .chi.xs { --h: 128px; }
.chi-mv, .chi-hop { position: relative; transform-origin: 50% 100%; }
.chi .rg, .chi .spr { position: relative; height: var(--h); aspect-ratio: var(--ar); }
.rg .pt { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.chi-sh { position: absolute; left: 50%; bottom: -6px; width: calc(var(--h) * .42); height: calc(var(--h) * .06); margin-left: calc(var(--h) * -.21); border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 20, 25, .28), rgba(60, 20, 25, 0)); }
.chi-tag { margin-top: 14px; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); white-space: nowrap; opacity: .85; transition: color .3s, transform .4s var(--ease-back); }
.chi:hover .chi-tag, .chi.solo .chi-tag { color: var(--pome); transform: translateY(-3px); }

/* 走路通用：两条腿在裙下交替抬起，身体轻微起伏 */
@keyframes legStep { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 22% { transform: translateY(-9%) rotate(-3deg); } }
@keyframes bob2 { 0%, 50%, 100% { transform: translateY(0); } 25%, 75% { transform: translateY(-1.1%); } }
.c-cat .legL, .c-beach .legL, .c-drinks .legL, .c-blue .legL { animation: legStep var(--st) ease-in-out infinite; }
.c-cat .legR, .c-beach .legR, .c-drinks .legR, .c-blue .legR { animation: legStep var(--st) ease-in-out infinite; animation-delay: calc(var(--st) * -.5); }
.c-cat .chi-hop, .c-beach .chi-hop { animation: bob2 var(--st) ease-in-out infinite; }

/* 猫耳：抖耳朵 */
@keyframes earL { 0%, 58%, 100% { transform: rotate(0); } 66% { transform: rotate(-13deg); } 74% { transform: rotate(5deg); } 82% { transform: rotate(-8deg); } 90% { transform: rotate(2deg); } }
@keyframes earR { 0%, 58%, 100% { transform: rotate(0); } 66% { transform: rotate(13deg); } 74% { transform: rotate(-5deg); } 82% { transform: rotate(8deg); } 90% { transform: rotate(-2deg); } }
.c-cat .earL { animation: earL 2.6s ease-in-out infinite; }
.c-cat .earR { animation: earR 2.6s ease-in-out infinite; animation-delay: -.08s; }

/* 贝雷：边走边甩手（手臂周期 = 两步） */
.c-beach { --st: .74s; }
@keyframes armSwing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(10deg); } }
.c-beach .armR { animation: armSwing calc(var(--st) * 2) ease-in-out infinite; animation-delay: calc(var(--st) * -.25); }

/* 兔兔：蓄力-起跳-收腿-落地压扁 */
.c-bunny { --st: .95s; }
@keyframes hop { 0% { transform: translateY(0) scale(1.05, .93); } 14% { transform: translateY(-2%) scale(.95, 1.06); } 42% { transform: translateY(-15%) scale(1, 1); } 72% { transform: translateY(-1%) scale(.97, 1.03); } 84% { transform: translateY(0) scale(1.06, .92); } 100% { transform: translateY(0) scale(1.05, .93); } }
@keyframes tuckL { 0%, 12%, 80%, 100% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-8%) rotate(5deg); } }
@keyframes tuckR { 0%, 12%, 80%, 100% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-8%) rotate(-5deg); } }
@keyframes shHop { 0%, 84%, 100% { transform: scale(1.08); opacity: 1; } 42% { transform: scale(.62); opacity: .45; } }
.c-bunny .chi-hop { animation: hop var(--st) cubic-bezier(.4, 0, .4, 1) infinite; }
.c-bunny .legL { animation: tuckL var(--st) ease-in-out infinite; }
.c-bunny .legR { animation: tuckR var(--st) ease-in-out infinite; }
.c-bunny .chi-sh { animation: shHop var(--st) ease-in-out infinite; }

/* 双杯：左右摇摆踏步 */
.c-drinks { --st: 1.2s; }
@keyframes sway { 0%, 100% { transform: rotate(-3.2deg) translateX(-1.5%); } 50% { transform: rotate(3.2deg) translateX(1.5%); } }
.c-drinks .chi-hop { animation: sway var(--st) ease-in-out infinite; }

/* 天使：扑翅 + 悬浮，小腿轻晃 */
@keyframes wingL { 0%, 100% { transform: rotate(0) scaleX(1); } 50% { transform: rotate(13deg) scaleX(.86); } }
@keyframes wingR { 0%, 100% { transform: rotate(0) scaleX(1); } 50% { transform: rotate(-13deg) scaleX(.86); } }
@keyframes float { 0%, 100% { transform: translateY(-1%); } 50% { transform: translateY(-7%); } }
@keyframes shFloat { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.78); opacity: .55; } }
@keyframes dangle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.c-angel .wingL { animation: wingL .9s cubic-bezier(.45, 0, .55, 1) infinite; }
.c-angel .wingR { animation: wingR .9s cubic-bezier(.45, 0, .55, 1) infinite; }
.c-angel .chi-hop { animation: float 2.7s ease-in-out infinite; }
.c-angel .chi-sh { animation: shFloat 2.7s ease-in-out infinite; }
.c-angel .legL { animation: dangle 1.35s ease-in-out infinite; }
.c-angel .legR { animation: dangle 1.35s ease-in-out infinite reverse; }

/* 舞台蓝：律动（扭胯 + 弹跳 + 踏步） */
.c-blue { --st: 1s; }
@keyframes groove { 0%, 100% { transform: translate(-2%, 0) rotate(-4deg); } 25% { transform: translate(0, -2.5%) rotate(0); } 50% { transform: translate(2%, 0) rotate(4deg); } 75% { transform: translate(0, -2.5%) rotate(0); } }
.c-blue .chi-hop { animation: groove var(--st) ease-in-out infinite; }

/* 抱抱：大跳（下蹲蓄力 → 腾空收腿 → 落地缓冲） */
.c-jump { --st: 1.5s; }
@keyframes bigJump { 0%, 100% { transform: translateY(0) scale(1); } 18% { transform: translateY(0) scale(1.07, .9); } 30% { transform: translateY(-6%) scale(.94, 1.08); } 50% { transform: translateY(-22%) scale(1); } 68% { transform: translateY(-3%) scale(.97, 1.04); } 76% { transform: translateY(0) scale(1.08, .9); } 88% { transform: translateY(0) scale(.99, 1.01); } }
@keyframes jTuck { 0%, 26%, 74%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10%) rotate(var(--r, 6deg)); } }
@keyframes shJump { 0%, 100%, 76% { transform: scale(1); opacity: 1; } 50% { transform: scale(.5); opacity: .35; } }
.c-jump .chi-hop { animation: bigJump var(--st) cubic-bezier(.4, 0, .4, 1) infinite; }
.c-jump .legL { --r: 6deg; animation: jTuck var(--st) ease-in-out infinite; }
.c-jump .legR { --r: -6deg; animation: jTuck var(--st) ease-in-out infinite; }
.c-jump .chi-sh { animation: shJump var(--st) ease-in-out infinite; }

/* 采茶：裙摆随步子摆动 + 双手奉上茶盘 */
.c-tea { --st: 1.1s; }
@keyframes skirt { 0%, 100% { transform: skewX(-3deg); } 50% { transform: skewX(3deg); } }
@keyframes tray { 0%, 30%, 100% { transform: translateY(0) rotate(0); } 50%, 68% { transform: translateY(-7%) rotate(-3deg); } }
@keyframes teaBob { 0%, 50%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-.9%) rotate(-1deg); } 75% { transform: translateY(-.9%) rotate(1deg); } }
.c-tea .skirt { transform-origin: 50% 0 !important; animation: skirt var(--st) ease-in-out infinite; }
.c-tea .tray { animation: tray 2.8s ease-in-out infinite; }
.c-tea .chi-hop { animation: teaBob var(--st) ease-in-out infinite; }


/* 悬停 / 点击：加戏（转圈小跳） */
@keyframes encore { 0% { transform: none; } 30% { transform: translateY(-16%) rotate(-8deg) scale(1.04); } 60% { transform: translateY(-4%) rotate(6deg); } 80% { transform: translateY(0) scale(1.05, .95); } 100% { transform: none; } }
.chi .rg, .chi .spr { transform-origin: 50% 100%; }
.chi:hover .rg, .chi.solo .rg, .chi:hover .spr, .chi.solo .spr { animation: encore .8s cubic-bezier(.3, .7, .3, 1) 1; }
.chi::after { content: "❤"; position: absolute; left: 50%; top: 2%; color: var(--pome-hot); font-size: calc(var(--h) * .09); opacity: 0; transform: translate(-50%, 0) scale(.4); pointer-events: none; }
.chi:hover::after, .chi.solo::after { animation: popHeart .9s ease-out 1; }
@keyframes popHeart { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.4); } 30% { opacity: 1; transform: translate(-50%, -14px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(.9); } }

/* 不在视野内一律暂停，省电不掉帧 */
.chi-zone:not(.play) .chi, .chi-zone:not(.play) .chi * { animation-play-state: paused !important; }

/* ---------- 2026 时间线 ---------- */
.tl { position: relative; max-width: 860px; margin: 0 auto; padding: 10px 0 40px 120px; }
.tl-line { position: absolute; left: 70px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: rgba(179, 19, 47, .12); overflow: hidden; }
.tl-line i { position: absolute; inset: 0; background: linear-gradient(var(--pome-hot), var(--pome)); transform-origin: 50% 0; transform: scaleY(0); }
.tl-walker { position: absolute; left: 72px; top: 0; z-index: 3; margin-left: -46px; pointer-events: none; }
.tl-walker .chi { --h: 120px; }
.tl-walker:not(.moving) .chi * { animation-play-state: paused !important; }
.tl-item { position: relative; padding: 26px 0 26px 40px; border-bottom: 1px dashed rgba(179, 19, 47, .16); }
.tl-dot { position: absolute; left: -56px; top: 36px; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); border: 3px solid var(--pome); }
.tl-item time { font: italic 600 15px/1 var(--serif); color: var(--pome); letter-spacing: .04em; }
.tl-item h3 { margin: 8px 0 6px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.tl-item p { color: var(--ink-soft); line-height: 1.8; font-size: 15px; max-width: 34em; }
.tl-end { padding: 40px 0 0 40px; font: italic 400 clamp(28px, 4vw, 52px)/1 var(--serif); color: var(--pome); }
.tl-end span { display: inline-block; animation: dots 1.4s steps(4) infinite; overflow: hidden; vertical-align: bottom; width: 1.1em; }
@keyframes dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }

/* ---------- 小剧场 ---------- */
.parade { background: linear-gradient(180deg, var(--cream), #f6e6e3 60%, var(--cream)); overflow: hidden; }
.pstage { position: relative; padding: 30px 0 0; }
.pfloor { position: absolute; left: -10%; right: -10%; bottom: 40px; height: 120px; background: radial-gradient(ellipse at 50% 0, rgba(179, 19, 47, .10), transparent 70%); }
.prow { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 1.6vw, 26px); flex-wrap: wrap; row-gap: 40px; }
.ptrack { position: relative; height: 230px; margin-top: 30px; border-top: 1px dashed rgba(179, 19, 47, .2); }
.ptrack .chi { --h: 200px; position: absolute; left: 0; bottom: 18px; }
.ptrack .chi-tag { position: absolute; bottom: -24px; }


/* ---------- 十二种心情 ---------- */
.grp { position: relative; margin-bottom: clamp(70px, 9vw, 130px); }
.grp-h { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.grp-h span { font: italic 400 clamp(40px, 5vw, 68px)/1 var(--serif); color: var(--pome); }
.grp-h h3 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; text-transform: uppercase; }
.grp-h p { color: var(--ink-soft); font-size: 15px; }
.ph { position: relative; overflow: hidden; border-radius: 22px; cursor: zoom-in; background: #eadbd8; margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.ph:hover img { transform: scale(1.05); }
.ph figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 3; color: #fff; font-weight: 800; font-size: 20px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.ph figcaption small { display: block; font-size: 10px; letter-spacing: .2em; font-weight: 600; opacity: .85; margin-bottom: 4px; }
.ph::before { content: ""; position: absolute; inset: 55% 0 0; z-index: 2; background: linear-gradient(transparent, rgba(40, 10, 14, .45)); pointer-events: none; }
.mask.ph img { transform: scale(1.14); }
.mask.ph.in img { transform: scale(1); }
.mask.ph.in:hover img { transform: scale(1.05); }

.bento { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, 30vw)); gap: 16px; max-height: 860px; }
.bento .b-big { grid-row: span 2; }
.bento .b-tall { grid-row: span 2; }
.bento .ph:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.bento .ph:nth-of-type(4) { grid-column: 2; grid-row: 2; }
.bento-actors { position: absolute; right: 4%; top: -150px; display: flex; gap: 6px; z-index: 4; pointer-events: auto; }

.strip-walk { position: relative; height: 210px; margin-bottom: -18px; z-index: 4; pointer-events: none; }
.strip-walk .chi { position: absolute; bottom: 0; pointer-events: auto; }
.strip-walk .c-walk { left: 0; }
.strip-walk .c-drinks { right: 20%; } .strip-walk .c-jump { right: 6%; }
.film { overflow: hidden; margin: 0 calc(clamp(20px, 6vw, 96px) * -1); padding: 18px 0; background: var(--ink); }
.film-in { display: flex; gap: 16px; width: max-content; animation: film 46s linear infinite; padding: 0 8px; }
.film:hover .film-in { animation-play-state: paused; }
.film .ph { width: clamp(220px, 22vw, 320px); aspect-ratio: 3 / 4.2; border-radius: 10px; }
@keyframes film { to { transform: translate3d(-50%, 0, 0); } }
.chi-zone:not(.play) .film-in { animation-play-state: paused; }

.tall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tall .ph { aspect-ratio: 9 / 15; border-radius: 999px 999px 22px 22px; }
.tall .ph:nth-child(even) { transform: translateY(48px); }
.split::after, .split > .sp { content: ""; }
.split::after { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(var(--pome) 50%, #7e0c22 50%); transform-origin: 50% 50%; transition: transform 1s cubic-bezier(.77, 0, .18, 1) var(--d, 0s); }
.split.in::after { transform: scaleY(0); }
.split img { transform: scale(1.15); transition: transform 1.5s var(--ease-out) calc(var(--d, 0s) + .15s); }
.split.in img { transform: scale(1); }
.split.in:hover img { transform: scale(1.05); }
.dream-actors { display: flex; justify-content: center; gap: clamp(20px, 5vw, 70px); margin-top: 90px; }

/* ---------- 终章：全员谢幕 ---------- */
.lineup { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 1vw, 14px); flex-wrap: wrap; margin: 56px auto 0; max-width: 1100px; padding-bottom: 150px; }
.lineup-walk { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; overflow: hidden; }
.lineup-walk .chi { position: absolute; left: 0; bottom: 6px; }

@media (max-width: 860px) {
  .chi { --h: 170px; } .chi.sm { --h: 140px; } .chi.xs { --h: 96px; }
  .tl { padding-left: 76px; } .tl-line { left: 30px; } .tl-walker { left: 32px; margin-left: -34px; } .tl-walker .chi { --h: 90px; } .tl-dot { left: -52px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; max-height: none; }
  .bento .ph { aspect-ratio: 3 / 4; } .bento .b-big { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 4.4; }
  .bento .ph:nth-of-type(2), .bento .ph:nth-of-type(4) { grid-column: auto; grid-row: auto; }
  .bento .b-tall { grid-row: auto; }
  .bento-actors { top: -110px; }
  .tall { grid-template-columns: 1fr 1fr; } .tall .ph:nth-child(even) { transform: translateY(30px); }
  .ptrack .chi { --h: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .chi, .chi *, .film-in { animation: none !important; }
}
html, body { overflow-x: clip; }
.lineup .chi.xs { --h: 168px; }
@media (max-width: 860px) {
  .lineup .chi.xs { --h: 104px; }
  .g-cozy .grp-h { padding-right: 120px; }
  .strip-walk { height: 160px; }
  .dream-actors { margin-top: 60px; }
}

.perch { position: relative; height: 0; z-index: 4; }
.perch .bento-actors { position: absolute; right: 4%; top: auto; bottom: -8px; }
@media (max-width: 860px) {
  .g-cozy .grp-h { padding-right: 150px; }
  .perch .chi.sm { --h: 104px; }
  .lineup .chi.xs { --h: 84px; }
  .lineup { gap: 0; }
}

/* ===== 红裙走路 v3.1：分层腿部骨骼，连续摆腿（替换掉之前的逐帧图，那组帧里有一帧画成了三条腿） ===== */
.c-walk, .a-walk { --wt: .9s; }
@keyframes legWalk {
  0%   { transform: rotate(39deg) scaleY(1);   animation-timing-function: ease-out; }
  25%  { transform: rotate(14deg) scaleY(.9);  animation-timing-function: ease-in; }
  50%  { transform: rotate(-11deg) scaleY(1);  animation-timing-function: linear; }
  100% { transform: rotate(39deg) scaleY(1); }
}
@keyframes walkBob {
  0%, 50%, 100% { transform: translateY(0); animation-timing-function: ease-out; }
  25%, 75%      { transform: translateY(-3.2%); animation-timing-function: ease-in; }
}
.c-walk .legN, .a-walk .body.walking .legN { animation: legWalk var(--wt) infinite; }
.c-walk .legF, .a-walk .body.walking .legF { animation: legWalk var(--wt) infinite; animation-delay: calc(var(--wt) * -.5); }
.c-walk .chi-hop, .a-walk .body.walking .rg { animation: walkBob var(--wt) infinite; }
.a-walk .body.walking { animation: none; }
.a-walk .body.idle .legN { transform: rotate(8deg); }
.a-walk .body.idle .legF { transform: rotate(18deg); }
.a-walk .legN, .a-walk .legF { transition: transform .35s ease; }
.stack .rg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack .rg .pt { inset: auto; }
/* 横穿：整体平移（匀速，速度 = 支撑脚后移速度，脚不打滑），走到头转身 */
.trk { animation: trX var(--dur, 20s) linear infinite; }
.trk .chi-mv { animation: flipX var(--dur, 20s) linear infinite; }
@keyframes trX { 0%, 100% { transform: translateX(var(--from, 0px)); } 49.5%, 50% { transform: translateX(var(--dist, 600px)); } }
@keyframes flipX { 0%, 49.7% { transform: scaleX(1); } 49.8%, 99.8% { transform: scaleX(-1); } 99.9%, 100% { transform: scaleX(1); } }
.ptrack .chi-tag { position: absolute; bottom: -28px; }
