/* Site-wide footer. Plain CSS so it renders the same under landing.css (Preline)
   and tailwind.css (daisyUI) shells. */
.site-footer {
  container-type: inline-size;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer *,
.site-footer *::before,
.site-footer *::after { box-sizing: border-box; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: #4f46e5; }
.site-footer a:focus-visible,
.site-footer button:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; border-radius: 4px; }
.site-footer h2,
.site-footer p,
.site-footer ul { margin: 0; padding: 0; }
.site-footer ul { list-style: none; }

.site-footer__inner { max-width: 72rem; margin: 0 auto; padding: 48px 24px 24px; }
.site-footer__top { display: flex; flex-direction: column; gap: 36px; }

.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 18rem; }
.site-footer__logo { display: block; height: 36px; width: auto; }
.site-footer__tagline { color: #475569; }

.site-footer__social { display: flex; align-items: center; gap: 8px; margin-left: -8px; }
.site-footer__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #475569; cursor: pointer;
}
.site-footer__icon:hover,
.site-footer__icon[aria-expanded="true"] { color: #4f46e5; }
.site-footer__icon svg { display: block; }

.site-footer__wechat { position: relative; }
.site-footer__qr { position: absolute; left: 0; bottom: 100%; z-index: 60; padding-bottom: 10px; }
.site-footer__qr[hidden] { display: none; }
.site-footer__qr-card {
  position: relative; width: 216px; padding: 28px 18px 14px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16); text-align: center;
}
.site-footer__qr-card img { display: block; width: 180px; height: 180px; margin: 0 auto; }
.site-footer__qr-card p { margin-top: 8px; color: #0f172a; font-weight: 600; }
.site-footer__qr-close {
  position: absolute; top: 6px; right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px;
  background: #f1f5f9; color: #334155; cursor: pointer;
}
.site-footer__qr-close:hover { background: #e2e8f0; color: #0f172a; }

.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.site-footer__col h2 { margin-bottom: 12px; color: #0f172a; font-size: 14px; font-weight: 600; }
.site-footer__col li + li { margin-top: 8px; }

.site-footer__bottom {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid #e2e8f0;
  color: #64748b; font-size: 13px;
}
.site-footer__legal-left,
.site-footer__legal-right { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; }

/* Footer width, not viewport: app pages put a sidebar beside it. */
@container (min-width: 960px) {
  .site-footer__top { flex-direction: row; justify-content: space-between; gap: 48px; }
  .site-footer__cols { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(7.5rem, auto); gap: 56px; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
