/* 展览图录：页面外壳保持安静，颜色只出现在图版和画框里 */
:root {
  --c-paper: oklch(0.972 0.006 85);
  --c-paper2: oklch(0.94 0.009 80);
  --c-ink: oklch(0.2 0.01 60);
  --c-muted: oklch(0.46 0.012 60);
  --c-rule: oklch(0.86 0.01 70);
  --c-seal: oklch(0.5 0.17 28);
  --c-room: oklch(0.185 0.008 60);
  --c-room2: oklch(0.235 0.009 60);
  --c-room3: oklch(0.285 0.01 60);
  --c-room-ink: oklch(0.93 0.01 80);
  --c-room-muted: oklch(0.72 0.012 70);
  --c-room-rule: oklch(0.34 0.01 60);
  --c-room-seal: oklch(0.74 0.13 40);
  --f-serif: "Noto Serif SC", "Songti SC", serif;
  --f-latin: "Bodoni Moda", "Noto Serif SC", serif;
  --f-sans: -apple-system, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4.5vw, 72px);
  --max: 1480px;
  --bar-h: 54px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--bar-h); }

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 15px/1.75 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
em[lang="en"], .en { font-family: var(--f-latin); font-style: italic; font-weight: 400; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-serif); font-weight: 700; }
p { margin: 0; }
figure { margin: 0; }
picture { display: block; }
.skin-img picture, .study-img picture, .plate-visual picture { width: 100%; height: 100%; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--c-ink); color: var(--c-paper); }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--c-seal); outline-offset: 3px; }
.room :focus-visible { outline-color: var(--c-room-ink); }

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-rule);
}

.brand { display: inline-flex; align-items: center; min-height: 40px; font: 700 17px var(--f-serif); text-decoration: none; white-space: nowrap; }
.brand em { margin-left: 6px; font-size: 16px; color: var(--c-muted); }

.bar nav { display: flex; gap: 4px; font-size: 14px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--c-muted); text-decoration: none; white-space: nowrap; transition: color 160ms ease-out; }
@media (hover: hover) { .bar nav a:hover { color: var(--c-ink); } }

/* 通用按钮 */
.btn {
  appearance: none;
  min-height: 40px;
  padding: 8px 14px;
  font: 500 14px var(--f-sans);
  color: inherit;
  background: transparent;
  border: 1px solid var(--c-rule);
  border-radius: 0;
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
@media (hover: hover) { .btn:not(:disabled):hover { border-color: currentColor; } }

.hero { max-width: var(--max); margin-inline: auto; padding: 40px var(--gutter) 28px; }
/* 首屏标题区：装饰艺术 × 超现实主义（见 DESIGN.md）。中轴对称：阶梯标题、地平线上的落日和放射线、悬在半空的原作、长投影 */
.hero { overflow-x: clip; }
.hero-head {
  position: relative; isolation: isolate;
  display: grid; justify-items: center; text-align: center;
  margin: -40px calc(-1 * var(--gutter)) 40px; padding: 72px var(--gutter) 64px;
  background: var(--bg); color: var(--ink); font-family: "Josefin Sans", var(--f-sans);
  border-bottom: 3px double var(--accent2);
}
.hero-head :focus-visible { outline-color: var(--accent); }
.hero-words { position: relative; z-index: 2; display: grid; justify-items: center; }
.hero-head p { margin: 0 0 30px; font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.hero-head h1 { display: flex; flex-direction: column; align-items: center; margin: 0; font: 900 clamp(34px, 4.4vw, 64px)/1.2 "Poiret One", "Songti SC", "Noto Serif SC", serif; letter-spacing: 0.06em; }
.hero-head h1 span { display: block; white-space: nowrap; padding: 0.22em 0.8em; border: 1px solid var(--accent2); }
/* 阶梯：上层窄、细线框；下层宽、反相实底，外面再一圈细线 */
.hero-head h1 span:first-child { font-size: 0.72em; border-bottom: 0; }
.hero-head h1 span:last-child { background: var(--ink); color: var(--accent2); outline: 1px solid var(--accent2); outline-offset: 5px; }
.hero-head h1:lang(en) { font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-head p.hero-lede { max-width: 34em; margin: 40px 0 0; font-size: 18px; font-weight: 400; line-height: 1.75; letter-spacing: 0; text-transform: none; color: var(--ink); }
.hero-stage { position: relative; width: calc(100% + 2 * var(--gutter)); height: 680px; margin: 8px calc(-1 * var(--gutter)) 36px; overflow: clip; }
.hero-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-sun { fill: var(--accent2); } .hero-ring { fill: none; stroke: var(--accent2); stroke-width: 1.5; }
.hero-rays path { stroke: var(--accent2); stroke-width: 1.5; }
.hero-ground { fill: var(--bg); } .hero-persp path { stroke: var(--line); stroke-width: 1.2; }
.hero-horizon { stroke: var(--ink); stroke-width: 2; } .hero-cast { fill: var(--ink); }
/* 原作立在地平线上方，悬着；画框是双金线，图注在 --bg 衬底上 */
.hero-original { position: absolute; z-index: 1; left: 50%; bottom: 262px; width: 240px; padding: 12px 12px 8px; background: var(--bg); border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 5px; transform: translateX(-50%); }
.hero-original img { display: block; width: 100%; height: auto; }
.hero-original figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hero-original figcaption a { color: var(--ink); }
.hero-go { position: relative; z-index: 2; }
.hero-head .hero-tex.pv { position: absolute; inset: 0; z-index: -1; min-height: 0; background: transparent; --tex-level: 0.5; }
.hero-mixnote { position: absolute; z-index: 2; right: var(--gutter); bottom: 18px; margin: 0 !important; padding: 0 !important; color: var(--muted) !important; font: 600 11px/1.6 "Josefin Sans", var(--f-sans) !important; letter-spacing: 0.3em !important; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .hero-rays path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: hero-draw 480ms cubic-bezier(0.2, 0, 0, 1) forwards; animation-delay: calc(240ms + var(--i) * 28ms); }
  .hero-original { animation: hero-float 7s ease-in-out 1.2s infinite alternate; }
}
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-float { to { transform: translateX(-50%) translateY(-12px); } }
.hero-slides { overflow: hidden; border: 1px solid var(--c-ink); }
.hero-slide { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 540px; color: var(--ink); background: var(--bg); }
.hero-slide:not(:first-child) { display: none; }
.hero[data-enhanced] .hero-slide { display: grid; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(26px, 3.5vw, 52px); border-right: 1px solid var(--line); }
.hero-mix { display: flex; align-items: center; gap: 14px; font: 500 12px/1.5 var(--f-sans); }
.hero-mix > span { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink); font: 12px var(--f-mono); }
.hero-copy h2 { margin-top: 36px; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.4; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.045em; }
.hero-copy h2 span { display: block; }
.hero-description { max-width: 25em; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.hero-cta { display: inline-flex; align-items: center; gap: 32px; min-height: 46px; margin-top: 26px; padding: 8px 18px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-size: 14px; font-weight: 600; }
/* 内联 SVG 图标：1.25px 细线，跟随文字颜色（v5 的细线风格）；不用 U+2197 这类会被系统渲染成 emoji 的字符 */
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: square; vertical-align: -0.125em; }
.hero-cta .icon { width: 18px; height: 18px; }
.hero-arrows button, .lang-hint-x { display: inline-grid; place-items: center; }
.hero-arrows .icon, .lang-hint-x .icon { width: 18px; height: 18px; }
.hero-roles { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.hero-slide :focus-visible { outline-color: var(--ink); }
.hero-controls { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-top: 16px; }
.hero-controls button { appearance: none; color: var(--c-ink); background: transparent; border: 1px solid var(--c-rule); cursor: pointer; font: 12px var(--f-sans); min-height: 44px; }
.hero-rotation { padding: 0 12px; }
.hero-controls button:disabled { color: var(--c-muted); cursor: default; }
.hero-pickers { display: flex; justify-content: center; gap: 8px; }
.hero-pickers button { display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; border-color: transparent; }
.hero-pickers button > span:first-child { font-family: var(--f-mono); }
.hero-pickers button[aria-pressed="true"] { color: var(--c-paper); background: var(--c-ink); border-color: var(--c-ink); }
.hero-arrows { display: flex; gap: 6px; }
.hero-arrows button { width: 44px; font-size: 22px; }
.hero-controls button:not(:disabled):hover { border-color: var(--c-ink); }
.hero-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-combinations { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 44px; margin-top: 16px; font-size: 12px; }
.hero-combinations > span { color: var(--c-muted); }
.hero-combinations a { min-height: 32px; text-underline-offset: 4px; }
.hero[data-enhanced] .hero-combinations { display: none; }
.hero-disclaimer { margin-top: 16px; font-size: 11px; color: var(--c-muted); }
.hero[data-transition="true"] .hero-slide:not([hidden]) .hero-copy { animation: hero-enter 240ms ease-out; }
@keyframes hero-enter { from { opacity: 0.6; } to { opacity: 1; } }
@media (max-width: 1100px) {
  .hero-controls { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .hero-pickers button { padding-inline: 12px; }
  .hero-pickers button > span:last-child { display: none; }
  .hero-copy { padding: 28px; }
  .hero-copy h2 { font-size: 30px; }
  .hero-description { font-size: 13px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 28px; }
  .hero-head { margin-top: -28px; padding: 40px var(--gutter) 56px; }
  .hero-head p { margin-bottom: 22px; font-size: 10px; letter-spacing: 0.22em; }
  .hero-head h1 { font-size: clamp(24px, 7.4vw, 34px); letter-spacing: 0.02em; }
  .hero-head h1 span { padding: 0.24em 0.5em; }
  .hero-head h1:lang(en) { letter-spacing: 0.06em; }
  .hero-head h1:lang(en) span { white-space: normal; }
  .hero-head p.hero-lede { margin-top: 30px; font-size: 16px; }
  .hero-stage { height: 540px; margin-bottom: 24px; }
  .hero-original { bottom: 206px; width: 184px; padding: 8px 8px 4px; }
  .hero-original figcaption { font-size: 11px; line-height: 1.35; }
  .hero-original figcaption a { min-height: 32px; }
  .hero-mixnote { position: static; margin-top: 26px !important; }
  .hero-slide, .hero[data-enhanced] .hero-slide { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { min-height: 330px; padding: 22px 24px 26px; border-right: 0 !important; }
  .hero-copy h2 { margin-top: 22px; font-size: clamp(26px, 6.8vw, 36px); }
  .hero-description { margin-top: 12px; max-width: 30em; }
  .hero-cta { margin-top: 20px; min-height: 44px; font-size: 13px; }
  .hero-roles { display: none; }
  .hero-controls { gap: 8px; padding-top: 12px; }
  .hero-controls button { min-height: 44px; font-size: 11px; }
  .hero-rotation { padding: 0 8px; }
  .hero-pickers { gap: 3px; }
  .hero-pickers button { padding: 0 8px; min-width: 28px; }
  .hero-arrows { gap: 4px; }
  .hero-arrows button { width: 34px; font-size: 18px; }
  .hero-disclaimer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-transition="true"] .hero-slide:not([hidden]) .hero-copy { animation: none; }
}

/* 工作台：暗室 */
.room { background: var(--c-room); color: var(--c-room-ink); }
.room .btn { border-color: var(--c-room-rule); }
.room .btn[aria-pressed="true"] { color: var(--c-room); background: var(--c-room-ink); border-color: var(--c-room-ink); }

.bench {
  display: grid;
  grid-template-columns: clamp(380px, 37vw, 540px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro stage" "steps stage";
  gap: 0 clamp(32px, 3.6vw, 56px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter) 64px;
}

.bench-intro { grid-area: intro; padding-bottom: 22px; }
.bench-intro h2 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 900; line-height: 1.3; }
.rule { margin-top: 6px; font-size: 15px; color: var(--c-room-muted); }
.rule b { color: var(--c-room-ink); font-weight: 600; }
.bench-summary { margin-bottom: 8px; font-size: 12px; color: var(--c-room-seal); }
.bench-about { margin-top: 10px; font-size: 13px; color: var(--c-room-muted); }
.bench-about a { display: inline-block; text-underline-offset: 3px; }
html:not(.js) .bench-stage, html:not(.js) .bench-steps { display: none; }
html:not(.js) .bench { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro"; }
html:not(.js) .install .targets, html:not(.js) .install .sheet, html:not(.js) .install-usage { display: none; }

.bench-steps { grid-area: steps; min-width: 0; }
.step + .step { margin-top: 22px; }

.step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.step-head h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.4; }
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--c-room-ink); font: 400 13px/1 var(--f-latin); }
.step-cap { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--c-room-muted); }
.step-count { font: 400 13px var(--f-sans); color: var(--c-room-muted); }

