/* 初始加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a14;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 添加这个容器来垂直排列内容 */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    /* 控制logo和文字之间的间距 */
}

.loading-logo {
    width: 650px;
    max-width: 80%;
    /* 添加最大宽度确保响应式 */
    position: relative;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
}

.loading-text {
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: textFade 2s ease-in-out infinite;
    margin-top: 10px;
    /* 额外的上边距确保与logo有足够间距 */
}

/* 进度条容器 */
.loading-progress-container {
    width: 300px;
    height: 8px;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #0088ff);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 进度条发光效果 */
.loading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 1.5s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.8));
    }
}

@keyframes textFade {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* 进度百分比文本 */
.loading-percentage {
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-top: 8px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 加载状态指示器 */
.loading-status {
    color: rgba(0, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .loading-logo {
        width: 400px;
        /* 调整中等屏幕的大小 */
        max-width: 80%;
    }

    .loading-text {
        font-size: 1rem;
    }

    .loading-progress-container {
        width: 250px;
    }

    .loading-content {
        gap: 15px;
        /* 减少间距 */
    }
}

@media (max-width: 480px) {
    .loading-logo {
        width: 300px;
        /* 调整小屏幕的大小 */
        max-width: 85%;
    }

    .loading-text {
        font-size: 0.9rem;
    }

    .loading-progress-container {
        width: 200px;
    }

    .loading-percentage {
        font-size: 0.9rem;
    }

    .loading-content {
        gap: 10px;
        /* 进一步减少间距 */
    }
}

/* 针对超小屏幕的额外调整 */
@media (max-width: 360px) {
    .loading-logo {
        width: 250px;
        max-width: 90%;
    }

    .loading-text {
        font-size: 0.8rem;
    }

    .loading-progress-container {
        width: 180px;
    }

    .loading-percentage {
        font-size: 0.8rem;
    }
}