/* 页脚布局修正
   根因：遗留的裸元素规则 footer{display:flex;justify-content:space-between;max-width:1180px}
   命中了 <footer class="site-footer">，把本应上下堆叠的 .footer-top / .footer-bottom
   变成左右两栏，导致导航区被压窄（第 4 栏换行）、底部栏被拉高（版权与备案号分离）。
   这里只中和该规则对 .site-footer 的影响，不修改原文件。 */
footer.site-footer{display:block;max-width:none;padding:0 0 12px;gap:0}

/* 四栏同一行。断点定在 1200px：栏目链接是 white-space:nowrap，最宽一条约 155px，
   4 栏 +3 个 24px 间距需要导航区 ≥692px，换算到视口约 1140px；取 1200px 留余量。
   低于该宽度沿用原有 3 列 / 2 列规则，避免 nowrap 链接溢出压到相邻栏。 */
@media (min-width:1200px){
  footer.site-footer .footer-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* 底部栏：版权与备案号同一行左右分列，纵向紧凑 */
footer.site-footer .footer-bottom{align-items:center;gap:8px 24px}
footer.site-footer .footer-copyright{flex:0 0 auto;white-space:nowrap}
footer.site-footer .footer-filing{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end}

/* 窄屏恢复换行，避免不折行导致溢出 */
@media (max-width:640px){
  footer.site-footer .footer-copyright{white-space:normal}
  footer.site-footer .footer-filing{justify-content:center}
}