/* ① 骨架：黑白几何线框，只比较版式 */
.skels { container-type: inline-size; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }

.skel {
  appearance: none;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  font: inherit;
  color: var(--c-room-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease-out, color 160ms ease-out;
}
.skel .wire { display: block; width: 100%; height: auto; aspect-ratio: 90 / 76; background: #fff; outline: 1px solid var(--c-room-rule); transition: outline-color 160ms ease-out; }
.skel-name { font-size: 12.5px; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skel:active { transform: scale(0.97); }
.skel[aria-pressed="true"] { color: var(--c-room-ink); }
.skel[aria-pressed="true"] .wire { outline: 2px solid var(--c-room-ink); outline-offset: 2px; }
.skel[aria-pressed="true"] .skel-name { font-weight: 600; }
@media (hover: hover) {
  .skel:hover { color: var(--c-room-ink); }
  .skel:not([aria-pressed="true"]):hover .wire { outline-color: var(--c-room-muted); }
}

/* ② 表皮：横向滚动的画片 */
.skin-groups { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 6px; }
.grp {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  font: 500 13px var(--f-sans);
  color: var(--c-room-muted);
  background: transparent;
  border: 1px solid var(--c-room-rule);
  border-radius: 0;
  cursor: pointer;
  transition: transform 120ms ease-out, color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
.grp span { font-size: 12px; opacity: 0.75; }
.grp:active { transform: scale(0.97); }
.grp.is-on { color: var(--c-room-ink); border-color: var(--c-room-muted); background: var(--c-room2); }
@media (hover: hover) { .grp:hover { color: var(--c-room-ink); } }

.skins {
  --card: clamp(104px, calc((100cqi - 32px) / 4.4), 128px);
  container-type: inline-size;
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px 6px 10px;
  margin: -2px -6px 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-room-rule) transparent;
}
.skin-group { display: flex; gap: 8px; }
.skin-group + .skin-group { padding-left: 13px; margin-left: 5px; border-left: 1px solid var(--c-room-rule); }
/* 桌面：24 种表皮按分组平铺成网格，一眼看全，不再横向滚动 */
@media (min-width: 901px) {
  .skin-groups { display: none; }
  .skins { display: grid; gap: 14px; padding: 0; margin: 0; overflow: visible; }
  .skin-group { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; }
  .skin-group::before { content: attr(aria-label); content: attr(aria-label) / ""; grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.08em; color: var(--c-room-muted); }
  .skin-group + .skin-group { padding: 12px 0 0; margin: 0; border-left: 0; border-top: 1px solid var(--c-room-rule); }
  .skins .skin { width: auto; min-width: 0; }
  .skins .skin-name { gap: 4px; }
}

.skin {
  appearance: none;
  flex: 0 0 var(--card);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 5px;
  width: var(--card);
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--c-room-muted);
  background: none;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 120ms ease-out, color 160ms ease-out;
}
.skin-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sw-bg) 0 50%, var(--sw-accent) 50% 100%);
  outline: 1px solid var(--c-room-rule);
  transition: outline-color 160ms ease-out;
}
.skin-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.skin[data-img="none"] .skin-img img { display: none; }
/* 英文名较长（Gongbi Bird-and-Flower），允许折行，不撑宽卡片 */
.skin-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; line-height: 1.3; text-wrap: balance; }
.skin-chip { display: inline-flex; flex: none; box-shadow: 0 0 0 1px oklch(1 0 0 / 0.14); }
.skin-chip i { display: block; width: 7px; height: 7px; }
.skin-chip i:nth-child(1) { background: var(--sw-bg); }
.skin-chip i:nth-child(2) { background: var(--sw-accent); }
.skin-chip i:nth-child(3) { background: var(--sw-accent2); }
.skin:active { transform: scale(0.97); }
.skin[aria-pressed="true"] { color: var(--c-room-ink); }
.skin[aria-pressed="true"] .skin-img { outline: 2px solid var(--c-room-ink); outline-offset: 2px; }
.skin[aria-pressed="true"] .skin-name { font-weight: 600; }
@media (hover: hover) {
  .skin:hover { color: var(--c-room-ink); }
  .skin:not([aria-pressed="true"]):hover .skin-img { outline-color: var(--c-room-muted); }
}

/* ③ 提示词 */
.sheet { display: flex; flex-direction: column; min-width: 0; background: var(--c-paper2); border-top: 2px solid var(--c-ink); }
.sheet header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--c-rule); }
.sheet header > span { flex: 1; min-width: 0; font-size: 12px; color: var(--c-muted); overflow-wrap: anywhere; }
.sheet pre {
  margin: 0;
  padding: 16px 18px 20px;
  font: 12.5px/1.7 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.room .sheet { background: var(--c-room2); border-top-color: var(--c-room-ink); }
.room .sheet pre { padding: 12px 16px 16px; font-size: 12px; color: var(--c-room-ink); }
.room #code-out { min-height: 320px; }
/* 收起状态（app.js foldBlocks）：不渲染，不内部滚动 */
.room #code-out.is-folded { min-height: 0; max-height: calc(6.8em + 28px); overflow: clip; }
.room .fold-toggle { align-self: flex-start; margin: 0 16px 16px; }

.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 6px; border-bottom: 1px solid var(--c-room-rule); }
.tabs { display: flex; }
.tab {
  appearance: none;
  min-height: 44px;
  padding: 0 12px;
  font: 700 15px var(--f-serif);
  color: var(--c-room-muted);
  background: none;
  border: 0;
  box-shadow: inset 0 -2px 0 transparent;
  cursor: pointer;
  transition: transform 120ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { color: var(--c-room-ink); box-shadow: inset 0 -2px 0 var(--c-room-ink); }
@media (hover: hover) { .tab:hover { color: var(--c-room-ink); } }

.panel-meta { padding: 10px 16px 0; font-size: 12px; color: var(--c-room-muted); }

.subject { display: grid; gap: 6px; padding: 10px 16px 0; font-size: 12px; color: var(--c-room-muted); }
.subject input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  font: 13px var(--f-mono);
  color: var(--c-room-ink);
  background: var(--c-room);
  border: 1px solid var(--c-room-rule);
  border-radius: 0;
}
.subject input::placeholder { color: var(--c-room-muted); opacity: 0.8; }

.takeaway { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.takeaway-k { margin-right: 4px; font: 700 15px var(--f-serif); }
.takeaway-note, .takeaway-msg { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; color: var(--c-room-muted); }
.takeaway-msg { color: var(--c-room-seal); }
.takeaway-msg:empty { display: none; }
.btn[aria-busy="true"] { cursor: progress; }

.to-install { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; font-size: 13px; color: var(--c-room-muted); text-underline-offset: 4px; }
@media (hover: hover) { .to-install:hover { color: var(--c-room-ink); } }

.bench-steps .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-room-rule); }
.hint { min-height: 1.75em; margin-top: 10px; font-size: 13px; color: var(--c-room-muted); }

/* 舞台：900px 宽的示例页按比例缩小，不重排 */
.bench-stage {
  grid-area: stage;
  align-self: start;
  width: 100%;
  min-width: 0;
  /* 桌面：预览随第 1–3 步吸顶。吸顶区只放预览和一行说明，高度不超过一屏，不在栏内单独滚动（页面里不套会滚动的框） */
  position: sticky;
  top: calc(var(--bar-h) + 12px);
}
.bench-stage:has(.is-compare) { position: static; }
/* viki 定：工作台里不再放“认识这两个流派”和展签（图鉴里有同样的内容）；元素留在页面里给 app.js 用 */
#workbench .duo, #workbench .label, #workbench .to-duo { display: none !important; }
/* 左栏收起：只在桌面；收起后预览居中，占满整行 */
.stage-head .bench-fold { margin-left: auto; }
.bench.is-folded { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
.bench.is-folded .bench-intro, .bench.is-folded .bench-steps { display: none; }
@media (max-width: 900px) { .bench-fold { display: none; } }
.bench-stage .frame { max-width: calc((100svh - var(--bar-h) - 210px) * 900 / 760 + 32px); margin-inline: auto; }
.bench-stage:has(.is-compare) .frame { max-width: none; }

.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 8px; }
.stage-head h2 { font-size: 15px; line-height: 1.4; }
.stage-head h2 span { margin-left: 6px; font: 400 13px var(--f-sans); color: var(--c-room-muted); }

.frame { padding: 8px; background: oklch(0.1 0.005 60); outline: 1px solid var(--c-room-rule); }
.mat { padding: clamp(8px, 1.1vw, 14px); background: oklch(0.985 0.003 80); }

.stage-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stage-view.is-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-fig { display: grid; gap: 8px; min-width: 0; }
.stage-fig figcaption { font-size: 12.5px; line-height: 1.5; color: var(--c-muted); }
.stage-fig figcaption .cap-k { display: block; font: 700 14px var(--f-serif); color: var(--c-ink); }
.stage-fig figcaption b { font-weight: 500; color: var(--c-ink); }
.stage-fig figcaption b.chg { font-weight: 700; color: var(--c-seal); }

