*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --accent: #3b82f6;
    --radius: 10px;
}

[data-page-theme="dark"] {
    --bg: #0f0f0f;
    --text: #f1f1f1;
    --text-secondary: #aaaaaa;
    --border: #282828;
    --accent: #60a5fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

.header {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 0;
    text-align: center;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto 28px;
}

.theme-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 36px;
}

.theme-btn {
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.widget-section {
    max-width: 960px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.widget-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    padding: 24px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
