/* ======================
   手机导航基础样式
====================== */
.mobile-header-bar {
    display: none;
    align-items: center;
    justify-content: flex-end;
    padding: 15px 0;
}
.mobile-menu-btn {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 999;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.mobile-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    pointer-events: none;
}
.mobile-nav-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.3s;
}
.mobile-nav {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    padding: 70px 20px 20px;
    overflow-y: auto;
}
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-item {
    border-bottom: 1px solid #eee;
}
.mobile-nav-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-link,
.mobile-subnav-link {
    display: block;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}
.mobile-arrow {
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.mobile-subnav {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 0;
    display: none;
    background: #f9f9f9;
}
.mobile-subnav li {
    border-bottom: 1px solid #eee;
}

/* 打开状态 */
.mobile-nav-wrap.show {
    pointer-events: all;
}
.mobile-nav-wrap.show .mobile-nav-overlay {
    opacity: 1;
}
.mobile-nav-wrap.show .mobile-nav {
    right: 0;
}
.mobile-subnav.show {
    display: block;
}
.mobile-arrow.active {
    transform: rotate(90deg);
}

/* ======================
   响应式：768px 以下显示手机导航，隐藏电脑导航
====================== */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
    .mobile-header-bar {
        display: flex !important;
    }
}