﻿/*////////////触发按钮 开始/////////////////*/ 
 .aibox {
          position: absolute;
    top: 14px;
    right: 42px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background: #fff;
    border-radius: 50px;
    text-align: center;
        }
.aibox2{
    position: absolute;
    top: 13px;
    right: 47px;
    width: 75px;
    height: 50px;
    cursor: pointer;
    background: #fff;
    border-radius: 0 3px 3px 0;
    text-align: center;
    border-left: 1px solid #858c9f;
    transition: all .3s;
}
.aibox2:hover{
    background: #f3f6ff;
}
/*////////////触发按钮 图片/////////////////*/ 
.aibox > img{
                position: absolute;
    width: 36px;
    height: 36px;
    top: 5px;
    left: 5px;
            }
.aibox2 > img {
    position: absolute;
    width: 36px;
    height: 36px;
    top: 6px;
    left: 17px;
}
/*////////////触发按钮 动画/////////////////*/ 
 lottie-player {
                position: absolute;
                width: 60px;
                height: 60px;
                top: -6px;
                left: -6px;
            }
/*////////////触发按钮 结束/////////////////*/ 

/*////////////输入框容器 开始/////////////////*/
.Aiplus {
    width: 100%;
    box-shadow: 0px 9px 20px rgba(0, 0, 0, .2);
    margin: 0 auto;
    position: relative;
    z-index: 3;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 30px;
    overflow: hidden;
    padding-bottom: 6px;
}
    .Aiplus > .Aiplus_box {
        position: relative;
        top: 5px;
        width: calc(100% - 10px);
        height: 155px;
        box-shadow: 1px -5px 5px 0px rgba(0, 0, 0, .05);
        left: 5px;
        border-radius: 26px;
        background: #fff;
        padding: 5px 30px 30px 30px;
        box-sizing: border-box;
    }
.Aiplus > .Aiplus_box > .fa-close{
    position: absolute;
    right: 30px;
    top: 10px;
    font-size: 18px;
	cursor: pointer;
}
        .Aiplus > .Aiplus_box > .fa-microphone, .Aiplus > .Aiplus_box > .fa-spinner {
            position: absolute;
            bottom: 11px;
            right: 80px;
            font-size: 28px;
            cursor: pointer;
            color: #616ec2;
        }
.Aiplus > .Aiplus_box > #ai_key,.Aiplus > .Aiplus_box > textarea{
width: 100%;
    margin-top: 15px;
    height: 54px;
    padding: 5px;
    border: none;
    font-size: 15px;
}
.Aiplus > .Aiplus_box > img{
	position: absolute;
    bottom: 10px;
    width: 32px;
    left: 30px;

}
.Aiplus > .Aiplus_box > .Aitj,.Aiplus > .Aiplus_box > button{
cursor: pointer;
    font-size: 28px;
    position: absolute;
    right: 10px;
    bottom: 0px;
    background: unset;
    border: none;
}
.btn.stop path {
    fill:red;
}
/*////////////输入框容器 结束/////////////////*/
/*////////////聊天界面 开始/////////////////*/
body {
    font-family: -apple-system,Arial,Helvetica,sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

        .chat-pc-bg {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            overflow: hidden;
        }

        .chat-pc-cover {
            width: 100%;
            height: 50vh;
            background: linear-gradient(rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0) 100%);
            filter: none;
            border-radius: initial;
            margin-top: 0;
            padding-bottom: 0;
        }

        .chat-pc-lr {
            position: absolute;
            top: 0;
            margin-top: -62.5%;
            width: 80%;
            padding-bottom: 80%;
            border-radius: 50%;
            filter: blur(90px);
        }

        .chat-pc-left {
            left: -24%;
            background-color: rgba(102, 133, 255, .2);
            z-index: 0;
        }

        .chat-pc-right {
            right: -24%;
            background-color: rgba(133, 102, 255, .2);
            z-index: 0;
        }

        .chat-container {
            width: 800px;
            display: flex;
            flex-direction: column;
            height: 100vh;
            box-shadow: none;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 0;
            bottom: 0;
            z-index: 1;
        }

        .chat-header {
            position:relative;
            padding: 10px 25px;
            border-bottom: 1px solid #c3b5fd;
            /*background:#fff*/
        }
