/* 仅作用于独立画廊；首页精选照片带沿用 gallery.css。 */
.album-page { background: #f5f0fa; }
.album-page .album-main { max-width: none; padding: 0; }
.exhibition-hero { position: relative; overflow: clip; padding: 136px var(--pad) 80px; background: radial-gradient(ellipse at 75% 36%, #e0d3f3 0, transparent 57%), linear-gradient(180deg, #f7f3fc, #f0e8f8); }
.exhibition-hero::after { position: absolute; inset: auto 0 0; height: 86px; background: linear-gradient(transparent, #f5f0fa); content: ""; pointer-events: none; }
.exhibition-hero-inner { position: relative; display: grid; grid-template-columns: .75fr 1.8fr; align-items: center; gap: 38px; max-width: 1420px; margin: auto; }
.exhibition-copy { position: relative; z-index: 3; padding-bottom: 22px; }
.exhibition-context { margin: 0 0 28px; color: #705c81; font-size: 14px; }
.album-page .exhibition-copy h1 { margin: 0 0 26px; color: #342344; font-family: var(--display); font-size: var(--hero-title-size); font-weight: 400; line-height: 1.3; letter-spacing: 0; }
.exhibition-copy h1 span { display: block; }
.album-page .album-intro { margin: 0; color: #6f597d; font-size: var(--lead-size); line-height: 1.9; }
.exhibition-entry { display: flex; align-items: center; gap: 26px; margin-top: 35px; }
.exhibit-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-height: 54px; padding: 12px 23px; border: 1px solid #8767af; border-radius: 999px; color: #fff; background: #74529a; box-shadow: 0 10px 25px #74529a24; text-decoration: none; font-size: var(--button-size); transition: background .2s, box-shadow .2s; }
.exhibit-cta:hover { background: #654284; box-shadow: 0 14px 30px #74529a38; }
.exhibit-cta > span:last-child { font-size: 24px; }
.exhibit-wall-link { color: #69517f; font-size: 14px; text-decoration: none; white-space: nowrap; }
.exhibit-wall-link span { margin-left: 10px; }
.exhibition-note { margin: 26px 0 0; color: #705c81; font-size: 12px; }
.exhibit-scene { --scene-x: 0deg; --scene-y: 0deg; position: relative; height: clamp(440px, 43vw, 600px); transform-style: preserve-3d; transform: perspective(1400px) rotateX(calc(2deg + var(--scene-y))) rotateY(calc(-3deg + var(--scene-x))); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.exhibit-orbit { position: absolute; inset: 7% 0 4% 5%; border: 1px solid #bda4db45; border-radius: 50%; transform: rotate(-14deg); pointer-events: none; }
.exhibit-orbit::after { position: absolute; inset: 30px -22px; border: 1px solid #c9b6df38; border-radius: 50%; content: ""; }
.exhibit-frame { --photo-turn: 0deg; --photo-depth: 0px; --frame-delay: 0ms; position: absolute; display: block; padding: 6px 6px 0; border: 1px solid #ffffffd9; border-radius: 5px; background: #fff; box-shadow: 0 28px 48px #62418126, 0 2px 5px #57347d1a; text-decoration: none; transform: translateZ(var(--photo-depth)) rotate(var(--photo-turn)); transition: box-shadow .25s; animation: exhibit-unfold 1s cubic-bezier(.2, .8, .2, 1) var(--frame-delay) both; }
.exhibit-frame img { display: block; width: 100%; height: auto; border-radius: 2px; }
.exhibit-frame > span { display: block; padding: 6px 4px 7px; color: #80668c; font-size: 10px; line-height: 1.4; }
.exhibit-frame:hover, .exhibit-frame:focus-visible { z-index: 8; box-shadow: 0 36px 70px #54366a38, 0 0 0 2px #ab86cb; }
.exhibit-frame--main { --photo-turn: -7deg; --photo-depth: 44px; z-index: 2; width: 65%; left: 19%; top: 16%; }
.exhibit-frame--group { --photo-turn: 5deg; --photo-depth: 76px; --frame-delay: 100ms; z-index: 4; width: 49%; left: 16%; top: 56%; }
.exhibit-frame--portrait { --photo-turn: -11deg; --photo-depth: 12px; --frame-delay: 160ms; z-index: 1; width: 20%; left: 0; top: 8%; }
.exhibit-frame--collaboration { --photo-turn: 8deg; --photo-depth: 55px; --frame-delay: 240ms; z-index: 3; width: 21%; left: 79%; top: 44%; }
.exhibit-frame--demo { --photo-turn: 7deg; --photo-depth: 20px; --frame-delay: 200ms; z-index: 1; width: 29%; left: 70%; top: 0; }
@keyframes exhibit-unfold { from { opacity: 0; transform: translate3d(0, 32px, -180px) rotate(0) scale(.78); } to { opacity: 1; transform: translateZ(var(--photo-depth)) rotate(var(--photo-turn)); } }
.exhibition-collection { max-width: 1560px; margin: auto; padding: 36px var(--pad) 0; scroll-margin-top: 112px; }
.collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 0 0 22px; }
.collection-heading h2 { margin: 0; color: #4b365b; font-size: var(--card-title-size); font-family: var(--display); font-weight: 400; }
.collection-heading > p { margin: 0; color: #705c81; font-size: 13px; }
.gallery-toolbar { position: sticky; top: 80px; z-index: 30; padding-top: 10px; background: #f5f0faf2; backdrop-filter: blur(18px); }
.album-page .gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 16px; border-top: 1px solid #dcd0e7; border-bottom: 0; }
.album-page .gallery-filters[hidden] { display: none; }
.album-page .gallery-filters button { gap: 9px; min-height: 43px; padding: 8px 15px; border-color: transparent; border-radius: 999px; background: transparent; color: #705c81; font-size: var(--button-size); font-weight: 400; transition: background .2s, color .2s; }
.album-page .gallery-filters button small { font-size: 11px; }
.album-page .gallery-filters button[aria-pressed="true"] { border-color: #ddd0ea; background: #fff; color: #654082; box-shadow: 0 4px 14px #7957920d; }
.album-page .gallery-filters button:hover { background: #e9dff2; color: #63477b; }
.album-page .album-browse-info { margin: 0; padding: 0 0 18px; color: #705c81; font-size: 12px; }
.album-browse-info > p:last-child span { margin-left: 8px; }
.album-page .photo-grid, .album-page .photo-grid.is-short { display: block; column-count: 4; column-gap: 18px; }
.album-page .photo-grid .photo-card { display: inline-block; width: 100%; margin: 0 0 18px; position: relative; vertical-align: top; break-inside: avoid; }
.album-page .photo-grid .photo-card[hidden] { display: none; }
.album-page .photo-grid .photo-link { border-radius: 4px; background: #e4d9ec; box-shadow: 0 6px 20px #6148730c; }
.album-page .photo-grid .photo-link img { aspect-ratio: var(--photo-aspect); height: auto; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.album-page .photo-grid .photo-link:hover img { transform: scale(1.025); }
.album-page .photo-grid figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 12px; padding: 36px 14px 14px; border-radius: 0 0 4px 4px; background: linear-gradient(transparent, #271b39cc 48%, #271b39e6); color: #fff; pointer-events: none; opacity: 0; transition: opacity .25s; }
.album-page .photo-grid figcaption > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.album-page .photo-grid figcaption small { color: #ffffffc2; font-size: 10px; }
.album-page .photo-card:hover figcaption, .album-page .photo-card:focus-within figcaption { opacity: 1; }
.gallery-outro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 44px; padding: 34px 0 48px; border-top: 1px solid #ded2e8; }
.gallery-outro p { margin: 0; color: #634b75; font-family: var(--display); font-size: var(--card-title-size); }
.gallery-outro a { color: #705c81; font-size: 14px; text-decoration: none; }
.gallery-outro a span { margin-left: 18px; }
.album-page .album-footer { padding: 26px var(--pad); border-color: #e1d5eb; background: #eee6f5; color: #705c81; font-size: 12px; font-weight: 400; }
.photo-dialog-exhibition { inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 18px 30px 16px; border: 0; border-radius: 0; color: #f5ecff; background: radial-gradient(ellipse at 50% 44%, #372b49 0, #21192e 64%); overflow: hidden; }
.photo-dialog-exhibition::backdrop { background: #21192e; }
.photo-dialog-exhibition[open] { display: grid; grid-template-rows: 50px minmax(0, 1fr) auto 64px 36px; gap: 10px; }
.photo-dialog-exhibition .photo-dialog-top { gap: 24px; }
.viewer-identity { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.viewer-identity strong { font-family: var(--display); font-size: 20px; font-weight: 400; }
.viewer-identity span { padding-left: 16px; border-left: 1px solid #bd9bdd40; color: #ad99c4; font-size: 12px; }
.photo-dialog-exhibition [data-photo-count] { color: #d6c0ef; font-size: 13px; font-variant-numeric: tabular-nums; }
.photo-dialog-exhibition button { border-color: #a78cbb45; border-radius: 999px; background: #b995da10; color: #e7d7fa; font-family: var(--body); font-size: 13px; transition: background .2s; }
.photo-dialog-exhibition button:hover { background: #b995da28; }
.photo-dialog-exhibition button:focus-visible, .photo-dialog-exhibition a:focus-visible { outline: 2px solid #d9b6ff; outline-offset: 3px; }
.photo-dialog-exhibition .photo-stage { position: relative; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: #796489 transparent; text-align: center; touch-action: pan-y; }
.photo-dialog-exhibition .photo-stage img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; cursor: zoom-in; transition: opacity .18s; }
.photo-dialog-exhibition .photo-stage.is-loading img { opacity: .3; }
.photo-dialog-exhibition .photo-stage.is-zoomed { text-align: left; touch-action: auto; }
.photo-dialog-exhibition .photo-stage.is-zoomed img { width: 180%; max-width: none; height: auto; object-fit: initial; cursor: zoom-out; }
.photo-dialog-exhibition .photo-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 12px 18px; border: 1px solid #b593d93b; border-radius: 999px; background: #30233cdc; color: #d7c2ec; font-size: 12px; white-space: nowrap; }
.photo-dialog-exhibition .photo-dialog-bottom { width: min(100%, 720px); justify-self: center; gap: 24px; flex-wrap: nowrap; }
.photo-dialog-exhibition .photo-dialog-bottom button { flex-shrink: 0; width: 44px; padding: 0; font-size: 22px; }
.photo-dialog-exhibition .photo-dialog-bottom > div { min-width: 0; flex: 1; text-align: center; }
.photo-dialog-exhibition [data-photo-caption] { margin: 0; color: #f1e5ff; font-size: 15px; }
.photo-dialog-exhibition [data-photo-category] { display: block; margin-top: 2px; color: #b9a0c8; font-size: 11px; }
.photo-filmstrip { display: flex; justify-content: safe center; align-items: center; gap: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.photo-dialog-exhibition .photo-filmstrip button { position: relative; flex-shrink: 0; width: 70px; height: 50px; min-width: 0; min-height: 0; padding: 3px; border: 1px solid transparent; border-radius: 4px; background: #7d5a9433; opacity: .5; }
.photo-dialog-exhibition .photo-filmstrip button[aria-pressed="true"] { border-color: #d1aff1; background: #ac85cc25; opacity: 1; }
.photo-dialog-exhibition .photo-filmstrip button:hover { opacity: 1; }
.photo-dialog-exhibition .photo-filmstrip img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.viewer-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #a38eb9; font-size: 11px; }
.viewer-tools > div { display: flex; align-items: center; gap: 12px; }
.photo-dialog-exhibition .viewer-tools button { min-height: 34px; padding: 4px 14px; font-size: 12px; }
.photo-dialog-exhibition .viewer-tools button[aria-pressed="true"] { background: #b594cf3d; border-color: #b594cf; }
.photo-dialog-exhibition .viewer-tools a { padding: 7px 0; color: #cbb0e1; font-size: 12px; }
@media (max-width: 1150px) {
  .exhibition-hero-inner { grid-template-columns: .8fr 1.5fr; gap: 20px; }
  .exhibition-entry { gap: 16px; }
  .exhibit-cta { padding-inline: 19px; gap: 22px; }
  .exhibit-scene { height: 470px; }
  .album-page .photo-grid, .album-page .photo-grid.is-short { column-count: 3; }
}
@media (max-width: 800px) {
  .exhibition-hero { padding-top: 112px; padding-bottom: 30px; }
  .exhibition-hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .exhibition-copy { text-align: center; padding-bottom: 0; }
  .exhibition-context { margin-bottom: 18px; font-size: 12px; }
  .album-page .exhibition-copy h1 { margin-bottom: 18px; }
  .exhibition-copy h1 span { display: inline; margin-left: .2em; }
  .exhibition-entry { justify-content: center; margin-top: 25px; }
  .exhibition-note { margin-top: 18px; }
  .exhibit-scene { width: 100%; height: clamp(340px, 62vw, 470px); max-width: 720px; margin: auto; }
  .exhibition-collection { padding-top: 34px; }
  .collection-heading { align-items: center; padding-bottom: 16px; }
  .collection-heading > p { font-size: 11px; }
  .gallery-toolbar { top: 70px; }
  .album-page .photo-grid, .album-page .photo-grid.is-short { column-count: 2; column-gap: 12px; }
  .album-page .photo-grid .photo-card { margin-bottom: 12px; }
  .album-page .gallery-filters { gap: 5px; padding-block: 12px; }
  .album-page .gallery-filters button { min-height: 39px; padding-inline: 11px; font-size: 13px; }
  .album-page .album-browse-info { padding-bottom: 13px; font-size: 11px; }
  .gallery-outro { margin-top: 24px; padding-block: 24px 34px; }
  .photo-dialog-exhibition { padding: 10px 14px; }
  .photo-dialog-exhibition[open] { grid-template-rows: 46px minmax(0, 1fr) auto 58px 34px; gap: 10px; }
  .viewer-identity span { display: none; }
  .viewer-identity strong { font-size: 18px; }
  .viewer-tools > span { display: none; }
  .viewer-tools { justify-content: center; }
  .viewer-tools > div { width: 100%; justify-content: center; }
  .photo-dialog-exhibition [data-photo-caption] { font-size: 13px; }
  .photo-filmstrip { gap: 6px; }
  .photo-dialog-exhibition .photo-filmstrip button { width: 52px; height: 44px; }
}
@media (max-width: 500px) {
  .exhibition-hero { padding-top: 105px; }
  .exhibit-scene { height: 320px; }
  .exhibit-frame { padding: 4px 4px 0; }
  .exhibit-frame > span { padding: 4px 2px 5px; font-size: 8px; }
  .exhibit-frame--main { width: 68%; top: 18%; left: 16%; }
  .exhibit-frame--group { width: 55%; left: 7%; top: 52%; }
  .exhibit-frame--portrait { width: 22%; top: 5%; }
  .exhibit-frame--collaboration { width: 23%; left: 77%; top: 42%; }
  .exhibit-frame--demo { width: 31%; left: 66%; top: 0; }
  .collection-heading { display: block; }
  .collection-heading > p { margin-top: 7px; }
  .album-page .photo-grid figcaption { padding: 24px 8px 8px; opacity: 1; }
  .album-page .photo-grid figcaption > span { font-size: 10px; }
  .album-page .photo-grid figcaption small { display: none; }
  .gallery-outro { align-items: flex-start; flex-direction: column; gap: 16px; }
  .viewer-tools > div { gap: 9px; }
  .photo-dialog-exhibition .viewer-tools button { padding-inline: 11px; }
}
@media (max-height: 550px) {
  .photo-dialog-exhibition[open] { grid-template-rows: 38px minmax(0, 1fr) auto 34px; gap: 6px; }
  .photo-filmstrip { display: none; }
  .photo-dialog-exhibition .photo-dialog-top button { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .exhibit-scene, .exhibit-frame, .album-page .photo-grid .photo-link img, .album-page .photo-grid figcaption, .photo-dialog-exhibition button, .photo-dialog-exhibition .photo-stage img { animation: none; transition: none; }
}

/* 期次与场景独立筛选，既可看本期，也可继续浏览所有课堂。 */
.gallery-cohort { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: #756780; font-size: 14px; }
.gallery-cohort[hidden] { display: none; }
.gallery-cohort select { max-width: 100%; min-height: 44px; padding: 8px 32px 8px 14px; border: 1px solid #dacee4; border-radius: 8px; color: #48305c; background: #fcfaff; font: inherit; cursor: pointer; }
.gallery-cohort select:focus-visible { outline: 3px solid #bda1d8; outline-offset: 3px; }
.gallery-empty { padding: 34px 20px; color: #756780; text-align: center; }
