/* ===== 视频背景动画 - 完全参照原网站 ===== */

/* Hero区域视频背景容器 - 宽度适配屏幕，高度为内容区的2/3 */
.hero-section {
    position: relative;
    width: 100vw;
    height: 66.667vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
    margin: 0;
    padding: 0;
}

/* 视频背景容器 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000; /* 视频加载前的背景色 */
}

/* 视频元素 */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 66.667vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

/* 遮罩层 - 轻微遮罩让文字清晰可见 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* 视频加载失败时的备用渐变背景 */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

/* Hero内容层 - 去除所有动画 */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.hero-content .btn-primary {
    padding: 14px 36px;
    border: none;
    background: #ffd700;
    color: #000000;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content .btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* 视频淡入平滑过渡动画 */
.hero-video {
    animation: videoFadeIn 1s ease-in;
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 渐变备用背景（视频加载失败时显示） */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 0;
}


