:root {
    --primary-color: #2196F3;
    --secondary-color: #607D8B;
    --error-color: #ff4444;
    --success-color: #00C851;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-family: 'Segoe UI', system-ui;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader.error {
    border-top-color: var(--error-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    color: var(--secondary-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    transition: color 0.3s ease;
}

.status-text.error {
    color: var(--error-color);
}

@media (max-width: 768px) {
    .status-text {
        font-size: 1rem;
        max-width: 90%;
    }
}

.retry-button {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.retry-button:hover {
    opacity: 0.9;
}

/* 平板设备适配 */
@media (min-width: 768px) and (max-width: 1024px) {
    .status-text {
        max-width: 70%;
        font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    }
    
    .loader {
        width: 8vw;
        height: 8vw;
        border-width: 4px;
    }
}

/* 触控设备优化 */
@media (hover: none) and (pointer: coarse) {
    .retry-button {
        padding: 12px 24px;
        min-width: 120px;
    }
}