/* 主题16 手机三线导航（不依赖 Font Awesome / meanmenu） */

.theme16-mobile-bar,
.theme16-mobile-panel {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-logo-area,
    .zomia_nav_manu.theme16-desktop-header,
    #sticky-header.theme16-desktop-header,
    .mobile-menu-area,
    .mean-container .mean-bar,
    .mean-container a.meanmenu-reveal {
        display: none !important;
    }

    .theme16-mobile-bar {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 10050;
        /* 与 PC 吸顶导航 .sticky 同色（白底） */
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 8px 0;
    }

    .theme16-mobile-logo {
        padding: 4px 0;
        line-height: 0;
    }

    .theme16-mobile-logo img {
        display: block;
        max-height: 38px;
        width: auto;
        max-width: min(150px, 42vw);
        object-fit: contain;
        background: transparent !important;
    }

    .theme16-nav-toggle {
        display: inline-flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        margin-left: auto;
        border: 0;
        border-radius: 6px;
        background: linear-gradient(to right, #533EFF 0%, #740FD7 97%);
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .theme16-nav-toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .theme16-nav-toggle.is-open .theme16-nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .theme16-nav-toggle.is-open .theme16-nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .theme16-nav-toggle.is-open .theme16-nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .theme16-mobile-panel {
        display: block !important;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 10040;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        padding-top: 64px;
    }

    .theme16-mobile-panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .theme16-mobile-list {
        list-style: none;
        margin: 0;
        padding: 0.5rem 0 1.5rem;
        background: #fff;
        max-height: calc(100vh - 64px);
        overflow: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        width: min(320px, 86vw);
        margin-left: auto;
    }

    .theme16-mobile-list li a {
        display: block;
        padding: 0.9rem 1.25rem;
        color: #232323;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        font-size: 15px;
        font-weight: 600;
    }

    .theme16-mobile-list li a:hover,
    .theme16-mobile-list li a:focus {
        color: #533EFF;
        background: rgba(83, 62, 255, 0.06);
    }

    .theme16-mobile-list .theme16-mobile-cta a {
        color: #533EFF;
    }
}

@media (min-width: 992px) {
    .theme16-mobile-bar,
    .theme16-mobile-panel,
    .theme16-nav-toggle {
        display: none !important;
    }

    .theme16-desktop-header,
    .zomia_nav_manu.theme16-desktop-header {
        display: block !important;
    }
}

html.theme16-nav-open,
html.theme16-nav-open body,
body.theme16-nav-open {
    overflow: hidden;
}
