body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.main-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 120px);
}

.sidebar-container {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-width: 300px;
}

.content-container {
    flex: 4;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
}

.operation-section {
    margin-bottom: 25px;
}

.operation-section:last-child {
    margin-bottom: 0;
}

.operation-title {
    font-weight: bold;
    margin: 10px 0;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    margin-top: 10px;
}

.conversation-item {
    padding: 10px;
    border-bottom: 1px solid #ebeef5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-item:hover {
    background-color: #f5f5f5;
}

.conversation-item.active {
    background-color: #ecf5ff;
    color: #409eff;
}

.conversation-info {
    flex: 1;
    overflow: hidden;
}

.conversation-name {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.empty-prompt {
    text-align: center;
    color: #909399;
    font-style: italic;
    padding: 50px;
}

.conversation-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.conversation-header h2 {
    margin: 0 0 5px 0;
}

.audit-dialog .el-dialog__body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.audit-timeline {
    padding: 0 20px;
}

.audit-card {
    margin-bottom: 10px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}


.audit-card .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.audit-card .timeline-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.audit-card .message-content {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.audit-card .user-message {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #333;
}

.audit-card .assistant-message {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
}

.audit-card .tool-call-content,
.audit-card .tool-response-content {
    padding: 10px;
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    border-radius: 4px;
    margin-bottom: 10px;
}

.audit-card .tool-info .tool-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.audit-card .tool-info .tool-arguments,
.audit-card .tool-info .tool-result,
.audit-card .tool-response-info {
    margin-bottom: 10px;
}

.audit-card .tool-info h5,
.audit-card .tool-response-info h5 {
    margin: 10px 0 5px 0;
    font-size: 14px;
}

.audit-card pre {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 5px 0;
}

.audit-card .unknown-content pre {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

.timeline-header h4 {
    margin: 0;
}

.timeline-actions {
    display: flex;
    gap: 10px;
}

.user-message {
    /*background-color: #409EFF;*/
    color: white;
    padding: 10px;
    border-radius: 8px;
}

.assistant-message {
    /*background-color: #f0f0f0;*/
    padding: 10px;
    border-radius: 8px;
}

.tool-call-content {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.tool-info .tool-name {
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 15px;
    font-size: 16px;
}

.tool-info .tool-arguments,
.tool-info .tool-result {
    margin-top: 15px;
}

.tool-info h5 {
    margin: 0 0 8px 0;
    color: #555;
    font-size: 14px;
}

.tool-info pre {
    background-color: #f0f8ff;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 5px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #d1e9ff;
}

.system-content {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    padding: 10px;
}

.collapsed-content {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.collapsed-content:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, white);
}

/* 全屏样式 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.fullscreen-header {
    padding: 15px 20px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fullscreen-title {
    font-size: 18px;
    font-weight: bold;
}

.close-fullscreen-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.close-fullscreen-btn:hover {
    color: #ccc;
}

.fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: white;
}

.fullscreen-body .user-message,
.fullscreen-body .assistant-message,
.fullscreen-body .tool-call-content,
.fullscreen-body .system-content {
    color: white;
    margin-bottom: 20px;
}

.fullscreen-body .user-message {
    background-color: #1a5fb4;
}

.fullscreen-body .assistant-message {
    background-color: #444;
}

.fullscreen-body .tool-call-content {
    background-color: #1a3a5f;
    border-color: #4d8ccb;
}

.fullscreen-body .system-content {
    background-color: #5a4a1f;
    border-color: #b8923d;
}

.fullscreen-body pre {
    background-color: #333;
    color: white;
}