.menu-button i {
    transition: transform 0.3s ease;
}

.menu-button.open i {
    transform: rotate(180deg);
}

/* 下拉菜单容器 */
.dropdown-content {
    position: absolute;
    top: 65px;
    right: -100%;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px 0 0 5px;
    z-index: 1000;
    max-height: 0;
    transition: right 0.3s ease;
    pointer-events: none; /* 折叠状态下不响应鼠标事件 */
    display: none;
}

/* 展开状态 */
.dropdown-content.open {
    max-height: 1000px; /* 足够大的值容纳所有内容 */
    width: 100%;
    right: 0;
    pointer-events: auto; /* 展开状态下响应鼠标事件 */

}

@media (max-width: 1024px) {
    .dropdown-content {
        display: block;
    }
}

/* 菜单项样式 */
.menu-item {
    list-style: none;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 0.8rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.menu-link:hover {
    background-color: var(--textcolor);
    color: #FFFFFF;
}

.menu-link i {
    transition: transform 0.3s ease;
    color: #888;
}

/* 子菜单样式 */
.mob-submenu {

    overflow: hidden;

    /* 子菜单动画属性 */
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
}

.mob-submenu.open {
    max-height: 300px; /* 足够大的值容纳子菜单内容 */
}



.submenu .menu-link {
    padding-left: 1rem;
    font-size: 0.95rem;
    color: #666;
}

/* 分隔线 */
.mob-icon {
    position: relative;
    display: flex;
    gap: 40px;
    justify-content: right;
    padding: 10px 10px;
}