.reIndex {
    position: absolute;
    right: 0;
    top: 0px;
    font-size: 24px;
    cursor: pointer;
}
.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: normal;
    position: relative;
    padding-left: 28px;
}
                .chat-header h3 img {
                    width: 24px;
                    position: absolute;
                    left: 0px;
                    top: -1px;
                }

                .chat-messages {
                    flex: 1;
                    overflow-y: auto;
                    overflow-x: hidden;
                    padding: 10px 0;
                }

        .message {
            padding: 5px 20px;
            box-sizing: border-box;
        }

        .user-message {
            width: 100%;
            display: block;
            text-align: right;
        }

            .user-message span {
                display: inline-block;
                max-width: 85%;
                background-color: #ddd9ff;
                border-top-left-radius: 16px;
                border-bottom-left-radius: 16px;
                border-bottom-right-radius: 16px;
                border-top-right-radius: 0;
                padding: 8px 14px;
                word-break: break-all;
                text-align: left;
                line-height: 28px;
            }

        .bot-message {
            width: 100%;
            display: block;
        }

            .bot-message span {
                display: inline-block;
                max-width: 85%;
                background-color: #fafbff;
                border-top-left-radius: 0;
                border-bottom-left-radius: 16px;
                border-bottom-right-radius: 16px;
                border-top-right-radius: 16px;
                padding: 8px 14px;
            }
                .bot-message span hr {
                    border: none;
                    height: 1px;
                    background: #f1f1f1;
                }
                p {
                    margin: 3px 0;
                }

.rideo_box {
    display:none;
    width: 420px;
    height: 300px;
    position: absolute;
    background: rgba(0, 0, 0, .2);
    border-radius: 25px;
    left: calc((100% - 420px) / 2);
    top: calc((100% - 300px) / 2 - 100px);
}
    .rideo_box > lottie-player {
        width: 100%;
        height: 100%;
        top:0;
        left:0;
    }
    .rideo_box h1 {
        position: absolute;
        width: 100%;
        bottom: 28px;
        text-align: center;
        color: #1e0c07;
        letter-spacing: 2px;
        font-size: 24px;
    }
    .rideo_box > font {
        position: absolute;
        width: 100%;
        bottom: 17px;
        text-align: center;
        color: red;
        letter-spacing: 2px;
        font-size: 14px;
    }
        .cl {
            position: absolute;
            top: 56px;
            left: 12px;
            font-size: 18px;
            cursor: pointer;
            color: #616ec2;
            width: 24px;
            height: 24px;
            z-index: 2;
        }
.xj {
    position: absolute;
    top: 58px;
    left: 57px;
    font-size: 18px;
    cursor: pointer;
    color: #616ec2;
    width: 20px;
    height: 20px;
    z-index: 2;
}
.cl.selected {
    left: calc(390px - 110px);
    z-index: 9;
}
.xj.selected {
    left: calc(390px - 70px);
    z-index: 9;
}
    /*////////////////聊天记录//////////////*/
    .chat_jl {
        position: absolute;
        width:390px;
        height: calc(100vh - 42px);
        background: #fff;
        bottom: 0;
        left: -400px;
        z-index: 2;
        border-radius: 0 10px 10px 0;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
        transition: all .2s;
    }
    .chat_jl.selected {
        left:0;
    }

    .chat_jl > h2 {
        padding: 0 15px;
        font-size: 18px;
        font-weight: 500;
    }
    .chat_jl > ul {
        padding: 0 15px;
        list-style-type: none;
        margin: 0;
        height: calc(100% - 80px);
        overflow: auto;
        margin-top:10px;
    }
        .chat_jl > ul li {
            margin-bottom: 15px;
            color: #202543;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
        }
            .chat_jl > ul li a {
                color: #202543;
                text-decoration: none;
            }
