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

:root {
    --theme-green: #239f40;
    --theme-green-dark: #177131;
    --theme-red: #da291c;
    --theme-red-dark: #b11d14;
    --theme-blue: #0f1f7a;
    --theme-blue-dark: #0a1450;
    --theme-gold: #f4c430;
    --theme-cream: #fffaf1;
    --theme-soft-green: #edf8f0;
    --theme-soft-red: #fff1ef;
    --theme-soft-blue: #eef2ff;
    --theme-border: #d7dde6;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 45%, #eef3f0 100%);
    color: #111827;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

.main-content,
.page-wrap {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--theme-border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 10px 24px rgba(15, 31, 122, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-logo {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
}

.site-logo span {
    color: var(--theme-red);
}

.site-nav {
    display: flex;
    gap: 6px;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    color: #374151;
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav li.active a {
    background: linear-gradient(135deg, var(--theme-soft-red) 0%, var(--theme-cream) 100%);
    color: var(--theme-red);
}

.site-footer {
    background: #1f2937;
    color: #d1d5db;
    text-align: center;
    padding: 22px 16px;
    font-size: 13px;
}

.site-footer a {
    color: var(--theme-gold);
    font-weight: 600;
}

.footer-links {
    margin-top: 6px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .header-inner {
        height: auto;
        padding: 8px 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .site-logo {
        font-size: 15px;
        flex-shrink: 0;
    }

    .site-nav {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }

    .site-nav a {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.1;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 12px;
    }

    .site-logo {
        font-size: 16px;
    }

    .site-nav a {
        font-size: 11.5px;
        padding: 7px 4px;
    }
}
