/* 轮播图容器样式 */
.carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 轮播图轨道 */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* 轮播项 */
.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播图片 */
.carousel-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 轮播内容 */
.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.carousel-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.carousel-description {
    font-size: 1rem;
    line-height: 1.4;
}

/* 控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 序号指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

/* 圆圈样式的序号 */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
    width: 14px;
    height: 14px;
}

/* 自动播放控制 */
.carousel-autoplay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 10;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-content {
        padding: 15px;
    }

    .carousel-title {
        font-size: 1.2rem;
    }

    .carousel-description {
        font-size: 0.9rem;
    }

    .carousel-indicators {
        bottom: 60px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .carousel-content {
        padding: 10px;
    }

    .carousel-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .carousel-description {
        font-size: 0.8rem;
    }

    .carousel-indicators {
        bottom: 50px;
    }

    .indicator {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .indicator.active {
        width: 10px;
        height: 10px;
    }

    .carousel-control {
        padding: 10px 8px;
    }
}
