/* 公共页脚 */

.site-footer {
  width: 100%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-soft);
}

.site-footer__inner {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 56px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social {
  display: flex;
  gap: 10px;
}

.social__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.social__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.site-footer__links {
  display: flex;
  align-items: flex-start;
  gap: 72px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-download {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
}

.footer-download .qr-box img {
  width: 84px;
  height: 84px;
}

.footer-download__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-download__copy strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

.footer-download__copy p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 18px;
}

.site-footer__rule {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line-soft);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__legal p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 20px;
}

.site-footer__mobile-adult {
  display: none;
}

@media (max-width: 1280px) {
  .site-footer__links {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .site-footer__inner {
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .site-footer__brand {
    align-items: center;
    text-align: center;
  }

  .site-footer__links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-download {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 100%;
  }

  .site-footer__legal {
    text-align: center;
  }

  .site-footer__legal p {
    font-size: 12px;
    line-height: 18px;
  }
}

@media (max-width: 768px) {
  .site-footer__inner {
    padding: 32px var(--h5-gutter) 24px;
    gap: 18px;
    align-items: center;
    text-align: center;
  }

  .site-footer__top {
    gap: 18px;
  }

  .site-footer__brand {
    gap: 12px;
  }

  .site-footer__brand .brand__logo {
    width: 140px;
    height: 34px;
  }

  .site-footer__brand .block__subtitle {
    font-size: 13px;
    line-height: 20px;
  }

  .social__item {
    width: 36px;
    height: 36px;
  }

  .social__item .icon {
    width: 15px;
    height: 15px;
  }

  .site-footer__links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-col h3,
  .footer-download {
    display: none;
  }

  .footer-col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-col a {
    font-size: 13px;
  }

  .site-footer__legal {
    align-items: center;
  }

  .site-footer__legal p {
    font-size: 11px;
    line-height: 16px;
    text-align: center;
  }
}
