/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
/* 已迁移到 header_footer_styles.css */

@media (max-width: 900px) {
    .exhibition-info {
        display: flex;
        flex-direction: column !important;
    }
    .exhibition-text, .exhibition-image {
        width: 100% !important;
        padding: 0 !important;
    }
    .exhibition-image {
        margin-bottom: 16px;
    }
    .nav-links {
        display: none;
    }
    .exhibition-item {
        flex-direction: column !important;;
        align-items: stretch;
    }
    .exhibition-poster {
        width: 100% !important;
        height: auto !important;
        max-width: 300px;
        max-height: 300px;
        object-fit: contain !important;
        background: #f5f5f5;
        margin: 0 auto;
        display: block;
    }
    .exhibition-info {
        height: auto;
        width: 100% !important;
        margin-top: 12px;
        overflow: visible;
    }
}


/* 展览信息区域样式 */
.exhibition-info {
    display: flex;
    margin-top: 80px;
    height: calc(100vh - 80px);
    justify-content: flex-start;
}

.exhibition-text {
    width: 30%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exhibition-text h3 {
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.exhibition-text h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.exhibition-text h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.exhibition-date, .exhibition-location {
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.exhibition-image {
    width: 70%;
    height: 100%;
    overflow: hidden;
    padding-right: 21px;
    padding-left: 21px;
}

.main-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 120px;
    min-height: 400px;
}
.main-image {
    width: 100%;
    max-width: 1000px;
    max-height: 70vh;
    object-fit: contain;
    background: #f5f5f5;
    margin: 0 auto;
    display: block;
    will-change: transform;
}
.thumbs-container {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 32px 0 0 0;
    flex-wrap: wrap;
}
.thumb-image {
    width: 25px;
    height: 25px;
    object-fit: scale-down;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: border 0.2s, opacity 0.2s;
}
.thumb-image.active, .thumb-image:hover {
    border: 2px solid #222;
    opacity: 1;
}

/* 轮播图样式 */

/* Footer 样式 */
/* 已迁移到 header_footer_styles.css */

/* 展览列表样式 */
.exhibition-list-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.year-list {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 20px 0 20px 20px;
    border-right: 1px solid #eee;
    box-sizing: border-box;
    align-items: flex-start;
    overflow: visible;
}

.exhibition-list {
    flex: 1;                    /* 占用剩余空间 */
    padding: 20px;             /* 内边距20像素 */
    display: flex;             /* 使用弹性布局 */
    flex-direction: column;    /* 垂直方向排列 */
    gap: 8px;                 /* 子元素之间间隔8像素 */
}

.exhibition-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.exhibition-poster {
    width: 300px;
    height: 300px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f5f5f5;
}

.exhibition-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    height: 300px;
    overflow: hidden;
}

.exhibition-title {
    font-weight: bold;
    font-size: 1.2em;
}

.exhibition-artist {
    color: #666;
    font-size: 1.1em;
}

.exhibition-dates {
    font-size: 1.1em;
    color: #888;
}

/* 年份列表样式 */
.year-item {
    padding: 5px 15px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    font-size: 1.1em;
    color: #444;
}

.year-item:hover {
    background-color: #f5f5f5;
}

/* 全屏弹窗样式 */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.viewer-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.viewer-main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.main-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 40px;
}

#viewer-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.thumbnails-section {
    width: 320px;
    min-width: 320px;
    background: white;
    border-left: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.viewer-close:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.viewer-close svg {
    color: #666;
}

.thumbnails-container {
    flex: 1;
    overflow-y: auto;
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 100%;
}

.thumbnail-item {
    aspect-ratio: 1;
    width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail-item:hover {
    border-color: #ddd;
}

.thumbnail-item.active {
    border-color: #333;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1;
}

.artwork-info {
    background: #fafafa;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.artwork-details h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.artwork-details h4 {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
}

.artwork-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .viewer-main {
        flex-direction: column;
        height: 100%;
    }
    
    .main-image-section {
        flex: 1;
        padding: 20px;
        min-height: 0;
        max-height: 70vh;
    }
    
    .thumbnails-section {
        width: 100%;
        min-width: auto;
        height: auto;
        max-height: 30vh;
        border-left: none;
        border-top: 1px solid #e5e5e5;
        overflow-y: auto;
        flex-shrink: 0;
        padding: 15px;
    }
    
    .thumbnails-container {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        grid-template-columns: none !important;
        white-space: nowrap;
        padding-top: 10px;
    }
    
    .thumbnail-item {
        min-width: 60px;
        width: 60px;
        height: 60px;
        aspect-ratio: 1;
        flex-shrink: 0;
        overflow: hidden;
        border-radius: 4px;
    }
    
    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1;
        display: block;
    }
    
    .artwork-info {
        margin-top: 20px;
        padding: 15px;
        border-top: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .viewer-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        z-index: 1000;
    }
}

/* 更小屏幕的额外适配 */
@media (max-width: 480px) {
    .thumbnails-section {
        max-height: 35vh;
        padding: 10px;
    }
    
    .main-image-section {
        max-height: 65vh;
        padding: 15px;
    }
    
    .thumbnail-item {
        min-width: 50px;
        width: 50px;
        height: 50px;
    }
    
    .artwork-info {
        padding: 10px;
    }
    
    .artwork-details h3 {
        font-size: 16px;
    }
    
    .artwork-details h4 {
        font-size: 14px;
    }
    
    .artwork-details p {
        font-size: 12px;
    }
}

