/* ==========================================================================
   JUNTO // ACID LAYER
   酸性设计：荧光酸绿 × 电光品红 × 液态铬 × 巨型拉伸字 × 人像套印
   只增强，不改变结构；无 JS 时所有内容可见（动画初始态只在 .acid-js 下生效）。
   ========================================================================== */
:root {
  --acid: #c6ff00;
  --acid-2: #8cff3f;
  --magenta: #ff2bd6;
  --volt: #2b3cff;
  --void: #07070a;
  --f-display: "Didot", "Bodoni 72", "Noto Serif SC", "Songti SC", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.7, 0, .2, 1);
}

/* ---------------- 自定义光标（仅精细指针 + JS） ---------------- */
.cursor { display: none; }
.acid-js.has-cursor, .acid-js.has-cursor a, .acid-js.has-cursor button, .acid-js.has-cursor summary { cursor: none; }
.acid-js.has-cursor input, .acid-js.has-cursor textarea { cursor: text; }
.acid-js.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  mix-blend-mode: difference;
}
.cursor i {
  position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .35s var(--ease-out), border-radius .3s;
}
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0); opacity: 0;
  font: 800 12px/1 var(--f-mono); letter-spacing: .14em; color: #000; white-space: nowrap;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.cursor.is-hover i { transform: scale(2.6); }
