.slider-container {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    pointer-events: auto;
}

.prev-icon {
    left: 10px;
}

.next-icon {
    right: 10px;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px; /* 使用 gap 属性添加缩略图之间的间距 */
}

.thumbnail {
    width: 90px;
    height: 100px;
    cursor: pointer;
    border: 2px solid transparent;
    pointer-events: auto;
    animation: thumbnail-scale 2s infinite alternate;
}

@keyframes thumbnail-scale {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.thumbnail.active {
    border-color: #007BFF;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    border: 1px solid red;
    pointer-events: auto;
    object-fit: contain;
}

.modal-nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    pointer-events: auto;
}

.modal-prev-icon {
    left: 20px;
}

.modal-next-icon {
    right: 20px;
}