/* AI 实时中心样式 - AI科技风格 */

.ai-realtime-page {
    min-height: 100vh;
    background: #0a0e27;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* 科技感背景网格 */
.ai-realtime-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 150, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 使用首页的样式类 */
.antx-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0a0e27;
    position: relative;
    z-index: 1;
}

.antx-container {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: calc(100vh - 48px);
    position: relative;
    z-index: 1;
}

.antx-chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.antx-chat-panel {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.antx-chat-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.5),
        rgba(147, 51, 234, 0.5),
        rgba(59, 130, 246, 0.5),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.antx-chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
}

.antx-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    letter-spacing: 0.5px;
}

.antx-chat-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.antx-chat-window {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: rgba(10, 14, 39, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

/* 自定义滚动条 */
.antx-chat-window::-webkit-scrollbar {
    width: 8px;
}

.antx-chat-window::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.antx-chat-window::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 4px;
}

.antx-chat-window::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
}

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

.antx-message-user {
    flex-direction: row-reverse;
}

.antx-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.antx-avatar-ai {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.4),
        inset 0 0 10px rgba(59, 130, 246, 0.2);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

.antx-avatar-user {
    background: rgba(147, 51, 234, 0.2);
    color: #a78bfa;
    border: 2px solid rgba(147, 51, 234, 0.5);
    box-shadow: 
        0 0 20px rgba(147, 51, 234, 0.4),
        inset 0 0 10px rgba(147, 51, 234, 0.2);
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

.antx-message-content {
    flex: 1;
    min-width: 0;
}

.antx-message-user .antx-message-content {
    display: flex;
    justify-content: flex-end;
}

.antx-message-bubble {
    padding: 14px 18px;
    border-radius: 16px;
    max-width: 70%;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: messageAppear 0.3s ease-out;
    position: relative;
}

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

.antx-bubble-ai {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.antx-bubble-user {
    background: rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.antx-message-user .antx-message-bubble {
    background: rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(59, 130, 246, 0.2);
}

/* 空状态引导 */
.chat-empty-guide {
    text-align: center;
    padding: 20px;
    color: rgba(226, 232, 240, 0.5);
}

.chat-empty-guide.hidden {
    display: none;
}

.guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.guide-chip {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.guide-chip:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 输入区域 */
.antx-input-section {
    padding: 20px 24px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
}

/* 再次分析按钮区域 */
.antx-reanalyze-section {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(5px);
    animation: slideDown 0.3s ease-out;
}

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

.antx-btn-reanalyze {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
    color: #60a5fa;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.antx-btn-reanalyze::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 0.5s ease;
}

.antx-btn-reanalyze:hover::before {
    left: 100%;
}

.antx-btn-reanalyze:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.4) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #93c5fd;
}

.antx-btn-reanalyze:active {
    transform: translateY(0) scale(0.98);
}

.antx-btn-reanalyze span:first-child {
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
    animation: rotate 2s linear infinite;
}

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

/* 快捷按钮区域 */
.antx-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(5px);
}

.antx-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
    backdrop-filter: blur(5px);
}

.antx-quick-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.antx-quick-btn:active {
    transform: translateY(0);
}

.antx-quick-btn-primary {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.antx-quick-btn-primary:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.antx-quick-btn span:first-child {
    font-size: 16px;
}

.antx-input-wrapper {
    margin-bottom: 12px;
}

.antx-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.antx-textarea::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.antx-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.2),
        0 0 20px rgba(59, 130, 246, 0.3);
}

.antx-textarea:disabled {
    background: rgba(15, 23, 42, 0.4);
    cursor: not-allowed;
    opacity: 0.6;
}

.antx-input-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

/* 按钮样式 */
.antx-btn-primary,
.antx-btn-ghost {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.antx-btn-primary {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.antx-btn-primary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.antx-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.antx-btn-ghost {
    background: rgba(30, 41, 59, 0.5);
    color: rgba(226, 232, 240, 0.7);
    border-color: rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(5px);
}

.antx-btn-ghost:hover {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.antx-btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.antx-btn-loading {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.d-none {
    display: none !important;
}

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

/* 侧边栏 */
.antx-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.antx-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    overflow: hidden;
    position: relative;
}

.antx-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
}

.antx-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    letter-spacing: 0.5px;
}

.antx-card-body {
    padding: 16px 20px;
}

/* 任务列表 */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(226, 232, 240, 0.5);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    opacity: 0.6;
}

