/* 独立展厅沿用正式画屏，所有布局覆盖仅作用于本页。 */
.palace-exhibition-page { --palace-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif; }
.palace-exhibition-page .palace-exhibition { padding: 30px 24px 26px; background-color: #111731; }
.exhibition-wrap { max-width: 1180px; min-width: 0; margin: auto; }
.exhibition-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 8px; }
.exhibition-heading > div { min-width: 0; }
.exhibition-heading h2 { margin: 6px 0 12px; color: #f5e9c8; font: 600 clamp(26px, 3vw, 36px)/1.5 var(--palace-serif); }
.exhibition-heading > p { flex-shrink: 0; margin: 0; color: var(--palace-muted); font: 14px/1.9 var(--palace-serif); }
.exhibition-backdrop { background: radial-gradient(ellipse at 50% 10%, #46537255, transparent 65%); }
.exhibition-backdrop::after { content: ""; position: absolute; inset: 58% 0 0; opacity: .22; background-image: linear-gradient(#d4b35e55 1px, transparent 1px), linear-gradient(90deg, #d4b35e55 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(transparent, #000); }
.exhibition-clouds { width: 100%; height: 100%; color: #d4b35e; opacity: .14; }
.palace-exhibition .palace-gallery.has-cards .palace-stage { height: clamp(390px, 37vw, 455px); overflow: clip; }
.palace-exhibition .palace-gallery.has-cards .palace-card { width: clamp(245px, 25vw, 310px); }
.palace-exhibition .palace-selection { grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); gap: 24px; padding-top: 16px; }
.palace-exhibition .palace-current h3 { font-size: clamp(20px, 2vw, 26px); }
.palace-exhibition .palace-selection-actions :is(button, .palace-play-reserve) { min-height: 48px; }
.palace-exhibition .palace-navigation { margin-top: 18px; }
.palace-exhibition .exhibition-direct-links { margin-top: 12px; font-size: 12px; color: var(--palace-gold); }
.exhibition-direct-links summary { width: fit-content; min-height: 44px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.palace-exhibition .exhibition-stage-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.exhibition-reading { padding: 28px 24px; background: #f6f0dc; color: #363041; border-bottom: 1px solid #d4b35e66; }
.exhibition-reading > .exhibition-wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.exhibition-reading p { margin: 0 0 8px; font-size: 12px; color: #826a62; }
.exhibition-reading h2 { margin: 0; font: 600 clamp(22px, 2.2vw, 28px)/1.5 "SimSun", serif; }
.exhibition-reading nav { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.exhibition-reading a { display: flex; justify-content: space-between; gap: 28px; min-height: 44px; align-items: center; border-bottom: 1px solid #bca56c66; color: inherit; text-decoration: none; }
.exhibition-reading a:focus-visible { outline: 2px solid #826a35; outline-offset: 4px; }
.exhibition-reading a:hover { color: #96465c; }

/* 导览、身份与馆藏为本页专有内容；首页画屏保持原样。 */
.palace-exhibition-page [hidden] { display: none !important; }
.exhibition-foyer { padding: 40px 24px; color: #f5e9c8; background: #111731; }
.exhibition-foyer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .75fr); gap: 60px; align-items: center; }
.exhibition-foyer h1 { margin: 0; font: 600 clamp(36px, 4vw, 48px)/1.35 var(--palace-serif); }
.exhibition-lead { margin: 16px 0 20px; color: #c9c5ce; font-size: 15px; line-height: 1.9; }
.exhibition-entrance-link { display: inline-flex; align-items: center; gap: 32px; min-height: 44px; border-bottom: 1px solid #d2b97888; color: #f5e9c8; text-decoration: none; }
.exhibition-index { padding-left: 28px; border-left: 1px solid #d2b97855; }
.exhibition-index h2 { margin: 0 0 8px; font: 600 18px/1.5 var(--palace-serif); color: #f5e9c8; }
.exhibition-index nav { display: flex; flex-direction: column; }
.exhibition-index a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: #f5e9c8; text-decoration: none; border-bottom: 1px solid #d2b97833; }
.exhibition-index a:hover { color: #e2c787; }
.exhibition-index a span, .exhibition-index > p { color: #c9c5ce; font-size: 12px; }
.exhibition-index > p { margin: 14px 0 0; }
.exhibition-route { position: sticky; top: 0; z-index: 15; padding: 8px 24px; border-block: 1px solid #d2b97840; background: #151d36; color: #d4cbb5; }
.exhibition-route > div { display: flex; gap: 16px 32px; flex-wrap: wrap; }
.exhibition-route a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 13px; color: inherit; }
.exhibition-route a[aria-current=location] { color: #f1d58f; box-shadow: inset 0 -2px #d2b978; }
.exhibition-route a:hover { color: #fff0c7; }
.exhibition-room { padding: 56px 24px; color: #252b43; background: #f7f2e7; border-bottom: 1px solid #ddd0b5; }
.palace-exhibition-page :is(.exhibition-room, .palace-exhibition) { scroll-margin-top: 76px; }
.exhibition-room-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.exhibition-room-heading > div { min-width: 0; }
.exhibition-room-heading h2 { margin: 0 0 12px; font: 600 clamp(26px, 2.9vw, 38px)/1.4 var(--palace-serif); }
.exhibition-room-heading p:last-child { margin-bottom: 0; max-width: 46em; color: #68616d; font-size: 14px; line-height: 1.85; }
.exhibition-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; color: #932840; font-size: 13px; text-decoration: none; border-bottom: 1px solid #b5a07188; }
.exhibition-identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.exhibition-identity-pair { min-width: 0; padding: 22px; border: 1px solid #d5c3a0; border-radius: 12px; background: #fffdf7; }
.exhibition-identity-pair > header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.exhibition-identity-pair > header > span { display: grid; place-items: center; width: 42px; height: 48px; border: 1px solid #b69757; border-radius: 22px 22px 4px 4px; color: #9f2945; font: 22px var(--palace-serif); }
.exhibition-identity-pair header p { margin: 0 0 4px; color: #826b49; font-size: 11px; }
.exhibition-identity-pair h3 { margin: 0; font: 600 22px/1.5 var(--palace-serif); }
.exhibition-identity-panels { display: flex; justify-content: center; gap: 18px; }
.exhibition-identity-panels figure { flex: 1 1 0; min-width: 0; max-width: 50%; margin: 0; }
.exhibition-study-cover { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #ded0b5; border-radius: 8px; background: #f5eddc; text-decoration: none; }
.exhibition-study-cover img { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: contain; }
.exhibition-identity-panels figcaption { padding-top: 12px; font-size: 12px; }
.exhibition-identity-panels figcaption > span { display: block; color: #932840; margin-bottom: 4px; }
.exhibition-identity-panels figcaption strong { display: block; color: #252b43; font-weight: 500; }
.exhibition-identity-panels figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: #8a7042; text-underline-offset: 4px; }
.exhibition-identity-help { max-width: 42em; color: #68616d; font-size: 13px; }
.exhibition-identity-help summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
.exhibition-identity-help p { margin-top: 4px; }
.exhibition-pair-note { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid #ddd0b5; font-size: 11px; line-height: 1.8; color: #766b70; }
.exhibition-study-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.exhibition-study-controls button { min-height: 44px; padding: 8px 14px; border: 1px solid #b7a071; border-radius: 24px; color: #6e583d; background: #fffdf7; cursor: pointer; font-size: 12px; }
.exhibition-study-controls button[aria-pressed=true] { color: #fff8e9; background: #28334e; border-color: #28334e; }
.exhibition-motion { color: #f5e9c8; background: radial-gradient(ellipse at 20% 0, #46537233, transparent 60%), #17203b; border-color: #c1a26744; }
.exhibition-motion .exhibition-text-link { color: #d2b978; }
.exhibition-motion .exhibition-room-heading p:last-child { color: #c9c5ce; }
.exhibition-motion-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.exhibition-motion-piece { min-width: 0; background: #fffaf1; border-color: #c9b780; box-shadow: none; }
.exhibition-motion-piece figcaption { display: flex; flex-direction: column; align-items: stretch; padding: 14px 12px; gap: 10px; }
.exhibition-motion-piece figcaption > span { font-size: 12px; text-align: center; }
.exhibition-motion-piece .fan-play { border-radius: 22px; font-size: 12px; min-height: 44px; }
.exhibition-motion-piece .exhibition-piece-link { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 44px; font-size: 11px; }
.exhibition-catalogue-count { padding: 8px 12px; color: #8a7042; font-size: 12px; border: 1px solid #cab78d; border-radius: 24px; white-space: nowrap; }
.exhibition-catalogue-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.exhibition-catalogue-filters a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 8px 16px; border: 1px solid #cbb98f; border-radius: 24px; background: #fffdf7; font-size: 13px; color: #625565; text-decoration: none; }
.exhibition-catalogue-filters a span { font-size: 11px; opacity: .8; }
.exhibition-catalogue-filters a[aria-current] { color: #fffaf1; background: #972c46; border-color: #972c46; }
.exhibition-cabinet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.exhibition-cabinet { min-width: 0; border: 1px solid #d5c3a0; border-radius: 12px; background: #fffdf7; }
.exhibition-cabinet > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; color: #8a7042; font-size: 11px; }
.exhibition-cabinet > header p { margin: 0; }
.exhibition-cabinet > header > span { white-space: nowrap; }
.exhibition-cabinet-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0 12px; }
.exhibition-cabinet-previews > a { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border: 1px solid #d5c3a055; border-radius: 6px; background: #f5eddc; text-decoration: none; }
.exhibition-cabinet-previews img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.exhibition-cabinet-copy { padding: 20px; }
.exhibition-cabinet-copy h3 { margin: 0 0 10px; font: 600 22px/1.5 var(--palace-serif); }
.exhibition-cabinet-copy h3 a { text-decoration: none; }
.exhibition-cabinet-copy > p { font-size: 13px; color: #68616d; line-height: 1.85; }
.exhibition-cabinet-identity { display: flex; gap: 6px 14px; flex-wrap: wrap; padding-block: 10px; border-block: 1px solid #ddd0b577; }
.exhibition-cabinet-copy .exhibition-credit { font-size: 11px; }
.palace-exhibition-page [data-exhibition-fallback] { padding: 12px; text-align: center; font-size: 12px; line-height: 1.8; color: #786a70; }
.exhibition-cabinet-previews [data-exhibition-fallback] { padding: 6px; font-size: 10px; }
.exhibition-arrivals { background: #f0e8d8; }
.exhibition-weekly-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.exhibition-weekly-card { min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 240px; }
.exhibition-weekly-card .work-card { height: 100%; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0; box-shadow: none; }
.exhibition-weekly-card .card-visual { min-height: 160px; height: 100%; aspect-ratio: auto; border-radius: 0; background: #f7f2e7; }
.exhibition-weekly-card .card-visual img { object-fit: contain; }
.exhibition-weekly-card .card-body { padding: 16px 14px; }
.exhibition-weekly-card .meta { font-size: 10px; letter-spacing: normal; }
.exhibition-weekly-card h3 { font-size: 18px; line-height: 1.5; margin-block: 6px; }
.exhibition-weekly-card .card-summary { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exhibition-weekly-card .card-reading-tags { display: none; }
.exhibition-weekly-card .card-foot { margin-top: 10px; padding-top: 10px; font-size: 11px; flex-wrap: wrap; gap: 6px; }
.exhibition-weekly-card .card-foot a { min-height: 44px; display: inline-flex; align-items: center; }
.exhibition-weekly-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 13px; color: #68616d; }
.exhibition-weekly-controls button { min-height: 44px; padding: 8px 20px; color: #fffaf1; background: #28334e; border: 1px solid #28334e; border-radius: 6px; cursor: pointer; }
.exhibition-viewer-open { overflow: hidden; }
.exhibition-viewer { width: min(940px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); padding: 20px; overflow: auto; overscroll-behavior: contain; background: #fffdf7; color: #252b43; border: 1px solid #bca573; border-radius: 10px; }
.exhibition-viewer::backdrop { background: #070d22dd; }
.exhibition-viewer > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.exhibition-viewer h2 { margin: 0; font: 600 22px/1.5 var(--palace-serif); overflow-wrap: anywhere; }
.exhibition-viewer button { min-width: 44px; min-height: 44px; cursor: pointer; }
.exhibition-viewer [data-viewer-close] { font-size: 28px; background: transparent; border: 1px solid #cab78d; border-radius: 6px; color: #252b43; }
.exhibition-viewer-image { height: min(54dvh, 520px); min-height: 180px; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; overflow: hidden; background: #f5efdf; touch-action: pan-y pinch-zoom; }
.exhibition-viewer-image img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; user-select: none; }
.exhibition-viewer-image p { padding: 20px; font-size: 13px; }
.exhibition-viewer-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.exhibition-viewer-navigation p { margin: 0; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.exhibition-viewer-navigation button { border: 1px solid #cab78d; background: #fffdf7; color: #252b43; border-radius: 6px; font-size: 24px; }
.exhibition-viewer-navigation button:disabled { opacity: .4; cursor: default; }
.exhibition-viewer-stage > .fan-play { display: block; margin: 10px auto 0; }
.exhibition-viewer-thumbs { display: flex; overflow-x: auto; gap: 8px; margin-top: 16px; padding: 4px; }
.exhibition-viewer-thumbs button { flex: 0 0 60px; width: 60px; height: 60px; padding: 2px; border: 1px solid #ddd0b5; border-radius: 5px; background: #f7f2e7; color: #252b43; }
.exhibition-viewer-thumbs button[aria-pressed=true] { border-color: #9f2945; box-shadow: 0 0 0 2px #9f2945; }
.exhibition-viewer-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }
.exhibition-viewer > footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #ddd0b5; }
.exhibition-viewer footer p { margin: 0 0 4px; font-size: 12px; color: #68616d; overflow-wrap: anywhere; }
.exhibition-viewer footer a { display: inline-flex; align-items: center; min-height: 44px; color: #932840; }
.exhibition-viewer :is(a, button):focus-visible { outline: 3px solid #b69857; outline-offset: 3px; }
.palace-exhibition-page :is(.exhibition-room, .exhibition-foyer, .exhibition-route) :is(a, button, summary):focus-visible { outline: 3px solid #b69857; outline-offset: 4px; }
.palace-exhibition-page :is(.exhibition-foyer, .exhibition-room) :is(h1, h2, h3, p, a, dt, dd) { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .exhibition-motion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exhibition-cabinet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibition-weekly-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibition-room-heading { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .exhibition-foyer { padding: 36px 18px; }
  .exhibition-foyer-grid { grid-template-columns: 1fr; gap: 28px; }
  .exhibition-foyer h1 { font-size: clamp(32px, 8.5vw, 46px); }
  .exhibition-lead { margin-top: 16px; font-size: 13px; }
  .exhibition-index { padding-left: 18px; }
  .exhibition-route { padding: 8px 18px; }
  .exhibition-route > div { gap: 2px 16px; }
  .exhibition-route a { font-size: 12px; gap: 6px; }
  .palace-exhibition-page :is(.exhibition-room, .palace-exhibition) { scroll-margin-top: 130px; }
  .exhibition-room { padding: 36px 18px; }
  .exhibition-room-heading { gap: 16px; margin-bottom: 22px; }
  .exhibition-room-heading h2 { font-size: 27px; }
  .exhibition-room-heading p:last-child { font-size: 13px; }
  .exhibition-identity-grid, .exhibition-cabinet-grid, .exhibition-weekly-grid { grid-template-columns: 1fr; }
  .exhibition-weekly-controls { flex-wrap: wrap; }
  .exhibition-viewer { padding: 14px; }
  .exhibition-viewer h2 { font-size: 18px; }
  .exhibition-identity-pair { padding: 16px; }
  .exhibition-identity-pair h3 { font-size: 20px; }
  .exhibition-identity-panels { gap: 12px; }
  .exhibition-identity-panels figcaption { font-size: 11px; }
  .exhibition-motion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .exhibition-study-controls { width: 100%; }
  .exhibition-study-controls button { flex: 1 1 auto; padding-inline: 10px; }
  .palace-exhibition-page .palace-exhibition { padding: 26px 18px 24px; }
  .exhibition-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .exhibition-heading > p { font-size: 12px; }
  .exhibition-heading > p br { display: none; }
  .palace-exhibition .palace-gallery.has-cards .palace-stage { height: 330px; }
  .palace-exhibition .palace-gallery.has-cards .palace-card { width: 236px; }
  .palace-exhibition .palace-selection { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .palace-exhibition .palace-navigation { grid-template-columns: minmax(0, 1fr) auto; }
  .palace-exhibition .palace-navigation > p:first-child { grid-column: 1 / -1; }
  .palace-exhibition .palace-picker { justify-content: flex-start; }
  .exhibition-reading { padding: 24px 18px; }
  .exhibition-reading > .exhibition-wrap { flex-direction: column; align-items: stretch; gap: 16px; }
  .exhibition-reading nav { gap: 12px; }
  .exhibition-reading a { flex: 1 1 auto; gap: 10px; font-size: 13px; }
}
