*{box-sizing:border-box}
:root{color-scheme:light;--paper:#f1f5f3;--ink:#183632;--muted:#485d58;--red:#8c302b;--line:#bfd0c8;--white:#fbfdfb;--bamboo:#744c31;--selected:#e2ebe6;--display:"Songti SC","Noto Serif CJK SC",SimSun,serif}
html{min-width:0}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 system-ui,"Microsoft YaHei",sans-serif}
a{color:inherit}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #136c72;outline-offset:3px}[hidden]{display:none!important}
.skip{position:absolute;top:-200px;background:white;padding:.5rem;z-index:5}.skip:focus{top:.5rem}
.site-header{border-bottom:1px solid var(--line);background:var(--white)}.bar{max-width:1320px;margin:auto;padding:.7rem clamp(.85rem,4vw,3rem);display:flex;gap:.6rem 2rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:.7rem;font-family:var(--display);font-weight:bold;font-size:1.3rem;text-decoration:none}.seal{display:grid;place-items:center;color:var(--ink);border:1px solid #74948a;border-radius:5px;width:36px;height:36px}
nav{display:flex;gap:clamp(.2rem,2vw,1.15rem);flex-wrap:wrap}nav a{padding:.5rem .75rem;font-size:.93rem;text-decoration:none;border-radius:5px;color:var(--muted)}nav a[aria-current]{background:var(--selected);color:var(--ink);font-weight:700}
main{max-width:1320px;margin:auto;min-height:70vh;padding:clamp(.8rem,3vw,2.5rem) clamp(.85rem,4vw,3rem) 3rem}h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.15}h1,h2{font-family:var(--display)}h1{font-size:clamp(2.5rem,6vw,4.7rem);letter-spacing:-.04em}h2{font-size:clamp(1.55rem,3vw,2.5rem)}h3{font-size:1.16rem}p+p{margin-top:.65rem}
.hero{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.35fr);grid-template-areas:"copy visual" "action visual";grid-template-rows:1fr auto;gap:1.65rem clamp(2rem,5vw,5rem);padding:clamp(1.1rem,2.5vw,2.5rem) 0 clamp(1.5rem,3.5vw,3rem);border-bottom:1px solid var(--line)}
.hero-copy{grid-area:copy;align-self:end}.hero h1{font-size:clamp(3rem,6.9vw,6.6rem);letter-spacing:-.07em;line-height:1.06;margin:.18em 0 .23em}.kicker{color:var(--bamboo);font-size:.92rem;font-weight:750;letter-spacing:.1em;margin-bottom:.55rem}.subhead{font-size:clamp(1.15rem,2.2vw,1.65rem);line-height:1.5;color:var(--muted)}
.hero-action{grid-area:action;align-self:start;margin-bottom:clamp(.25rem,3vw,3rem)}.hero-art{grid-area:visual;align-self:center;min-width:0}.hero-art figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.18rem 1rem;padding:.6rem 0 0;font-size:.88rem}.hero-art label{color:var(--ink);font-weight:700;cursor:pointer}
.studio-preview canvas{width:100%;height:auto;display:block}
.actions{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}.button{border:1px solid #8ca59a;background:var(--white);color:var(--ink);padding:.62rem .95rem;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;font-weight:700;font-size:.94rem}.button.primary{background:var(--red);border-color:var(--red);color:white}.button:hover:not(:disabled),.chip:hover,.move:hover:not(:disabled){filter:brightness(.93)}
.section-intro{display:grid;grid-template-columns:1.2fr 1fr;gap:1rem 2rem;align-items:end;margin:2rem 0 1.25rem}.section-intro>p,.muted,figcaption{color:var(--muted)}.page-title{margin:.8rem 0 1.7rem;padding-bottom:1.1rem;border-bottom:1px solid var(--line)}.text-link{color:var(--red);text-underline-offset:.22em;font-weight:650}
.triptych,.practice-grid,.lesson-grid,.studio-grid{display:grid;gap:1rem}.triptych{grid-template-columns:repeat(3,1fr)}.triptych article,.panel{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:clamp(1rem,3vw,1.7rem);min-width:0}.triptych article>span{display:grid;place-items:center;background:var(--selected);color:var(--bamboo);width:40px;height:40px;border-radius:50%;font-family:var(--display);margin-bottom:.8rem;font-size:1.15rem}.triptych p,.panel h2+p{margin-top:.5rem}.lesson-grid{grid-template-columns:280px 1fr;align-items:start}.lesson-nav p{font-weight:700;margin-bottom:.7rem}.lesson-nav #steps{display:grid;gap:.4rem}.step,.chip,.move{border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);min-height:44px}.step{text-align:left;padding:.5rem .7rem}.step span{color:var(--muted);margin-right:.7rem;display:inline-block;min-width:2ch}.step[aria-pressed=true],.chip[aria-pressed=true]{background:var(--selected);border-color:#76978a;color:var(--ink);font-weight:750}.lesson{padding:0;overflow:hidden}.lesson-symbol{min-height:170px;background:repeating-linear-gradient(115deg,#25443c 0 34px,#2e5147 35px 36px);display:grid;place-items:center;font:5.5rem var(--display);color:#f1cc87}.lesson-content{padding:clamp(1rem,3vw,2rem)}.lesson-content h2{margin-bottom:.65rem}.lesson-content .actions{margin-top:1rem}
.practice-grid{grid-template-columns:1fr 1fr;align-items:start}ol#order{padding:0;list-style:none;counter-reset:steps;display:grid;gap:.4rem}#order li{counter-increment:steps;display:grid;grid-template-columns:1fr auto auto;gap:.35rem;align-items:center;padding:.3rem;background:#eaf0ec;border-radius:8px}#order li span::before{content:counter(steps,decimal-leading-zero);padding:0 .6rem;color:#745a42}.move{padding:.35rem .5rem;font-size:.88rem}.end-action{margin-top:1rem}
fieldset{border:0;padding:0;margin:1rem 0;min-width:0}legend{font-weight:750;margin-bottom:.4rem}.answer{display:flex;align-items:center;gap:.55rem;padding:.35rem .5rem;margin:.28rem 0;border:1px solid var(--line);border-radius:7px;cursor:pointer;min-height:44px}.answer:has(input:checked){background:var(--selected)}.answer input{accent-color:var(--red)}.feedback:not(:empty){background:#e6eee8;border-left:3px solid #50776a;padding:.65rem .85rem;margin-top:.7rem}.explanation{font-size:.9rem;color:#5e3425;margin-top:.4rem}
.studio-grid{grid-template-columns:1.45fr 1fr;align-items:start}.studio-preview canvas{border-radius:14px;background:#eaf0ec}.studio-preview figcaption{margin-top:.4rem;font-size:.87rem}.field{display:grid;gap:.35rem;font-weight:750}.field input{width:100%;border:1px solid #ad997e;border-radius:7px;background:white;padding:.55rem;color:var(--ink)}.chips,.colors{display:flex;flex-wrap:wrap;gap:.45rem}.chip{display:flex;align-items:center;gap:.35rem;padding:.4rem .62rem;font-size:.9rem}.dots{display:flex}.dots i{display:inline-block;width:10px;height:10px;border-radius:50%;border:1px solid #0004}.colors label{padding:.25rem .5rem;background:#eaf0ec;border-radius:7px;display:flex;align-items:center;gap:.3rem;font-size:.89rem}.colors input{width:37px;height:37px;padding:0;border:0;background:transparent}
.source-panel h2:not(:first-child){margin-top:1.5rem}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;padding:1rem clamp(.85rem,5vw,4rem);font-size:.88rem;color:var(--muted)}
@media(max-width:760px){.section-intro,.studio-grid,.lesson-grid,.practice-grid{grid-template-columns:1fr}.hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "visual" "action";grid-template-rows:auto;gap:1rem}.hero h1{margin:.12em 0}.hero-action{margin:0}.lesson-nav #steps{grid-template-columns:repeat(4,1fr)}.step{text-align:center;padding:.4rem .12rem;font-size:.88rem}.step span{display:block;margin:0}}
@media(max-width:520px){.triptych{grid-template-columns:1fr}.bar{gap:.35rem}.section-intro{margin-top:1.4rem}.hero h1{font-size:clamp(2.9rem,12vw,4.2rem)}}

.page-title{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}.page-title h1{font-size:clamp(2.3rem,5.2vw,4.1rem);text-wrap:balance}@media(max-width:760px){.page-title{grid-template-columns:1fr}}
.process-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:1rem;align-items:start}
.process-view{min-width:0}.process-view canvas{display:block;width:100%;height:auto;border-radius:14px;background:#eaf0ec}.process-view figcaption{margin-top:.45rem;font-size:.9rem}
.process-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;margin-bottom:1rem}.process-stages .step{padding:.58rem .25rem;text-align:center;font-size:clamp(.88rem,1.25vw,1rem)}.process-stages .step span{display:inline-block;margin:0 .2rem 0 0;min-width:1.15em;font-size:.87em}
.process-stages .step[aria-current=step]{font-weight:750;border-color:#739487;background:var(--selected);color:var(--ink)}.process-stages .step:disabled{opacity:1;color:var(--muted);border-style:dashed;background:none}
.process-copy{margin:0 0 .95rem}.process-copy h2{font-size:clamp(1.6rem,2.5vw,2.3rem);margin:0 0 .5rem}
.process-custom{display:flex;align-items:center;gap:.6rem;color:var(--muted)}.process-custom input{width:44px;height:44px;border:0;background:transparent;padding:3px;cursor:pointer}.process-status{min-height:1.65em;margin:.45rem 0;color:#70382d;font-size:.93rem}
.process-reference{margin-top:1.35rem;border-top:1px solid var(--line);padding:.8rem 0}.process-reference summary{cursor:pointer;font-weight:700;width:fit-content;color:var(--red)}.process-reference>p{margin:.6rem 0 1rem}
@media(max-width:760px){.process-grid{grid-template-columns:minmax(0,1fr)}}
.stage-guide { margin: -.45rem 0 .9rem; color: var(--muted); font-size: .88rem; }
#maker-voice { margin: 1rem 0; padding-left: .85rem; border-left: 2px solid var(--bamboo); }
#maker-voice p { font: 600 1.25rem/1.45 var(--display); }
#maker-voice cite { font-size: .83rem; color: var(--muted); font-style: normal; }
#maker-voice a { color: var(--red); margin-left: .4rem; }
.archive-overview { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.35rem; }
.archive-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .45rem; }
.archive-heading h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.archive-overview > p { margin: .55rem 0 .85rem; font-size: .9rem; }
.archive-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .35rem; }
.archive-steps .step { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; border-radius: 3px; font-weight: 650; padding: .4rem .65rem; }
.archive-steps .step span { color: var(--muted); margin: 0; font-size: .76rem; font-weight: 400; }
.archive-steps small { color: var(--red); font-size: .74rem; font-weight: 500; }
.archive-overview:not(:has(details[open])) .step[aria-pressed=true] { background: var(--white); border-color: var(--line); font-weight: 650; }
.archive-overview details { margin-top: .8rem; }
@media(max-width:760px) { .archive-steps { grid-template-columns: repeat(4,minmax(0,1fr)); } }
.craft-compare{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-areas:"visual copy" "visual next" "visual source";align-content:start;align-items:start;gap:clamp(.8rem,2vw,1.5rem) clamp(1rem,3.2vw,2.75rem)}
.compare-copy{grid-area:copy}.compare-copy h2{margin:.25rem 0 .65rem}.compare-source{grid-area:source;font-size:.9rem}.compare-source .text-link{display:inline-block;margin-left:.45rem}.compare-continue{grid-area:next}
.compare-figure{grid-area:visual;min-width:0}.compare-labels{display:flex;gap:.5rem;padding:.25rem 0;font-size:.9rem;font-weight:750;color:var(--muted)}.compare-labels span:last-child{margin-left:auto}
.compare-viewport{position:relative;border:1px solid #aabfb2;border-radius:9px;overflow:hidden;--split:55%;background:#e5eee9}.compare-viewport:focus-within{outline:3px solid #136c72;outline-offset:3px}.compare-viewport canvas{width:100%;height:auto;display:block}.compare-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}.compare-handle{position:absolute;z-index:0;top:50%;left:clamp(20px,var(--split),calc(100% - 20px));transform:translate(-50%,-50%);width:40px;height:40px;display:flex;align-items:center;justify-content:center;gap:4px;border:2px solid var(--white);border-radius:50%;background:#23483e;pointer-events:none}.compare-handle::before,.compare-handle::after{content:"";width:7px;height:7px;border-left:2px solid white;border-bottom:2px solid white;transform:rotate(45deg)}.compare-handle::after{transform:rotate(225deg)}.compare-slider{display:block;margin:.55rem 0;font-size:.94rem;font-weight:650}.compare-slider label{cursor:pointer}
.compare-buttons .button{min-height:44px}#process-stages{scroll-margin-top:.65rem}
@media(max-width:760px){.craft-compare{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "visual" "next" "source"}.compare-source .text-link{margin-left:0;display:block}}

/* The spread follows a printed lantern study: a display title, a plate, then its caption. */
:root {
  --paper: #F5F1E7;
  --white: #fffef8;
  --ink: #183F3C;
  --muted: #4c6462;
  --line: #c7cec2;
  --red: #A9473D;
  --gold: #D5B477;
  --jade: #78938A;
  --radius: 6px;
  --section-space: clamp(1.8rem,4vw,3.4rem);
  --bamboo: #775038;
  --selected: #DDE7DF;
  --display: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "STSong", SimSun, serif;
}
body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
.site-header { background: var(--paper); }
.seal { background: var(--ink); border-color: var(--ink); border-radius: 2px; color: #fff4d9; }
nav a { border-radius: 0; border-bottom: 2px solid transparent; }
nav a[aria-current] { color: var(--red); background: transparent; border-color: currentColor; }
.hero {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy action" "visual visual";
  grid-template-rows: auto auto;
  gap: 1.35rem 2rem;
  padding: .45rem 0 1.55rem;
}
.hero-copy { align-self: center; }
.hero .kicker, .page-title .kicker { display: flex; align-items: center; gap: .65rem; }
.hero .kicker::before, .page-title .kicker::before {
  content: ""; width: 28px; height: 2px; background: var(--red);
}
.hero h1 { font-size: clamp(2.75rem, 5.25vw, 5rem); margin: .18em 0; letter-spacing: -.055em; line-height: 1.17; }
.hero h1 { text-wrap: balance; }
.hero-action { display: flex; gap: 1rem; align-items: center; align-self: end; margin: 0 0 .45rem; }
.hero-action p { color: var(--muted); font-size: .94rem; }
.button { border-radius: 4px; }
.view-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .65rem;
  padding: .2rem;
  background: var(--selected);
  border-radius: 5px;
}
.view-options .chip { background: transparent; border-color: transparent; border-radius: 3px; }
.view-options .chip[aria-pressed=true], .card-toolbar .chip[aria-pressed=true] {
  background: var(--ink); color: var(--white); font-weight: 700;
}
.process-controls fieldset + fieldset, #editor fieldset {
  border-block-start: 1px solid var(--line);
  padding-top: .35rem;
}
.process-controls legend, #editor legend { padding-right: .6rem; }
.source-panel p { max-width: 45em; }
.button, .chip, .step, .move { touch-action: manipulation; }
#reset-status:not(:empty) { font-size: .9rem; margin: .6rem 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .button, .chip, .step, .move { transition: transform 120ms ease-out; }
  :is(.button, .chip, .step, .move):active:not(:disabled) { transform: translateY(1px); }
  .process-status:not(:empty), #archive-details[open] .lesson { animation: reveal-note 150ms ease-out; }
  @keyframes reveal-note { from { opacity: .55; } to { opacity: 1; } }
}
.hero-art .compare-viewport { border-radius: 4px; border-color: var(--line); }
.hero-art figcaption { padding-top: .65rem; align-items: baseline; }
.hero-art figcaption label::before { content: "↔"; margin-right: .45rem; color: var(--red); }
.plate-labels { position: absolute; inset: .85rem 1.2rem auto; display: flex; justify-content: space-between; pointer-events: none; font-size: .8rem; font-weight: 650; letter-spacing: .1em; }
.plate-labels span { color: #fff7df; background: #193e43; padding: .12rem .5rem; }
.plate-labels span:last-child { margin-left: auto; color: var(--ink); background: #eaf1ed; }
.compare-handle { width:44px; height:44px; border-color:#fff8e8; background:var(--red); box-shadow:0 1px 5px #193e4360; }
#home-compare-value,#compare-value { font-variant-numeric:tabular-nums; color:var(--ink); font-size:.85rem; }
.triptych { gap: 0; border-block: 1px solid var(--line); }
.triptych article { position: relative; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 1rem 1.5rem; }
.triptych article:first-child { padding-left: 0; }
.triptych article:last-child { border-right: 0; }
.triptych article>span { float: right; margin: 0 0 .25rem .3rem; width: auto; height: auto; background: none; border-radius: 0; color: #547b70; font-size: 2.4rem; line-height: 1.15; }
.triptych h3 { font-family: var(--display); font-size: 1.45rem; }
.triptych p { font-size: .93rem; }
.panel { border-radius: 6px; }
.process-stages .step { border-width: 0 0 3px; border-radius: 0; background: transparent; }
.process-stages .step:disabled { border-style: solid; }
.process-stages .step[aria-current=step] { color: var(--ink); border-color: var(--red); background: #edece1; }
.craft-note { font-size: .86rem; color: var(--muted); line-height: 1.6; margin: .65rem 0 .25rem; padding-left: .7rem; border-left: 2px solid #94b0a3; }
.craft-note a { color: var(--red); margin-left: .3rem; white-space: nowrap; }
.process-view canvas, .studio-preview canvas { border-radius: 4px; }
.studio-preview { min-width: 0; }
.card-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
.card-toolbar .chip { border-radius: 3px; padding-inline: .8rem; }
.card-toolbar .chip[aria-pressed=true] { color: #fff9de; background: var(--ink); }
.card-export { margin-top: .65rem; }
#paint-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
#paint-parts .chip {
  display: grid;
  grid-template-rows: 1.1rem auto;
  justify-items: start;
  padding: .55rem;
  border-radius: 4px;
}
#paint-parts .chip::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: var(--pigment);
  box-shadow: inset 0 0 0 1px #193e433d;
}
#paint-parts .chip[aria-pressed="true"] {
  box-shadow: inset 0 -3px var(--ink);
}
.detail-zoom { margin-top: .45rem; }
.mobile-preview { display: none; }
@media (min-width: 761px) and (max-width: 1080px) {
  .hero-action { display: block; }
  .hero-action p { margin-bottom: .5rem; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "action"; gap: .85rem; }
  .hero-action { justify-content: space-between; align-items: center; }
  .hero-action p { font-size: .88rem; }
  .hero-action .button { white-space: nowrap; }
  .hero h1 { font-size: clamp(2.5rem, 8.2vw, 3.7rem); }
  .hero-art figcaption { font-size: .79rem; }
  .plate-labels { inset: .35rem .4rem auto; font-size: .69rem; letter-spacing: 0; }
  .mobile-preview { display: inline-flex; }
}
@media (max-width: 520px) {
  .view-options { display: grid; grid-template-columns: 1fr 1.3fr 1fr; }
  .view-options .chip { justify-content: center; }
  #paint-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr)); }
  #paint-swatches .chip { justify-content: center; }
  .card-toolbar .chip { flex: 1 1 auto; justify-content: center; }
  #editor input[type=color] { min-width: 44px; min-height: 44px; }
  .triptych article, .triptych article:first-child { padding: .9rem .25rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .triptych article:last-child { border-bottom: 0; }
  .hero-art figcaption { gap: .1rem .6rem; }
  .bar { padding-block: .45rem; }
  nav a { padding-inline: .45rem; }
}
@media (max-width: 360px) {
  .hero-action { flex-wrap: wrap; }
}
@media (max-width: 760px) and (min-height: 600px) {
  .process-grid:has(#process-paint:not([hidden])) { display: block; }
  .process-grid:has(#process-paint:not([hidden])) .process-view {
    position: sticky; top: 0; z-index: 1; padding-bottom: .35rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .process-grid:has(#process-paint:not([hidden])) .process-view canvas {
    max-height: 24vh; object-fit: contain;
  }
  .process-grid:has(#process-paint:not([hidden])) .process-view figcaption { display: inline; }
  .detail-zoom { margin: .15rem 0 0 .55rem; }
  #process-paint :is(button,input,a) { scroll-margin-top: calc(24vh + 64px); }
}


.lab-heading { display:flex; gap:1rem; align-items:center; margin:1rem 0 1.5rem; }
.lab-heading h1 { font-size:clamp(2.15rem,5vw,4.4rem); line-height:1.15; }
.lab-mark { width:clamp(42px,5vw,68px); color:var(--red); flex:none; }
.lab-heading .kicker { margin:0 0 .35rem; }
.lab-spread { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr); border-block:1px solid var(--line); }
.lab-table { min-width:0; padding:1.3rem clamp(1rem,2vw,2rem) 1rem 0; }
.lab-tools,.lab-foot,.lab-links { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.lab-tools { margin-bottom:.75rem; }
.lab-tools .chip[aria-pressed=true],#lab-names .chip[aria-pressed=true] { background:var(--ink); color:var(--white); border-color:var(--ink); }
.lab-plate { position:relative; isolation:isolate; border-radius:4px; overflow:hidden; background:#193e43; }
.lab-plate:focus-within { outline:2px solid var(--red); outline-offset:2px; }
.lab-plate canvas,.lab-detail canvas { display:block; width:100%; height:auto; }
#lab-pins { position:absolute; inset:0; pointer-events:none; }
.lab-pin { position:absolute; pointer-events:auto; transform:translate(-50%,-50%); width:44px; height:44px; display:grid; place-content:center; font:700 .85rem/1 system-ui,sans-serif; border:0; background:transparent; color:#fff; }
.lab-pin::before { content:""; position:absolute; z-index:-1; inset:8px; border-radius:50%; background:#193e43; border:2px solid #fff3d4; }
.lab-pin[aria-pressed=true]::before,.lab-pin:hover::before { background:#953d37; box-shadow:0 0 0 2px #f1be7e; }
.lab-caption,.lab-scrub label,.lab-scrub output { font-size:.88rem; color:var(--muted); }
.lab-caption { margin:.65rem 0 .85rem; }
.lab-scrub { display:grid; grid-template-columns:1fr auto; align-items:center; gap:.1rem .75rem; padding:.6rem .8rem 0; background:var(--white); }
.lab-scrub input { grid-column:1/-1; width:100%; height:44px; margin:0; accent-color:var(--red); touch-action:pan-y; cursor:ew-resize; }
.lab-scrub output { font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
.lab-detail { padding:1.25rem clamp(1rem,2vw,1.75rem); background:var(--white); border-left:1px solid var(--line); }
.lab-pattern { width:68px; height:15px; display:block; color:var(--red); }
.lab-detail h2 { margin:.4rem 0 .7rem; }
.lab-detail canvas { border:1px solid var(--line); margin:0 0 .8rem; border-radius:3px; }
.lab-evidence { margin:.75rem 0; padding-left:.75rem; border-left:2px solid #b09e76; color:var(--muted); font-size:.9rem; }
.lab-links a { display:inline-flex; align-items:center; min-height:44px; font-size:.87rem; }
.lab-foot { margin-top:1rem; }.lab-foot a { margin-right:auto; }
.layer-panel { container-type:inline-size; min-width:0; margin-top:1.1rem; padding:clamp(.75rem,2vw,1.25rem); background:var(--white); border-block:1px solid var(--line); }
.lab-marker-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.15rem .7rem; margin:.35rem 0; }
#lab-markers { display:inline-flex; align-items:center; gap:.45rem; min-height:44px; padding:.25rem .5rem; border:1px solid var(--line); border-radius:5px; color:var(--ink); background:var(--white); }
#lab-markers i { width:29px; height:17px; display:flex; align-items:center; padding:2px; border-radius:10px; background:#677673; }
#lab-markers i::after { content:""; width:13px; height:13px; border-radius:50%; background:white; }
#lab-markers[aria-checked=true] i { background:var(--choice-line); justify-content:flex-end; }
.layer-intro { font-size:.92rem; color:var(--muted); max-width:44em; margin:0 0 .85rem; }
.layer-panel header,.layer-actions { display:flex; flex-wrap:wrap; align-items:baseline; gap:.45rem .85rem; }
.layer-panel header { justify-content:space-between; margin:0 0 .35rem; }
.layer-panel h2 { font:700 clamp(1.25rem,2vw,1.6rem)/1.25 var(--display); }
.layer-panel output,.layer-caption { color:var(--muted); font-size:.85rem; }
.layer-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; }
.layer-grid button { display:grid; justify-items:start; align-content:start; gap:.3rem; padding:.65rem; min-width:0; border:1px solid var(--line); border-radius:5px; background:var(--paper); color:var(--muted); text-align:start; touch-action:manipulation; }
.layer-grid button[aria-pressed=true] { color:#fff8e4; border-color:var(--ink); background:var(--ink); }
.layer-grid svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.layer-grid strong { font-size:1rem; }
.layer-grid button > span { font-size:.84rem; line-height:1.5; overflow-wrap:anywhere; }
.layer-grid button > small { align-self:end; }
.layer-grid small::before { content:"○ 隐藏"; }
.layer-grid [aria-pressed=true] small::before { content:"✓ 显示"; color:#f1cd8e; }
.layer-actions { margin-top:.85rem; }
.layer-actions .button { font-size:.88rem; }
@media (prefers-reduced-motion:no-preference) {
  .layer-grid svg { transition:transform 140ms ease-out; }
  .layer-grid [aria-pressed=true] svg { transform:translateX(2px); }
}
@media(max-width:650px) {
  .layer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layer-actions { gap:.35rem; }
}
@container (max-width:38rem) {
  .layer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container (max-width:19rem) {
  .layer-grid { grid-template-columns:minmax(0,1fr); }
  .layer-grid button { grid-template-columns:30px minmax(0,1fr) auto; align-items:center; column-gap:.5rem; }
  .layer-grid svg { grid-row:span 2; }
  .layer-grid button > span { grid-column:2; }
  .layer-grid small { grid-column:3; grid-row:1/3; align-self:center; }
}
@media(max-width:800px) {
  .lab-spread { grid-template-columns:1fr; }
  .lab-table { padding:1rem 0; }
  .lab-detail { border-left:0; border-top:1px solid var(--line); }
  .lab-detail canvas { max-width:400px; }
}
@media(max-width:460px) {
  .lab-heading { gap:.55rem; }
  .lab-tools .chip { flex:1 1 auto; justify-content:center; }
  .lab-scrub { grid-template-columns:1fr; }
  .lab-pin::before { inset:11px; }
  #lab-names { gap:.35rem; }
}

/* Shared inline icons and the exhibition homepage. */
.glyph-library { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
.glyph { width:1.35em; height:1.35em; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.glyph use { pointer-events:none; }
.lab-mark.glyph { width:clamp(42px,5vw,68px); height:auto; aspect-ratio:1; }
.layer-grid .glyph { stroke-width:1.65; }
.panel,.button,.chip,.step,.move { border-radius:var(--radius); }
.button,.small-action { gap:.5rem; }
.seal { color:var(--gold); }
.exhibit-copy,.exhibit-media,.entry-grid>* { min-width:0; }
.hero-exhibit { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,2fr); align-items:center; overflow:hidden; border-radius:var(--radius); background:var(--ink); color:var(--paper); }
.exhibit-copy { padding:clamp(1.25rem,3.5vw,3.4rem); }
.exhibit-copy .kicker { color:var(--gold); font-size:.88rem; }
.exhibit-copy h1 { font-size:clamp(2.5rem,4.15vw,4.1rem); line-height:1.16; text-wrap:balance; letter-spacing:.015em; }
.exhibit-copy h1+p { margin:1rem 0 1.4rem; color:var(--selected); }
.exhibit-copy .primary { background:var(--gold); border-color:var(--gold); color:var(--ink); }
.exhibit-copy .primary:focus-visible { outline-color:var(--paper); }
.exhibit-media { align-self:stretch; display:flex; flex-direction:column; justify-content:center; background:#143738; }
#hero-image { display:block; width:100%; height:auto; object-fit:contain; }
.exhibit-rail { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.25rem .8rem; padding:.3rem 1rem; color:var(--selected); font-size:.8rem; border-top:1px solid #78938a60; }
#hero-switch { display:inline-flex; align-items:center; gap:.45rem; min-height:44px; padding:.25rem .45rem; border:0; background:transparent; color:var(--gold); font-weight:700; }
#hero-switch:hover { text-decoration:underline; }
#hero-switch:focus-visible { outline-color:var(--gold); }
#hero-switch:active { color:white; }
#hero-comparison { padding:1rem; width:100%; background:var(--selected); color:var(--ink); }
#hero-comparison figcaption label { color:var(--ink); }
#home>.section-intro { margin:var(--section-space) 0 0; align-items:start; }
#home>.section-intro h2+p { margin-top:.65rem; }
.home-band { margin-top:var(--section-space); }
.band-title { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.4rem 1rem; margin-bottom:.8rem; }
.band-title h2 { font-size:clamp(1.5rem,2.7vw,2.3rem); }
.small-action { display:inline-flex; align-items:center; min-height:44px; color:var(--red); text-underline-offset:.25em; }
.small-action:hover { color:var(--ink); }
.small-action:active { text-decoration-thickness:2px; }
.entry-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.entry { border:1px solid var(--line); border-top:3px solid var(--jade); background:var(--white); border-radius:var(--radius); display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.8rem; align-items:center; padding:clamp(.85rem,1.65vw,1.45rem); text-decoration:none; }
.entry>.glyph:first-child,.triptych .glyph { width:2.25rem; height:2.25rem; color:var(--ink); }
.entry>.glyph:last-child { color:var(--red); width:1rem; }
.entry strong { font:700 1.45rem var(--display); }
.entry small { display:block; font-size:.86rem; line-height:1.5; color:var(--muted); margin-top:.35rem; }
.entry:hover,.home-path a:hover { background:var(--selected); border-color:var(--jade); }
.entry:active,.home-path a:active { background:#cadbd1; }
.triptych article>.glyph { float:right; color:var(--bamboo); margin:0 0 .55rem .6rem; }
.home-path { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:.35rem; }
.home-path a { display:grid; justify-items:center; gap:.4rem; text-decoration:none; padding:.85rem .2rem; border-block:1px solid var(--line); }
.home-path .glyph { width:2rem; height:2rem; }
.archive-steps .step span { display:inline-flex; align-items:center; gap:.28rem; }
.archive-steps .glyph { width:1.35rem; height:1.35rem; }
.lesson-symbol .glyph { width:4.6rem; height:4.6rem; color:var(--gold); }
@media(max-width:900px) {
  .hero-exhibit { grid-template-columns:minmax(0,1fr); }
  .exhibit-copy { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:.8rem; align-items:center; }
  .exhibit-copy .kicker,.exhibit-copy h1 { grid-column:1; }
  .exhibit-copy h1+p { margin:.5rem 0 0; }
  .exhibit-copy h1+p br { display:none; }
  .exhibit-copy .primary { grid-column:2;grid-row:2/4; }
  .entry-grid { grid-template-columns:1fr; }
}
@media(max-width:650px) {
  .home-path { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .exhibit-copy { display:block; }
  .exhibit-copy h1 { font-size:clamp(2rem,7.8vw,2.8rem); }
  .exhibit-copy .primary { margin-top:.8rem; }
  #hero-comparison { padding:.65rem; }
}

/* 学工艺 · 观察台与工序档案 */
#learn .page-title { align-items:center; padding-block:.7rem 1.6rem; margin-bottom:1.25rem; }
#learn .page-title h1 { font-size:clamp(2.1rem,4.7vw,3.9rem); line-height:1.2; }
#learn .page-title>p { max-width:29em; line-height:1.85; }
#learn .process-stages { gap:.5rem; margin-bottom:.8rem; }
#learn .process-stages .step {
  display:flex; align-items:center; justify-content:center; gap:clamp(.35rem,1vw,.9rem);
  min-height:56px; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--white); color:var(--ink);
}
#learn .process-stages .step span { font:italic 1rem Georgia,serif; color:inherit; margin:0; }
#learn .process-stages .step[aria-current="step"] { background:var(--ink); color:var(--paper); border-bottom:3px solid var(--gold); }
#learn .process-stages .step[aria-current="step"] .glyph { color:var(--gold); }
#learn .process-stages .step:disabled { background:transparent; color:var(--muted); border-style:dashed; }
#learn .stage-guide { margin:0 0 1rem; }
#learn .process-grid { gap:clamp(1rem,2.4vw,2.25rem); }
#learn .process-view,#learn .compare-figure {
  min-width:0; padding:clamp(.75rem,1.7vw,1.35rem); margin:0; border:1px solid var(--line);
  background:var(--white); border-radius:var(--radius);
}
#learn .process-view { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.7rem; align-items:center; }
#learn .process-view canvas { grid-column:1 / -1; }
#learn .process-view figcaption,#learn .detail-zoom { margin:0; }
#learn .process-controls { padding:clamp(1rem,2vw,1.7rem); border-top:3px solid var(--jade); }
#learn .process-copy h2,#learn .compare-copy h2 { font:600 clamp(1.55rem,2.4vw,2.2rem)/1.22 var(--display); }
#learn .learn-notes { margin:1rem 0; padding:1rem 0 0; border-top:1px solid var(--line); }
#learn .learn-notes dt { font-weight:700; color:var(--ink); font-size:.86rem; }
#learn .learn-notes dd { color:var(--muted); margin:.15rem 0 .7rem; font-size:.92rem; line-height:1.65; }
#learn #maker-voice { margin:.8rem 0 0; border-left:2px solid var(--gold); padding:.2rem 0 .2rem .85rem; }
#learn #maker-voice p { font:600 1.25rem var(--display); }
#learn .craft-compare { background:transparent; border:0; padding:0; gap:.85rem clamp(1rem,2.4vw,2.25rem); grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); }
#learn .compare-copy { padding-top:.7rem; border-top:3px solid var(--jade); }
#learn .compare-labels { padding:0 0 .6rem; }
#learn .compare-viewport { border-radius:var(--radius); }
#learn .compare-source { border-top:1px solid var(--line); padding-top:.7rem; }
#learn .paint-proof { margin-top:.8rem; background:var(--selected); border-left:2px solid var(--jade); padding:.7rem .85rem; }
#learn .paint-proof strong { font:600 1.1rem var(--display); }
#learn #proof-colors { margin-top:.5rem; display:flex; flex-wrap:wrap; gap:.4rem 1rem; }
#learn #proof-colors span { display:inline-flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.8rem; }
#learn #proof-colors span::before { content:""; width:1.25rem; height:.75rem; background:var(--pigment); border:1px solid #183f3c40; }
#learn .archive-overview { padding-top:clamp(1.25rem,3vw,2.5rem); margin-top:clamp(2rem,4vw,3.5rem); }
#learn .archive-steps { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; }
#learn .archive-steps .step {
  position:relative; gap:.15rem; text-align:left; padding:clamp(.65rem,1.5vw,1.15rem);
  border:1px solid var(--line); border-radius:var(--radius); font:600 1.2rem/1.4 var(--display);
}
#learn .archive-steps .step span { width:100%; justify-content:space-between; margin-bottom:.25rem; color:var(--ink); font:italic 1rem Georgia,serif; }
#learn .archive-steps .glyph { width:1.6rem; height:1.6rem; }
#learn .archive-steps .archive-summary,#learn .archive-steps .archive-action { font-family:"Microsoft YaHei",system-ui,sans-serif; }
#learn .archive-summary { color:var(--muted); font-size:.85rem; }
#learn .archive-action { color:var(--red); margin-top:.15rem; }
#learn .archive-steps .step:hover { border-color:var(--jade); background:#edf2ec; }
#learn .archive-overview:has(details[open]) .step[aria-pressed="true"] { border-color:var(--ink); background:var(--selected); box-shadow:inset 3px 0 var(--ink); }
#learn .lesson { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); padding:0; }
#learn .lesson-content { align-self:center; }
#learn #lesson-note { margin:.7rem 0; font-size:.91rem; }
#learn .archive-map { display:grid; align-content:center; gap:1.25rem; padding:clamp(1rem,2.4vw,2rem); margin:0; background:var(--ink); color:var(--paper); }
#learn .archive-map figcaption { color:var(--paper); font:500 1.05rem var(--display); }
#learn #lesson-symbol { display:flex; align-items:stretch; list-style:none; margin:0; padding:0; gap:.4rem; }
#learn #lesson-symbol li { display:grid; flex:1; justify-items:center; gap:.35rem; border-block:1px solid #78938a; padding:.65rem .2rem; }
#learn #lesson-symbol li[aria-current] { background:var(--paper); color:var(--ink); border-radius:3px; }
#learn #lesson-symbol small { font-size:.75rem; }
#learn #lesson-symbol .glyph { height:2rem; width:2rem; }
#learn #archive-scale { display:flex; gap:4px; }
#learn #archive-scale i { flex:1; height:3px; background:var(--jade); }
#learn #archive-scale .here { background:var(--gold); }
#learn .learn-practice { text-align:right; margin-top:.75rem; }
@media (max-width:800px) {
  #learn .process-grid,#learn .lesson { grid-template-columns:minmax(0,1fr); }
  #learn .craft-compare { grid-template-columns:minmax(0,1fr); grid-template-areas:"visual" "copy" "next" "source"; }
  #learn .archive-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #learn .process-grid:has(#process-paint:not([hidden])) .process-view { margin-bottom:.75rem; }
}
@media (max-width:520px) {
  #learn .process-stages .step { display:grid; grid-template-columns:auto auto; justify-content:center; gap:.15rem .3rem; font-size:.9rem; }
  #learn .process-stages .step .glyph { display:none; }
  #learn .process-stages .step span { font-size:.79rem; }
  #learn .archive-map { gap:.8rem; }
}


/* Digital design workbench */
#studio .page-title {align-items:center}
#studio .page-title .muted {margin-top:.4rem;font-size:.88rem}
#studio .studio-grid {grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(1rem,3vw,2.8rem)}
#studio .studio-preview {min-width:0;margin:0;padding:clamp(.9rem,2vw,1.6rem);border:1px solid var(--line);border-top:3px solid var(--ink);background:var(--white)}
#scheme-title {overflow-wrap:anywhere;margin:0 0 .75rem;font:600 clamp(1.45rem,2.3vw,2.25rem)/1.25 var(--display)}
#studio .studio-lighting {
  display:inline-flex;
  max-width:100%;
  margin:0 0 .8rem;
  padding:2px;
  border:1px solid #65746c;
  border-radius:4px;
  background:#172c29;
}
#studio .studio-lighting button {
  min-height:40px;
  padding:.35rem .9rem;
  border:0;
  border-radius:2px;
  background:transparent;
  color:#e1e5df;
  font:inherit;
  font-size:.9rem;
}
#studio .studio-lighting button[aria-pressed="true"] {
  color:#173a34;
  background:#eee9d9;
  font-weight:650;
}
#studio .studio-lighting button:focus-visible {outline:2px solid #d6b372;outline-offset:1px}
#studio .studio-tools {margin-top:.75rem}
#studio .face-download {margin-top:.8rem;color:var(--muted);font-size:.9rem}
#studio summary {cursor:pointer;padding:.4rem 0;width:fit-content}
#studio :is(#editor,fieldset,.colors label) {min-width:0}
#studio #editor {display:grid;gap:.75rem}
#studio #editor fieldset {margin:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);padding:.7rem 1rem 1rem}
#studio legend {font:600 1.2rem var(--display);padding:0 .4rem}
#studio legend i {font:italic 1.05rem Georgia,serif;color:var(--red);margin-right:.4rem}
#studio .scheme-grid,#studio .colors {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
#studio .scheme-grid .chip {display:grid;gap:.25rem;padding:.5rem .6rem;justify-items:start}
#studio .scheme-grid .dots {width:100%;height:14px;overflow:hidden;border-radius:2px}
#studio .scheme-grid .dots i {height:100%;width:auto;flex:1;border:0;border-radius:0}
#studio .colors {margin-top:.7rem}
#studio .colors label {background:var(--paper);justify-content:space-between;padding:.2rem .5rem}
#studio .motif-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem}
#studio .motif-grid .chip {flex-direction:column;justify-content:center;line-height:1.3}
#studio .motif-grid svg {width:32px;height:24px;display:block}
#studio .chip[aria-pressed=true] {border-color:var(--ink);box-shadow:inset 0 -3px var(--ink);background:var(--selected)}
#studio .card-toolbar .chip[aria-pressed=true] {background:var(--ink)}
#studio .prep-area {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:2rem;align-items:start;margin-top:clamp(1.6rem,4vw,3.2rem);border-top:2px solid var(--gold);padding-top:1.5rem}
#studio .prep-controls .actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.6rem .65rem;
  max-width:36em;
}
#studio .button {
  min-height:44px;
  padding:.55rem .85rem;
  font-size:.94rem;
  font-weight:600;
  line-height:1.4;
  color:var(--ink);
  background:var(--white);
  border:1px solid var(--choice-line);
}
#studio .prep-controls p {max-width:36em;margin:.5rem 0 1rem}
#studio #prep-sheet {display:block;width:100%;height:auto;border:1px solid var(--line)}
#studio .studio-note {margin-top:2rem;padding-block:1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.88rem}
#zoom-dialog {width:min(95vw,1200px);max-height:92vh;border:1px solid var(--jade);background:var(--paper);padding:.75rem}
#zoom-dialog::backdrop {background:#102d2bd6}
#zoom-dialog canvas {display:block;width:100%;height:auto;max-height:75vh;object-fit:contain;margin-top:.5rem}
@media(min-width:901px) and (min-height:760px){#studio .studio-preview{position:sticky;top:.6rem}}
@media(max-width:900px){#studio .studio-grid,#studio .prep-area{grid-template-columns:minmax(0,1fr)}#studio #mobile-preview{display:inline-flex}}
@media(max-width:420px){#studio .motif-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#studio #editor fieldset{padding-inline:.65rem}}

#studio-monitor {display:none}
@media(max-width:900px){
  #studio-monitor {display:block;position:sticky;top:0;z-index:2;width:100%;height:auto;max-height:21vh;object-fit:contain;background:var(--ink);border-bottom:2px solid var(--gold)}
  #studio #editor :is(button,input){scroll-margin-top:calc(21vh + 16px)}
}

#studio .creation-note {margin:1rem 0;max-width:36em}
#creation-note {width:100%;min-height:4.5em;padding:.7rem;border:1px solid var(--line);border-radius:var(--radius);font:inherit;color:var(--ink);background:var(--white);resize:vertical}
#creation-note:focus-visible {outline:3px solid var(--jade)}
#studio .studio-bridge {margin-top:var(--section-space);border-top:1px solid var(--line);padding-top:1.4rem}
.studio-bridge ol {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;padding:0;margin:1rem 0}
.studio-bridge li {border-left:2px solid var(--gold);padding-left:1rem}
.studio-bridge h3 {font:600 1.24rem var(--display);margin-bottom:.45rem}
.studio-bridge p {color:var(--muted)}
@media(max-width:700px){.studio-bridge ol{grid-template-columns:minmax(0,1fr);gap:1rem}}


/* Brand, type and editorial rhythm */
:root {
  --choice-ink:#174947; --choice-fill:#DCEAE5; --choice-line:#477B71;
  --carbon:#202B29; --pine:#303936; --cinnabar:#B94232; --gilt:#D0A14B;
  --teal:#557B73; --warm-gray:#D5D6D0; --stone:#E2E2DC; --print:#202B29;
  --ink:var(--print); --paper:var(--stone); --white:#eeede8; --muted:#535951;
  --red:var(--cinnabar); --selected:#d6d5cc; --line:#b6b6ad; --jade:#8b9c94;
  --gold:var(--gilt); --bamboo:#695947; --radius:2px;
  --display:"Source Han Serif SC","Noto Serif SC","Songti SC",SimSun,serif;
  --body:"Source Han Sans SC","Noto Sans SC","Microsoft YaHei",sans-serif;
  --folio:var(--body);
}
body {font-family:var(--body);background:var(--paper);color:var(--print)}
body:has(#lab:not([hidden])) {background:#d9dcdb;--white:#e9ebea;--line:#afb5b2;--selected:#c9ceca}
body:has(#learn:not([hidden])) {background:var(--warm-gray)}
body:has(#studio:not([hidden])) {background:#d3d1ca}
.page h1,.page h2,.page h3 {font-family:var(--display);font-weight:550}
.page .page-title h1,#learn .page-title h1,#lab .lab-heading h1 {font-size:clamp(2.1rem,3.6vw,3.35rem);line-height:1.22}
.site-header {background:var(--carbon);border-color:#525853;color:var(--white)}
.site-header .bar {padding-block:.55rem}
.site-header .brand {color:var(--white);letter-spacing:.075em}
.brand .seal {color:var(--gilt);border:1px solid #a78652;background:transparent;width:32px;height:32px}
.site-header nav a {color:#dfdfd7}
.site-header nav a[aria-current] {color:#f3dab0;border-color:var(--gilt)}
.site-header a:focus-visible,.hero-exhibit a:focus-visible {outline-color:var(--gilt)}
.glyph {stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.folio,.archive-steps .step span,.edit-steps i {font:500 1rem var(--folio);font-variant-numeric:tabular-nums}
.page .button.primary {background:var(--cinnabar);color:#fff;border-color:var(--cinnabar)}
footer {display:flex;align-items:center;flex-wrap:wrap;gap:.8rem;border-top:1px solid var(--line)}
footer a {margin-left:auto}
.source-art img,#learn-sketch img {display:block;margin-top:.6rem;width:100%;height:auto}
.source-art {max-width:32rem}
summary {cursor:pointer}
#home img,.atlas img {display:block;width:100%;height:auto}
body:has(#home:not([hidden])) main {padding-top:0}
#home .hero-exhibit {background:var(--carbon);border-radius:0;box-shadow:0 0 0 100vmax var(--carbon);clip-path:inset(0 -100vmax)}
#home .hero-exhibit:not(:has(#hero-image[hidden])) {
  height:clamp(480px,35vw,512px);grid-template-columns:minmax(0,.86fr) minmax(0,1.35fr);gap:clamp(1rem,3vw,3rem);
}
#home .exhibit-copy {padding:clamp(.9rem,2.2vw,2.25rem);display:block}
#home .exhibit-copy h1 {font-size:clamp(2.35rem,4vw,3.8rem);font-weight:550;color:#f0ede4;line-height:1.18}
.exhibit-copy h1+p {color:#d4d7cf}
#home .exhibit-copy .primary {background:var(--cinnabar);color:white;border-color:var(--cinnabar)}
#home .exhibit-media {min-height:0;background:transparent;align-self:center}
#hero-image {max-height:382px;object-fit:contain}
#home .exhibit-rail {padding:.3rem 0;color:#d8d8ce;border-color:#5a615d}
#hero-switch {color:#f1c778}
#home .culture-sheet {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:.75rem clamp(1rem,5vw,5rem);align-items:end}
.culture-sheet figure {grid-row:span 2;margin:0}
.culture-sheet figcaption,.atlas figcaption {margin:.4rem 0 0;font-size:.8rem;letter-spacing:.04em}
.culture-sheet>p {max-width:31em;align-self:start}
#home .home-band {border-top:1px solid var(--line);padding-top:1rem}
#home .triptych article {background:none}
#home .home-path a {background:transparent;border:0;border-left:1px solid var(--line)}
.home-path .glyph {width:1.5rem;height:1.5rem}
#home .entry-grid {align-items:stretch;gap:clamp(.65rem,1.4vw,1.25rem)}
#home .entry {--accent:var(--pine);border:0;border-bottom:2px solid var(--accent);border-radius:0;padding:0 0 .9rem;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;gap:.65rem;align-items:center}
#home .entry-craft {--accent:var(--cinnabar)}
#home .entry-design {--accent:#9e782b}
.entry img {grid-column:1/-1;aspect-ratio:4/3;object-fit:contain}
.entry>span {align-self:start}
.entry small {min-height:2.7em}
#home .entry>.glyph {color:var(--accent)}
/* Observation bench */
.lab-heading {border-bottom:1px solid var(--line);padding-bottom:.75rem}
.lab-tools {background:#363e3a;padding:.5rem}
.lab-tools .chip {border:0;background:transparent;color:#e4e6e1}
.lab-tools .chip[aria-pressed=true] {color:var(--carbon);background:#e3e6e1;box-shadow:inset 0 -2px var(--red)}
.lab-spread {border:0}
.lab-detail {padding:1.15rem clamp(1rem,2vw,2rem);border:0;border-top:2px solid #525b55}
.lab-detail canvas {border:0}
.atlas-shelf,.lab-register {margin-top:2rem;border-top:1px solid var(--line);padding-top:.9rem}
.atlas-shelf h2 {font-size:1.4rem;margin-bottom:.75rem}
.atlas {display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);align-items:end;gap:clamp(1rem,2.5vw,2rem)}
.atlas figure {margin:0;min-width:0}
.atlas-note {font-size:.85rem;color:var(--muted);margin:.65rem 0}
.plate-link {display:block;position:relative}
.plate-link span {position:absolute;right:.5rem;bottom:.5rem;color:white;background:var(--carbon);padding:.22rem .45rem;font-size:.78rem}
.lab-register summary {width:fit-content;font-weight:650}
#lab-reading {padding:1rem 0}
#lab-reading p {margin:.3rem 0}
#learn .page-title {padding:1rem 0;border-block:1px solid #9f958c;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:.65rem clamp(1rem,3vw,3rem);align-items:end}
#learn .page-title img {width:min(100%,27rem);height:auto;object-fit:contain;grid-row:1/3;grid-column:2;justify-self:end;align-self:center}
#learn .page-title>p {align-self:start}
#learn .kicker,#learn .process-stages .step span {color:var(--cinnabar)}
#learn .process-stages .step {border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
#learn .process-stages .step[aria-current=step] {color:var(--print);border-bottom:3px solid var(--red);background:#e7e4dc}
#learn .process-stages .step[aria-current=step] .glyph {color:var(--red)}
#learn .archive-steps,#lab .archive-steps {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2rem;margin-block:1rem}
#learn .archive-steps .step,#lab .archive-steps .step {display:grid;grid-template-columns:2.1rem 3.1em minmax(0,1fr);align-items:baseline;gap:.3rem;text-align:left;padding:.72rem .3rem;border:0;border-radius:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);font:600 1.05rem var(--display)}
#learn .archive-steps .step span,#lab .archive-steps .step span {color:var(--muted);font:500 .87rem var(--folio)}
#learn .archive-steps small,#lab .archive-steps small {font:400 .84rem var(--body);color:var(--muted)}
#learn .archive-overview:has(details[open]) .step[aria-pressed=true],#lab .archive-steps .step[aria-pressed=true]{background:#c8c8bf;box-shadow:inset 2px 0 var(--red)}
#learn .archive-map {background:var(--carbon)}
#learn-sketch {margin:.65rem 0;font-size:.88rem}
#studio .studio-grid {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
#studio .studio-preview {background:var(--carbon);color:var(--white);border:0;border-top:2px solid var(--gilt)}
#studio .studio-preview :is(figcaption,summary) {color:#d5d6ce}
#studio .card-toolbar .chip[aria-pressed=true] {background:#d7d4ca;color:var(--print)}
#studio #editor {align-content:start;gap:.85rem}
.edit-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.edit-steps button {min-height:48px;padding:.4rem .15rem;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink)}
.edit-steps i {display:block;font-size:.78rem}
.edit-steps button[aria-pressed=true] {background:var(--carbon);color:var(--white);border-color:var(--gilt)}
#studio #editor fieldset {min-height:6rem;padding:.85rem 0;margin:0;border:0;border-bottom:1px solid var(--line);background:none}
#studio #editor legend {font:600 1rem var(--body);padding:0}
#studio .motif-grid .chip,#studio .scheme-grid .chip {background:none;border:1px solid #aaa99e;border-radius:2px}
#studio #editor .chip[aria-pressed=true] {background:var(--white);border-color:var(--carbon);box-shadow:inset 0 -2px var(--cinnabar)}
.scheme-recap .button {margin-top:.6rem}
#studio .prep-area {
  padding:clamp(1rem,2.5vw,2rem) 0;
  background:transparent;
  border-top:1px solid var(--line);
  gap:clamp(1.5rem,4vw,4rem);
}
#studio #prep-sheet {width:100%;max-width:660px;height:auto;justify-self:center;border:0}
@media (min-width:901px) {
  #studio .prep-area {grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)}
}
@media(min-width:901px){.entry-grid {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#studio .studio-grid{grid-template-columns:minmax(0,1fr)}}
@media(min-width:701px) and (max-width:900px){.entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 #home .hero-exhibit:not(:has(#hero-image[hidden])) {min-height:480px;height:auto;grid-template-columns:minmax(0,1fr);gap:0;align-content:center}
 #hero-image {max-height:244px}
 #home .culture-sheet,#learn .page-title,.atlas {grid-template-columns:minmax(0,1fr)}
 .culture-sheet figure {grid-row:auto}
 #learn .page-title img {grid-column:1;grid-row:auto;width:min(100%,25rem);justify-self:center}
 #learn .archive-steps,#lab .archive-steps {grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:no-preference) {
 .page:not([hidden]) {animation:folio-enter .15s ease-out}
 @keyframes folio-enter {from{opacity:.8}to{opacity:1}}
 .entry {transition:transform .16s ease}
 .entry:hover {transform:translateY(-2px)}
 button:active:not(:disabled):not(.lab-pin) {transform:translateY(1px)}
}

/* 认识龙灯：展品、对照台、体验入口、资料索引 */
#home .hero-exhibit {position:relative;background:#102122;box-shadow:0 0 0 100vmax #102122}
#home .exhibit-copy {position:relative;z-index:1;padding-inline:0}
#home .exhibit-copy h1 {max-width:5.3em;font-size:clamp(2.6rem,4.5vw,4.35rem);line-height:1.16;letter-spacing:.025em;color:#f6ead1}
#home .exhibit-copy .primary {margin-top:.3rem;padding-inline:1.25rem}
#home .exhibit-copy .primary::after {content:"→";margin-left:.5rem}
#home .exhibit-rail {border:0}
#home .exhibit-media #hero-image {mask-image:linear-gradient(90deg,transparent,#000 15%,#000 96%,transparent);object-fit:contain}
#home .home-observation {display:grid;align-items:center;grid-template-columns:minmax(12rem,.7fr) minmax(0,1.8fr);gap:clamp(1rem,4vw,4rem);padding-block:clamp(1.6rem,4vw,3rem)}
.home-observation h2 {max-width:7.8em;font-size:clamp(1.65rem,2.65vw,2.6rem);line-height:1.28}
.home-observation p {margin-top:.7rem;max-width:18em;color:var(--muted)}
#home-comparison-bay #hero-comparison {background:transparent;padding:0;margin:0}
#home-comparison-bay .compare-viewport {border:0;border-radius:2px}
#home .home-band {margin-top:1.2rem;border:0;padding-top:0}
#home .entry-grid {gap:clamp(.8rem,2vw,1.6rem)}
#home .entry {align-content:start;grid-template-rows:auto auto}
#home .entry img {width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
#home .culture-sheet {align-items:center;grid-template-columns:minmax(0,.82fr) minmax(0,1.25fr);margin-top:clamp(2rem,5vw,4.5rem)}
#home .culture-sheet figure {max-width:25rem}
.home-culture {margin:1.5rem 0;border-block:1px solid var(--line)}
.home-culture summary {padding:.8rem 0;color:var(--ink);font-weight:600}
.home-culture .triptych article {border:0;border-radius:0;padding:.5rem 0}
.home-culture .triptych .glyph,.home-culture .home-path .glyph {display:none}
.home-culture .home-path {margin-bottom:1rem}
#lab .lab-heading,#learn .page-title {border:0}
#lab-overlay {z-index:2}
#lab-pins {z-index:3}
#lab-pins .lab-pin {padding:0;left:clamp(22px,var(--pin-x),calc(100% - 22px));top:clamp(22px,var(--pin-y),calc(100% - 22px));transform:translate(-50%,-50%);border-radius:3px}
#lab-pins .lab-pin::before {content:none}
.lab-pin span {display:grid;place-items:center;min-width:22px;height:22px;background:var(--carbon);color:#fff;border:1px solid #e4e2d5;border-radius:3px;font:600 .78rem/1 var(--body);pointer-events:none}
.lab-pin:is(:hover,:focus-visible,[aria-pressed=true]) span {background:var(--choice-fill);color:var(--choice-ink);outline:2px solid var(--choice-line)}
#lab .lab-detail {background:var(--white);border:0}
#lab-names .chip {border:0;border-radius:0;background:transparent}
#lab-names .chip[aria-pressed=true],
#learn :is(#paint-smiles,#paint-parts,#paint-swatches) .chip[aria-pressed=true],
#studio #editor .chip[aria-pressed=true],#studio .edit-steps button[aria-pressed=true],
#studio .card-toolbar .chip[aria-pressed=true],.view-options .chip[aria-pressed=true],
.lab-tools .chip[aria-pressed=true],.layer-grid button[aria-pressed=true],
#learn .archive-overview:has(details[open]) .step[aria-pressed=true],#lab .archive-steps .step[aria-pressed=true] {
 background:var(--choice-fill);color:var(--choice-ink);border-color:var(--choice-line);
 box-shadow:inset 0 -2px var(--choice-line);font-weight:650
}
.layer-grid button[aria-pressed=true] :is(span,small)::before,.layer-grid button[aria-pressed=true] :is(span,small,.glyph) {color:var(--choice-ink)}
#learn .process-stages {gap:0}
#learn .process-stages .glyph {display:none}
#learn .process-stages .step span {font:500 .8rem var(--body);margin-right:.55em;font-variant-numeric:tabular-nums}
#learn .process-stages .step[aria-current=step] {background:var(--choice-fill);color:var(--choice-ink);border-color:var(--choice-line)}
#learn .process-stages .step[aria-current=step] span {color:inherit}
#learn .process-view,#learn .process-controls {border:0}
#studio #editor .edit-steps button {font-weight:600}
#studio #editor fieldset legend {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#studio .scheme-recap {border:0;padding-top:.5rem}
#studio .motif-grid svg {width:38px;height:28px}
#studio .scheme-grid .dots {height:18px}
@media(min-width:701px) {
 #home .hero-exhibit,#home .hero-exhibit:not(:has(#hero-image[hidden])) {height:clamp(440px,35vw,502px);grid-template-columns:minmax(0,.74fr) minmax(0,1.65fr);gap:1rem}
 #home .exhibit-media #hero-image {max-height:424px}
 #home .entry-grid {grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
}
@media(max-width:700px) {
 #home .home-observation,#home .culture-sheet {grid-template-columns:minmax(0,1fr)}
 #home .home-observation {gap:.8rem}
 .home-observation h2,.home-observation p {max-width:none}
 #home .exhibit-copy h1 {max-width:none;font-size:clamp(1.95rem,7.6vw,3rem)}
 #home .hero-exhibit:not(:has(#hero-image[hidden])) {min-height:0;padding-block:1rem}
 #home .entry-grid {grid-template-columns:minmax(0,1fr)}
 #home .entry {grid-template-columns:minmax(90px,.8fr) minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;padding-bottom:.6rem}
 #home .entry img {grid-column:auto}
 #home .entry>span {align-self:center}
}

#home .exhibit-copy h1 span {display:inline-block}
@media(min-width:701px) {
 #home .exhibit-copy h1 span {display:block;white-space:nowrap}
 #home .exhibit-media #hero-image {
   width:min(100%,754px);align-self:center;
   mask-image:linear-gradient(90deg,transparent,#000 18%,#000 96%,transparent),linear-gradient(0deg,transparent,#000 7%,#000 94%,transparent);
   mask-composite:intersect;
 }
}
@media(prefers-reduced-motion:no-preference) {
 #learn :is(#process-panel,#craft-compare):not([hidden]),#studio fieldset:not([hidden]) {animation:folio-enter .16s ease-out}
}

/* 上色时，将神态放在预览旁，部位与颜料共用一组操作区。 */
#learn #process-panel:has(#process-paint:not([hidden])) {
 display:grid;grid-template-areas:"preview pigments" "expression pigments" "receipt receipt";
 grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
 gap:.85rem clamp(1rem,2.4vw,2.25rem);align-items:start
}
#learn #process-panel:has(#process-paint:not([hidden])) .process-view {grid-area:preview}
#learn #process-panel:has(#process-paint:not([hidden])) .process-controls {grid-area:pigments}
#paint-expression {grid-area:expression;min-width:0;margin:0;padding:.65rem 1rem .85rem;border:0;background:var(--white)}
#paint-expression legend {float:left;width:100%;padding:0 0 .45rem;font-weight:650}
#paint-expression .chips {clear:both}
#paint-expression .craft-note {margin:.5rem 0 0;font-size:.86rem;line-height:1.55;color:var(--muted)}
#learn #paint-proof {
 grid-area:receipt;margin:0;padding:1rem 1.2rem;display:grid;
 grid-template-columns:minmax(0,1fr) auto;gap:.3rem 1rem;align-items:center;
 background:var(--white);border-left:3px solid var(--choice-line)
}
#paint-proof strong,#paint-proof #proof-colors,#paint-status {grid-column:1}
#learn #proof-colors {margin-top:0}
#paint-proof #carry-paint {grid-column:2;grid-row:1 / span 3;justify-self:end}
#paint-proof #paint-status {margin:0;color:var(--choice-ink)}
#paint-proof #paint-status:empty {display:none}
@media(max-width:800px){
 #learn #process-panel:has(#process-paint:not([hidden])) {
  grid-template-columns:minmax(0,1fr);grid-template-areas:"preview" "expression" "pigments" "receipt"
 }
 #learn #paint-proof {grid-template-columns:minmax(0,1fr)}
 #paint-proof #carry-paint {grid-column:1;grid-row:auto;justify-self:start;margin-top:.45rem}
}

/* 项目档案：五章共用一条标题轴与一条正文轴。 */
#sources {
  --archive-ink: #203d36;
  --archive-link: #93382e;
  --archive-rule: rgba(32, 61, 54, .23);
  max-width: 1016px;
  margin-inline: auto;
  color: var(--archive-ink);
}
#sources .notes-intro { padding-block: .75rem 2rem; }
#sources .notes-intro h1 {
  margin: .32em 0 0;
  font: 550 clamp(2rem, 3.4vw, 3rem)/1.25 var(--display);
}
#sources .notes-section {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(2rem, 4vw, 4rem);
  padding-block: 36px;
  border-top: 1px solid var(--archive-rule);
}
#sources .notes-section h2 {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  align-items: baseline;
  column-gap: .5em;
  margin: 0;
  font: 550 1.25rem/1.55 var(--display);
  color: var(--archive-ink);
}
#sources .notes-number {
  font: 600 .8125rem/1.4 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--archive-link);
}
#sources .notes-copy {
  min-width: 0;
  max-width: 41em;
  font: 400 clamp(16px, 1.2vw, 17px)/1.8 var(--body);
  overflow-wrap: break-word;
}
#sources .notes-copy :is(p, dl, dd, h3, h4) { margin: 0; }
#sources .notes-copy p + p { margin-top: .85em; }
#sources .notes-copy .notes-thesis {
  font: 550 clamp(1.45rem, 2.2vw, 1.9rem)/1.35 var(--display);
}
#sources .notes-copy .notes-ref {
  margin-top: .8em;
  color: var(--muted);
  font-size: .9rem;
  overflow-wrap: anywhere;
}
#sources .notes-copy a, #sources .source-art summary {
  color: var(--archive-link);
  text-underline-offset: .22em;
}
#sources .notes-copy a { text-decoration: underline; text-decoration-thickness: 1px; }
#sources .notes-copy a:hover { text-decoration-thickness: 2px; }
#sources :is(a, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#sources .notes-rows { display: grid; row-gap: 1.35rem; }
#sources p + .notes-rows { margin-top: 1.4rem; }
#sources .notes-rows > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  align-items: baseline;
  gap: .3rem 1em;
}
#sources .notes-rows dt { font-weight: 600; }
#sources .source-art { margin-top: .75em; }
#sources .source-art summary { width: fit-content; font-size: .9rem; cursor: pointer; }
#sources .notes-reference, #sources .notes-boundary { margin-top: 2rem; }
#sources .notes-copy h3 {
  margin-bottom: .45em;
  font: 600 1.16rem/1.55 var(--display);
}
#sources .notes-application { margin-top: .75rem; }
#sources .notes-application h4 {
  margin-bottom: .2em;
  color: var(--muted);
  font: 600 .84rem/1.6 var(--body);
}
@media (max-width: 1024px) {
  #sources { max-width: 43rem; }
  #sources .notes-section { grid-template-columns: minmax(0, 1fr); row-gap: 1.1rem; padding-block: 2rem; }
  #sources .notes-section h2 { grid-template-columns: max-content minmax(0, 1fr); }
}
@media (max-width: 540px) {
  #sources .notes-intro { padding-block: .5rem 1.5rem; }
  #sources .notes-section { padding-block: 1.75rem; }
  #sources .notes-rows > div { grid-template-columns: minmax(0, 1fr); }
}