.note { display: grid; gap: 2px; margin-top: 12px; padding: 10px 16px 12px; background: var(--c-room3); font-size: 14px; line-height: 1.6; }
.note-k { font-size: 12px; letter-spacing: 0.08em; color: var(--c-room-seal); }
.to-duo { display: none; }

/* 两栏展签：骨架和表皮各自是谁 */
.duo { container-type: inline-size; margin-top: 2px; background: var(--c-room2); font-size: 13px; line-height: 1.65; }
.duo-k { padding: 10px 16px 0; font: 400 12px/1.5 var(--f-sans); letter-spacing: 0.08em; color: var(--c-room-muted); }
.duo-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo-cols.is-pure { grid-template-columns: minmax(0, 1fr); }
.duo-col { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 8px 16px 14px; }
.duo-col + .duo-col { border-left: 1px solid var(--c-room-rule); }
.duo-meta { font-size: 12px; color: var(--c-room-muted); }
.duo-meta b { font-weight: 600; color: var(--c-room-ink); }
.duo h4 { font-size: 16px; line-height: 1.35; }
.duo h4 .en { font-size: 14px; color: var(--c-room-muted); }
.duo-sub { font: 400 13px var(--f-sans); color: var(--c-room-muted); }
.duo-intro { margin-top: 2px; font-size: 13.5px; line-height: 1.7; color: var(--c-room-ink); text-wrap: pretty; }
.duo-does { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0 12px; margin-top: 6px; }
.duo-does > span { font-size: 12px; color: var(--c-room-muted); }
.duo-does ul { margin: 0; padding: 0; list-style: none; }
.duo-does li { text-wrap: pretty; }
.duo-cap { display: inline-block; }
@container (max-width: 560px) {
  .duo-cols { grid-template-columns: minmax(0, 1fr); }
  .duo-col + .duo-col { border-left: 0; border-top: 1px solid var(--c-room-rule); }
}

.label { margin-top: 2px; background: var(--c-room2); font-size: 13px; }
.label summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  list-style: none;
  cursor: pointer;
}
.label summary::-webkit-details-marker { display: none; }
.label .more { flex: none; font-size: 12px; color: var(--c-room-muted); }
.label .more::after { content: " ↓"; }
.label details[open] .more::after { content: " ↑"; }
@media (hover: hover) { .label summary:hover .more { color: var(--c-room-ink); } }
.label-body { padding: 0 16px 14px; }
.label h4 { font-size: 16px; line-height: 1.35; }
.label h4 .en { font-size: 14px; color: var(--c-room-muted); }
.label .thesis { color: var(--c-room-muted); }
.label dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 0; }
.label dt { color: var(--c-room-muted); }
.label dd { margin: 0; }
.label .warn { color: oklch(0.72 0.15 40); }

/* 章节 */
.chapter { max-width: var(--max); margin-inline: auto; padding: 96px var(--gutter) 112px; }

/* 章节标题沿中轴，和首屏同一套装饰艺术语言：细线框住的标题、外面再一圈细线、金色双线分隔章节 */
.chapter + .chapter { border-top: 3px double var(--accent2); }
.chapter-head { display: grid; justify-items: center; gap: 22px; margin-bottom: 64px; text-align: center; }
.chapter-head h2 { padding: 0.26em 0.9em; border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 5px; font: 400 clamp(28px, 3.4vw, 46px)/1.2 "Poiret One", "Songti SC", "Noto Serif SC", serif; letter-spacing: 0.06em; }
.chapter-head h2:lang(en) { letter-spacing: 0.12em; text-transform: uppercase; }
.chapter-head p { max-width: 40em; font-size: 16px; line-height: 1.75; color: var(--c-muted); }

.group-head {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: baseline;
  margin: 0 0 32px;
  padding-top: 18px;
  border-top: 1px solid var(--c-ink);
}
.group-head h3 { font-size: 22px; }
.group-head p { max-width: 44em; color: var(--c-muted); }
.plates + .group-head, .fold-toggle + .group-head { margin-top: 96px; }

/* 图版 */
.plates { display: grid; gap: 64px 40px; }
.plates-structure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plates-surface { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }

.plate { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plate-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--c-rule); font-size: 13px; color: var(--c-muted); }
.plate-no { font: italic 400 15px var(--f-latin); color: var(--c-ink); }
.plate h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 28px; line-height: 1.25; }
.plates-surface .plate h4 { font-size: 24px; }
.plate h4 .en { font-size: 19px; color: var(--c-muted); }
.plate .essence { font-size: 15px; }

.traits { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.traits dt { font-size: 12px; line-height: 24px; color: var(--c-muted); letter-spacing: 0.08em; }
.traits dd { margin: 0; color: var(--c-muted); }
.traits dd b { color: var(--c-ink); font-weight: 600; }

.plate-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.plate-actions button { display: none; }
.js .plate-actions button { display: inline-flex; }
.plate-more { display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: 4px; font-size: 13px; }
.plate-intro { color: var(--c-muted); font-size: 14px; }
.plate h4 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.plate-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.plate-original { margin: 0; }
.plate-original picture { display: block; aspect-ratio: 4 / 3; background: var(--c-paper2); }
.plate-original img { display: block; width: 100%; height: 100%; object-fit: contain; }
.plate-original figcaption a, .hero-original figcaption a { display: inline-block; padding-block: 4px; }
.plate-original figcaption { min-height: calc(3em + 8px); margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--c-muted); }
.plate-pair .plate-original picture { aspect-ratio: 900 / 760; }
.plate-standin img { object-fit: cover; }
.plate-original + .pv.pv-study { aspect-ratio: 6 / 1.2; }
.plate-original + .pv.pv-study .study-glyph { display: none; }
@media (max-width: 640px) { .plate-pair { grid-template-columns: minmax(0, 1fr); } }
.plate-visual { aspect-ratio: 900 / 760; overflow: hidden; background: var(--c-paper2); }
.plate-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 缩略网页：真实的示例页按比例缩小 */
.thumb {
  position: relative;
  aspect-ratio: 900 / 760;
  overflow: hidden;
  background: var(--c-paper2);
  outline: 1px solid oklch(0.2 0.01 60 / 0.14);
}
.thumb > .pv {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  transform: scale(var(--s, 0.4));
  transform-origin: 0 0;
  pointer-events: none;
}
.thumb > .pv,
.thumb > .pv > .pv-page { min-height: 760px; }

/* 表皮色彩研究：底色 + 质感 + 色块，不套任何骨架 */
.pv.pv-study { aspect-ratio: 6 / 5; min-height: 0; outline: 1px solid oklch(0.2 0.01 60 / 0.14); }
.study-img { position: absolute; inset: 0 0 auto; z-index: 1; height: 80%; margin: 0; overflow: hidden; }
.study-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-study[data-img="none"] .study-img { display: none; }
.pv-study[data-img="none"] .study-glyph { display: block; }
.pv-study[data-img="ok"] .study-glyph { display: none; }
.study-glyph {
  display: none;
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 1;
  font: 400 clamp(56px, 7vw, 92px)/1 var(--f-latin);
  color: var(--ink);
}
.study-glyph[lang="zh"] { font-family: var(--f-serif); font-weight: 700; }
.study-chips { position: absolute; inset: auto 0 0; z-index: 1; display: flex; height: 20%; }
.study-chips i { display: block; }
.study-chips i:nth-child(1) { flex: 3; background: var(--surface); }
.study-chips i:nth-child(2) { flex: 2; background: var(--accent); }
.study-chips i:nth-child(3) { flex: 1; background: var(--accent2); }
.study-chips i:nth-child(4) { flex: 1; background: var(--accent3); }
.study-chips i:nth-child(5) { flex: 1; background: var(--ink); }

/* 安装 */
.install-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.quick-install { display: grid; gap: 12px; max-width: 46em; }
.install-zip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.install-zip .btn { text-decoration: none; color: var(--c-ink); }
/* 高级安装：默认收起，展开后才是按 Agent 的下载包、终端脚本和单独文件 */
.install-more { margin-top: 40px; border-top: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-rule); }
.install-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; }
.install-more summary::-webkit-details-marker { display: none; }
.install-more summary::after { content: "展开 ↓"; flex: none; font-size: 13px; font-weight: 400; color: var(--c-muted); }
.install-more[open] summary::after { content: "收起 ↑"; }
:root[lang="en"] .install-more summary::after { content: "Show ↓"; }
:root[lang="en"] .install-more[open] summary::after { content: "Hide ↑"; }
.install-more[open] { padding-bottom: 28px; }
.install-more .skill-versions { margin-top: 12px; }
.install { display: grid; gap: 16px; max-width: 52em; padding-top: 18px; border-top: 1px solid var(--c-rule); }
.quick-install h3 { font-size: 20px; }
.quick-install p { color: var(--c-muted); font-size: 13px; }
.quick-install pre { margin: 0; padding: 14px 16px; font: clamp(12px, 3.2vw, 14px)/1.6 var(--f-mono); white-space: pre; overflow-x: auto; }
html:not(.js) .quick-install .btn { display: none; }
.skill-versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.skill-version { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px; border: 1px solid var(--c-rule); }
.skill-version h3 { font-size: 20px; }
.skill-version p { color: var(--c-muted); font-size: 13px; }
.skill-version .btn, .install-usage .btn { text-decoration: none; }
.skill-dir, .skill-call, .install-usage code { display: block; font: 12px/1.75 var(--f-mono); overflow-wrap: anywhere; }
.skill-call { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-rule); }
.skill-portable { margin-bottom: 24px; max-width: 60em; color: var(--c-muted); font-size: 13px; }
.install-usage { display: grid; justify-items: start; gap: 12px; margin-top: 20px; font-size: 13px; }
.install-usage p { color: var(--c-muted); }
@media (max-width: 900px) { .skill-versions { grid-template-columns: minmax(0, 1fr); } }
.targets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.targets .btn[aria-pressed="true"] { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.files { margin-top: 14px; font-size: 14px; color: var(--c-muted); }
.files a { display: inline-flex; align-items: center; min-height: 32px; margin-left: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--c-ink); }
/* 手机上不能装技能：主入口只留复制命令 */
@media (max-width: 640px) { .install-zip { display: none; } }
.say h3 { margin-bottom: 10px; font-size: 18px; }
.say ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-rule); }
.say li { padding: 12px 0; border-bottom: 1px solid var(--c-rule); }
.say li::before { content: "“"; color: var(--c-muted); }
.say li::after { content: "”"; color: var(--c-muted); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter) 40px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 3px solid var(--c-ink);
}
.colophon a { display: inline-flex; align-items: center; min-height: 24px; }