.task-item {
    padding: 14px 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.task-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.7);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.task-item.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

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

.task-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 14px;
}

.task-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-view-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-view-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.task-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    font-weight: 500;
}

.task-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.task-status.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

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

.task-detail {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.6);
    margin-top: 6px;
}

.task-footer {
    margin-top: 12px;
    padding-top: 12px;
}

.task-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.3), 
        transparent
    );
    margin-bottom: 12px;
}

.task-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.task-id {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.7);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* 分析报告样式 */
.analysis-report {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.analysis-report::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.5),
        rgba(147, 51, 234, 0.5),
        rgba(59, 130, 246, 0.5),
        transparent
    );
}

.report-header {
    font-size: 20px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    letter-spacing: 0.5px;
}

.report-body {
    line-height: 1.8;
    color: #e2e8f0;
}

.report-reasoning {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid rgba(59, 130, 246, 0.6);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 
        inset 0 0 20px rgba(59, 130, 246, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.report-reasoning-title {
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    font-size: 15px;
}

.report-reasoning-content {
    color: rgba(226, 232, 240, 0.8);
    white-space: pre-wrap;
    line-height: 1.7;
}

.report-content {
    white-space: pre-wrap;
    margin-bottom: 20px;
    color: #e2e8f0;
    line-height: 1.8;
}

.report-status {
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    text-shadow: 0 0 10px currentColor;
    letter-spacing: 1px;
}

.report-status.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 0 20px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.report-status.fail {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.report-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 12px;
    color: rgba(226, 232, 240, 0.5);
    text-align: right;
}

/* 流式输出样式 */
.streaming-message {
    animation: streamingAppear 0.3s ease-out;
}

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

.streaming-title {
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 12px;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.streaming-title::before {
    content: '⚡';
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

.streaming-content {
    color: #e2e8f0;
    white-space: pre-wrap;
    line-height: 1.7;
    min-height: 20px;
    word-wrap: break-word;
}

.streaming-message.streaming-reasoning .streaming-content {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    background: rgba(59, 130, 246, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid rgba(59, 130, 246, 0.4);
    color: rgba(226, 232, 240, 0.9);
}

.streaming-message.streaming-content .streaming-content {
    color: #e2e8f0;
    font-size: 14px;
}

.streaming-cursor {
    display: inline-block;
    color: #60a5fa;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .antx-container {
        flex-direction: column;
        padding: 16px;
    }

    .antx-sidebar {
        width: 100%;
    }

    .antx-chat-panel {
        height: auto;
        min-height: 600px;
    }
}

/* 任务详情弹窗样式 */
.task-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.task-detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(4px);
}

.task-detail-modal-content {
    position: relative;
    background: #1a1f3a;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.task-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.task-detail-modal-header h3 {
    margin: 0;
    color: #60a5fa;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.task-detail-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.task-detail-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.task-detail-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.task-detail-section {
    color: #e2e8f0;
}

.task-detail-section h4 {
    margin: 0 0 16px 0;
    color: #60a5fa;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.detail-item {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-item.full-width {
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    color: #94a3b8;
    font-size: 14px;
    min-width: 80px;
    font-weight: 500;
}

.detail-value {
    color: #e2e8f0;
    font-size: 14px;
    flex: 1;
    word-break: break-word;
}

.prompt-content {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
    white-space: pre-wrap;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.texts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.text-item {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
}

.text-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.text-item-index {
    color: #60a5fa;
    font-weight: 600;
    font-size: 14px;
}

.text-item-type {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.text-item-content {
    color: #e2e8f0;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 14px;
}

@media (max-width: 768px) {
    .antx-container {
        padding: 12px;
    }

    .antx-message-bubble {
        max-width: 85%;
    }
    
    .antx-chat-header {
        padding: 16px;
    }
    
    .antx-chat-title {
        font-size: 16px;
    }
    
    .antx-chat-window {
        padding: 16px;
    }
    
    .antx-input-section {
        padding: 16px;
    }
    
    .task-detail-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .task-detail-modal-header,
    .task-detail-modal-body {
        padding: 16px;
    }
}

