@charset "utf-8";
/*-------------------
* 微信客服插件 - 默认绿色主题
* Author: MiniMax Agent  
* Version: 1.0.0
* Based on: 优秀的erx微信插件设计
-------------------*/

/* 字体图标定义 */
@font-face {
    font-family: "wk-iconfont";
    src: url('./wk-iconfont.eot');
    src: url('./wk-iconfont.eot#iefix') format('embedded-opentype'),
         url('./wk-iconfont.woff2') format('woff2'),
         url('./wk-iconfont.woff') format('woff'),
         url('./wk-iconfont.ttf') format('truetype'),
         url('./wk-iconfont.svg#wk-iconfont') format('svg');
}

.wk-icon {
    font-family: "wk-iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wk-icon-wechat:before { content: "\e631"; }
.wk-icon-success:before { content: "\e63b"; }
.wk-icon-phone:before { content: "\e6ab"; }
.wk-icon-close:before { content: "\e634"; }

/* 通用弹窗样式 */
.wk-popup {
    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;
}

.wk-popup.wk-active {
    display: block;
}

.wk-popup:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 100%;
    vertical-align: middle;
}

.wk-popup-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;
}

.wk-popup-box i, 
.wk-popup-box em, 
.wk-bottom-bar em {
    font-style: normal;
}

.wk-popup-box .wk-icon-success {
    color: #1aad19;
    font-size: 40px;
}

.wk-popup-box h5 {
    margin: 5px 0 9px;
    font-size: 18px;
    font-weight: bold;
    padding: 0;
    background: none;
    border: 0;
}

.wk-popup-box em, 
.wk-popup-box em a {
    color: #f00;
    font-weight: bold;
}

.wk-popup-content {
    max-height: 72vh;
    overflow-y: auto;
}

.wk-qrcode {
    max-width: 200px;
    margin: 5px auto 0;
    display: block;
}
.wk-popup-icon{
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background-color: #1aad19;
    border-radius: 50%;
}
.wk-icon-wechat{
    color: #fff;
    font-size: 25px;
}

.wk-tips {
    margin: 10px 0;
    line-height: 1.6;
}
.add-ez {
    display: block;
    max-width: 90%;
    margin: 8px auto 0;
}

.wk-btn {
    display: inline-block;
    margin: 12px 0;
    line-height: 38px;
    color: #fff !important;
    font-size: 14px;
    background-color: #1aad19;
    padding: 0 25px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.wk-btn:hover {
    color: #eee !important;
}

.wk-btn i {
    display: inline-block;
    margin-left: 3px;
    font-size: 12px;
    opacity: .6;
    transform: scale(.9);
}

.wk-popup-box .wk-icon-close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 24px;
    cursor: pointer;
}

.wk-popup-box .wk-icon-close:hover {
    color: #f30;
}
.wk-demo-gif {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* 悬浮球样式 */
.wk-ball {
    position: fixed;
    right: 30px;
    bottom: 98px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #1aad19;
    cursor: pointer;
    animation: wk-heartbeat 1s infinite;
    border-radius: 50%;
    z-index: 99998;
}

.wk-ball .wk-icon {
    color: #fff;
    font-size: 25px;
}

/* 悬浮球位置变化 */
.wk-ball.wk-right-center {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.wk-ball.wk-left-bottom {
    left: 30px;
    right: auto;
}

.wk-ball.wk-left-center {
    left: 30px;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

/* 底部联系栏样式 */
.wk-bottom-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 48px;
    line-height: 48px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    background-color: #393939;
    z-index: 99998;
}

.wk-bottom-bar > span, 
.wk-bottom-bar > a {
    display: inline-block;
    height: 100%;
}

.wk-phone {
    position: relative;
    float: left;
    width: 48px;
    background-color: #f80;
    color: #fff !important;
    text-decoration: none;
}

.wk-phone .wk-icon {
    color: #fff;
    font-size: 25px;
}

.wk-phone > 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;
}

.wk-phone.wk-active > div {
    left: 100%;
    opacity: 1;
}

.wk-text, 
.wk-text a {
    color: #F4E41C;
    font-size: 12px;
}

.wk-add-wechat {
    float: right;
    background-color: #1aad19;
    padding: 0 18px;
    cursor: pointer;
}

.wk-add-wechat .wk-icon {
    margin-right: 5px;
    color: #fff;
}

.wk-bottom-spacer {
    height: 48px;
    overflow: hidden;
    clear: both;
}

/* 内嵌样式支持 */
.wk-inline {
    display: flex;
    align-items: center;
    margin: 1em 0;
    line-height: 1.68;
}

.wk-inline .wk-qrcode {
    width: 110px;
    margin: 0 12px 0 0;
}

.wk-inline .wk-btn {
    margin: 12px 0 0;
    background-color: #1aad19;
}

.wk-inline-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background-color: #1aad19;
    border-radius: 50%;
}

/* 心跳动画 */
@keyframes wk-heartbeat {
    50% {
        transform: scale(1.1);
    }
}

/* 移动端优化 */
@media only screen and (max-width: 640px) {
    .wk-ball {
        right: 20px;
    }
    
    .wk-bottom-bar .wk-phone + .wk-text {
        display: none;
    }
    
    .wk-bottom-bar .wk-phone {
        width: 55%;
    }
    
    .wk-bottom-bar .wk-phone > div {
        position: static;
        display: inline-block;
        height: auto;
        line-height: 1;
        margin-top: -9px;
        color: #fff;
        background: none;
        opacity: 1;
        vertical-align: middle;
    }
    
    .wk-bottom-bar .wk-add-wechat {
        width: 45%;
        box-sizing: border-box;
    }
    
    /* 移动端优化选项 */
    /*.wk-mobile-hide-text .wk-text {*/
    /*    display: none !important;*/
    /*}*/
    
    .wk-mobile-large {
        height: 48px !important;
        line-height: 48px !important;
    }
    
    .wk-mobile-large .wk-phone,
    .wk-mobile-large .wk-add-wechat {
        height: 48px;
        line-height: 48px;
    }
    
    .wk-mobile-large + .wk-bottom-spacer {
        height: 48px;
    }
    
    .wk-mobile-auto-hide {
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    .wk-mobile-auto-hide.wk-show {
        transform: translateY(0);
    }
}
