.site-footer-wrap {
  display: flex;
  min-height: 150px;
  box-sizing: border-box;
  flex-direction: column;
  width: 100vw;
  margin-top: 100px;
  margin-left: calc(50% - 50vw);
  padding: 0 0 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: clamp(36px, 4vw, 76px);
  width: min(calc(100% - 120px), 1460px);
  margin: 0 auto;
  color: #838383;
  font-size: 14px;
}

.site-footer-item {
  min-width: 0;
  width: min(100%, 260px);
  text-align: center;
}

.site-footer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: #838383;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.site-footer-toggle i {
  position: relative;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
}

.site-footer-toggle i::before,
.site-footer-toggle i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.site-footer-toggle i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.site-footer-toggle[aria-expanded="true"] i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.site-footer-panel {
  padding-top: 18px;
  color: #333;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.site-footer-panel[hidden] {
  display: none;
}

.site-footer-panel address {
  max-width: 260px;
  font-style: normal;
  text-align: center;
}

.site-footer-panel a:hover,
.site-footer-panel a:focus-visible {
  color: #d7000f;
}

.site-footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.site-footer-social[hidden] {
  display: none;
}

.site-footer-qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
}

.site-footer-qr-card figcaption {
  color: #777;
  font-size: 11px;
}

.site-footer-qr {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background-color: #f3f3f3;
}

.site-footer-qr--wechat {
  overflow: hidden;
  background: #fff;
}

.site-footer-qr--wechat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer-qr--xiaohongshu {
  border: 1px solid #ddd;
  color: #aaa;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.site-footer-back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  margin: auto auto 0;
  padding-top: 18px;
  color: #555;
  font-size: 12px;
}

.site-footer-back-top i {
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

@media (max-width: 900px) {
  .site-footer-wrap {
    min-height: 150px;
    padding-bottom: 16px;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 48px);
    gap: 12px 32px;
  }

  .site-footer-item {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-footer-wrap {
    min-height: 150px;
    padding-bottom: 14px;
  }

  .site-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: calc(100% - 20px);
    gap: 0;
  }

  .site-footer-item {
    display: contents;
  }

  .site-footer-toggle {
    grid-row: 1;
    gap: 3px;
    padding-bottom: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .site-footer-item:nth-child(1) .site-footer-toggle {
    grid-column: 1;
  }

  .site-footer-item:nth-child(2) .site-footer-toggle {
    grid-column: 2;
  }

  .site-footer-item:nth-child(3) .site-footer-toggle {
    grid-column: 3;
  }

  .site-footer-item:nth-child(4) .site-footer-toggle {
    grid-column: 4;
  }

  .site-footer-toggle i {
    flex-basis: 7px;
    width: 7px;
    height: 7px;
  }

  .site-footer-toggle i::before,
  .site-footer-toggle i::after {
    width: 7px;
  }

  .site-footer-panel {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    padding: 10px 6px 6px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .site-footer-panel::-webkit-scrollbar {
    display: none;
  }

  .site-footer-panel address {
    max-width: none;
    white-space: nowrap;
  }

  .site-footer-social {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-toggle i::before,
  .site-footer-toggle i::after {
    transition: none;
  }
}
