* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #ffffff;
    color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.header-title-logo {
    display: block;
    height: 85px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    border-radius: 0;
    background-color: transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background-color: transparent;
    color: #495057;
    border-bottom-color: #511056;
}

.main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.introduction-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.introduction-header h2 {
    font-size: 2.2rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.introduction-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #000000;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.introduction-text {
    text-align: justify;
    text-justify: inter-ideograph;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.5px;
}

.introduction-text p {
    margin-bottom: 1.8rem;
    text-indent: 2em;
    -webkit-text-indent: 2em;
    -moz-text-indent: 2em;
.basic-item--special {
    margin-top: 0.75rem;
}

}

.introduction-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .introduction-header {
        margin-bottom: 2rem;
    }
    
    .introduction-header h2 {
        font-size: 1.8rem;
    }
    
    .introduction-content {
        padding: 1.5rem;
        margin-bottom: 2rem;
        font-size: 1rem;
        line-height: 1.8;
    }
}

.catalog-header {
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
}

.sections-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease;
}

.section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.section-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.section-description p {
    text-indent: 2em;
    margin-bottom: 1em;
}

.section-description--with-photo {
    display: flow-root;
}

.section-description-photo {
    float: left;
    width: 180px;
    max-width: 30%;
    height: auto;
    margin: 0 1.25rem 0.75rem 0;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .section-description--with-photo .section-description-photo {
        float: left;
        width: 50vw;
        max-width: 50%;
        margin: 0 0.75rem 0.5rem 0;
        display: block;
    }
}

@media (max-width: 480px) {
    .section-description--with-photo .section-description-photo {
        width: 50vw;
        max-width: 50%;
        margin: 0 0.6rem 0.4rem 0;
    }
}

.exhibits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exhibit-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exhibit-thumbnail {
    margin: -1rem -1rem 0.8rem -1rem;
    padding-bottom: 75%; /* 统一使用4:3宽高比 */
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    position: relative;
    max-height: 260px; /* 设置最大高度，防止过度拉长 */
}

.thumbnail-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

.exhibit-thumbnail img {
    visibility: hidden;
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
    object-position: center;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.exhibit-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exhibit-card:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-wrapper.loaded {
    background-color: #f0f0f0;
}

.exhibit-title {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.exhibit-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.exhibit-period {
    color: #000000;
    font-weight: 500;
}

.exhibit-size {
    color: #000000;
}

.exhibit-collector {
    color: #000000;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.back-btn,
.nav-btn {
    padding: 0.6rem 1.2rem;
    background: #495057;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover,
.nav-btn:hover {
    background: #343a40;
}

.detail-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn:disabled {
    background: #ced4da;
    cursor: not-allowed;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* 在移动设备上默认显示图片在上方，文字在下方 */
    grid-template-areas: 
        "images"
        "info";
}

@media (min-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        /* 在桌面设备上恢复原来的布局 */
        grid-template-areas: 
            "info images";
    }
}

.detail-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    height: fit-content;
    grid-area: info;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.detail-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-block {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 0;
}

.detail-block-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.detail-block-content {
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    color: #000000;
}

.detail-block--no-title .detail-block-content {
    margin-top: 0;
}

.detail-block--with-title .detail-block-content {
    margin-top: 0.6rem;
}

.meta-item {
    margin-bottom: 0;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-value {
    display: block;
    color: #000000;
    line-height: 1.7;
}

.more-info-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.more-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem; /* 从0.3rem减小到0.1rem */
    margin-bottom: 10px;
}

.more-info-item a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0px; /* 将间距从2px减少到0px */
    display: block;
}

.more-info-item a:hover {
    text-decoration: underline;
}

.more-info-author {
    font-size: 0.85rem; /* 作者字体更小 */
    color: #666;
    display: block;
    margin-top: 0px; /* 确保与上方标题没有额外间距 */
}

.detail-images {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    grid-area: images;
}

.images-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exhibit-image {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.exhibit-image:hover {
    transform: scale(1.01);
}

.no-image {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #ced4da;
}

.detail-image-item {
    margin-bottom: 1rem;
    position: relative;
}

.detail-image-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
    display: none;
    /* 强制图片立即显示，不延迟 */
    content-visibility: auto;
}

.detail-image-item img:hover {
    transform: scale(1.01);
}

.image-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #ced4da;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
}

.image-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dc3545;
    margin-top: 0.5rem;
    display: none;
}

