/* 专家卡片悬停动画 - 带边框效果 */
.main-div {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  border: 1px solid transparent;
  /* 初始透明边框 */
}

/* 卡片悬停效果 */
.main-div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #1890ff;
  /* 悬停时显示蓝色边框 */
}

/* 图片动画效果 */
.main-r-img {
  transition: all 0.6s ease;
  transform: scale(1);
}

.main-div:hover .main-r-img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* 标题动画效果 */
.main-title {
  transition: transform 0.3s ease;
}

.main-div:hover .main-title {
  transform: translateX(5px);
}

/* 姓名特殊效果 */
.main-title-name {
  display: inline-block;
  transition: all 0.4s ease;
}

.main-div:hover .main-title-name {
  color: #1890ff;
  /* 姓名变蓝色 */
  transform: translateX(3px);
}

/* 职称动画 */
.main-title-zc {
  transition: all 0.4s ease 0.1s;
  /* 延迟0.1秒 */
}

.main-div:hover .main-title-zc {
  transform: translateX(3px);
  opacity: 0.9;
}


/* 标签动画效果 */
.main-tag {
  display: inline-block;
  transition: all 0.4s ease;
  position: relative;
}

.main-div:hover .main-tag {
  background: rgba(24, 144, 255, 0.1);
  transform: translateY(-2px);
}

/* 边框动画效果 */
.main-div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: all 0.4s ease;
  z-index: -1;
}

.main-div:hover::before {
  border-color: rgba(24, 144, 255, 0.3);
  transform: scale(1.02);
}