/* 校区地图卡片：可点击跳转高德地图 */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
}
.map-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(31, 18, 73, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(31, 18, 73, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.map-card:hover,
.map-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(31, 18, 73, 0.16);
  outline: none;
}
.map-thumb {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6d5efc 0%, #c44ce0 50%, #3fc8d8 100%);
  overflow: hidden;
}
/* 仿地图网格纹理 */
.map-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.map-thumb::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
}
.map-pin {
  position: relative;
  z-index: 1;
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.28));
}
.map-meta {
  padding: 16px 18px 18px;
}
.map-meta h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.map-meta .addr {
  display: block;
  color: #5b5566;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
  color: #6d5efc;
}
.map-cta .arrow {
  transition: transform 0.2s ease;
}
.map-card:hover .map-cta .arrow {
  transform: translateX(4px);
}
@media (max-width: 768px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-card,
  .map-cta .arrow {
    transition: none;
  }
  .map-card:hover {
    transform: none;
  }
}
