/* 藏品展示页面原有样式 */
.collection-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f3e6;
}

.header-banner {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.collection-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.collection-card:hover {
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.card-era {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 分页样式 */
.pagination-container {
    text-align: center;
    padding: 20px 0;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}

/* 标题样式 */
.collection-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin: 20px 0;
    font-weight: normal;
}

/* 新增弹框及详情样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 弹框遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background-color 0.3s;
}
.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-body {
    padding: 20px;
}
/* 禁止背景滚动 */
body.modal-open {
    overflow: hidden;
}
/* 详情容器样式 */
.collection-container {
    display: flex;
    max-width: 100%;
    background-color: #fff;
    padding: 30px;
    gap: 40px;
}
/* 左侧轮播区域 */
.carousel-wrapper {
    flex: 1;
    min-width: 400px;
    position: relative;
}
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.carousel-list {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    flex: 0 0 100%;
}
.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}
/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}
/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}
.indicator.active {
    background-color: #fff;
}
/* 右侧信息区域 */
.info-wrapper {
    flex: 1.2;
    padding-top: 20px;
}
.collection-name {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
.collection-era {
    font-size: 22px;
    color: #c0392b;
    border-bottom: 2px solid #c0392b;
    padding-bottom: 8px;
    margin-bottom: 20px;
    position: relative;
}
.collection-era::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><rect x='2' y='2' width='16' height='16' fill='none' stroke='%23c0392b' stroke-width='2'/></svg>");
}
.collection-size {
    text-align: right;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}
.collection-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}
/* 加载提示 */
.loading {
    text-align: center;
    padding: 100px 0;
    font-size: 18px;
    color: #666;
}
/* 响应式适配 */
@media (max-width: 992px) {
    .collection-container {
        flex-direction: column;
        padding: 20px;
    }
    .carousel-wrapper {
        min-width: auto;
    }
    .collection-name {
        font-size: 28px;
    }
}