/* 页脚独立于页面布局；桌面、手机及工作台复用同一套内容和样式。 */
.site-footer.shared-site-footer, footer[data-site-footer] {
  box-sizing: border-box;
  width: auto;
  padding: 56px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--lh-border, #e8e4dd);
  color: var(--lh-text-muted, #64676c);
  background: var(--lh-bg, #f8f7f4);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}
footer[data-site-footer] .site-footer-inner { box-sizing: border-box; width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
footer[data-site-footer] .foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
footer[data-site-footer] .foot-col { min-width: 0; }
footer[data-site-footer] .foot-col h4 { margin: 0 0 20px; font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: inherit; }
footer[data-site-footer] .foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
footer[data-site-footer] .foot-col li { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
footer[data-site-footer] a { color: var(--lh-text-muted, #64676c); text-decoration: none; overflow-wrap: anywhere; }
footer[data-site-footer] .foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
footer[data-site-footer] a:hover, footer[data-site-footer] a:focus, footer[data-site-footer] a:focus-visible { color: var(--lh-text, #242538); background: var(--lh-surface-hover, #efeffa); outline: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
footer[data-site-footer] .todo { font-family: var(--font-mono, monospace); font-size: 11px; border: 1px dashed var(--lh-border, #e8e4dd); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
footer[data-site-footer] .foot-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--lh-border, #e8e4dd); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-size: 13px; }
footer[data-site-footer] .foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 920px) { footer[data-site-footer] .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .site-footer.shared-site-footer, footer[data-site-footer] { padding-top: 32px; }
  footer[data-site-footer] .site-footer-inner { padding-inline: 20px; }
  footer[data-site-footer] .foot-grid { gap: 24px 16px; }
  footer[data-site-footer] .foot-bottom { margin-top: 32px; justify-content: flex-start; gap: 8px 16px; }
}
