/**
 * Video Hero Banner Styles
 * 全屏视频Hero区域样式
 */

/* 视频容器 - 仅在首页显示 */
.video-hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: none;
}

/* 首页显示 */
.home .video-hero-container {
    display: block;
}

/* 视频背景 */
.video-hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* 视频加载完成后显示 */
.video-hero-background.loaded {
    opacity: 1;
}

/* 半透明遮罩层 */
.video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* 内容容器 */
.video-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 1200px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* 标题 */
.video-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* 副标题 */
.video-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* CTA按钮 */
.video-hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-hero-cta:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* 向下滚动提示 */
.video-hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.video-hero-scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* 视频控制按钮 */
.video-hero-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.video-control-btn {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.video-control-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff !important;
    display: block;
}

.video-control-btn svg path {
    fill: #fff !important;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 视频加载动画 */
.video-hero-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.video-hero-loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-hero-loader.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-hero-title {
        font-size: 2.5rem;
    }

    .video-hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .video-hero-container {
        height: 70vh;
    }

    .video-hero-background {
        display: none;
    }

    .video-hero-title {
        font-size: 2rem;
    }

    .video-hero-subtitle {
        font-size: 1rem;
    }

    .video-hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .video-hero-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .video-hero-container {
        height: 60vh;
    }

    .video-hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .video-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* 确保视频下方的内容正常显示 */
.home .site-content {
    position: relative;
    z-index: 1;
}
