#chat #chatBox {
    position: fixed;
    display: inline-block;
    z-index: 999;
}

#chat .chat-container {
    width: 400px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#chat .messagesInfo a {
    color: #409EFF !important;
    cursor: pointer;
}

#chat .circularBox {
    background-color: #45a049;
    text-align: center;
    font-size: 35px;
    color: #FFF;
    cursor: pointer;
}
#chat .circularBox.boxRound{
    border-radius: 100%;
}

#chat .circularBox p {
    font-size: 16px;
    padding: 0;
    margin: 0;
}

#chat .chat-header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#chat .chat-header .title {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

#chat .chat-header h1 {
    margin: 0;
}

#chat .chat-messages {
    padding: 20px 10px;
    height: 500px;
    overflow: auto;
    background: #F5F5F5;
}

#chat .messagesLi {
    margin-bottom: 10px;
    width: 100%;
    font-size: 14px;
}

#chat .messagesLi .messagesInfo {
    padding: 10px;
    display: inline-block;
    max-width: 80%;

}

#chat .messagesLi.user {
    text-align: right;

}

#chat .messagesLi.user .messagesInfo {
    background: #95EC69;
    text-align: left;
}

#chat .messagesLi.assistant .messagesInfo {
    background: #FFF;
}

#chat .messagesInfoBox{
    white-space: pre-wrap;
}
#chat .satisfiedRowBox{
    margin-top: 10px;
}
#chat .satisfiedBox{
    text-align: center;
}
#chat .iconfont{
    margin-right: 5px;
    font-size: 15px;
}


#chat .chat-message {
    background-color: #e7e7e7;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

#chat .chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #e7e7e7;
}

#chat .chat-input input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    margin-right: 10px;
}

#chat .chat-input button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

#chat .chat-input button:hover {
    background-color: #45a049;
}

#chat .closeChat {
    font-size: 40px;
    cursor: pointer;
}

#chat .fullScreen {
    width: 100%;
    max-width: 800px;
    height: 100%;
}

#chat .fullScreen .fullScreenBox {
    width: 100%;
    height: 98%;
    max-width: 800px;
}

#chat .fullScreen .chat-messages {

    height: calc(100% - 180px);
}

#chat .pdfOpnFile .el-dialog__body {
    padding: 0;
    position: absolute;
    top: 60px;
    bottom: 5px;
    width: 100%;
}

#chat .pdfOpnFile .el-dialog__body .iframeBox {
    border: 0;
    width: 100%;
    height: 100%;;
}



/* 添加到你的CSS文件中 */
#chat .generating-message {
    opacity: 0.8;
}

#chat .generating-text {
    color: #999;
    font-style: italic;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: inline-block;
    min-width: 150px;
    white-space: normal;
    text-align: center;
}

#chat .generating-text i {
    animation: rotating 2s linear infinite;
    color: #409EFF;
    margin-right: 8px;
}

/* 让动画更平滑 */
@keyframes rotating {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 添加一个淡入淡出效果 */
@keyframes dotPulse {
    0%, 20% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

#chat .generating-text::after {
    content: '...';
    display: inline-block;
    width: 20px;
    text-align: left;
    animation: dotPulse 1.5s infinite;
}
