/* ==========================================================================
   Site header — Mobile (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {
    .main-column {
        width: 100%;
        min-width: 0;
    }

    /* —— 顶栏 56px：菜单 + Logo + 首页/资讯/关于 —— */
    .site-header {
        height: 56px;
        padding: env(safe-area-inset-top, 0) 12px 0;
        min-height: 56px;
        gap: 12px;
        flex-wrap: nowrap;
        align-items: center;
        border-bottom: 1px solid #FFFFFF12;
    }

    .site-header__menu {
        display: flex;
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .site-header__menu-icon {
        display: block;
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .site-header__brand {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        gap: 8px;
    }

    .site-header__brand-icon {
        width: 81px;
        height: 28px;
        border-radius: 6px;
        object-fit: contain;
        display: block;
    }

    .site-header__brand-name {
        height: 18px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    .site-header__nav {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
    }

    .site-header__links {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 4px;
    }

    .site-header__link {
        padding: 8px;
        font-size: 14px;
        border-radius: 11px;
        border: 1px solid transparent;
    }

    .site-header__link--active {
        flex: 1 1 0;
        max-width: none;
        justify-content: center;
        padding: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        font-weight: 600;
    }

    .site-header__link--inactive {
        padding: 9px 10px;
        font-weight: 500;
    }

    .site-header__spacer,
    .site-header__search--desktop {
        display: none;
    }
}
