body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.workflow-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    margin: 16px 0; /* 增加上下间距 */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    height: 34px;
    width: 100%;
}

.workflow-step {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    justify-content: center;
}

.step-icon {
    width: 80px;
    height: 24px;
    background: rgba(156, 163, 175, 0.1);  /* 默认灰色 */
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(156, 163, 175, 0.7);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.workflow-step[data-status="completed"] .step-icon {
    background: rgba(16, 185, 129, 0.2);  /* 完成状态改为绿色 */
    border-color: rgb(16, 185, 129);
    color: rgb(16, 185, 129);
}

.workflow-step[data-status="active"] .step-icon {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgb(59, 130, 246);
    color: rgb(59, 130, 246);
    animation: pulse 2s infinite;
}

.step-connector {
    position: absolute;
    height: 2px;
    left: calc(50% + 44px);
    width: calc(100% - 88px);
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.1), rgba(156, 163, 175, 0.3));  /* 默认灰色 */
    overflow: hidden;
    z-index: 1;
}

.workflow-step[data-status="completed"] .step-connector {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.5));  /* 完成状态改为绿色 */
}

.workflow-step[data-status="completed"] .step-connector::before {
    background: linear-gradient(90deg, 
        transparent,
        rgba(16, 185, 129, 0.8),  /* 完成状态改为绿色 */
        transparent
    );
}

@keyframes flowLight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.workflow-step[data-status="completed"] .step-connector {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.5));
}

.workflow-step[data-status="completed"] .step-connector::before {
    background: linear-gradient(90deg, 
        transparent,
        rgba(16, 185, 129, 0.8),
        transparent
    );
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.container {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 0;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

.stream-output, .markdown-output {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    height: calc(100vh - 40px);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px;
}

.stream-output {
    position: relative;
    flex: 1;
    padding: 20px;
    background: transparent;
    border-radius: 8px;
    overflow-y: auto;
}

.stream-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    color: #fff;
}

.stream-output h3, .markdown-output h3 {
    position: sticky;
    top: 0;
    /* background: rgba(0, 255, 200, 0.15); */
    color: white;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 255, 200, 0.3);
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-loading {
    display: none;
    margin-left: 8px;
}

.header-loading .loading-spinner {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
    margin-top: 2px;
}

.markdown-output {
    position: relative;
    flex: 1;
    padding: 20px;
    background: transparent;
    border-radius: 8px;
    margin-left: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.markdown-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    color: #fff;
}

.markdown-output h3 {
    color: #fff;
    margin-bottom: 16px;
}

/* 优化左侧内容区域的显示 */
/* .stream-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scroll-behavior: smooth;
    position: relative;
    height: auto;
    max-height: calc(100% - 60px);
    scroll-padding: 20px;
} */

/* 为了视觉平衡，调整右侧内容区域 */
/* .markdown-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    scroll-behavior: smooth;
    position: relative;
    height: auto;
    max-height: calc(100% - 60px);
    font-size: 0.95em;
} */

/* 优化滚动条样式 */
.stream-content::-webkit-scrollbar,
.markdown-content::-webkit-scrollbar {
    width: 8px;
}

.stream-content::-webkit-scrollbar-track,
.markdown-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.stream-content::-webkit-scrollbar-thumb,
.markdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.stream-content::-webkit-scrollbar-thumb:hover,
.markdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.control-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
    display: none;
}

.node {
    padding: 12px;
    margin: 8px 0;
    background: rgba(16, 24, 39, 0.01);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: auto;
}

.node:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.node:last-child {
    margin-bottom: 0;
}

.node-started { background: rgba(33, 150, 243, 0.3); }
.node-finished { background: rgba(76, 175, 80, 0.3); }
.node-error { background: rgba(244, 67, 54, 0.3); }

