/* ============================================================================
 * nav-safe.css v2 —— 底部导航栏安全区（防遮挡）
 * ----------------------------------------------------------------------------
 * ## ⛔ 站长原话（2026-11-02 逐字）
 * ```
 *   「首页战报底部一片空白，没东西还能往下拉，你bug也太多了吧。。。」
 * ```
 *
 * ## ⛔ 我的错：**三层 padding 叠加**
 * ```
 *   旧版同时给 html / body 都加了 padding-bottom：
 *
 *     html, body {
 *       padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
 *     }
 *
 *   而 bundle 里本来就有：
 *     .app-shell  { min-height:100vh; padding-bottom: var(--tb-space) }
 *
 *   实测（390x760）：
 *     documentElement.scrollHeight = **1513**
 *     视口                          = 760
 *     ⇒ 多出 **753px** 可滚空白
 *     .app-shell  390x1341  pb=92px   ← bundle 自己的
 *     #area       390x1214
 *     section.rpv 366x1208  ← 内容实际只到这里
 * ```
 *
 * ## ★ 修法：**只保留一层**，且用 min 而非 calc 累加
 * ```
 *   html { padding-bottom: 0 }         ← 去掉
 *   body { padding-bottom: 0 }         ← 去掉
 *   .app-shell { padding-bottom: 92px } ← bundle 已有，不再追加
 *
 *   ⇒ 只给 body 加**差额**：导航栏 72px 已经通过 .app-shell 的 --tb-space 留过
 *     若 --tb-space 不够，才补差额；够就不动
 * ```
 *
 * ## ★ 最安全的做法：什么都不加
 * ```
 *   bundle 的 .app-shell { min-height:100vh; padding-bottom:var(--tb-space) }
 *   已经把导航栏高度算进去了（--tb-space 由 bundle 定义）
 *   ⇒ 外部文件**不应该再加 padding**
 *   ⇒ 本文件只做一件事：把 html/body 的 padding 明确归零（防止别的文件加）
 * ```
 * ========================================================================== */

/* ── 归零：⛔ 不要给 html/body 加 padding-bottom ──────────────────────── */
html,
body {
  padding-bottom: 0 !important;
}

/* ── 兜底：只在 **确实没有** 内部 padding 的滚动容器上留空间 ────────────
 * ⛔ 排除 .app-shell（它自己有 --tb-space）
 * ⛔ 排除 .app-main（padding:6px 12px 0，横向的）
 */
[data-agh-scroll],
.agh-scroll {
  scroll-padding-bottom: 84px;
}

/* ── 变量保留（其它文件可能引用），但不再驱动 padding ──────────────── */
:root {
  --agh-nav-h: 72px;
  --agh-nav-safe: 84px;
}
