/* 弹窗样式 */
.collection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: linear-gradient(to bottom, #FFF8F0, #FFF);
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    color: #8B4513;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #4A3728;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1rem;
}

.modal-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(139, 69, 19, 0.8);
    border: none;
    border-radius: 50%;
    color: #FFF;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-btn:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateY(-50%) scale(1.1);
}

.modal-image-btn.prev {
    left: 1rem;
}

.modal-image-btn.next {
    right: 1rem;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #8B4513 #FFF8F0;
}

.image-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.image-thumbnails::-webkit-scrollbar-track {
    background: #FFF8F0;
}

.image-thumbnails::-webkit-scrollbar-thumb {
    background-color: #8B4513;
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail.active {
    border-color: #8B4513;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 1rem;
}

.modal-title {
    font-family: "FangSong", "STFangsong", serif;
    font-size: 1.8rem;
    color: #4A3728;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
}

.modal-details {
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.info-label {
    color: #8B4513;
    font-weight: bold;
    font-family: "FangSong", "STFangsong", serif;
}

.info-value {
    color: #4A3728;
    font-family: "SimSun", "宋体", serif;
}

.modal-description {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
}

.modal-description h3 {
    color: #8B4513;
    font-family: "FangSong", "STFangsong", serif;
    margin-bottom: 1rem;
}

.modal-description p {
    color: #666;
    line-height: 1.8;
    font-family: "SimSun", "宋体", serif;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
} 