/* Phone-specific layout, preserving the desktop exhibition and content source. */
.mobile-selection,.drawing-preview{display:none}
@media(max-width:760px){
 :root{--pad:20px;--item:calc((100vw - 2 * var(--pad))/3.16);--model-height:clamp(130px,27dvh,220px)}
 body{height:100dvh;font-size:15px}
 header{height:auto;min-height:124px;margin:0 var(--pad);padding:18px 0 0;flex-wrap:wrap;align-content:start;gap:14px}
 .brand{font-size:17px;letter-spacing:1px;gap:10px;min-height:38px}
 .brand-mark{width:30px;height:34px;font-size:20px}
 .brand small{font-size:7px;letter-spacing:1.3px}
 nav{display:grid;grid-template-columns:1.25fr 1fr 1fr;width:100%;gap:0;font-size:13px}
 nav button,nav>a{display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px 2px}
 nav button:first-child{justify-content:flex-start}
 nav>a{display:flex;justify-content:flex-end}
 nav #total{display:inline;font-size:11px;padding-left:7px}
 main{align-items:center;padding:12px 0;min-height:0}
 .exhibition{margin:0}
 .shelf-caption{margin-bottom:12px;font-size:15px;letter-spacing:1px;align-items:center}
 .shelf-caption i{display:none}
 .browse-hint{font-size:11px;color:#91958a}
 .browse-hint>span{font-size:18px;margin-left:5px}
 .shelf{padding-top:14px;touch-action:pan-x pinch-zoom}
 .model{animation:none}
 .model-link{padding:0 4%}
 .model-link:hover .model-img{transform:none}
 .model-meta{height:85px;padding-top:22px}
 .model-id{display:none}
 .model h2{font-size:12px;letter-spacing:0;margin:2px 0 0;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .drawing-link{min-height:44px;font-size:11px;gap:4px}
 .drawing-link span{display:inline}
 .drawing-link svg{width:14px;height:14px}
 .model.is-current h2{color:var(--accent)}
 .ledge{top:calc(14px + var(--model-height));height:13px}
 .shelf-controls{margin-top:0;gap:12px;min-height:44px}
 .position{font-size:11px;min-width:60px}
 .arrows{gap:0}
 .arrows button{min-width:44px;min-height:44px;font-size:24px;padding:6px}
 input[type=range]{height:44px}
 .mobile-selection{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px var(--pad) 0;padding:18px 0 4px;border-top:1px solid var(--line)}
 .mobile-selection strong{font-weight:400;font-size:17px;line-height:1.5;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-selection button{flex-shrink:0;min-height:46px;padding:10px 18px;font-size:13px;color:#fff;background:var(--ink);border-radius:3px}
 footer{padding:6px 0 calc(12px + env(safe-area-inset-bottom));gap:0;margin:0 var(--pad);border-top:1px solid var(--rule)}
 footer>span,footer>small{display:none}
 footer>div{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:100%;margin:0}
 footer button{font-size:12px;min-height:48px;text-align:center}
 footer button+button{position:relative}
 footer button+button::before{content:'';position:absolute;left:-10px;top:17px;height:14px;border-left:1px solid var(--line)}
 /* Reading and browsing panels are bottom sheets; their close controls stay reachable. */
 #catalog,#news,#drawing{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:92dvh;margin:0;border:0;border-top:1px solid var(--line);border-radius:18px 18px 0 0;padding:20px 22px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -16px 70px #22251f25}
 #catalog .dialog-top,#news .dialog-top,#drawing .dialog-top{position:sticky;top:-20px;margin:0 -2px 20px;background:white;z-index:3;padding:4px 0 10px;border-bottom:1px solid var(--line)}
 .dialog-top h2{font:400 21px/1.6 'Shelf Serif',SimSun,serif}
 .close{min-width:44px;min-height:44px;padding:6px;font-size:28px}
 #search{font-size:16px;min-height:48px;background:#f6f7f4;border:1px solid #eceee7;border-radius:5px;padding:12px 14px}
 .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;margin-top:28px}
 .catalog-card .model-img{height:145px}
 .catalog-card button{padding:6px 0;font-size:14px;min-height:44px}
 .catalog-card p{font-size:14px;margin:12px 0 6px}
 .catalog-card span{display:block;font-size:12px;min-height:34px;line-height:34px}
 #news .news-layout{display:flex;flex-direction:column-reverse;gap:26px}
 #news .news-images{border:0;border-top:1px solid var(--line);padding:22px 0 0}
 #news #notices img{height:130px;max-width:100%}
 .news-article{padding:0}
 .news-article h3{font-size:23px;line-height:1.65;margin-bottom:25px}
 .news-article p{font-size:15px;line-height:1.95;margin-bottom:20px}
 .news-signature,.news-signature p{font-size:13px}
 #drawing .drawing-preview{display:flex;align-items:center;justify-content:center;height:min(25dvh,180px);margin-bottom:18px}
 .drawing-preview .model-img{width:65%;height:100%;object-fit:contain;object-position:center;filter:none}
 #drawing #pdf-frame{display:none}
 #drawing .pdf-help{font-size:13px;line-height:1.8;margin-bottom:18px;color:#858b7a}
 #drawing .pdf-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
 #drawing .pdf-actions a{display:flex;align-items:center;justify-content:center;min-height:50px;font-size:14px;padding:12px 6px;border:1px solid var(--line);border-radius:4px}
 #drawing #pdf-open{background:var(--ink);border-color:var(--ink);color:#fff}
 #feedback{padding:22px;width:calc(100vw - 40px);border-radius:10px}
 #feedback-email{font-size:21px;margin:14px 0 8px}
 #support{width:calc(100vw - 32px);max-height:92dvh;padding:20px;gap:16px;border-radius:10px}
 #support #payments{height:min(480px,calc(100vw - 72px),calc(92dvh - 280px))}
 #support .sponsor-note p{font-size:12px;line-height:1.8}
}
@media(max-width:760px) and (max-height:480px) and (orientation:landscape){
 :root{--model-height:85px}
 header{min-height:64px;flex-wrap:nowrap;align-items:center;padding:0;gap:18px}
 .brand{font-size:15px;white-space:nowrap}
 nav{width:290px;flex-shrink:0}
 .mobile-selection{display:none}
 .model-meta{height:66px}
 #support{height:92dvh}
 #support #payments{height:100%}
 #support .sponsor-note p{font-size:11px}
}
@media(max-width:760px) and (max-height:650px){
 :root{--model-height:clamp(80px,22dvh,140px)}
 header{min-height:106px;padding-top:10px;gap:4px}
 .brand{font-size:16px}
 main{padding:4px 0}
 .shelf-caption{margin-bottom:0}
 .model-meta{height:69px;padding-top:16px}
 .drawing-link{min-height:40px}
 .shelf-controls{min-height:36px}
 .arrows button,input[type=range]{min-height:36px;height:36px}
 .mobile-selection{margin-top:2px;padding-top:10px}
 .mobile-selection button{min-height:44px;padding:8px 12px}
 footer{padding-bottom:calc(5px + env(safe-area-inset-bottom))}
 footer button{min-height:44px}
}

/* Centered mobile selection; side models remain visible as navigation cues. */
@media(max-width:760px){
 .shelf{padding-left:calc((100vw - var(--item))/2);padding-right:calc((100vw - var(--item))/2)}
 .model{scroll-snap-align:center;scroll-margin-left:0;scroll-margin-right:0}
 .model .model-link{transform:scale(.72);transform-origin:center bottom;filter:blur(1.8px);opacity:.48;transition:transform .28s var(--ease),filter .28s var(--ease),opacity .28s var(--ease)}
 .model.is-current .model-link{transform:scale(1);filter:none;opacity:1}
 .model .model-meta{opacity:.38;transition:opacity .28s var(--ease)}
 .model.is-current .model-meta{opacity:1}
}

/* Keep the selected work and its actions on the same horizontal center line. */
@media(max-width:760px){
 .mobile-selection{justify-content:center;flex-direction:column;gap:10px;text-align:center;padding-top:12px}
 .mobile-selection strong{max-width:100%}
}
@media(max-width:760px) and (max-height:650px){
 .mobile-selection{gap:4px;padding-top:6px}
 .mobile-selection strong{font-size:14px;line-height:1.3}
}
@media(max-width:760px) and (max-height:650px){.model-meta{height:61px}.mobile-selection{padding-bottom:0}}

/* One shared title and drawing action for the narrow exhibition. */
@media(max-width:760px){
 .shelf .model-meta{display:none}
 .shelf{padding-bottom:20px}
 .mobile-selection{display:flex}
}
@media(max-width:760px) and (max-height:480px) and (orientation:landscape){
 .mobile-selection{flex-direction:row;padding-top:6px;gap:16px}
}

@media(max-width:760px) and (max-height:480px) and (orientation:landscape){header{min-height:64px;padding-top:0}}

/* A balanced action grid, with a quiet optional appreciation action. */
#drawing .pdf-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0}
#drawing .pdf-actions a,#drawing .pdf-actions button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:50px;padding:12px 8px;border:1px solid var(--line,var(--rule));border-radius:4px;font-size:13px;line-height:1.5;text-align:center}
#drawing .pdf-actions #pdf-open{background:var(--ink);color:#fff;border-color:var(--ink)}
#drawing .pdf-appreciate{color:var(--accent);background:#bd523408;border-color:#bd523430}
#drawing .pdf-actions:not(:has(#pdf-share:not([hidden]))) .pdf-appreciate{grid-column:1/-1}
#drawing .pdf-status{font-size:12px;line-height:1.7;color:var(--muted);margin:14px 0 0}
#drawing .pdf-status:empty{display:none}

/* Focus view: a floating model over the softened exhibition. */
#drawing{inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:calc(24px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
#drawing[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;align-items:center;justify-items:center;gap:12px}
#drawing::backdrop{background:rgba(255,255,255,.76);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
#drawing .dialog-top{position:static;align-self:start;justify-content:center;width:100%;margin:0;padding:0 40px;border:0;background:transparent}
#drawing .dialog-top h2{font-size:18px;line-height:44px;text-align:center;font-weight:400}
#drawing .close{position:absolute;top:calc(24px + env(safe-area-inset-top));right:20px;width:44px;height:44px;font:300 30px/1 sans-serif;border:1px solid #33352e18;border-radius:50%;background:#ffffff80}
#drawing #drawing-preview{display:flex;align-items:center;justify-content:center;align-self:stretch;width:100%;height:auto;min-height:0;margin:0}
#drawing #drawing-preview .model-img{width:min(100%,440px);height:min(100%,52dvh);max-height:480px;object-fit:contain;object-position:center;filter:drop-shadow(0 18px 16px #33352e18)}
#drawing>.pdf-help,#drawing #pdf-frame{display:none}
#drawing .pdf-actions{width:min(100%,440px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
#drawing .pdf-actions a,#drawing .pdf-actions button{display:flex;flex-direction:column;justify-content:center;gap:11px;min-height:92px;padding:10px 0;border:0;border-radius:12px;font-size:12px;line-height:1.5;background:transparent;color:var(--ink)}
#drawing .pdf-actions #pdf-open{background:transparent;color:var(--ink);border:0}
#drawing .pdf-actions svg{width:46px;height:46px;padding:12px;box-sizing:content-box;border:1px solid #33352e15;border-radius:50%;background:#ffffffbf;stroke-width:1.5}
#drawing .pdf-actions .pdf-appreciate{grid-column:auto;color:var(--accent)}
#drawing .pdf-actions .pdf-appreciate svg{border-color:#bd523424;background:#bd523409}
#drawing .pdf-actions a:hover svg,#drawing .pdf-actions button:hover svg{background:#fff;transform:translateY(-2px)}
#drawing .pdf-status{max-width:400px;text-align:center;margin:0;font-size:12px}
@media(max-width:480px){#drawing{padding-left:18px;padding-right:18px}#drawing .pdf-actions svg{width:24px;height:24px;padding:14px}}
@media(max-height:500px) and (orientation:landscape){#drawing{padding-top:10px;padding-bottom:12px;gap:4px}#drawing .close{top:10px}#drawing .dialog-top h2{line-height:32px}#drawing .pdf-actions a,#drawing .pdf-actions button{min-height:64px;gap:4px}#drawing .pdf-actions svg{width:22px;height:22px;padding:8px}}

/* Entry scale is separate from the translation-only idle float. */
#drawing .focus-model{display:flex;align-items:center;justify-content:center;max-width:100%;max-height:calc(100% - 20px);transform-origin:center;flex-shrink:1}
#drawing #drawing-preview .focus-model .model-img{width:100%;height:100%;max-height:none;object-fit:contain;transform-origin:center;transition:none;animation:focus-float 1.3s cubic-bezier(.37,0,.63,1) .45s infinite alternate}
@keyframes focus-float{from{transform:translateY(-5px)}to{transform:translateY(5px)}}
@media(prefers-reduced-motion:reduce){#drawing #drawing-preview .focus-model .model-img{animation:none;transform:none}}

#drawing.is-closing::backdrop{animation:focus-backdrop-exit .36s ease-out forwards}
#drawing.is-closing .dialog-top,#drawing.is-closing .pdf-actions,#drawing.is-closing .pdf-status{animation:focus-controls-exit .22s ease-out forwards;pointer-events:none}
@keyframes focus-backdrop-exit{from{background:rgba(255,255,255,.76);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}to{background:rgba(255,255,255,0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0)}}
@keyframes focus-controls-exit{to{opacity:0;transform:translateY(6px)}}

/* Filing information remains readable on every viewport. */
footer{flex-wrap:wrap;row-gap:3px}
footer>.icp-link{display:block;flex:0 0 100%;order:10;min-height:18px;text-align:center;font-size:10px;line-height:18px;letter-spacing:0;color:#96988f}
footer>.icp-link:hover{color:var(--accent)}
@media(max-width:760px){footer{row-gap:0}footer>.icp-link{padding:0;font-size:9px;line-height:18px}}

.position{min-width:78px;letter-spacing:.3px;font-size:10px}
@media(max-width:760px){.position{min-width:74px;font-size:10px}}

/* Preserve the same image alignment at both ends of the return path. */
#drawing #drawing-preview .focus-model .model-img{object-position:center bottom}
#drawing .focus-model{will-change:transform}
#drawing.is-closing::backdrop{animation-name:focus-backdrop-fade}
@keyframes focus-backdrop-fade{from{opacity:1}to{opacity:0}}

.news-article h4{font-size:15px;font-weight:500;line-height:1.8;margin:28px 0 14px;color:var(--ink)}
#news-body p{white-space:pre-line}
.news-article .news-filing{font-size:11px;color:var(--muted);margin:22px 0 0;text-align:right}

/* Quiet editorial notice, with a fixed toolbar and its own reading area. */
#news{width:min(980px,94vw);max-height:88dvh;padding:0;border:1px solid #e8e9e3;border-radius:12px;overflow:hidden}
#news[open]{display:flex;flex-direction:column}
#news>.dialog-top{position:static;flex-shrink:0;margin:0;padding:16px 24px;border-bottom:1px solid #e9eae4;background:#fff}
#news>.dialog-top h2{font-family:inherit;font-size:14px;letter-spacing:2px;color:#7c8074}
#news .close{min-width:44px;min-height:44px;font-size:26px}
#news .news-layout{display:grid;grid-template-columns:140px minmax(0,1fr);gap:30px;overflow:auto;min-height:0;padding:32px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d6d8cf transparent}
#news .news-images{border:0;padding:4px 0 0;align-self:start}
#news #notices img{width:100%;height:auto;max-height:180px;margin:0;object-fit:contain}
#news .news-article{min-width:0;padding:0 2px 0 30px;border-left:1px solid #eceee7}
#news .news-article h3{font-size:26px;line-height:1.6;font-weight:400;letter-spacing:.4px;margin:0 0 28px;color:var(--ink);text-wrap:pretty}
#news .news-article h4{font-family:inherit;font-size:14px;font-weight:600;line-height:1.8;margin:30px 0 12px;border-left:2px solid var(--accent);padding-left:10px;letter-spacing:.3px}
#news .news-article p{font-size:14px;line-height:1.95;margin:0 0 16px;color:#63665d;overflow-wrap:anywhere}
#news #news-body>p:first-child{color:#363a30;margin-bottom:18px}
#news .news-article .news-contacts{padding:14px 18px;background:#f7f8f4;border:1px solid #eceee5;border-radius:6px;line-height:2.1;color:#464c3d;letter-spacing:.5px}
#news .news-signature{padding-top:20px;border-top:1px solid #eceee7;margin-top:30px;display:flex;flex-direction:column-reverse;gap:5px;text-align:right;font-size:12px;color:#909486}
#news .news-signature p{margin:0;font-size:13px;line-height:1.6;color:#616757}
#news .news-article .news-filing{margin:16px 0 0;font-size:10px;line-height:1.6;color:#999d91;text-align:right}
/* Compact catalog thumbnails, distinct from the main exhibition. */
#catalog .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 18px}
#catalog .catalog-card .model-img{width:100%;height:90px;filter:drop-shadow(1px 2px 2px #393d2712)}
#catalog .catalog-card button{width:100%;padding:8px 2px}
#catalog .catalog-card p{font-size:12px;line-height:1.6;margin:10px 0 3px;overflow-wrap:anywhere}
#catalog .catalog-card span{font-size:10px;line-height:24px;min-height:24px;color:#969b8d}
@media(max-width:760px){
 #news{width:100%;max-width:100%;max-height:92dvh;height:92dvh;border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0}
 #news>.dialog-top{padding:10px 18px}
 #news .news-layout{display:flex;flex-direction:column;gap:24px;padding:26px 24px calc(30px + env(safe-area-inset-bottom))}
 #news .news-article{padding:0;border:0;order:-1;flex-shrink:0}
 #news .news-article h3{font-size:23px;line-height:1.65;margin-bottom:24px}
 #news .news-article h4{font-size:14px;margin-top:28px}
 #news .news-article p{font-size:14px;line-height:1.95;margin-bottom:16px}
 #news .news-images{width:100%;padding:20px 0 0;border-top:1px solid #eceee7;display:flex;justify-content:center}
 #news #notices img{width:auto;max-width:100%;height:90px;margin:0}
 #catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px;margin-top:24px}
 #catalog .catalog-card .model-img{height:86px}
 #catalog .catalog-card p{font-size:12px;margin-top:8px}
 #catalog .catalog-card span{font-size:10px;min-height:26px;line-height:26px}
}
@media(max-width:359px){#catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}#news .news-layout{padding-left:20px;padding-right:20px}#news .news-article h3{font-size:21px}}

