﻿/*AI客服*/

.ai-service .button {
    position: fixed;
    bottom: 50px;
    right: 12px;
    z-index: 680;
    width: 36px;
    height: 100px;
    border-radius: 20px;
}

    .ai-service .button:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        opacity: .7;
        filter: blur(6px);
        animation: steam 3s linear infinite;
    }

    .ai-service .button:after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        opacity: .7;
        filter: blur(6px);
        animation: steam 3s linear infinite;
    }

@keyframes steam {
    0% {
        filter: blur(2px)
    }

    50% {
        filter: blur(6px)
    }

    to {
        filter: blur(2px)
    }
}

.ai-service .button a {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
    border-radius: 20px;
    background-color: #fff;
}

    .ai-service .button a i {
        float: left;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        margin: 5px 4px 6px;
    }

    .ai-service .button a span {
        float: left;
        width: 14px;
        padding: 0 11px;
        font-size: 14px;
        color: #181818;
        line-height: 16px;
        text-align: center;
    }

.ai-service .popout {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .7);
}

    .ai-service .popout .title {
        display: flex;
        align-items: center;
        width: 780px;
        height: 50px;
        border-radius: 3px 3px 0 0;
    }

        .ai-service .popout .title img {
            width: 20px;
            height: 20px;
            padding: 6px;
            border-radius: 5px;
            margin: 0 10px 0 15px;
        }

        .ai-service .popout .title span {
            flex: 1;
            font-size: 15px;
            color: #fff;
        }

        .ai-service .popout .title i {
            position: relative;
            width: 50px;
            height: 50px;
            cursor: pointer;
        }

            .ai-service .popout .title i:before,
            .ai-service .popout .title i:after {
                content: '';
                position: absolute;
                top: 16px;
                bottom: 16px;
                width: 2px;
                left: 50%;
                margin-left: -1px;
                background-color: #fff;
            }

            .ai-service .popout .title i:before {
                transform: rotate(45deg);
            }

            .ai-service .popout .title i:after {
                transform: rotate(-45deg);
            }

    .ai-service .popout .box {
        display: flex;
        width: 780px;
        background-color: #fff;
        border-radius: 0 0 3px 3px;
    }

        .ai-service .popout .box .dialog {
            display: flex;
            flex-direction: column;
            flex: 1;
            height: 600px;
            border-right: 1px solid #e8e8e8;
        }

            .ai-service .popout .box .dialog .record {
                display: flex;
                flex-direction: column;
                flex: 1;
                padding: 20px;
                overflow: hidden auto;
            }

                .ai-service .popout .box .dialog .record li {
                    position: relative;
                    display: flex;
                    flex-direction: column;
                }

                    .ai-service .popout .box .dialog .record li + li {
                        margin-top: 20px;
                    }

                    .ai-service .popout .box .dialog .record li img {
                        position: absolute;
                        top: 0;
                        width: 36px;
                        height: 36px;
                        border-radius: 50%;
                    }

                    .ai-service .popout .box .dialog .record li .name {
                        display: flex;
                        align-items: center;
                        padding: 0 2px;
                        margin-bottom: 6px;
                    }

                        .ai-service .popout .box .dialog .record li .name span {
                            font-size: 12px;
                            color: #666;
                            line-height: 1.4;
                        }

                            .ai-service .popout .box .dialog .record li .name span + span {
                                margin-left: 8px;
                                color: #ccc;
                            }

                    .ai-service .popout .box .dialog .record li .bubble {
                        display: flex;
                        flex-direction: column;
                        padding: 8px 12px;
                    }

                        .ai-service .popout .box .dialog .record li .bubble span {
                            font-size: 14px;
                            color: #333;
                            line-height: 24px;
                        }

                            .ai-service .popout .box .dialog .record li .bubble span.link01,
                            .ai-service .popout .box .dialog .record li .bubble a {
                                margin-top: 4px;
                                font-size: 14px;
                                line-height: 22px;
                                cursor: pointer;
                            }

                    .ai-service .popout .box .dialog .record li.myself {
                        align-items: flex-end;
                        padding-left: 40px;
                    }

                        .ai-service .popout .box .dialog .record li.myself .bubble {
                            border-radius: 6px 0 6px 6px;
                        }

                            .ai-service .popout .box .dialog .record li.myself .bubble span {
                                color: #fff;
                            }

                    .ai-service .popout .box .dialog .record li.assistant {
                        align-items: flex-start;
                        padding-right: 40px;
                    }

                        .ai-service .popout .box .dialog .record li.assistant .bubble {
                            border-radius: 0 6px 6px;
                            background-color: #f3f5fb;
                        }

            .ai-service .popout .box .dialog .bottom {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                border-top: 1px solid #e8e8e8;
            }

                .ai-service .popout .box .dialog .bottom textarea {
                    width: calc(100% - 40px);
                    height: 60px;
                    padding: 15px 20px;
                    border: 0;
                    margin-bottom: 6px;
                    background-color: #fff;
                    font-size: 14px;
                    color: #333;
                    line-height: 20px;
                    resize: none;
                    outline: none;
                }

                    .ai-service .popout .box .dialog .bottom textarea::placeholder {
                        color: #ccc;
                    }

                .ai-service .popout .box .dialog .bottom input {
                    display: flex;
                    height: 28px;
                    padding: 0 14px;
                    border: 1px solid #e8e8e8;
                    border-radius: 4px;
                    margin: 0 20px 20px 0;
                    background-color: #fff;
                    font-size: 14px;
                    color: #bbb;
                    line-height: 26px;
                    cursor: not-allowed;
                }

                    .ai-service .popout .box .dialog .bottom input.active {
                        color: #fff;
                        cursor: pointer;
                    }

        .ai-service .popout .box .right {
            display: flex;
            flex-direction: column;
            flex: 0 0 300px;
            height: 600px;
        }

            .ai-service .popout .box .right dl {
                display: flex;
                flex-direction: column;
                padding: 0 16px 10px;
            }

                .ai-service .popout .box .right dl + dl {
                    border-top: 1px solid #e8e8e8;
                }

                .ai-service .popout .box .right dl dt {
                    font-size: 14px;
                    color: #333;
                    line-height: 56px;
                }

                .ai-service .popout .box .right dl dd {
                    display: flex;
                    margin-bottom: 10px;
                }

                .ai-service .popout .box .right dl.general dd a {
                    font-size: 14px;
                    color: #666;
                    line-height: 1.4;
                }

                .ai-service .popout .box .right dl.contact dd span {
                    font-size: 14px;
                    color: #666;
                    line-height: 1.4;
                }

                .ai-service .popout .box .right dl.contact dd a {
                    display: flex;
                    align-items: center;
                    height: 28px;
                    padding: 0 8px;
                    border: 1px solid;
                    border-radius: 6px;
                    margin-right: 10px;
                    margin-bottom: 6px;
                    font-size: 14px;
                    line-height: 1;
                    text-decoration: none;
                }

                    .ai-service .popout .box .right dl.contact dd a i {
                        margin-right: 4px;
                    }

                    .ai-service .popout .box .right dl.contact dd a.wx {
                        color: #43ae3f;
                    }

                        .ai-service .popout .box .right dl.contact dd a.wx:hover {
                            background-color: #43ae3f;
                            color: #fff;
                            text-decoration: none;
                        }

                    .ai-service .popout .box .right dl.contact dd a.qq {
                        color: #29afec;
                    }

                        .ai-service .popout .box .right dl.contact dd a.qq:hover {
                            background-color: #29afec;
                            color: #fff;
                            text-decoration: none;
                        }


/*个人风格*/

.ai-service.person-style .popout .title img {
    background-color: #f90;
}

.ai-service.person-style .button:before,
.ai-service.person-style .button:after,
.ai-service.person-style .popout .title {
    background-color: #f70;
}

.ai-service.person-style .button a i {
    background: url(/img/AI-icon.png) no-repeat center / 14px #f70;
}

.ai-service.person-style .popout .box .dialog .record li.myself .bubble {
    background-color: #f90;
}

.ai-service.person-style .popout .box .dialog .record li .bubble span.link01,
.ai-service.person-style .popout .box .dialog .record li .bubble a,
.ai-service.person-style .popout .box .right dl.general dd a:hover {
    color: #f70;
}

.ai-service.person-style .popout .box .dialog .bottom input.active {
    border-color: #f70;
    background-color: #f70;
}


/*滚动条*/

.scrollbar::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

.scrollbar::-webkit-scrollbar-track {
    background-color: #f7f7f7;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: #e8e8e8;
}
