:root {
  --site-footer-paper: #f9f9f7;
  --site-footer-ink: #172024;
  --site-footer-copy: #526066;
  --site-footer-muted: #7a858a;
  --site-footer-line: rgba(23, 32, 36, 0.12);
  --site-footer-accent: #a83c36;
}

.home-footer {
  margin-top: 28px;
  border-top: 1px solid var(--site-footer-line);
  background: var(--site-footer-paper);
  color: var(--site-footer-ink);
  font-family: "SBC Home Sans", "SBC Body Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.home-footer .home-shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}

.home-footer a {
  color: inherit;
}

.home-footer a:focus-visible {
  outline: 3px solid rgba(168, 60, 54, 0.42);
  outline-offset: 4px;
}

.home-footer-lead {
  display: block;
  padding-top: 48px;
  padding-bottom: 42px;
}

.home-footer-brand {
  display: flex;
  gap: 20px;
  align-items: center;
}

.home-footer-brand > .home-footer-logo {
  width: 78px;
  height: 62px;
  object-fit: contain;
}

.home-footer-brand > div {
  display: grid;
  gap: 7px;
}

.home-footer-brand .home-footer-wordmark {
  display: block;
  width: 122px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.home-footer-brand span {
  color: var(--site-footer-copy);
  font-size: 13px;
  white-space: nowrap;
}

.home-footer-details {
  display: grid;
  grid-template-columns: 0.82fr 1.08fr 1.48fr auto;
  gap: clamp(30px, 4vw, 58px);
  align-items: start;
  padding-top: 38px;
  padding-bottom: 42px;
}

.home-footer-details > div:not(:first-child) {
  min-height: 112px;
  padding-left: clamp(24px, 2.7vw, 42px);
  border-left: 1px solid var(--site-footer-line);
}

.home-footer-details strong {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 760;
}

.home-footer-details p {
  margin: 0;
  color: var(--site-footer-copy);
  font-size: 14px;
  line-height: 1.82;
}

.home-footer-details a {
  text-decoration: none;
}

.home-footer-details a:hover,
.home-footer-details a:focus-visible {
  color: var(--site-footer-accent);
}

.home-footer-qr {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.home-footer-qr__slot {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(23, 32, 36, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.home-footer-qr__slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-footer-qr > strong {
  margin: 0;
  color: var(--site-footer-copy);
  font-size: 12px;
  font-weight: 650;
}

.home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 26px;
}

.home-footer-bottom p {
  margin: 0;
  color: var(--site-footer-muted);
  font-size: 11px;
}

.home-footer-bottom p a {
  color: inherit;
  text-decoration: none;
}

.home-footer-bottom p a:hover,
.home-footer-bottom p a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.home-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.home-footer-legal a {
  color: var(--site-footer-muted);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .home-footer-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 36px;
  }

  .home-footer-details > div:not(:first-child) {
    padding-left: 0;
    border-left: 0;
  }

  .home-footer-details > div:nth-child(n + 3) {
    padding-top: 30px;
    border-top: 1px solid var(--site-footer-line);
  }
}

@media (max-width: 720px) {
  .home-footer .home-shell {
    width: calc(100% - 32px);
  }

  .home-footer-details {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-footer-details > div:nth-child(n + 2) {
    padding-top: 26px;
    border-top: 1px solid var(--site-footer-line);
  }

  .home-footer-details > div:first-child {
    min-height: 0;
  }

  .home-footer-qr {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
  }

  .home-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-footer-legal { justify-content: flex-start; }

  .home-footer-brand > .home-footer-logo {
    width: 62px;
    height: 52px;
  }

  .home-footer-brand .home-footer-wordmark {
    width: 108px;
  }
}