.cursor.is-label i { transform: scale(4.8); }
.cursor.is-label .cursor__label { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cursor.is-down i { transform: scale(.6); }

/* ---------------- 落地页基础 ---------------- */
.is-landing { background-color: var(--void); color: #f4f1ea; }
.is-landing::after { mix-blend-mode: overlay; opacity: .6; }
.wrap-wide { width: min(100% - 48px, 1600px); margin-inline: auto; }

.site-head--float {
  position: absolute; left: 0; right: 0; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(7,7,10,.92) 0%, rgba(7,7,10,.6) 60%, transparent 100%);
}
.site-head--float .nav a, .site-head--float .nav summary, .site-head--float .brand { color: #fff; }
.site-head--float .nav a[aria-current="page"] { background: var(--acid); color: #000; border-color: var(--acid); }
.site-head--float .nav .nav__sub { mix-blend-mode: normal; }
.site-head--float .brand__mark::before, .site-head--float .brand__mark::after { display: none; }
.site-head--float .sys-status { color: #fff; }

/* ---------------- ① HERO ---------------- */
.acid-hero {
  --gutter: clamp(16px, 1.7vw, 32px);
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template: 1fr auto auto / minmax(0, 1fr); align-items: end;
  padding: clamp(84px, 10svh, 120px) var(--gutter) 28px; background: var(--void); color: #fff;
}
.acid-hero__gl, .acid-hero__fallback, .acid-hero__grain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* 同一着色器的定帧：首屏、无 JS / WebGL 和减少动态模式都保留液态铬，不另换一张海报。 */
.acid-hero__fallback { z-index:-3; background: var(--void) url('/static/img/liquid-wide.webp') center / cover no-repeat; }
.acid-hero__gl { visibility:hidden; }
.gl-on .acid-hero__gl { visibility:visible; }
@media (orientation:portrait) { .acid-hero__fallback { background-image:url('/static/img/liquid-tall.webp'); } }
.acid-hero__grain {
  z-index: -1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .5s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } }

/* 版心本身不创建合成层：反色标题须与真正的底片（含液态场）混合。 */
.acid-plate { position: relative; align-self: stretch; display: grid; align-items: end; min-height: clamp(250px, 35vw, 560px); }
.acid-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 2% 13%, rgb(10 6 21 / .76), transparent 42%);
}
.cover-plane { position: absolute; inset: 0 calc(-1 * var(--gutter)) 0; overflow: hidden; z-index: 0; pointer-events: none; }
.cover-plane--face { z-index: 2; }
.cover-portrait {
  display: block; position: absolute; right: 9%; bottom: 0; height: min(100%, 75vw); width: auto; max-width: none;
  transform: var(--print-drift, translate(0, 0));
}
/* 遮罩沿下颌外侧和驾驶服领口走。脸在字前，衣服和发梢则在字后。 */
.cover-plane--face .cover-portrait { clip-path: polygon(0 0,100% 0,100% 56%,66% 48%,54% 49%,47% 52%,31% 54%,24% 62%,0 71%); }
@media (prefers-reduced-motion: no-preference) { .acid-js .cover-plane { animation: cover-pull .82s var(--ease-out) both; } }
@keyframes cover-pull { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.cover-imprint { position: absolute; z-index: 3; top: clamp(6px, 2svh, 24px); left: 0; color: #fff; text-shadow: 0 1px 5px #10081e; pointer-events: none; }
.cover-imprint__series, .cover-rail__kicker, .cover-pick small { font: 700 10px/1.25 var(--f-mono); letter-spacing: .15em; }
.cover-imprint__series { display: flex; align-items: center; gap: .8em; }
.cover-imprint__series i { width: clamp(18px, 3vw, 60px); height: 1px; background: currentColor; }
.cover-imprint__name { display: flex; align-items: baseline; gap: 10px; font: italic 500 clamp(27px, 3.4vw, 62px)/1.15 var(--f-display); letter-spacing: -.055em; }
.cover-imprint__name span { color: var(--acid); font: 700 11px/1 var(--f-sans); letter-spacing: .08em; }

/* 封面下沿也是版记：一边是站点题词，一边是真实作品入口，不加悬浮徽章。 */
.cover-rail { position: relative; z-index: 3; display: flex; align-items: stretch; gap: 16px; justify-content: space-between;
  background: #101014; border-top: 2px solid #e8e5d9; color: #f5f0de; }
.cover-rail__note { align-self: center; min-width: 0; padding: 12px 16px; }
.cover-rail__kicker { display: block; color: #d1cfc5; font-size: 9px; }
.cover-rail__kicker i { color: var(--acid); padding-inline: .5em; font-style: normal; }
.acid-hero__tag { margin: 3px 0 0; font: italic 500 clamp(16px, 1.7vw, 28px)/1.15 var(--f-display); overflow-wrap: anywhere; }
.cover-pick { flex: none; display: flex; gap: 12px; align-items: center; padding: 7px 16px; border-left: 1px solid #515158; text-decoration: none; }
.cover-pick img { width: 56px; height: 44px; object-fit: cover; }
.cover-pick small { display: block; color: #c8c5b8; font-size: 9px; }
.cover-pick strong { font: 700 17px/1.3 var(--f-sans); }
.cover-pick i { margin-inline-start: 16px; color: var(--acid); font: 400 23px/1 var(--f-sans); transition: transform .35s var(--ease-out); }
.cover-pick:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: 3px; }
.cover-pick:is(:hover,:focus-visible) i { transform: translate(2px,-2px); }

.acid-hero__nav {
  position: relative; z-index: 3; /* 变形字形的命中盒不得盖住四个入口。 */
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 40px; border-top: 1px solid #515158;
  background: #08080a; box-shadow: 0 3px 0 var(--acid);
}
.acid-hero__nav a {
  display: flex; gap: 10px; align-items: baseline; padding: 16px 4px; text-decoration: none; color: #fff;
  font: 800 clamp(13px, 1.4vw, 20px)/1 var(--f-mono); letter-spacing: .12em; padding-inline: 18px;
  border-right: 1px solid #333; transition: color .2s, background .2s, letter-spacing .4s var(--ease-out);
}
.acid-hero__nav a:last-child { border-right: 0; }
.acid-hero__nav a b { font-size: .65em; color: var(--acid); }
.acid-hero__nav a:hover { color: #000; background: var(--acid); letter-spacing: .22em; }
.acid-hero__nav a:hover b { color: var(--magenta); }
.acid-hero__scroll {
  position: absolute; z-index: 3; top: clamp(6px, 2svh, 24px); right: 0; display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #fff; text-shadow: 0 1px 4px #000; font: 700 10px/1 var(--f-mono); letter-spacing: .16em; padding: 6px 0 10px 8px;
}
.acid-hero__scroll span { font-size: 18px; }
.acid-hero__scroll:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- 酸性跑马灯 ---------------- */
.acid-marquee { position: relative; z-index: 3; margin-block: -40px -20px; }
.acid-marquee__row {
  overflow: hidden; background: var(--acid); color: #000; border-block: 3px solid #000;
  transform: rotate(-2.4deg) scale(1.04);
}
.acid-marquee__row--rev { background: var(--magenta); color: #fff; transform: rotate(1.8deg) scale(1.04); margin-top: -10px; }
.acid-marquee__track {
  display: flex; width: max-content; align-items: center; gap: 28px; padding: 14px 0;
  font: 900 clamp(28px, 4.6vw, 64px)/1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase;
  animation: marquee 30s linear infinite;
}
.acid-marquee__row--rev .acid-marquee__track { animation-direction: reverse; animation-duration: 36s; }
.acid-marquee__track span { transform: scaleY(1.2); display: inline-block; }
.acid-marquee__track i { font-style: normal; font-size: .7em; }
.acid-marquee__row:hover .acid-marquee__track { animation-play-state: paused; }

/* ---------------- 大标题 ---------------- */
.mega-h { margin: 0; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mega-h > span {
  font: 900 clamp(64px, 13vw, 240px)/.8 var(--f-display); letter-spacing: -.045em; text-transform: uppercase;
  transform: scaleY(1.25); transform-origin: top left; display: inline-block; padding-bottom: .22em;
}
.mega-h small {
  font: 800 12px/1.4 var(--f-mono); letter-spacing: .22em; padding: 6px 10px; background: var(--acid); color: #000;
  border-radius: 999px; margin-top: 10px;
}
[data-split] .ch { display: inline-block; }
.acid-js [data-split] .ch { transform: translateY(105%) rotate(8deg); opacity: 0; transition: transform .9s var(--ease-out), opacity .5s; transition-delay: calc(var(--ci) * 35ms); }
.acid-js [data-split].in .ch { transform: none; opacity: 1; }
.acid-js [data-split] { overflow: hidden; }

/* 按钮 */
.acid-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  background: var(--acid); color: #000; border: 3px solid #000; text-decoration: none;
  font: 900 14px/1 var(--f-mono); letter-spacing: .12em; box-shadow: 5px 5px 0 #000;
  transition: background .2s, color .2s, box-shadow .2s; will-change: transform;
}
.acid-btn:hover { background: var(--magenta); color: #fff; box-shadow: 8px 8px 0 #000; }
.acid-btn--ghost { background: transparent; color: currentColor; border-color: currentColor; box-shadow: none; }
.acid-btn--ghost:hover { background: var(--acid); color: #000; border-color: #000; box-shadow: 5px 5px 0 #000; }

/* ---------------- ② 横向作品廊 ---------------- */
.h-gallery { position: relative; background: var(--paper); color: var(--ink); padding-top: 90px; }
.h-gallery__sticky { position: relative; }
.h-gallery.is-pinned .h-gallery__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.h-gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 0 24px 24px; }
.h-gallery__viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 20px; }
.h-gallery.is-pinned .h-gallery__viewport { overflow: visible; }
.h-gallery__track { list-style: none; margin: 0; padding: 30px 24px; display: flex; gap: 34px; width: max-content; will-change: transform; }
.art-card { flex: 0 0 auto; width: clamp(220px, 24vw, 380px); transform: rotate(var(--r)); }
.art-card:nth-child(3n+2) { margin-top: 70px; }
.art-card:nth-child(4n) { width: clamp(260px, 30vw, 460px); }
.art-card a {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: #fff; padding: 12px 12px 14px; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  transform-style: preserve-3d; transition: box-shadow .3s, transform .5s var(--ease-out);
}
.art-card a:hover { box-shadow: 16px 16px 0 var(--magenta); }
.art-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.art-card a:hover img { animation: rgbshift .35s steps(2) infinite; }
@keyframes rgbshift {
  0% { filter: drop-shadow(-4px 0 0 rgba(255,43,214,.8)) drop-shadow(4px 0 0 rgba(0,240,255,.8)); }
  100% { filter: drop-shadow(4px 0 0 rgba(255,43,214,.8)) drop-shadow(-4px 0 0 rgba(0,240,255,.8)); }
}
.art-card__no {
  position: absolute; left: -18px; top: -22px; z-index: 2; padding: 6px 10px; background: var(--acid); border: 3px solid var(--ink);
  font: 900 18px/1 var(--f-mono);
}
.art-card__title { display: block; margin-top: 12px; font: 800 15px/1.3 var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-card--end a {
  display: grid; place-items: center; aspect-ratio: .82; background: var(--ink); color: var(--acid);
  font: 900 clamp(30px, 3.6vw, 54px)/1 var(--f-display); text-align: center; box-shadow: 10px 10px 0 var(--acid);
}
.art-card--end a:hover { background: var(--magenta); color: #fff; }
.h-gallery__progress { margin: 6px 24px 30px; height: 6px; background: rgba(13,13,15,.15); }
.h-gallery__progress i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
html:not(.acid-js) .h-gallery__progress { display: none; }

/* ---------------- ③ 巨型字目录 ---------------- */
.mega-index { position: relative; background: var(--void); color: #f4f1ea; padding: 110px 0 80px; }
.mega-index__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.lead-post { margin-bottom: 40px; padding: 34px 0 40px; border-top: 2px solid var(--acid); }
.lead-post__k { margin: 0 0 14px; font: 800 12px/1 var(--f-mono); letter-spacing: .22em; color: var(--acid); }
.lead-post__t { margin: 0; font: 900 clamp(38px, 6.4vw, 104px)/1.02 var(--f-serif); letter-spacing: -.02em; max-width: 16em; }
.lead-post__t a { text-decoration: none; background: linear-gradient(var(--magenta), var(--magenta)) 0 92% / 0 .14em no-repeat; transition: background-size .6s var(--ease-out); }
.lead-post__t a:hover { background-size: 100% .14em; }
.lead-post__e { margin: 18px 0 0; max-width: 46ch; font-size: 18px; color: #bcb8ae; }

.mega-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.25); }
.mega-row { border-bottom: 1px solid rgba(255,255,255,.25); position: relative; overflow: hidden; }
.mega-row a {
  position: relative; z-index: 1; display: grid; grid-template-columns: 70px 1fr auto 60px; align-items: center; gap: 20px;
  padding: 22px 24px; text-decoration: none; color: inherit;
  width: min(100%, 1600px); margin-inline: auto;
}
.mega-row::before { /* 悬停时酸绿填充从下往上推 */
  content: ""; position: absolute; inset: 0; background: var(--acid); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-snap);
}
.mega-row:hover::before, .mega-row:focus-within::before { transform: scaleY(1); }
.mega-row:hover a, .mega-row:focus-within a { color: #000; }
.mega-row__no { font: 800 14px/1 var(--f-mono); color: var(--acid); transition: color .2s; }
.mega-row:hover .mega-row__no { color: #000; }
.mega-row__title {
  font: 900 clamp(24px, 3.6vw, 56px)/1.1 var(--f-serif); letter-spacing: -.01em;
  transition: transform .5s var(--ease-out); transform-origin: left;
}
.mega-row:hover .mega-row__title { transform: translateX(18px) skewX(-6deg); }
.mega-row__meta { font: 12px/1.4 var(--f-mono); letter-spacing: .1em; opacity: .7; white-space: nowrap; }
.mega-row__arrow { font: 900 36px/1 var(--f-mono); justify-self: end; transition: transform .45s var(--ease-out); }
.mega-row:hover .mega-row__arrow { transform: rotate(45deg) scale(1.3); }
.mega-index .pager { margin-top: 40px; }
.mega-index .pager a, .mega-index .pager__off { background: transparent; color: #f4f1ea; border-color: #f4f1ea; box-shadow: none; }
.mega-index .pager a:hover { background: var(--acid); color: #000; }
.mega-index .pager__cur { background: var(--magenta); }

/* 悬停预览图：跟随光标 */
.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 300px; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .25s, transform .4s var(--ease-out);
}
.cursor-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.cursor-preview img { display: block; width: 100%; border: 3px solid #000; box-shadow: 10px 10px 0 var(--magenta); }
html:not(.acid-js) .cursor-preview { display: none; }

/* ---------------- ④ 仓库终端 ---------------- */
.acid-repos { background: var(--acid); color: #000; padding: 110px 0 90px; position: relative; overflow: hidden; }
.acid-repos::before { /* 网点 */
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background: radial-gradient(#000 1.4px, transparent 1.8px) 0 0 / 10px 10px;
  -webkit-mask: linear-gradient(120deg, #000, transparent 60%); mask: linear-gradient(120deg, #000, transparent 60%);
}
.acid-repos .mega-h small { background: #000; color: var(--acid); }
.term-list { list-style: none; margin: 0; padding: 0; background: #000; color: var(--acid); border: 3px solid #000; box-shadow: 14px 14px 0 var(--magenta); position: relative; }
.term-list::before { content: "● ● ●   ~/repos — zsh — 120×40"; display: block; padding: 10px 16px; font: 12px/1 var(--f-mono); color: #777; border-bottom: 1px solid #333; letter-spacing: .1em; }
.term-row a {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: baseline;
  padding: 16px 20px; text-decoration: none; color: inherit; font-family: var(--f-mono);
  border-bottom: 1px dashed #2a2a2a; transition: background .15s, color .15s, padding .3s var(--ease-out);
}
.term-row:last-child a { border-bottom: 0; }
.term-row a:hover { background: var(--acid); color: #000; padding-left: 34px; }
.term-row__prompt { color: #777; font-size: 13px; }
.term-row a:hover .term-row__prompt { color: #000; }
.term-row__name { font-weight: 900; font-size: clamp(16px, 1.8vw, 24px); }
.term-row__desc { font-size: 13px; color: #b9f0a0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-row a:hover .term-row__desc { color: #000; }
.term-row__meta { display: flex; gap: 14px; font-size: 12px; }
.term-row__meta i { font-style: normal; }
.term-row__meta i::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--lang); border: 1px solid currentColor; }
.acid-repos__more { margin: 40px 0 0; }

/* ---------------- ⑤ 语录摘页 ---------------- */
.kinetic-quote {
  position: relative; isolation: isolate; color: #211320; background: var(--magenta);
  padding: clamp(44px, 5vw, 82px) clamp(24px, 7vw, 120px) clamp(54px, 7.5vw, 120px);
}
/* Clip only the moving ink, never the quote, its credit or the link's focus ring. */
.kinetic-quote__backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.kinetic-quote__orb {
  position: absolute; left: 50%; top: 50%; width: 70vmin; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #fff 0, var(--acid) 25%, var(--volt) 60%, transparent 70%);
  filter: blur(8px); opacity: .75;
}
.kinetic-quote__page { max-inline-size: 68rem; margin-inline: auto; }
.kinetic-quote__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem;
  padding-block-end: 4px; border-block-end: 1px solid currentColor;
}
.kinetic-quote__head h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25em .95em; margin: 0;
  font: 700 15px/1.5 var(--f-sans);
}
.kinetic-quote__head small { font: 650 10px/1.4 var(--f-mono); letter-spacing: .09em; }
.kinetic-quote__head a { display: inline-flex; align-items: center; gap: .5em; min-block-size: 44px; }
.kinetic-quote__stack { display: grid; align-items: center; margin-block-start: clamp(28px, 3.8vw, 60px); }
.kinetic-quote__excerpt {
  grid-area: 1 / 1; margin: 0; display: grid;
  grid-template-columns: clamp(22px, 4.8vw, 68px) minmax(0, 1fr); column-gap: clamp(6px, 1vw, 16px);
}
/* Reserve the tallest excerpt at this width so a page turn never moves the reader or the footer. */
.kinetic-quote__excerpt[aria-hidden="true"] { visibility: hidden; }
.kinetic-quote__mark { font: 700 clamp(42px, 7.5vw, 100px)/.88 Georgia, serif; }
.kinetic-quote blockquote { grid-column: 2; margin: 0; }
.kinetic-quote__text {
  margin: 0; max-inline-size: 20em; font: 600 clamp(24px, .95rem + 2.5vw, 54px)/1.42 var(--f-display);
  letter-spacing: -.02em; line-break: strict; overflow-wrap: anywhere; text-wrap: balance;
}
.kinetic-quote__phrase { display: inline-block; max-inline-size: 100%; vertical-align: top; }
.kinetic-quote figcaption {
  grid-column: 2; margin-block-start: clamp(16px, 2vw, 28px); padding-inline-start: .85em; border-inline-start: 2px solid;
  font: 550 clamp(14px, 1.1vw, 17px)/1.6 var(--f-sans); overflow-wrap: anywhere;
}
.kinetic-quote__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .6em; margin-block-start: clamp(20px, 3vw, 40px); font: 600 13px/1.4 var(--f-sans); }
.kinetic-quote__controls [data-quote-count] { font: 600 12px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; }
.kinetic-quote__controls button { min-height: 44px; padding: 0 .45em; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.kinetic-quote__controls button:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .25em; }
.kinetic-quote__controls [data-quote-auto] { margin-inline-start: auto; }
.kinetic-quote__controls[hidden], .kinetic-quote__controls button[hidden] { display: none; }
@media (max-width: 30rem) {
  .kinetic-quote__head { align-items: end; }
  .kinetic-quote__head h2 { flex-direction: column; align-items: start; gap: 2px; padding-block-end: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .kinetic-quote__orb { animation: orb 10s ease-in-out infinite alternate; }
  @keyframes orb { to { transform: translate(-40%, -60%) scale(1.25); } }
  .acid-js .kinetic-quote.in figure:not([aria-hidden="true"]) { animation: quote-ink .6s var(--ease-out); }
  @keyframes quote-ink { from { opacity: .45; transform: translateY(12px); } }
}

/* ---------------- ⑥ 收尾 ---------------- */
.acid-end { background: var(--void); color: #fff; padding: 100px 24px 80px; text-align: center; overflow: hidden; }
.acid-end__big { margin: 0; display: flex; flex-direction: column; align-items: center; font: 900 clamp(80px, 19vw, 360px)/.78 var(--f-display); letter-spacing: -.05em; }
.acid-end__big span { display: block; transform: scaleY(1.3); }
.acid-end__big span:last-child { color: transparent; -webkit-text-stroke: 2px var(--acid); font-style: italic; }
.acid-end__row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 70px; }

/* ---------------- 全站：滚动显现 ---------------- */
.acid-js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.acid-js [data-reveal].in { opacity: 1; transform: none; }

/* 非首页：列表页头巨字更酸一点 */
.list-head { background: var(--acid); }
.list-head::after { -webkit-text-stroke: 2px rgba(13,13,15,.18); }
.article-head::before { background: radial-gradient(var(--acid) 2px, transparent 2.6px) 0 0 / 12px 12px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .cover-portrait { right: -2%; }
  .mega-row a { grid-template-columns: 40px 1fr 30px; gap: 12px; padding: 18px 16px; }
  .mega-row__meta { grid-column: 2; grid-row: 2; }
  .mega-row__arrow { grid-row: 1 / 3; grid-column: 3; font-size: 24px; }
  .term-row a { grid-template-columns: 1fr auto; }
  .term-row__prompt { grid-column: 1 / -1; }
  .term-row__desc { grid-column: 1 / -1; white-space: normal; }
  .acid-hero__scroll { display: none; }
}
@media (hover: none) { .cursor-preview { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .acid-js [data-reveal], .acid-js [data-split] .ch { opacity: 1 !important; transform: none !important; }
  .acid-js .h-gallery__sticky { position: relative; height: auto; }
  .acid-js .h-gallery__viewport { overflow-x: auto; }
}

/* 收尾只约束溢出与降级；允许交叉色带出血，但不让它撑开整页。clip 不会破坏 sticky。 */
.is-landing #main { overflow-x: clip; }
.logs-search { max-width:28rem;margin:26px 0 0 auto; }
.site-head--float .nav__sub a {color:var(--ink)}
.site-head--float .nav__sub a:hover {color:var(--paper)}
@media(min-width:1100px) { .site-head--float .site-head__bar {width:min(calc(100% - 48px),1500px)} }
@media(max-width:900px){
 .term-row a{grid-template-columns:minmax(0,1fr) auto}.term-row__name,.mega-row__title{overflow-wrap:anywhere}
 .mega-row a{grid-template-columns:40px minmax(0,1fr) 30px}
 .acid-hero__nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .acid-hero__nav a{padding-inline:10px;gap:6px;min-width:0}
 .acid-hero__nav a:hover{letter-spacing:.12em}
 .acid-repos .mega-h>span{font-size:clamp(40px,12.9vw,116px)}
 .h-gallery{padding-block:70px 20px}.h-gallery__track{padding-inline:28px}
}
@media(max-width:600px){
 .site-head--float .brand__sub{display:none}
 .cover-portrait{right:-9%;height:min(100%,117vw)}
 .cover-rail{gap:4px}.cover-rail__note{padding:9px 8px}.cover-rail__kicker{font-size:8px;letter-spacing:.06em}
 .cover-pick{padding:6px 8px;gap:6px}.cover-pick img{width:36px;height:40px}.cover-pick small{font-size:8px;letter-spacing:.05em}
 .cover-pick i{margin:0;font-size:17px}.acid-hero__nav a{font-size:12px}
 .nav-toggle[open]>.nav{max-height:75svh;overflow-y:auto}
 .mega-h>span{font-size:clamp(44px,13vw,78px)}
}
.h-gallery.is-pinned .h-gallery__sticky { overflow:clip; }
