/* Load after page-specific styles so every shared footer uses the same grid. */
body .home-site-footer {
  font-family: "Source Han Sans SC", "Roboto", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body .home-site-footer .home-site-footer__inner {
  box-sizing: border-box;
  width: calc(100% - 80px);
  max-width: 1380px;
  min-height: 0;
  align-items: start;
  padding: 44px 0 38px;
}

body .home-site-footer .home-site-footer__brand {
  min-width: 0;
  padding: 0;
  text-align: left;
}

/* The source logo has transparent padding; align its visible pixels. */
body .home-site-footer .home-site-footer__brand-logo {
  box-sizing: border-box;
  position: relative;
  width: 218px;
  height: 24px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body .home-site-footer .home-site-footer__brand-logo img {
  box-sizing: content-box;
  position: absolute;
  inset: auto;
  top: -9.5px;
  right: auto;
  bottom: auto;
  left: -15.3px;
  display: block;
  transform: none !important;
  width: 249px;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  clip-path: none;
  object-fit: contain;
}

body .home-site-footer .home-site-footer__brand-tagline,
body .home-site-footer .home-site-footer__brand-contact,
body .home-site-footer .home-site-footer__nav > div > a,
body .home-site-footer .home-site-footer__wecom span {
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 24px !important;
  letter-spacing: 0;
  color: #5d7184;
}

body .home-site-footer .home-site-footer__brand-tagline {
  margin: 11px 0 0;
  padding: 0;
  text-align: left;
}

body .home-site-footer .home-site-footer__brand-contact {
  margin: 8px 0 0;
  padding: 0;
}

body .home-site-footer .home-site-footer__brand-socials {
  gap: 14px;
  margin: 16px 0 0;
}

body .home-site-footer .home-site-footer__social {
  width: 36px;
  height: 36px;
  overflow: visible;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
}

body .home-site-footer .home-site-footer__social img {
  position: static !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 36px !important;
  flex: none !important;
  max-width: 100% !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  clip-path: none !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body .home-site-footer .home-site-footer__nav {
  align-self: start;
  padding: 0;
}

body .home-site-footer .home-site-footer__nav > div {
  align-self: start;
  gap: 8px;
}

body .home-site-footer .home-site-footer__nav-title,
body .home-site-footer .home-site-footer__wecom strong {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  min-height: 24px;
  margin: 0 0 3px;
  padding: 0;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 24px !important;
  letter-spacing: 0;
  color: #142b40;
  text-align: left !important;
  transform: none !important;
}

body .home-site-footer .home-site-footer__nav > div > a {
  min-height: 24px;
  margin: 0;
  padding: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
}

body .home-site-footer.zh .home-site-footer__nav > div > a {
  word-break: keep-all;
  overflow-wrap: normal;
}

body .home-site-footer.zh .home-site-footer__products > a {
  white-space: nowrap;
}

/* News is kept in the template for later restoration, but hidden for now. */
body .home-site-footer .home-site-footer__news-link {
  display: none;
}

body .home-site-footer .home-site-footer__wecom {
  position: static;
  align-self: start;
  align-items: center;
  width: 138px;
  margin: 0;
  text-align: center;
}

body .home-site-footer .home-site-footer__wecom strong {
  width: 100%;
  margin-bottom: 11px;
  justify-content: center !important;
  text-align: center !important;
}

body .home-site-footer .home-site-footer__wecom img {
  align-self: center;
  width: 118px;
  height: 118px;
  margin: 0;
}

body .home-site-footer .home-site-footer__wecom span {
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
}

body .home-site-footer .home-site-footer__bottom {
  display: block;
  padding: 0;
}

body .home-site-footer .home-site-footer__bottom-inner {
  width: calc(100% - 80px);
  max-width: 1380px;
}

@media (min-width: 1281px) {
  body .home-site-footer .home-site-footer__inner {
    grid-template-columns: minmax(218px, 250px) minmax(0, 1fr) 138px;
    gap: 0 40px;
  }

  body .home-site-footer .home-site-footer__nav {
    grid-template-columns: max-content max-content max-content max-content !important;
    width: max-content;
    gap: 48px;
    justify-self: center;
    justify-content: start;
  }

  body .home-site-footer .home-site-footer__nav .home-site-footer__products {
    width: max-content;
    grid-template-columns: max-content max-content !important;
    gap: 8px 16px;
  }

  body .home-site-footer.zh .home-site-footer__products > a {
    white-space: nowrap;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  body .home-site-footer .home-site-footer__inner {
    grid-template-columns: 205px minmax(0, 1fr) 126px;
    gap: 0 22px;
  }

  body .home-site-footer .home-site-footer__nav {
    grid-template-columns: max-content max-content max-content max-content !important;
    width: max-content;
    gap: 40px;
    justify-self: center;
    justify-content: start;
  }

  body .home-site-footer .home-site-footer__products {
    width: max-content;
    grid-template-columns: max-content max-content !important;
    gap: 8px 16px;
  }

  body .home-site-footer.zh .home-site-footer__products > a {
    white-space: nowrap;
  }

  body .home-site-footer .home-site-footer__brand-logo {
    width: 198px;
  }

  body .home-site-footer .home-site-footer__brand-logo img {
    width: 226px;
    top: -8.5px;
    left: -13.9px;
  }

  body .home-site-footer .home-site-footer__wecom {
    width: 126px;
  }

  body .home-site-footer .home-site-footer__wecom img {
    width: 108px;
    height: 108px;
  }
}

@media (max-width: 1024px) {
  body .home-site-footer .home-site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: calc(100% - 48px);
    padding: 34px 0;
  }

  body .home-site-footer .home-site-footer__nav {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) !important;
    gap: 20px;
  }

  body .home-site-footer .home-site-footer__products {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 16px;
  }

  body .home-site-footer .home-site-footer__bottom-inner {
    width: calc(100% - 48px);
  }
}

@media (max-width: 768px) {
  body .home-site-footer .home-site-footer__inner,
  body .home-site-footer .home-site-footer__bottom-inner {
    width: calc(100% - 40px);
  }

  body .home-site-footer .home-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 20px;
  }

  body .home-site-footer .home-site-footer__products {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body .home-site-footer .home-site-footer__products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
