/* ================================================
   Exhibitions Page
   ================================================ */

.exhibitions-list-section {
    padding-top: 2rem;
    background: #f8f9fa;
    min-height: 50vh;
}

.exhibitions-list {
    position: relative;
}

.exhibitions-timeline {
    position: relative;
    padding-left: 1.75rem;
}

.exhibitions-timeline::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--nju-purple-light) 0%,
        rgba(125, 51, 114, 0.35) 35%,
        #ddd 100%
    );
    border-radius: 1px;
}

.exhibitions-timeline-group {
    position: relative;
    padding-bottom: 2rem;
}

.exhibitions-timeline-group:last-child {
    padding-bottom: 0;
}

.exhibitions-timeline-node {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    margin: 0 0 0.9rem -1.75rem;
    padding-left: 1.75rem;
}

.exhibitions-timeline-marker {
    position: absolute;
    left: calc(0.4rem - 6px);
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--nju-purple-light);
    box-shadow: 0 0 0 3px rgba(125, 51, 114, 0.12);
    z-index: 1;
}

.exhibitions-timeline-group--permanent .exhibitions-timeline-marker {
    border-color: var(--nju-purple);
    background: var(--nju-purple);
    box-shadow: 0 0 0 3px rgba(95, 38, 88, 0.15);
}

.exhibitions-timeline-label {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--nju-purple);
    letter-spacing: 0.02em;
}

.exhibitions-timeline-items {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    container-type: inline-size;
    container-name: exhibitions-list;
}

.exhibitions-timeline--single .exhibitions-timeline-group {
    padding-bottom: 0;
}

.exhibition-row {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.exhibition-row:last-child {
    border-bottom: none;
}

.exhibition-row:hover,
.exhibition-row:focus-visible {
    background: rgba(125, 51, 114, 0.08);
    box-shadow: inset 0 0 0 1px rgba(125, 51, 114, 0.1);
    color: inherit;
    outline: none;
}

.exhibition-row:hover .exhibition-row-title,
.exhibition-row:focus-visible .exhibition-row-title {
    color: var(--nju-purple);
}

.exhibition-row:hover .exhibition-row-thumb,
.exhibition-row:focus-visible .exhibition-row-thumb {
    box-shadow: 0 4px 14px rgba(95, 38, 88, 0.18);
}

.exhibition-row:hover .exhibition-row-arrow,
.exhibition-row:focus-visible .exhibition-row-arrow {
    color: var(--nju-purple);
    transform: translateX(4px);
}

.exhibition-row-thumb {
    flex: 0 1 42%;
    width: auto;
    max-width: 31.25rem;
    min-width: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    transition: box-shadow 0.2s ease;
}

.exhibition-row-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-row-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececec;
    color: #999;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.exhibition-row-body {
    flex: 1 1 auto;
    min-width: 0;
}

.exhibition-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin-bottom: 0.35rem;
}

.exhibition-row-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #f3f3f3;
}

.exhibition-row-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.exhibition-row-subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

.exhibition-row-meta {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.5;
    margin-top: 0.15rem;
}

.exhibition-row-meta-line + .exhibition-row-meta-line {
    margin-top: 0.2rem;
}

.exhibition-row-meta-block + .exhibition-row-meta-block {
    margin-top: 0.55rem;
}

.exhibition-row-meta-relocation {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.25rem;
}

.exhibition-row-meta-location {
    color: #777;
}

.exhibition-row-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: #ccc;
    font-size: 0.85rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.exhibitions-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #888;
}

.exhibition-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.exhibition-row-head .exhibition-badge {
    margin-bottom: 0;
}

.exhibition-badge-permanent {
    background: rgba(95, 38, 88, 0.1);
    color: var(--nju-purple);
}

