/* ============================================================
   移动端底部导航 - 悬浮胶囊 / 毛玻璃增强
   独立加载，覆盖主题 mobile.css 的贴底全宽导航
   暗色模式由主题 .b2dark{filter:invert} 自动适配
   ============================================================ */
@media screen and (max-width:768px){

    /* --- 悬浮胶囊容器 --- */
    #mobile-footer-menu.mobile-footer-menu,
    #mobile-footer-menu.mobile-footer-menu.footer-fixed{
        left:12px;
        right:12px;
        width:auto;
        bottom:calc(constant(safe-area-inset-bottom) + 10px);
        bottom:calc(env(safe-area-inset-bottom) + 10px);
        padding:5px 6px;
        border-radius:24px;
        background:rgba(255,255,255,.72);
        -webkit-backdrop-filter:blur(18px) saturate(180%);
        backdrop-filter:blur(18px) saturate(180%);
        -webkit-box-shadow:0 10px 34px rgba(0,0,0,.14),0 2px 8px rgba(0,0,0,.06);
        box-shadow:0 10px 34px rgba(0,0,0,.14),0 2px 8px rgba(0,0,0,.06);
        border:1px solid rgba(255,255,255,.55);
        box-sizing:border-box;
    }

    /* --- 丝滑显隐过渡（transform + 透明度，缓动曲线）--- */
    #mobile-footer-menu.mobile-footer-menu{
        opacity:1;
        will-change:transform,opacity;
        -webkit-transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .4s ease;
        transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .4s ease;
    }
    /* 主题原方向性 footer-down 交由本模块接管：不再隐藏 */
    #mobile-footer-menu.mobile-footer-menu.footer-down,
    #mobile-footer-menu.mobile-footer-menu.footer-down.footer-fixed{
        -webkit-transform:translate(0,0);
        transform:translate(0,0);
    }
    /* 滚动中隐藏：完全滑出屏幕并淡出（优先于 footer-down） */
    #mobile-footer-menu.mobile-footer-menu.b2-footer-hide,
    #mobile-footer-menu.mobile-footer-menu.footer-down.b2-footer-hide{
        -webkit-transform:translate(0,calc(100% + 24px));
        transform:translate(0,calc(100% + 24px));
        opacity:0;
        pointer-events:none;
    }

    /* --- 紧凑化：菜单项 --- */
    #mobile-footer-menu a{
        padding:2px 0 3px;
    }
    #mobile-footer-menu a i{
        font-size:18px;
        line-height:22px;
    }
    #mobile-footer-menu a span{
        height:20px;
    }
    #mobile-footer-menu a b{
        font-size:10px;
        margin-top:2px;
    }
    #mobile-footer-menu img{
        height:20px;
    }
    #mobile-footer-menu .mobile-footer-left,
    #mobile-footer-menu .mobile-footer-right{
        align-items:center;
    }

    /* --- 中央发布按钮：凸起圆形悬浮钮（保留主题色背景）--- */
    #mobile-footer-menu .mobile-footer-center{
        margin:0 10px;
        align-items:center;
    }
    #mobile-footer-menu .mobile-footer-center button{
        padding:0;
        width:44px;
    }
    #mobile-footer-menu .mobile-footer-center button i{
        width:40px;
        height:40px;
        line-height:40px;
        font-size:20px;
        border-radius:50%;
        margin-top:-12px;
        box-shadow:0 0 0 3px rgba(255,255,255,.92),0 6px 16px rgba(0,0,0,.22);
    }

    /* --- 未读消息红点：相对图标居中 --- */
    #mobile-footer-menu a b.footer-new-msg{
        right:50%;
        margin-right:-14px;
        top:-2px;
    }

    /* --- 网址页「申请入驻」按钮：避免与悬浮胶囊重叠 --- */
    .link-join-button{
        bottom:calc(env(safe-area-inset-bottom) + 70px);
        right:16px;
    }
}
