.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 轮播图样式 */
#carousel {
    position: relative;
    height: 412px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
}

.carousel__title {
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 0;
    bottom: 0;
}

.carousel__title__text {
    width: calc(100% - 130px);
    height: 100%;
    line-height: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFFFFF;
    font-size: 18px;
    box-sizing: border-box;
    padding-left: 20px;
}

/* 控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* 指示器 */
.indicators {
    position: absolute;
    bottom: 24px;
    right: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: white;
}


@media screen and (min-width:1000px) {
    .carousel__title {
        display: block;
    }
}

@media screen and (max-width:999px) {
    .carousel__title {
        display: none;
    }

    .indicators {
        left: 50%;
        right: 0;
        transform: translate(-50%);
    }

}