
.chat-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(1, 12, 44, 0.4);
    display: flex;
    flex-direction: column;;
}

.chat-page > * {
    padding: 20px 130px;
}
/*搜索框开始*/
.chat-page .input-area {
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: relative;
    flex: 1;
}
.chat-page .input-area em{
    position: absolute;
    width: 40px;
    height: 40px;
    left: calc(100% - 405px);
    top: 29px;
    font-size: 40px;
    color:#0a8ff3;
}
.chat-page .input-area input {
    outline: none;
    border: 1px solid #4FDFBE;
    border-radius: 8px;
    line-height: 50px;
    font-size: 28px;
    text-indent: 10px;
    padding: 5px 40px 5px 5px;
    width: calc(100% - 230px);
    background: #ebf4ff;
}

.chat-page .input-area button {
    width: 100px;
    height: 60px;
    font-size: 28px;
    border-radius: 8px;
    color: #fff;
}

.chat-page .input-area button:not(:disabled){
    background: linear-gradient(-30deg, #0D78DA, #59CEC4);
}
/*搜索框结束*/

/*对话流开始*/
/*.chat-page section.chat-container{*/
/*max-height: 1000px;*/
/*overflow-y: scroll;*/
/*}*/
.chat-page section > div {
    position: relative;
    font-weight: 500;
    font-size: 28px;
    line-height: 42px;
}

.chat-page .clickable {
    color: #FFDE00;
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 15px;
    background: rgba(255, 222, 0, 0.15);
    border-radius: 23px;
    border: 1px solid #FFDE00;
    font-size: 24px;
}

.chat-page .clickable:hover {
    background: rgba(255, 223, 28, 0.4);
}

/*.chat-bubble {*/
    /*position: relative;*/
    /*max-width: 100%; !* 气泡的最大宽度 *!*/
    /*margin: 10px; !* 气泡之间的间距 *!*/
/*}*/

/*.bubble-content {*/
    /*background: #ffffff;*/
    /*padding: 10px; !* 内边距 *!*/
    /*border-radius: 10px; !* 圆角 *!*/
    /*position: relative;*/
    /*display: inline-block; !* 使内容块化 *!*/
    /*font-size: 28px;*/
    /*line-height: 42px;*/
/*}*/

/*.chat-bubble.user .bubble-content {*/
    /*background: #7aff29;*/
    /*color: #333333;*/
/*}*/

/*.chat-bubble.user {*/
    /*display: flex;*/
    /*flex-direction: row-reverse;*/
/*}*/

.markdown-body .menus {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.markdown-body .menus p {
    color: #FFDE00;
}

/*.chat-bubble table {*/
    /*width: 100%;*/
/*}*/

/*.chat-bubble .bubble-content table tr th, .chat-bubble .bubble-content table tr td {*/
    /*text-align: center;*/
/*}*/

/*对话流结束*/

/*输入法开始*/
.chat-page .input-type-container {
    display: flex;
    justify-content: space-around;
}

.chat-page .input-type-container button {
    width: 230px;
    height: 100px;
    font-size: 34px;
    border-radius: 8px;
    text-indent: 55px;
    color: #fff;
}

.chat-page .input-type-container button:nth-child(1) {
    background: url("../imgs/ai/icon_voice.png") no-repeat 21px center, linear-gradient(-30deg, #0D78DA, #59CEC4);
}

.chat-page .input-type-container button:nth-child(2) {
    background: url("../imgs/ai/icon_writing.png") no-repeat 15px center, linear-gradient(-30deg, #0D78DA, #59CEC4);
}

.chat-page .input-type-container button:nth-child(3) {
    background: url("../imgs/ai/icon_keyboard.png") no-repeat 15px center, linear-gradient(-30deg, #0D78DA, #59CEC4);
}

.chat-page .input_handwriting_mask, .chat-page .input_pinyin_mask, .chat-page .input_voice_mask {
    width: 100%;
    padding: 20px 130px;
}

.chat-page .input_handwriting_mask p, .chat-page .input_voice_mask p {
    text-align: center;
}

.chat-page .input_handwriting_mask .main_content, .chat-page .input_pinyin_mask .main_content, .chat-page .input_voice_mask .main_content {
    display: flex;
    background: linear-gradient(0deg, #FFFFFF, #E5F5FF);
    border-radius: 20px;
    border: 2px solid #00FFFC;
    width: 820px;
    height: 500px;
}

.chat-page .main_content .panel {
    width: calc(100% - 118px);
    height: 500px;
    border-right: 2px solid #00FFFC;
}

.chat-page .main_content .panel .panel-header {
    line-height: 80px;
    height: 80px;
    text-indent: 10px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #2488E3, #4FDFBE) 2 2;
    font-weight: 500;
    font-size: 40px;
    color: #1C5099;
    text-shadow: 1px 2px 4px rgba(2, 39, 100, 0.18);
    background: linear-gradient(0deg, #2488E3 0%, #4FDFBE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.chat-page .main_content .panel .panel-board {
    height: calc(100% - 80px);
}

.input_voice_mask .main_content .panel .panel-board {
    padding: 10px;
    font-size: 30px;
    line-height: 50px;
    position: relative;
}

.input_voice_mask .main_content:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}
.input_voice_mask .main_content:first-child .sound_icon{
    width: 300px;
    height: 100px;
}
.input_voice_mask .main_content:first-child .stop_icon{
    width: 120px;
    height:120px;
    line-height: 120px;
    text-align: center;
    font-size:40px;
    color:#fff;
    border-radius: 50%;
    /*background-image:repeating-radial-gradient(#f80404,#f80404 30px,rgba(248,4,4,0.1) 1px,rgba(248,4,4,0.1) 55px);*/
    background-image:repeating-radial-gradient(#58b2d6,#58b2d6 30px,rgba(88,178,214,0.1) 1px,rgba(88,178,214,0.1) 55px);
}

.input_voice_mask .main_content p {
    font-size: 30px;
    line-height: 50px;
    text-align: center;
}
.input_voice_mask .main_content p:last-child {
    color: #f80404;
}
.chat-page .main_content .panel .panel-board canvas {
    height: 100%;
    width: 100%;
    cursor: crosshair;
}

.chat-page .main_content .button_block {
    width: 118px;
    height: 500px;
}

.input_handwriting_mask .main_content .button_block dl {
      margin: 50px 0;
}
.input_voice_mask .main_content .button_block dl {
    margin: 100px 0;
}
.chat-page .main_content .button_block dl dt {
    text-align: center;
}

.chat-page .main_content .button_block dl dd {
    font-size: 24px;
    color: #333333;
    text-align: center;
}

.chat-page .pic_voice_flow {
    width: 200px;
    height: 100px;
}

.voice_print {

}

/*输入法结束*/

/*流式响应开始*/
.chat-container {
    max-height: 1000px;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth; /* 平滑滚动 */
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}

.chat-container * {
    font-size: 24px;
    line-height: 36px;
}
.chat-box img.loadingImg{
    width: 50px;
    height: 50px;
    margin-left: 20px;
}
.bot-message::before {
    position: absolute;
    content: "";
    display: block;
    width: 88px;
    height: 88px;
    left: -112px;
    top: -5px;
    border-radius: 50%;
    border: 2px solid #00eaff;
    background-image: url("../imgs/ai/ai-profile.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.user-message::before {
    position: absolute;
    content: "";
    display: block;
    width: 92px;
    height: 92px;
    left: calc(100% + 20px);
    top: -5px;
    background-image: url("../imgs/ai/user-profile.png");
    background-repeat: no-repeat;
}

/* 添加箭头 */
.user-message::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -13px; /* 根据需要调整位置 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 13px 0 13px 15px; /* 调整箭头的大小 */
    border-color: transparent transparent transparent #7aff29; /* 箭头颜色与气泡背景色相同 */
}

/* 添加箭头 */
.bot-message::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -14px; /* 根据需要调整位置 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 13px 15px 13px 0; /* 调整箭头的大小 */
    border-color: transparent #00eaff transparent transparent; /* 箭头颜色与气泡背景色相同 */
}

.user-message {
    display: flex;
    flex-direction: row-reverse;
}

.user-message .markdown-body {
    background: #7aff29;
}

.bot-message .markdown-body {
    background: rgba(0,234,255,0.2);
    border: 1px solid #00eaff;
    margin-right: auto;
}
.bot-message .markdown-body think{
    background: rgba(255,255,255,0);
}
.bot-message .markdown-body,.bot-message .markdown-body *{
   color:#00eaff;
}

.user-message .markdown-body, .bot-message .markdown-body {
    margin: 8px 0;
    padding: 12px;
    border-radius: 15px;
    min-height: 60px;
}

/* 在原有样式基础上新增 */
.markdown-body hr {
    margin: 10px 0;
}

.markdown-body table {
    border-collapse: collapse;
    margin: 1rem 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.markdown-body th {
    font-weight: 600;
    padding: 12px;
    border: 1px solid #dfe2e5;
}

.markdown-body td {
    padding: 12px;
    border: 1px solid #dfe2e5;
}

/*.markdown-body tr:nth-child(even) {*/
    /*background-color: #f8f9fa;*/
/*}*/

/* 表格容器 */
/* .table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} */

/* 表格核心样式 */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.custom-table th {
    padding: 12px;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

.custom-table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

/* 斑马条纹效果 */
.custom-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

/* Markdown表格 */
.marked-table {
    width: 100%;
    border-collapse: collapse;
}

.marked-table th {
    padding: 12px;
    border: 1px solid #dfe2e5;
    font-weight: 600;
    text-align: left;
}

.marked-table td {
    padding: 12px;
    border: 1px solid #dfe2e5;
    line-height: 1.5;
}

/* 斑马纹效果 */
/*.marked-table tr:nth-child(even) {*/
    /*background-color: #f8f9fa;*/
/*}*/

/* 聊天容器 */
#chatBox {
    display: flex;
    flex-direction: column; /* 关键布局属性 */
}

/* 消息气泡 */
.message {
    animation: fadeIn 0.3s ease-in;
    position: relative;
}

p .clickable {
    animation: fadeIn 0.3s ease-in;
}

/* 新增动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*流式响应结束*/


