/* Site footer — 香蕉视频 dark theme (PC + H5) */

.site-footer {
  --footer-bg: #282828;
  --footer-text: #fff;
  --footer-muted: rgba(255, 255, 255, 0.55);
  --footer-divider: rgba(255, 255, 255, 0.2);
  --footer-rule: rgba(255, 255, 255, 0.05);
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-theme: var(--color-primary-500, #ecd227);
  --footer-brand-font: "Alimama FangYuanTi VF", "PingFang SC", "Noto Sans SC", sans-serif;
  --footer-font: "PingFang SC", "Noto Sans SC", sans-serif;
  width: 100%;
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
  font-family: var(--footer-font);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer__h5 {
  display: none;
}

.site-footer__pc {
  display: block;
  width: 100%;
  padding: 36px 200px;
  box-sizing: border-box;
}

.site-footer__pc-inner {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.site-footer__pc-top {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.site-footer__pc-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.site-footer__pc-right {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 36px;
}

.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer__brand--center {
  justify-content: center;
}

.site-footer__brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.site-footer__brand-logo--pc {
  height: 46px;
  max-width: 220px;
  border-radius: 0;
}

.site-footer__brand-logo--h5 {
  height: 28px;
  max-width: 110px;
  border-radius: 0;
}

.site-footer__brand--center .site-footer__brand-logo--h5 {
  height: 28px;
}

.site-footer__tagline {
  margin: 0;
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.site-footer__intro {
  margin: 0;
  max-width: 648px;
  color: var(--footer-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
}

.site-footer__intro--h5 {
  max-width: none;
  font-size: 12px;
  line-height: 18px;
}

.site-footer__nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer__nav--pc {
  padding: 2px 0;
  gap: 15px;
}

.site-footer__nav-link {
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  word-wrap: break-word;
  white-space: nowrap;
}

.site-footer__nav-link:hover {
  color: var(--footer-theme);
}

.site-footer__divider {
  flex-shrink: 0;
  width: 1px;
  height: 23px;
  background: var(--footer-divider);
}

.site-footer__socials {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.site-footer__socials:not(:has(a)) {
  display: none;
}

.site-footer__social {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.site-footer__social:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-footer__social img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-footer__qr {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 17px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.site-footer__qr-frame {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-footer__qr-code {
  width: 90px;
  height: 90px;
}

.site-footer__qr-code img {
  display: block;
  width: 90px !important;
  height: 90px !important;
}

.site-footer__qr-label {
  text-align: center;
  color: var(--footer-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.site-footer__rule {
  align-self: stretch;
  height: 1px;
  background: var(--footer-rule);
}

.site-footer__rule--h5 {
  background: var(--footer-border);
}

.site-footer__copy {
  margin: 0;
  color: var(--footer-muted);
  font-weight: 400;
  word-wrap: break-word;
}

.site-footer__copy--pc {
  align-self: stretch;
  font-size: 14px;
  line-height: 20px;
}

.site-footer__copy--h5 {
  align-self: stretch;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
}

.site-footer__to-top {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.site-footer__to-top img {
  width: 36px;
  height: 36px;
  display: block;
}

.site-footer__to-top:hover {
  opacity: 0.9;
}

@media (max-width: 1480px) {
  .site-footer__pc {
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media (max-width: 1100px) {
  .site-footer__pc {
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-footer__pc-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .site-footer {
    background: transparent;
    border-top: none;
    padding: 0 16px 18px;
    box-sizing: border-box;
  }

  .site-footer__pc {
    display: none;
  }

  .site-footer__h5 {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 16px;
    box-sizing: border-box;
    /* 设计稿为白 5% 透明底；主站浅色页上用实色底保证可读 */
    background: #282828;
    border-radius: 18px;
    border: 1px solid var(--footer-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
  }

  .site-footer__h5-text {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
  }

  .site-footer__nav--h5 {
    align-self: stretch;
    justify-content: center;
    align-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .site-footer__nav--h5 .site-footer__nav-link {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }

  .site-footer__nav--h5 .site-footer__divider {
    height: 12px;
    background: var(--footer-border);
  }

  .site-footer__h5-bottom {
    align-self: stretch;
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
  }

  .site-footer__h5-bottom .site-footer__socials {
    gap: 16px;
  }
}
