/**
 * 加载指示器样式
 * 提供页面加载过程中的视觉反馈
 */

/* 加载指示器容器 */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 16, 85, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* 加载指示器淡出动画 */
.loading-indicator.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* 加载动画 */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #7597de;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

/* 加载文本 */
.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 加载进度条容器 */
.loading-progress-container {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

/* 加载进度条 */
.loading-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #50e2c2;
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

/* 资源加载状态文本 */
.loading-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 10px;
    height: 20px;
    text-align: center;
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 页面完全加载后的动画效果 */
body.fully-loaded .section-animation {
    opacity: 1;
    transform: translateY(0);
}

/* 分段显示的元素初始状态 */
.section-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 为不同的部分设置不同的延迟 */
.section-animation:nth-child(1) { transition-delay: 0.1s; }
.section-animation:nth-child(2) { transition-delay: 0.2s; }
.section-animation:nth-child(3) { transition-delay: 0.3s; }
.section-animation:nth-child(4) { transition-delay: 0.4s; }
.section-animation:nth-child(5) { transition-delay: 0.5s; }