/*
 * Footer — 600px tall in the mockup, reused on every page.
 * Measured (home 2.0, section starts y6477): wordmark 679×74 @y6595,
 * tagline @y6694, rule @y6773, contact row @y6801–6917, rule @y6945,
 * copyright @y6973.
 * Background differs per page: #fff on 首页/空间娱乐, #e8e8e8 on the other分类页.
 */

.site-footer {
  padding-block: 118px 92px;
  background: var(--footer-bg, var(--c-white));
  color: var(--c-black);
}

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

.site-footer__wordmark {
  width: 679px;
  height: 74px;
  margin-inline: auto;
}

.site-footer__tagline {
  margin-top: 25px; /* wordmark bottom 5219 → ink 5244 */
  font-size: 24px;
  font-weight: var(--fw-regular);
  line-height: 1;
}

.site-footer__rule {
  height: 2px;
  margin-top: 55px; /* tagline box bottom 5268 → rule 5323 */
  background: var(--c-line);
}

.site-footer__rule + .site-footer__contact {
  margin-top: 26px; /* rule bottom 5325 → row top 5351 */
}

/*
 * The row is not exactly centred in the mockup: measured against the page centre
 * the whole block sits 5px to the left (title ink 577, divider 975, last QR 1329),
 * so the trailing padding pulls the centred content back by half of it.
 */
.site-footer__contact {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-right: 10px;
}

.site-footer__contact-title {
  margin-top: 32px; /* ink 5382, 24px Bold ink measured 152 × 19 */
  font-size: 24px;
  font-weight: var(--fw-black); /* ink mass 121.8 — heavier than Bold's 101.8 */
  line-height: 1;
}

.site-footer__phone {
  margin-top: 25px; /* ink tops 5382 → 5406 */
  margin-left: 77px; /* title box right 729 → phone box left 806 */
  font-size: var(--fs-note);
  line-height: 24px; /* ink tops 5382 → 5406 */
  white-space: nowrap;
}

.site-footer__phone dd {
  margin: 0;
}

.site-footer__divider {
  width: 2px;
  height: 117px; /* 5351 → 5468 */
  margin-left: 77px; /* phone box right 898 → 975 */
  background: var(--c-line);
}

.site-footer__social {
  display: flex;
  margin-top: 8px; /* row top 5351 → QR top 5359 */
  margin-left: 69px; /* divider right 977 → first QR 1046 */
  gap: 24px;
}

.site-footer__social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Empty QR stays the mockup #D9D9D9 tile; uploaded codes fill the same box. */
.site-footer__qr {
  position: relative;
  z-index: 0;
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: #d9d9d9;
  cursor: zoom-in;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
  will-change: transform;
}

.site-footer__qr:hover,
.site-footer__qr:focus-visible {
  z-index: 20;
  box-shadow: 0 12px 36px rgb(0 0 0 / 22%);
  outline: 1px solid rgb(0 0 0 / 10%);
  transform: scale(2);
}

.site-footer__qr img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: #fff;
}

.site-footer__social-item picture img {
  margin-top: 8px; /* QR bottom 5439 → icon 5447 */
}

.site-footer__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-footer__contact + .site-footer__rule {
  margin-top: 27px; /* row bottom 5468 → rule 5495 */
}

.site-footer__copyright {
  /* `top` keeps the footer's overall height: the 1px is an ink correction. */
  position: relative;
  top: -1px;
  margin-top: 26px; /* rule bottom 5497 → ink 5523 */
  font-size: 12px; /* ink measured 442 × 13 */
  font-weight: var(--fw-medium);
  line-height: 1;
  text-align: center;
}

@media (max-width: 900px) {
  .site-footer {
    padding-block: 56px 40px;
  }

  .site-footer__wordmark {
    width: min(340px, 70vw);
    height: auto;
  }

  .site-footer__tagline {
    margin-top: 16px;
    font-size: var(--fs-body);
  }

  .site-footer__rule {
    margin-top: 32px;
  }

  .site-footer__contact {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding-right: 0;
    text-align: center;
  }

  .site-footer__contact-title,
  .site-footer__phone,
  .site-footer__social {
    margin: 0;
  }

  .site-footer__divider {
    display: none;
  }

  .site-footer__social {
    gap: 16px;
  }

  .site-footer__qr {
    width: 68px;
    height: 68px;
  }
}

.social-qr {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

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

.social-qr__mask {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 55%);
}

.social-qr__box {
  position: relative;
  z-index: 1;
  padding: 28px 24px 24px;
  background: #fff;
}

.social-qr__box img {
  display: block;
  width: min(240px, 70vw);
  height: auto;
}

.social-qr__close {
  position: absolute;
  top: 4px;
  right: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
