.mobile-site-footer {
  display: none;
}

.mobile-site-back-to-top {
  display: none;
}

  .mobile-site-footer {
    box-sizing: border-box;
    display: none;
    width: 100%;
    padding: 24px 16px calc(40px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: #0d0f10;
    color: rgba(255, 255, 255, 0.9);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  .mobile-site-footer__brand,
  .mobile-site-footer__brand img {
    display: block;
    width: 106px;
    height: 32px;
  }

  .mobile-site-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(12px, 3.5vw, 14px);
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .mobile-site-footer__nav {
    display: flex;
    width: min(100%, 343px);
    min-height: 50px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
  }

  .mobile-site-footer__nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(12px, 3.5vw, 14px);
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-site-footer__nav > span {
    width: 1px;
    height: 20px;
    flex: 0 0 1px;
    background: rgba(255, 255, 255, 0.2);
  }

  .mobile-site-footer__addresses {
    display: flex;
    width: min(100%, 297px);
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
  }

  .mobile-site-footer__addresses p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    overflow-wrap: anywhere;
  }

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

  .mobile-site-footer__addresses .mobile-site-footer__latest {
    color: #e9b54b;
  }

  .mobile-site-footer__age {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 32px;
    padding: 6px 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    white-space: nowrap;
  }

  .mobile-site-footer__age img {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .mobile-site-back-to-top {
    position: fixed;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    box-sizing: border-box;
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    place-items: center;
    background: rgba(24, 27, 29, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-site-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .mobile-site-back-to-top > span {
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .mobile-site-back-to-top:focus-visible {
    outline: 2px solid #e9b54b;
    outline-offset: 2px;
  }
@media (max-width: 768px) {
  .mobile-site-footer { display: flex; }
  .mobile-site-back-to-top { display: grid; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .mobile-site-back-to-top {
    transition: none;
  }
}
