/**
 * 简化的页面加载动画样式
 */

/* 加载动画容器 */
#loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 灰色背景 */
#loading-animation .bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #D1D1D1;
    transition: background-color 1s ease-out;
}

/* 文字样式 */
#text-content {
    position: relative;
    font-size: 20vw;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    color: #000;
    text-align: center;
    transition: opacity 0.25s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
    backface-visibility: hidden; /* 提高性能 */
}

/* 页面加载状态 */
body.loading {
    overflow: hidden !important;
}

body.loading main,
body.loading header,
body.loading footer {
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.loaded main,
body.loaded header,
body.loaded footer {
    opacity: 1;
}

/* 首页LBD高亮效果 */
.highlight-animation {
    animation: logo-highlight 0.4s ease;
}

@keyframes logo-highlight {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}

/* 适配不同屏幕尺寸 */
@media (max-width: 768px) {
    #text-content {
        font-size: 25vw;
    }
}

@media (max-width: 480px) {
    #text-content {
        font-size: 28vw;
    }
}

/* 视频背景处理 */
video.loading-hidden {
    opacity: 0;
    transition: opacity 0.6s ease;
}

video.loading-visible {
    opacity: 1;
} 