/* ========================================== */
/* 移动端菜单专用样式 */
/* ========================================== */

/* 移动端菜单容器 */
.mobile-menu {
    display: none;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    position: fixed;
    top: 42px;
    right: 26px;
    width: 32px;
    height: 32px;
    background: var(--primary-color, #409eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle i {
    color: #fff;
    font-size: 20px;
}

/* 移动端菜单遮罩层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单内容 */
.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

/* 移动端菜单头部 */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--primary-color, #409eff);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-close i {
    font-size: 16px;
    color: #fff;
}

/* 移动端菜单主体 */
.mobile-menu-body {
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 移动端菜单项 */
.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 0 0 0 20px;

}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    flex: 1;
}

.mobile-menu-link:hover {
    color: var(--primary-color, #409eff);
}

.mobile-menu-link i {
    margin-right: 12px;
    font-size: 16px;
    color: var(--primary-color, #409eff);
    width: 20px;
    text-align: center;
}

.mobile-menu-link.active {
    color: var(--primary-color, #409eff);
}

/* 移动端菜单展开按钮 */
.mobile-menu-expand {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.mobile-menu-expand:hover {
    transform: scale(1.05);
}

.mobile-menu-expand i {
    font-size: 12px;
    color: var(--primary-color, #409eff);
    transition: transform 0.3s ease;
}

.mobile-menu-expand.active i {
    transform: rotate(180deg);
}

/* 移动端子菜单 */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu-level3.active {
    max-height: 300px;
}

.mobile-submenu-item {
    border-bottom: 1px solid #e9ecef;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    flex: 1;
}

.mobile-submenu-link:hover {
    color: var(--primary-color, #409eff);
}

.mobile-submenu-link.active {
    color: var(--primary-color, #409eff);
    background: rgba(64, 158, 255, 0.05);
}



/* 三级子菜单 */
.mobile-submenu-level3 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 20px;
}

.mobile-submenu-level3.active {
    max-height: 300px;
}

.mobile-submenu-level3 .mobile-submenu-item-content {
    padding-left: 60px;
}

.mobile-submenu-level3 .mobile-submenu-link {
    font-size: 13px;
    color: #777;
}



/* 二级菜单中的展开按钮样式 */
.mobile-submenu-item-content .mobile-menu-expand {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.mobile-submenu-item-content .mobile-menu-expand:hover {
    transform: scale(1.1);
}

.mobile-submenu-item-content .mobile-menu-expand i {
    font-size: 11px;
    color: var(--primary-color, #409eff);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.mobile-submenu-item-content .mobile-menu-expand.active {
}

.mobile-submenu-item-content .mobile-menu-expand.active i {
    transform: rotate(180deg);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .pc-menu {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
    
    .pc-menu {
        display: block;
    }
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        right: -100%;
    }
    to {
        right: 0;
    }
}

@keyframes slideOutRight {
    from {
        right: 0;
    }
    to {
        right: -100%;
    }
}

/* 滚动条样式 */
.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}