/* 主题2 手机三线导航 */

.theme2-mobile-panel {
    display: none;
}

@media (max-width: 991.98px) {
    .zomia_nav_manu {
        display: none !important;
    }

    .mobile-logo-area.theme2-mobile-bar,
    .theme2-mobile-bar {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 10050;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 8px 0;
    }

    .theme2-mobile-bar .mobile-menu-logo {
        padding: 4px 0;
        text-align: left !important;
    }

    .theme2-mobile-bar .mobile-menu-logo img {
        max-height: 38px;
        width: auto;
        max-width: min(150px, 42vw);
        object-fit: contain;
    }

    .theme2-nav-toggle {
        display: inline-flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 0;
        border-radius: 6px;
        background: linear-gradient(to right, #533efe, #740fd6);
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .theme2-nav-toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .theme2-nav-toggle.is-open .theme2-nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .theme2-nav-toggle.is-open .theme2-nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .theme2-nav-toggle.is-open .theme2-nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .theme2-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;
    }

    .theme2-mobile-panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .theme2-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);
    }

    .theme2-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;
    }

    .theme2-mobile-list li a:hover,
    .theme2-mobile-list li a:focus {
        color: #533efe;
        background: #f7f5fd;
    }

    .theme2-mobile-list .theme2-mobile-cta a {
        color: #533efe;
    }

    /* 旧 meanmenu / 侧滑容器残留 */
    .mobile-menu-area,
    .mean-container .mean-bar,
    .mean-container a.meanmenu-reveal {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-logo-area,
    .theme2-mobile-bar,
    .theme2-mobile-panel,
    .theme2-nav-toggle,
    .mobile-menu-area {
        display: none !important;
    }

    .zomia_nav_manu.d-lg-block {
        display: block !important;
    }
}

html.theme2-nav-open,
html.theme2-nav-open body,
body.theme2-nav-open {
    overflow: hidden;
}