/* 一次性进场 */
.js .reveal { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.reading-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.reading-item { display: block; padding: 18px 0; border-top: 1px solid var(--c-rule); text-decoration: none; }
.reading-item h3 { font-size: 20px; line-height: 1.5; }
.reading-item p { margin-top: 6px; color: var(--c-muted); }
.reading-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.article-page { max-width: 1040px; margin-inline: auto; padding: 32px var(--gutter) 96px; }
.breadcrumbs { font-size: 13px; color: var(--c-muted); overflow-wrap: anywhere; }
.breadcrumbs a { text-underline-offset: 3px; }
.article-head { display: grid; justify-items: start; gap: 18px; padding: 36px 0; }
.article-kicker { color: var(--c-muted); font-size: 13px; }
.article-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; text-wrap: balance; }
.article-lede { max-width: 40em; font-size: 18px; }
.article-head .btn { text-decoration: none; }
.article-visual img { display: block; width: 100%; height: auto; }
.article-visual figcaption { margin-top: 10px; font-size: 13px; color: var(--c-muted); }
.article-body { max-width: 760px; margin-inline: auto; }
.article-body section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--c-rule); }
.article-body h2 { margin-bottom: 18px; font-size: clamp(22px, 2.7vw, 28px); line-height: 1.4; }
.article-body p + p { margin-top: 14px; }
.article-body a { text-underline-offset: 4px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 10px; }
.article-body pre { padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--c-paper2); border-top: 2px solid var(--c-ink); font: 13px/1.8 var(--f-mono); }
.article-body code { font: 13px var(--f-mono); overflow-wrap: anywhere; }
.article-facts { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px 20px; }
.article-facts dt { color: var(--c-muted); font-size: 13px; }
.article-facts dd { margin: 0; overflow-wrap: anywhere; }
.article-body .palette-list { list-style: none; padding: 0; }
.palette-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.palette-list code:last-child { color: var(--c-muted); }
.palette-swatch { width: 28px; height: 28px; border: 1px solid var(--c-rule); flex: none; }
.mix-recommendations p { margin-top: 6px; color: var(--c-muted); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 20px; }
.article-provenance { color: var(--c-muted); font-size: 13px; }

@media (max-width: 1100px) {
  .plates-surface { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .bench {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "stage" "steps";
    padding-top: 22px;
  }
  .bench-intro { padding-bottom: 16px; }
  .bench-stage {
    position: sticky;
    top: var(--bar-h);
    z-index: 3;
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin: 0 calc(-1 * var(--gutter)) 20px;
    padding: 8px var(--gutter) 10px;
    background: var(--c-room);
    border-bottom: 1px solid var(--c-room-rule);
    max-height: none;
    overflow: visible;
  }
  .bench-stage .frame { max-width: calc(19svh * 900 / 760 + 32px); }
  .stage-head { min-height: 36px; margin-bottom: 6px; }
  /* 手机：吸顶区只留一行说明，完整内容由 aria-live 读出 */
  .note { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 6px; padding: 4px 12px; font-size: 13px; line-height: 1.5; }
  #note { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .note-k { display: none; }
  .to-duo { display: inline-flex; align-items: center; justify-self: start; min-height: 24px; font-size: 12.5px; color: var(--c-room-muted); text-underline-offset: 3px; }
  @media (hover: hover) { .to-duo:hover { color: var(--c-room-ink); } }
  .duo { scroll-margin-top: calc(var(--stage-h, 23svh + 170px) + 12px); }
  .duo-cols { grid-template-columns: minmax(0, 1fr); }
  .duo-col + .duo-col { border-left: 0; border-top: 1px solid var(--c-room-rule); }
  .bench-stage:has(.is-compare) { position: static; }
  .bench-stage:has(.is-compare) .frame { max-width: none; }
  .stage-view.is-compare { grid-template-columns: minmax(0, 1fr); }
  .skel, .skin, .grp, .tab, .bench-steps .btn { scroll-margin-top: calc(var(--bar-h) + 23svh + 150px); }
  .label-slot { margin-top: 22px; }
  .skels { display: flex; gap: 8px; padding: 6px 6px 10px; margin: -6px -6px 0; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 6px; scrollbar-width: thin; scrollbar-color: var(--c-room-rule) transparent; }
  .skel { flex: 0 0 clamp(96px, calc((100cqi - 24px) / 3.4), 140px); scroll-snap-align: start; }
  .skins { --card: clamp(110px, calc((100cqi - 16px) / 2.6), 150px); }
  .plates-structure, .install-main { grid-template-columns: minmax(0, 1fr); }
  .group-head { grid-template-columns: minmax(0, 1fr); }
}

/* 触屏宽度：链接和按钮的点击区不小于 32×32（正文段落里的行内链接除外） */
@media (max-width: 900px) {
  .bar nav a, .hero-pickers button { min-width: 32px; justify-content: center; }
  .bench-about a, .to-duo, figcaption a { display: inline-flex; align-items: center; min-height: 32px; }
  .related-links a, .plate h4 a { display: flex; align-items: center; min-height: 32px; }
  .plate h4 a { display: inline-flex; }
  .colophon a { align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
}

@media (max-width: 900px) and (max-height: 560px) {
  .bench-stage { position: static; }
}

@media (max-width: 640px) {
  .bar { gap: 8px; }
  .brand em { display: none; }
  .doc .brand em { display: inline-block; }
  .doc .brand b { font-size: 16px; letter-spacing: 0.16em; margin-right: -0.16em; }
  .doc .bar { gap: 2px; }
  .doc .bar nav a { font-size: 11px; letter-spacing: 0.08em; padding: 0 6px; }
  .doc .brand em { font-size: 8px; letter-spacing: 0.3em; margin-right: -0.3em; }
  .doc .brand { gap: 2px; }
  .doc .bar nav { gap: 0; }
  .doc .bar nav a { padding: 0 7px; }
  /* 英文导航词更长（Catalogue），390 宽放不下四个链接加品牌名 */
  :root[lang="en"] .bar nav a { padding: 0 6px; }
  .bar nav a { padding: 0 10px; }
  .plates-surface, .reading-list { grid-template-columns: minmax(0, 1fr); }
  .article-facts { grid-template-columns: 70px minmax(0, 1fr); gap: 10px 12px; }
  .chapter { padding-block: 72px 88px; }
  .chapter-head { margin-bottom: 40px; }
  .stage-head h2 span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .skel, .skel .wire, .grp, .skin, .skin-img, .tab, .bar nav a { transition: none; }
  .skins, .skels { scroll-behavior: auto; }
}

/* 全站外壳（首页和文章类页面都在 <html class="doc">）：装饰艺术 × 超现实主义，见 DESIGN.md。
   把外壳的 --c-* 变量换成 DESIGN.md 的色板，原有文章样式直接沿用，再加骨架规则。 */
.doc {
  --bg: oklch(0.9 0.04 70); --surface: oklch(0.85 0.05 230); --ink: oklch(0.22 0.03 260); --muted: oklch(0.42 0.04 250);
  --line: oklch(0.55 0.05 250); --accent: oklch(0.45 0.12 250); --on-accent: oklch(0.97 0.015 70); --accent2: oklch(0.72 0.11 60);
  --deco-ease: cubic-bezier(0.2, 0, 0, 1);
  --c-gold: var(--accent2); /* 外壳金色：轮播里每张图会覆盖 --accent2，外壳控件用这个 */
  --c-paper: var(--bg); --c-paper2: var(--surface); --c-ink: var(--ink); --c-muted: var(--muted); --c-rule: var(--line); --c-seal: var(--accent);
  /* 工作台是 v5 混合器面板：--surface 浅蓝底、--ink 字、--accent2 金线；样稿和提示词放在 --bg 米色纸上 */
  --c-room: var(--surface); --c-room2: var(--bg); --c-room3: var(--bg); --c-room-ink: var(--ink); --c-room-muted: var(--muted); --c-room-rule: var(--accent2); --c-room-seal: var(--accent);
  --f-serif: "Poiret One", "Songti SC", "Noto Serif SC", serif;
  --f-latin: "Poiret One", "Josefin Sans", sans-serif;
  --f-sans: "Josefin Sans", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --tex-level: 0.5;
  background: var(--bg);
}
.doc body { background: transparent; }
.doc .doc-tex.pv { position: fixed; inset: 0; z-index: -1; min-height: 0; background: transparent; }
.doc :focus-visible { outline-color: var(--accent); }
.doc .skip { background: var(--ink); color: var(--bg); }
.doc .bar { justify-content: center; gap: clamp(12px, 3vw, 44px); background: var(--bg); border-bottom: 3px double var(--accent2); }
.doc .bar nav { display: contents; }
.doc .bar nav a:nth-child(1) { order: 1; } .doc .bar nav a:nth-child(2) { order: 2; } .doc .brand { order: 3; } .doc .bar nav a:nth-child(3) { order: 4; } .doc .bar nav a:nth-child(4) { order: 5; }
.doc .bar nav a { font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.doc .bar nav a:lang(zh-CN), .doc :lang(zh-CN) > .bar nav a { letter-spacing: 0.12em; }
/* 品牌字标：tasteux 是主品牌（Poiret One 全大写、宽字距），Style Mix 是产品名，叠在下面一行小字 */
.doc .brand { flex-direction: column; justify-content: center; gap: 2px; padding-inline: 8px; }
.doc .brand b { font: 400 22px/1 "Poiret One", var(--f-sans); text-transform: uppercase; letter-spacing: 0.3em; margin-right: -0.3em; color: var(--ink); }
.doc .brand em { margin: 0; padding: 0; font: 600 10px/1 "Josefin Sans", var(--f-sans); font-style: normal; text-transform: uppercase; letter-spacing: 0.4em; margin-right: -0.4em; color: var(--muted); background: none; }
.doc .colophon b { font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; }
.doc .bar nav a { color: var(--ink); }
.doc h1, .doc h2, .doc h3 { font-weight: 900; letter-spacing: 0; }
/* 拉丁标题：Poiret One 400、全大写、字距 0.12em；中文标题 900（回退到宋体） */
.doc :is(h1, h2, h3):lang(en) { font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; }
.doc .breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.doc .breadcrumbs { text-align: center; }
.doc .article-page { position: relative; max-width: none; margin-inline: 0; overflow-x: clip; }
.doc .article-head { position: relative; isolation: isolate; gap: 22px; padding: 56px 0 72px; justify-items: center; text-align: center; margin-inline: auto; }
.doc .article-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); }
.doc .article-head h1 { max-width: 15em; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.2; margin: 18px auto 14px; padding: 0.35em 0.8em; border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 6px; }
.doc .article-head::after { content: ""; display: block; width: min(420px, 70%); height: 1px; margin-top: 18px; background: var(--accent2); }
.doc .article-lede { max-width: 34em; color: var(--muted); margin-inline: auto; }
.doc .article-visual { max-width: 900px; margin-inline: auto; }
/* 流派页的网页预览：没有 JS 量宽度，按断点给固定缩放 */
.school-pv { margin: 0 0 28px; }
.school-pv .thumb { --s: 0.35; width: calc(900px * var(--s)); max-width: calc(100% - 12px); margin-inline: auto; border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 5px; box-sizing: content-box; }
.school-pv figcaption { max-width: 40em; margin-top: 10px; font-size: 13px; color: var(--c-muted); }
.school-pv figcaption a { display: inline-block; padding-block: 4px; margin-left: 4px; }
@media (min-width: 560px) { .school-pv .thumb { --s: 0.56; } }
@media (min-width: 900px) { .school-pv .thumb { --s: 0.8; } }
@media (min-width: 1100px) { .school-pv .thumb { --s: 0.98; } }
.doc .article-visual img { border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 5px; }
.doc .article-visual figcaption a { display: inline-block; padding-block: 4px; }
.doc .article-body { margin-inline: auto; }
.doc .article-body section { border-top: 3px double var(--accent2); }
.doc .article-body h2::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 14px; vertical-align: 0.2em; background: var(--accent2); transform: rotate(45deg); }
.doc .article-body a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.doc .article-body pre { background: var(--surface); border: 1px solid var(--accent2); }
.doc .colophon { background: var(--ink); color: var(--bg); border-top: 3px double var(--accent2); }
.doc .colophon a, .doc .colophon span, .doc .colophon em { color: var(--bg); }
.doc .frame { background: var(--ink); }
.doc .mat { background: var(--bg); }
.doc .label .warn { color: var(--accent2); }
.doc :is(.bench-summary, .note-k, .takeaway-msg) { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .doc .article-head .btn, .doc .article-body .btn, .doc .hero-go { transition: none; } }
@media (max-width: 760px) {
  .doc .article-head { padding-bottom: 48px; }
  .doc .article-head h1 { padding: 0.3em 0.5em; }
}

