:root {
    --header-height: 60px;
    --header-max-width: 1920px;
    --header-bg: #DCDCDC;
    --header-text: #0B51FF;
}

body.has-site-header {
    padding-top: var(--header-height);
}

body.has-site-header.home-page {
    padding-top: 0;
}

.page-content {
    min-height: calc(100vh - var(--header-height));
}

.sf-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--header-bg);
    display: flex;
    align-items: center;
}

.sf-header-container {
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.sf-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sf-header-logo img {
    display: block;
    height: 36px;
    width: auto;
}

.sf-header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
}

.sf-header-nav-left {
    justify-content: flex-start;
}

.sf-header-nav-right {
    justify-content: flex-end;
}

.sf-header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 83px;
    height: 36px;
    font-family: 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: var(--header-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sf-header-nav a:hover {
    opacity: 0.7;
}

.sf-header-nav a.wide {
    width: 158px;
}

.sf-header-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(11, 81, 255, 0.1);
    color: var(--header-text);
    cursor: pointer;
}

.sf-header-mobile-toggle i {
    font-size: 18px;
}

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

@media (max-width: 900px) {
    .sf-header-nav {
        display: none;
    }

    .sf-header-mobile-toggle {
        display: inline-flex;
    }

    .sf-header-logo {
        position: relative;
        left: auto;
        transform: none;
    }

    .sf-header-nav.active,
    .sf-header-nav-left.active,
    .sf-header-nav-right.active {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid rgba(11, 81, 255, 0.1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
        z-index: 999;
        justify-content: flex-start;
    }

    .sf-header-nav.active a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(11, 81, 255, 0.04);
    }

    .sf-header-nav.active a.wide {
        width: 100%;
    }
}

@media (max-width: 560px) {
    :root {
        --header-height: 56px;
    }

    .sf-header-container {
        padding: 0 16px;
    }

    .sf-header-logo img {
        height: 30px;
    }
}
