:root {
  color-scheme:light;
  --paper:#f8f7f3; --ink:#282522; --muted:#746e66; --wine:#863a36; --line:#e0dbd1;
  --serif:"Atlas Song","Noto Serif SC","Songti SC","STSong","SimSun",serif;
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:16px; color:var(--ink); background:var(--paper);
}
*{box-sizing:border-box}
body{margin:0}
button,select{font:inherit} button,a,select{touch-action:manipulation}
button{color:inherit;background:none;border:0;cursor:pointer} a{color:inherit}
button:disabled{cursor:default;opacity:.35}
button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #bd773e;outline-offset:3px}
svg{width:1.08em;height:1.08em;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
[hidden]{display:none!important}
.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.3vw,68px);background:#fcfbf8}
.brand,.top-actions,.info-button,.private{display:flex;align-items:center}
.brand{gap:13px}.logo{width:41px;height:41px}
h1,h2,h3,p{margin:0}
.brand h1{font-family:var(--serif);font-weight:700;font-size:clamp(21px,1.7vw,27px);letter-spacing:.045em;white-space:nowrap}
.brand h1 span{margin-left:.09em}
.top-actions{gap:20px;font-size:14px}.private{gap:7px;color:#756d62}.info-button{gap:8px;padding:8px 0}.divider{height:17px;width:1px;background:var(--line)}
.layout{max-width:2120px;margin:auto;padding:24px clamp(18px,2vw,42px) 26px;display:grid;grid-template-columns:minmax(0,1.58fr) minmax(340px,1fr);gap:clamp(16px,1.6vw,30px);height:calc(100vh - 76px);height:calc(100dvh - 76px);min-height:435px}
.stage,.catalog{min-height:0;min-width:0;border-radius:12px;overflow:hidden}
.stage{position:relative;isolation:isolate;color:#faeacf;display:flex;flex-direction:column;background:#510e15 url('assets/decor/exhibit-backdrop.webp') center/100% 100% no-repeat;box-shadow:0 4px 17px #542b2521}
.stage::before{content:"";pointer-events:none;position:absolute;inset:9px;border:1px solid #e0b7783b;border-radius:6px;z-index:4}
.stage-head{padding:clamp(22px,3.4vh,43px) clamp(22px,3vw,54px) 0;display:flex;justify-content:space-between;align-items:flex-start;position:relative;z-index:3;flex:none}
.period,.item-no,.nav-status,.date-line,.loc-date time,.metadata time{font-variant-numeric:tabular-nums}
.period{display:flex;align-items:center;gap:9px;color:#e0bc83;font:550 13px/1.2 Georgia,serif;letter-spacing:.14em}
.ornament{display:inline-flex;align-items:center;gap:8px;font-size:11px}.ornament:before{content:"";width:23px;height:1px;background:currentColor}
.stage h2{font:650 clamp(32px,3.2vw,61px)/1.35 var(--serif);letter-spacing:.095em;color:#ffeac7;margin:7px 0 0;text-shadow:0 2px 12px #3d090f80}
.map-switch{margin-top:4px;display:inline-flex;align-items:center;gap:7px;color:#f6dfb6;border:1px solid #f1c58d66;border-radius:30px;background:#450b124f;padding:8px 13px;font-size:13px}
.map-switch:hover,.map-switch[aria-pressed=true]{background:#d1ad6c26}
.map-area{position:relative;flex:1 1 0;min-height:0;display:grid;place-items:center;isolation:isolate;margin:0 3%;container-type:size}
.geo{position:relative;width:85%;aspect-ratio:4/3;max-height:100%;flex:none}
@supports(width:1cqh){.geo{width:min(98cqw,132cqh);max-height:none}}
.atlas-picture,.atlas-picture img{display:block;width:100%;height:100%;object-fit:contain}
.marker{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:center;pointer-events:none;transform:translate(-50%,-8px);color:#fff1b0}
.marker i{display:block;width:15px;height:15px;border:2px solid #fff3bb;background:#f5b848;border-radius:50%;box-shadow:0 0 0 5px #eaba5d58,0 0 0 10px #eaba5d22,0 0 14px #ffe08d}
.marker span{display:block;max-width:135px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px;font-size:12px;border-radius:3px;background:#481316df;color:#fff2d5;padding:3px 6px}
.photo-frame{position:absolute;z-index:2;top:50%;left:50%;width:min(32%,255px);transform:translate(-50%,-50%);padding:5px 5px 0;background:#fffaf0;box-shadow:0 9px 23px #21000290,0 1px 2px #2e100ec0;border-radius:2px;text-decoration:none;transform-origin:50% 50%;will-change:transform}
.photo-frame img{display:block;width:100%;object-fit:contain;max-height:150px;margin:0 auto}
@supports(height:1cqh){.photo-frame img{max-height:min(40cqh,195px)}}
.frame-caption{display:flex;justify-content:center;align-items:center;gap:5px;font-family:var(--serif);font-weight:600;font-size:12px;color:#55422d;line-height:1.4;padding:5px 3px 6px;text-align:center}
.frame-caption i{width:4px;height:4px;transform:rotate(45deg);background:#9e6c42}
.exhibit-caption{position:relative;margin:0 clamp(22px,3vw,54px);padding:17px 0 clamp(20px,3.1vh,37px);border-top:1px solid #dfb37b66;flex:none;z-index:2}
.caption-kicker{display:flex;align-items:center;gap:8px;color:#ebcc92;font-size:12px;letter-spacing:.12em}
.active-light{width:6px;height:6px;border-radius:50%;background:#e8c178;box-shadow:0 0 8px #f3c48277}
.kicker-rule{width:22px;height:1px;background:#d2ac7494}
.item-no{font-family:Georgia,serif;font-size:13px;letter-spacing:.12em}
.exhibit-caption h3{font:600 clamp(22px,1.9vw,34px)/1.45 var(--serif);letter-spacing:.035em;margin:6px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.details,.metadata,.metadata>span,.read{display:flex;align-items:center}
.details{gap:10px;justify-content:space-between}.metadata{flex-wrap:wrap;gap:4px 17px;color:#e0c5a9;font-size:13px}.metadata>span{gap:6px}
.metadata svg{width:14px;height:14px}.metadata time{font-family:Arial,sans-serif}
.read{flex:none;gap:8px;border-radius:5px;background:#f0d6a4;color:#4b241a;text-decoration:none;font-size:14px;font-weight:600;padding:9px 15px}
.read:hover{background:#fff0ce}
.catalog{background:#fffefb;border:1px solid var(--line);display:flex;flex-direction:column;box-shadow:0 2px 9px #44372405}
.catalog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(18px,2.4vh,29px) clamp(16px,1.8vw,35px);border-bottom:1px solid var(--line)}
.catalog-head h2{font:700 clamp(23px,1.9vw,33px)/1.3 var(--serif);letter-spacing:.04em}
.catalog-head p{color:var(--muted);font-size:13px;margin-top:5px;font-variant-numeric:tabular-nums}.dotsep{margin:0 6px}
.year-control{display:flex;align-items:center;gap:7px;border:1px solid #dcd5c8;border-radius:5px;position:relative;padding:8px 10px;cursor:pointer;font-size:13px;color:#5b5248;white-space:nowrap}
.year-control:focus-within{outline:2px solid var(--wine)}.year-control svg{width:14px;height:14px}.year-control svg.chev{width:11px}
.year-control select{cursor:pointer;position:absolute;inset:0;width:100%;height:100%;opacity:0}
.catalog-tools{display:flex;align-items:center;gap:7px}.catalog-tools #find-works{border:1px solid currentColor;border-radius:5px;display:grid;place-items:center;width:32px;height:32px;opacity:.75}
.scroller{overscroll-behavior:contain;overflow:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#d4c8b7 transparent;outline-offset:-3px!important;overflow-anchor:none}
.rows{padding:7px clamp(10px,1vw,18px)}
a.row{text-decoration:none}
.row-hint{font-size:12px;line-height:1.3;white-space:nowrap}
.row{--row-h:clamp(92px,12vh,130px);height:var(--row-h);width:100%;position:relative;display:grid;grid-template-columns:clamp(78px,7vw,124px) minmax(0,1fr);gap:clamp(12px,1.2vw,21px);align-items:center;text-align:left;padding:9px clamp(8px,1vw,17px);border:1px solid transparent;border-radius:7px}
.row:not(.selected)::after{content:"";height:1px;position:absolute;bottom:-1px;left:10px;right:10px;background:#eae6df}
.row:hover{background:#f8f5ef}.row.selected{background:#f4eae2;border-color:#dfc3af;z-index:1}
.row.selected:before{content:"";position:absolute;left:0;top:21%;height:58%;width:3px;background:#9a443b;border-radius:0 2px 2px 0}
.thumb{width:100%;height:100%;max-height:clamp(62px,9.05vh,99px);background:#e6dfd2;overflow:hidden;border-radius:4px}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.row-body{min-width:0;display:flex;flex-direction:column;gap:7px}
.row-title{font:600 clamp(15px,1.1vw,20px)/1.45 var(--serif);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.selected .row-title{color:#7c302b}.loc-date{display:flex;align-items:center;gap:8px;color:#79736a;font:12px/1.1 Arial,"Microsoft YaHei",sans-serif}
.now{display:none;align-items:center;gap:4px;color:#8c3b32;font:500 12px/1.2 "Microsoft YaHei",sans-serif}
.selected .now{display:flex}.now i{display:block;width:11px;height:10px;background:linear-gradient(0deg,#995048,#995048) left bottom / 2px 50% no-repeat,linear-gradient(0deg,#995048,#995048) center bottom / 2px 100% no-repeat,linear-gradient(0deg,#995048,#995048) right bottom / 2px 72% no-repeat}
.catalog-foot{min-height:47px;display:flex;align-items:center;justify-content:space-between;padding:5px clamp(18px,1.8vw,35px);border-top:1px solid var(--line)}
.nav-status{display:flex;align-items:center;gap:10px;color:#756655;font:13px Georgia,serif;letter-spacing:.07em}.small-line{width:22px;height:1px;background:#a77a58}
.browse-actions{display:flex;gap:6px}.browse-actions button{width:32px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:4px}
.browse-actions button:hover:not(:disabled){color:var(--wine);background:#f6eee5}
dialog{width:min(410px,calc(100vw - 40px));padding:26px;color:var(--ink);border:1px solid var(--line);border-radius:12px;background:#fffdf8;box-shadow:0 20px 60px #23160e33}
dialog::backdrop{background:#1f171570}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.dialog-head img{width:36px}.dialog-head button{padding:8px}dialog h2{font:700 25px/1.4 var(--serif)}dialog p{font-size:15px;line-height:1.8;margin-top:12px}.sources{display:flex;gap:20px;color:var(--wine)}
.failure{padding:24px;color:var(--wine);line-height:1.7}
.photo-frame img{height:auto}
.edition-button{display:inline-flex;align-items:center;gap:7px;border:1px solid #d4c8b6;border-radius:6px;padding:7px 11px;font-size:13px;color:#685442;background:#fffcf5}
.edition-button:hover{background:#f1e7d7}
#edition-dialog{width:min(740px,calc(100vw - 32px));max-height:88dvh;padding:24px}
.chooser-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px}
.chooser-heading p{font-size:13px;color:#796c60;margin-top:3px}
.chooser-heading button{padding:8px}
#edition-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.edition-card{min-width:0;padding:0;overflow:hidden;border:1px solid #dbd0c1;display:flex;flex-direction:column;text-align:left;border-radius:7px;background:#fffdf8;color:#3f2b25}
.edition-card:hover,.edition-card[aria-current=true]{border-color:#8d4741;box-shadow:0 0 0 1px #a76454}
.edition-card img{width:100%;aspect-ratio:1.95;object-fit:cover;object-position:top;background:#c5af97}
.edition-card-text{display:grid;padding:9px 11px;gap:3px}.edition-card-text strong{font:700 18px/1.4 var(--serif)}.edition-card-text small{font-size:12px;color:#7b6d61}
@media(max-width:540px){.top-actions .private,.top-actions .divider{display:none}.edition-button{padding:5px 8px;font-size:12px}.edition-button svg{width:13px}#edition-dialog{padding:16px}#edition-options{gap:8px}.edition-card-text{padding:6px 8px}.edition-card-text strong{font-size:16px}.edition-card-text small{font-size:11px}.edition-card img{aspect-ratio:1.45;object-position:left top}}
@media(min-width:1800px){.topbar{height:84px}.layout{height:calc(100dvh - 84px)}}
@media(max-width:820px),(orientation:portrait) and (max-width:1100px){
  .topbar{height:52px;padding:0 14px}.brand{gap:9px}.logo{width:30px;height:30px}.brand h1{font-size:18px}.top-actions{gap:10px}.private{font-size:12px}.info-button span,.divider{display:none}
  .layout{height:calc(100vh - 52px);height:calc(100dvh - 52px);min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1.04fr) minmax(0,1fr);gap:8px;padding:8px 9px max(8px,env(safe-area-inset-bottom))}
  .stage,.catalog{border-radius:8px}.stage{background-image:url('assets/decor/exhibit-backdrop-mobile.webp')}.stage::before{inset:5px;border-radius:4px}
  .stage-head{padding:12px 16px 0}.period{font-size:10px;gap:5px}.ornament{font-size:8px;gap:5px}.ornament:before{width:15px}.stage h2{font-size:clamp(21px,4.2vw,34px);line-height:1.28;margin-top:2px;letter-spacing:.08em}
  .map-switch{font-size:12px;gap:5px;margin-top:0;padding:5px 9px}.map-area{margin:0 2%}
  .photo-frame{width:min(30%,180px);padding:3px 3px 0}.frame-caption{font-size:10px;padding:2px 1px 3px}.marker span{font-size:10px}.marker i{width:10px;height:10px}
  .exhibit-caption{margin:0 16px;padding:7px 0 12px}.caption-kicker{font-size:10px;gap:5px}.item-no{font-size:10px}.kicker-rule{width:14px}.active-light{width:5px;height:5px}
  .exhibit-caption h3{font-size:clamp(16px,3.6vw,25px);line-height:1.27;margin:3px 0 5px;-webkit-line-clamp:1}
  .metadata{gap:4px 9px;font-size:11px}.metadata>span{gap:3px}.metadata svg{width:12px;height:12px}.read{font-size:12px;padding:4px 8px;gap:5px}
  .catalog-head{padding:10px 15px}.catalog-head h2{font-size:21px}.catalog-head p{font-size:11px;margin-top:2px}.year-control{padding:6px 8px;font-size:12px}
  .rows{padding:var(--edge,4px) 10px}.row{--row-h:76px;grid-template-columns:80px minmax(0,1fr);padding:6px 9px;gap:13px;transform:scale(.985)}.row.selected{transform:none}
  .thumb{max-height:57px}.row-title{font-size:15px;line-height:1.32}.row-body{gap:5px}.loc-date,.now{font-size:11px}.catalog-foot{min-height:32px;padding:2px 16px}.browse-actions button{height:25px;width:30px}
}
@media(min-width:660px) and (orientation:portrait){.topbar{height:62px}.layout{height:calc(100dvh - 62px);padding:12px 16px;gap:12px}.stage-head{padding:18px 25px 0}.exhibit-caption{margin:0 25px;padding:10px 0 17px}.row{--row-h:85px;grid-template-columns:98px minmax(0,1fr)}.thumb{max-height:66px}}
@media(max-height:580px) and (orientation:landscape){.topbar{height:40px}.logo{width:26px;height:26px}.brand h1{font-size:18px}.layout{height:calc(100dvh - 40px);min-height:240px;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);grid-template-rows:minmax(0,1fr);padding:5px 8px;gap:8px}.stage-head{padding:9px 15px 0}.period{font-size:10px}.stage h2{font-size:20px;margin:1px 0}.exhibit-caption{margin:0 15px;padding:4px 0 10px}.exhibit-caption h3{font-size:16px;margin:3px 0}.catalog-head{padding:8px 12px}.catalog-head h2{font-size:20px}.row{--row-h:65px;grid-template-columns:65px minmax(0,1fr)}.thumb{max-height:48px}.catalog-foot{min-height:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
.marker{width:0;height:0;transform:none;display:block;z-index:3}
.marker i{position:absolute;top:0;left:0;transform:translate(-50%,-50%);width:9px;height:9px;z-index:1}
.marker b{position:absolute;top:0;left:0;height:1px;background:#f5dca4;transform-origin:left center;box-shadow:0 1px 1px #573c29}
.marker span{position:absolute;transform:translateX(-50%);margin:0;z-index:2}
@media(max-width:820px),(orientation:portrait) and (max-width:1100px){.rows{padding-top:5px;padding-bottom:var(--edge,5px)}}
