/* 用于设置视频背景 */

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
        transition:
            opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
            backdrop-filter 1.2s ease;
        /* 分离过渡属性 */
        backdrop-filter: blur(20px);
        /* 毛玻璃效果 */
    }

    &.video-loaded::before {
        opacity: 0;
        backdrop-filter: blur(0);
    }
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 确保内容显示在视频上方 */
main,
footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* 覆盖原有header样式 */
header.navbar {
    position: fixed !important;
    /* 固定定位 */
    top: 0;
    width: 100%;
    z-index: 1000 !important;
    /* 必须高于视频容器 */
}


/* 移动端适配 */
@media (max-aspect-ratio: 16/9) {
    .video-container video {
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .video-container video {
        width: 100%;
        height: auto;
    }
}