/* 加载遮蔽罩样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 99999; /* 确保在最上层 */
    flex-direction: column;
    gap: 30px;
}

/* 显示状态 */
.loading-overlay.show {
    display: flex;
    opacity: 1;
}

/* 彩色方块容器 */
.loading-blocks-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

/* 单个彩色方块 */
.loading-block {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.loading-block-1 {
    background-color: #FF6B6B;
    animation: bounce 1.2s ease-in-out infinite;
    animation-delay: 0s;
}

.loading-block-2 {
    background-color: #4ECDC4;
    animation: bounce 1.2s ease-in-out infinite;
    animation-delay: 0.2s;
}

.loading-block-3 {
    background-color: #45B7D1;
    animation: bounce 1.2s ease-in-out infinite;
    animation-delay: 0.4s;
}

.loading-block-4 {
    background-color: #96CEB4;
    animation: bounce 1.2s ease-in-out infinite;
    animation-delay: 0.6s;
}

.loading-block-5 {
    background-color: #FFEAA7;
    animation: bounce 1.2s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.7;
    }
}

/* 加载文字样式 */
.loading-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 140px;
    animation: textGlow 1.5s ease-in-out infinite;
}

/* 文字发光动画 */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    50% {
        text-shadow: 0 2px 16px rgba(255, 255, 255, 0.4);
        color: #f0f0f0;
    }
}

/* 加载点动画 */
.loading-dot {
    display: inline-block;
    width: 4px;
    min-width: 4px;
}

.loading-dot.dot-1 {
    animation: dotBlink 1s steps(1) infinite;
}

.loading-dot.dot-2 {
    animation: dotBlink 1s steps(1) infinite;
    animation-delay: 0.33s;
}

.loading-dot.dot-3 {
    animation: dotBlink 1s steps(1) infinite;
    animation-delay: 0.66s;
}

@keyframes dotBlink {
    0%, 33% {
        opacity: 0;
    }
    34%, 100% {
        opacity: 1;
    }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 淡出动画 */
.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .loading-block {
        width: 10px;
        height: 10px;
    }
    
    .loading-blocks-container {
        gap: 10px;
    }
    
    .loading-text {
        font-size: 14px;
    }
}