@import url("site-fonts.css");

.site-footer {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-top: 1px solid #dbe5f6;
  color: #172033;
  background:
    radial-gradient(ellipse 55% 100% at 10% 100%, rgba(182, 210, 255, 0.38), transparent 72%),
    linear-gradient(180deg, #eff5ff 0%, #e2eeff 100%) !important;
  font-family: "Site Sans", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer::before {
  display: none !important;
}

.site-footer-inner,
.site-footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1560px, calc(100% - 96px));
  margin: 0 auto;
}

.site-footer-icp {
  color: inherit;
  text-decoration: none;
}

.site-footer-icp:hover,
.site-footer-icp:focus-visible {
  color: #3168ec;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(360px, 1.28fr) minmax(190px, 0.72fr) minmax(210px, 0.78fr) minmax(320px, 1fr);
  gap: 52px;
  align-items: start;
  justify-items: start;
  padding: 64px 0 40px;
  font-size: 17px;
}

.site-footer-brand,
.site-footer-group,
.site-footer-contact {
  align-self: start;
}

.site-footer-brand {
  padding-right: 34px;
  border-right: 1px solid #dbe5f6 !important;
}

.site-footer-group {
  padding-inline: 20px 28px;
  border-right: 1px solid #dbe5f6 !important;
}

.site-footer-contact {
  min-width: 0;
  padding-left: 26px;
}

.site-footer-title,
.site-footer-column-title {
  margin-bottom: 8px;
  color: #172033 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: none;
}

.site-footer-brand p,
.site-footer-contact > div:not(.site-footer-column-title) {
  margin: 0;
  color: #172033 !important;
  font-size: 17px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.site-footer-brand p {
  max-width: 40rem;
}

.site-footer-brand .site-footer-note {
  margin-top: 8px;
  color: #65738b !important;
}

.site-footer-follow {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.site-footer-follow-item {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
}

.site-footer-follow-item img {
  display: block;
  width: 6rem;
  aspect-ratio: 1;
  padding: 0.28rem;
  border: 1px solid #d9e5f8;
  border-radius: 0.7rem;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 20px rgba(42, 82, 147, 0.08);
}

.site-footer-links-grid {
  display: grid;
  gap: 0.78rem;
}

.site-footer-links-grid a,
.site-footer-links-grid span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: #172033 !important;
  font-size: 17px;
  line-height: 1.5;
  text-decoration: none;
  transform-origin: left center;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer-links-grid a:hover,
.site-footer-links-grid a:focus-visible {
  color: #3168ec !important;
  transform: translateX(3px);
}

.site-footer-links-grid a:focus-visible {
  outline: 3px solid #8db0ff;
  outline-offset: 3px;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 42px;
  border-top: 1px solid #dbe5f6 !important;
  color: #172033 !important;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .site-footer-inner {
    grid-template-columns: minmax(300px, 1.2fr) minmax(150px, 0.65fr) minmax(170px, 0.7fr) minmax(270px, 1fr);
    gap: 28px;
  }
}

@media (max-width: 980px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .site-footer-brand,
  .site-footer-group,
  .site-footer-contact {
    padding: 0;
    border-right: 0 !important;
  }
}

@media (max-width: 620px) {
  .site-footer-inner,
  .site-footer-bottom {
    width: calc(100% - 40px);
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 0 28px;
  }

  .site-footer-follow-item img {
    width: 5.25rem;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 28px;
  }
}
