﻿/* 轮播图基础样式（组件内置） */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 0 auto;
}

.carousel-list {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
/* 左右按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}
/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 32px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

    .indicator.active {
        background-color: rgba(255, 255, 255, 0);
        border: 2px solid rgba(255, 255, 255, 1);
    }
