
/* SVG图标样式 */
.menu-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Font Awesome图标样式 */
.menu-icon i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 图片图标样式 */
.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 菜单项悬停效果 */
.menu-item:hover .menu-icon svg {
    transform: scale(1.1);
}

/* 菜单图标容器 */
.menu-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* 图标基础样式 */
.menu-icon-wrapper i,
.menu-icon-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Font Awesome图标样式 */
.menu-icon-wrapper i {
    font-size: 16px;
    text-align: center;
    line-height: 20px;
}

/* 图片图标样式 */
.menu-icon-wrapper img {
    object-fit: contain;
}

/* 悬停效果 */
.menu-item:hover .menu-icon-wrapper i,
.menu-item:hover .menu-icon-wrapper img {
    transform: scale(1.1);
}

/* SVG图标特殊处理 */
.menu-icon-wrapper svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* 确保图标对齐 */
.menu-item a {
    display: flex !important;
    align-items: center;
}

/* 修复可能的图标大小问题 */
.fas, .fab, .far {
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
}
