/* DESIGN.md 的网页实现：内容优先，控制层使用克制的半透明材质。 */
.view-prompt{margin-bottom:-5px}
:root{--ink:#1d1d1f;--paper:#f5f5f7;--line:rgba(29,29,31,.12);--accent:#161617;--glass:rgba(255,255,255,.88);--surface-shadow:0 8px 32px rgba(0,0,0,.09)}
body{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC",Arial,sans-serif}
button{transition:background .2s,color .2s,box-shadow .2s}
button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.topbar{padding:24px 28px;gap:8px}
.topbar .utility-btn,.topbar .artist-btn,.tour-btn,.icon-btn{height:44px;min-width:44px;border:1px solid rgba(255,255,255,.8);background:var(--glass);-webkit-backdrop-filter:blur(24px) saturate(1.25);backdrop-filter:blur(24px) saturate(1.25);box-shadow:var(--surface-shadow);border-radius:999px;font-size:12px;letter-spacing:0}
.topbar .utility-btn,.topbar .artist-btn{padding:0 18px}
.utility-btn+.artist-btn,.artist-btn+.tour-btn{margin-left:0}
.tour-btn{width:auto;padding:0 18px;min-width:112px}
.tour-btn.active{background:var(--accent);color:white;border-color:transparent}
.icon-btn{width:44px;padding:0}
.topbar button:hover{box-shadow:0 8px 28px rgba(0,0,0,.16)}
.intro{background:rgba(245,245,247,.55);padding:24px}
.intro h1{font-size:clamp(58px,8vw,112px);letter-spacing:.1em;line-height:1.2}
.intro .eyebrow{color:#626267;letter-spacing:.2em}
.subtitle{font-size:20px;letter-spacing:.18em;margin-top:16px}
.enter{border:0;border-radius:999px;background:var(--accent);color:#fff;min-height:52px;padding:0 28px;font-size:15px;letter-spacing:.06em;box-shadow:0 6px 20px rgba(22,22,23,.18)}
.enter:hover{background:#161617;color:#fff}
.tip{font-size:12px;color:#626267;opacity:1;letter-spacing:0}.intro-copyright{opacity:.7}
#tour-status{width:380px;padding:12px 16px;border:1px solid rgba(255,255,255,.8);border-radius:24px;background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);box-shadow:var(--surface-shadow);color:var(--ink);text-shadow:none;grid-template-columns:44px 1fr auto 44px;gap:4px 8px}
#tour-label,#tour-count{font-size:12px;letter-spacing:0;text-shadow:none}#tour-count{color:#626267;font-weight:400}
#tour-status>button:not(#tour-progress){width:44px;height:44px;border:0;background:rgba(0,0,0,.04);box-shadow:none}
#tour-progress{height:16px;padding:0}#tour-progress::before{top:7px;height:1.5px;border-radius:1.5px;background:rgba(0,0,0,.12)}#tour-progress span{top:7px;height:1.5px;border-radius:1.5px;background:var(--accent);box-shadow:none}
.view-prompt{border-radius:24px;border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);box-shadow:var(--surface-shadow);padding:16px 20px}
.view-prompt img{border-radius:10px;object-fit:contain;background:transparent}
.view-prompt button{min-height:44px;border:0;border-radius:999px;background:rgba(0,0,0,.05);font-size:12px;padding:0 16px}
.view-prompt #prompt-yes{background:var(--accent);color:#fff}.view-prompt span{color:#626267}.view-prompt em{opacity:1;color:#626267}
.catalog-panel,.artist-panel{background:var(--paper)}
.catalog-head h2{font-family:inherit;font-weight:600;letter-spacing:-.03em;font-size:clamp(34px,5vw,60px)}
.catalog-head>p:last-child{font-size:14px;color:#626267}
.catalog-grid{gap:18px}.catalog-item{padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff;gap:18px;box-shadow:0 2px 8px rgba(0,0,0,.025)}
.catalog-item:hover{background:#ededee;border-color:rgba(22,22,23,.25)}.catalog-item img{background:#f5f5f7;border-radius:8px}.catalog-item b{font-size:18px}.catalog-item small{font-size:12px;color:#626267}
.catalog-panel>.panel-close,.artist-panel>button{width:44px;height:44px;background:rgba(255,255,255,.94);box-shadow:var(--surface-shadow);border:1px solid var(--line)}
.artist-heading{background:#e8e8ed;color:var(--ink)}.artist-heading .artist-name-en{opacity:1;color:#626267}.artist-copy>p{color:#3a3a3c;font-size:16px;line-height:1.95}.artist-portrait img{border-radius:18px}.artist-portrait figcaption{font-size:12px;color:#626267;letter-spacing:0}
.dialog>div{border-radius:24px;box-shadow:var(--surface-shadow)}.dialog h2{font-family:inherit;font-size:28px;font-weight:600}.dialog li{font-size:14px}.dialog button{min-width:44px;min-height:44px}
.lightbox{background:rgba(18,18,20,.97)}.lightbox>button{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);font-size:28px;display:grid;place-items:center;padding:0}
.lightbox #large-art{background:#fff}
.lightbox figcaption{flex-wrap:wrap;row-gap:6px}.lightbox #large-meta{color:#b9b9be;opacity:1}.lightbox #large-desc{color:#c6c6cb;text-align:left}
.mobile-onboarding{border-radius:20px}.mobile-onboarding button{min-width:44px;min-height:44px;top:4px;right:4px}.mobile-pad button{min-height:44px}.mobile-pad{width:142px;height:94px;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:5px}
@media(max-width:760px){.topbar{padding:12px;gap:6px;flex-wrap:wrap}.museum-logo{width:150px;margin-right:auto}.topbar .utility-btn,.topbar .artist-btn{padding:0;width:44px;font-size:0;margin-left:0}.utility-btn::after,.artist-btn::after{font-size:12px}.tour-btn{min-width:44px;width:44px;padding:0;font-size:0}.tour-btn span{display:none}.fullscreen-btn{display:none}.icon-btn{margin-left:0}.intro h1{font-size:58px}.subtitle{font-size:18px}#tour-status{width:min(340px,calc(100vw - 32px));bottom:124px}body.touring #tour-status{bottom:124px}.view-prompt{bottom:18px;grid-template-columns:48px 1fr auto;padding:14px;gap:10px}.view-prompt img{width:48px;height:48px}.view-prompt button{padding:0 12px}.catalog-grid{grid-template-columns:1fr}.catalog-item{padding:16px}.lightbox figure{width:90vw;max-height:86vh}.lightbox figcaption,.lightbox #large-desc{width:100%}.artist-copy{padding:48px 24px}.site-copyright{white-space:normal;max-width:50vw}}
/* 统一白色卡片材质；深色主操作不变。 */
:root{--glass:rgba(255,255,255,.5);--surface-shadow:0 4px 20px rgba(0,0,0,.04)}
.topbar .utility-btn,.topbar .artist-btn,.tour-btn:not(.active),.icon-btn,#tour-status,.view-prompt,.catalog-item,.art-card,.dialog>div,.catalog-panel>.panel-close,.artist-panel>button{background:var(--glass);-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);border-color:rgba(255,255,255,.45);box-shadow:var(--surface-shadow)}
.topbar button:hover{box-shadow:var(--surface-shadow)}
#tour-status{background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);border-color:rgba(255,255,255,.25);box-shadow:none}
#tour-status>button:not(#tour-progress){background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);box-shadow:none}
.catalog-item:hover{background:rgba(255,255,255,.62);border-color:rgba(22,22,23,.2)}
.catalog-item img{width:90px;height:90px;object-fit:contain;background:transparent}
@media(max-width:760px){.catalog-item img{width:78px;height:78px;background:transparent}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}#loading span{animation:none}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){:root{--glass:#fff}.topbar button,#tour-status,.view-prompt{backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#76767a}.intro{background:#f5f5f7}.tip,.view-prompt span,.catalog-item small{color:#343438}}

/* 作品提示按钮与顶部菜单采用同一 44px 控件规格 */
.view-prompt button{height:44px;min-height:44px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.view-prompt button svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.view-prompt button span{color:inherit;font-size:12px;line-height:1;white-space:nowrap}

/* 导览 pill 与作品 card 共用同一高度规范 */
:root{--tour-dock-height:90px}
#tour-status,.view-prompt{box-sizing:border-box;height:var(--tour-dock-height);min-height:var(--tour-dock-height);max-height:var(--tour-dock-height)}
.view-prompt{margin-bottom:0}
@media(max-width:700px),(pointer:coarse){:root{--tour-dock-height:78px}}

/* 导览切换按钮：尺寸与位置固定，仅用填充、描边和图标色表达状态。 */
#tour-status>button#tour-prev,#tour-status>button#tour-next{transform:none;box-shadow:none;transition:background-color .16s ease,border-color .16s ease}
#tour-status>button#tour-prev .tour-arrow,#tour-status>button#tour-next .tour-arrow{transition:stroke .16s ease}
@media(hover:hover) and (pointer:fine){#tour-status>button#tour-prev:hover,#tour-status>button#tour-next:hover{transform:none;background:rgba(0,0,0,.065);border-color:rgba(0,0,0,.14);box-shadow:none}#tour-status>button#tour-prev:hover .tour-arrow,#tour-status>button#tour-next:hover .tour-arrow{stroke:#1d1d1f}#tour-status>button#tour-prev:hover .tour-arrow-prev{transform:rotate(180deg)}#tour-status>button#tour-next:hover .tour-arrow{transform:none}}
#tour-status>button#tour-prev:active,#tour-status>button#tour-next:active{transform:none;background:rgba(0,0,0,.12);border-color:rgba(0,0,0,.18);box-shadow:none;transition-duration:.06s}
#tour-status>button#tour-prev:focus-visible,#tour-status>button#tour-next:focus-visible{outline:3px solid rgba(0,113,227,.42);outline-offset:2px}
@media(prefers-reduced-motion:reduce){#tour-status>button#tour-prev,#tour-status>button#tour-next,#tour-status>button#tour-prev .tour-arrow,#tour-status>button#tour-next .tour-arrow{transition:none}}

/* 查看大图 / 稍后：悬停保持原位和原尺寸，仅改变表面状态。 */
.view-prompt button:hover{transform:none;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.view-prompt #prompt-yes:hover{background:#333331}
.view-prompt #prompt-no:hover{background:rgba(0,0,0,.09)}
.view-prompt strong{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;font-weight:300}
.view-prompt #prompt-meta{color:rgba(0,0,0,.30)}
#tour-label{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;font-weight:300}
#tour-status .tour-arrow{stroke-width:2.4}

/* 左下角更多展厅入口与展厅切换浮层。 */
.floorplan{left:80px}
.gallery-switcher{position:fixed;z-index:12;left:24px;bottom:24px;opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.16,1,.3,1)}
body.exploring .gallery-switcher{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.more-galleries-btn{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.48);border-radius:50%;background:rgba(255,255,255,.58);-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);color:#242422;box-shadow:0 4px 20px rgba(0,0,0,.05);cursor:pointer;transition:background-color .16s ease,border-color .16s ease}
.more-galleries-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover) and (pointer:fine){.more-galleries-btn:hover{background:rgba(255,255,255,.88);border-color:rgba(0,0,0,.10)}}
.more-galleries-btn:focus-visible{outline:3px solid rgba(0,113,227,.42);outline-offset:2px}
.more-galleries-panel{position:absolute;left:0;bottom:54px;width:310px;box-sizing:border-box;padding:18px;border:1px solid rgba(255,255,255,.62);border-radius:22px;background:rgba(248,248,247,.88);-webkit-backdrop-filter:blur(36px);backdrop-filter:blur(36px);box-shadow:0 18px 55px rgba(0,0,0,.14);opacity:0;visibility:hidden;transform:translateY(8px) scale(.98);transform-origin:0 100%;transition:opacity .2s ease,visibility .2s,transform .28s cubic-bezier(.16,1,.3,1);pointer-events:none}
.gallery-switcher.open .more-galleries-panel{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.more-galleries-panel>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.more-galleries-panel>header small{display:block;color:#777;font-size:8px;letter-spacing:.18em}.more-galleries-panel>header h2{margin:4px 0 0;font-size:20px;font-weight:500}
.more-galleries-panel>header>button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.05);cursor:pointer}.more-galleries-panel>header>button svg{width:15px;height:15px;fill:none;stroke:#333;stroke-width:1.7;stroke-linecap:round}
.gallery-switcher-list{display:grid;gap:5px}.gallery-switcher-list>button{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:12px;background:transparent;color:#222;text-align:left;cursor:pointer}.gallery-switcher-list>button>span{color:#999;font-size:9px;font-variant-numeric:tabular-nums}.gallery-switcher-list>button>div{display:flex;min-width:0;flex-direction:column;gap:3px}.gallery-switcher-list b{font-size:13px;font-weight:500}.gallery-switcher-list small{overflow:hidden;color:#777;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.gallery-switcher-list i{padding:3px 6px;border-radius:8px;background:rgba(0,0,0,.05);color:#777;font-size:8px;font-style:normal}.gallery-switcher-list>button.current{background:#20201e;color:#fff}.gallery-switcher-list>button.current>span,.gallery-switcher-list>button.current small{color:rgba(255,255,255,.58)}.gallery-switcher-list>button.current i{background:rgba(255,255,255,.14);color:#fff}@media(hover:hover) and (pointer:fine){.gallery-switcher-list>button:not(.current):hover{background:rgba(0,0,0,.055)}}
.more-galleries-panel>p{margin:13px 0 0;padding-top:12px;border-top:1px solid rgba(0,0,0,.08);color:#888;font-size:9px;text-align:center}
@media(max-width:700px),(pointer:coarse){.floorplan{left:68px}.gallery-switcher{left:12px;bottom:122px}.more-galleries-panel{width:min(300px,calc(100vw - 24px));bottom:54px}}

/* 地图入口与更多展厅按钮采用同一圆形玻璃控件。 */
.floorplan header{width:44px;height:44px;padding:0;border-radius:50%;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.floorplan header button,.floorplan.collapsed header button{display:grid;width:44px;height:44px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.48);border-radius:50%;background:rgba(255,255,255,.58);-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);color:#242422;box-shadow:0 4px 20px rgba(0,0,0,.05);transform:none;transition:background-color .16s ease,border-color .16s ease}
.floorplan header button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.floorplan.collapsed{width:44px}
.floorplan-stage{width:210px;box-sizing:border-box}
@media(hover:hover) and (pointer:fine){.floorplan header button:hover{background:rgba(255,255,255,.88);border-color:rgba(0,0,0,.10)}}
.floorplan header button:focus-visible{outline:3px solid rgba(0,113,227,.42);outline-offset:2px}
@media(max-width:700px),(pointer:coarse){.floorplan.collapsed{width:44px}.floorplan-stage{width:170px}}

/* 更多展览进入顶部主导航：更多展览 → 艺术家介绍 → 作品目录。 */
.topbar .gallery-switcher{position:relative;z-index:auto;left:auto;bottom:auto;margin-left:auto;opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:none}
.topbar .more-galleries-btn{display:flex;width:auto;height:44px;align-items:center;justify-content:center;padding:0 18px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:var(--glass);-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);box-shadow:var(--surface-shadow);font-size:12px;white-space:nowrap}
.topbar .artist-btn,.topbar .utility-btn{margin-left:0}
.topbar .more-galleries-panel{right:0;left:auto;top:54px;bottom:auto;transform:translateY(-8px) scale(.98);transform-origin:100% 0}
.topbar .gallery-switcher.open .more-galleries-panel{transform:none}
@media(max-width:760px){.topbar .more-galleries-btn{width:44px;padding:0;font-size:0}.topbar .more-galleries-btn::after{content:'展';font-size:11px}.topbar .more-galleries-panel{position:fixed;right:12px;top:68px;width:min(300px,calc(100vw - 24px))}}

/* 顶部文字导航与自动导览整体靠右成组；地图恢复为左下角 MAP 文字入口。 */
.topbar .sound-btn{margin-left:0}
.floorplan{left:24px}
.floorplan header{width:64px;height:44px;border-radius:999px}
.floorplan header button,.floorplan.collapsed header button{display:flex;width:64px;height:44px;align-items:center;justify-content:center;border-radius:999px}
.floorplan header button span{font-size:10px;line-height:1;letter-spacing:.18em}
.floorplan.collapsed{width:64px}
@media(max-width:700px),(pointer:coarse){.floorplan{left:12px}.floorplan.collapsed{width:64px}}

/* 顶部顺序：艺术家介绍 → 作品目录 → 更多展览 → 自动导览。 */
.topbar .artist-btn{margin-left:auto}
.topbar .gallery-switcher{margin-left:0}
.topbar .tour-btn{margin-left:0}

/* 盒子空间平面图：封闭矩形外墙，不填充内部空间。 */
.floorplan .map-walls{fill:none;color:#a9aaab}
