.carousel {
    position: relative;
    width: 590px;
    height: 417px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out; /* 关键：横向移动动画 */
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0; /* 防止图片挤压 */
}

.carousel-image {
    width: 590px;
    height: 332px;
    display: block; /* 修复空白间隙 */
}

/* 控制按钮 */
.carousel-control {
    position: absolute;
    bottom: 20px;
    cursor: pointer;
    z-index: 10;
    border: 0;
}

.carousel-control.prev {
    right: 58px;
    width: 28px;
    height: 28px;
    background: url(../images/carousel-left.png) no-repeat;
}

.carousel-control.prev:hover {
    background: url(../images/carousel-left-hover.png) no-repeat;
}

.carousel-control.next {
    right: 20px;
    width: 28px;
    height: 28px;
    background: url(../images/carousel-right.png) no-repeat;
}

.carousel-control.next:hover {
    background: url(../images/carousel-right-hover.png) no-repeat;
}

/* 指示器样式保持不变 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 17%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: url(../images/carousel-notChanged-button.png) no-repeat 8px;
    border: none;
    cursor: pointer;
}

.carousel-indicator.active {
    background: url(../images/carousel-changed-button.png) no-repeat;
}

.carousel-indicator:hover {
    background: url(../images/carousel-changed-button.png) no-repeat;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-control {
        padding: 8px 12px;
        font-size: 14px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

#bac {
    position: absolute;
    width: 100%;
    height: 112px;
    bottom: 0;
    left: 0;
    z-index: 10;
    font-size: 30px;
    padding-top: 8px;
    padding-left: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFFFFF;
}

#bac_linear {
    position: absolute;
    width: 100%;
    height: 30px;
    bottom: 112px;
    left: 0;
    z-index: 10;
}