 /* 视频覆盖层容器 */
.video-overlay {
    position: relative;
    width: 100%;
    height: 100vh; /* 根据需要调整高度 */
    overflow: hidden;
}

/* 轮播背景图容器 */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 背景图片样式 */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* 激活状态的背景图片 */
.carousel-bg.active {
    opacity: 1;
}

/* 背景渐变遮罩 */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 覆盖层文本样式 */
.overlay-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: white;
}

.overlay-text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
}

.overlay-text h2 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    max-width: 800px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

/* 文本动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .overlay-text h1 {
        font-size: 2.5rem;
    }
    
    .overlay-text h2 {
        font-size: 1.5rem;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
}
