/* 卡片悬停动画 - 底部边框滑动效果 */
a[href^="/institution/detail"] {
  display: block;
  /* 确保a标签作为块级元素 */
  position: relative;
  /* 为伪元素定位做准备 */
  overflow: hidden;
  /* 隐藏超出部分的边框 */
  transition: all 0.3s ease;
  /* 平滑过渡效果 */
}

/* 底部边框动画 */
a[href^="/institution/detail"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1775E7, #8859D9);
  /* 蓝色边框，可自定义颜色 */
  transition: width 0.4s ease-out;
  /* 动画持续时间 */
}

/* 悬停效果 */
a[href^="/institution/detail"]:hover {
  transform: translateY(-3px);
  /* 轻微上浮效果 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* 添加阴影增强立体感 */
}

a[href^="/institution/detail"]:hover::after {
  width: 100%;
  /* 边框完全展开 */
}

/* 确保内容不受影响 */
.info-box {
  position: relative;
  z-index: 1;
  /* 确保内容在边框上方 */
}

/* 保持原有样式不变 */
.header-title-box,
.star-title-box,
.star-box,
.star-icon,
.tag-item {
  transition: none;
  /* 保持原有元素的静态样式 */
}