
.header{ z-index: 998888;}
.modalOpen .wrapper, .modalOpen .wrap{ z-index: 999888;}

.robot{}
.robotFixed{ position: fixed; bottom: 260px;right: 20px; z-index: 111;
    font-size: 0; width: 40px; background: #a91728; cursor: pointer;}
.robotFixed img{ width: 100%;}

.robotBox{ display: none; position: fixed; top: 50%;right: 50%;transform: translate3d(50%, -50%, 0); z-index: 999999;}
.closeModal{ display: inline-block; font-size: 24px; color: #444; transform: scaleX(1.3);
    position: absolute; top: 10px;right: 20px; padding: 10px; cursor: pointer;transition: all .3s ease-in-out;}
.closeModal:hover{ color: #a91728;}

.sj-flex{ display: flex; display: -ms-flexbox;}

.mainwrapper {
    width: 100vw;
    max-width: 800px;
    margin: 0 auto;
    min-height: 400px;
    max-height: 100vh;
    border: 1px solid #e4e4e4;
    background: #fff;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
}
.robotBody{}
.robot-title{ background: rgba(245,245,245,.7); padding: 15px; align-items: flex-start;}
.robot-title .pfp{ width: 50px;font-size: 0; border-radius: 50%;background: #a91728; margin-right: 10px; flex-shrink: 0;}
.robot-title .pfp img{ width: 100%;}
.robot-title .name{ font-size: 18px; line-height: 2; flex: 1; min-width: unset;}
.robot-content{}
.chat-main{ height: 430px; height: 40vh; overflow-x: hidden; overflow-y: auto; padding: 15px;}
.chat-main ul{ }
.chat-main li{ margin-bottom: 10px;}
.chat-main li > .sj-flex{ align-items: flex-start;}
.chat-main li .pfp{ width: 40px;height: 40px; font-size: 0; background: #a91728; border-radius: 50%; flex-shrink: 0;margin-right: 20px;
    display: flex;display: -ms-flexbox;align-items: flex-end; overflow: hidden;}
.chat-main li .pfp img{ width: 100%;}
.chat-main li .txt{ flex: 1;}
.chat-main li .tag-time{ color: #999;}
.chat-main li span{ display: inline-block; margin-right: 15px; line-height: 2;}
.chat-main li span:last-child{ margin-right: 0;}
.chat-main li .txtBox{
    display: inline-block;
    position: relative;
    line-height: 22px;
    padding: 8px 15px;
    background-color: #e2e2e2;
    border-radius: 3px;
    color: #333;
    word-break: break-all;
}
.chat-main li .txtBox::before{ 
    content: '';
    position: absolute;
    left: -10px;
    top: 13px;
    width: 0;
    height: 0;
    border-style: solid dashed dashed;
    border-color: #e2e2e2 transparent transparent;
    overflow: hidden;
    border-width: 10px;
}
.chat-main li a{
    color: blue;
}
.chat-main li a:hover{
    text-decoration: underline;
}
/* 访客提问 */
.chat-main .asker > .sj-flex{ flex-direction: row-reverse;}
.chat-main .asker .pfp{ background: transparent;border: 1px solid #a91728; margin-right: 0; margin-left: 20px;}
.chat-main .asker .txt{ text-align: right;}
.chat-main .asker .tag-time{ display: flex; display: -ms-flexbox; flex-direction: row-reverse;}
.chat-main .asker span{ margin-right: 0;margin-left: 15px;}
.chat-main .asker span:last-child{ margin: 0;}
.chat-main .asker .txtBox::before{ left: auto; right: -10px;}

.chat-footer{
    border-top: 1px solid #F1F1F1;
}
.chat-textarea{
    padding: 10px;
}
.chat-textarea textarea{
    display: block;
    width: 100%;
    padding: 5px 0 0;
    height: 68px;
    line-height: 20px;
    border: none;
    overflow: auto;
    resize: none;
    background: 0 0;
    outline: none;
    font-size: 14px;
    color: #333;
    font-family: '微软雅黑';
}
.chat-btn{
    text-align: right;
}
.chat-btn .typeButton{
    overflow: hidden;
    padding: 0 15px 15px;
    display: inline-block;
}
.chat-btn .typeButton > .sj-flex{
    justify-content: flex-end;
}
.chat-btn span{
    display: inline-block;
    background-color: #5FB878;
    color: #fff;
    line-height: 32px;
    font-size: 14px;
    padding: 0 20px;
    border-radius: 3px 0 0 3px;
    cursor: pointer;
}
.chat-btn .triangle{
    position: relative;
    width: 30px;
    padding: 0;
    border-left: 1px solid #85C998;
    border-radius: 0 3px 3px 0;
}
.chat-btn .triangle em{
    content: '';
    display: inline-block;
    position: absolute;
    top: 14px;
    left: 9px;
    border-width: 6px;
    border-color: transparent;
    border-style: dashed;
    border-top-style: solid;
    border-top-color: #fff;
    width: 0;
    height: 0;
    box-sizing: content-box;
}