/* ========================================
   法律服务列表页
   ======================================== */

.services-list {
  padding: 20px 0 80px;
}

.services-list__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.svc-card {
  display: flex;
  gap: 24px;
  padding: 36px 32px 40px;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  background: #fff;
  box-sizing: border-box;
  transition: background 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.svc-card:hover {
  text-decoration: none;
  color: inherit;
}

.svc-card:nth-child(2n) {
  border-right: none;
}

.svc-card:nth-last-child(-n + 2) {
  border-bottom: none;
}

.svc-card:hover {
  background: #fafafa;
}

.svc-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  transition: transform 0.3s ease;
}

.svc-card__icon img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.svc-card__icon-hover {
  display: none;
}

.svc-card:hover .svc-card__icon-default {
  display: none;
}

.svc-card:hover .svc-card__icon-hover {
  display: block;
}

.svc-card:hover .svc-card__icon {
  transform: translateY(-12px);
}

.svc-card__body {
  flex: 1;
  min-width: 0;
  position: relative;
  /* 描述与按钮间距 27px + 按钮高 33px */
  padding-bottom: 60px;
}

.svc-card__title {
  font-family: HarmonyOS_Sans_SC_Bold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  color: #000000;
  line-height: 32px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 14px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.svc-card__title span {
  margin: 0 6px;
  font-weight: 400;
  color: #000000;
  transition: color 0.3s ease;
}

.svc-card__en {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  max-width: 100%;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 21px;
}

.svc-card__desc {
  width: 365px;
  max-width: 100%;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 28px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 0;
}

.svc-card__more {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  background: #ffffff url("../images/arrow-right-s-line.png") center / 6px 9px no-repeat;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.svc-card:hover .svc-card__more {
  background-color: #a42127;
  border-color: #a42127;
  background-image: none;
}

.svc-card:hover .svc-card__more::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/arrow-right-s-line.png") center / 6px 9px no-repeat;
  filter: brightness(0) invert(1);
}

.svc-card:hover .svc-card__title,
.svc-card:hover .svc-card__title span {
  color: #a42127;
}

@media (max-width: 1024px) {
  .services-list__grid {
    grid-template-columns: 1fr;
  }

  .svc-card {
    border-right: none;
    padding: 28px 20px;
  }

  .svc-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid #ececec;
  }

  .svc-card:last-child {
    border-bottom: none;
  }

  .svc-card__desc {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .services-list {
    padding: 12px 0 48px;
  }

  .svc-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .svc-card__title {
    font-size: 17px;
    line-height: 28px;
    flex-wrap: wrap;
    white-space: normal;
    word-break: break-word;
  }

  .svc-card__en {
    font-size: 14px;
    line-height: 22px;
    max-width: 100%;
    word-break: break-word;
  }

  .svc-card__desc {
    font-size: 15px;
    line-height: 26px;
    width: 100%;
    max-width: 100%;
  }
}

