/* Loading 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loading-text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.loading-subtitle {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px auto;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
}

.loading-tips {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 20px;
    max-width: 400px;
    line-height: 1.5;
}

/* 动画效果 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -300px 0;
    }
    100% {
        background-position: 300px 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .loading-text {
        font-size: 20px;
    }
    
    .loading-subtitle {
        font-size: 14px;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .loading-logo {
        width: 100px;
        height: 100px;
    }
}