/* 通用联系侧栏 / 手机底部导航 —— PC 与手机互斥显示 */

/* 微信二维码弹层默认隐藏（仅手机端点击微信时显示） */
.pz_wx_layer {
    display: none !important;
}
@media only screen and (max-width: 996px) {
    .pz_wx_layer.pz_open {
        display: flex !important;
    }
}

/* ===== 电脑端右侧浮动栏 ===== */
@media only screen and (min-width: 997px) {
    .pz_mbbot {
        display: none !important;
    }

    .pz_side {
        position: fixed;
        right: 0;
        bottom: 50%;
        margin-bottom: -160px;
        z-index: 99990;
        font-family: Microsoft Yahei, Arial, sans-serif;
    }

    .pz_side ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .pz_side li {
        position: relative;
        width: 68px;
        height: 68px;
        background: #1f4f80;
        border-bottom: 1px solid #fff;
        color: #fff;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: background .25s;
    }

    .pz_side li:last-child {
        border-bottom: none;
    }

    .pz_side li:hover {
        background: #16406b;
    }

    .pz_side li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #fff;
        text-decoration: none;
    }

    .pz_side li svg {
        width: 26px;
        height: 26px;
        fill: #fff;
        margin-bottom: 5px;
    }

    .pz_side li span {
        font-size: 13px;
        line-height: 1;
        letter-spacing: .5px;
    }

    /* 悬浮展开面板 */
    .pz_side_pop {
        position: absolute;
        right: 100%;
        top: 0;
        height: 68px;
        width: 168px;
        background: #1f4f80;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transform: translateX(12px);
        transition: all .25s ease;
    }

    .pz_side li:hover .pz_side_pop {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .pz_side_pop_qr {
        top: -59px;
        width: 168px;
        height: 186px;
        padding: 10px 10px 24px;
        box-sizing: border-box;
        justify-content: center;
    }

    .pz_side_pop_qr img {
        width: 148px;
        height: 148px;
        display: block;
        background: #fff;
    }

    .pz_side_pop_qr span {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 4px;
        text-align: center;
        font-size: 12px;
        color: #fff;
    }

    /* 返回顶部：滚动后才出现 */
    .pz_side .pz_top {
        opacity: 0;
        visibility: hidden;
        height: 0;
        border-bottom: none;
        overflow: hidden;
        transition: opacity .25s, height .25s;
    }

    .pz_side.pz_show .pz_top {
        opacity: 1;
        visibility: visible;
        height: 68px;
        border-bottom: none;
    }
}

/* ===== 手机端底部固定栏 ===== */
@media only screen and (max-width: 996px) {
    .pz_side {
        display: none !important;
    }

    body.pz_has_mbbot {
        padding-bottom: 60px;
    }

    .pz_mbbot {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 99990;
        display: flex;
        width: 100%;
        height: 56px;
        background: #1f4f80;
        font-family: Microsoft Yahei, Arial, sans-serif;
    }

    .pz_mbbot li {
        flex: 1;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: 1px solid rgba(255, 255, 255, .45);
    }

    .pz_mbbot li:last-child {
        border-right: none;
    }

    .pz_mbbot a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
    }

    .pz_mbbot svg {
        width: 22px;
        height: 22px;
        fill: #fff;
        margin-bottom: 4px;
    }

    /* 手机端微信二维码弹层 */
    .pz_wx_layer {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, .6);
        z-index: 100000;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .pz_wx_layer.pz_open {
        display: flex;
    }

    .pz_wx_layer_box {
        background: #fff;
        border-radius: 6px;
        padding: 16px;
        text-align: center;
        width: 70%;
        max-width: 280px;
    }

    .pz_wx_layer_box img {
        width: 100%;
        max-width: 220px;
        margin: 0 auto 8px;
        display: block;
    }

    .pz_wx_layer_box p {
        font-size: 14px;
        color: #333;
        line-height: 1.6;
        margin: 0;
    }
}

/* ===== 留言页二维码块（PC + 手机都用） ===== */
.pz_wx_box {
    display: inline-block;
    margin-top: 30px;
    text-align: center;
}

.pz_wx_box img {
    width: 150px;
    height: 150px;
    display: block;
    background: #fff;
    padding: 6px;
    border: 1px solid #e5e5e5;
    box-sizing: content-box;
}

.pz_wx_box p {
    font-size: 14px;
    color: #666;
    line-height: 2;
}