/*滚动条样式*/
        .chat_jl > ul::-webkit-scrollbar {
            width: 4px;
            /*height: 4px;*/
        }

        .chat_jl > ul::-webkit-scrollbar-thumb {
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
            background: rgba(0,0,0,0.2);
        }

        .chat_jl > ul::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
            border-radius: 0;
            background: rgba(0,0,0,0.1);
        }
    /* 移动端样式调整 */
    @media screen and (max-width: 768px) {
        .bot-message {
                font-size: 16px;
                line-height: 1.6;
                letter-spacing: 0.3px;
            }

                .bot-message pre {
                    font-size: 14px;
                    line-height: 1.5;
                    padding: 12px;
                    margin: 10px 0;
                    overflow-x: auto;
                }

                .bot-message code {
                    font-size: 14px;
                    padding: 2px 4px;
                }

                .bot-message p {
                    margin: 8px 0;
                }

                .bot-message ul,
                .bot-message ol {
                    padding-left: 16px;
                    margin: 8px 0;
                }

                .bot-message table {
                    font-size: 14px;
                }

                    .bot-message table th,
                    .bot-message table td {
                        padding: 6px;
                    }

                .bot-message h1 {
                    font-size: 24px;
                    margin: 16px 0;
                }

                .bot-message h2 {
                    font-size: 22px;
                    margin: 14px 0;
                }

                .bot-message h3 {
                    font-size: 20px;
                    margin: 12px 0;
                }

                .bot-message h4 {
                    font-size: 18px;
                    margin: 10px 0;
                }

                .bot-message h5 {
                    font-size: 16px;
                    margin: 8px 0;
                }

                .bot-message h6 {
                    font-size: 16px;
                    margin: 8px 0;
                }
        }

.reasoning-message {
   /* background-color: #f8f9fa;*/
    background-color: #fff;
    color: #333;
    margin: 10px 20px;
    padding: 15px;
    /*border-left: 4px solid #6c757d;*/
    font-style: normal;
    max-height: none;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 8px;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);*/
    white-space: pre-wrap;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

            .reasoning-message:hover {
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            }

            .reasoning-message::-webkit-scrollbar {
                width: 6px;
            }

            .reasoning-message::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 3px;
            }

            .reasoning-message::-webkit-scrollbar-thumb {
                background: #c1c1c1;
                border-radius: 3px;
            }

                .reasoning-message::-webkit-scrollbar-thumb:hover {
                    background: #a8a8a8;
                }

        .bot-message pre {
            background-color: #f5f5f5;
            padding: 10px;
            border-radius: 4px;
            overflow-x: auto;
        }

        .bot-message code {
            background-color: #f5f5f5;
            padding: 2px 4px;
            border-radius: 3px;
        }

        .bot-message table {
            border-collapse: collapse;
            width: 100%;
            margin: 10px 0;
        }

            .bot-message table th,
            .bot-message table td {
                border: 1px solid #ddd;
                padding: 8px;
                text-align: left;
            }

            .bot-message table th {
                background-color: #f5f5f5;
            }

        .bot-message ul,
        .bot-message ol {
            padding-left: 20px;
        }

        .bot-message blockquote {
            border-left: 4px solid #ddd;
            padding-left: 10px;
            margin: 10px 0;
            color: #666;
        }

        .status-message {
            display: block;
        }

            .status-message span {
                display: inline-block;
                max-width: 85%;
                background-color: #edf0f7;
                border-top-left-radius: 4px;
                border-bottom-left-radius: 12px;
                border-bottom-right-radius: 12px;
                border-top-right-radius: 12px;
                padding: 8px 14px;
            }

        .chart-input-box {
         
            margin: 15px;
           
            border-radius: 28px;
        }

        .chart-input {
            padding-right: 48px;
            position: relative;
        }

            .chart-input .btn {
                position: absolute;
                right: 10px;
                bottom: -5px;
                background: none;
                border: 0;
                padding: 0;
                height: 35px;
            }

            .chart-input textarea {
                width: 100%;
                flex: 1;
                border: none;
                resize: none;
                outline: none;
                line-height: 26px;
                padding: 0px;
                font-size: 16px;
                height: 26px;
                vertical-align: top;
                font-family: 'Microsoft YaHei'
            }
