:root {
  --site-footer-bg: #060d20;
  --site-footer-line: rgba(255, 255, 255, .06);
  --site-footer-link: #b8cbe6;
  --site-footer-muted: #7895bd;
  --site-footer-heading: #58b7ff;
}

/* Canonical site footer. Spacing and dividers mirror the homepage footer. */
.site-footer {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 104px 0 0 !important;
  padding: 82px 0 36px !important;
  border: 0 !important;
  border-top: 1px solid var(--site-footer-line) !important;
  background:
    linear-gradient(180deg, rgba(3, 11, 22, 0), rgba(3, 11, 22, .78)),
    var(--site-footer-bg) !important;
  color: #eaf4ff;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
}

/* Override page-specific CTA-to-footer rules so every page keeps the same gap. */
html body main + footer.site-footer.site-footer,
body [data-site-footer] > .site-footer {
  margin-top: 104px !important;
}

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

.site-footer__inner {
  width: min(100%, 1248px);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr .8fr .7fr 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.site-footer__stack {
  display: contents;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.site-footer__brand img {
  display: block;
  width: 284px;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.site-footer__column h5 {
  margin: 0 0 18px;
  color: var(--site-footer-heading);
  font-family: "Clash Display", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__column a,
.site-footer__email {
  color: var(--site-footer-link);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible,
.site-footer__email:hover,
.site-footer__email:focus-visible {
  color: #fff;
}

.site-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.site-footer__socials a {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(72, 180, 255, .28);
  border-radius: 10px;
  background: #0a2338;
  color: var(--site-footer-link);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  border-color: rgba(72, 180, 255, .7);
  background: #0a2038;
  color: #fff;
}

.site-footer__socials svg {
  width: 18px;
  height: 18px;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 50px;
}

.site-footer__legal p {
  margin: 0;
  color: var(--site-footer-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.site-footer__legal b {
  color: #9fb8dc;
  font-weight: 600;
}

.site-footer__copyright {
  margin: 50px 0 0 !important;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: rgba(120, 149, 189, .72);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .site-footer,
  html body main + footer.site-footer.site-footer,
  body [data-site-footer] > .site-footer {
    margin-top: 64px !important;
  }

  .site-footer {
    padding-top: 58px !important;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer,
  html body main + footer.site-footer.site-footer,
  body [data-site-footer] > .site-footer {
    margin-top: 54px !important;
  }

  .site-footer {
    padding: 48px 0 30px !important;
  }

  .site-footer__inner {
    padding: 0 16px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 28px 22px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__brand img {
    width: 190px;
  }

  .site-footer__stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .site-footer__stack--left {
    grid-column: 1;
  }

  .site-footer__stack--right {
    grid-column: 2;
  }

  .site-footer__column h5 {
    margin-bottom: 12px;
  }

  .site-footer__column ul {
    gap: 9px;
  }

  .site-footer__column a {
    font-size: 14px;
  }

  .site-footer__email {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .site-footer__socials {
    display: grid;
    grid-template-columns: repeat(2, 34px);
    justify-content: start;
    gap: 10px;
    margin-top: 14px;
  }

  .site-footer__socials a {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }

  .site-footer__socials svg {
    width: 16px;
    height: 16px;
  }

  .site-footer__legal {
    gap: 14px;
    margin-top: 34px;
  }

  .site-footer__legal p {
    font-size: 11.5px;
    line-height: 1.75;
  }

  .site-footer__copyright {
    margin-top: 34px !important;
    padding-top: 22px;
    font-size: 12px;
  }
}