pre {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #e0e0e0;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

button {
    padding: 8px 16px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0052a3;
}

.loading-indicator {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    z-index: 999;
}

/* 添加思考文本样式 */
.thinking-text {
    font-style: italic;
    color: #64748b;
    margin: 8px 0;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    font-size: 0.9em;
}

/* 添加加载动画样式 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 添加 Markdown 内容的样式 */
.markdown-content {
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.95em;
}

.markdown-content a {
    color: #64b5f6;
}

.markdown-content code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 3px;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
}

/* Override highlight.js default styles */
.hljs {
    background: transparent !important;
    color: #e0e0e0 !important;
}

.expert-message {
    padding: 12px;
    margin: 12px 0;
    background: rgba(29, 78, 216, 0.1);
    border-radius: 8px;
    line-height: 1.6;
    font-size: 14px;
    color: #e5e7eb;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.0);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.expert-message.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    padding: 16px;
}

.expert-message .markdown-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.expert-message .markdown-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.expert-message .markdown-table th,
.expert-message .markdown-table td {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.expert-message .markdown-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.expert-message .markdown-table td {
    background: rgba(0, 0, 0, 0.2);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.expert-message .markdown-table tr {
    transition: background 0.2s ease;
}

.expert-message .markdown-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.3);
}

.expert-message .markdown-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.expert-message .markdown-table strong {
    color: #ef4444;
    font-weight: 600;
}

.expert-message:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: linear-gradient(transparent, rgba(29, 78, 216, 0.1));
    pointer-events: none;
}

.expert-message.running {
    position: relative;
    overflow: hidden;
}

.expert-message.running::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(59, 130, 246, 0) 100%);
    animation: messageLoading 2s infinite;
    width: 100%;
    transform-origin: left center;
}

