/* 开屏动画样式文件 */

/* 开屏动画容器 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 视频容器 */
.splash-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 开屏视频 */
.splash-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
}

/* 开屏覆盖层 */
.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    z-index: 2;
}



/* 加载指示器 */
.loading-indicator {
    text-align: center;
    animation: fadeInUp 2s ease-out 0.5s both;
}

.loading-indicator p {
    color: #4a90e2;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.8);
    font-family: '华文行楷', 'STXingkai', 'Microsoft YaHei', serif;
    letter-spacing: 2px;
    margin: 0;
}



/* 跳过提示 */
.splash-screen::after {
    content: '点击任意位置跳过';
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 3s ease-out 2s both;
}

.splash-screen:hover::after {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 全面响应式设计 */

/* 超大屏幕优化 */
@media (min-width: 1400px) {
    .splash-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .loading-indicator p {
        font-size: 2rem;
        letter-spacing: 3px;
    }
}

/* 大屏幕 */
@media (max-width: 1399px) and (min-width: 1200px) {
    .loading-indicator p {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
}

/* 中等屏幕 */
@media (max-width: 1199px) and (min-width: 992px) {
    .splash-video {
        width: 105%;
        height: 105%;
        object-fit: cover;
    }
    
    .loading-indicator p {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
}

/* 平板屏幕 */
@media (max-width: 991px) and (min-width: 768px) {
    .splash-video {
        width: 110%;
        height: 110%;
        object-fit: cover;
    }
    
    .loading-indicator p {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}

/* 小屏幕平板和大手机 */
@media (max-width: 767px) and (min-width: 576px) {
    .splash-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        object-position: center center;
    }
    
    .loading-indicator p {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .splash-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* 小手机屏幕 */
@media (max-width: 575px) {
    .splash-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        object-position: center center;
    }
    
    .loading-indicator p {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .splash-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .splash-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        object-position: center center;
    }
    
    .loading-indicator p {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .splash-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .splash-screen::after {
        bottom: 15px;
        right: 15px;
        font-size: 12px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .splash-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        object-position: center center;
    }
    
    .loading-indicator {
        bottom: 15%;
    }
    
    .loading-indicator p {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .splash-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* 超宽屏优化 */
@media (min-aspect-ratio: 21/9) {
    .splash-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        object-position: center center;
    }
}

/* 超高屏优化 */
@media (max-aspect-ratio: 9/16) {
    .splash-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        object-position: center center;
    }
}

/* 移动端性能优化 */
@media (max-width: 768px) {
    .splash-video {
        /* 移动端视频优化 - 保持居中定位 */
        -webkit-transform: translate3d(-50%, -50%, 0);
        transform: translate3d(-50%, -50%, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
        /* 确保全屏覆盖 */
        min-width: 100vw;
        min-height: 100vh;
    }
    
    .splash-screen {
        /* 触摸优化 */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        /* 确保全屏 */
        width: 100vw;
        height: 100vh;
    }
    
    .splash-video-container {
        /* 确保容器全屏 */
        width: 100vw;
        height: 100vh;
    }
}

/* 主网站内容初始隐藏 */
.main-website {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-website.show {
    opacity: 1;
}