/*!
 * footer.css — NiqiuClub 全站页脚（唯一样式来源）
 *
 * 改这个文件 = 所有页面同步生效。
 * 页面里只需写占位：<footer class="site-footer" data-site-footer></footer>
 * 内容（备案号等）由 common.js 的 NQ.mountFooter() 统一注入。
 */

/* 页脚钉底：页面内容不足一屏时，页脚也贴在视口最下方 */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

.site-footer {
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--bg-soft, var(--bg, transparent));
  padding: 1.25rem 1.5rem;
  margin-top: var(--footer-mt, 4.5rem);
  font-size: .8125rem;
  color: var(--text-3, var(--text-dim, #94a3b8));
  transition: background-color .4s var(--ease, ease), border-color .4s var(--ease, ease), color .4s var(--ease, ease);
}

/* JS 注入前的占位高度，避免页脚出现时页面跳动 */
.site-footer:empty { min-height: 3.25rem; }

.site-footer .inner {
  max-width: var(--page-w, 1320px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  text-align: center;
}

/* 备案链接 */
.site-footer .beian { color: inherit; text-decoration: none; }
.site-footer .beian:hover { text-decoration: underline; }
.site-footer .beian-icon { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

@media (max-width: 560px) {
  .site-footer { padding: 1.1rem 1rem; margin-top: var(--footer-mt, 3rem); }
  .site-footer .inner { gap: .4rem 0.75rem; }
}
