.site-footer {
  padding: 0;
  background: #050706;
  color: #fff;
}

.skg-footer-inner {
  width: min(calc(100% - 48px), 1000px);
  margin-inline: auto;
  padding: 40px 0 28px;
}

.skg-footer-primary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.skg-footer-brand {
  flex: 0 0 auto;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, .34);
}

.skg-footer-brand img {
  width: 84px;
  height: auto;
}

.skg-footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.skg-footer-nav a,
.skg-footer-bottom a,
.skg-footer-bottom span,
.skg-footer-socials > span {
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  line-height: 1.5;
}

.skg-footer-nav a,
.skg-footer-bottom a {
  transition: color 160ms ease;
}

.skg-footer-nav a:hover,
.skg-footer-bottom a:hover {
  color: #fff;
}

.skg-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.skg-footer-socials > span {
  margin-right: 8px;
  color: rgba(255, 255, 255, .82);
}

.skg-footer-socials button {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .58);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.skg-footer-socials button[data-social-channel="微信公众号"]:hover,
.skg-footer-socials button[data-social-channel="微信公众号"]:focus-visible {
  background: #07c160;
  color: #fff;
}

.skg-footer-socials button[data-social-channel="小红书"]:hover,
.skg-footer-socials button[data-social-channel="小红书"]:focus-visible {
  background: #ff2442;
  color: #fff;
}

.skg-footer-socials button[data-social-channel="微信视频号"]:hover,
.skg-footer-socials button[data-social-channel="微信视频号"]:focus-visible {
  background: transparent;
  color: #fff;
}

.skg-footer-socials button[data-social-channel="微信视频号"] {
  background: transparent;
}

.social-video-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) opacity(.72);
  transition: filter 160ms ease;
}

.skg-footer-socials button[data-social-channel="微信视频号"]:hover .social-video-logo,
.skg-footer-socials button[data-social-channel="微信视频号"]:focus-visible .social-video-logo {
  filter: none;
}

.skg-footer-socials button:hover {
  transform: translateY(-2px);
}

.social-qr-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 5;
  width: 190px;
  padding: 10px;
  border: 1px solid rgba(11, 13, 15, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(.96);
  transform-origin: bottom center;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.social-qr-popover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
}

.social-qr-popover--tall {
  width: 172px;
}

.social-qr-popover--tall img {
  max-height: 218px;
}

.social-channel-trigger--qr:hover .social-qr-popover,
.social-channel-trigger--qr:focus-visible .social-qr-popover {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

.skg-footer-socials button::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 2;
  padding: 5px 8px;
  border-radius: 4px;
  background: #fff;
  color: #0b0d0f;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .skg-footer-socials button:hover::after,
  .skg-footer-socials button:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (hover: none) {
  .social-qr-popover {
    display: none;
  }
}

.skg-footer-socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.skg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.skg-footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-channel-dialog {
  width: min(calc(100% - 32px), 320px);
  padding: 42px 28px 28px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0b0d0f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  text-align: center;
}

.social-channel-dialog::backdrop {
  background: rgba(5, 7, 6, .66);
}

.social-channel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f1f1;
  color: #151719;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.social-channel-visual {
  width: 176px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid #d9dddb;
  background: #f3f4f4;
  color: #777c79;
  font-size: 13px;
}

.social-channel-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-channel-dialog h2 {
  margin: 0;
  color: #0b0d0f;
  font-size: 20px;
  line-height: 1.35;
}

.social-channel-dialog p {
  margin: 8px 0 0;
  color: #666b68;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .skg-footer-inner {
    width: min(calc(100% - 32px), 560px);
    padding: 34px 0 24px;
  }

  .skg-footer-primary {
    align-items: flex-start;
  }

  .skg-footer-brand {
    padding-right: 14px;
  }

  .skg-footer-brand img {
    width: 72px;
  }

  .skg-footer-nav {
    gap: 8px 14px;
  }

  .skg-footer-nav a {
    font-size: 12px;
  }

  .skg-footer-bottom,
  .skg-footer-bottom > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skg-footer-socials button {
    transition: none;
  }
}