/* 固定广告位：只在图鉴两组之间和页脚上方。高度固定，加载时不跳；标注「广告」；广告内容不归 DESIGN.md 管（检查时排除 .adsbygoogle）。 */
.ad-slot { max-width: var(--max); margin: 48px auto; padding: 0 var(--gutter); }
.ad-slot .ad-label { display: inline-block; margin: 0; padding: 3px 8px; font: 700 11px/1.4 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-paper); background: var(--c-ink); }
.ad-slot ins.adsbygoogle { display: block; width: 100%; height: 250px; overflow: hidden; background: var(--c-paper2); border: 3px solid var(--c-ink); }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.chapter .ad-slot { padding: 0; }

/* 阅读页（教程、关于、隐私，见 DESIGN.md「页面类型」）：配色、字体、按钮不变；保留居中和双线框标题，去掉放射纹和阶梯层叠；正文单栏，每行约 40 个汉字；质感减半。 */
.doc-reading { --tex-level: 0.25; }
.doc-reading .article-head { padding: 40px 0 24px; }
.doc-reading .article-head h1 { margin: 14px auto 6px; max-width: 20em; }
.doc-reading .article-head, .doc-reading .article-body { max-width: 40em; }
.doc-reading .article-body { font-size: 16px; }
@media (max-width: 760px) { .doc-reading .article-head { padding-bottom: 32px; } }

/* 按钮（DESIGN.md 布局·按钮）：主按钮 = --ink 实心底 + 全大写宽字距字 + 一圈 1px 琥珀细线；字色用 --accent2
   （规则写 --accent，但它在 --ink 上只有约 2:1，见迭代记录）。次按钮 = 1px --line 细线框；反相区块里线框用 --bg。 */
.doc .btn { border: 1px solid var(--line); font-weight: 600; }
.doc .room .btn { border-color: var(--accent2); }
.doc .room .btn[aria-pressed="true"] { color: var(--accent2); background: var(--ink); border-color: var(--ink); }
.doc .article-head .btn, .doc .article-body .btn, .doc .hero-go { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 34px; border: 1px solid var(--accent2); background: var(--ink); color: var(--accent2); font: 600 14px/1.2 "Josefin Sans", "PingFang SC", "Noto Sans SC", sans-serif; text-transform: uppercase; letter-spacing: 0.28em; text-decoration: none; transition: letter-spacing 480ms var(--deco-ease), transform 480ms var(--deco-ease); }
@media (hover: hover) { .doc .article-head .btn:hover, .doc .article-body .btn:hover, .doc .hero-go:hover { letter-spacing: 0.36em; } }
.doc .article-head .btn:active, .doc .article-body .btn:active, .doc .hero-go:active { transform: scale(0.98); }
.doc .hero-go span { display: none; }
/* 定制页：区块标签、价格旁的首批案例价、正文里的按钮 */
.doc .article-body section > .article-kicker { margin-bottom: 8px; }
.doc .article-body .btn { margin-top: 22px; text-decoration: none; }
.price-note { margin-top: 14px; padding-left: 12px; border-left: 4px solid var(--accent2); font-size: 14px; color: var(--muted); }
.install-watch { margin-top: 28px; font-size: 14px; color: var(--c-muted); }
.install-watch a { color: inherit; text-underline-offset: 4px; }
/* 改版实录：截图带图注；手机截图两张并排 */
.case-shot { margin-block: 24px; }
.case-shot img { display: block; width: 100%; height: auto; outline: 3px solid var(--line, var(--c-ink)); }
.case-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted, var(--c-muted)); }
.case-pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 640px) { .case-pair { grid-template-columns: minmax(0, 1fr); } .case-pair .case-shot:last-child { max-width: 60%; } }
/* 中文页给英文浏览器的切换提示：底部一条反相横条，不遮首屏，可关闭 */
.lang-hint { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter, 20px); background: var(--ink); color: var(--bg); border-top: 3px solid var(--accent); font: 400 15px/1.4 "Josefin Sans", system-ui, sans-serif; }
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; }
.lang-hint-go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--accent); color: var(--on-accent); font: 700 15px/1 "Poiret One", "Josefin Sans", sans-serif; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.lang-hint-x { margin-left: auto; width: 40px; height: 40px; padding: 0; border: 2px solid var(--bg); background: none; color: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; }
body.has-lang-hint { padding-bottom: 64px; }
@media (max-width: 640px) { .lang-hint { gap: 10px; font-size: 14px; } .lang-hint p { display: none; } .lang-hint-go { flex: 1; justify-content: center; } }
@media (prefers-reduced-motion: no-preference) { .lang-hint-go { transition: transform 160ms ease-out; } .lang-hint-go:active { transform: translateY(2px); } }

/* 滚动镜头（只在首页）：滚动驱动，只动 transform / opacity；到读字和操作工作台的位置镜头停稳。
   三段：① 首屏推向太阳（地平线以上的画面放大、原作被推近并上移、标题上移淡出）
        ② 穿过地平线进工作台（两扇 --ink 幕从地平线处上下分开，工作台标题从近处落定）
        ③ 图鉴拉远（章节标题从放大的近景退回原位，第一排图版从纵深依次排开）
   不支持 scroll-driven animations 时由 camera.js 写 --cam-* 变量兜底；减少动态效果时整段不生效。 */
