/* 主题13 手机三线导航（不依赖 meanmenu / Font Awesome） */

.theme13-mobile-bar,
.theme13-mobile-panel {
    display: none;
}

@media (max-width: 991.98px) {
    .header-top-menu,
    .theme13-desktop-header,
    .header-area.theme13-desktop-header,
    #sticky-header.theme13-desktop-header,
    .header-area .menu-wrapper,
    .mobile-menu-area,
    .mean-container .mean-bar,
    .mean-container a.meanmenu-reveal {
        display: none !important;
    }

    .theme13-mobile-bar {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 10050;
        background: #279e64;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
        padding: 8px 0;
    }

    .theme13-mobile-logo {
        padding: 4px 0;
        line-height: 0;
    }

    .theme13-mobile-logo img {
        display: block;
        max-height: 38px;
        width: auto;
        max-width: min(150px, 42vw);
        object-fit: contain;
        background: transparent !important;
    }

    .theme13-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: rgba(255, 255, 255, 0.18);
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .theme13-nav-toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .theme13-nav-toggle.is-open .theme13-nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .theme13-nav-toggle.is-open .theme13-nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .theme13-nav-toggle.is-open .theme13-nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .theme13-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;
    }

    .theme13-mobile-panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .theme13-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;
    }

    .theme13-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;
    }

    .theme13-mobile-list li a:hover,
    .theme13-mobile-list li a:focus {
        color: #279e64;
        background: rgba(39, 158, 100, 0.06);
    }

    .theme13-mobile-list .theme13-mobile-cta a {
        color: #279e64;
    }
}

@media (min-width: 992px) {
    .theme13-mobile-bar,
    .theme13-mobile-panel,
    .theme13-nav-toggle {
        display: none !important;
    }

    .theme13-desktop-header,
    .header-area.theme13-desktop-header {
        display: block !important;
    }
}

html.theme13-nav-open,
html.theme13-nav-open body,
body.theme13-nav-open {
    overflow: hidden;
}
