/* 首页服务分类 */
.service-category-wrapper {
  margin: 60px auto 50px;
  padding: 48px 0 40px;
  background: #fff;
}
.service-category-wrapper .service-category-header {
  text-align: center;
  margin-bottom: 40px;
}
.service-category-wrapper .service-category-header h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.06em;
}
.service-category-wrapper .service-category-header p {
  margin: 12px 0 0;
  font-size: 15px;
  color: #999;
}
.service-category-wrapper .service-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-category-wrapper a.service-category-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: #333 !important;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-category-wrapper a.service-category-item:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 96, 242, 0.22);
  box-shadow: 0 18px 40px rgba(36, 96, 242, 0.14);
}
.service-category-wrapper a.service-category-item:hover h4 {
  color: #2460f2;
}
.service-category-wrapper a.service-category-item:hover .service-category-cover img {
  transform: scale(1.05);
}
.service-category-wrapper a.service-category-item:hover .service-category-more {
  color: #2460f2;
}
.service-category-wrapper .service-category-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f6fb;
}
.service-category-wrapper .service-category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.08) 100%);
  pointer-events: none;
}
.service-category-wrapper .service-category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.service-category-wrapper .service-category-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.service-category-wrapper .service-category-body h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #222;
  transition: color 0.25s ease;
}
.service-category-wrapper .service-category-body p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  flex: 1;
}
.service-category-wrapper .service-category-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #8a94a6;
  transition: color 0.25s ease;
}
.service-category-wrapper .service-category-more i {
  font-size: 16px;
  transition: transform 0.25s ease;
}
.service-category-wrapper a.service-category-item:hover .service-category-more i {
  transform: translateX(3px);
}
.service-category-wrapper .service-category-cta {
  margin-top: 40px;
  text-align: center;
}
.service-category-wrapper a.service-category-cta-btn {
  display: inline-block;
  padding: 14px 42px;
  font-size: 16px;
  font-weight: 600;
  color: #2460f2 !important;
  border: 2px solid #2460f2;
  border-radius: 6px;
  background: #fff;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(36, 96, 242, 0.12);
}
.service-category-wrapper a.service-category-cta-btn:hover {
  color: #fff !important;
  background: #2460f2;
  box-shadow: 0 10px 24px rgba(36, 96, 242, 0.28);
}

@media (max-width: 991.98px) {
  .service-category-wrapper {
    margin: 50px auto 40px;
    padding: 36px 0 32px;
  }
  .service-category-wrapper .service-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .service-category-wrapper .service-category-grid .service-category-item:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .service-category-wrapper .service-category-header h3 {
    font-size: 26px;
  }
  .service-category-wrapper .service-category-body {
    padding: 18px 18px 20px;
  }
  .service-category-wrapper .service-category-body h4 {
    font-size: 18px;
  }
}

@media (max-width: 575.98px) {
  .service-category-wrapper {
    margin: 36px auto 28px;
    padding: 28px 0 24px;
  }
  .service-category-wrapper .service-category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-category-wrapper .service-category-grid .service-category-item:last-child {
    max-width: none;
  }
  .service-category-wrapper a.service-category-cta-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 14px;
  }
}
