@charset "utf-8";

/* 手机端微信弹窗 */
.erx-weixin-open {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    font-size: 14px;
    text-align: center;
    background-color: rgba(0,0,0,.5);
    z-index: 99999;
}
.erx-weixin-open.erxact {
    display: block;
}
.erx-weixin-open:after {
    content: '';
    display: inline-block;
    width: 0; height: 100%;
    vertical-align: middle;
}
.erx-wx-box {
    position: relative;
    display: inline-block;
    line-height: 1.35;
    width: 320px; max-width: 96%;
    color: #111;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    vertical-align: middle;
    box-sizing: border-box;
}
.erx-wx-box i, .erx-wx-box em,
.erx-weixin-bar em, .erx-wx-user em {
    font-style: normal;
}
.erx-wx-box .bi-check-circle-fill {
    color: #1aad19;
    font-size: 40px;
}
.erx-wx-box h5 {
    margin: 5px 0 9px;
    font-size: 18px; font-weight: bold;
    padding: 0; background: none; border: 0;
}
.erx-wx-box em, .erx-wx-user em, .erx-wx-box em a, .erx-wx-user em a {
    color: #f00; font-weight: bold;
}
.erx-wx-ow {
    max-height: 72vh; overflow-y: auto;
}
.erx-wx-box .qrcode-ez {
    max-width: 200px; margin: 5px auto 0;
}
.qrcode-ez { display: none; }
.qrcode-ez.erxshow { display: block; }
.erx-wx-box .add-ez {
    display: block; max-width: 90%; margin: 8px auto 0;
}
a.erx-wx-btn, span.erx-wx-btn {
    display: inline-block;
    margin: 12px 0;
    line-height: 38px;
    color: #fff; font-size: 14px;
    background-color: #1aad19;
    padding: 0 25px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}
a.erx-wx-btn:hover { color: #eee; }
.erx-wx-box .bi-x-lg {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}
.erx-wx-box .bi-x-lg:hover { color: #f30; }

/* 浮动微信球 */
.erx-weixin-ball {
    position: fixed;
    right: 30px; bottom: 98px;
    width: 50px; height: 50px;
    line-height: 50px; text-align: center;
    background-color: #1aad19;
    cursor: pointer;
    animation: heartbeat 1s infinite;
    border-radius: 50%;
    z-index: 99998;
}
.erx-weixin-ball .bi {
    color: #fff; font-size: 26px;
    vertical-align: middle;
}

/* 底部工具条 */
.erx-weixin-bot { bottom: 0; }
.erx-weixin-bar {
    position: fixed;
    left: 0; width: 100%;
    height: 48px; line-height: 48px;
    color: #fff; font-size: 14px;
    text-align: center;
    background-color: #393939;
    z-index: 99998;
}
.erx-weixin-bar>span, .erx-weixin-bar>a {
    display: inline-block; height: 100%;
}
.erx-wx-tel {
    position: relative;
    float: left; width: 48px;
    background-color: #f80;
}
.erx-wx-tel .bi {
    color: #fff; font-size: 22px;
    line-height: 48px;
}
.erx-wx-tel>div {
    position: absolute;
    top: 3px; left: -200%;
    height: 42px; line-height: 42px;
    color: #f80; font-size: 16px; font-weight: bold;
    white-space: nowrap;
    background: #eee;
    padding: 0 12px 0 8px;
    border-radius: 0 30px 30px 0;
    opacity: 0;
    transition: all .3s ease-out;
}
.erx-wx-tel.erxact>div {
    left: 100%; opacity: 1;
}
.erx-wx-txt, .erx-wx-txt a {
    color: #F4E41C; font-size: 12px;
}
.erx-wx-add {
    float: right;
    background-color: #0C3FD6;
    padding: 0 18px;
    cursor: pointer;
}
.erx-wx-add .bi {
    margin-right: 5px;
    font-size: 16px;
    vertical-align: middle;
}

/* 心跳动画 */
@keyframes heartbeat {
    50% { transform: scale(1.1); }
}

/* 移动端适配 */
@media only screen and (max-width: 640px) {
    .erx-weixin-ball { right: 20px; }
    .erx-weixin-bar .erx-wx-tel+.erx-wx-txt { display: none; }
    .erx-weixin-bar .erx-wx-tel { width: 55%; }
    .erx-weixin-bar .erx-wx-tel>div {
        position: static;
        display: inline-block;
        height: auto; line-height: 1;
        margin-top: -9px;
        color: #fff;
        background: none;
        opacity: 1;
        vertical-align: middle;
    }
    .erx-weixin-bar .erx-wx-add { width: 45%; box-sizing: border-box; }
}
