/* ===== 手机端右侧浮标收纳（2026-11-25） =====
   现状：4 个 44px 圆形按钮竖向排列，总高 206px，固定贴右边缘，
        在 390px 宽屏上每页都压住正文右侧一窄条（视频控件、数据条数字、正文段落）。
   改法：默认收起为单个小球（44px），点击展开全部；不减少任何入口。
   作用域：仅 max-width:900px，PC 端不受影响。
*/
@media (max-width: 900px) {
    #ypFloatBall {
        max-height: 44px;
        overflow: hidden;
        gap: 9px;
        transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
        -webkit-tap-highlight-color: transparent;
    }
    #ypFloatBall.yp-fb-open {
        max-height: 340px;
    }
    #ypFloatBall .yp-float-item {
        flex: 0 0 auto;
    }
    #ypFloatBall.yp-fb-ready {
        box-shadow: none;
        background: transparent;
    }
    .yp-fb-toggle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1a2a6c 0%, #2a6dc0 100%);
        box-shadow: 0 3px 12px rgba(16, 32, 80, .28);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex: 0 0 auto;
        position: relative;
    }
    .yp-fb-toggle svg {
        width: 19px;
        height: 19px;
        stroke: #fff;
        fill: none;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .3s;
    }
    #ypFloatBall.yp-fb-open .yp-fb-toggle svg {
        transform: rotate(180deg);
    }
    /* 收起态加一个小红点提示“可展开” */
    .yp-fb-toggle::after {
        content: "";
        position: absolute;
        top: 3px;
        right: 3px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e53935;
        border: 1.5px solid #fff;
        opacity: 1;
        transition: opacity .25s;
    }
    #ypFloatBall.yp-fb-open .yp-fb-toggle::after {
        opacity: 0;
    }
}

/* ===== 空 src 兜底：后台未配图的产品页会输出 src="" 或 src="/"，浏览器显示破图图标 =====
   涉及 /product/messhengchanguanlixitong.html（2 处）、/system.html（1 处）、
        /product/databotshujujiqiren.html（1 处）。隐藏后不留破图，版面更干净。 */
@media (max-width: 900px) {
    img[src=""],
    img[src="/"],
    img:not([src]) {
        display: none !important;
    }
}
