/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 1200px;
    height: 350px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* 支持服务器端控件span包裹 */
.carousel-container > span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 指示器样式 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #fff;
    border-color: #fff;
}

/* 箭头样式（可选） */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: none; /* 默认隐藏，需要时可以显示 */
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 响应式调整（可选） */
@media screen and (max-width: 1200px) {
    .carousel-container {
        width: 100%;
        height: auto;
        aspect-ratio: 24 / 7; /* 保持1200:350的比例 */
    }
}