.error-icon {
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #f8d7da;
    display: inline-block;
    text-align: center;
}

.error-text {
    margin-bottom: 15px;
}

.retry-button {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.retry-button:hover {
    background-color: #c82333;
}

.image-provider {
    text-align: center;
    padding: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.no-images {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #ced4da;
}

.image-viewer {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.viewer-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.close-viewer {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
}

.close-viewer:hover,
.close-viewer:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.viewer-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.viewer-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.viewer-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.timeline-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.timeline-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.timeline-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
}

.timeline-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-entries {
    padding: 1rem 0;
}

.timeline-year {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 1.5rem 0 0.8rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e9ecef;
}

.timeline-year:first-child {
    margin-top: 0;
}

.timeline-event-item {
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    border-left: 2px solid #f8f9fa;
    padding-left: 1rem;
}

.timeline-event-time {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.timeline-event-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
}

@media (max-width: 768px) {
    .timeline-card {
        padding: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .timeline-wrapper {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .timeline-header h2 {
        font-size: 1.6rem;
    }
    
    .timeline-subtitle {
        font-size: 0.9rem;
        margin: 0 auto 1rem auto;
    }
    
    .book-cover {
        height: 220px;
    }
    
    .cover-placeholder {
        width: 120px;
        height: 170px;
        font-size: 0.75rem;
    }
}

.footer {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-layout {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: flex-start;
}

.footer-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.footer-logo img {
    width: 85px;
    height: auto;
    display: block;
}

.footer-info {
    flex: 1 1 auto;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.archive-header {
    width: 100%;
    margin-bottom: 1.5rem;
}

.archive-header h4 {
    color: #495057;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #511056;
}

.archive-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.campus-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.campus-location strong {
    color: #495057;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.campus-location p {
    margin: 0 0 0.8rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.qr-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.qr-item {
    text-align: center;
}

.qr-item p {
    margin: 0;
    font-size: 0.8rem;
    color: #495057;
}

.qr-image {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.copyright-info {
    text-align: center;
    font-size: 0.75rem;
}

.copyright-info p {
    margin: 0.3rem 0;
}

.copyright-info a {
    color: #6c757d;
    text-decoration: none;
}

.copyright-info a:hover {
    color: #495057;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-title-logo {
        height: 80px;
    }

    .header-nav {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-layout {
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-logo img {
        width: 70px;
    }

    .footer-info {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .archive-header {
        margin-bottom: 1.25rem;
    }

    .archive-header h4 {
        text-align: center;
        font-size: 1.1rem;
        border-bottom-width: 1.5px;
    }

    .archive-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .campus-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .campus-location p {
        font-size: 0.8rem;
    }

    .qr-section {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .qr-item p {
        font-size: 0.7rem;
    }

    .copyright-info {
        font-size: 0.7rem;
    }

    .catalog-header h2 {
        font-size: 2rem;
    }

    .exhibits-grid {
        grid-template-columns: 1fr;
    }

    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
    }

    .detail-nav {
        justify-content: flex-end;
        flex: 0 0 auto;
    }
    
    .back-btn {
        width: auto;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        display: inline-block;
        text-align: center;
        flex: 0 0 auto;
    }

    #detail-title {
        font-size: 1.5rem;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-title {
        font-size: 1.4rem;
    }
    
    .back-btn,
    .nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .detail-header {
        gap: 0.5rem;
    }

    .catalog-header h2 {
        font-size: 1.6rem;
    }

    .section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .exhibit-card {
        padding: 1rem;
    }
    
    .exhibit-thumbnail {
        padding-bottom: 66.67%; /* 3:2 宽高比，在小屏幕上用更宽的比例 */
    }

    .detail-info,
    .detail-images {
        padding: 1.5rem;
    }

    #detail-title {
        font-size: 1.3rem;
    }

    .about-content {
        padding: 2rem;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.exhibit-card {
    position: relative;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: none;
    transition: background-color 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
    background: #495057;
}

.error-message {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.books-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.books-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.books-footer {
    text-align: center;
    padding: 1rem 0 2rem;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.source-note {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

.book-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.book-item:hover {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.book-item:focus,
.book-item:focus-visible,
.book-item:focus-within,
.book-item:active {
    outline: none;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.book-item *:focus {
    outline: none;
}

.book-cover {
    height: 280px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.cover-placeholder {
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-author {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.book-publisher {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.book-year {
    color: #868e96;
    font-size: 0.85rem;
    font-weight: 500;
}

.photos-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.photos-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.photos-grid {
    column-count: 3;
    column-gap: 1.75rem;
    padding: 2rem 0;
}

.photo-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    break-inside: avoid;
}

.photo-item:hover {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.photo-item:focus,
.photo-item:focus-visible,
.photo-item:focus-within,
.photo-item:active {
    outline: none;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.photo-item *:focus {
    outline: none;
}


.photo-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    min-height: 200px;
}

.photo-image.loaded {
    min-height: 0;
}

.photo-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    opacity: 0;
}

.photo-image.loaded img {
    opacity: 1;
}

.photo-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.9);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-loading.hidden,
.photo-image.loaded .photo-loading {
    opacity: 0;
    visibility: hidden;
}

.photo-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #dee2e6;
    border-top-color: #511056;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.photo-item:hover .photo-image img {
    filter: brightness(1.1);
}

.photo-description {
    padding: 1.5rem;
}

.photo-description p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.no-data, .error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.error-message {
    color: #dc3545;
}

@media (max-width: 992px) {
    .photos-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .photos-grid {
        column-count: 1;
        padding: 1rem 0;
    }
    
    .books-header h2, .photos-header h2 {
        font-size: 1.6rem;
    }
    
    .books-header, .photos-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }
    
    .book-info, .photo-description {
        padding: 1rem;
    }
    
    .book-cover {
        height: 250px;
    }
    
    .cover-placeholder {
        width: 140px;
        height: 190px;
        font-size: 0.8rem;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.lightbox-caption {
    padding: 1.5rem;
    background: white;
    text-align: center;
}

.lightbox-caption p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Removed duplicate photo-item hover styles to keep parity with book cards */

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section {
    margin-bottom: 3rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-main-title {
    font-size: 2.4rem;
    color: #1f1f1f;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #5c677d;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.about-subtitle-divider,
.team-divider {
    width: 100%;
    height: 0;
    border-bottom: 1px solid rgba(208, 212, 220, 0.9);
    border-radius: 999px;
    margin: 1.25rem 0 2.25rem;
}


.basic-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.about-poster {
    margin-bottom: 2.5rem;
}

.poster-wrapper {
    display: flex;
    justify-content: center;
}

.poster-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.poster-image--landscape {
    display: none;
}

.poster-image--portrait {
    display: block;
}

@media (orientation: landscape) {
    .poster-image--landscape {
        display: block;
    }

    .poster-image--portrait {
        display: none;
    }
}

.team-list {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.team-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1ch;
    align-items: start;
}

.team-section {
    margin-bottom: 4rem;
}

.team-heading {
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.4px;
}


.team-row--special {
    margin-top: 0.75rem;
}

.team-role {
    position: relative;
    font-weight: 500;
    color: #495057;
    text-align: right;
    padding-right: 1ch;
}

.team-role::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 70%;
    background: #d4d7de;
    border-radius: 999px;
}

.team-role--special,
.team-members--special {
    margin-top: 0;
}
.team-role--special {
    font-weight: 700;
    color: #2b303a;
}

.basic-info {
    margin-bottom: 3rem;
}

.basic-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.basic-label {
    font-weight: 500;
    color: #495057;
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
    padding-right: 0;
}

.basic-value {
    flex: 1 1 auto;
    color: #495057;
}

@media (max-width: 768px) {
    .team-list {
        row-gap: 1.25rem;
    }

    .team-row {
        grid-template-columns: 1fr;
        row-gap: 0.25rem;
    }

    .team-role {
        text-align: left;
        padding: 0;
        margin: 0;
    }

    .team-role::after {
        content: none;
    }

    .team-members {
        padding-left: 0;
    }

    .basic-item {
        flex-direction: column;
        gap: 0;
    }

    .basic-label {
        text-align: left;
        margin-bottom: 0.15rem;
    }
    
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    #lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-caption {
        padding: 1rem;
    }
    
    .lightbox-caption p {
        font-size: 0.9rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 374px) {
    .detail-header {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .back-btn,
    .nav-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .nav-btn {
        min-width: 70px;
    }
}
.exhibit-photo-carousel {
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.carousel-view {
  position: relative;
  width: 100%;
}

.carousel-items {
  position: relative;
}

.carousel-item {
  width: 100%;
  background: #f8f9fa;
}

.carousel-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  background: #f8f9fa;
  overflow: hidden;
}

.carousel-image {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  transition: opacity 0.3s;
  display: block;
  margin: 0 auto;
}

.carousel-description {
  padding: 15px 20px;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.carousel-description p {
  margin: 0;
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.carousel-provider {
  padding: 10px 20px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.image-loading,
.image-error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 250, 0.9);
  z-index: 1;
}

.image-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dee2e6;
  border-top-color: #511056;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.image-loading .loading-text {
  margin-top: 10px;
  color: #495057;
}

.image-error {
  color: #dc3545;
  text-align: center;
}

.image-error .error-icon {
  font-size: 36px;
  margin-bottom: 10px;
  height: 40px;
  width: 40px;
  line-height: 36px;
  border-radius: 50%;
  border: 2px solid #dc3545;
  display: inline-block;
  font-weight: bold;
}

.image-error .error-text {
  margin-bottom: 15px;
}

.retry-button {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 4px;
  padding: 5px 10px;
  color: #842029;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: all 0.2s;
}

.retry-button:hover {
  background: #f5c2c7;
}

.no-images {
  padding: 40px;
  text-align: center;
  color: #6c757d;
  font-size: 1.1rem;
}

.carousel-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.carousel-counter {
  color: #495057;
  font-size: 0.9rem;
}

.carousel-prev,
.carousel-next {
  background: none;
  border: none;
  color: #511056;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  color: #7c2b84;
  background: #f1e9f2;
}

.carousel-prev:disabled,
.carousel-next:disabled {
  color: #adb5bd;
  cursor: not-allowed;
  background: none;
}

.carousel-prev:focus,
.carousel-next:focus {
  outline: none;
}

.carousel-dots {
  display: none;
}

.carousel-dot {
  display: none;
}

.carousel-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.carousel-image-container:hover .carousel-fullscreen-btn {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.thumbnail-wrapper.loaded img {
  animation: fadeIn 0.4s ease forwards;
}

@media (max-width: 768px) {
  .exhibit-thumbnail {
    padding-bottom: 70%;
  }
}

/* 简单轮播图样式 */
.simple-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.simple-carousel-items {
  width: 100%;
  height: 100%;
  position: relative;
}

.simple-carousel-side-area {
  position: absolute;
  top: 0;
  height: 100%;
  width: 30%;
  z-index: 5;
  cursor: pointer;
}

.simple-carousel-side-area.left {
  left: 0;
}

.simple-carousel-side-area.right {
  right: 0;
}

.simple-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
}

.simple-carousel-item.active {
  opacity: 1;
  display: flex;
}

.simple-carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 15;
}

.simple-carousel-counter {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.simple-carousel-prev,
.simple-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.simple-carousel:hover .simple-carousel-prev,
.simple-carousel:hover .simple-carousel-next {
  opacity: 1;
}

.simple-carousel-prev {
  left: 10px;
}

.simple-carousel-next {
  right: 10px;
}

.simple-carousel-prev:disabled,
.simple-carousel-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 图片显示控制按钮样式 */
.image-toggle-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 15px;
  padding: 5px 10px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
  color: #495057;
}

.image-toggle-btn:hover {
  background-color: #e9ecef;
}

.image-toggle-btn.active {
  background-color: #511056;
  color: white;
  border-color: #511056;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.catalog-header h2 {
  margin: 0;
}

.hide-images .exhibit-thumbnail {
  display: none;
}

/* 特殊字符内联图片样式 */
.inline-char {
  display: inline-block;
  height: 1em;
  vertical-align: middle; /* 回到middle对齐 */
  margin: 0 0.1em;
  position: relative;
  top: -2px; /* 使用像素单位向上调整2个像素 */
}

/* 人物介绍样式 */
.people-block {
  margin-top: 2rem;
}

.people-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.person-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.person-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.person-photo-wrapper {
  flex: 0 0 120px;
  max-width: 120px;
  margin-top: 0.5rem;
}

.person-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.person-info {
  flex: 1;
}

.person-name {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.person-bio {
  line-height: 1.8;
  text-align: justify;
}