:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-nav: #1e293b;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

body {
    background: var(--bg);
    color: var(--text);
}

header {
    background: var(--bg-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav {
    flex: 1;
    overflow: hidden;
}

nav ul {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

nav ul::-webkit-scrollbar {
    display: none;
}

nav ul li a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    transition: all 0.2s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0 12px;
    gap: 8px;
    transition: all 0.2s;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

.search-form input {
    background: none;
    color: #fff;
    font-size: 13px;
    width: 180px;
    padding: 8px 0;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-form button {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 28px 24px;
    text-align: center;
    font-size: 13px;
    height: auto;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.peBtn {
    width: 35px;
    height: 35px;
    display: none;
}

.search-form button {
    width: 35px;
    height: 35px;
    opacity: .7;
}

@media (max-width: 768px) {
    .peBtn {
        display: block;
    }

    .logo {
        width: 200px;
    }

    .logo img {
        width: 100%;
    }

    header {
        position: relative;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .header-inner {
        max-width: 100%;
        height: 100%;
        justify-content: space-between;
    }

    .header-right,
    nav {
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(-100%);
        background: var(--bg-nav);
        transition: .3s;
    }

    .header-right {
        align-items: start;
        padding-top: 50px;
    }

    .search-form {
        width: 100%;
        justify-content: space-between;
    }

    .search-form input {
        flex: 1;
    }

    nav.active,
    .header-right.active {
        transform: translateY(0);
        top: 100%;
    }

    nav ul {
        flex-direction: column;
    }
}