.exhibition-badge-ongoing {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.exhibition-badge-upcoming {
    background: rgba(13, 110, 253, 0.1);
    color: #0a58ca;
}

.exhibition-badge-extended {
    background: rgba(255, 193, 7, 0.15);
    color: #997404;
}

.exhibition-badge-ended {
    background: rgba(220, 53, 69, 0.1);
    color: #c45555;
}

/* ================================================
   展览详情
   ================================================ */

.exhibition-detail-header {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.exhibition-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--nju-purple-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.exhibition-detail-back:hover {
    color: var(--nju-purple);
}

.exhibition-detail-hero {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.exhibition-detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
}

.exhibition-detail-poster {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: #eee;
}

.exhibition-detail-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-detail-poster-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececec;
    color: #999;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.exhibition-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: #222;
}

.exhibition-detail-subtitle {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.exhibition-detail-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.exhibition-detail-meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.exhibition-detail-meta-list i {
    color: var(--nju-purple-light);
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.exhibition-detail-meta-relocation {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
}

.exhibition-detail-meta-relocation span {
    padding-left: 1.5rem;
}

.exhibition-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.exhibition-detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.exhibition-detail-action-btn--primary {
    background: var(--nju-purple-light);
    color: #fff;
    border: 1px solid var(--nju-purple-light);
}

.exhibition-detail-action-btn--primary:hover {
    background: var(--nju-purple);
    border-color: var(--nju-purple);
    color: #fff;
}

.exhibition-detail-action-btn--outline {
    background: #fff;
    color: var(--nju-purple-light);
    border: 1px solid var(--nju-purple-light);
}

.exhibition-detail-action-btn--outline:hover {
    background: rgba(125, 51, 114, 0.08);
    color: var(--nju-purple);
}

.exhibition-detail-section {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.exhibition-detail-section:last-child {
    border-bottom: none;
}

.exhibition-detail-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nju-purple);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(125, 51, 114, 0.15);
}

.exhibition-detail-intro {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #444;
    white-space: pre-wrap;
}

.exhibition-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
}

.exhibition-detail-info-item dt {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.25rem;
}

.exhibition-detail-info-item dd {
    font-size: 0.92rem;
    color: #444;
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.exhibition-detail-venue-block {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.exhibition-detail-venue-block:last-child {
    margin-bottom: 0;
}

.exhibition-detail-venue-tag {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.exhibition-detail-venue-location {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.exhibition-detail-venue-dates {
    font-size: 0.88rem;
    color: #666;
}

.exhibition-detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.exhibition-detail-gallery-item {
    border: none;
    padding: 0;
    background: none;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 2;
    position: relative;
}

.exhibition-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.exhibition-detail-gallery-item:hover img {
    transform: scale(1.05);
}

.exhibition-detail-subsection-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.75rem;
}

.exhibition-detail-related-text + .exhibition-detail-related-text {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid #eee;
}

.exhibition-detail-related-text-signature {
    margin: 1rem 0 0;
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

.exhibition-detail-people {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exhibition-detail-person {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.exhibition-detail-person-portrait {
    flex: 0 0 140px;
    width: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.exhibition-detail-person-portrait img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-detail-person-body {
    flex: 1 1 auto;
    min-width: 0;
}

.exhibition-detail-person-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #333;
}

.exhibition-detail-person-name .exhibition-detail-person-role {
    margin-left: 0.55rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #888;
}

.exhibition-detail-person-name .exhibition-detail-person-role::before {
    content: '·';
    margin-right: 0.55rem;
    color: #bbb;
}

.exhibition-detail-person-years {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: #777;
}

.exhibition-detail-person-bio {
    margin-top: 0.5rem;
}

.exhibition-detail-person-block {
    margin-top: 1rem;
}

.exhibition-detail-person-block-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #666;
    margin: 0 0 0.5rem;
}

.exhibition-detail-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exhibition-detail-timeline-item {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #ececec;
    font-size: 0.9rem;
}

.exhibition-detail-timeline-item:last-child {
    border-bottom: none;
}

.exhibition-detail-timeline-time {
    color: #666;
    font-weight: 600;
}

.exhibition-detail-books {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exhibition-detail-book {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.exhibition-detail-book-cover {
    flex: 0 0 64px;
    width: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.exhibition-detail-book-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-detail-book-title {
    font-weight: 600;
    color: #333;
    line-height: 1.45;
}

.exhibition-detail-book-meta {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: #777;
}

.exhibition-detail-person-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.exhibition-detail-person-photo {
    margin: 0;
}

.exhibition-detail-person-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #eee;
}

.exhibition-detail-person-photo figcaption {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #777;
    line-height: 1.4;
}

.exhibition-detail-openings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exhibition-detail-opening {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.exhibition-detail-opening-tag {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.35rem;
}

.exhibition-detail-opening-time,
.exhibition-detail-opening-location {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #444;
    margin-bottom: 0.35rem;
}

.exhibition-detail-opening-time i,
.exhibition-detail-opening-location i {
    color: var(--nju-purple-light);
    margin-top: 0.15rem;
}

.exhibition-detail-opening-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--nju-purple);
    text-decoration: none;
}

.exhibition-detail-opening-link:hover {
    color: var(--nju-purple-light);
}

.exhibition-detail-events {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exhibition-detail-event-group + .exhibition-detail-event-group {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.exhibition-detail-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exhibition-detail-event {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.exhibition-detail-event-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.exhibition-detail-event-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #444;
    margin-bottom: 0.35rem;
}

.exhibition-detail-event-meta i {
    color: var(--nju-purple-light);
    margin-top: 0.15rem;
}

.exhibition-detail-event-participants {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: #555;
}

.exhibition-detail-event-participant + .exhibition-detail-event-participant {
    margin-top: 0.2rem;
}

.exhibition-detail-event-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.65rem;
}

.exhibition-detail-event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--nju-purple);
    text-decoration: none;
}

.exhibition-detail-event-link:hover {
    color: var(--nju-purple-light);
}

.exhibition-detail-event-videos {
    margin-top: 0.75rem;
}

.exhibition-detail-event-video {
    max-width: 560px;
}

.exhibition-detail-unit + .exhibition-detail-unit {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.exhibition-detail-unit-description {
    margin-bottom: 1rem;
}

.exhibition-detail-exhibits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exhibition-detail-exhibit {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.exhibition-detail-exhibit-images {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exhibition-detail-exhibit-images img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
}

.exhibition-detail-exhibit-name {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #333;
}

.exhibition-detail-exhibit-meta {
    font-size: 0.86rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.exhibition-detail-exhibit-meta-label {
    color: #888;
    margin-right: 0.35rem;
}

.exhibition-detail-exhibit-transcription {
    margin-top: 0.75rem;
}

.exhibition-detail-exhibit-transcription-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 0.35rem;
}

.exhibition-detail-exhibit-links {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.exhibition-detail-exhibit-links a {
    color: var(--nju-purple);
    text-decoration: none;
    font-size: 0.88rem;
}

.exhibition-detail-exhibit-links a:hover {
    color: var(--nju-purple-light);
}

.exhibition-detail-videos {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exhibition-detail-video-player {
    width: 100%;
    max-width: 720px;
    border-radius: 8px;
    background: #000;
}

.exhibition-detail-video-label {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: #666;
}

.exhibition-detail-articles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exhibition-detail-article {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.exhibition-detail-article:last-child {
    border-bottom: none;
}

.exhibition-detail-article-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--nju-purple);
    background: rgba(125, 51, 114, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.exhibition-detail-article-link {
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.45;
}

.exhibition-detail-article-link:hover {
    color: var(--nju-purple);
}

.exhibition-detail-article-author {
    font-size: 0.82rem;
    color: #888;
}

.exhibition-detail-papers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exhibition-detail-paper {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.exhibition-detail-paper-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #333;
}

.exhibition-detail-paper-author {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: #666;
}

.exhibition-detail-paper-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--nju-purple);
    text-decoration: none;
}

.exhibition-detail-paper-link:hover {
    color: var(--nju-purple-light);
}

/* 照片灯箱 */
.exhibition-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibition-gallery-lightbox[hidden] {
    display: none !important;
}

.exhibition-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.exhibition-gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 1100px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibition-gallery-lightbox-figure {
    margin: 0;
    text-align: center;
    max-width: 100%;
}

.exhibition-gallery-lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
}

.exhibition-gallery-lightbox-figure figcaption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.exhibition-gallery-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.exhibition-gallery-lightbox-close:hover {
    opacity: 1;
}

.exhibition-gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibition-gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.exhibition-gallery-lightbox-nav--prev {
    left: -3rem;
}

.exhibition-gallery-lightbox-nav--next {
    right: -3rem;
}

.exhibition-gallery-lightbox-counter {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

body.exhibition-gallery-open {
    overflow: hidden;
}

/* 列表项：窄容器内改为上海报、下文字卡片 */
@container exhibitions-list (max-width: 44rem) {
    .exhibition-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1rem;
    }

    .exhibition-row-thumb {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .exhibition-row-arrow {
        display: none;
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 767px) {
        .exhibition-row {
            flex-direction: column;
            align-items: stretch;
            gap: 0.85rem;
            padding: 1rem;
        }

        .exhibition-row-thumb {
            flex: none;
            width: 100%;
            max-width: none;
        }

        .exhibition-row-arrow {
            display: none;
        }
    }
}

/* 响应式 */
@media (max-width: 1199px) {
    .exhibition-detail-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .exhibition-detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .exhibition-detail-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .exhibitions-timeline {
        padding-left: 1.35rem;
    }

    .exhibitions-timeline::before {
        left: 0.3rem;
    }

    .exhibitions-timeline-node {
        margin-left: -1.35rem;
        padding-left: 1.35rem;
    }

    .exhibitions-timeline-marker {
        left: calc(0.3rem - 5px);
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .exhibitions-timeline-label {
        font-size: 0.92rem;
    }

    .exhibition-detail-title {
        font-size: 1.4rem;
    }

    .exhibition-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exhibition-detail-person {
        flex-direction: column;
    }

    .exhibition-detail-person-portrait {
        width: 100%;
        max-width: 200px;
    }

    .exhibition-detail-person-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exhibition-detail-exhibit {
        grid-template-columns: 1fr;
    }

    .exhibition-detail-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .exhibition-gallery-lightbox-nav--prev {
        left: 0.5rem;
    }

    .exhibition-gallery-lightbox-nav--next {
        right: 0.5rem;
    }

    .exhibition-gallery-lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        z-index: 2;
    }
}
