.m-top-nav-mobile-navbar,
.m-top-nav-mobile-navbar-search-box,
.m-top-nav-categories-panel {
    display: none;
}

@media(max-width:1150px) {
    .m-top-nav-categories-panel {display: block;}
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .m-top-nav-categories-panel .m-top-nav-categories-panel-nav-logo {
        text-align: center;
        margin-top: 20px;
    }

    .m-top-nav-categories-panel .m-top-nav-categories-panel-nav-logo img {
        height: 40px;
        /* 根据需要调整 logo 的高度 */
    }

    .m-top-nav-close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        cursor: pointer;
        color: #fff;
        font-size: 20px;
        z-index: 1000;
    }

    .m-top-nav-categories-panel {
        max-width: 300px;
        box-sizing: border-box;
        /* 控制分类列表的最大宽度 */
        margin: 0 auto;
        padding-right: 10px;
    }

    .m-top-nav-category-name {
        display: inline-block;
        width: calc(100% - 40px);
        padding: 10px 0;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* 控制分类名称的宽度 */
    }

    .m-top-nav-arrow {
        height: 40px;
        width: 40px;
        position: absolute;
        /* top: 0px; */
        right: 10px;
    }

    .m-top-nav-mobile-navbar {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 0 10px;
        background-color: #333;
        color: #fff;
        position: fixed;
        z-index: 99999;
        top: 0;
        left: 0;
    }

    .m-top-nav-mobile-navbar .m-top-nav-logo {
        display: flex;
        height: 80%;
        align-items: center;
        justify-content: center;
    }

    .m-top-nav-mobile-navbar .m-top-nav-logo a {
        height: 80%;
        display: block;
    }

    .m-top-nav-mobile-navbar .m-top-nav-logo img {
        height: 100%;
    }

    .m-top-nav-mobile-navbar .m-top-nav-menu-btns button {
        background: none;
        border: none;
        cursor: pointer;
        color: #fff;
    }

    .m-top-nav-mobile-navbar-search-box {
        display: none;
        padding: 10px;position: fixed;top: 50px;left: 0;
        background-color: #444;
        z-index: 99999;width: 100%;
    }

    .m-top-nav-mobile-navbar-search-box input[type="text"] {
        width: 70%;
        padding: 5px;
        margin-right: 10px;
    }

    .m-top-nav-mobile-navbar-search-box .m-top-nav-submit-btn {
        width: 25%;
        padding: 5px 10px;
        background-color: var( --e-global-color-text );
        color: #fff;
        border: none;
        cursor: pointer;
    }

    .m-top-nav-categories-panel {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background-color: #333;
        color: #fff;
        transition: all 0.3s ease;
        overflow-y: scroll;
        z-index: 99999;
    }

    .m-top-nav-categories-panel.open {
        right: 0;
    }

    /* .main-categories {
        list-style: none;
        padding: 0;
    }

    .main-categories li {
        padding: 10px;
        cursor: pointer;
    } */

    .m-top-nav-category-list li {
        position: relative;
        padding-left: 15px;
        border-left: 1px solid rgba(255, 255, 255, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2)
    }
    .m-top-nav-category-list li {
        position: relative;
        padding-left: 15px;
        border-left: 1px solid rgba(255, 255, 255, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2)
    }
 .m-top-nav-sub-categories li:last-child {
        border-bottom: 0px solid rgba(255, 255, 255, 0.2)
    }
    /* .main-categories li.active {
        background-color: #555;
    } */

    .m-top-nav-sub-categories {
        display: none;
        background-color: #444;
    }

    .m-top-nav-sub-categories ul {
        list-style: none;
        padding: 0;
    }

    .m-top-nav-sub-categories ul li {
        cursor: pointer;
    }

    svg path.m-top-nav-arrow_arrow {
        fill: #d9b96e;
        /* 设置填充颜色为红色 */
        stroke: #d9b96e;
        /* 设置描边颜色为黑色 */
    }

    svg.open {
        transform: rotate(180deg);
        transition: all 0.3s;
    }
}