@keyframes messageLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.node-details-toggle {
    padding: 6px 12px;
    margin-top: 8px;
    color: #93c5fd;
    font-size: 0.85em;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    background: rgba(29, 78, 216, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
    text-align: center;
}

.node-details-toggle:hover {
    background: rgba(29, 78, 216, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.node-details {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* 修改节点状态样式 */
.node-step_start { border-left: 4px solid #3b82f6; }
.node-llm_start { border-left: 4px solid #8b5cf6; }
.node-llm_end { border-left: 4px solid #10b981; }
.node-tool_start { border-left: 4px solid #f59e0b; }
.node-tool_end { border-left: 4px solid #06b6d4; }
.node-error { border-left: 4px solid #ef4444; }

/* 添加打字机动画效果 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.data-chart {
    width: 100% !important;
    height: 240px !important;
    margin: 8px 0;
    background: transparent;
    border-radius: 8px;
}

.message {
    margin: 8px 0;
    padding: 12px;
    background: transparent;
    border-radius: 8px;
}

.message.error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 12px;
    margin: 8px 0;
    border-radius: 4px;
    color: #cf1322;
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

/* 更新状态描述文本样式 */
.expert-description {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* 添加执行中状态动画 */
.node-running::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.8) 50%,
        rgba(59, 130, 246, 0) 100%);
    animation: loading 1.5s infinite;
    transform-origin: left center;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 优化状态标签样式 */
.status-badge {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.running {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* 结果tab样式 */
.result-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.tab-item {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-right: 16px;
}

.tab-item.active {
    color: #fff;
    border-bottom-color: rgb(21, 94, 239);
}

/* 添加代码块标题栏样式 */
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-language {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.code-actions {
    display: flex;
    gap: 8px;
}

.code-copy-btn {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Markdown 数学公式样式 */
.katex-display {
    margin: 1em 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* 图表容器样式 */
.chart-container {
    min-height: 350px;
    width: 100%;
    margin: 1em 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* 添加新的专家节点样式 */
.node-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: rgba(193, 232, 224, 0.05);
    border-radius: 6px;
    margin-bottom: 12px;
}

.expert-icon {
    font-size: 24px;
    background: rgba(59, 130, 246, 0.2);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.expert-name {
    font-weight: 600;
    color: #dbe6f9;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    font-size: 1.1em;
}

.expert-status {
    color: #93c5fd;
    font-size: 0.8em;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.node-time {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
}

.expert-message {
    padding: 16px;
    margin: 12px 0;
    background: rgba(29, 78, 216, 0.0);
    border-radius: 8px;
    line-height: 1.6;
    font-size: 14px;
    color: #e5e7eb;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.expert-message.expanded {
    -webkit-line-clamp: unset;
    cursor: pointer;
}

.expert-message:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: linear-gradient(transparent, rgba(29, 78, 216, 0.1));
    pointer-events: none;
}

.expert-message.running {
    position: relative;
    overflow: hidden;
}

.expert-message.running::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(59, 130, 246, 0) 100%);
    animation: messageLoading 2s infinite;
    width: 100%;
    transform-origin: left center;
}

@keyframes messageLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.node-details-toggle {
    padding: 6px 12px;
    margin-top: 8px;
    color: #93c5fd;
    font-size: 0.85em;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    background: rgba(29, 78, 216, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
    text-align: center;
}

.node-details-toggle:hover {
    background: rgba(29, 78, 216, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.node-details {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* 修改节点状态样式 */
.node-step_start { border-left: 4px solid #3b82f6; }
.node-llm_start { border-left: 4px solid #8b5cf6; }
.node-llm_end { border-left: 4px solid #10b981; }
.node-tool_start { border-left: 4px solid #f59e0b; }
.node-tool_end { border-left: 4px solid #06b6d4; }
.node-error { border-left: 4px solid #ef4444; }

/* 添加打字机动画效果 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.data-chart {
    width: 100% !important;
    height: 240px !important;
    margin: 8px 0;
    background: transparent;
    border-radius: 8px;
}

.message {
    margin: 8px 0;
    padding: 12px;
    background: transparent;
    border-radius: 8px;
}

.message.error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 12px;
    margin: 8px 0;
    border-radius: 4px;
    color: #cf1322;
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

/* 更新状态描述文本样式 */
.expert-description {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* 添加执行中状态动画 */
.node-running::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.8) 50%,
        rgba(59, 130, 246, 0) 100%);
    animation: loading 1.5s infinite;
    transform-origin: left center;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 优化状态标签样式 */
.status-badge {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.running {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* 结果tab样式 */
.result-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.tab-item {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-right: 16px;
}

.tab-item.active {
    color: #fff;
    border-bottom-color: rgb(21, 94, 239);
}

/* 添加代码块标题栏样式 */
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-language {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.code-actions {
    display: flex;
    gap: 8px;
}

.code-copy-btn {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Markdown 数学公式样式 */
.katex-display {
    margin: 1em 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* 图表容器样式 */
.chart-container {
    min-height: 350px;
    width: 100%;
    margin: 1em 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* 添加新的专家节点样式 */
.node-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: rgba(193, 232, 224, 0.05);
    border-radius: 6px;
    margin-bottom: 12px;
}

.expert-icon {
    font-size: 24px;
    background: rgba(59, 130, 246, 0.2);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.expert-name {
    font-weight: 600;
    color: #dbe6f9;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    font-size: 1.1em;
}

.expert-status {
    color: #93c5fd;
    font-size: 0.8em;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.node-time {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
}

/* 添加打字机动画效果 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.data-chart {
    width: 100% !important;
    height: 240px !important;
    margin: 8px 0;
    background: transparent;
    border-radius: 8px;
}

.message {
    margin: 8px 0;
    padding: 12px;
    background: transparent;
    border-radius: 8px;
}

.message.error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 12px;
    margin: 8px 0;
    border-radius: 4px;
    color: #cf1322;
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

/* 更新状态描述文本样式 */
.expert-description {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* 添加执行中状态动画 */
.node-running::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.8) 50%,
        rgba(59, 130, 246, 0) 100%);
    animation: loading 1.5s infinite;
    transform-origin: left center;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 优化状态标签样式 */
.status-badge {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.running {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}