
.carousel-container {
    position: relative;
    width: 1200px;
    height: 380px;
    margin: 0 auto;
    padding: 0 0;
    overflow: hidden;
}

.carousel-slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    display: flex;
    align-items: center;
    justify-items: center;
    margin: 0 auto;
    width: auto ;
    height: 380px;
}

/* 导航按钮样式 */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 指示点样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background-color: white;
}


/* 响应式设计 */
@media (max-width: 768px) {

    .carousel-container {
        width: 360px;
        height: 148px;
    }


    .slide img {
        width: 348px;
        height: 148px;
    }


}