/* 头像调整功能相关样式 */

/* 头像容器基础样式增强 */
#user-avatar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: width, height; /* 优化动画性能 */
}

/* 头像调整菜单样式 */
#avatar-resize-menu {
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

#avatar-resize-menu button {
    transition: background-color 0.2s ease;
    font-size: 13px;
    padding: 4px 0;
}

#avatar-resize-menu button:hover {
    color: #3b82f6;
}

/* 禁用菜单的默认选择文本行为 */
#avatar-resize-menu {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 响应式调整头像大小 */
@media (max-width: 768px) {
    #user-avatar {
        width: 0.8rem !important;
        height: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    #user-avatar {
        width: 0.7rem !important;
        height: 0.7rem !important;
    }
}