/* 码上网 */
/* 底部导航栏外框 */
    .ms-bottom-nav {
        display: none; /* 默认隐藏，移动端媒体查询中开启 */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
        z-index: 999;
        padding-bottom: env(safe-area-inset-bottom);
        box-sizing: content-box;
    }

    .ms-nav-items {
        display: flex;
        height: 100%;
        align-items: center;
        padding: 0 5px;
    }

    .ms-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #000000;
        font-size: 11px;
        font-weight: 500;
        gap: 4px;
        transition: all 0.2s ease;
        border-radius: 12px;
        margin: 0 4px;
    }

    .ms-nav-item svg {
        width: 22px;
        height: 22px;
        fill: #000000;
        transition: fill 0.2s, transform 0.2s;
    }

    .ms-nav-item.active {
        color: #7b2cbf;
        font-weight: 700;
    }

    .ms-nav-item.active svg {
        fill: #7b2cbf;
        transform: translateY(-1px);
    }

    .ms-nav-item:active {
        background: #f8f4ff;
        transform: scale(0.95);
    }

    @media (max-width: 767px) {
        .ms-bottom-nav {
            display: block;
        }
        body {
            padding-bottom: calc(58px + env(safe-area-inset-bottom)) !important;
        }
    }
    /* 底部消息角标 */
    .ms-nav-badge{position:absolute;top:2px;right:14px;min-width:16px;height:16px;line-height:16px;text-align:center;padding:0 4px;border-radius:8px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;box-sizing:border-box}
    /* 全站浮动码上聊天按钮（微信风格圆钮 + 心跳动效，紫色） */
    .ms-float-im{position:fixed;right:16px;bottom:88px;width:56px;height:56px;border-radius:50%;
        background:linear-gradient(135deg,#7b2cbf 0%,#9d4edd 60%,#b57bff 100%);
        box-shadow:0 6px 16px rgba(123,44,191,.35);
        display:flex;align-items:center;justify-content:center;z-index:998;cursor:pointer;text-decoration:none;
        animation:jcBeat 1.8s ease-in-out infinite;transform-origin:center}
    .ms-float-im::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;border-radius:50%;
        background:rgba(123,44,191,.28);z-index:-1;animation:jcRipple 1.8s ease-out infinite}
    .ms-float-im svg{width:30px;height:30px;fill:#fff;filter:drop-shadow(0 1px 1px rgba(0,0,0,.12))}
    .ms-float-im:active{animation-play-state:paused;transform:scale(.94)}
    .ms-float-im .ms-float-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;line-height:18px;text-align:center;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;box-sizing:border-box;display:none;animation:none}
    @keyframes jcBeat{0%,100%{transform:scale(1)}35%{transform:scale(1.09)}55%{transform:scale(1.04)}}
    @keyframes jcRipple{0%{transform:scale(1);opacity:.35}70%{transform:scale(1.35);opacity:0}100%{transform:scale(1.35);opacity:0}}
    @media (min-width: 900px){ .ms-float-im{bottom:24px;right:24px} }
    @media (prefers-reduced-motion: reduce){ .ms-float-im,.ms-float-im::before{animation:none} }
