
.ai_chat {
    position: fixed;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 14px;
}

.ai_chat-header {
    padding: 12px 20px;
    background: rgba(38,109,135,0.7);
    color: white;
    border-radius: 12px 12px 0 0;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai_chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    transition: opacity 0.2s;
}

.ai_chat-close-btn:hover {
    opacity: 0.8;
}

.ai_chat-container {
    height: calc(100% - 60px);
    background: #F5F9FF;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
}

.ai_chat-message-history 
{
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.ai_chat-message-bubble 
{
    position: relative;
    max-width: 90%;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
}

.ai_chat-message-content 
{
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ai_chat-avatar 
{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ai_chat-avatar img 
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai_chat-message-text 
{
    flex: 1;
    min-width: 0;
    line-height: 25px;
}

.ai_chat-message-actions 
{
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.ai_chat-message-bubble:hover .ai_chat-message-actions 
{
    opacity: 1;
}

.ai_chat-copy-btn,.ai_chat-delete-btn 
{
    background: rgba(38,109,135,0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ai_chat-copy-btn:hover,.ai_chat-delete-btn:hover 
{
    opacity: 0.8;
}

.ai_chat-user-message 
{
    background: rgba(38,109,135,0.7);
    color: white;
    margin-left: auto;
}

.ai_chat-bot-message 
{
    background: #F0F4FF;
    color: #2C3E50;
    margin-right: auto;
}

.ai_chat-input-container 
{
    border-top: 1px solid #E4E9F2;
    padding: 20px;
    position: relative;
}

.ai_chat-input-box 
{
    display: flex;
    gap: 12px;
}

.ai_chat-textarea 
{
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #E4E9F2;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    font-family: 'Verdana','Segoe UI', 'Helvetica Neue', sans-serif;    
    min-height: 48px;
    max-height: 120px;
}

.ai_chat-control-buttons 
{
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ai_chat-button 
{
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(38,109,135,0.7);
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai_chat-button:disabled 
{
    opacity: 0.6;
    cursor: not-allowed;
}

.ai_chat-button:hover:not(:disabled) 
{
    opacity: 0.9;
    transform: translateY(-1px);
}

.ai_chat-stop-button 
{
    background: #FF4D4F;
}

.ai_chat-status-indicator 
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.ai_chat-status-dot 
{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.ai_chat-connected .ai_chat-status-dot 
{
    background: #4CAF50;
    animation: ai_chat-pulse 1.5s infinite;
}

.ai_chat-typing-indicator 
{
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #F0F4FF;
    border-radius: 18px;
}

.ai_chat-dot 
{
    width: 8px;
    height: 8px;
    background: rgba(38,109,135,0.7);
    border-radius: 50%;
    margin: 0 3px;
    animation: ai_chat-bounce 1.4s infinite;
}


.ai_chat-process-indicator 
{
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
}

.ai_chat-spinner 
{
    width: 16px;
    height: 16px;
    border: 2px solid rgba(38,109,135,0.7);
    border-radius: 50%;
    border-top-color: transparent;
    animation: ai_chat-spin 1s linear infinite;
    margin-right: 8px;
}

.think-content 
{
  color: rgba(100,100,100,1);
  font-size: 0.9em;
  margin: 8px 0;
  padding: 12px;
  background: #f8f8f8;
  border-left: 3px solid #ddd;
}


.answer-content-bot 
{
    color: #333;    
    background-color: #fff;
    padding: 20px;
    font-size: 0.9em;
    line-height: 1.8em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Verdana','Segoe UI', 'Helvetica Neue', sans-serif;    
}
 
.answer-content-bot strong 
{
    color: #D9534F; /* 红色突出显示重要术语 */
}
 


.answer-content-user
{
    color: rgba(255,255,255,1);
    font-size: 1em;
    line-height: 1.6;
}



@keyframes ai_chat-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ai_chat-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

@keyframes ai_chat-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ai_chat-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.ai_chat-no-contexts-reply-container
{
    max-width: 720px;
    width: 90%;
    margin: 12px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: ai_chat-slideIn 0.3s ease-out;
    border: 1px solid #ebeef5;
}

.ai_chat-header-line 
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ai_chat-hint-icon 
{
    width: 20px;
    height: 20px;
    background: rgba(38,109,125,1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ai_chat-main-text 
{
    color: #2d3436;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

.ai_chat-suggestions 
{
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.ai_chat-suggestions-title 
{
    color: #909399;
    font-size: 13px;
    margin-bottom: 10px;
}

.ai_chat-question-list 
{
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai_chat-question-item 
{
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ai_chat-question-item:hover 
{
    background: #f1f3f5;
    transform: translateX(3px);
    border-color: #e4e7ed;
}

@keyframes ai_chat-slideIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

@media (max-width: 480px) {
            .ai_chat-reply-container {
                width: 95%;
                padding: 14px;
            }
            .ai_chat-question-item {
                font-size: 13px;
            }
        }
    
.ai_chat-resize-handle 
{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: se-resize;
    background: rgba(38,109,135,0.3);
    border-radius: 4px 0 12px 0;
    z-index: 1001;
}

.ai_chat-resize-handle:hover 
{
    background: rgba(38,109,135,0.7);
}


.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.data-table th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #3498db;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    background-color: #ffffff;
}

.data-table tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.data-table tr:hover td {
    background-color: #e8f4ff;
    transition: background-color 0.2s ease;
}

.data-table th:first-child {
    border-radius: 8px 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 8px 0 0;
}

.data-table td:nth-child(3),
.data-table td:nth-child(4),
.data-table td:nth-child(6) {
    font-family: 'Courier New', monospace;
    color: #2980b9;
    font-weight: 500;
}

