/* kcrump.me 主站 · 和查分站是一家：白底、藏青、雾蓝、宋体标题、双线、千鸟格。
   查分站是 Yume 上班的地方（白天、通行证）；这里是她下班以后（夜里、取景器）。
   门厅：页眉双线 → 一个夜色的取景器（左字右人，底下一条读数）→ 三个拨盘 → 斜条幅 → 一排门（一扇门一个板块）→ 页脚。
   板块页：/notes 是合集一排 + 全部笔记（小笔记整条显示、大笔记是封面和页数），/photography 是合集一排 + 一面挂照片的墙，一个作品合集有自己的影展页。
   会自己动的只有：开场、条幅、光环、过场；其余的动都是回应你的操作。 */
:root {
  --bg: #fbfcfe; --card: #ffffff; --ink: #1b2a4a; --mute: #56637d; --line: #b9c2d3; --hair: #d8deea;
  --mist: #e6effa; --fog: #8fb2d9; --fog-deep: #5f86b5; --on-ink: #ffffff;
  --gold: #e3c16a; --gold-ink: #86661a;
  --paper: #f8f6ee;      /* 笔记的纸：小笔记的底、本子上的标签 */
  --night: #0e1627; --film: #16223d; --on-night: #f3f6fb; --dim-night: #9fb0cc;   /* 取景器和胶片：深浅色模式下都是夜色 */
  --hound: rgba(143, 178, 217, .30);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", STSong, SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --io: cubic-bezier(.7, 0, .2, 1); --pop: cubic-bezier(.3, 1.5, .5, 1);
  --gut: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1626; --card: #162036; --ink: #eef2f9; --mute: #9aa6bd; --line: #3d4a66; --hair: #27324b;
    --mist: #1a2640; --fog-deep: #a9c6e6; --on-ink: #0f1626; --gold-ink: #e3c16a; --paper: #162036;
    --night: #080d18; --film: #0a101e; --hound: rgba(143, 178, 217, .16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1626; --card: #162036; --ink: #eef2f9; --mute: #9aa6bd; --line: #3d4a66; --hair: #27324b;
  --mist: #1a2640; --fog-deep: #a9c6e6; --on-ink: #0f1626; --gold-ink: #e3c16a; --paper: #162036;
  --night: #080d18; --film: #0a101e; --hound: rgba(143, 178, 217, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--fog-deep); outline-offset: 2px; }
img { max-width: 100%; }

.page { max-width: 1040px; margin: 0 auto; padding: 24px var(--gut) 40px; }

/* ---------- 页眉：品牌行 + 一粗一细两条线（和查分站同一个页眉） ---------- */
.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute); }
.brand { color: var(--mute); text-decoration: none; letter-spacing: .08em; }
.nav { display: flex; gap: 14px; white-space: nowrap; }
.nav a { color: var(--mute); text-decoration: none; letter-spacing: .08em; padding: 2px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .brand:hover { color: var(--ink); }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--ink); }
.nav a[aria-current] { color: var(--ink); }
.rule { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.rule i { display: block; height: 1.5px; background: var(--ink); }

/* ---------- 取景器 ---------- */
.finder { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.vf { position: relative; height: min(118vw, 500px); background: var(--night); color: var(--on-night); overflow: hidden; overflow: clip; border-radius: 4px; isolation: isolate; }

/* 取景器里的世界：背景 + 人 + 噪点。曝光只改这一层的亮度，字和框线不跟着变 */
.vf-world { position: absolute; inset: 0; filter: brightness(var(--br, 1)); transition: filter .35s var(--ease); }
.vf-scene { position: absolute; inset: 0; filter: blur(var(--blur, 6.5px)); transition: filter .35s var(--ease); }
/* 人站的那个画框：背景里的拱窗、人、对焦框三样都用这一个位置 */
.sbox { position: absolute; right: -8%; bottom: 34px; height: 78%; aspect-ratio: 476 / 525; }
.arch {
  position: absolute; left: 50%; bottom: 0; width: 70%; height: 88%; border-radius: 999px 999px 0 0; transform: translateX(-50%);
  background-color: rgba(143, 178, 217, .10);
  background-image:
    linear-gradient(-45deg, transparent 25%, transparent 25%, transparent 75%, var(--hound) 75%),
    linear-gradient(-45deg, var(--hound) 25%, transparent 25%),
    linear-gradient(45deg, var(--hound) 17%, transparent 17%, transparent 25%, var(--hound) 25%,
      var(--hound) 36%, transparent 36%, transparent 64%, var(--hound) 64%,
      var(--hound) 75%, transparent 75%, transparent 83%, var(--hound) 83%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px, 8px 8px;
}
/* 背景里的几盏灯：光圈开大就化成一个个光斑 */
.bk { position: absolute; width: var(--s, 14px); height: var(--s, 14px); border-radius: 50%; background: var(--c, var(--gold)); opacity: var(--o, .8);
      transform: scale(var(--bk, 1.7)); transition: transform .35s var(--ease); }
.b1 { left: 9%; top: 60%; --s: 16px; } .b2 { left: 21%; top: 71%; --s: 10px; --c: var(--fog); }
.b3 { left: 33%; top: 56%; --s: 12px; --c: #fff; --o: .55; } .b4 { left: 47%; top: 15%; --s: 11px; --c: var(--fog); --o: .7; }
.b5 { left: 62%; top: 8%; --s: 15px; --o: .6; } .b6 { left: 90%; top: 22%; --s: 12px; --c: #fff; --o: .5; }
.b7 { left: 15%; top: 84%; --s: 9px; --o: .6; }

.vf-subject { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vf-subject img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.girl { filter: blur(var(--mb, 0px)); transition: filter .3s; }
/* 快门太慢：左右各拖一个影子 */
.ghost { opacity: var(--gh, 0); transition: opacity .3s, transform .3s var(--ease); }
.g1 { transform: translateX(calc(var(--sx, 0px) * -1)); } .g2 { transform: translateX(var(--sx, 0px)); }
/* 下班的光环：细、有点歪、不怎么亮 */
.halo { position: absolute; left: 36.5%; top: 9.5%; width: 30%; overflow: visible; transform: rotate(-7deg); pointer-events: none; }
.halo ellipse { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .72; }
.vf-noise { position: absolute; inset: 0; opacity: var(--nz, 0); mix-blend-mode: screen; background-size: 128px 128px; transition: opacity .3s; pointer-events: none; }
.vf-veil { position: absolute; inset: 0; pointer-events: none; opacity: var(--veil, 0); background: #fff; transition: opacity .35s var(--ease); }

/* 四个角的框线和对焦框 */
.vf-marks { position: absolute; inset: 0; pointer-events: none; }
.vf-marks .c { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(243, 246, 251, .8); }
.c1 { left: 12px; top: 12px; border-width: 1.5px 0 0 1.5px; } .c2 { right: 12px; top: 12px; border-width: 1.5px 1.5px 0 0; }
.c3 { left: 12px; bottom: 46px; border-width: 0 0 1.5px 1.5px; } .c4 { right: 12px; bottom: 46px; border-width: 0 1.5px 1.5px 0; }
.af { position: absolute; left: 37%; top: 25%; width: 29%; height: 26%;
      background:
        linear-gradient(var(--afc), var(--afc)) left top / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) left top / 1.5px 10px,
        linear-gradient(var(--afc), var(--afc)) right top / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) right top / 1.5px 10px,
        linear-gradient(var(--afc), var(--afc)) left bottom / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) left bottom / 1.5px 10px,
        linear-gradient(var(--afc), var(--afc)) right bottom / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) right bottom / 1.5px 10px;
      background-repeat: no-repeat; --afc: var(--gold); }

.vf-text { position: absolute; left: 20px; top: 26px; max-width: 40%; z-index: 2; pointer-events: none; }
.hello { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(27px, 7.6vw, 64px); line-height: 1.24; letter-spacing: .04em; white-space: nowrap;
         text-shadow: 0 0 14px rgba(8, 13, 24, .9), 0 0 5px rgba(8, 13, 24, .9), 0 1px 2px rgba(8, 13, 24, .8); }
.hello-sub { margin: 14px 0 0; max-width: 21em; font-size: 12.5px; line-height: 1.75; color: #c3cfe3; text-shadow: 0 0 8px rgba(8, 13, 24, .95), 0 0 4px rgba(8, 13, 24, .95), 0 1px 2px rgba(8, 13, 24, .9); }

/* 台词框：视觉小说那种。点她或点框都换下一句 */
.vn { position: absolute; left: 14px; bottom: 50px; z-index: 3; max-width: min(62%, 300px); width: max-content; padding: 13px 13px 10px; border-radius: 3px;
      background: var(--on-night); color: #1b2a4a; font-size: 13px; line-height: 1.6; letter-spacing: .03em; cursor: pointer;
      opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.vn.on { opacity: 1; transform: none; pointer-events: auto; }
.vn-name { position: absolute; left: 10px; top: -10px; padding: 0 8px; background: var(--fog); color: #1b2a4a; font-size: 11px; font-weight: 600; line-height: 19px; letter-spacing: .1em; }
.vn-line::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; background: var(--fog-deep); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.vn-tip, .vn-tap { display: none; }
.vn.on .vn-tip { display: block; position: absolute; right: 22px; bottom: -10px; padding: 0 8px; background: var(--gold); color: #1b2a4a; font-size: 11px; font-weight: 600; line-height: 19px; letter-spacing: .12em; }
.vn.on .vn-tap { display: block; position: absolute; right: -4px; bottom: -26px; width: 25px; height: 30px; overflow: visible; pointer-events: none; }
.vn-tap .cur { fill: #fff; stroke: #1b2a4a; stroke-width: 1.5; stroke-linejoin: round; }
.vn-tap .rip { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; }
.vf.tapped .vn-tip, .vf.tapped .vn-tap { display: none; }

/* 取景器底下那条读数 */
.lcd { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 0 14px;
       background: #05080f; color: var(--on-night); font-size: 12.5px; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lcd-v.hit { animation: hit .3s var(--ease); }
.meter { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--dim-night); }
.meter b { font-weight: 400; }
.meter-scale { position: relative; width: min(100%, 120px); height: 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.meter-scale i { width: 1.5px; height: 6px; background: var(--dim-night); }
.meter-scale i.z { height: 12px; background: var(--on-night); }
.meter-scale em { position: absolute; left: calc(50% + var(--m, 0) * 16.6667%); top: -3px; width: 9px; height: 7px; margin-left: -4.5px; background: var(--gold);
                  clip-path: polygon(0 0, 100% 0, 50% 100%); transition: left .3s var(--pop), background-color .2s; }
.meter.off em { background: #ff8f7a; }
.lcd-n { color: var(--dim-night); }
/* 快门帘：上下各一半，按快门时合上再打开 */
.vf-curtain { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(#05080f, #05080f) top / 100% 50% no-repeat, linear-gradient(#05080f, #05080f) bottom / 100% 50% no-repeat; background-size: 100% 0, 100% 0; }
.vf.snap .vf-curtain { animation: snap .34s var(--io); }

/* ---------- 三个拨盘 ---------- */
.dials { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dial { display: grid; gap: 6px; min-width: 0; }
.dial label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dial b { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: .14em; }
.dial output { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.dial input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --n: 6;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px calc((100% - 1.5px) / var(--n)));
  background-size: calc(100% - 20px) 1.5px, calc(100% - 20px) 9px; background-position: 10px 50%, 10px 50%; background-repeat: no-repeat; }
#d-s { --n: 7; }
.dial input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--ink); }
.dial input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--ink); }
.dial input::-moz-range-track { background: transparent; }
.shoot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--on-ink);
         font-size: 15px; letter-spacing: .2em; transition: transform .15s var(--ease); }
.shoot i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 8px var(--gold); }
.shoot:active { transform: scale(.97); }

/* ---------- 斜条幅（查分站那条的同款） ---------- */
.band { margin: 34px 0 0 calc(50% - 50vw); width: 100vw; overflow: hidden; background: var(--ink); color: var(--on-ink);
        transform: rotate(-1.1deg) scaleX(1.03); font-size: 13px; letter-spacing: .14em; line-height: 1; }
.band-run { display: flex; width: max-content; animation: run 25s linear infinite; }
.band-set { display: flex; align-items: center; gap: 20px; padding: 11px 20px 11px 0; white-space: nowrap; }
.band-set b { font-weight: 600; }
.band-set em { font-style: normal; opacity: .78; }
.band-set i { width: 11px; height: 11px; background: var(--fog); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

/* ---------- 小节标题 ---------- */
.sec { margin-top: 48px; scroll-margin-top: 16px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 24px; }
.pick { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; }
.pick::before { content: ""; flex: none; width: 13px; height: 13px; background: var(--fog-deep); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.sec-lead { margin: 0; max-width: 34em; font-size: 14px; line-height: 1.8; color: var(--mute); }

.perf { display: block; height: 22px;
        background: repeating-linear-gradient(90deg, transparent 0 9px, var(--bg) 9px 19px, transparent 19px 28px) center / auto 9px no-repeat; opacity: .9; }

/* ---------- 门：一扇门一个板块。拱窗里站着（趴着、窝着）一个 Yume，底下那条线是地面 ---------- */
.go { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 4px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-size: 15px; letter-spacing: .16em; }
.go::after { content: ""; width: 11px; height: 11px; background: var(--gold); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); transition: transform .4s var(--pop); }
.go:hover::after { transform: rotate(180deg) scale(1.3); }
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
.door-link { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.door-win { position: relative; display: block; aspect-ratio: 5 / 6; margin-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.door-win .arch { width: 84%; height: 90%; background-color: var(--mist); transition: background-color .3s; }
.door-girl { position: absolute; left: 50%; bottom: 0; height: 104%; width: auto; max-width: none; transform: translateX(-50%); transition: transform .35s var(--ease), opacity .2s linear .2s;
             filter: drop-shadow(0 0 .6px rgba(27, 42, 74, .6)); user-select: none; -webkit-user-drag: none; }
.door-girl.lying { height: auto; width: 108%; }
.door-girl.sitting { height: 84%; }
.door-name { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .14em; line-height: 1.4; }
.door-desc { font-size: 13px; line-height: 1.7; color: var(--mute); }
.door-meta { font-size: 12.5px; letter-spacing: .08em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
a.door-link:hover .door-win > .door-girl, a.door-link:focus-visible .door-win > .door-girl,
a.door-link:hover .door-fig, a.door-link:focus-visible .door-fig { transform: translateX(-50%) translateY(-7px); }
a.door-link:hover .arch, a.door-link:focus-visible .arch { background-color: rgba(143, 178, 217, .34); }
a.door-link:hover .door-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
/* 音游查分那扇：平时是抱着鲸鱼打瞌睡的常服，挪上去闪一下换成营业 */
.d-on, .d-flash { opacity: 0; }
.d-flash { filter: brightness(0) invert(1); transition: none; }
.door-bind.on .d-off { opacity: 0; } .door-bind.on .d-on { opacity: 1; }
.door-bind.morph .d-flash { animation: flash .56s var(--ease); }
/* 笔记、作品那两扇：人和挪上去才冒出来的小东西装在一个盒子里，一起抬起来 */
.door-fig { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); transition: transform .35s var(--ease); line-height: 0; }
.door-fig .door-girl { position: static; display: block; transform: none; transition: none; }
.door-fig.lying { width: 108%; } .door-fig.lying .door-girl { width: 100%; height: auto; }
.door-fig.standing { height: 104%; } .door-fig.standing .door-girl { height: 100%; width: auto; }
/* 学习笔记：本子上金色蜡笔圈一圈（和印样上写完的那一格同一种圈） */
.door-ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.door-ink path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s; }
a.door-link:hover .door-ink path, a.door-link:focus-visible .door-ink path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease) .12s; }
/* 摄影作品：镜头那儿闪一下，拱窗跟着亮一下 */
.door-pop { position: absolute; left: 43.3%; top: 15.8%; width: 0; height: 0; pointer-events: none; }
.door-pop::before { content: ""; position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; opacity: 0;
                    background: radial-gradient(circle, #fff 0 28%, rgba(255, 255, 255, .75) 44%, rgba(255, 255, 255, 0) 70%); }
.fx a.door-link:hover .door-pop::before, .fx a.door-link:focus-visible .door-pop::before { animation: door-pop .55s ease-out .14s both; }
.fx .door-photo a.door-link:hover .arch, .fx .door-photo a.door-link:focus-visible .arch { animation: door-bulb .6s ease-out .16s both; }
/* 换装间：拱窗左上挂一个衣架，挪上去晃一下 */
.door-hanger { position: absolute; left: calc(20.3% - 20px); top: calc(20% - 1px); z-index: 1; width: 40px; height: auto; overflow: visible; transform-origin: 50% 2px;
               fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.door-dress .door-girl { z-index: 2; }
.fx .door-dress a.door-link:hover .door-hanger, .fx .door-dress a.door-link:focus-visible .door-hanger { animation: hanger .9s var(--ease); }

/* ---------- 板块页的页头：字、一个 Yume、底下一条线。窄屏上下排，宽屏左右排 ---------- */
.shead { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1.5px solid var(--ink); }
.shead-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.shead .w-lead { font-size: 14px; line-height: 1.8; max-width: 26em; }
.shead-acts { margin: 6px 0 0; }
.shead-girl { position: relative; justify-self: end; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 0; }
.shead-girl img { display: block; filter: drop-shadow(0 0 .6px rgba(27, 42, 74, .6)); user-select: none; -webkit-user-drag: none; }
.shead-girl.lying img { width: min(64vw, 330px); height: auto; margin-bottom: -2px; }
.shead-girl .crop { display: block; height: min(52vw, 250px); overflow: hidden; }
.shead-girl.standing img { width: min(34vw, 170px); height: auto; }
/* 她说的话：窄屏在她头顶上占一行（没说话时也留着位置，免得一戳页面往下跳），宽屏挪到她左边 */
.say { position: relative; margin: 0 6px 8px 0; max-width: 78vw; padding: 7px 11px; border-radius: 3px; background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.5; letter-spacing: .04em; text-align: left; }
.say[hidden] { display: block !important; visibility: hidden; }
.say::after { content: ""; position: absolute; right: 22px; bottom: -6px; width: 9px; height: 7px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.shead-girl.poke img { animation: poke .4s var(--pop); }
html.flashbulb::after { content: ""; position: fixed; inset: 0; z-index: 80; background: #fff; pointer-events: none; animation: bulb .45s ease-out both; }

/* ---------- 作品墙 ---------- */
.wall { margin: 26px 0 0; display: flex; align-items: flex-start; gap: 14px; }
.mcol { flex: 1 1 0; min-width: 0; display: grid; gap: 18px; align-content: start; }
.wk-link { position: relative; display: block; color: inherit; text-decoration: none; }
.wk-img { display: block; width: 100%; height: auto; background: var(--mist); }
/* 挪上去：四个角冒出取景框 */
.wk-pic { position: relative; display: block; }
.wk-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background:
    linear-gradient(var(--gold), var(--gold)) left 8px top 8px / 14px 1.5px, linear-gradient(var(--gold), var(--gold)) left 8px top 8px / 1.5px 14px,
    linear-gradient(var(--gold), var(--gold)) right 8px top 8px / 14px 1.5px, linear-gradient(var(--gold), var(--gold)) right 8px top 8px / 1.5px 14px,
    linear-gradient(var(--gold), var(--gold)) left 8px bottom 8px / 14px 1.5px, linear-gradient(var(--gold), var(--gold)) left 8px bottom 8px / 1.5px 14px,
    linear-gradient(var(--gold), var(--gold)) right 8px bottom 8px / 14px 1.5px, linear-gradient(var(--gold), var(--gold)) right 8px bottom 8px / 1.5px 14px;
  background-repeat: no-repeat; }
.wk-link:hover .wk-pic::after, .wk-link:focus-visible .wk-pic::after { opacity: 1; }
.wk-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.wk-title { font-family: var(--serif); font-weight: 500; font-size: 14.5px; letter-spacing: .08em; color: var(--ink); }
.wk-date { flex: none; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.wk-col { margin-right: .7em; letter-spacing: .1em; }
.wall-empty { margin: 30px 0 0; display: flex; align-items: flex-end; justify-content: center; gap: 18px; border-bottom: 1.5px dashed var(--line); }
.wall-empty img { height: 280px; width: auto; filter: drop-shadow(0 0 .6px rgba(27, 42, 74, .6)); }
.wall-empty p { margin: 0 0 60px; font-family: var(--serif); font-size: 20px; letter-spacing: .16em; line-height: 1.7; }
.wall-empty small { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: var(--mute); }

/* 挂照片（站长） */
.hang { margin: 24px 0 0; padding: 16px; border: 1.5px solid var(--ink); border-radius: 4px; display: grid; gap: 14px; scroll-margin-top: 16px; }
.hang .ph-cap { width: 100%; padding: 3px 0 5px; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.hang .ph-cap:focus { outline: none; border-color: var(--fog-deep); }
.hang .ph-cap::placeholder { color: var(--line); }
.hang-say { margin: 0; font-size: 13.5px; color: var(--mute); }
.hang .go[disabled] { opacity: .5; }

/* 大图 */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(8, 13, 24, .96); color: var(--on-night); }
.lb-fig { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 14px; padding: 52px 14px 18px; }
.lb-fig img { min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; align-self: center; background: #05080f; }
.lb-fig figcaption { width: min(100%, 760px); display: grid; gap: 8px; font-size: 13.5px; line-height: 1.7; }
.lb-words { display: grid; gap: 2px; }
.lb-words b { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: .1em; }
.lb-words span { color: #c3cfe3; }
.lb-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--dim-night); font-variant-numeric: tabular-nums; }
.lb-meta .exif b { border-left-color: #3d4a66; }
.lb-x { position: absolute; right: 12px; top: 10px; z-index: 2; padding: 4px 14px; border: 1.5px solid var(--on-night); border-radius: 4px; background: none; color: var(--on-night); font-size: 14px; letter-spacing: .1em; }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 72px; margin-top: -60px; border: 0; background: none; }
.lb-nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border: solid var(--on-night); border-width: 2px 0 0 2px; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .9)); }
.lb-prev { left: 4px; } .lb-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.lb-next { right: 4px; } .lb-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.lb-own { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; border-top: 1px solid #27324b; }
.lb-own input { flex: 1 1 180px; min-width: 0; padding: 4px 0; border: 0; border-bottom: 1.5px solid #3d4a66; background: none; color: var(--on-night); font: inherit; font-size: 14px; }
.lb-own .linkish { color: var(--on-night); border-bottom-color: #9fb0cc; }
.lb-own .linkish.danger { color: #ff8f7a; border-bottom-color: #ff8f7a; margin-left: 0; }

/* 找不到的页 */
.lost { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; border-bottom: 1.5px solid var(--ink); }
.lost > div { padding-bottom: 28px; display: grid; gap: 10px; justify-items: start; }
.lost img { height: 300px; width: auto; display: block; filter: drop-shadow(0 0 .6px rgba(27, 42, 74, .6)); }
.lost p { margin: 0; color: var(--mute); }

/* ---------- 笔记页 ---------- */
.note { max-width: 36em; margin: 30px auto 0; font-size: 16px; line-height: 1.95; }
.back { display: inline-block; font-size: 13px; letter-spacing: .1em; color: var(--mute); text-decoration: none; border-bottom: 1.5px solid var(--line); }
.back:hover { color: var(--ink); border-bottom-color: var(--ink); }
.note-meta { margin: 26px 0 0; display: flex; gap: 0; font-size: 12.5px; letter-spacing: .1em; color: var(--mute); }
.note-meta span + span { margin-left: 12px; padding-left: 12px; border-left: 1.5px solid var(--line); }
.note-sub { margin: 6px 0 0; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; color: var(--mute); }
.note-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 6.4vw, 40px); line-height: 1.35; letter-spacing: .04em; text-wrap: balance; }
.note-warn { margin: 20px 0 6px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--mist); font-size: 13.5px; line-height: 1.75; color: var(--mute); }
.note h2 { margin: 38px 0 0; font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: .1em; line-height: 1.5; }
.note p { margin: 14px 0 0; }
.note ul, .note ol { margin: 12px 0 0; padding-left: 1.4em; }
.note li + li { margin-top: 4px; }
.note.nv .thumbs { padding-left: 2px; } .note.nv .files { margin: 0 0 30px; padding-left: 0; } .note.nv .more { margin: 0; padding-left: 0; } .note.nv .files li + li, .note.nv .more li + li, .note.nv .thumbs li + li { margin-top: 0; }
.fig { margin: 28px 0 0; }
.fig img { display: block; width: 100%; height: auto; background: var(--mist); }
.slot-box { aspect-ratio: 3 / 2; display: grid; place-items: center; border: 1.5px dashed var(--line); background: var(--mist); color: var(--mute); font-size: 13px; letter-spacing: .12em; }
.fig figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; font-size: 13px; line-height: 1.7; color: var(--mute); }
.exif { display: inline-flex; font-variant-numeric: tabular-nums; }
.exif b { font-weight: 400; padding: 0 8px; border-left: 1.5px solid var(--line); }
.exif b:first-child { padding-left: 0; border-left: 0; }
.tbl { margin-top: 18px; overflow-x: auto; }
.note table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.note th { text-align: left; font-weight: 400; font-size: 12.5px; letter-spacing: .1em; color: var(--mute); padding: 6px 12px 6px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.note td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.note td:last-child { white-space: normal; color: var(--mute); }
.note blockquote { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--fog); color: var(--mute); }
.note h3 { margin: 26px 0 0; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.note-foot { margin: 40px 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

/* ---------- 写笔记（只有站长能进） ---------- */
.linkish { flex: none; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--mute); font-size: 13px; letter-spacing: .1em; border-bottom: 1.5px solid var(--line); }
.linkish:hover { color: var(--ink); border-bottom-color: var(--ink); }
button.go { border: 0; }
.gate { max-width: 760px; margin: 36px auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: end; border-bottom: 1.5px solid var(--ink); }
.gate-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 26px; }
.gate-text > p { margin: 0; }
.gate-girl { justify-self: center; width: min(74%, 300px); height: auto; display: block; filter: drop-shadow(0 0 .6px rgba(27, 42, 74, .6)); }
.gate-girl.tall { width: auto; height: 300px; }
.owner-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.w-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7vw, 40px); letter-spacing: .1em; }
.w-lead { margin: 0; font-size: 15px; color: var(--mute); }
.gate-steps { margin: 4px 0 6px; padding-left: 1.4em; display: grid; gap: 8px; font-size: 15px; line-height: 1.7; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: 1px 5px; border-radius: 3px; }
.gate .go { font-size: 14px; letter-spacing: .06em; }

.desk { margin-top: 26px; }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.desk-yume { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bust { flex: none; position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--night); }
.bust img { position: absolute; left: -59px; top: -43px; width: 166px; max-width: none; }
.desk-yume p { margin: 0; padding: 7px 12px; border-radius: 3px; background: var(--mist); font-size: 13.5px; line-height: 1.5; }
.tabs { display: inline-flex; margin-top: 18px; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.tabs button { padding: 5px 20px; border: 0; background: transparent; font-size: 14px; letter-spacing: .2em; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.desk-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.desk-grid .pvw { display: none; }
.desk-grid.show-p .pvw { display: block; }
.desk-grid.show-p .form { display: none; }
.form { display: grid; gap: 22px; align-content: start; min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .lab { font-size: 12.5px; letter-spacing: .14em; color: var(--mute); }
.field input[type="text"] { width: 100%; padding: 6px 0 8px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
#f-title { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; }
.field input::placeholder, .field textarea::placeholder { color: var(--line); }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--fog-deep); box-shadow: 0 1.5px 0 var(--fog-deep); }
.err { margin: 0; font-size: 13px; color: #c2452f; }
.cats, .tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cats button, .tools button { padding: 4px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: 13.5px; letter-spacing: .08em; }
.cats button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.tools button { border-radius: 3px; color: var(--mute); }
.tools button:hover { border-color: var(--ink); color: var(--ink); }
.field textarea { width: 100%; min-height: 300px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--ink); font: 15px/1.85 var(--sans); resize: vertical; }
.drop { display: grid; gap: 6px; justify-items: center; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 4px; background: var(--mist); text-align: center; cursor: pointer; font-size: 14.5px; transition: border-color .15s, background-color .15s; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--fog-deep); outline-offset: 2px; }
.drop small { max-width: 30em; font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.drop.over, .drop:hover { border-color: var(--ink); }
.drop.over { background: var(--card); }
.photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ph { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.ph-img { width: 84px; height: 56px; object-fit: cover; background: var(--mist); }
.ph-main { display: grid; gap: 4px; min-width: 0; }
.ph-name { margin: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.field input.ph-cap { font-size: 14px; padding: 3px 0 5px; border-bottom-color: var(--line); }
.ph-acts { grid-column: 1 / -1; display: flex; gap: 16px; }
.ph-acts button { padding: 0; border: 0; background: none; font-size: 13px; letter-spacing: .06em; color: var(--mute); border-bottom: 1.5px solid var(--line); }
.ph-acts button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.acts { display: flex; gap: 12px; align-items: center; }
.quiet { padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 4px; background: transparent; font-size: 15px; letter-spacing: .16em; }
.pvw { min-width: 0; }
.pvw-cap { margin: 0 0 4px; font-size: 12.5px; letter-spacing: .14em; color: var(--mute); }
.pvw .note { margin: 0; max-width: none; padding: 4px 0 0; }
.pvw .note-meta { margin-top: 10px; }

@media (min-width: 860px) {
  .tabs { display: none; }
  .desk-grid, .desk-grid.show-p { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .desk-grid .pvw, .desk-grid.show-p .pvw { display: block; position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 22px 26px; border: 1.5px solid var(--hair); border-radius: 4px; background: var(--card); }
  .desk-grid.show-p .form { display: grid; }
}

/* ---------- 页脚 ---------- */
.foot { margin-top: 64px; padding-top: 18px; border-top: 1.5px solid var(--ink); position: relative; font-size: 12.5px; color: var(--mute); }
.foot p { margin: 4px 0 0; }
.whale { position: absolute; right: 8px; top: -19px; }
.w-body { fill: #141c2e; stroke: var(--fog); stroke-width: .9; } .w-belly { fill: #fff; } .w-eye { fill: #fff; }
.replay + .replay { margin-left: 16px; }
.replay { padding: 0; border: 0; background: none; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.replay:hover { color: var(--ink); }

/* ---------- 开场 ---------- */
.op { display: none; position: fixed; inset: 0; z-index: 60; overflow: hidden; background: var(--night); color: var(--on-night); cursor: pointer; --oc-h: min(70vh, 600px, 108vw); }
.op-wait .op { display: block; }   /* 两张图还在路上：先盖着，图到了再开演，免得人半路才蹦出来 */
.op-run .op { display: block; animation: op-bg 2.33s linear both; }
.op-frame i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--on-night); opacity: 0; }
.op-frame i:nth-child(1) { left: 6vw; top: 6vh; border-width: 1.5px 0 0 1.5px; } .op-frame i:nth-child(2) { right: 6vw; top: 6vh; border-width: 1.5px 1.5px 0 0; }
.op-frame i:nth-child(3) { left: 6vw; bottom: 14vh; border-width: 0 0 1.5px 1.5px; } .op-frame i:nth-child(4) { right: 6vw; bottom: 14vh; border-width: 0 1.5px 1.5px 0; }
/* 中间的人：画框和主页那张半身一样（476×525），脸放在对焦框正中 */
.op-cast { position: absolute; left: 50%; top: calc(45% - var(--oc-h) * .38); height: var(--oc-h); aspect-ratio: 476 / 525; transform: translateX(-50%); opacity: 0; }
.op-cast img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.oc-b { opacity: 0; }
.oc-flash { position: absolute; left: 46%; top: 41%; width: 0; height: 0; }   /* 镜头在图上的位置 */
.oc-flash::before { content: ""; position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; opacity: 0;
                    background: radial-gradient(circle, #fff 0 28%, rgba(255, 255, 255, .7) 44%, rgba(255, 255, 255, 0) 70%); }
.op-white { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.op-af { position: absolute; left: 50%; top: 45%; width: calc(var(--oc-h) * .5); height: calc(var(--oc-h) * .5); transform: translate(-50%, -50%); color: var(--on-night); }
.op-af i { position: absolute; width: 16px; height: 16px; border: 0 solid currentColor; }
.op-af i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; } .op-af i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.op-af i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; } .op-af i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.op-lcd { position: absolute; left: 0; right: 0; bottom: 8vh; display: flex; justify-content: center; gap: 22px; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--dim-night); }
.op-skip { position: absolute; left: 0; right: 0; bottom: 3.5vh; text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--dim-night); opacity: .7; }
.op-blade { position: absolute; left: 0; right: 0; height: 51%; background: #05080f; }
.op-blade-a { top: 0; transform: translateY(-101%); } .op-blade-b { bottom: 0; transform: translateY(101%); }
/* 时间表：0.12s 人从糊到清 → 0.9s 举起相机（两张图错开一点换，中间不露底）→ 1.09s 对焦框变金 → 1.28s 镜头闪一下 → 1.55s 快门帘合上 → 1.78s 帘后面换成页面 */
.op-run .op-frame i { animation: op-in .5s var(--ease) .05s both, op-out .01s linear 1.78s forwards; }
.op-run .op-cast { animation: op-focus 1s var(--ease) .12s both, op-out .01s linear 1.78s forwards; }
.op-run .oc-a { animation: oc-a .16s ease-in .98s both; }
.op-run .oc-b { animation: oc-b .2s ease-out .9s both; }
.op-run .oc-flash::before { animation: oc-flash .44s ease-out 1.28s both; }
.op-run .op-white { animation: oc-white .36s ease-out 1.3s both; }
.op-run .op-af { animation: op-af 1.3s var(--ease) .15s both, op-out .01s linear 1.78s forwards; }
.op-run .op-lcd, .op-run .op-skip { animation: op-out .01s linear 1.78s forwards; }
.op-run .op-blade-a { animation: op-blade-a .7s var(--io) 1.55s both; }
.op-run .op-blade-b { animation: op-blade-b .7s var(--io) 1.55s both; }

/* ---------- 关键帧 ---------- */
@keyframes run { to { transform: translateX(-10%); } }
@keyframes hit { 0% { color: var(--gold); transform: translateY(-2px); } 100% { transform: none; } }
@keyframes snap { 0%, 100% { background-size: 100% 0, 100% 0; } 45%, 55% { background-size: 100% 51%, 100% 51%; } }
@keyframes circle { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes flash { 0% { opacity: 0; } 35%, 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(-1); } 50% { transform: scaleX(1); } 75% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5.5deg) translateY(-3px); } }
@keyframes tap { 0%, 55%, 100% { transform: translate(0, 0); } 65% { transform: translate(-2px, -3px) scale(.9); } 75% { transform: translate(0, 0); } }
@keyframes rip { 0%, 62% { opacity: 0; transform: scale(.4); } 68% { opacity: .9; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes op-in { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
@keyframes op-out { to { opacity: 0; visibility: hidden; } }
@keyframes oc-a { from { opacity: 1; } to { opacity: 0; } }
@keyframes oc-b { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes oc-flash { 0% { opacity: 0; transform: scale(0); } 18% { opacity: 1; transform: scale(9); } 100% { opacity: 0; transform: scale(46); } }
@keyframes oc-white { 0% { opacity: 0; } 22% { opacity: .82; } 100% { opacity: 0; } }
@keyframes op-focus { 0% { filter: blur(18px); opacity: 0; } 22% { filter: blur(14px); opacity: 1; } 48% { filter: blur(2px); } 66% { filter: blur(8px); } 84%, 100% { filter: blur(0); opacity: 1; } }
@keyframes op-af { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); color: var(--on-night); } 30% { opacity: 1; } 72% { transform: translate(-50%, -50%) scale(1); color: var(--on-night); } 76%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); color: var(--gold); } }
@keyframes op-blade-a { 0% { transform: translateY(-101%); } 32%, 46% { transform: none; } 100% { transform: translateY(-101%); } }
@keyframes op-blade-b { 0% { transform: translateY(101%); } 32%, 46% { transform: none; } 100% { transform: translateY(101%); } }
@keyframes op-bg { 0%, 76% { background-color: var(--night); } 77%, 100% { background-color: transparent; } }

@keyframes door-pop { 0% { opacity: 0; transform: scale(0); } 18% { opacity: 1; transform: scale(2.6); } 100% { opacity: 0; transform: scale(6); } }
@keyframes door-bulb { 0% { background-color: var(--mist); } 20% { background-color: #fff; } 100% { background-color: rgba(143, 178, 217, .34); } }
@keyframes hanger { 0% { transform: rotate(0); } 22% { transform: rotate(14deg); } 48% { transform: rotate(-9deg); } 72% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
@keyframes poke { 0% { transform: none; } 40% { transform: translateY(-6px) rotate(-1.2deg); } 100% { transform: none; } }
@keyframes bulb { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }
@keyframes pose-pop { 0% { transform: translateY(5px) scale(.985); } 100% { transform: none; } }
.vf-subject.pop .girl { animation: pose-pop .32s var(--pop); }

/* ---------- 站内换板块：快门帘合一下 ---------- */
.blink { display: none; position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.blink.run { display: block; }
.blink i { position: absolute; left: 0; right: 0; height: 51%; background: #05080f; }
.blink i:first-child { top: 0; transform: translateY(-101%); } .blink i + i { bottom: 0; transform: translateY(101%); }
.blink.run i:first-child { animation: op-blade-a .38s var(--io) both; }
.blink.run i + i { animation: op-blade-b .38s var(--io) both; }

/* ---------- 和查分站之间的过场：幕布是查分站那块千鸟格，中间站着全身的 Yume ---------- */
.tr { position: fixed; inset: 0; z-index: 90; pointer-events: none; color: #f3f6fb; }
.tr.sweep, .tr.hold, .tr.held { pointer-events: auto; cursor: pointer; }
.tr > i { position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, -25% 100%, -25% 100%); }
.tr > i:first-child { background: #8fb2d9; }
.tr > i + i, .kc-arrive body::before {
  background-color: #1b2a4a;
  background-image:
    linear-gradient(-45deg, #1b2a4a 25%, transparent 25%, transparent 75%, rgba(143, 178, 217, .13) 75%),
    linear-gradient(-45deg, rgba(143, 178, 217, .13) 25%, transparent 25%, transparent 75%, #1b2a4a 75%),
    linear-gradient(45deg, rgba(143, 178, 217, .13) 17%, transparent 17%, transparent 25%, rgba(143, 178, 217, .13) 25%,
      rgba(143, 178, 217, .13) 36%, transparent 36%, transparent 64%, rgba(143, 178, 217, .13) 64%,
      rgba(143, 178, 217, .13) 75%, transparent 75%, transparent 83%, rgba(143, 178, 217, .13) 83%);
  background-size: 28px 28px; background-position: 0 0, 14px 14px, 14px 14px;
}
/* 从查分站回来：脚本还没建好幕布之前，先用 body 的伪元素把页面盖住 */
.kc-arrive body::before { content: ""; position: fixed; inset: 0; z-index: 89; }
.tr.hold > i, .tr.held > i { clip-path: none; }
.tr.sweep > i:first-child { animation: tr-in .32s var(--io) both; }
.tr.sweep > i + i { animation: tr-in .32s var(--io) .07s both; }
.tr.back > i:first-child { animation: tr-out .4s var(--io) .08s both; }
.tr.back > i + i { animation: tr-out .4s var(--io) both; }
.tr-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; opacity: 0; }
.tr.sweep .tr-stage { opacity: 1; animation: tr-rise .4s var(--ease) .18s both; }
.tr.hold .tr-stage, .tr.held .tr-stage { opacity: 1; }
.tr.back .tr-stage { opacity: 0; transform: translateY(-14px); transition: opacity .24s linear, transform .3s var(--io); animation: none; }
.tr-cast { position: relative; height: min(66vh, 640px); aspect-ratio: 300 / 720; }
.tc { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; user-select: none; -webkit-user-drag: none; will-change: opacity; }
.tc-b, .tc-c, .tc-w { opacity: 0; }
.tc-w { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, .9)) drop-shadow(0 0 20px rgba(227, 193, 106, .75)); }
/* 打瞌睡：慢慢地一点一点 */
.tr.doze .tc-a, .tr.doze.settle .tc-c { animation: tc-doze 2.6s ease-in-out infinite; }
.tr-z { position: absolute; left: 66%; top: 7%; font-family: var(--serif); font-size: 24px; line-height: 1; opacity: 0; }
.tr.doze .tr-z { animation: tr-z 1.8s linear infinite; animation-delay: calc(var(--i) * .6s); }
/* 被叫醒：一激灵 */
.tr.wake .tc-a { animation: tc-jolt .38s var(--pop) both; }
/* 变身：光吞成白剪影 → 换一身、闪、星星蹦出去 → 站好 */
.tr.morph .tc-aw { animation: tc-white .16s ease-in both; }
.tr.swap .tc-a, .tr.swap .tc-aw { opacity: 0; transition: none; animation: none; }
.tr.swap .tc-b { opacity: 1; animation: tc-pop .42s var(--ease) both; }
.tr.swap .tc-bw { animation: tc-unwhite .46s ease-out both; }
/* 不变身、只换个姿势的时候：新的那张先盖上来，旧的那张晚一点再退。两张不同时半透明，人不会忽然变淡、透出后面的幕布 */
.tr.step .tc-b { opacity: 1; transition: opacity .26s ease-out; }
.tr.step .tc-a { opacity: 0; transition: opacity .24s ease-in .14s; }
.tr.settle .tc-c { opacity: 1; transition: opacity .26s ease-out; }
.tr.settle .tc-a, .tr.settle .tc-b { opacity: 0; transition: opacity .24s ease-in .14s; }
.tr-ring { position: absolute; left: 50%; top: 44%; width: 190%; margin: -95% 0 0 -95%; overflow: visible; opacity: 0; pointer-events: none; }
.tr-ring circle { fill: none; stroke: #e3c16a; stroke-linecap: round; }
.tr-r1 { stroke-width: 1.6; stroke-dasharray: 30 3.33; } .tr-r2 { stroke-width: 1.2; stroke-dasharray: .8 4.2; stroke: #fff4d6; }
.tr.morph .tr-ring { animation: tr-ring 1s var(--ease) both; }
.tr-flash { position: absolute; left: 50%; top: 40%; width: 220%; padding-bottom: 220%; margin: -110% 0 0 -110%; border-radius: 50%; opacity: 0; transform: scale(.2); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0, rgba(255, 244, 214, .7) 22%, rgba(227, 193, 106, .25) 44%, rgba(227, 193, 106, 0) 66%); }
.tr.swap .tr-flash { animation: tr-flash .5s ease-out both; }
.tr-spark { position: absolute; left: 50%; top: 38%; width: 14px; height: 14px; margin: -7px; background: #e3c16a; opacity: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.tr.swap .tr-spark { animation: tr-spark .6s var(--ease) both; }
.tr.swap .tr-spark:nth-of-type(odd) { background: #fff; animation-delay: .04s; }
.tr-line { margin: 0; min-height: 1.7em; font-family: var(--serif); font-size: 17px; line-height: 1.7; letter-spacing: .28em; text-indent: .28em; }
.tr-line.in { animation: tr-line .3s var(--ease) both; }
@keyframes tr-in { to { clip-path: polygon(0 0, 125% 0, 100% 100%, -25% 100%); } }
@keyframes tr-out { from { clip-path: polygon(0 0, 125% 0, 100% 100%, -25% 100%); } to { clip-path: polygon(125% 0, 125% 0, 100% 100%, 100% 100%); } }
@keyframes tr-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes tr-line { from { opacity: 0; transform: translateY(6px); } }
@keyframes tc-doze { 0%, 100% { transform: translateX(-50%) rotate(-.6deg); } 50% { transform: translateX(-50%) rotate(1.1deg) translateY(2px); } }
@keyframes tc-jolt { 0% { transform: translateX(-50%); } 35% { transform: translateX(-50%) translateY(-14px) scaleY(1.02); } 100% { transform: translateX(-50%); } }
@keyframes tc-white { from { opacity: 0; } to { opacity: 1; } }
@keyframes tc-pop { from { transform: translateX(-50%) scale(1.03); } to { transform: translateX(-50%); } }
@keyframes tc-unwhite { 0% { opacity: 1; transform: translateX(-50%) scale(1.03); } 30% { opacity: .95; } 100% { opacity: 0; transform: translateX(-50%); } }
@keyframes tr-z { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(26px, -46px) scale(1.25); } }
@keyframes tr-ring { 0% { opacity: 0; transform: scale(.35) rotate(0deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1) rotate(220deg); } }
@keyframes tr-flash { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes tr-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1.6)) rotate(140deg) scale(1); } }

.fx .halo { animation: bob 5.2s ease-in-out infinite; }
.fx .vn.on .vn-tap .cur { animation: tap 1.5s var(--ease) infinite; transform-origin: 3px 2px; }
.fx .vn.on .vn-tap .rip { animation: rip 1.5s linear infinite; transform-origin: 3px 2px; }

/* ---------- 宽屏 ---------- */
@media (min-width: 860px) {
  .page { padding-top: 28px; }
  .vf { height: 520px; }
  .sbox { right: 7%; height: 93%; }
  .vf-text { left: 48px; top: 64px; }
  .vf-text { max-width: 47%; }
  .hello-sub { font-size: 14px; margin-top: 20px; }
  .vn { left: 48px; bottom: 74px; font-size: 14px; }
  .lcd { padding: 0 24px; gap: 22px; font-size: 13px; }
  .c1, .c3 { left: 20px; } .c2, .c4 { right: 20px; } .c1, .c2 { top: 20px; } .c3, .c4 { bottom: 54px; }
  .dials { grid-template-columns: 1fr 1fr 1fr auto; gap: 30px; align-items: end; }
  .shoot { align-self: center; padding: 14px 26px; }
  .nav { gap: 22px; }
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .door-win { aspect-ratio: 4 / 5; }
  .door-name { font-size: 22px; }
  .shead { margin-top: 40px; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
  .shead-text { padding-bottom: 34px; gap: 14px; }
  .shead-girl.lying img { width: 400px; }
  .shead-girl .crop { height: 300px; }
  .shead-girl.standing { margin-right: 40px; }
  .shead-girl.standing img { width: 200px; }
  .say { position: absolute; right: 82%; top: 10px; margin: 0; width: max-content; max-width: 20em; font-size: 14px; }
  .say::after { right: -6px; top: 12px; bottom: auto; width: 7px; height: 9px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .tr-line { font-size: 20px; }
  .wall { gap: 20px; }
  .wall .mcol { gap: 24px; }
  .gate { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; margin-top: 56px; }
  .gate-girl { width: 300px; }
  .gate-girl.tall { height: 380px; margin-right: 30px; }
  .lb-fig { padding: 56px 64px 22px; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-run { animation: none; }
  *, *::before, *::after { transition-duration: .01s !important; }
}

/* 写笔记：草稿和待写的列表 */
.shelf { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.shelf .quiet { padding: 6px 14px; font-size: 14px; letter-spacing: .1em; }
.shelf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shelf-list button { padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; }
.shelf-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.shelf-list small { margin-left: 6px; opacity: .65; }
.acts { flex-wrap: wrap; }
.linkish.danger { color: #c2452f; border-bottom-color: #c2452f; margin-left: auto; }
.ph.busy { opacity: .5; }

/* ================= 装饰（1202） ================= */
/* ---------- 取景器：三分线、电池、橙色日期 ---------- */
.vf-third { position: absolute; pointer-events: none; border: 0 solid rgba(243, 246, 251, .11); }
.vf-third-v { top: 0; bottom: 34px; left: 33.333%; right: 33.333%; border-width: 0 1px; }
.vf-third-h { left: 0; right: 0; top: calc((100% - 34px) / 3); height: calc((100% - 34px) / 3); border-width: 1px 0; }
.vf-batt { position: absolute; right: 40px; top: 15px; width: 24px; height: 11px; overflow: visible; }
.vf-batt rect { fill: none; stroke: rgba(243, 246, 251, .78); stroke-width: 1.2; }
.vf-batt .cap, .vf-batt .lv { fill: rgba(243, 246, 251, .78); stroke: none; }
.vf-date { position: absolute; right: 38px; bottom: 50px; font: 600 13px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; color: #ffa23c;
           text-shadow: 0 0 5px rgba(255, 140, 40, .8), 0 0 1px rgba(255, 140, 40, .9); white-space: nowrap; }

/* ---------- 门厅背景：几颗很淡的虚化光斑，慢慢漂（只在宽屏，系统要求少动就不出） ---------- */
.drift { display: none; }

/* ---------- 一条胶片：最近挂上墙的几张 ---------- */
.reel { margin-top: 52px; padding: 0 14px; background: var(--film); color: var(--on-night); border-radius: 4px; }
.reel-run { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.reel-run::-webkit-scrollbar { display: none; }
.reel-run li { flex: 0 0 auto; width: 40vw; max-width: 170px; }
.reel-run a { display: block; color: inherit; text-decoration: none; }
.reel-run img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #0a101e; transition: transform .3s var(--ease); }
.reel-run a:hover img, .reel-run a:focus-visible img { transform: translateY(-3px); }
.reel-n { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; line-height: 1; letter-spacing: .12em; color: var(--gold); font-variant-numeric: tabular-nums; opacity: .85; }

/* ---------- 笔记页页头：本子的横线，标题下面金色蜡笔划一道 ---------- */
.shead-notes, .shead-photo { position: relative; }
.ruled { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none;
         background: repeating-linear-gradient(to top, var(--hair) 0 1px, transparent 1px 34px) left bottom 33px / 100% calc(100% - 33px) no-repeat;
         -webkit-mask-image: linear-gradient(90deg, #000 0, #000 30%, transparent 70%); mask-image: linear-gradient(90deg, #000 0, #000 30%, transparent 70%); }
.shead-notes .shead-text, .shead-photo .shead-text { position: relative; }
.shead-notes .w-title::after { content: ""; display: block; height: 10px; margin-top: 2px; width: 4.6em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6.5 C40 3.5 90 3 130 4.6 C160 5.8 182 5.4 197 3.6' fill='none' stroke='%23e3c16a' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat; }
.fx .shead-notes .w-title::after { animation: crayon .8s var(--ease) .25s both; }

/* ---------- 作品页页头：取景框四个角、对焦框、一行读数 ---------- */
.aim { position: absolute; left: 0; right: 0; top: 0; bottom: 14px; pointer-events: none; }
.aim > i { position: absolute; width: 16px; height: 16px; border: 0 solid var(--ink); opacity: .55; }
.aim > i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; } .aim > i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.aim > i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; } .aim > i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.aim-af { position: absolute; left: 50%; top: 50%; width: 46px; height: 30px; margin: -15px 0 0 -23px; display: none;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 8px 1.5px, linear-gradient(var(--gold), var(--gold)) left top / 1.5px 8px,
    linear-gradient(var(--gold), var(--gold)) right top / 8px 1.5px, linear-gradient(var(--gold), var(--gold)) right top / 1.5px 8px,
    linear-gradient(var(--gold), var(--gold)) left bottom / 8px 1.5px, linear-gradient(var(--gold), var(--gold)) left bottom / 1.5px 8px,
    linear-gradient(var(--gold), var(--gold)) right bottom / 8px 1.5px, linear-gradient(var(--gold), var(--gold)) right bottom / 1.5px 8px;
  background-repeat: no-repeat; }
.aim-lcd { position: absolute; left: 24px; top: 4px; display: flex; gap: 14px; font-size: 11.5px; letter-spacing: .08em; color: var(--mute); font-variant-numeric: tabular-nums; }
.shead-photo .shead-text { padding: 30px 0 0 24px; }

/* ================= 换装间 /yume ================= */
.dr { margin-top: 26px; }
.dr-title { margin-bottom: 18px; }
.dr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.dr-stage { order: 0; } .dr-ward { order: 1; } .dr-side { order: 2; }
.dr-stage { position: relative; height: clamp(440px, 68vh, 640px); background: var(--mist); border-radius: 4px; overflow: hidden; isolation: isolate; }
.dr-stage .dr-arch { bottom: 8%; width: min(60%, 360px); height: 80%; }
.dr-floor { position: absolute; left: 0; right: 0; bottom: 8%; height: 1.5px; background: var(--ink); }
.dr-floor::after { content: ""; position: absolute; left: 50%; top: -7px; width: min(38%, 230px); height: 16px; transform: translateX(-50%); border-radius: 50%;
                   background: radial-gradient(closest-side, rgba(27, 42, 74, .28), rgba(27, 42, 74, 0)); }
/* 人：画框 634×1400，鞋底在 98.86%，踩在地面那条线上 */
.dr-fig { position: absolute; left: 50%; bottom: 7.02%; height: 86%; aspect-ratio: 634 / 1400; transform: translateX(-50%); cursor: pointer; opacity: 0; transition: opacity .3s;
          -webkit-tap-highlight-color: transparent; outline-offset: 6px; }
.dr-fig.dr-in { opacity: 1; }
.dr-img, .dr-rig { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 99%; }
.dr-img { opacity: 0; transition: opacity .24s ease-in .14s; }
.dr-img.on { opacity: 1; z-index: 1; transition: opacity .26s ease-out; }
.dr-img.now { transition: none; }
.dr-live .dr-img { visibility: hidden; }
.dr-rig { z-index: 2; }
.dr-fig .tr-ring { z-index: 0; }
.dr-fig .tr-flash, .dr-fig .tr-spark { z-index: 3; }
.dr-fig.morph .dr-rig { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9)) drop-shadow(0 0 20px rgba(227, 193, 106, .75)); }
.dr-fig.morph .tr-ring { animation: tr-ring 1s var(--ease) both; }
.dr-fig.swap .dr-rig { animation: dr-pop .42s var(--ease) both; }
.dr-fig.swap .tr-flash { animation: tr-flash .5s ease-out both; }
.dr-fig.swap .tr-spark { animation: tr-spark .6s var(--ease) both; }
.dr-fig.swap .tr-spark:nth-of-type(odd) { background: #fff; animation-delay: .04s; }
.dr-fig .k1 { --a: 22deg; --r: 140px; } .dr-fig .k2 { --a: 67deg; --r: 90px; } .dr-fig .k3 { --a: 112deg; --r: 140px; } .dr-fig .k4 { --a: 157deg; --r: 90px; }
.dr-fig .k5 { --a: 202deg; --r: 140px; } .dr-fig .k6 { --a: 247deg; --r: 90px; } .dr-fig .k7 { --a: 292deg; --r: 140px; } .dr-fig .k8 { --a: 337deg; --r: 90px; }
.dr-fig.poke .dr-rig, .dr-fig.poke .dr-img.on { animation: dr-hop .4s var(--pop); }
.dr-stage { transition: background-color .6s; }
/* 底色跟着衣服（dress.js 从这身的小图里挑颜色，填 --dr-h 色相、--dr-s 饱和度）；千鸟格跟着变色 */
.dr-stage.tinted { --mist: hsl(var(--dr-h) calc(var(--dr-s) * 1%) 93%); --hound: hsl(var(--dr-h) calc(var(--dr-s) * 1%) 64% / .34); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dr-stage.tinted { --mist: hsl(var(--dr-h) calc(var(--dr-s) * .6%) 16%); --hound: hsl(var(--dr-h) calc(var(--dr-s) * 1%) 64% / .16); } }
:root[data-theme="dark"] .dr-stage.tinted { --mist: hsl(var(--dr-h) calc(var(--dr-s) * .6%) 16%); --hound: hsl(var(--dr-h) calc(var(--dr-s) * 1%) 64% / .16); }
/* 左上角：第几张、这身叫什么（像相机的计数窗）；两边的箭头翻到上一套、下一套 */
.dr-count { position: absolute; left: 44px; top: 26px; z-index: 4; margin: 0; display: flex; align-items: baseline; gap: 10px; pointer-events: none; }
.dr-count b { font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--mute); font-variant-numeric: tabular-nums; }
.dr-count span { font-family: var(--serif); font-size: 16px; letter-spacing: .14em; color: var(--ink); }
.dr-flip { position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%;
           background: var(--card); background: color-mix(in srgb, var(--card) 72%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.dr-flip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dr-flip:hover { border-color: var(--ink); }
.dr-prev { left: 14px; } .dr-next { right: 14px; }
.dr-prev:hover { transform: translateX(-2px); } .dr-next:hover { transform: translateX(2px); }
.dr-flip:focus-visible { outline: 2px solid var(--fog-deep); outline-offset: 3px; }
.dr-fig { touch-action: pan-y; }
.dr-marks i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--ink); opacity: .6; pointer-events: none; }
.dr-marks i:nth-child(1) { left: 14px; top: 14px; border-width: 1.5px 0 0 1.5px; } .dr-marks i:nth-child(2) { right: 14px; top: 14px; border-width: 1.5px 1.5px 0 0; }
.dr-marks i:nth-child(3) { left: 14px; bottom: 14px; border-width: 0 0 1.5px 1.5px; } .dr-marks i:nth-child(4) { right: 14px; bottom: 14px; border-width: 0 1.5px 1.5px 0; }
.dr-shutter { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(#05080f, #05080f) top / 100% 50% no-repeat, linear-gradient(#05080f, #05080f) bottom / 100% 50% no-repeat; background-size: 100% 0, 100% 0; }
.dr-stage.snap .dr-shutter { animation: snap .34s var(--io); }
/* 拍出来的那张：从右下角弹出来 */
.dr-print { position: absolute; right: 5%; bottom: 9%; z-index: 6; width: min(44%, 220px); margin: 0; padding: 7px 7px 9px; background: #fff; border-radius: 2px;
            box-shadow: 0 8px 22px rgba(27, 42, 74, .26); transform: rotate(3deg); }
.dr-print img { display: block; width: 100%; height: auto; }
.dr-print figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.dr-print .linkish { color: #56637d; border-bottom-color: #b9c2d3; text-decoration: none; }
.dr-print .linkish:hover { color: #1b2a4a; border-bottom-color: #1b2a4a; }
.dr-print.out { animation: dr-print .5s var(--ease) both; }
/* 旁边：衣架、姿势、拍一张 */
.dr-lab { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; }
.dr-lab::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--fog-deep); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
/* 衣服：舞台下面一整条胶片，一格一身（从光环到鞋底的全身），像印样那样排着。衣服多了横着滑；宽屏上 15 身正好一条 */
.dr-ward { min-width: 0; }
.dr-rack { list-style: none; margin: 0; padding: 0 10px; display: flex; position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin;
           border-radius: 4px; color: var(--on-night);
           /* 上下两排齿孔、片头那一点漏光（橙色，和照片上印的日期一个色），都跟着胶片一起滑 */
           background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9'%3E%3Crect x='3' y='.5' width='6' height='8' rx='1.7' fill='%23f3f6fb' fill-opacity='.5'/%3E%3C/svg%3E") 0 7px / 12px 9px repeat-x local, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9'%3E%3Crect x='3' y='.5' width='6' height='8' rx='1.7' fill='%23f3f6fb' fill-opacity='.5'/%3E%3C/svg%3E") 0 calc(100% - 7px) / 12px 9px repeat-x local,
                       radial-gradient(70px 80% at 0 50%, rgba(255, 150, 60, .26), rgba(255, 150, 60, 0)) local, var(--film); }
.dr-rack li { flex: 0 0 66px; position: relative; padding: 38px 4px 30px; scroll-snap-align: start; }
.dr-hang { position: relative; width: 100%; padding: 0; border: 0; background: none; color: inherit; display: flex; flex-direction: column; align-items: center; }
.dr-hang:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 3px; }
/* 一格：浅蓝的底，脚下一点影子；挪上去这格抬一下、亮一点 */
.dr-card { position: relative; display: block; width: 100%; aspect-ratio: 119 / 440; border-radius: 3px;
           background: radial-gradient(50% 3.2% at 50% 97%, rgba(27, 42, 74, .28), rgba(27, 42, 74, 0)), linear-gradient(#eef3fa, #d9e4f2);
           box-shadow: inset 0 0 0 1px rgba(14, 22, 39, .45); transition: transform .3s var(--ease), filter .3s; filter: brightness(.97) saturate(.92); }
.dr-card img { position: relative; display: block; width: 100%; height: 100%; padding: 7% 5% 3%; box-sizing: border-box; object-fit: contain; object-position: 50% 100%; }
.dr-hang:hover .dr-card, .dr-hang:focus-visible .dr-card { transform: translateY(-3px); filter: none; }
.dr-hang[aria-pressed="true"] .dr-card { filter: none; }
/* 帧号：每格上面一行，和门厅那条胶片一样的金色小字（7 … 7A） */
.dr-no { position: absolute; left: 1px; right: 1px; top: -20px; display: flex; justify-content: space-between; font-size: 9.5px; line-height: 1; letter-spacing: .08em; color: var(--gold); font-variant-numeric: tabular-nums; opacity: .8; }
.dr-no span + span { opacity: .6; }
.dr-name { margin-top: 9px; font-family: var(--serif); font-size: 13px; line-height: 1.2; letter-spacing: .06em; color: var(--dim-night); white-space: nowrap; transition: color .2s; }
.dr-hang:hover .dr-name { color: var(--on-night); }
.dr-hang[aria-pressed="true"] .dr-name { color: var(--gold); }
/* 选中的那格：金色蜡笔框一框（印样上挑片子那样，手画的、角上出头），从左往右画过去 */
.dr-ring { position: absolute; left: -7px; right: -7px; top: -6px; bottom: -6px; width: calc(100% + 14px); height: calc(100% + 12px); overflow: visible; pointer-events: none; z-index: 2;
           opacity: 0; clip-path: inset(-10% 100% -10% -10%); transition: opacity .15s, clip-path .15s; }
.dr-ring path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dr-hang[aria-pressed="true"] .dr-ring { opacity: 1; clip-path: inset(-10% -10% -10% -10%); transition: opacity .2s, clip-path .55s var(--ease); }
.dr-poses { list-style: none; margin: 0 0 24px; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 58px; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.dr-pose { width: 100%; padding: 0 0 6px; border: 1.5px solid var(--hair); border-radius: 3px; background: var(--card); display: grid; gap: 5px; justify-items: center; overflow: hidden;
           font-size: 12px; line-height: 1.2; letter-spacing: .04em; color: var(--mute); white-space: nowrap; transition: border-color .2s; }
.dr-pose img { display: block; width: 100%; height: auto; aspect-ratio: 70 / 120; object-fit: cover; background: var(--mist); }
.dr-pose:hover { border-color: var(--line); color: var(--ink); }
.dr-pose[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.dr-acts { margin: 0; }
.dr-up { margin-top: 30px; padding-top: 20px; border-top: 1.5px dashed var(--line); }
.dr-up[hidden] { display: none; }
.dr-up-note { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--mute); }
.dr-up-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dr-up-row select { padding: 8px 8px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }
.dr-up-pick { position: relative; padding: 9px 18px; cursor: pointer; }
.dr-up-pick:focus-within { outline: 2px solid var(--fog-deep); outline-offset: 2px; }
.dr-up-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dr-up-msg { margin: 10px 0 0; min-height: 1.6em; font-size: 13px; line-height: 1.6; color: var(--ink); }
.dr-up-cmp { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dr-up-cmp[hidden], .dr-up-acts[hidden] { display: none; }
.dr-up-cmp figure { margin: 0; border: 1.5px solid var(--hair); border-radius: 3px; background: var(--mist); text-align: center; }
.dr-up-c { display: block; width: 100%; height: auto; background: repeating-linear-gradient(0deg, transparent 0 9.9%, rgba(95, 134, 181, .28) 9.9% 10%); }
.dr-up-cmp figcaption { padding: 4px 0 6px; font-size: 12px; color: var(--mute); }
.dr-up-acts { margin: 12px 0 0; display: flex; gap: 16px; align-items: center; }
.dr-up-acts .go[disabled] { opacity: .5; cursor: progress; }
.dr-up-sub { margin: 22px 0 8px; font-size: 13px; font-weight: 400; letter-spacing: .12em; color: var(--mute); }
.dr-up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dr-up-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.dr-up-list li span { flex: 1; }
.dr-up-list img { display: block; width: 28px; height: 60px; object-fit: cover; border-radius: 2px; background: var(--mist); }
.dr-up-none { color: var(--mute); }
.dr-busy .dr-hang, .dr-busy .dr-pose, .dr-busy .dr-fig { cursor: progress; }
@keyframes dr-pop { from { transform: scale(1.03); } to { transform: none; } }
@keyframes dr-hop { 0% { transform: none; } 40% { transform: translateY(-10px) scaleY(1.01); } 100% { transform: none; } }
@keyframes dr-print { from { opacity: 0; transform: translateY(34px) rotate(-3deg); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes crayon { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (min-width: 860px) {
  .vf-batt { right: 50px; top: 23px; }
  .vf-date { right: 48px; bottom: 62px; font-size: 14px; }
  .drift { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .drift i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; opacity: var(--o);
             background: radial-gradient(closest-side, var(--c) 0, var(--c) 62%, transparent 100%); filter: blur(2px); }
  .fx .drift i { animation: drift var(--d) ease-in-out var(--dl) infinite alternate; }
  .drift i:nth-child(1) { --x: 3%; --y: 18%; --s: 90px; --c: rgba(143, 178, 217, .9); --o: .22; --d: 26s; --dl: -4s; }
  .drift i:nth-child(2) { --x: 92%; --y: 30%; --s: 64px; --c: rgba(227, 193, 106, .9); --o: .24; --d: 31s; --dl: -12s; }
  .drift i:nth-child(3) { --x: 6%; --y: 62%; --s: 46px; --c: rgba(227, 193, 106, .9); --o: .22; --d: 23s; --dl: -9s; }
  .drift i:nth-child(4) { --x: 88%; --y: 72%; --s: 110px; --c: rgba(143, 178, 217, .9); --o: .18; --d: 34s; --dl: -20s; }
  .drift i:nth-child(5) { --x: 95%; --y: 8%; --s: 38px; --c: rgba(143, 178, 217, .9); --o: .26; --d: 21s; --dl: -2s; }
  .drift i:nth-child(6) { --x: 1%; --y: 88%; --s: 70px; --c: rgba(143, 178, 217, .9); --o: .2; --d: 29s; --dl: -15s; }
  .reel { padding: 0 22px; }
  .reel-run { overflow: visible; gap: 16px; }
  .reel-run li { flex: 1 1 0; min-width: 0; width: auto; max-width: none; }
  .ruled { right: 460px; }
  .shead-notes .shead-text, .shead-photo .shead-text { padding-bottom: 34px; }
  .aim { right: 290px; top: 4px; bottom: 18px; }
  .aim-af { display: block; }
  .shead-photo .shead-text { padding: 0 0 34px 28px; }
  .dr { margin-top: 40px; }
  .dr-grid { grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "stage side" "ward ward"; gap: 30px 40px; align-items: start; }
  .dr-stage { grid-area: stage; } .dr-side { grid-area: side; } .dr-ward { grid-area: ward; }
  .dr-rack li { flex: 1 0 60px; }
  .dr-stage { height: min(74vh, 640px); }
  .dr-count span { font-size: 18px; }
  .dr-poses { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(28px, -40px); } }
@media (prefers-reduced-motion: reduce) {
  .drift i { animation: none !important; }
}

/* ================= 合集（1203）：笔记和作品都是「上面一排合集，下面全部」 ================= */
.strip-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 30px 0 12px; }
.strip-h h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: .2em; display: flex; gap: 9px; align-items: center; }
.strip-h h2::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--fog-deep); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.strip-h h2.name { letter-spacing: .06em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.strip-h .strip-all { font-size: 13px; color: var(--mute); text-decoration: none; border-bottom: 1.5px solid var(--line); }
.strip-own { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
.cstrip, .astrip { list-style: none; margin: 0; display: flex; overflow-x: auto; scrollbar-width: thin; }
/* 笔记的合集：搁板上立着一排本子。一个合集一本，封面颜色按顺序轮，右边露出来的纸边越多页数越多；选中的那本抽出来一截 */
.cstrip { gap: 18px; align-items: flex-end; padding: 16px 12px 0 6px; border-bottom: 2px solid var(--ink); }
.cstrip li { flex: 0 0 104px; }
.cstrip li.wide { flex-basis: 250px; align-self: center; padding-bottom: 14px; }
.nb { --nb: #2b3f6b; --edge: 0px; position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 2px 6px 6px 2px; color: #1b2a4a; text-decoration: none; text-align: left;
  background: linear-gradient(90deg, rgba(0, 0, 0, .22) 0 9px, rgba(255, 255, 255, .14) 9px 10px, rgba(255, 255, 255, 0) 10px), linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 45%), var(--nb);
  transition: transform .28s var(--ease); margin-right: var(--edge); }
/* 纸边：封面右边一条一条的 */
.nb::after { content: ""; position: absolute; top: 3px; bottom: 0; left: 100%; width: var(--edge); border-radius: 0 2px 0 0; background: repeating-linear-gradient(90deg, #fffdf6 0 1px, #cfc9b8 1px 2px); }
.nb-t1 { --edge: 2px; } .nb-t2 { --edge: 4px; } .nb-t3 { --edge: 7px; }
.nb-c0 { --nb: #2b3f6b; } .nb-c1 { --nb: #6c90bf; } .nb-c2 { --nb: #6a9186; } .nb-c3 { --nb: #d1aa4f; } .nb-c4 { --nb: #77668f; }
.nb-label { position: absolute; left: 17px; right: 7px; top: 15%; padding: 6px 7px 6px; background: #fbfaf4; border-radius: 1.5px; box-shadow: 0 1px 1.5px rgba(0, 0, 0, .22); }
.nb-label b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: var(--serif); font-weight: 500; font-size: 15.5px; line-height: 1.3; letter-spacing: .04em; overflow-wrap: anywhere; }
.nb-n { display: flex; flex-wrap: wrap; gap: 0 7px; margin-top: 5px; padding-top: 4px; border-top: 1px solid #c9c4b4; font-size: 10.5px; line-height: 1.5; color: #56637d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb:hover { transform: translateY(-5px); }
.nb.on { transform: translateY(-14px); }
.nb.on .nb-label { box-shadow: 0 0 0 2px var(--gold), 0 1px 1.5px rgba(0, 0, 0, .22); }
.nb.add { display: grid; place-content: center; justify-items: center; gap: 4px; background: none; box-shadow: none; border: 1.5px dashed var(--line); border-bottom: 0; color: var(--mute); }
.nb.add span { font-size: 20px; line-height: 1; } .nb.add small { font-size: 12px; letter-spacing: .1em; }
.nb.add:hover { transform: none; border-color: var(--ink); color: var(--ink); }
.nameform { display: flex; gap: 10px; align-items: baseline; }
.nameform input { min-width: 0; flex: 1; padding: 3px 0 4px; border: 0; border-bottom: 1.5px solid var(--ink); background: none; color: var(--ink); font: inherit; font-size: 14px; }
.nameform input:focus { outline: none; border-color: var(--fog-deep); }
.nameform.alb { padding: 14px; align-content: center; flex-wrap: wrap; }
.astrip { gap: 14px; padding: 2px 2px 6px; }
/* 全部：瀑布流。小笔记整条（memo），大笔记一张封面叠着几页纸（card） */
.feed { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.feed .mcol { gap: 22px; }
.feed-empty { margin: 24px 0 0; padding: 30px 0; text-align: center; font-family: var(--serif); letter-spacing: .2em; color: var(--mute); border-bottom: 1.5px dashed var(--line); }
/* 笔记一篇都没有的时候：一张还没写的横线纸 */
#feed-empty { width: min(48%, 236px); aspect-ratio: 3 / 4; margin: 4px 0 0; padding: 0; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 3px; background: repeating-linear-gradient(180deg, transparent 0 27px, var(--hair) 27px 28px) 0 44px / 100% calc(100% - 60px) no-repeat; }
/* 小笔记：一张纸条（和大笔记的封面一个纸色）。深色模式下退回深色卡片，不然一片白太晃眼 */
.memo { position: relative; padding: 16px 16px 13px; border-radius: 2px; background: var(--paper); box-shadow: 0 1px 2px rgba(27, 42, 74, .22), 0 10px 18px -16px rgba(27, 42, 74, .6); }
.memo h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 16.5px; letter-spacing: .04em; line-height: 1.45; }
.memo h3 a { color: inherit; text-decoration: none; } .memo h3 a:hover { text-decoration: underline; }
.memo-body { margin-top: 8px; font-size: 13.5px; line-height: 1.8; overflow-wrap: anywhere; }
.memo-body > * { margin: 6px 0 0; } .memo-body > :first-child { margin-top: 0; }
.memo-body h2, .memo-body h3 { font-family: var(--serif); font-weight: 500; font-size: 14.5px; letter-spacing: .06em; }
.memo-body ul, .memo-body ol { padding-left: 1.3em; }
.memo-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: rgba(95, 134, 181, .16); padding: 1px 5px; border-radius: 3px; }
.memo-body blockquote { padding-left: 10px; border-left: 2px solid var(--line); color: var(--mute); }
.memo-body .tbl { overflow-x: auto; } .memo-body table { border-collapse: collapse; font-size: 12.5px; } .memo-body th, .memo-body td { padding: 3px 8px; border: 1px solid var(--hair); }
.memo .ims { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.memo .ims img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; border: 1px solid var(--hair); background: var(--mist); }
.memo .ims.one { grid-template-columns: 1fr; } .memo .ims.one img { aspect-ratio: 4 / 3; }
.memo .cm { margin-top: 10px; }
/* 置顶：纸上按一颗图钉 */
.pushpin { position: absolute; z-index: 3; left: 50%; top: -7px; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff3c4 0 12%, #edc65e 30%, #c9992f 68%, #9a711c); box-shadow: 0 3px 3px -1px rgba(27, 42, 74, .45), 0 0 0 .5px rgba(120, 86, 16, .5); }
.card { position: relative; }
.card > a { display: block; color: inherit; text-decoration: none; }
.cvw { position: relative; margin: 0 6px 0 0; }
.cvw::before, .cvw::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: #ecebe4; box-shadow: 0 1px 3px rgba(27, 42, 74, .18); }
.cvw::before { transform: translate(5px, 5px) rotate(1.5deg); } .cvw::after { transform: translate(2.5px, 2.5px) rotate(.6deg); }
.cv { position: relative; z-index: 1; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: #f6f4ec; box-shadow: 0 1px 2px rgba(27, 42, 74, .2); transition: transform .3s var(--ease); }
.card > a:hover .cv { transform: translateY(-3px); }
.cv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv.blank { display: grid; place-items: center; padding: 18px; background: #f6f4ec repeating-linear-gradient(180deg, transparent 0 25px, rgba(95, 134, 181, .22) 25px 26px); }
.cv.blank span { font-family: var(--serif); font-size: 15px; line-height: 1.7; letter-spacing: .06em; color: #1b2a4a; text-align: center; }
.cv .pg { position: absolute; left: 8px; bottom: 8px; background: rgba(27, 42, 74, .85); color: #fff; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; letter-spacing: .04em; }
.cv .att { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.cv .att i { font-style: normal; background: var(--gold); color: #3b2c06; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: .06em; }
.cv .att i.x { background: #fff; color: #1b2a4a; border: 1px solid #b9c2d3; }
.ct { margin: 12px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.45; letter-spacing: .03em; }
.cm { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--mute); }
.cm time { margin-left: auto; font-variant-numeric: tabular-nums; }
.tag { padding: 1px 9px; border-radius: 999px; background: var(--mist); color: var(--fog-deep); font-size: 12px; text-decoration: none; white-space: nowrap; }
a.tag:hover { color: var(--ink); }
.draft .cv, .memo.draft { opacity: .6; }
@media (max-width: 699px) { .memo { padding: 13px 12px 11px; } .memo h3 { font-size: 15.5px; } .memo-body { font-size: 13px; } }
.draft .ct::after, .memo.draft h3::after { content: "草稿"; display: inline-block; margin-left: 8px; padding: 1px 6px; background: var(--ink); color: var(--on-ink); border-radius: 3px; font: 11px/1.4 var(--sans); vertical-align: 2px; }

/* ---------- 一篇：扫描页翻看 + 右边下载 ---------- */
.note.nv { max-width: none; margin-top: 0; container-type: inline-size; }
.crumb { margin: 26px 0 0; font-size: 13px; color: var(--mute); } .crumb a { color: var(--mute); text-decoration: none; } .crumb a:hover { color: var(--ink); }
.nv-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 5.6vw, 34px); letter-spacing: .05em; line-height: 1.35; text-wrap: balance; }
.nv-meta { margin-top: 12px; display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.nv-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.nv-main { min-width: 0; display: grid; gap: 22px; }
.nv .note-body { max-width: 40em; }
.nv .note-body > :first-child { margin-top: 0; }
@container (min-width: 820px) { .nv-grid.has-side { grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; } .nv-grid.has-side .side { position: sticky; top: 16px; } }
.pv { position: relative; background: var(--mist); border-radius: 6px; padding: 14px 12px 14px; text-align: center; touch-action: pan-y; }
.pv .pg-big { display: block; margin: 0 auto; width: 100%; max-width: 520px; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; box-shadow: 0 10px 26px -12px rgba(27, 42, 74, .5); cursor: zoom-in; }
.pv .pg-big.in-r { animation: pg-r .22s var(--ease); } .pv .pg-big.in-l { animation: pg-l .22s var(--ease); }
@keyframes pg-r { from { opacity: .3; transform: translateX(16px); } } @keyframes pg-l { from { opacity: .3; transform: translateX(-16px); } }
.pv .flip { position: absolute; top: 44%; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); display: none; place-items: center; color: var(--ink); padding: 0; }
.pv .flip:disabled { opacity: .3; cursor: default; }
.pv .flip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pv .l { left: 14px; } .pv .r { right: 14px; }
.pv .cnt { display: inline-flex; margin-top: 12px; gap: 16px; align-items: baseline; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.pv .cnt b { color: var(--ink); font-weight: 600; }
.pv-miss { margin: 10px 0 0; font-size: 13px; color: var(--mute); }
@container (min-width: 560px) { .pv { padding: 22px 70px 16px; } .pv .flip { display: grid; } }
.thumbs { list-style: none; margin: 10px 0 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs li { flex: 0 0 auto; }
.thumbs button { display: block; padding: 0; border: 0; background: none; }
.thumbs img { display: block; width: 58px; height: 77px; object-fit: cover; border-radius: 3px; border: 1.5px solid var(--hair); opacity: .75; background: #fff; }
.thumbs li.on img { border-color: var(--gold); opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.thumbs.all { flex-wrap: wrap; overflow: visible; }
.side h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: .12em; display: flex; gap: 8px; align-items: center; }
.side h3::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--fog-deep); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.files { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1.5px solid var(--line); }
.files li { display: flex; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.ic { flex: none; width: 34px; height: 40px; border-radius: 3px; display: grid; place-items: end center; padding-bottom: 5px; font-size: 9.5px; font-weight: 700; color: #fff; letter-spacing: .04em; background: #5f6b85; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.ic.pdf { background: #c0473f; } .ic.xls { background: #2f7d4f; } .ic.zip { background: #6b6f80; }
.files .fn { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; } .files .fn small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }
.files .see { flex: none; font-size: 12.5px; color: var(--mute); }
.files .dl { flex: none; padding: 5px 13px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 12.5px; text-decoration: none; letter-spacing: .1em; transition: background .15s, color .15s; }
.files .dl:hover, .files li:first-child .dl { background: var(--ink); color: var(--on-ink); }
.more { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.more a { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: inherit; text-decoration: none; }
.more a:hover span { text-decoration: underline; }
.more img, .more .blank { flex: none; width: 36px; height: 48px; object-fit: cover; border-radius: 2px; border: 1px solid var(--hair); background: #f6f4ec; }
.more .blank { background: #f8f6ee repeating-linear-gradient(180deg, transparent 0 6px, rgba(95, 134, 181, .4) 6px 7px) 0 9px / 100% 100% no-repeat; }
.more small { display: block; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
/* 看大图：整页 ↔ 原大 */
.pz { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.pz-box { min-height: 0; overflow: auto; display: grid; place-items: center; padding: 52px 54px 0; }
.pz-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; cursor: zoom-in; }
.pz.full .pz-box { place-items: start center; }
.pz.full .pz-box img { max-width: none; max-height: none; cursor: zoom-out; }
.pz-n { margin: 0; padding: 12px 0 16px; text-align: center; font-size: 13px; color: var(--dim-night); font-variant-numeric: tabular-nums; }

/* ---------- 作品：合集一排竖排大字的小封面，墙上每张带合集名 ---------- */
.astrip li { flex: 0 0 44%; container-type: inline-size; }
.alb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; color: #fff; text-decoration: none; background: var(--night); border: 0; padding: 0; }
.alb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.alb:hover img { transform: scale(1.04); }
.alb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10, 14, 26, 0) 50%, rgba(10, 14, 26, .45)), linear-gradient(0deg, rgba(10, 14, 26, .6), rgba(10, 14, 26, 0) 45%); }
.alb .vt { position: absolute; z-index: 1; right: 7%; top: 7%; max-height: 74%; overflow: hidden; writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(22px, 15.5cqw, 40px); letter-spacing: .22em; line-height: 1.15; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.alb .vt.long { font-size: clamp(17px, 11cqw, 28px); }
.alb .en { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 13%; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 8.4cqw, 20px); letter-spacing: .04em; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alb .meta { position: absolute; z-index: 1; left: 7%; bottom: 6%; font: 600 10.5px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; color: var(--gold); }
.alb.nocover { background: var(--film) repeating-linear-gradient(135deg, transparent 0 14px, rgba(143, 178, 217, .07) 14px 15px); }
.alb.new { display: grid; place-items: center; background: none; border: 1.5px dashed var(--line); color: var(--mute); font-size: 14px; letter-spacing: .1em; }
.alb.new::after { display: none; }
.alb.new.nameform { place-items: stretch; align-content: center; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.picks button { padding: 4px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: 13.5px; letter-spacing: .06em; }
.picks button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.picks button.add { border-style: dashed; color: var(--mute); }
.picks .newcol { display: inline-flex; gap: 8px; align-items: baseline; }
.picks .newcol input { width: 9em; padding: 2px 0 4px; border: 0; border-bottom: 1.5px solid var(--ink); background: none; color: var(--ink); font: inherit; font-size: 14px; }
.picks .newcol button { border-radius: 3px; }
.lb-cols { flex: 1 1 100%; }
.lb-cols button { border-color: #3d4a66; color: var(--on-night); font-size: 12.5px; padding: 2px 11px; }
.lb-cols button[aria-pressed="true"] { background: var(--on-night); color: #0e1627; border-color: var(--on-night); }
.lb-cols .add, .lb-cols .newcol { display: none; }

/* ---------- 一个作品合集：影展页 ---------- */
.ab-back { margin-top: 22px; }
.ab-hero { position: relative; margin-top: 14px; height: min(72vh, 620px); border-radius: 4px; overflow: hidden; color: #fff; background: var(--night); }
.ab-hero img { width: 100%; height: 100%; object-fit: cover; display: block; animation: ab-in 1.4s var(--ease) both; }
@keyframes ab-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.ab-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 26, .72), rgba(10, 14, 26, 0) 55%), linear-gradient(90deg, rgba(10, 14, 26, 0) 60%, rgba(10, 14, 26, .35)); }
.ab-hero.nocover { height: auto; min-height: 320px; background: var(--film) repeating-linear-gradient(135deg, transparent 0 18px, rgba(143, 178, 217, .06) 18px 19px); }
.ab-hero .vt { position: absolute; z-index: 1; right: 22px; top: 26px; max-height: calc(100% - 60px); writing-mode: vertical-rl; font-family: var(--serif); font-size: 60px; letter-spacing: .3em; line-height: 1; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.ab-txt { position: absolute; z-index: 1; left: 22px; right: 100px; bottom: 26px; max-width: 460px; }
.ab-txt em { display: block; font-family: var(--serif); font-size: 28px; letter-spacing: .04em; }
.ab-txt em:empty { display: none; }
.ab-txt p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.85; opacity: .92; } .ab-txt p:empty { display: none; }
.ab-txt .meta { margin-top: 12px; font: 600 12px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; color: var(--gold); white-space: pre; }
.ab-own { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 4px; }
.ab-own input { flex: 1 1 140px; min-width: 0; padding: 3px 0 5px; border: 0; border-bottom: 1.5px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 14px; }
.ab-own #ab-e-intro { flex-basis: 100%; }
.ab-own input:focus { outline: none; border-color: var(--fog-deep); }
.ab-own a.linkish { text-decoration: none; }
.ab-flow { margin-top: 48px; display: grid; gap: 56px; }
.ab-fig { margin: 0 auto; min-width: 0; width: fit-content; max-width: 100%; }      /* 图多宽，这一块就多宽：说明的左边和图的左边对齐 */
.ab-fig a { display: block; cursor: zoom-in; }
.ab-fig img { display: block; width: auto; max-width: 100%; max-height: 82vh; height: auto; border-radius: 2px; background: var(--mist); }
.ab-fig figcaption { margin-top: 12px; display: flex; gap: 6px 14px; align-items: baseline; font-size: 13px; color: var(--mute); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ab-fig figcaption b { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--ink); letter-spacing: .06em; }
.ab-fig .ex { font: 11.5px/1.6 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; white-space: pre; }
.setcover { margin-left: auto; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: none; font-size: 12px; color: var(--ink); }
.setcover.on { border-color: var(--gold); color: var(--gold-ink); }
.ab-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: end; }
.ab-two .ab-fig { width: auto; margin: 0; } .ab-two .ab-fig img { width: 100%; max-height: none; }
.ab-off { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: end; }
.ab-off .ab-fig { margin: 0 0 0 auto; }
.ab-off .side-t { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 2; letter-spacing: .06em; white-space: pre-line; }
/* 下一个合集：一条横幅，用它的封面 */
.ab-next { position: relative; display: block; margin: 72px 0 10px; height: 170px; overflow: hidden; border-radius: 4px; color: #fff; text-decoration: none; background: var(--film) repeating-linear-gradient(135deg, transparent 0 18px, rgba(143, 178, 217, .06) 18px 19px); }
.ab-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ab-next:hover img { transform: scale(1.03); }
.ab-next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 26, .78), rgba(10, 14, 26, .25) 55%, rgba(10, 14, 26, .1)); }
.ab-next > span { position: absolute; z-index: 1; left: 22px; bottom: 20px; right: 22px; }
.ab-next small { display: block; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--gold); letter-spacing: .14em; }
.ab-next b { display: block; margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: .2em; }

/* ---------- 写笔记：扫描页、附件、开关 ---------- */
.pg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.pg { position: relative; display: grid; gap: 4px; }
.pg img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; border: 1.5px solid var(--hair); background: var(--mist); }
.pg.busy img { opacity: .45; }
.pg.busy::after { content: "传着"; position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.pg-n { position: absolute; left: 4px; top: 4px; min-width: 20px; padding: 0 5px; border-radius: 999px; background: rgba(27, 42, 74, .85); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.pg-acts { display: flex; justify-content: space-between; }
.pg-acts button, .fl-acts button { padding: 0 4px; border: 0; background: none; color: var(--mute); font-size: 14px; line-height: 1.4; }
.pg-acts button:hover, .fl-acts button:hover { color: var(--ink); }
.fl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fl { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--hair); border-radius: 6px; background: var(--card); }
.fl .fn { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; } .fl .fn small { display: block; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.fl progress { display: block; width: 100%; height: 4px; margin-top: 5px; appearance: none; border: 0; border-radius: 2px; background: var(--hair); color: var(--fog-deep); }
.fl progress::-webkit-progress-bar { background: var(--hair); border-radius: 2px; } .fl progress::-webkit-progress-value { background: var(--fog-deep); border-radius: 2px; } .fl progress::-moz-progress-bar { background: var(--fog-deep); }
.fl-acts { flex: none; display: flex; gap: 4px; } .fl-acts button { font-size: 13px; }
.tgs { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.tg { display: inline-flex; gap: 9px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.tg input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--ink); }
.tg small { display: block; font-size: 12px; color: var(--mute); }
.usage { margin-left: 8px; letter-spacing: .04em; font-variant-numeric: tabular-nums; } .usage.warn { color: #c2452f; }

@media (min-width: 700px) {
  .feed { gap: 18px; }
  .ab-hero .vt { font-size: 92px; right: 40px; top: 36px; }
  .ab-txt { left: 38px; bottom: 34px; } .ab-txt em { font-size: 34px; } .ab-txt p { font-size: 15px; }
  .ab-flow { gap: 72px; }
  .ab-two { grid-template-columns: 1fr 1fr; gap: 22px; }
  /* 展签：竖图旁边一小块，顶上一道金线，一行一样东西 */
  .ab-fig.tall { display: grid; grid-template-columns: auto minmax(150px, 210px); gap: 30px; align-items: end; }
  .ab-fig.tall img { max-height: 86vh; }
  .ab-fig.tall figcaption { margin: 0 0 6px; padding-top: 14px; border-top: 2px solid var(--gold); display: grid; gap: 5px; justify-items: start; }
  .ab-fig.tall figcaption b { font-size: 19px; margin-bottom: 4px; }
  .ab-fig.tall .say { color: var(--ink); line-height: 1.8; white-space: pre-line; margin-bottom: 4px; }
  .ab-fig.tall .ex { white-space: normal; }
  .ab-fig.tall .setcover { margin: 8px 0 0; }
  .ab-fig.tall.flip { grid-template-columns: minmax(150px, 210px) auto; } .ab-fig.tall.flip a { order: 2; } .ab-fig.tall.flip figcaption { justify-items: end; text-align: right; }
  .astrip { gap: 18px; } .astrip li { flex-basis: calc((100% - 54px) / 4); }
  .ab-next { height: 230px; } .ab-next > span { left: 38px; bottom: 32px; } .ab-next b { font-size: 40px; }
  .ab-off { grid-template-columns: 1fr 1.6fr; gap: 40px; } .ab-off .side-t { padding-bottom: 40px; font-size: 18px; }

}
@media (max-width: 699px) { .wk-cap { display: block; } .wk-date { display: block; margin-top: 1px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .ab-hero img { animation: none; } .alb img, .cv, .nb, .ab-next img { transition: none; } .pv .pg-big { animation: none !important; } }
