:root {
    --site-shell-primary: #0066ff;
    --site-shell-primary-dark: #0050cc;
    --site-shell-text: #333333;
    --site-shell-text-main: #334155;
    --site-shell-text-muted: #64748b;
    --site-shell-surface: #ffffff;
    --site-shell-surface-muted: #f8fbff;
    --site-shell-deep: #0f172a;
    --site-shell-cyan: #22d3ee;
}

.site-mobile-overlay.mobile-overlay {
    display: none;
}

header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

header.site-header .nav-wrapper {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

header.site-header .logo,
header.site-header .drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--site-shell-primary);
    text-decoration: none;
}

header.site-header .logo i,
header.site-header .drawer-logo i {
    font-size: 28px;
}

header.site-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    list-style: none;
}

header.site-header .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--site-shell-text);
    cursor: pointer;
    height: 100%;
    transition: color 0.3s;
    text-decoration: none;
}

header.site-header a.nav-item:hover,
header.site-header a.nav-item.active,
header.site-header .nav-item.active {
    color: var(--site-shell-primary);
    background: transparent;
}

header.site-header .nav-item .arrow {
    margin-left: 6px;
    font-size: 14px;
    transition: transform 0.3s;
}

header.site-header .nav-item:hover .arrow,
header.site-header .nav-item.sub-open .arrow,
header.site-header .nav-item.active .arrow {
    transform: rotate(180deg);
}

header.site-header .dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 200px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    border-top: 2px solid var(--site-shell-primary);
    z-index: 100;
}

header.site-header .nav-item:hover .dropdown,
header.site-header .nav-item.sub-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header.site-header .dropdown-item {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--site-shell-text-main);
    transition: all 0.2s;
    text-decoration: none;
}

header.site-header .dropdown-item:hover,
header.site-header .dropdown-item.active {
    background-color: #f5f9ff;
    color: var(--site-shell-primary);
    padding-left: 30px;
}

header.site-header .drawer-header,
header.site-header .drawer-close,
header.site-header .mobile-menu-btn {
    display: none;
}

footer.site-footer {
    position: relative;
    z-index: 2;
    background-color: var(--site-shell-deep);
    color: #94a3b8;
    padding: 80px 0 40px;
}

footer.site-footer .site-footer-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

footer.site-footer .site-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

footer.site-footer .site-footer-brand h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer.site-footer .site-footer-brand p {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.8;
}

footer.site-footer .site-footer-meta {
    margin-top: 20px;
    font-size: 14px;
    color: #94a3b8;
}

footer.site-footer .site-footer-meta p {
    margin: 6px 0;
}

footer.site-footer .site-footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 600;
}

footer.site-footer .site-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer.site-footer .site-footer-col li {
    margin-bottom: 12px;
}

footer.site-footer .site-footer-col a,
footer.site-footer .site-footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

footer.site-footer .site-footer-col a:hover,
footer.site-footer .site-footer-bottom a:hover {
    color: var(--site-shell-cyan);
}

footer.site-footer .site-footer-bottom {
    text-align: center;
    font-size: 14px;
    line-height: 1.9;
}

@media (max-width: 1024px) {
    .site-mobile-overlay.mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    .site-mobile-overlay.mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    header.site-header .nav-wrapper {
        width: min(100% - 32px, 1200px);
        height: 72px;
        gap: 12px;
    }

    header.site-header .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 86vw);
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding-bottom: 24px;
        box-shadow: -18px 0 42px rgba(15, 23, 42, 0.16);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        padding-top: env(safe-area-inset-top, 0px);
    }

    header.site-header .nav-menu.open {
        right: 0;
    }

    header.site-header .nav-menu.open + .mobile-menu-btn {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.92);
    }

    header.site-header .logo {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    header.site-header .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        margin-bottom: 8px;
    }

    header.site-header .drawer-logo {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    header.site-header .drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        border: 0;
        background: #f8fafc;
        color: var(--site-shell-text);
        cursor: pointer;
        font-size: 20px;
        flex: 0 0 38px;
    }

    header.site-header .mobile-menu-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        background: rgba(248, 250, 252, 0.96);
        border: none;
        cursor: pointer;
        padding: 12px;
        border-radius: 12px;
        flex: 0 0 44px;
        position: relative;
        z-index: 1002;
        transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    }

    header.site-header .mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: #333333;
        border-radius: 2px;
        transition: all 0.3s;
    }

    header.site-header .nav-item {
        display: block;
        height: auto;
        padding: 16px 20px;
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
        box-sizing: border-box;
    }

    header.site-header a.nav-item.active,
    header.site-header .nav-item.active {
        color: #333333;
        background: transparent;
    }

    header.site-header .nav-item:hover,
    header.site-header .nav-item.sub-open {
        color: #333333;
        background: transparent;
    }

    header.site-header .nav-item .arrow {
        float: right;
        margin-left: auto;
    }

    header.site-header .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f0f0f0;
        padding: 5px 0 5px 20px;
        display: none;
        width: 100%;
        background: #fafafa;
        min-width: 0;
        margin-top: 0;
        left: 0;
        border-radius: 0;
    }

    header.site-header .nav-item:hover .dropdown {
        display: none;
    }

    header.site-header .nav-item.sub-open .dropdown {
        display: block;
    }

    header.site-header .dropdown-item {
        padding: 12px 24px;
        border-radius: 0;
    }

    header.site-header .dropdown-item.active {
        color: var(--site-shell-primary);
        font-weight: 700;
        background: #eef5ff;
        box-shadow: inset 3px 0 0 var(--site-shell-primary);
        padding-left: 24px;
    }

    footer.site-footer {
        padding: 64px 0 32px;
    }

    footer.site-footer .site-footer-container {
        width: min(100% - 32px, 1200px);
    }

    footer.site-footer .site-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 28px;
        margin-bottom: 40px;
        padding-bottom: 28px;
    }
}

@media (max-width: 768px) {
    header.site-header .nav-wrapper {
        width: min(100% - 20px, 1200px);
        height: 64px;
        gap: 10px;
    }

    header.site-header .logo,
    header.site-header .drawer-logo {
        font-size: 20px;
    }

    header.site-header .logo i,
    header.site-header .drawer-logo i {
        font-size: 24px;
    }

    footer.site-footer {
        padding: 56px 0 28px;
    }

    footer.site-footer .site-footer-container {
        width: calc(100% - 24px);
    }

    footer.site-footer .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 28px;
        padding-bottom: 24px;
        text-align: center;
        justify-items: center;
    }

    footer.site-footer .site-footer-brand,
    footer.site-footer .site-footer-col,
    footer.site-footer .site-footer-meta {
        width: 100%;
    }

    footer.site-footer .site-footer-brand,
    footer.site-footer .site-footer-col,
    footer.site-footer .site-footer-meta {
        text-align: center;
    }

    footer.site-footer .site-footer-brand h3 {
        justify-content: center;
    }

    footer.site-footer .site-footer-brand p {
        max-width: none;
    }
}
