    /* Override modal styles for task detail modal */
    #task-detail-modal {
        position: fixed;
        inset: 0;
        background: rgba(12, 14, 26, 0.8);
        backdrop-filter: blur(12px);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        z-index: 9999;
        overflow-y: auto;
    }

    /* 重试弹窗 */
    #retry-modal {
        position: fixed;
        inset: 0;
        background: rgba(12, 14, 26, 0.8);
        backdrop-filter: blur(12px);
        align-items: center;
        justify-content: center;
        padding: 20px;
        z-index: 9999;
        overflow-y: auto;
    }

    #retry-modal .modal-content {
        background: rgba(12, 14, 26, 0.6);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 12px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
        width: 95%;
        max-width: 520px;
        overflow: hidden;
        animation: modalSlideIn 0.3s ease-out;
        margin: auto;
    }

    #retry-modal .modal-header {
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #retry-modal .modal-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }

    #retry-modal .modal-body {
        padding: 24px;
        overflow-y: auto;
        max-height: 70vh;
    }
    
    #task-detail-modal .modal-content {
        background: rgba(12, 14, 26, 0.6);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 12px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
        width: 95%;
        max-width: 1600px;
        max-height: 95vh;
        overflow: hidden;
        animation: modalSlideIn 0.3s ease-out;
        margin: auto;
    }
    
    @keyframes modalSlideIn {
        from {
            transform: translateY(-30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    #task-detail-modal .modal-header {
        padding: 24px 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(0, 212, 255, 0.05);
    }
    
    #task-detail-modal .modal-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        margin: 0;
    }
    
    #task-detail-modal .modal-close {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #task-detail-modal .modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    #task-detail-modal .modal-body {
        padding: 32px;
        overflow-y: auto;
        max-height: calc(95vh - 100px);
    }
    
    /* Result section styles */
    .result-section {
        margin-bottom: 32px;
    }
    
    .result-section:last-child {
        margin-bottom: 0;
    }
    
    .result-section-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .markdown-body {
        background-color: rgba(12, 14, 26, 0.4) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
        padding: 24px !important;
        border-radius: 8px !important;
        color: var(--text-primary) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #mermaidContainer {
        background-color: rgba(12, 14, 26, 0.4);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        padding: 24px;
        border-radius: 8px;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
    }
    
    #mermaidContainer svg {
        max-width: 100%;
        height: auto;
    }
    
    .result-loading {
        text-align: center;
        padding: 40px;
        color: var(--text-secondary);
    }
    
    .result-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 212, 255, 0.3);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 16px;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* 任务结果面板样式 - 页面内展开 */
    .task-result-panel {
        background: rgba(12, 14, 26, 0.4);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 212, 255, 0.2);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 20px rgba(0, 212, 255, 0.05);
        border-radius: 12px;
        margin-top: 24px;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .result-panel-header {
        padding: 24px 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 212, 255, 0.05);
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    
    .result-panel-title {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .result-panel-title h2 {
        margin: 0;
        color: var(--text-primary);
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .result-panel-body {
        padding: 32px;
    }
    
    .result-card {
        background: rgba(12, 14, 26, 0.4);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        padding: 24px;
        border-radius: 8px;
        margin-bottom: 24px;
    }
    
    .result-card:last-child {
        margin-bottom: 0;
    }
    
    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .info-item {
        background: rgba(255, 255, 255, 0.02);
        padding: 16px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .info-label {
        color: var(--text-secondary);
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .info-value {
        color: var(--text-primary);
        font-weight: 500;
        font-size: 16px;
    }
    
    .info-mono {
        font-family: 'Courier New', monospace;
        font-size: 13px;
    }
