平稳过渡,悬浮可开可不开
.role-item{
// background-color: white;
transition: background-color 0.3s ease; /* 添加过渡效果 */
// box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}
.role-item:hover {
background-color: #f2f2f2; /* 悬浮时切换为灰色背景 */
// box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* 悬浮时增加阴影效果 */
}