/* ---------- 画廊 ----------
   第四轮（Fable 5.2，tools/consults/2026-11-17T13-31-01-953Z.md）：首屏照主人满意的那版模板重做——
   左边大字，右边用锦鲤真的那几层拼的活动拼贴；下面一条走字的条幅；每对画下面只剩两枚印和一笔箭头；
   “怎么玩”只在第一对旁边的便签里讲一次，“怎么做的”在两对画之间的深紫横带里讲一次。
   实心紫只有横带一处；金只有大字下那一笔和印。右上角那枚印是全站的开关。 */
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; color: var(--ink); text-decoration: none; font: 400 26px/1 var(--f-hand); letter-spacing: .04em; }
.brand .seal { align-self: center; }
.brand-sub { font: 400 13px/1 var(--f-hand); color: var(--muted); letter-spacing: .04em; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.top nav .act { font-size: 17px; }

/* 全站开关：一枚 32px 的印，点按区 44px。悬停时左边出手写小字 */
.seal-tog { all: unset; position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 6px; }
.seal-tog:focus-visible { outline: 2px solid var(--zi); outline-offset: 2px; }
.seal-tog .seal { width: 32px; height: 32px; font-size: 19px; transition: background-color .2s ease, color .2s ease; }
.seal-tog[aria-pressed="true"] .seal { background: none; color: var(--jin-ink); box-shadow: inset 0 0 0 1.5px var(--jin-ink); }
.seal-tog .tip { position: absolute; right: 100%; top: 50%; margin-top: -.75em; padding-right: 4px; font: 400 15px/1.5 var(--f-hand); color: var(--muted); white-space: nowrap; opacity: 0; transform: translateX(4px); transition: opacity .18s ease, transform .18s var(--spring); pointer-events: none; }
@media (hover: hover) { .seal-tog:hover .tip, .seal-tog:focus-visible .tip { opacity: 1; transform: none; } }
@media (max-width: 760px) { .brand { font-size: 24px; } .top nav .nav-how { display: none; } .top .wrap { flex-wrap: nowrap; } .top nav { flex-wrap: nowrap; gap: 0 14px; } }

/* 条幅斜着、横带和纸边的毛边都会出版心一点：横向裁掉，竖向照常 */
main { overflow-x: clip; }

/* ---------- 首屏：左大字，右拼贴 ---------- */
.hero { --s: 1; display: grid; grid-template-columns: minmax(0, 1fr) calc(440px * var(--s)); column-gap: 56px; align-items: center; padding-block: clamp(20px, 5vh, 56px) clamp(28px, 6vh, 60px); }
.hero.solo { grid-template-columns: minmax(0, 1fr); }
.hero h1 { font: 400 clamp(48px, 6.2vw, 72px)/1.25 var(--f-hand); margin: 0; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark svg { position: absolute; left: -3%; bottom: -.12em; width: 106%; height: .26em; overflow: visible; }
.hero.wait h1 { visibility: hidden; }

/* 拼贴：440×400 的框，纸片绝对定位；边是纸的毛边（滤镜只加在底纸上），画里的像素不动 */
.collage-box { width: calc(440px * var(--s)); height: calc(400px * var(--s)); justify-self: end; }
.collage { position: relative; width: 440px; height: 400px; transform: scale(var(--s)); transform-origin: 0 0; }
.pc { position: absolute; transform: rotate(var(--r, 0deg)); animation: boil 1.2s steps(1) infinite; animation-delay: var(--d, 0s); }
@keyframes boil {            /* 定格：每一圈用手轻轻挪三下，±1°、1 像素，各片错开 */
  0% { transform: rotate(var(--r, 0deg)) translate(0, 0); }
  33% { transform: rotate(calc(var(--r, 0deg) + 1deg)) translate(1px, -1px); }
  66% { transform: rotate(calc(var(--r, 0deg) - 1deg)) translate(-1px, 1px); }
}
.scrap { isolation: isolate; padding: 7px; display: flex; justify-content: center; align-items: flex-start; }
.scrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pbg, var(--mount)); filter: url(#deckle) drop-shadow(0 1px 1.5px rgba(44, 35, 64, .14)); }
.scrap.lav { --pbg: var(--scrap-q); }   /* 第七轮：浅色下用墙紫，白水纹才看得清 */
.scrap img { display: block; max-width: 100%; height: auto; }
#pc-pond img { width: 100%; height: 100%; -webkit-mask: var(--torn) center / 100% 100% no-repeat; mask: var(--torn) center / 100% 100% no-repeat; }
.leaf { height: auto; }
.tp { width: 64px; height: 18px; background: var(--peri); opacity: .45; }
.lb { font: 400 18px/1 var(--f-hand); color: var(--muted); white-space: nowrap; }
.lb.sum { display: flex; align-items: flex-start; gap: 2px; }
.lb.sum svg { width: 26px; height: 32px; margin-top: 8px; overflow: visible; }
.lb.sum path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) and (min-width: 761px) { .hero { --s: .82; column-gap: 32px; } }
@media (max-width: 760px) {
  .hero { --s: .68; grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-block: 8px 30px; }
  .hero h1 { font-size: 44px; }
  .collage-box { justify-self: center; }
  .lb { font-size: 21px; }                     /* 缩到 0.68 以后不小于 14px */
}

/* ---------- 条幅：通栏薰衣草纸带，上下撕边，斜 −0.6° ---------- */
.ticker { position: relative; isolation: isolate; overflow: hidden; overflow: clip; height: 52px; display: flex; align-items: center; white-space: nowrap; transform: rotate(-.6deg) scale(1.02); color: var(--ticker-ink); font: 400 20px/1 var(--f-hand); }
.ticker::before { content: ""; position: absolute; inset: 0 -30px; z-index: -1; background: var(--slip); filter: url(#tear); }
.ticker .run { display: inline-flex; align-items: center; animation: walk 38s linear infinite; will-change: transform; }
.ticker .run > span { margin: 0 1.1em; }
.ticker .run > i { display: inline-flex; color: var(--qiang); opacity: .8; }
.ticker .run > i svg { width: 15px; height: 15px; }
.ticker .run > i path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
@keyframes walk { to { transform: translateX(-25%); } }    /* 一串句子排了四遍，走完一遍正好接上 */
.ticker:hover .run { animation-play-state: paused; }
@media (max-width: 760px) { .ticker { height: 44px; font-size: 17px; } .ticker .run { animation-duration: 30s; } }

/* 全站停：拼贴和条幅一起停（会动的画由脚本卸掉） */
.still-all .pc, .still-all .ticker .run { animation-play-state: paused; }

/* ---------- 对幅 ---------- */
.pairs { display: flex; flex-direction: column; gap: 120px; margin-top: 56px; }
.pair { position: relative; min-width: 0; }
.half { position: relative; min-width: 0; }
.half > .open { all: unset; display: block; cursor: zoom-in; }
.half > .open:focus-visible { outline: 2px solid var(--zi); outline-offset: 6px; }
.half.living .art.live { cursor: grab; }
.pair-title { margin: 0 0 18px; writing-mode: horizontal-tb; letter-spacing: 0; padding: 6px 14px; font-size: 20px; display: inline-block; }

/* 竖幅、方幅（宽高比 < 1.6）：左右并列，在版心里居中；列宽 min(512, (100vh − 372) × 画框宽高比) */
.pair.tall { display: grid; justify-content: center; grid-template-columns: repeat(2, min(512px, max(240px, calc((100vh - 372px) * var(--ar, .75))), calc(50% - 28px))); column-gap: 56px; align-items: start; }
.pair.tall > .pair-title { grid-column: 1 / -1; justify-self: start; }
/* 横幅（≥ 1.6）：上下叠，上静下动；右边一栏宽 204，距画 56，放印和便签 */
.pair.wide { display: flex; flex-direction: column; gap: 32px; --fw: min(820px, calc(100% - 260px), max(420px, calc((100vh - 120px) * 1.1))); }
.pair.wide .half { display: grid; grid-template-columns: var(--fw) 204px; column-gap: 56px; align-items: start; }
.pair.wide .side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 2px; }

/* 印行：只有印（和一笔箭头）。“静”只是标记；“动”是这一对的开关 */
.cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; min-height: 44px; font: 400 15px/1.5 var(--f-hand); color: var(--ink); position: relative; }
.pair.wide .cap { margin-top: 0; }
.cap > .seal { width: 26px; height: 26px; font-size: 16px; margin-left: 9px; }
.seal.hollow { background: none; color: var(--jin-ink); box-shadow: inset 0 0 0 1.5px var(--jin-ink); }
.cap .seal-btn { margin: 0; }
.cap .seal-btn .seal { width: 26px; height: 26px; font-size: 16px; }
.cap .err { color: var(--muted); }
/* 两枚印之间一笔手绘箭头：竖幅横跨中间的空，横幅在右栏里朝下 */
.arrow { position: absolute; pointer-events: none; overflow: visible; color: var(--zi); opacity: .8; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow.side { width: 104px; height: 20px; left: calc(100% - 48px); top: 50%; margin-top: -10px; }
.arrow.down { width: 20px; height: 56px; }
.pair.wide .still .arrow.down { left: calc(var(--fw) + 56px + 12px); top: 52px; }
.pair.tall .arrow.down, .arrow.mob { display: none; }
.pair.wide .still .cap .arrow.side { display: none; }

/* 还没有动画版：只挂原画 */
.pair.single.wide { display: block; }
.pair.single.tall { grid-template-columns: min(512px, max(240px, calc((100vh - 372px) * var(--ar, .75))), 100%); }

/* 会动的那幅：鼠标抓、手指横拖都归镜头；竖着滑归页面；长按不弹系统菜单 */
.art.live { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.art.live img { -webkit-touch-callout: none; pointer-events: none; }
.art.live.grabbing, .art.live.grabbing * { cursor: grabbing; }
.art canvas { -webkit-touch-callout: none; }
/* 她登录后第一次看到会动的那幅：画下一张小字条，长按过一次就不再出现 */
.her-hint { margin: 10px 0 0; padding: 6px 14px 8px; --pbg: var(--lav); font: 400 15px/1.5 var(--f-hand); color: var(--ink); display: inline-block; transform: rotate(-1deg); }

/* 怎么玩：一张薰衣草撕纸便签，全站只出现一次 */
.howto { width: 204px; margin: 0; padding: 20px 16px 16px; --pbg: var(--lav); font: 400 18px/1.9 var(--f-hand); color: var(--ink); transform: rotate(var(--nt, .4deg)); }
.howto p { margin: 0; }
.howto .act { font-size: 18px; padding: 0; min-height: 0; display: inline; text-decoration: underline; text-decoration-color: var(--zi); text-underline-offset: 4px; }
.pair.tall .howto { margin-top: 20px; width: min(100%, 300px); }

/* 墙上空位：一张空的装裱白撕纸，顶上一条胶带 */
.slot-row { margin-top: 120px; }
.slot { width: 240px; height: 150px; margin: 0; display: grid; place-items: center; --pbg: var(--mount); font: 400 17px/1.6 var(--f-hand); color: var(--muted); transform: rotate(-.8deg); }

/* 装裱：底纸带毛边和一层很轻的投影；画本身用遮罩出边——她的画用照片里胶带留下的真实纸边，没有的才用生成的毛边。两幅用同一个遮罩，都不扭曲画里的像素 */
.mount { --pad: clamp(12px, 2vw, 20px); position: relative; isolation: isolate; padding: var(--pad); margin: 0; transform: rotate(var(--tilt, 0deg)); }
.mount::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mount);
  filter: url(#deckle) drop-shadow(0 1px 2px rgba(44, 35, 64, .10)) drop-shadow(0 8px 24px rgba(44, 35, 64, .06)); }
.art { position: relative; display: block; width: 100%; background: var(--wash); overflow: hidden;
  -webkit-mask: var(--torn) center / 100% 100% no-repeat; mask: var(--torn) center / 100% 100% no-repeat; }
.art.natural { background: transparent; }
.art img { display: block; width: 100%; height: auto; }
.art canvas { transition: opacity .4s ease; }
.art.show-still canvas { opacity: 0 !important; }

/* ---------- 深紫横带：它是这样动起来的 ---------- */
.band { position: relative; isolation: isolate; color: var(--band-ink); margin-block: -24px; padding-block: 64px; width: 100vw; margin-left: calc(50% - 50vw); }
.band::before { content: ""; position: absolute; inset: 0 -20px; z-index: -1; background: var(--band-bg); filter: url(#deckle); }
.band-in { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: 96px minmax(0, 620px); column-gap: 48px; justify-content: center; align-items: start; }
.sheets { width: 96px; height: 96px; margin-top: 6px; overflow: visible; }
.sheets path { fill: var(--band); stroke: var(--band-accent); stroke-width: 2.5; stroke-linejoin: round; }
.band h2 { font: 400 32px/1.35 var(--f-hand); color: var(--band-ink); margin: 0 0 18px; }
.how-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; font: 400 19px/1.8 var(--f-hand); }
.how-steps li { counter-increment: s; display: grid; grid-template-columns: 1.6em minmax(0, 1fr); margin: 0 0 12px; }
.how-steps li::before { content: counter(s) "."; color: var(--band-accent); }
.tech { margin: 22px 0 0; font: 400 14px/1.7 var(--f-body); color: var(--band-accent); }
/* 没有横带要隔开的第二对时，它挂在最后，和上面隔 120 */
.band.last { margin-block: 0; }

/* ---------- 画画的人：她自己写的一张便签，可选一张斜贴的像（第五轮方案） ---------- */
.who { margin-top: 120px; }
.who__h { font: 400 40px/1.2 var(--f-hand); color: var(--ink); margin: 0 0 40px; }
.who__row { display: flex; gap: 56px; align-items: flex-start; }
.who__pic { position: relative; isolation: isolate; flex: 0 0 240px; margin: 10px 0 0; padding: 12px; transform: rotate(var(--tilt, -1.6deg)); }
.who__pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mount); filter: url(#deckle); }
.who__pic img { position: relative; display: block; width: 100%; height: auto; }
.who__note { position: relative; isolation: isolate; flex: 1; max-width: 640px; padding: 44px 44px 40px; }
.who__note::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--slip); filter: url(#tear); }
.who__pic::after, .who__note::after { content: ""; position: absolute; left: 50%; top: -12px; width: 76px; height: 24px; margin-left: -38px; background: var(--tape); transform: rotate(-3deg); }
.who__line { font: 400 26px/1.6 var(--f-hand); color: var(--ink); margin: 0 0 16px; }
.who__line:last-child { margin: 0; }
.who__text { font: 400 16px/1.95 var(--f-body); color: var(--ink); white-space: pre-line; }
.who__find { margin: 20px 0 0; font: 400 14px/1.6 var(--f-body); color: var(--muted); overflow-wrap: anywhere; }
.who__find a { color: var(--zi); }
.who__seal { position: absolute; right: 36px; bottom: 30px; width: 28px; height: 28px; border-radius: 3px; background: var(--seal-bg); color: var(--seal-ink); font: 400 14px/28px var(--f-hand); text-align: center; }

/* 手机：一律上下叠，原画在上；每幅画下面一行放印；两件作品之间 72 */
@media (max-width: 760px) {
  .pairs { gap: 72px; margin-top: 30px; }
  .pair.tall, .pair.wide { display: flex; flex-direction: column; gap: 0; }
  .pair.wide .half, .pair.tall .half { display: block; }
  .pair.wide .side { display: block; margin: 0; }
  .mount { --pad: 14px; }
  .cap, .pair.wide .cap { flex-wrap: nowrap; margin: 4px 0 10px; gap: 10px; }
  .cap > .seal { width: 24px; height: 24px; font-size: 15px; }
  .arrow.side, .pair.wide .still .arrow.down { display: none; }
  .cap .arrow.mob { display: block; position: static; width: 20px; height: 28px; }
  .arrow.mob path { stroke-width: 2; }
  .howto, .pair.tall .howto { width: auto; margin: 16px 0 0; }
  .band { margin-block: -8px; padding-block: 40px; }
  .band-in { grid-template-columns: minmax(0, 1fr); padding-inline: 24px; }
  .sheets { width: 64px; height: 64px; margin: 0 0 14px; }
  .band h2 { font-size: 26px; }
  .how-steps { font-size: 17px; }
  .slot-row { margin-top: 72px; }
  .who { margin-top: 80px; }
  .who__h { font-size: 32px; margin-bottom: 28px; }
  .who__row { display: block; }
  .who__pic { width: 56%; margin: 0 0 -20px 10px; z-index: 1; }
  .who__note { padding: 40px 24px 32px; }
  .who__line { font-size: 22px; }
}

/* 页脚：一条通栏的薰衣草纸带，上沿撕开。纸带比页脚宽一点，左右两头的毛边落在屏幕外 */
.foot { position: relative; isolation: isolate; margin-top: clamp(80px, 12vh, 128px); overflow: hidden; overflow: clip; }
.foot::before { content: ""; position: absolute; inset: 10px -40px -24px; z-index: -1; background: var(--slip); filter: url(#tear); }
.foot .wrap { min-height: 106px; display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; justify-content: space-between; padding-block: 26px 14px; color: var(--muted); font-size: 14px; }
.foot #foot-text { max-width: 46em; }
.foot .act { font-size: 16px; color: var(--muted); }

/* ---------- 展开看：一次只放一幅，顶上正中两枚印当开关 ---------- */
.viewer { position: fixed; inset: 0; z-index: 20; background: var(--paper) var(--fibre, none); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .35s ease; }
.viewer.shown { opacity: 1; }
.viewer .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 56px; padding-block: 6px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.viewer .bar .controls { justify-self: end; display: flex; flex-wrap: wrap; gap: 0 20px; }
.seals { display: flex; gap: 8px; justify-self: center; }
.seal-btn { all: unset; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 6px; }
.seal-btn:focus-visible { outline: 2px solid var(--zi); outline-offset: 2px; }
.seal-btn .seal { width: 28px; height: 28px; font-size: 17px; }
.seal-btn[aria-pressed="true"] .seal, .seal-btn.on .seal { background: var(--seal-bg); color: var(--seal-ink); box-shadow: none; }
.seal-btn.paused .seal { background: none; color: var(--jin-ink); box-shadow: inset 0 0 0 1.5px var(--jin-ink); }
.viewer .stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 48px; }
@media (min-width: 821px) { .viewer .bar, .viewer .stage { max-width: min(1280px, calc(100vw - 80px)); padding-left: 0; padding-right: 0; } }
.viewer .pan { width: 100%; min-width: 0; display: flex; justify-content: center; }
.viewer .mount { --tilt: 0deg; cursor: auto; width: min(100%, calc((100vh - 170px) * var(--ar, 1.5) + 2 * var(--pad))); }
.v-err { margin: 0; font: 400 16px/1.5 var(--f-hand); color: var(--muted); }
.viewer .text { display: flex; gap: 18px; align-items: flex-start; max-width: 640px; width: 100%; margin-top: 8px; }
.viewer .text > .slip { flex: none; }
.viewer .text .info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.viewer .info > p:empty { display: none; }
.viewer .meta { color: var(--muted); font-size: 14px; margin: 0; }
.viewer .note { margin: 0; white-space: pre-line; }
.viewer .mount.living-on .art { cursor: grab; }
.v-nav { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 820px) {
  .viewer .bar .controls { display: none; }
  .viewer .mount { width: 100%; }
}
/* 手机上的横幅：画按高度放大，横着拖着看；拖到哪里，镜头就偏到哪里 */
.viewer.pan .pan { --ph: min(64vh, 560px); display: block; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: -20px; width: calc(100% + 40px); padding: 4px 20px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.viewer.pan .pan::-webkit-scrollbar { display: none; }
.viewer.pan #v-mount { width: max-content; }
.viewer.pan #v-mount .art { width: calc(var(--ph) * var(--ar, 2)); max-width: none; }
.viewer.pan #v-mount .art.live { touch-action: pan-x pan-y; }

/* ---------- 存成视频的字条：薰衣草纸，上沿撕边 ---------- */
.save-slip { position: fixed; z-index: 40; width: 220px; min-height: 56px; padding: 10px 16px 10px; isolation: isolate; color: var(--zi); text-align: left; }
.save-slip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lav); filter: url(#tear); box-shadow: 0 6px 18px rgba(44, 35, 64, .12); }
.save-go { all: unset; cursor: pointer; display: block; font: 400 17px/1.4 var(--f-hand); color: var(--zi); }
.save-go:focus-visible { outline: 2px solid var(--zi); outline-offset: 3px; }
.save-sub { margin: 2px 0 0; font: 400 13px/1.5 var(--f-hand); color: var(--ink); white-space: pre-line; }
@media (pointer: coarse) {
  .save-slip { left: 50% !important; top: auto !important; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .mount, .still-only, .her-hint, .howto, .slot, .who__pic { transform: none; }
  .pc { animation: none; }
  .ticker .run { animation: none; }
}

/* ---------- 开场（第八轮，Fable 5.2：tools/consults/2026-11-17T17-04-40-633Z.md） ----------
   兔子在纸的背面，屏幕就是它面前那张纸：它朝你啃三口，每个洞开在它嘴的位置；最后嘴越过纸洞盖满全屏，首页从喉咙里出来。
   照做时改的：显示由页头那行脚本加的 html.intro-on 控制（Fable 写的是脚本加 .on，脚本得放在 body 最前、会挡住解析）；
   纸的质感接着用第七轮的两层纤维加絮；.intro__bun 补了定位（它带着位移，不定位的话里面的两张图高度是 0）。
   兔子和嘴里的颜色写死，深色下不变。脚本没跑起来，9 秒后这层自己藏掉，站名的“周”自己回来。 */
.intro { display: none; position: fixed; inset: 0; z-index: 999; overflow: hidden;
  background-color: var(--paper); background-image: var(--fibre, none), var(--fibre, none), var(--cotton, none);
  background-size: auto, 180px 180px, 420px 420px; background-position: 0 0, 77px 41px, 0 0;
  --S: max(100vmax, 230vmin); --hx: 0%; --hy: 0%; --hs: .3; --ht: .65s; --ms: 1.1; --mt: 0; --md: .45s;
  --cotton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .52 0 0 0 .32 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .intro { --cotton: none; } }   /* 深色纸上云絮发灰，只留纤维 */
html[data-theme="dark"] .intro { --cotton: none; }
html.intro-on .intro { display: block; animation: intro-safe 0s 9s forwards; }
@keyframes intro-safe { to { visibility: hidden; } }
html.intro-on [data-intro-zhou] { visibility: hidden; animation: intro-safe-zhou 0s 9s forwards; }
@keyframes intro-safe-zhou { to { visibility: visible; } }

.intro__stage { position: absolute; left: 50%; top: 50%; width: var(--S); height: var(--S); margin: calc(var(--S) / -2) 0 0 calc(var(--S) / -2); }
.intro__stage > *, .intro__rim, .intro__bun, .intro__bun > svg, .intro__bun > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__stage.shake { animation: i-shake .16s steps(1); }
@keyframes i-shake { 25% { transform: translate(.5vmin, -.3vmin) rotate(.3deg); } 50% { transform: translate(-.4vmin, .4vmin); } 75% { transform: translate(.3vmin, .2vmin) rotate(-.2deg); } }

/* 兔子和它的影子用同一组位移 */
.intro__shade, .intro__bun { transform: translate(var(--hx), var(--hy)) scale(var(--hs)); transition: transform var(--ht) cubic-bezier(.3, .7, .3, 1); will-change: transform; }
/* 影子是先烤好的模糊剪影（tools/intro/shade.svg）当遮罩，颜色还是墙紫：原来对整张舞台现做 blur，每帧跟着位移重算 */
.intro__shade { background: var(--qiang); -webkit-mask: url(../img/intro/shade.webp) 0 0 / 100% 100% no-repeat; mask: url(../img/intro/shade.webp) 0 0 / 100% 100% no-repeat; opacity: 0; transition: transform var(--ht) cubic-bezier(.3, .7, .3, 1), opacity .5s; }
.intro.near { --hs: 1; }
.intro.near .intro__shade { opacity: .4; }

/* 周 */
.intro__stage > .intro__zhou { inset: 39% auto auto 36%; width: 28%; height: 28%; overflow: visible; transition: opacity .2s; }
.intro__zhou path { fill: none; stroke: var(--zi); stroke-width: 42; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.intro__zhou .q { stroke: var(--qiang); stroke-width: 46; }
.intro.write .intro__zhou path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t) cubic-bezier(.4, .1, .5, 1) var(--d), stroke .3s; }
.intro.gulp .intro__zhou { opacity: 0; }
.intro.in .intro__zhou { opacity: 1; z-index: 6; will-change: transform; }
.intro.in .intro__zhou path { stroke: #aea4e0; }
.intro.in .intro__zhou .q { stroke: #bdaade; }
.intro.fly .intro__zhou path, .intro.fly .intro__zhou .q { stroke: var(--ink); transition: stroke .3s .3s; }
.intro.out .intro__zhou { opacity: 0; }

/* 缺口：win 是洞里看到的，rim 是撕口 */
.intro__rimw { filter: drop-shadow(0 .3vmin .4vmin rgba(60, 40, 58, .4)); }
.intro__rim { background: var(--lav); }
.intro__rim, .intro__win { -webkit-clip-path: polygon(0 0, 0 0, 0 0); clip-path: polygon(0 0, 0 0, 0 0); }
.intro__win { background: radial-gradient(circle at 50% 46%, #5d4459, #38263a 62%); }
.intro__crumbs i { position: absolute; width: var(--w); height: calc(var(--w) * .8); background: var(--mount); border-radius: 40% 60% 55% 45%; box-shadow: 0 1px 2px rgba(60, 40, 58, .45); animation: i-crumb .75s cubic-bezier(.5, 0, .9, .5) both; }
.intro__crumbs i.ink { background: var(--qiang); }
@keyframes i-crumb { 25% { transform: translate(calc(var(--dx) * .5), -4vmin) rotate(calc(var(--r) * .3)); } 85% { opacity: 1; } 100% { transform: translate(var(--dx), 46vmin) rotate(var(--r)); opacity: 0; } }

/* 脸 */
.i-base { transform-origin: 50% 58%; }
.intro.chew .i-base { animation: i-puff .2s ease-in-out infinite alternate; }
@keyframes i-puff { to { transform: scale(1.04, .985); } }
.intro.chew .i-jaw { animation: i-chew .2s ease-in-out infinite alternate; }
@keyframes i-chew { from { transform: translate(-6px, 0); } to { transform: translate(6px, 3px); } }
.i-eyes ellipse { transform-box: fill-box; transform-origin: center; transition: transform .12s; }
.intro.chew .i-eyes ellipse, .intro.wide .i-eyes ellipse { transform: scaleY(.2); }
.intro.look .i-eyes ellipse { transform: translate(9px, 3px); }
.i-brow { opacity: 0; }
.intro.look .i-brow { opacity: 1; }
.i-o { transform-origin: 0 58px; transform: scale(0); transition: transform .11s; }
.intro.m-open .i-o { transform: scale(.8); }
.intro.wide .i-o { transform: scale(1.1); }
.intro.m-open .i-y, .intro.wide .i-y { opacity: 0; }

/* 吞：嘴单独一层，越过纸 */
.intro__maw { opacity: 0; }
.intro.gulp .intro__maw { opacity: 1; }
.i-mw { transform-origin: 0 58px; transform: translateY(calc(var(--mt) * 1px)) scale(var(--ms)); transition: transform var(--md) cubic-bezier(.55, 0, .85, .45); }
.i-plug { transform-box: fill-box; transform-origin: center; transition: transform .18s; }
.intro.fly .i-plug { transform: scale(0); }
.intro.in { background: none; }
.intro.in .intro__shade, .intro.in .intro__rimw, .intro.in .intro__win, .intro.in .intro__crumbs { visibility: hidden; }
.intro.out .intro__maw { opacity: 0; transition: opacity .2s; }
