/*
 * 微信悬浮咨询
 */
/* =========================================================
   微信悬浮咨询主体
========================================================= */

.wx-float-contact {
    position: fixed;
    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 9999;

    font-family: "Microsoft YaHei", Arial, sans-serif;
    box-sizing: border-box;
}

.wx-float-contact *,
.wx-float-contact *::before,
.wx-float-contact *::after {
    box-sizing: border-box;
}


/* =========================================================
   右侧悬浮按钮
========================================================= */

.wx-float-btn {
    width: 60px;
    padding: 10px 6px 9px;

    background: #1677b8;
    border-radius: 5px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);

    text-align: center;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.wx-float-btn:hover {
    background: #0f659e;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   微信圆形图标
========================================================= */

.wx-icon {
    display: block;

    width: 30px;
    height: 30px;

    margin: 0 auto 5px;

    background: #ffffff;
    border-radius: 50%;

    color: #1677b8;

    font-size: 16px;
    line-height: 30px;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   微信咨询文字
========================================================= */

.wx-text {
    display: block;

    color: #ffffff;

    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   二维码弹出区域
========================================================= */

.wx-qrcode-box {
    position: absolute;

    right: 70px;
    top: 50%;

    width: 180px;
    padding: 14px;

    background: #ffffff;

    border: 1px solid #dfe6ec;
    border-radius: 6px;

    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.15);

    text-align: center;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-50%) translateX(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


/* 鼠标经过整个微信区域时显示二维码 */

.wx-float-contact:hover .wx-qrcode-box {
    opacity: 1;
    visibility: visible;

    transform: translateY(-50%) translateX(0);
}


/* =========================================================
   二维码标题
========================================================= */

.wx-qrcode-title {
    margin-bottom: 10px;

    color: #34495e;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}


/* =========================================================
   二维码图片
========================================================= */

.wx-qrcode-box img {
    display: block;

    width: 150px;
    height: 150px;

    margin: 0 auto;

    object-fit: cover;
}


/* =========================================================
   手机号码
========================================================= */

.wx-qrcode-tip {
    margin-top: 9px;

    color: #7a8792;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   二维码右侧小三角
========================================================= */

.wx-qrcode-box::after {
    content: "";

    position: absolute;

    right: -7px;
    top: 50%;

    width: 12px;
    height: 12px;

    margin-top: -6px;

    background: #ffffff;

    border-top: 1px solid #dfe6ec;
    border-right: 1px solid #dfe6ec;

    transform: rotate(45deg);
}


/* =========================================================
   手机端隐藏
   避免悬浮层遮挡正文内容
========================================================= */

@media screen and (max-width: 768px) {

    .wx-float-contact {
        display: none;
    }

}