/* ========== 网页头部样式 ========== */
.site-header {
    background: var(--header-bg, #ffffff);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.header-logo-text span {
    color: #0099FF;
}

/* 导航栏 */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-item a {
    display: block;
    padding: 0.5rem 0px 0.5rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--header-nav-color, #475569);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-nav-item a:hover {
}

.header-nav-item.active a {
    color: #0099FF;
    background: #e6f2ff;
}

/* 移动端菜单按钮 */
.header-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.header-menu-toggle:hover {
    background: #f1f5f9;
}

.header-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: #0f172a;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .header-menu-toggle {
        display: block;
    }

    .header-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--header-bg, #ffffff);
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .header-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-nav-item a {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }

    .header-logo-text {
        font-size: 1.1rem;
    }
}