textarea:focus {
  outline: none;
}
            .chart-input svg:hover {
                cursor: pointer;
                opacity: 0.6
            }

        .loadingGif {
            width: 20px;
            vertical-align: middle;
            margin-right: 8px;
        }
.chat-messages-title{
    padding: 58px 0;
    text-align: center;
    display: block;
}
        /* 移动端按钮样式调整 */
        @media screen and (max-width: 768px) {
            .chat-container {
                width: 100%;
            }

         

            .reasoning-message {
                font-size: 15px;
                line-height: 1.8;
                padding: 12px 15px;
                margin: 10px 15px;
                background-color: #f0f2f5;
                color: #333;
                border-radius: 8px;
                border-left: 3px solid #6c757d;
                box-shadow: none;
            }
        }

.typing-indicator {
    display: none;
    text-align: center;
    padding: 5px;
    color: #515ca1;
    font-size: 16px;
    opacity: 0.8;
    position: absolute;
    z-index: 9;
    bottom: 180px;
    width: 100%;
}

        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            margin-right: 8px;
            vertical-align: middle;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #1890ff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

/*////////////聊天界面 结束/////////////////*/

/*////////////后台聊天界面 开始/////////////////*/
.chat_kaiguan {
    top: unset;
    bottom: 30px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
    z-index: 9999999;
    background: #ffffff;
    border: 1px solid #2196F3;
}
.chat_container {
    width: 420px;
    height: calc((100% - 200px));
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 20px;
    overflow: hidden;
    transition: all .2s;
    background: #fff;
    z-index: 9999999;
}
.chat_container.big {
    min-height: 580px;
    min-width: 450px;
    width: calc((100% / 1.5));
    height: calc((100% / 1.5) - 100px);
}
.chat_container.ht {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2);
    border: 1px solid #fff;
    
}
.chat-container .chat-header {
    background: #fff
}
.chat-container.qt .chat-header {
    background: unset
}
    .chat_layout .chat-container {
        width: 100%;
        height: 100%;
    }
.ht .chart-input-box {
    padding:0!important;
}
.chat_layout .chart-input-box {
    margin-bottom: 24px;
}
.chat_container .fa-expand, .chat_container .fa-compress {
    position: absolute;
    right: 64px;
    top: 11px;
    font-size: 11px;
    cursor: pointer;
    background: #61c453;
    border-radius: 50px;
    padding: 4px;
    box-sizing: border-box;
    color: #fff;
    transform: rotateY(180deg);
}
}
.chat_container .fa-window-minimize {
    top: 9px;
    font-size: 14px;
}
.chat_container .fa-close {
    position: absolute;
    right: 30px;
    top: 11px;
    font-size: 11px;
    cursor: pointer;
    background: #ed6a5f;
    border-radius: 50px;
    padding: 4px 5px;
    box-sizing: border-box;
    color: #ffffff;
}
.Aiplus_box .Aiplus_select {
    width: 120px;
    height: 30px;
    font-size: 15px;
    border-radius: 7px;
    padding: 0 10px;
    position: absolute;
    bottom: 10px;
    left: 70px;
    border-color: #c8cef5;
    color: #262733;
}

/*////////////后台聊天界面 结束/////////////////*/