diff --git a/web/navi.css b/web/navi.css index 726662f..6afbf29 100644 --- a/web/navi.css +++ b/web/navi.css @@ -765,6 +765,28 @@ html[data-theme] .minimal-home > .item-group-container > .minimal-section-inner padding-bottom: 84px !important; scrollbar-width: thin; } +/* ── mini 页:备案号脱离内容流、固定贴底 ── + 实测:.navi-footer-host 处在内容流中,页脚 top 随内容高度在 481~527 间漂移, + 内容少的页签下备案号位置就不对(用户反馈"都成这样了")。 + 让它 fixed 贴底后,内容框自然吃满剩余高度、高度恒定, + 备案号位置与内容多少无关。 */ +html[data-theme] body:has(.minimal-home) .navi-footer-host { + position: fixed !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + z-index: 3 !important; + margin: 0 !important; + pointer-events: none; /* 只挡视觉,不挡点击 */ +} +html[data-theme] body:has(.minimal-home) .navi-footer-host > * { + pointer-events: auto; /* 内部链接仍可点 */ +} +/* 内容框为固定页脚让出空间,避免最后一行被备案号压住 */ +html[data-theme] .minimal-home > .item-group-container > .minimal-section-inner { + padding-bottom: 96px !important; +} + /* 页签行固定:不参与滚动,也不被压缩 */ html[data-theme] .minimal-home .minimal-headings-wrap { flex: 0 0 auto !important;