@media (prefers-reduced-motion: no-preference) {
  #workbench { position: relative; isolation: isolate; overflow-x: clip; }
  #workbench::before, #workbench::after { content: ""; position: absolute; left: 0; right: 0; height: 50vh; z-index: 5; background: var(--ink); pointer-events: none; will-change: transform; }
  #workbench::before { top: 0; border-bottom: 3px double var(--accent2); transform-origin: top; }
  #workbench::after { top: 50vh; border-top: 3px double var(--accent2); transform-origin: bottom; }
  #plates { overflow-x: clip; }
  .hero-land { transform-origin: 50% 62.5%; will-change: transform; }

  /* ── 原生：CSS scroll-driven animations ── */
  @supports (animation-timeline: scroll()) {
    .hero-land { animation: cam-sun linear both; animation-timeline: scroll(root); animation-range: 0 110vh; }
    .hero-original { animation: hero-float 7s ease-in-out 1.2s infinite alternate, cam-fig linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 110vh; }
    .hero-words { animation: cam-words linear both; animation-timeline: scroll(root); animation-range: 10vh 80vh; }
    #workbench { view-timeline: --bench block; }
    #workbench::before { animation: cam-door-up linear both; animation-timeline: --bench; animation-range: cover 0vh cover 60vh; }
    #workbench::after { animation: cam-door-down linear both; animation-timeline: --bench; animation-range: cover 0vh cover 60vh; }
    .bench-intro { animation: cam-land linear both; animation-timeline: --bench; animation-range: cover 15vh cover 60vh; }
    #plates { view-timeline: --plates block; }
    #plates .chapter-head { animation: cam-pull linear both; animation-timeline: --plates; animation-range: entry 0% entry 70%; }
    #plates .plates:first-of-type > * { animation: cam-row linear both; animation-timeline: --plates; animation-range: entry 20% entry 90%; }
    #plates .plates:first-of-type > :nth-child(2) { animation-range: entry 28% entry 90%; }
    #plates .plates:first-of-type > :nth-child(3) { animation-range: entry 36% entry 90%; }
    #plates .plates:first-of-type > :nth-child(n+4) { animation-range: entry 44% entry 90%; }
  }
  @keyframes cam-sun { to { transform: scale(2.4); } }
  @keyframes cam-fig { to { scale: 1.35; translate: 0 -38%; } }
  @keyframes cam-words { to { transform: translateY(-18vh) scale(0.94); opacity: 0; } }
  @keyframes cam-door-up { from { transform: none; } to { transform: scaleY(0); } }
  @keyframes cam-door-down { from { transform: none; } to { transform: scaleY(0); } }
  @keyframes cam-land { from { transform: scale(1.18); opacity: 0.2; } to { transform: none; opacity: 1; } }
  @keyframes cam-pull { from { transform: scale(1.9); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes cam-row { from { transform: translateY(12vh) scale(0.82); opacity: 0; } to { transform: none; opacity: 1; } }

  /* ── 兜底：camera.js 在 <html> 上加 cam-js，并把 0–1 的进度写进 --cam-hero / --cam-bench / --cam-plates ── */
  .cam-js .hero-land { transform: scale(calc(1 + 1.4 * var(--cam-hero, 0))); }
  .cam-js .hero-original { scale: calc(1 + 0.35 * var(--cam-hero, 0)); translate: 0 calc(-38% * var(--cam-hero, 0)); }
  .cam-js .hero-words { transform: translateY(calc(-18vh * var(--cam-words, 0))) scale(calc(1 - 0.06 * var(--cam-words, 0))); opacity: calc(1 - var(--cam-words, 0)); }
  .cam-js #workbench::before, .cam-js #workbench::after { transform: scaleY(calc(1 - var(--cam-bench, 1))); }
  .cam-js .bench-intro { transform: scale(calc(1.18 - 0.18 * var(--cam-bench, 1))); opacity: calc(0.2 + 0.8 * var(--cam-bench, 1)); }
  .cam-js #plates .chapter-head { transform: scale(calc(1.9 - 0.9 * var(--cam-plates, 1))); opacity: var(--cam-plates, 1); }
  .cam-js #plates .plates:first-of-type > * { transform: translateY(calc(12vh * (1 - var(--cam-plates, 1)))) scale(calc(0.82 + 0.18 * var(--cam-plates, 1))); opacity: var(--cam-plates, 1); }
}

/* v5 面板：图鉴卡片、阅读卡片、安装区和工作台用同一套装饰艺术语言——
   --surface 底、--accent2 金色细线框、内容沿中轴居中、Poiret One 标题、Josefin Sans 字距拉开的小标、深色按钮配金字。
   双线框（外加一圈 outline）只留给章节标题和悬停中的卡片，其余只用单线。 */
.group-head { border-top-color: var(--accent2); }
.group-head h3 { font: 400 24px/1.3 "Poiret One", "Songti SC", "Noto Serif SC", serif; letter-spacing: 0.04em; }
.plates { gap: 40px 32px; }
.plates-surface { gap: 40px 28px; }
.plate { gap: 16px; padding: 26px 26px 30px; background: var(--surface); border: 1px solid var(--accent2); text-align: center; transition: outline-offset 480ms cubic-bezier(0.2, 0, 0, 1); outline: 1px solid transparent; outline-offset: 0; }
@media (hover: hover) { .plate:hover { outline-color: var(--accent2); outline-offset: 6px; } }
.plate-meta { justify-content: center; gap: 18px; padding-bottom: 12px; border-bottom-color: var(--accent2); font: 600 11px/1.6 "Josefin Sans", var(--f-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.plate-no { font: 400 16px/1 "Poiret One", var(--f-latin); letter-spacing: 0.12em; color: var(--ink); }
.plate h4 { justify-content: center; font: 400 30px/1.25 "Poiret One", "Songti SC", "Noto Serif SC", serif; letter-spacing: 0.04em; }
.plates-surface .plate h4 { font-size: 26px; }
.plate h4 .en { font: 400 15px/1.4 "Josefin Sans", var(--f-sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.plate .essence { font-size: 15px; color: var(--ink); }
.plate-intro { color: var(--muted); }
.plate-original picture, .plate-visual { background: var(--bg); }
.plate-original figcaption { color: var(--muted); }
.traits { grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: center; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--accent2); }
.traits dt { margin-top: 10px; font: 600 11px/1.6 "Josefin Sans", var(--f-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.traits dt:first-child { margin-top: 0; }
.traits dd { color: var(--ink); }
.plate-actions { justify-content: center; gap: 10px; }
.plate-actions .btn, #plates > .fold-toggle { min-height: 44px; padding: 8px 22px; background: var(--ink); color: var(--accent2); border: 1px solid var(--accent2); font: 600 12px/1.4 "Josefin Sans", var(--f-sans); letter-spacing: 0.24em; text-transform: uppercase; transition: letter-spacing 480ms cubic-bezier(0.2, 0, 0, 1), transform 120ms ease-out; }
@media (hover: hover) { .plate-actions .btn:hover, #plates > .fold-toggle:hover { letter-spacing: 0.32em; border-color: var(--accent2); } }
#plates > .fold-toggle { display: flex; margin: 56px auto 0; }
.plate-more { justify-content: center; width: 100%; color: var(--ink); }

.reading-list { gap: 28px; }
.reading-item { display: grid; align-content: start; justify-items: center; gap: 10px; padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--accent2); text-align: center; outline: 1px solid transparent; outline-offset: 0; transition: outline-offset 480ms cubic-bezier(0.2, 0, 0, 1); }
.reading-item h3 { font: 400 22px/1.45 "Poiret One", "Songti SC", "Noto Serif SC", serif; letter-spacing: 0.03em; }
.reading-item h3::after { content: ""; display: block; width: 48px; height: 1px; margin: 14px auto 0; background: var(--accent2); }
.reading-item p { margin: 0; max-width: 30em; color: var(--muted); }
@media (hover: hover) { .reading-item:hover { outline-color: var(--accent2); outline-offset: 6px; } .reading-item:hover h3 { text-decoration: none; } }

.quick-install h3, .say h3 { font: 400 24px/1.3 "Poiret One", "Songti SC", "Noto Serif SC", serif; letter-spacing: 0.04em; }
.quick-install p, .install-watch, .skill-portable { color: var(--muted); }
#install .sheet { background: var(--ink); color: var(--bg); border: 1px solid var(--accent2); }
#install .sheet header { border-bottom-color: var(--accent2); }
#install .sheet header > span { font: 600 11px/1.6 "Josefin Sans", var(--f-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent2); }
#install .sheet pre { color: var(--bg); }
#install .sheet .btn { min-height: 40px; background: transparent; color: var(--accent2); border: 1px solid var(--accent2); font: 600 12px/1.4 "Josefin Sans", var(--f-sans); letter-spacing: 0.24em; }
#install .sheet :focus-visible { outline-color: var(--accent2); }
.say ul { border-top-color: var(--accent2); }
.say li { border-bottom-color: var(--accent2); }
.skill-version, .install { border-color: var(--accent2); }
.skill-version { background: var(--surface); }
@media (max-width: 720px) {
  .plate { padding: 20px 18px 24px; }
  .plate h4 { font-size: 26px; } .plates-surface .plate h4 { font-size: 24px; }
  .reading-item { padding: 24px 20px 26px; }
}
.install-more, .install-more summary { border-color: var(--accent2); }

/* 图鉴卡片：照 v5 预览——--bg 底、金色细线框，只留原作、流派名、年代和一句话；中间两张抬高 28px，悬停上浮 */
.plates, .plates-structure, .plates-surface { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.plate { gap: 8px; padding: 14px 14px 22px; background: var(--bg); border: 1px solid var(--accent2); outline: 0; text-align: center; transition: transform 480ms cubic-bezier(0.2, 0, 0, 1); }
@media (hover: hover) { .plate:hover { transform: translateY(-6px); } }
.plate > .plate-pair, .plate > .plate-original, .plate > .slot { order: 1; }
.plate h4 { order: 2; margin-top: 10px; font-size: 22px; } .plates-surface .plate h4 { font-size: 22px; }
.plate h4:lang(en), :root[lang="en"] .plate h4 { letter-spacing: 0.12em; text-transform: uppercase; }
.plate h4 .en { flex-basis: 100%; font-size: 11px; }
.plate-meta { order: 3; padding: 0; border: 0; }
.plate-no, .plate-intro, .traits, .plate-pair > :not(.plate-original), .plate > .pv-study { display: none; }
.plate .essence { order: 4; font-size: 14px; line-height: 1.6; }
.plate-actions { order: 5; padding-top: 10px; }
.plate-pair { grid-template-columns: minmax(0, 1fr); }
.plate-original picture, .plate-pair .plate-original picture { aspect-ratio: auto; background: none; }
.plate-original img { height: auto; }
.plate-original figcaption { min-height: 0; font-size: 11px; }
.plate > .slot.plate-visual { aspect-ratio: 4 / 5; }
/* 收起：整个图鉴变成一排四张精选，分组标题和其余图版不显示 */
#plates.is-folded { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
#plates.is-folded > * { grid-column: 1 / -1; }
#plates.is-folded > .plates { display: contents; }
#plates.is-folded > .group-head, #plates.is-folded .plate:not(#plate-art-deco, #plate-art-nouveau, #plate-bauhaus, #plate-ukiyo-e) { display: none; }
#plates.is-folded .plate { grid-column: auto; }
#plates.is-folded #plate-art-deco { order: 1; } #plates.is-folded #plate-art-nouveau { order: 2; margin-top: -28px; }
#plates.is-folded #plate-bauhaus { order: 3; margin-top: -28px; } #plates.is-folded #plate-ukiyo-e { order: 4; }
#plates.is-folded > .ad-slot { order: 10; } #plates.is-folded > .fold-toggle { order: 11; }
#plates.is-folded > .chapter-head { margin-bottom: 36px; }
@media (max-width: 1100px) { .plates, .plates-structure, .plates-surface { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .plates, .plates-structure, .plates-surface, #plates.is-folded { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #plates.is-folded #plate-art-nouveau, #plates.is-folded #plate-bauhaus { margin-top: 0; }
  #plates.is-folded #plate-art-nouveau, #plates.is-folded #plate-ukiyo-e { margin-top: 30px; }
  .plate { padding: 10px 10px 16px; } .plate .essence { display: none; } .plate h4, .plates-surface .plate h4 { font-size: 18px; }
  .plate-actions .btn { padding: 6px 10px; letter-spacing: 0.12em; }
}

.hero-full { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; color: var(--ink); font-size: 13px; text-underline-offset: 4px; }
.hero-full .icon { width: 14px; height: 14px; }

/* 首屏轮播的预告片（hero.mjs trailerMarkup）：右栏整幅出血，按时间自己播约 5 秒后停在定格画面。
   关键帧只写 from：不播时（减弱动态效果、还没进视口）元素就是定格画面；.hero-slide[data-play] 才播。 */
.hero-slide, .hero[data-enhanced] .hero-slide { grid-template-columns: 0.8fr 1.2fr; }
.hero-trailer { position: relative; min-height: 540px; overflow: hidden; background: var(--bg); color: var(--ink); --tr-ease: cubic-bezier(0.16, 1, 0.3, 1); --tr-slap: cubic-bezier(0.2, 1.5, 0.4, 1); }
.tr-stage { position: absolute; inset: 0; }
.tr-stage > * { position: absolute; display: block; margin: 0; }
.tr-art { z-index: 2; }
.tr-art picture, .tr-art img { display: block; width: 100%; height: auto; }
.tr-art figcaption { margin-top: 6px; font: 10px/1.4 var(--font-body); color: var(--muted); }
.tr-words { z-index: 3; font: var(--display-weight) clamp(40px, 4.8vw, 76px)/0.92 var(--font-display); letter-spacing: var(--display-tracking); text-transform: var(--display-transform); }
.tr-words > span { display: block; }
.tr-x { color: var(--accent); font-size: 0.6em; }
.tr-replay { position: absolute; z-index: 5; right: 14px; bottom: 14px; min-height: 36px; padding: 0 12px; color: var(--ink); background: color-mix(in oklab, var(--bg) 82%, transparent); border: 1px solid currentColor; font: 600 11px var(--font-body); letter-spacing: 0.12em; cursor: pointer; opacity: 0.75; }
.tr-replay:hover { opacity: 1; }
.tr-note { display: none; position: absolute; z-index: 5; left: 14px; right: 150px; bottom: 14px; margin: 0; padding: 6px 10px; color: var(--ink); background: color-mix(in oklab, var(--bg) 88%, transparent); font: 11px/1.5 var(--font-body); }
.hero[data-reduced="true"] .tr-note { display: block; }
.hero-slide[data-play] .tr-stage > * { animation-fill-mode: both; animation-timing-function: var(--tr-ease); }

/* v1 至上主义 × 巴洛克：色板斜切进场，金线划下，方块落下，原作从暗处推近，标题沿对角线错开 */
[data-v="v1"] .tr-slab { left: 46%; top: -35%; width: 24%; height: 170%; background: var(--accent); transform: rotate(28deg); }
[data-v="v1"] .tr-bar { top: -20%; height: 140%; transform: rotate(28deg); transform-origin: 50% 0; }
[data-v="v1"] .b1 { left: 79%; width: 5px; background: var(--accent2); }
[data-v="v1"] .b2 { left: 36%; width: 2px; background: var(--line); }
[data-v="v1"] .tr-sq { right: 7%; top: 9%; width: 52px; height: 52px; background: var(--accent3); }
[data-v="v1"] .tr-art { right: 9%; top: 8%; width: 23%; }
[data-v="v1"] .tr-words { left: 7%; bottom: 12%; }
[data-v="v1"] .tr-words > :nth-child(2) { padding-left: 1.2em; } [data-v="v1"] .tr-words > :nth-child(3) { padding-left: 1.6em; }
[data-v="v1"] .tr-vignette { inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(ellipse at 55% 45%, transparent 45%, oklch(0 0 0 / 0.55)); }
.hero-slide[data-play] [data-v="v1"] .tr-slab { animation: tr-v1-slab 1200ms; }
.hero-slide[data-play] [data-v="v1"] .tr-bar { animation: tr-draw 900ms 700ms; }
.hero-slide[data-play] [data-v="v1"] .b2 { animation-delay: 1000ms; }
.hero-slide[data-play] [data-v="v1"] .tr-sq { animation: tr-v1-sq 800ms 1500ms var(--tr-slap); }
.hero-slide[data-play] [data-v="v1"] .tr-art { animation: tr-v1-art 1800ms 600ms; }
.hero-slide[data-play] [data-v="v1"] .tr-words > * { animation: tr-in-left 900ms 1700ms var(--tr-ease) both; }
.hero-slide[data-play] [data-v="v1"] .tr-words > :nth-child(2) { animation-delay: 1950ms; } .hero-slide[data-play] [data-v="v1"] .tr-words > :nth-child(3) { animation-delay: 2150ms; }
.hero-slide[data-play] [data-v="v1"] .tr-vignette { animation: tr-fade-in 2400ms; }
@keyframes tr-v1-slab { from { transform: translate(-150%, 70%) rotate(28deg); } }
@keyframes tr-draw { from { transform: rotate(28deg) scaleY(0); } }
@keyframes tr-v1-sq { from { transform: translateY(-260%) rotate(-120deg); } }
@keyframes tr-v1-art { from { transform: scale(1.35); opacity: 0; filter: brightness(0.15); } }
@keyframes tr-in-left { from { transform: translateX(-45%); opacity: 0; } }
@keyframes tr-fade-in { from { opacity: 0; } }

/* v2 未来主义 × 表现主义：速度线横冲，放射线张开，原作带斜切滑入，标题一行行甩进来 */
[data-v="v2"] .tr-speed { inset: 0; background: repeating-linear-gradient(-14deg, var(--ink) 0 1.5px, transparent 1.5px 20px); opacity: 0.18; }
[data-v="v2"] .tr-rays { left: 62%; top: 38%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(var(--accent2) 0 1.6deg, transparent 1.6deg 11deg); -webkit-mask: radial-gradient(closest-side, transparent 12%, #000 13%, transparent 70%); mask: radial-gradient(closest-side, transparent 12%, #000 13%, transparent 70%); opacity: 0.5; }
[data-v="v2"] .tr-dash { left: -2%; bottom: 31%; width: 66%; height: 16px; background: var(--accent); transform: skewX(-14deg); }
[data-v="v2"] .tr-art { right: 7%; top: 9%; width: 33%; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
[data-v="v2"] .tr-art figcaption { display: none; }
[data-v="v2"] .tr-words { left: 6%; top: 12%; font-size: clamp(56px, 6.6vw, 108px); line-height: 0.86; }
[data-v="v2"] .tr-x { color: var(--accent2); }
[data-v="v2"] .tr-words > :last-child { color: var(--accent); }
.hero-slide[data-play] [data-v="v2"] .tr-speed { animation: tr-v2-speed 900ms; }
.hero-slide[data-play] [data-v="v2"] .tr-rays { animation: tr-v2-rays 1600ms 300ms; }
.hero-slide[data-play] [data-v="v2"] .tr-dash { animation: tr-v2-dash 700ms 1500ms; }
.hero-slide[data-play] [data-v="v2"] .tr-art { animation: tr-v2-art 1000ms 700ms; }
.hero-slide[data-play] [data-v="v2"] .tr-words > * { animation: tr-v2-word 700ms 1100ms var(--tr-ease) both; }
.hero-slide[data-play] [data-v="v2"] .tr-words > :nth-child(2) { animation-delay: 1300ms; } .hero-slide[data-play] [data-v="v2"] .tr-words > :nth-child(3) { animation-delay: 1450ms; }
@keyframes tr-v2-speed { from { transform: translateX(70%); opacity: 0; } }
@keyframes tr-v2-rays { from { transform: translate(-50%, -50%) scale(0.1) rotate(-50deg); opacity: 0; } }
@keyframes tr-v2-dash { from { transform: translateX(-110%) skewX(-14deg); } 70% { transform: translateX(2%) skewX(4deg); } }
@keyframes tr-v2-art { from { transform: translateX(130%) skewX(-14deg); } }
@keyframes tr-v2-word { from { transform: translateX(-120%) skewX(-22deg); opacity: 0; } 70% { transform: translateX(3%) skewX(6deg); opacity: 1; } }

/* v3 达达 × 波普：剪报一张张拍下来，原作像拍立得砸进来，邮戳旋转着盖上，胶带最后贴住 */
[data-v="v3"] .tr-dots { inset: 0; background: radial-gradient(var(--ink) 1.2px, transparent 1.6px) 0 0 / 10px 10px; opacity: 0.16; }
[data-v="v3"] .tr-art { right: 8%; top: 9%; width: 36%; padding: 10px 10px 4px; background: var(--on-accent); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: rotate(-5deg); }
[data-v="v3"] .tr-clip { z-index: 3; padding: 0.08em 0.3em; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font: var(--display-weight) clamp(40px, 4.6vw, 72px)/1.05 var(--font-display); text-transform: var(--display-transform); white-space: nowrap; }
[data-v="v3"] .c1 { left: 6%; top: 14%; background: var(--accent2); transform: rotate(-4deg); }
[data-v="v3"] .c2 { left: 12%; top: 37%; padding: 0 0.4em; background: var(--on-accent); font-size: clamp(26px, 2.6vw, 40px); transform: rotate(7deg); }
[data-v="v3"] .c3 { left: 8%; top: 52%; color: var(--on-accent); background: var(--accent); transform: rotate(-2deg); }
[data-v="v3"] .tr-stamp { z-index: 4; left: 40%; bottom: 9%; display: grid; place-items: center; width: 112px; aspect-ratio: 1; border: 3px double var(--accent); border-radius: 50%; color: var(--accent); font: 700 12px var(--font-body); letter-spacing: 0.2em; transform: rotate(-14deg); }
[data-v="v3"] .tr-tape { z-index: 4; right: 26%; top: 5%; width: 120px; height: 30px; background: color-mix(in oklab, var(--accent2) 80%, transparent); transform: rotate(-8deg); transform-origin: 0 50%; }
.hero-slide[data-play] [data-v="v3"] .tr-dots { animation: tr-fade-in 500ms; }
.hero-slide[data-play] [data-v="v3"] .tr-clip { animation: tr-v3-slap 450ms 300ms var(--tr-slap); }
.hero-slide[data-play] [data-v="v3"] .c2 { animation-delay: 750ms; } .hero-slide[data-play] [data-v="v3"] .c3 { animation-delay: 1050ms; }
.hero-slide[data-play] [data-v="v3"] .tr-art { animation: tr-v3-art 520ms 1500ms var(--tr-slap); }
.hero-slide[data-play] [data-v="v3"] .tr-stamp { animation: tr-v3-stamp 700ms 2150ms var(--tr-slap); }
.hero-slide[data-play] [data-v="v3"] .tr-tape { animation: tr-v3-tape 350ms 2700ms; }
@keyframes tr-v3-slap { from { transform: scale(2.3) rotate(-22deg); opacity: 0; } }
@keyframes tr-v3-art { from { transform: translateY(-30%) scale(1.8) rotate(-24deg); opacity: 0; } }
@keyframes tr-v3-stamp { from { transform: scale(2.4) rotate(-220deg); opacity: 0; } }
@keyframes tr-v3-tape { from { transform: rotate(-8deg) scaleX(0); } }

/* v4 立体主义 × 野兽派：四块碎面从四个方向旋转着拼合，原作斜着归位，标题拖出一层错位的影子 */
[data-v="v4"] .tr-facet { width: 46%; aspect-ratio: 1; }
[data-v="v4"] .f1 { left: 44%; top: 6%; background: var(--surface); clip-path: polygon(8% 0, 100% 14%, 86% 92%, 0 72%); transform: rotate(-6deg); }
[data-v="v4"] .f2 { left: 34%; top: 44%; width: 30%; background: var(--accent2); clip-path: polygon(0 10%, 92% 0, 100% 100%, 12% 86%); transform: rotate(9deg); }
[data-v="v4"] .f3 { right: -6%; top: 40%; width: 34%; background: var(--accent3); clip-path: polygon(20% 0, 100% 20%, 70% 100%, 0 70%); transform: rotate(-12deg); }
[data-v="v4"] .f4 { left: -8%; top: -10%; width: 30%; background: var(--accent); clip-path: polygon(0 0, 100% 30%, 60% 100%); opacity: 0.85; }
[data-v="v4"] .tr-art { right: 12%; top: 11%; width: 28%; border: 1px solid var(--line); transform: rotate(3deg); }
[data-v="v4"] .tr-words { left: 6%; bottom: 10%; text-shadow: 0.07em 0.05em 0 var(--accent3); }
.hero-slide[data-play] [data-v="v4"] .f1 { animation: tr-v4-f1 1300ms; }
.hero-slide[data-play] [data-v="v4"] .f2 { animation: tr-v4-f2 1300ms 150ms; }
.hero-slide[data-play] [data-v="v4"] .f3 { animation: tr-v4-f3 1300ms 300ms; }
.hero-slide[data-play] [data-v="v4"] .f4 { animation: tr-v4-f4 1300ms 450ms; }
.hero-slide[data-play] [data-v="v4"] .tr-art { animation: tr-v4-art 1100ms 900ms; }
.hero-slide[data-play] [data-v="v4"] .tr-words > * { animation: tr-v4-word 1000ms 1300ms var(--tr-ease) both; }
.hero-slide[data-play] [data-v="v4"] .tr-words > :nth-child(2) { animation-delay: 1500ms; } .hero-slide[data-play] [data-v="v4"] .tr-words > :nth-child(3) { animation-delay: 1650ms; }
@keyframes tr-v4-f1 { from { transform: translate(40%, -60%) rotate(-60deg); opacity: 0; } }
@keyframes tr-v4-f2 { from { transform: translate(-80%, 70%) rotate(70deg); opacity: 0; } }
@keyframes tr-v4-f3 { from { transform: translate(90%, 30%) rotate(-80deg); opacity: 0; } }
@keyframes tr-v4-f4 { from { transform: translate(-60%, -60%) rotate(45deg); opacity: 0; } }
@keyframes tr-v4-art { from { transform: translate(30%, 12%) rotate(14deg); opacity: 0; } }
@keyframes tr-v4-word { from { transform: translate(-10vw, 8vh) rotate(-6deg); opacity: 0; text-shadow: 0.5em 0.3em 0 transparent; } }

/* 自动轮播时，当前页码下面走一条进度线（和 hero.mjs 的 7 秒间隔一致） */
.hero-pickers button { position: relative; }
.hero[data-rotation="playing"] .hero-pickers button[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: currentColor; transform-origin: 0 50%; animation: hero-progress 7000ms linear both; }
@keyframes hero-progress { from { transform: scaleX(0); } }

@media (max-width: 720px) {
  .hero-slide, .hero[data-enhanced] .hero-slide { grid-template-columns: minmax(0, 1fr); }
  .hero-trailer { order: -1; min-height: 0; height: 380px; }
  .tr-words, [data-v="v4"] .tr-words { font-size: clamp(30px, 9vw, 44px); }
  [data-v="v2"] .tr-words { font-size: clamp(40px, 12vw, 60px); }
  [data-v="v3"] .tr-clip { font-size: clamp(26px, 8vw, 40px); }
  [data-v="v3"] .c2 { font-size: 20px; } [data-v="v3"] .tr-stamp { width: 78px; font-size: 9px; left: auto; right: 6%; bottom: 16%; }
  [data-v="v1"] .tr-art, [data-v="v4"] .tr-art { width: 38%; } [data-v="v2"] .tr-art, [data-v="v3"] .tr-art { width: 42%; }
  [data-v="v3"] .c1 { top: 44%; } [data-v="v3"] .c2 { top: 62%; } [data-v="v3"] .c3 { top: 72%; }
  .tr-note { right: 14px; bottom: 58px; }
}

/* 工作台：v5 混合器面板（改进方案第 3 条）。整块是一张 --surface 浅蓝面板，金色双线框；
   标题区沿中轴居中，Poiret One 大字读出当前组合（#mix-readout，app.js 写入）；骨架 / 表皮两栏用金线小标；
   选中的线框图和色卡用 --ink 粗框加金色外圈；预览和提示词放在 --bg 米色纸上。功能、导出内容都不变。 */
.doc #workbench.room { background: var(--bg); padding: 56px var(--gutter); }
.doc #workbench .bench { position: relative; background: var(--surface); border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 6px; padding: 40px clamp(24px, 3vw, 48px) 48px; grid-template-areas: "intro intro" "steps stage"; }
.doc #workbench .bench-intro { justify-self: center; max-width: 46em; padding-bottom: 32px; margin-bottom: 32px; text-align: center; border-bottom: 3px double var(--accent2); }
.doc #workbench .bench-summary { font: 600 11px/1.6 "Josefin Sans", var(--f-sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.doc #workbench .bench-intro h2 { font: 400 clamp(26px, 2.6vw, 38px)/1.3 var(--f-serif); letter-spacing: 0.04em; }
.mix-readout { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.1em 0.5em; margin: 22px 0 6px; font: 400 clamp(32px, 4.2vw, 64px)/1.1 var(--f-serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.mix-readout .x { color: var(--accent2); font-size: 0.7em; }
.doc #workbench .step + .step { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--accent2); }
.doc #workbench .step-head h3 { font: 600 13px/1.4 "Josefin Sans", var(--f-sans); letter-spacing: 0.24em; text-transform: uppercase; }
.doc #workbench .step-no { width: 28px; height: 28px; border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 2px; border-radius: 50%; font-family: var(--f-latin); }
.doc #workbench .skel .wire { background: var(--bg); outline-color: var(--accent2); }
.doc #workbench .skel[aria-pressed="true"] .wire, .doc #workbench .skin[aria-pressed="true"] .skin-img { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--accent2); }
.doc #workbench .frame, .doc #workbench .sheet { border: 1px solid var(--accent2); }
.doc #workbench .btn { background: var(--ink); color: var(--accent2); border-color: var(--ink); font-family: "Josefin Sans", var(--f-sans); letter-spacing: 0.16em; }
@media (hover: hover) { .doc #workbench .btn:hover { letter-spacing: 0.24em; } }
.doc #workbench .tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent2); }
@media (max-width: 900px) {
  .doc #workbench.room { padding: 28px 12px; }
  .doc #workbench .bench { grid-template-areas: "intro" "stage" "steps"; padding: 24px 16px 32px; outline-offset: 4px; }
  .doc #workbench .bench-intro { padding-bottom: 18px; margin-bottom: 18px; }
  .doc #workbench .bench-stage { margin-inline: -16px; padding-inline: 16px; background: var(--surface); }
}

/* 轮播控制条（改进方案第 4 条）：换成装饰艺术外壳。页码用 Poiret One 罗马数字感的细字，选中只用金色下划线，不再是黑块；
   箭头放进金色双线圆框；“自动轮播”用 Josefin Sans 大写宽字距；进度线用金色。 */
.doc .hero-controls { padding-top: 22px; border-top: 3px double var(--accent2); margin-top: 18px; }
.doc .hero-controls button { color: var(--ink); border-color: var(--accent2); font: 600 11px/1.4 "Josefin Sans", var(--f-sans); letter-spacing: 0.24em; text-transform: uppercase; }
.doc .hero-controls button:not(:disabled):hover { border-color: var(--ink); }
.doc .hero-pickers button { border-color: transparent; letter-spacing: 0.12em; }
.doc .hero-pickers button > span:first-child { font: 400 20px/1 var(--f-latin); letter-spacing: 0.04em; }
.doc .hero-pickers button[aria-pressed="true"] { color: var(--ink); background: transparent; border-color: transparent; box-shadow: inset 0 -1px 0 var(--accent2); }
.doc .hero[data-rotation="playing"] .hero-pickers button[aria-pressed="true"]::after { background: var(--accent2); height: 3px; bottom: 4px; }
.doc .hero-arrows button { width: 44px; border-radius: 50%; outline: 1px solid var(--accent2); outline-offset: 3px; color: var(--ink); }
.doc .hero-disclaimer { text-align: center; letter-spacing: 0.04em; }
.doc .hero-arrows { gap: 12px; } .doc .hero-arrows button { outline-offset: 2px; }
@media (max-width: 720px) { .doc .hero-arrows { gap: 10px; } .doc .hero-arrows button { width: 38px; } }
/* 预告片的“重播动效”和说明属于外壳，不跟着每版的色板走 */
.doc .tr-replay { color: var(--c-ink); background: var(--c-paper); border: 1px solid var(--c-gold); outline: 1px solid var(--c-gold); outline-offset: 2px; font: 600 11px/1.4 "Josefin Sans", var(--f-sans); letter-spacing: 0.2em; opacity: 1; }
.doc .tr-note { color: var(--c-ink); background: var(--c-paper); border: 1px solid var(--c-gold); font-family: var(--f-sans); }
.doc .tr-replay:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
/* 每版的底色和字色放在展品（左栏文案、右栏预告片）上，外层 .hero-slide 只是外壳的格子 */
.doc .hero-slide { background: none; color: inherit; }
.doc .hero-copy { background: var(--bg); color: var(--ink); }
.doc .hero-trailer { background: none; color: inherit; } .doc .tr-stage { background: var(--bg); color: var(--ink); }

/* 阅读区：编辑部式目录（改进方案第 5 条）。不再是八个一样的浅蓝框：左边一张原作小图，右边标题和一句话，条目之间金色细线；
   第一条（使用教程）占满一行、图更大，标题 Poiret One 大字。悬停时小图放大一点、标题下的金线拉长。 */
.doc .reading-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; counter-reset: read; }
.doc .reading-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 24px; justify-items: start; padding: 26px 0; background: none; border: 0; border-top: 1px solid var(--accent2); outline: 0; text-align: left; counter-increment: read; }
.doc .reading-item:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; padding: 34px 0 40px; border-top: 3px double var(--accent2); }
.doc .reading-item:nth-child(2) { grid-column: 1 / -1; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.reading-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--accent2); outline: 1px solid var(--accent2); outline-offset: 3px; background: var(--surface); }
.reading-thumb picture, .reading-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--deco-ease); }
.reading-text { display: grid; gap: 8px; }
.reading-text::before { content: counter(read, upper-roman); font: 400 24px/1 var(--f-latin); letter-spacing: 0.16em; color: var(--accent); }
.doc .reading-item h3 { font-size: 22px; }
.doc .reading-item:first-child h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.3; }
.doc .reading-item h3::after { margin: 12px 0 0; transition: width 480ms var(--deco-ease); }
.doc .reading-item p { max-width: 34em; }
@media (hover: hover) { .doc .reading-item:hover .reading-thumb img { transform: scale(1.06); } .doc .reading-item:hover h3::after { width: 120px; } }
@media (max-width: 900px) {
  .doc .reading-list { grid-template-columns: minmax(0, 1fr); }
  .doc .reading-item, .doc .reading-item:nth-child(2) { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  .doc .reading-item:first-child { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .doc .reading-item h3 { font-size: 18px; }
}

/* 贯穿动作（改进方案第 6 条）：首屏的落日跟着往下走。每个章节标题上方立一个 Poiret One 罗马数字（Ⅰ 图鉴、Ⅱ 从流派到网页、Ⅲ 安装），
   数字背后是一轮金色放射线，像从标题框上沿升起的太阳：章节滚进视口时升起一次就停（滚动驱动，不循环）。
   不支持滚动时间线或减弱动态效果时，直接停在升起后的样子。 */
.doc main { counter-reset: chap; }
.doc .chapter { counter-increment: chap; }
.doc .chapter-head { position: relative; isolation: isolate; }
.doc .chapter-head::before { content: counter(chap, upper-roman); margin-bottom: -6px; font: 400 92px/1 "Poiret One", serif; letter-spacing: 0.06em; color: var(--accent); pointer-events: none; }
.doc .chapter-head::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -90px; width: 400px; height: 200px; margin-left: -200px; background: repeating-conic-gradient(from -90deg at 50% 100%, var(--accent2) 0deg 0.8deg, transparent 0.8deg 7.5deg); -webkit-mask: radial-gradient(circle at 50% 100%, transparent 34%, #000 35%, transparent 100%); mask: radial-gradient(circle at 50% 100%, transparent 34%, #000 35%, transparent 100%); transform-origin: 50% 100%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .doc .chapter-head::after { animation: chap-sun linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes chap-sun { from { transform: scale(0.35); opacity: 0; } }
@media (max-width: 900px) { .doc .chapter-head::before { font-size: 64px; } .doc .chapter-head::after { top: -60px; width: 280px; height: 140px; margin-left: -140px; } }
