/* 移动端常驻底部 tab 栏。仅手机断点显示;桌面隐藏(走顶部导航)。
   作为站点外壳放进 root layout,路由切换不重载 → App 式底栏 + 同 URL。
   注:640px 断点需与 globals.css 手机规则保持一致。 */
.m-tabbar { display: none; }

@media (max-width: 640px) {
  .m-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    justify-content: space-around;
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    backdrop-filter: saturate(150%) blur(8px);
  }
  .m-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    color: var(--fg-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 120ms;
  }
  .m-tabbar a svg { width: 22px; height: 22px; }
  .m-tabbar a.active { color: var(--accent); }
  .m-tabbar a:active { opacity: 0.6; }
}
