/* 头部轮播图样式 */
.header-carousel-container {
    position: relative;
    max-width: 1920px;
    height: 300px;
    overflow: hidden;
    margin: 0 auto;
}

.header-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.header-carousel-slide.active {
    opacity: 1;
}

/* 头部轮播图导航点 */
.header-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.header-dot.active {
    background: rgba(255, 255, 255, 1);
}

.header-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 头部轮播图箭头 */
.header-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

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

.header-carousel-arrow.prev {
    left: 20px;
}

.header-carousel-arrow.next {
    right: 20px;
}

/* 内容区轮播图样式 */
.carousel-container {
    position: relative;
    max-width: 1920px;
    height: 300px;
    overflow: hidden;
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

/* 轮播图导航点 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: rgba(255, 255, 255, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 轮播图箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

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

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-container {
        height: 200px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}