/* 卡片基础样式 */
.lab-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 卡片悬浮效果（无边框版） */
.lab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(24, 144, 255, 0.12);
  background: linear-gradient(135deg, #f8faff 0%, white 100%);
}

/* 图片悬浮效果 */
.lab-image img {
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
}

.lab-card:hover .lab-image img {
  transform: scale(1.05);
  filter: brightness(1.02);
}

/* 设备名称效果 */
.lab-name {
  transition: all 0.3s ease;
}

.lab-card:hover .lab-name {
  color: #1890ff;
  transform: translateX(3px);
}

/* 领域标签效果 */
.lab-area {
  transition: all 0.3s ease;
  display: inline-block;
}

.lab-card:hover .lab-area {
  background: rgba(24, 144, 255, 0.08);
  color: #1890ff;
  transform: translateY(-2px);
}

/* 添加光晕层（替代边框） */
.lab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(24, 144, 255, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.lab-card:hover::before {
  opacity: 1;
}








/* 卡片基础样式 */
.main-div {
  position: relative;
  padding-bottom: 8px;
  /* 为底部边框预留空间 */
  transition: all 0.3s ease;
}

/* 底部边框动画 - 从左到右展开 */
.main-div::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1890ff;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* 弹性动画 */
}

/* 悬停时触发效果 */
.main-div:hover::after {
  width: 100%;
  /* 完全展开 */
}

/* 标题悬停效果 */
.main-div-l-title {
  transition: all 0.3s ease;
}

.main-div:hover .main-div-l-title {
  color: #1890ff;
  transform: translateX(3px);
}

/* 标签悬停效果 */
.main-div-l-tag {
  transition: all 0.3s ease;
  display: inline-block;
}

.main-div:hover .main-div-l-tag {
  background: rgba(24, 144, 255, 0.1);
}

/* 地址悬停效果 */
.main-div-l-dz {
  transition: all 0.3s ease;
}

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

.main-div-l-dw {
  transition: all 0.3s ease;
}

.main-div:hover .main-div-l-dw {
  transform: rotate(15deg);
}