/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.header {
    background: var(--gradient-bg);
    padding: 40px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.header .guide-link {
    margin-top: 10px;
    font-size: 0.95rem;
}

.header .guide-link a {
    color: #a78bfa;
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.4);
    font-weight: 400;
    transition: all 0.3s ease;
}

.header .guide-link a:hover {
    color: var(--accent-primary);
    text-decoration-color: var(--accent-primary);
}

/* Loading and spinner styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

[data-theme="light"] .loading-overlay {
    background: rgba(255, 255, 255, 0.9);
}

#loadingText {
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: 10px;
}

[data-theme="light"] .spinner {
    border: 4px solid var(--border-primary);
    border-top: 4px solid var(--accent-primary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--shadow-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
