/* 加载页面样式 */
.loading-container {
    text-align: center;
    color: white;
    position: relative;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-spinner-small {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.loading-text-small {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.loading-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 30px;
}

.loading-subtitle-small {
    font-size: 12px;
    opacity: 0.8;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
    animation: dots 1.5s infinite;
}

.loading-error {
    text-align: center;
    color: white;
}

.loading-error button {
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loading-error button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* 动画定义 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .loading-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-subtitle {
        font-size: 12px;
        margin-bottom: 25px;
    }
    
    .loading-progress {
        width: 150px;
    }
}
