.site-footer {
  --footer-accent: #9dbe3f;
  --footer-gutter: 52px;
  position: relative;
  isolation: isolate;
  padding: 72px var(--footer-gutter) 32px;
  overflow: clip;
  color: #fff;
  background: #000;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

.site-footer p,
.site-footer h2 {
  margin: 0;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(520px,1.55fr) minmax(180px,.55fr) minmax(280px,.75fr);
  gap: 64px;
  align-items: start;
}

.site-footer__brand {
  display: grid;
  justify-items: start;
}

.site-footer__brand > img {
  display: block;
  width: 118px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-footer__brand h2 {
  margin-top: 42px;
  font-family: "Alimama ShuHeiTi", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(32px,3vw,44px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.site-footer__brand h2 span {
  display: block;
  white-space: nowrap;
}

.site-footer__mail-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 0 24px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #000;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(.16,.78,.24,1);
}

.site-footer__mail-cta span {
  font-size: 19px;
  font-weight: 400;
  transition: transform 220ms cubic-bezier(.16,.78,.24,1);
}

.site-footer__mail-cta:hover,
.site-footer__mail-cta:focus-visible {
  border-color: var(--footer-accent);
  background: var(--footer-accent);
}

.site-footer__mail-cta:hover span,
.site-footer__mail-cta:focus-visible span {
  transform: translate(3px,-3px);
}

.site-footer__mail-cta:focus-visible,
.site-footer__icon:focus-visible,
.site-footer__meta button:focus-visible,
.site-footer__nav a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 4px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

.site-footer__nav p,
.site-footer__connect > p {
  margin-bottom: 10px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}

.site-footer__nav a {
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.site-footer__connect {
  position: relative;
}

.site-footer__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__icon {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 220ms cubic-bezier(.16,.78,.24,1);
}

.site-footer__icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__icon:hover,
.site-footer__icon:focus-visible {
  border-color: var(--footer-accent);
  color: var(--footer-accent);
  transform: translateY(-3px);
}

.site-footer__icon::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  color: #fff;
  background: #171717;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  content: attr(data-tooltip);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,4px);
  transition: opacity 160ms ease, transform 180ms ease, visibility 0s linear 180ms;
  visibility: hidden;
  white-space: nowrap;
}

.site-footer__icon:hover::after,
.site-footer__icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%,0);
  transition-delay: 0s;
  visibility: visible;
}

.site-footer__wechat-popover {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 40;
  width: 244px;
  padding: 12px;
  border-radius: 10px;
  color: #000;
  background: #fff;
  box-shadow: 0 22px 64px rgba(0,0,0,.45);
  text-align: center;
}

.site-footer__wechat-popover img {
  display: block;
  width: 220px;
  height: auto;
}

.site-footer__wechat-popover p {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.site-footer__meta {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: center;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.52);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .12em;
}

.site-footer__meta p:nth-child(2) {
  justify-self: center;
}

.site-footer__meta button {
  justify-self: end;
  padding: 8px 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.site-footer__meta button span {
  display: inline-block;
  margin-left: 8px;
}

.site-footer__meta button:hover,
.site-footer__meta button:focus-visible {
  color: var(--footer-accent);
}

@media (min-width: 900px) and (max-width: 1211px) {
  .site-footer__main {
    grid-template-columns: minmax(420px,1.55fr) minmax(100px,.55fr) minmax(210px,.75fr);
    gap: 20px;
  }

  .site-footer__brand h2 {
    font-size: 28px;
  }
}

@media (max-width: 899px) {
  .site-footer {
    --footer-gutter: 24px;
    padding-top: 56px;
    padding-bottom: 28px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .site-footer__brand h2 {
    margin-top: 32px;
    font-size: clamp(28px,8vw,38px);
  }

  .site-footer__brand h2 span {
    white-space: normal;
  }

  .site-footer__wechat-popover {
    top: auto;
    right: auto;
    bottom: calc(100% + 18px);
    left: 0;
  }

  .site-footer__meta {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    margin-top: 56px;
  }

  .site-footer__meta p:nth-child(2),
  .site-footer__meta button {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    animation: none !important;
    transition: none !important;
  }

  .site-footer__mail-cta span,
  .site-footer__icon,
  .site-footer__icon::after {
    transform: none !important;
  }

  .site-footer__icon::after {
    right: 0;
    left: auto;
  }
}
