/* =========================================
   在线咨询（polyvServiceBtn 方案，替代智齿 zhiCustomBtn）
   - PC 端：右下角固定按钮，点击弹出卫瓴动态二维码
   - 移动端：底部固定按钮，点击跳转企微链接
   ========================================= */

/* ---- PC 端右下角固定按钮（迁移自原 zc.css 的 .zhiCustomBtn） ---- */
.polyv-service-btn-pc {
    position: fixed;
    box-sizing: border-box;
    font-size: 13px;
    color: rgb(255, 255, 255);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    z-index: 1000;
    width: fit-content;
    border-width: 1px 1px 0px;
    border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-top-color: rgba(0, 0, 0, 0.1);
    border-right-color: rgba(0, 0, 0, 0.1);
    border-left-color: rgba(0, 0, 0, 0.1);
    border-image: initial;
    border-bottom-style: initial;
    border-bottom-color: initial;
    background-color: rgb(48, 122, 232);
    height: 40px;
    right: 0px;
    bottom: 0px;
    margin: 3px 30px;
}
.polyv-service-btn-pc .polyv-cs-l {
    display: block;
    float: left;
    width: 24px;
    height: 24px;
    margin: 7px 7px 0;
}
.polyv-service-btn-pc .polyv-cs-l img {
    width: 100%;
    height: 100%;
}
.polyv-service-btn-pc .polyv-cs-m {
    float: left;
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, .08);
    vertical-align: middle;
}
.polyv-service-btn-pc .polyv-cs-r {
    float: left;
    height: 40px;
    margin: 0 10px;
    line-height: 40px;
    overflow-y: hidden;
    font-size: 13px;
    color: #fff;
}

/* ---- 移动端底部固定按钮 ---- */
.polyv-service-btn-mobile {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    color: #FFFFFF;
    background: linear-gradient(109deg, #1FACFF 7%, #1A5FFF 88%);
    cursor: pointer;
    user-select: none;
}

/* ---- 卫瓴动态二维码弹窗（样式对齐官网 nuxt-official-pc sidebar .plv-wl-tip-mask） ---- */
.polyv-wl-mask {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
}
.polyv-wl-tip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 310px;
    height: 408px;
    background: url('/skin/imgs/consultant.png') no-repeat 50% / cover;
    background-position: center;
    background-size: contain;
}
.polyv-wl-close {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
}
.polyv-wl-close::after,
.polyv-wl-close::before {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #ddd;
    transform: translate(-50%, -50%) rotate(45deg);
    content: '';
}
.polyv-wl-close::after {
    width: 12px;
    height: 2px;
}
.polyv-wl-close::before {
    width: 2px;
    height: 12px;
}

/* ---- 移动端 / PC 端按钮切换 ---- */
@media screen and (max-width: 768px) {
    .polyv-service-btn-pc {
        display: none;
    }
    .polyv-service-btn-mobile {
        display: block;
    }
}
@media screen and (min-width: 769px) {
    .polyv-service-btn-mobile {
        display: none;
    }
}
