@charset "UTF-8";

/* Museum portal: warm paper, brushed gold, and a separate immersive gallery. */
:root {
  --paper: #faf6ee;
  --ink: #513b28;
  --muted: #978573;
  --line: #e8dece;
  --gold: #ba9457;
  --portal-white: #fffdf8;
  --portal-brown: #735336;
}

body {
  background: radial-gradient(ellipse at 8% 0%, #fffdf6 0, transparent 48%), var(--paper);
  color: var(--ink);
}
.wrap { width: min(1180px, calc(100% - 80px)); }
.site-header { height: 94px; border-color: #eadfcd; }
.brand { gap: 11px; }
.brand strong { font-size: 24px; letter-spacing: 2px; }
.brand small { color: #a68b63; letter-spacing: 2.3px; }
.brand-dot { color: #b18a4b; }
.site-header nav { gap: 34px; color: #87705a; font-size: 13px; }
.site-header nav a { padding-block: 9px; }
.site-header nav a:first-child:after { bottom: 0; background: #b28b4b; }
.site-header nav a span { color: #b18c53; }
.admin-link {
  padding: 9px 15px;
  color: #96754d;
  border: 1px solid #e1d3bd;
  border-radius: 20px;
  background: #fffcf3;
}
.admin-link span { margin-left: 8px; }
.eyebrow { color: #a1875d; }
.button { border-radius: 8px; }
.primary { background: #8c653b; color: #fffaf0; }
.primary:hover { background: #77532e; }
.subtle { color: #82613e; border-color: #dfd0b9; }
.light { background: #eee0bd; color: #57432a; }

.portal-hero { padding-top: 28px; }
.portal-banner {
  min-height: 344px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e4cfa9;
  border-radius: 22px;
  padding: 48px 52px;
  background: #ecd9af url('./portal-banner.svg') center / cover no-repeat;
  box-shadow: 0 12px 32px #a2792b0a;
}
.portal-hero-copy { position: relative; z-index: 1; max-width: 440px; }
.portal-hero-copy .portal-institution { text-align: left; color: #94764d; margin: 17px 0 20px; }
.portal-hero-copy>.button { font-size: 11px; gap: 23px; border-radius: 6px; background: #927040; }
.portal-banner .eyebrow { font-size: 11px; letter-spacing: 2.4px; color: #8e6e37; margin: 0 0 20px; }
.portal-banner h1 {
  margin: 0;
  font: 500 clamp(35px, 3.8vw, 51px)/1.5 var(--serif);
  letter-spacing: 3px;
  color: #5b4023;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px #fff3d8b3;
  white-space: pre-line;
}
.portal-banner h1 span { color: #89612f; }
.hero-banner-note {
  color: #8e754b;
  font-size: 10px;
  letter-spacing: 1.6px;
  position: absolute;
  right: 30px;
  bottom: 31px;
  margin: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-banner-note small { font-size: 6px; letter-spacing: 1.2px; opacity: .7; }
.portal-institution {
  text-align: center;
  color: #a18a6d;
  font-size: 11px;
  letter-spacing: 1.2px;
  line-height: 1.9;
  margin: 17px 0 0;
}
.portal-institution strong { font-weight: 500; color: #806749; }
.portal-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-block: 35px 34px;
}
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #67492f;
  background: transparent;
  text-align: center;
  padding: 8px;
  min-width: 0;
  transition: transform .2s ease;
}
.shortcut:hover { transform: translateY(-3px); }
.shortcut-icon {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid #ebdcc1;
  background: linear-gradient(145deg, #fffdf6 8%, #f0dfb8 100%);
  box-shadow: 0 5px 14px #aa804c0a, inset 0 1px 1px #fff;
  color: #a27a3f;
  margin-bottom: 13px;
}
.shortcut-icon svg { width: 35px; height: 35px; stroke-width: 1.25; }
.shortcut-icon img { width: 48px; height: 48px; object-fit: contain; }
.shortcut strong { font: 500 17px/1.7 var(--serif); letter-spacing: 1.5px; }
.shortcut small { display: block; margin-top: 2px; color: #af9b80; font-size: 10px; letter-spacing: .5px; }
.shortcut:nth-child(2) .shortcut-icon { background: linear-gradient(145deg, #fff8ef, #e9d1a8); color: #9b683e; }
.shortcut:nth-child(3) .shortcut-icon { background: linear-gradient(145deg, #fffaf0, #e8ddc3); color: #8e774c; }
.shortcut:nth-child(4) .shortcut-icon { background: linear-gradient(145deg, #fffbf3, #e6cfad); color: #947044; }

.collection { padding-top: 24px; padding-bottom: 43px; }
.collection-heading { display: flex; margin-bottom: 22px; align-items: center; }
.collection-heading h2 { font-size: 30px; letter-spacing: 3px; color: #65472d; }
.collection-heading h2 span { color: #ba985f; }
.collection-heading .eyebrow { color: #b19974; font-size: 9px; margin-bottom: 5px; letter-spacing: 1.7px; }
.collection-heading>p { color: #a08a70; font-size: 11px; }
.collection-tools { border-color: #e5d8c3; margin-bottom: 24px; padding-bottom: 0; }
.filters { gap: 30px; }
.filters button { color: #a28d73; padding: 10px 0 13px; font-size: 12px; }
.filters button.active { color: #8b622f; border-color: #b28b4f; }
.filters button span { color: #bd9e69; }
.search {
  border: 1px solid #e6dac6;
  border-radius: 20px;
  background: #fffcf6;
  padding: 0 14px;
  height: 35px;
  margin-bottom: 8px;
}
.search svg { color: #b49a73; }
.search input { font-size: 10px; width: 165px; color: #7c6143; }
.search input::placeholder { color: #baa78c; }
.collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.collection-card {
  border: 1px solid #eadfcd;
  border-radius: 17px;
  background: var(--portal-white);
  overflow: hidden;
  box-shadow: 0 4px 12px #9e7a4105;
  transition: box-shadow .2s, transform .2s;
}
.collection-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #92704212; }
.collection-card:focus-visible { outline-color: #b68a47; }
.card-art { height: 240px; background: #eee6d3; }
.card-art>img { object-fit: cover; }
.card-label { top: 13px; left: 13px; color: #8f7049; border-color: #d5c3a57a; background: #fff9eacc; border-radius: 4px; font-size: 9px; padding: 2px 7px; }
.card-arrow { color: #93723f; background: #fffaf1e6; box-shadow: 0 2px 7px #77512a12; }
.collection-card.active .card-art:after { content: "已浏览"; background: #927043; color: #fff7e6; border-radius: 4px; }
.card-body { padding: 16px 18px 19px; }
.card-meta { color: #b29c7d; letter-spacing: .4px; font-size: 9px; margin-bottom: 7px; }
.card-body h3 { font: 500 21px/1.5 var(--serif); color: #67492e; margin: 0 0 9px; letter-spacing: .5px; }
.card-body p { color: #aa9579; font-size: 10px; }
.card-body p span { background: #c9b492; }
.collection-note { color: #b09c81; border-color: #d9c4a0; font-size: 10px; margin-top: 24px; }
.empty-state { color: #ae9676; }

.portal-recommend { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-block: 5px 58px; }
.recommend-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 17px;
  min-height: 190px;
  padding: 29px 34px;
  color: #f6e4bc;
  background: linear-gradient(120deg, #74352e, #984f40);
  border: 1px solid #854137;
  text-align: left;
}
.recommend-card:nth-child(2) { color: #886338; background: linear-gradient(120deg, #eee0c5, #f6ecd8); border-color: #e7d7b6; }
.recommend-card:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid currentColor;
  border-radius: 50%;
  right: -18px;
  bottom: -62px;
  opacity: .17;
  box-shadow: 0 0 0 12px #e8cda60a, 0 0 0 25px #e8cda608;
  z-index: -1;
}
.recommend-card:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 130px;
  right: 32px;
  bottom: -22px;
  border: 1px solid currentColor;
  transform: rotate(20deg);
  opacity: .16;
  z-index: -1;
}
.recommend-card .eyebrow,.recommend-card small,.recommend-kicker { color: inherit; opacity: .66; font-size: 9px; letter-spacing: 2px; margin: 0 0 11px; }
.recommend-card strong,.recommend-card h3,.recommend-card h2 { display: block; font: 500 25px/1.5 var(--serif); letter-spacing: 2px; margin: 0 0 7px; }
.recommend-card p { font-size: 10px; opacity: .72; margin: 0; letter-spacing: .5px; }
.recommend-link { display: inline-flex; align-items: center; gap: 17px; font-size: 9px; margin-top: 16px; opacity: .85; }
.recommend-link svg { width: 14px; height: 14px; }
.recommend-card>svg,.recommend-card .recommend-arrow { position: absolute; right: 26px; top: 29px; width: 20px; height: 20px; opacity: .7; }
.recommend-card:hover { filter: brightness(1.035); }

.about-section { background: #f0e8d8; border-color: #e6dbc6; }
.about-inner { grid-template-columns: 80px 1fr 1.15fr; padding-block: 46px; gap: 36px; }
.about-mark { border-color: #ccb590; color: #b59868; }
.about-inner h2 { color: #83613d; font-size: 28px; }
.about-inner .eyebrow { color: #b39b75; }
.about-copy h3 { color: #8d704b; }
.about-copy>p { color: #a18c70; }
.about-copy .small-muted { color: #b6a48a; }
.about-values { color: #9f855f; }
.about-values span+span { border-color: #d8c7a9; }
.site-footer { min-height: 105px; }
.site-footer>p,.site-footer>a:last-child { color: #b09b7d; }
.footer-brand strong { color: #937146; }
.mobile-nav { display: none; }

/* The gallery opens above the portal and keeps all camera controls together. */
.viewer-page {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #17221c;
  color: #e9dfc6;
  overflow: hidden;
}
.viewer-page.hidden { display: none !important; }
.viewer-page-header {
  flex: 0 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: calc(11px + env(safe-area-inset-top)) 26px 11px;
  background: #17221c;
  border-bottom: 1px solid #ccb58c1f;
}
.viewer-page-header button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 7px 13px; background: #f2e1b40a; border: 1px solid #d8c39824; border-radius: 8px; color: #d5c7a9; font-size: 12px; white-space: nowrap; }
.viewer-page-header button svg { width: 16px; height: 16px; }
.viewer-page-title { flex: 1; min-width: 0; color: #ded2b7; font: 500 17px/1.5 var(--serif); letter-spacing: 1.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-page-title strong { display: block; font: 500 14px/1.6 var(--serif); }
.viewer-page-title>span { display: block; color: #a49f89; font-size: 9px; letter-spacing: .5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
#viewer-back>svg { transform: rotate(180deg); }
.viewer-page .viewer-shell { flex: 1 1 auto; min-height: 0; height: auto; width: 100%; border-radius: 0; }
.viewer-page .exhibit-info { top: 35px; left: 38px; display: block; }
.viewer-page .exhibit-info h2 { color: #e9e0c8; max-width: none; }
.viewer-page .exhibit-tags { max-width: none; }
.viewer-page .viewer-top { left: auto; }
.viewer-page .exhibit-tags span { border-color: #d0be953b; color: #bfb49a; }
.viewer-page .text-button { color: #c8b17e; border-color: #9e89574d; }
.viewer-page .view-modes,.viewer-page .view-actions { border-radius: 10px; }
.viewer-page .view-modes button.active { background: #dfc79b; border-radius: 5px; color: #513e24; }
.viewer-page .exhibit-bottom { flex: 0 0 auto; min-height: 68px; padding: 14px 30px calc(14px + env(safe-area-inset-bottom)); gap: 15px; background: #17221c; border-top: 1px solid #b9a77b19; }
.viewer-page .exhibit-bottom p { color: #9a9e88; }
.viewer-page .social-actions { gap: 27px; }
.viewer-page .social-actions button,.viewer-page .view-count { color: #b6b49f; font-size: 11px; }
.viewer-page .social-actions button.liked { color: #e0a489; }
.viewer-page .social-actions button.liked svg { fill: #d99b7f26; }
.viewer-open { overflow: hidden; }
.viewer-open .mobile-nav { display: none; }

dialog { border-color: #e4d8c3; border-radius: 17px; background: #fffcf5; color: #6e5134; }
dialog::backdrop { background: #30231acc; }
.dialog-close { color: #9e825c; }
.dialog .eyebrow,.dialog-intro,.form-note { color: #ad9571; }
.dialog input:not([type="checkbox"]),.dialog textarea,.dialog select { background: #fffef9; border-color: #e5d7c0; color: #735537; border-radius: 7px; }
.dialog label small { color: #ad997c; }
.dialog .detail-meta { border-color: #e7dac4; }
.detail-meta dt { color: #b09a77; }
#detail-description,.comment-item p { color: #8c7556; }
.comments-heading,.comment-item,.admin-tabs,.admin-row { border-color: #e7dac4; }
.comments-heading span,.comment-item time,.no-comments { color: #b49d7a; }
.admin-stats { background: #f4ead6; border-radius: 10px; }
.admin-stats span,.admin-row p { color: #ae9570; }
.admin-tabs button { color: #ab9270; }
.admin-tabs button.active { color: #8d6536; border-color: #b28a4c; }
.admin-row button { color: #997343; border-color: #ddc9a8; border-radius: 5px; }
.file-field { background: #fbf3e2; border-color: #d9bf91; border-radius: 10px; }
.file-field>svg,.file-field>span { color: #b09566; }
.file-field input { background: #fffdf6 !important; border-color: #e4d2ae !important; }
.form-options input { accent-color: #a37b42; }
.toast { background: #725234f5; border-radius: 10px; }

@media (min-width: 1500px) {
  .portal-banner { min-height: 365px; padding-top: 55px; }
  .card-art { height: 258px; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .site-header nav { gap: 22px; }
  .portal-banner { min-height: 310px; padding: 39px 38px; }
  .portal-banner h1 { font-size: 41px; }
  .hero-banner-note { right: 26px; bottom: 26px; }
  .card-art { height: 210px; }
  .card-body { padding: 14px 15px 17px; }
  .card-body h3 { font-size: 18px; }
  .recommend-card { padding: 26px; min-height: 180px; }
  .recommend-card strong,.recommend-card h3,.recommend-card h2 { font-size: 22px; }
  .about-inner { gap: 25px; grid-template-columns: 62px 1fr 1.15fr; }
  .about-inner h2 { font-size: 24px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { height: 80px; }
  .site-header nav { display: none; }
  .brand strong { font-size: 22px; }
  .brand img { width: 36px; height: 36px; }
  .brand small { font-size: 6px; letter-spacing: 1.7px; }
  .admin-link { font-size: 10px; padding: 7px 11px; }
  .portal-banner { min-height: 285px; padding: 34px; background-position: 58% center; }
  .portal-banner h1 { font-size: 36px; letter-spacing: 2px; }
  .portal-banner .eyebrow { font-size: 9px; margin-bottom: 14px; }
  .hero-banner-note { font-size: 8px; right: 25px; }
  .portal-shortcuts { gap: 10px; padding-block: 27px; }
  .shortcut-icon { width: 66px; height: 66px; border-radius: 21px; margin-bottom: 10px; }
  .shortcut strong { font-size: 15px; letter-spacing: 1px; }
  .shortcut small { font-size: 9px; }
  .collection { padding-top: 16px; padding-bottom: 32px; }
  .collection-heading { margin-bottom: 15px; }
  .collection-heading h2 { font-size: 27px; }
  .collection-heading>p { font-size: 10px; }
  .collection-tools { gap: 13px; }
  .filters { gap: 21px; }
  .filters button { font-size: 11px; }
  .search { max-width: 185px; }
  .search input { width: 125px; font-size: 9px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .card-art { height: 220px; }
  .card-body h3 { font-size: 19px; }
  .portal-recommend { padding-bottom: 35px; gap: 15px; }
  .recommend-card { min-height: 163px; padding: 22px; }
  .recommend-card strong,.recommend-card h3,.recommend-card h2 { font-size: 19px; letter-spacing: 1px; }
  .recommend-card p { font-size: 9px; }
  .recommend-card>svg,.recommend-card .recommend-arrow { right: 17px; top: 20px; width: 15px; }
  .about-inner { grid-template-columns: 1fr 1.2fr; gap: 25px; padding-block: 32px; }
  .about-mark { display: none; }
  .about-inner h2 { font-size: 23px; }
  .about-copy { border: 0; padding-top: 0; }
  .site-footer { flex-wrap: wrap; min-height: 100px; padding-block: 25px; gap: 13px; }
  .site-footer>p { order: 3; flex-basis: 100%; text-align: left; max-width: none; margin: 0; }
  .viewer-page-header { padding-inline: 18px; gap: 14px; }
  .viewer-page .exhibit-info { left: 25px; top: 27px; }
}
@media (max-width: 600px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 32px); }
  .site-header { height: 73px; border-bottom: 0; }
  .brand { gap: 8px; }
  .brand strong { font-size: 21px; letter-spacing: 1.6px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { margin-top: 5px; font-size: 6px; letter-spacing: 1.4px; }
  .admin-link { font-size: 10px; padding: 6px 10px; border-radius: 15px; }
  .admin-link span { margin-left: 4px; }
  .portal-hero { padding-top: 0; }
  .portal-banner { min-height: 236px; border-radius: 16px; padding: 28px 24px; background-position: 59% center; }
  .portal-hero-copy { max-width: 70%; }
  .portal-hero-copy .portal-institution { font-size: 9px; margin: 12px 0 16px; letter-spacing: .1px; }
  .portal-hero-copy>.button { font-size: 10px; padding: 9px 15px; min-height: 36px; gap: 18px; }
  .portal-banner .eyebrow { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 14px; }
  .portal-banner h1 { font-size: 31px; line-height: 1.58; letter-spacing: 1.7px; }
  .hero-banner-note { right: 17px; bottom: 18px; font-size: 7px; letter-spacing: .5px; max-width: 42%; }
  .hero-banner-note small { font-size: 4px; letter-spacing: .5px; }
  .portal-institution { margin-top: 12px; font-size: 9px; letter-spacing: .3px; line-height: 1.8; }
  .portal-shortcuts { gap: 0; padding-block: 21px 23px; }
  .shortcut { padding: 5px 0; }
  .shortcut-icon { width: 58px; height: 58px; border-radius: 18px; margin-bottom: 9px; }
  .shortcut-icon svg { width: 29px; height: 29px; }
  .shortcut-icon img { width: 39px; height: 39px; }
  .shortcut strong { font-size: 13px; letter-spacing: .6px; }
  .shortcut small { font-size: 8px; letter-spacing: 0; margin-top: 0; }
  .collection { padding-top: 12px; padding-bottom: 28px; }
  .collection-heading { align-items: flex-end; gap: 10px; margin-bottom: 14px; }
  .collection-heading h2 { font-size: 24px; letter-spacing: 2px; }
  .collection-heading .eyebrow { font-size: 8px; letter-spacing: 1.4px; margin-bottom: 3px; }
  .collection-heading>p { font-size: 8px; display: block; line-height: 1.8; max-width: 42%; text-align: right; margin: 0 0 3px; }
  .collection-tools { flex-direction: column; align-items: stretch; gap: 9px; border-bottom: 0; margin-bottom: 17px; }
  .filters { gap: 0; justify-content: space-between; border-bottom: 1px solid #e7dcc9; }
  .filters button { padding: 8px 0 10px; font-size: 10px; }
  .filters button span { font-size: 8px; margin-left: 3px; }
  .search { max-width: none; width: 100%; margin: 0; height: 34px; border-radius: 9px; padding: 0 10px; }
  .search input { width: 100%; font-size: 10px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .collection-card { border-radius: 13px; }
  .card-art { height: 175px; }
  .card-label { left: 9px; top: 9px; font-size: 7px; padding: 2px 5px; }
  .card-arrow { width: 24px; height: 24px; right: 9px; bottom: 10px; }
  .card-arrow svg { width: 11px; height: 11px; }
  .card-body { padding: 11px 11px 14px; }
  .card-meta { font-size: 7px; letter-spacing: 0; margin-bottom: 5px; gap: 4px; }
  .card-body h3 { font-size: 15px; line-height: 1.6; letter-spacing: .2px; margin-bottom: 5px; }
  .card-body p { font-size: 8px; gap: 5px; }
  .collection-card.active .card-art:after { left: 9px; bottom: 10px; font-size: 7px; padding: 2px 6px; }
  .collection-note { font-size: 8px; line-height: 1.9; margin-top: 17px; }
  .portal-recommend { gap: 12px; padding-block: 0 30px; }
  .recommend-card { border-radius: 13px; min-height: 150px; padding: 20px 15px; }
  .recommend-card .eyebrow,.recommend-card small,.recommend-kicker { font-size: 7px; letter-spacing: .5px; margin-bottom: 9px; }
  .recommend-card strong,.recommend-card h3,.recommend-card h2 { font-size: 18px; line-height: 1.6; margin-bottom: 6px; letter-spacing: .4px; }
  .recommend-link { font-size: 8px; gap: 9px; margin-top: 13px; }
  .recommend-link svg { width: 11px; height: 11px; }
  .recommend-card p { font-size: 8px; letter-spacing: 0; line-height: 1.8; max-width: 95%; }
  .recommend-card>svg,.recommend-card .recommend-arrow { right: 12px; top: 14px; width: 13px; }
  .recommend-card:after { width: 70px; right: -14px; bottom: -63px; }
  .recommend-card:before { right: -57px; bottom: -92px; }
  .about-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 30px; }
  .about-inner h2 { font-size: 25px; }
  .about-inner .eyebrow { font-size: 8px; margin-bottom: 10px; }
  .about-copy { border-top: 1px solid #decfb4; padding-top: 20px; }
  .about-copy h3 { font-size: 12px; }
  .about-copy>p { font-size: 10px; }
  .about-copy .small-muted { font-size: 8px; }
  .about-values { font-size: 9px; gap: 22px; }
  .about-values span+span { padding-left: 22px; }
  .site-footer { padding-block: 22px; min-height: 94px; }
  .footer-brand strong { font-size: 16px; }
  .footer-brand img { width: 27px; height: 27px; }
  .site-footer>p { font-size: 8px; }
  .site-footer>a:last-child { font-size: 9px; margin-left: auto; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 9px 12px calc(8px + env(safe-area-inset-bottom)); background: #fffaf0f5; border-top: 1px solid #e8dbc5; backdrop-filter: blur(16px); box-shadow: 0 -4px 18px #b08c5105; }
  .mobile-nav a,.mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; background: transparent; color: #b8a286; font-size: 9px; line-height: 1.5; }
  .mobile-nav svg { width: 22px; height: 22px; stroke-width: 1.5; }
  .mobile-nav a.active,.mobile-nav a:first-child,.mobile-nav button.active { color: #aa8044; }
  .mobile-nav a strong,.mobile-nav a small { font: inherit; }
  .toast { bottom: calc(85px + env(safe-area-inset-bottom)); font-size: 11px; padding: 11px 17px; }
  dialog { border-radius: 14px; padding: 32px 23px; }
  .dialog input:not([type="checkbox"]),.dialog textarea,.dialog select { font-size: 14px; }
  .viewer-page { width: 100%; padding: 0; }
  .viewer-page-header { min-height: 60px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; gap: 10px; }
  .viewer-page-header button { min-height: 37px; padding: 7px 10px; font-size: 10px; border-radius: 7px; }
  .viewer-page-header button svg { width: 15px; height: 15px; }
  .viewer-page-title { font-size: 13px; letter-spacing: .5px; }
  .viewer-page-title strong { font-size: 11px; }
  .viewer-page-title>span { font-size: 8px; }
  .viewer-page .viewer-shell { height: auto; min-height: 0; }
  .viewer-page .exhibit-info { left: 20px; top: 23px; width: 180px; }
  .viewer-page .exhibit-info h2 { font-size: 24px; line-height: 1.5; margin: 13px 0 10px; letter-spacing: 1px; }
  .viewer-page .exhibit-info>p { display: none; }
  .viewer-page .exhibit-badge { font-size: 8px; }
  .viewer-page .exhibit-tags span { font-size: 7px; padding: 2px 5px; }
  .viewer-page .text-button { font-size: 9px; margin-top: 17px; gap: 12px; }
  .viewer-page .viewer-top { right: 17px; top: 24px; gap: 0; }
  .viewer-page .viewer-status { display: none; }
  .viewer-page .music-button { font-size: 8px; gap: 5px; }
  .viewer-page .viewer-toolbar { left: 16px; right: 16px; bottom: 43px; display: flex; flex-direction: column; gap: 9px; }
  .viewer-page .view-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding: 4px; }
  .viewer-page .view-modes button { font-size: 9px; min-height: 34px; padding: 6px; gap: 5px; }
  .viewer-page .view-modes svg { width: 14px; height: 14px; }
  .viewer-page .view-actions { padding: 3px 6px; }
  .viewer-page .view-actions button { min-width: 37px; min-height: 32px; }
  .viewer-page #reset-view { display: flex; }
  .viewer-page .viewer-hint { left: 16px; right: 16px; bottom: 14px; gap: 12px; font-size: 7px; letter-spacing: 0; }
  .viewer-page .viewer-hint>span:last-child { display: none; }
  .viewer-page .exhibit-bottom { min-height: 65px; padding: 10px 17px calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; justify-content: space-between; gap: 7px; }
  .viewer-page .exhibit-bottom p { font-size: 8px; flex: 0 0 100%; }
  .viewer-page .social-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .viewer-page .social-actions button,.viewer-page .view-count { font-size: 10px; }
  .viewer-page .social-actions svg { width: 14px; height: 14px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 26px); }
  .portal-banner { padding: 25px 19px; min-height: 221px; }
  .portal-banner h1 { font-size: 28px; }
  .hero-banner-note { right: 15px; font-size: 6px; }
  .shortcut-icon { width: 53px; height: 53px; border-radius: 16px; }
  .shortcut strong { font-size: 12px; }
  .shortcut small { font-size: 7px; }
  .card-art { height: 155px; }
  .card-body { padding-inline: 9px; }
  .card-body h3 { font-size: 14px; }
  .card-meta { font-size: 6px; }
  .recommend-card { padding-inline: 12px; }
  .recommend-card strong,.recommend-card h3,.recommend-card h2 { font-size: 16px; }
  .viewer-page .exhibit-info { width: 155px; }
  .viewer-page .exhibit-info h2 { font-size: 22px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .viewer-page-header { min-height: 48px; padding-block: 5px; }
  .viewer-page .exhibit-info { top: 17px; left: 22px; }
  .viewer-page .exhibit-info h2 { font-size: 21px; margin: 7px 0; }
  .viewer-page .exhibit-info>p,.viewer-page .exhibit-tags { display: none; }
  .viewer-page .text-button { margin-top: 9px; }
  .viewer-page .viewer-top { top: 19px; }
  .viewer-page .viewer-toolbar { bottom: 22px; flex-direction: row; }
  .viewer-page .view-modes { width: auto; display: flex; }
  .viewer-page .viewer-hint { display: none; }
  .viewer-page .exhibit-bottom { min-height: 40px; padding-block: 5px; flex-wrap: nowrap; }
  .viewer-page .exhibit-bottom p { flex: initial; }
  .viewer-page .social-actions { width: auto; gap: 20px; }
}.viewer-page #viewer-back svg{transform:rotate(180deg)}
.viewer-page .exhibit-info h2 br{display:block}

/* v1.2: minimal exhibit name, narration icon, Microsoft font preference. */
:root{--sans:"Microsoft YaHei","微软雅黑","PingFang SC",sans-serif;--serif:var(--sans)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.viewer-page .exhibit-info{display:block;width:min(300px,45%);pointer-events:none}
.viewer-page .exhibit-info h2{margin:0;max-width:none;font-family:var(--sans);font-weight:400}
.viewer-page .music-button{width:40px;height:40px;display:flex;justify-content:center;border:1px solid #c8b17e44;border-radius:50%;background:#172a26a0}
.viewer-page .music-button svg{width:18px;height:18px}
.viewer-page .viewer-hint{justify-content:center}
@media(max-width:600px){.viewer-page .exhibit-info{width:65%;top:24px}.viewer-page .exhibit-info h2{font-size:23px;line-height:1.6;margin:0}.viewer-page .social-actions{gap:8px}.viewer-page .social-actions button{font-size:9px}}

/* Simplified typography and content */
.about-inner{grid-template-columns:80px 1fr 1.15fr}.portal-banner{min-height:340px}.portal-hero-copy{padding-top:8px}.viewer-page .exhibit-bottom{justify-content:flex-end}.viewer-page .social-actions{width:auto}.site-header{justify-content:space-between}.collection-card.active .card-art:after{display:none}@media(max-width:760px){.about-inner{grid-template-columns:1fr 1fr}}@media(max-width:600px){.about-inner{grid-template-columns:1fr}.portal-banner{min-height:250px}.shortcut-icon{margin-bottom:12px}.viewer-page .social-actions{width:100%}.viewer-page .exhibit-info{width:68%}}
.portal-hero-copy .portal-institution{font-size:15px;line-height:1.8}@media(max-width:600px){.portal-hero-copy .portal-institution{font-size:12px}}

/* Text-only danmaku input and pointer-transparent display. */
.danmaku-layer{position:absolute;left:0;right:0;top:150px;height:40%;min-height:60px;overflow:hidden;pointer-events:none;z-index:3}
.danmaku-layer[hidden]{display:none}.danmaku-line{position:absolute;left:100%;white-space:nowrap;font:18px/36px var(--sans);color:#fff5dc;text-shadow:0 1px 3px #000,1px 0 2px #000;will-change:transform;animation:danmaku-scroll linear forwards;pointer-events:none}
.danmaku-line.own{color:#f4d692;border-bottom:1px solid #dbc48c99}
@keyframes danmaku-scroll{from{transform:translateX(0)}to{transform:translateX(var(--travel))}}
.viewer-page .exhibit-bottom{gap:20px;justify-content:space-between}.danmaku-form{display:flex;align-items:center;flex:1;max-width:540px;gap:8px;margin:0}.danmaku-form input{width:100%;min-width:0;flex:1;border:1px solid #c5b88844;border-radius:22px;background:#26372d;color:#f3e8ca;padding:10px 15px;outline-offset:1px;font:14px var(--sans)}
.danmaku-form input::placeholder{color:#adb19b}.danmaku-form button{padding:9px 17px;border-radius:18px;background:#d9c299;color:#302b20;white-space:nowrap;font:14px var(--sans)}.viewer-page .social-actions{white-space:nowrap}
@media(max-width:600px){.viewer-page .exhibit-bottom{flex-wrap:wrap;gap:8px;padding-top:10px;min-height:105px}.danmaku-form{flex-basis:100%;max-width:none}.danmaku-form input{padding:9px 13px;font-size:16px}.danmaku-form button{font-size:14px}.viewer-page .social-actions{width:100%;justify-content:space-between}.danmaku-layer{top:135px;height:35%}.danmaku-line{font-size:16px}}
@media(max-height:520px) and (orientation:landscape){.danmaku-layer{top:60px;height:45%}.viewer-page .exhibit-bottom{flex-wrap:nowrap;min-height:50px}.danmaku-form input{padding:6px 12px}.danmaku-form button{padding:6px 12px}}

/* A quiet status card leaves the centre clear for the particle assembly. */
.loading-overlay{justify-content:flex-end;padding:0 24px 120px;background:transparent;transition:opacity .45s ease!important;visibility:visible;gap:0}
.loading-overlay.done{opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s .45s!important}
.loading-card{width:min(280px,80%);padding:14px 18px 16px;border:1px solid #cbb28433;border-radius:12px;background:#12251fbd;box-shadow:0 8px 24px #0b1a1522;backdrop-filter:blur(12px);transform:translateY(0);transition:transform .45s ease!important}
.loading-overlay.done .loading-card{transform:translateY(12px)}
.loading-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#e5d6b4;margin-bottom:11px}
.loading-overlay #load-label{font-size:13px;letter-spacing:1px;line-height:1.6}
.loading-overlay #load-percent{font:12px/1.6 var(--sans);color:#b7b99f;letter-spacing:0;font-variant-numeric:tabular-nums}
.load-progress{height:2px;overflow:hidden;border-radius:5px;background:#b7b99f26}
.load-progress>span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#8f784b,#e9d2a4);transform:scaleX(0);transform-origin:left center;box-shadow:0 0 9px #d9b87988}
.viewer-shell .viewer-toolbar{transition:opacity .45s ease!important}
.viewer-shell.is-loading .viewer-toolbar{opacity:0;pointer-events:none}
.viewer-shell.is-loading .viewer-toolbar button{pointer-events:none}
.viewer-shell.is-loading #danmaku-layer{opacity:0}
@media(max-width:600px){.loading-overlay{padding-bottom:165px}.loading-card{width:240px;padding:12px 15px 14px}.loading-overlay #load-label{font-size:12px}}
@media(max-height:520px) and (orientation:landscape){.loading-overlay{padding-bottom:75px}.loading-card{width:240px;padding:9px 13px}.loading-heading{margin-bottom:7px}}
