        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; height: 100vh; display: flex; flex-direction: column; }
        
        /* Header */
        .header { background: #1a73e8; color: white; padding: 8px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .header h1 { font-size: 16px; font-weight: 500; }
        .header .stats { font-size: 11px; opacity: 0.9; display: flex; align-items: center; gap: 8px; }
        
        /* Main layout */
        .main { display: flex; flex: 1; overflow: hidden; }
        
        /* Sidebar */
        .sidebar { width: 240px; background: white; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; overflow: hidden; }
        .sidebar-header { padding: 8px 10px; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; gap: 6px; }
        .sidebar-header .refresh-btn { flex: 1; padding: 6px 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 12px; background: #f8f9fa; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all 0.2s; }
        .sidebar-header .refresh-btn:hover { background: #e3f2fd; border-color: #90caf9; }
        .sidebar-header .refresh-btn .count { background: #1976d2; color: white; padding: 1px 6px; border-radius: 10px; font-size: 11px; }
        .folder-list { flex: 1; overflow-y: auto; }
        .folder-item { padding: 4px 10px; cursor: pointer; border-bottom: 1px solid #f5f5f5; transition: background 0.15s; }
        .folder-item:hover { background: #f0f7ff; }
        .folder-item.active { background: #e3f2fd; border-left: 3px solid #1a73e8; }
        .folder-name { font-size: 12px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .folder-count { font-size: 10px; color: #888; margin-top: 1px; }
        .expand-icon { display: inline-block; width: 12px; font-size: 10px; color: #666; cursor: pointer; transition: transform 0.2s; }
        .folder-parent.expanded .expand-icon { transform: rotate(90deg); }
        .folder-parent { font-weight: 500; background: #f8f9fa; }
        .folder-parent:hover { background: #e8f0fe; }
        .folder-children { border-left: 2px solid #e0e0e0; margin-left: 12px; }

        
        /* Content area */
        .content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        
        /* Tab bar */
        .tabs { display: flex; background: white; border-bottom: 1px solid #e0e0e0; }
        .tab { padding: 10px 20px; cursor: pointer; font-size: 13px; color: #666; border-bottom: 2px solid transparent; transition: all 0.15s; }
        .tab:hover { color: #1a73e8; }
        .tab.active { color: #1a73e8; border-bottom-color: #1a73e8; }
        
        /* Chat panel */
        .chat-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        .chat-messages { flex: 1; overflow-y: auto; padding: 16px; }
        .chat-input { padding: 12px 16px; background: white; border-top: 1px solid #e0e0e0; display: flex; gap: 8px; }
        .chat-input input { flex: 1; padding: 10px 16px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; outline: none; }
        .chat-input input:focus { border-color: #1a73e8; }
        .chat-input button { padding: 10px 20px; background: #1a73e8; color: white; border: none; border-radius: 20px; cursor: pointer; font-size: 14px; }
        .chat-input button:hover { background: #1557b0; }
        .chat-input button:disabled { background: #ccc; }
        
        /* Messages */
        .msg { margin-bottom: 16px; max-width: 85%; }
        .msg.user { margin-left: auto; }
        .msg.ai { margin-right: auto; }
        .msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
        .msg.user .msg-bubble { background: #1a73e8; color: white; border-bottom-right-radius: 4px; }
        .msg.ai .msg-bubble { background: white; color: #333; border: 1px solid #e0e0e0; border-bottom-left-radius: 4px; }
        .msg-sources { margin-top: 8px; font-size: 11px; color: #888; }
        .msg-sources a { color: #1a73e8; text-decoration: none; cursor: pointer; }
        .msg-sources a:hover { text-decoration: underline; }
        
        /* Streaming cursor */
        .streaming-cursor { 
            animation: blink 0.8s infinite; 
            color: #1a73e8; 
            font-weight: bold;
        }
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }
        
        /* Search results */
        .search-panel { flex: 1; overflow-y: auto; padding: 16px; }
        .search-bar { padding: 12px 16px; background: white; border-bottom: 1px solid #e0e0e0; display: flex; gap: 8px; }
        .search-bar input { flex: 1; padding: 10px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
        .search-bar button { padding: 10px 20px; background: #1a73e8; color: white; border: none; border-radius: 6px; cursor: pointer; }
        .search-result { background: white; margin-bottom: 8px; padding: 12px 16px; border-radius: 8px; border: 1px solid #e0e0e0; cursor: pointer; transition: box-shadow 0.15s; }
        .search-result:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .search-result .folder-tag { display: inline-block; background: #e3f2fd; color: #1a73e8; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-bottom: 4px; }
        .search-result .subject { font-size: 14px; font-weight: 500; color: #333; margin: 4px 0; }
        .search-result .meta { font-size: 12px; color: #888; }
        .search-result .preview { font-size: 13px; color: #666; margin-top: 6px; max-height: 60px; overflow: hidden; }
        
        /* Email detail modal */
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 100; display: none; justify-content: center; align-items: center; }
        .modal-overlay.show { display: flex; }
        .modal { background: white; border-radius: 12px; width: 90%; max-width: 800px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; }
        .modal-header { padding: 16px 20px; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; }
        .modal-header h3 { font-size: 16px; }
        .modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; }
        .modal-body { flex: 1; overflow-y: auto; padding: 20px; }
        .modal-body .field { margin-bottom: 12px; }
        .modal-body .field-label { font-size: 12px; color: #888; margin-bottom: 4px; }
        .modal-body .field-value { font-size: 14px; color: #333; }
        .modal-body .body-content { background: #f9f9f9; padding: 16px; border-radius: 8px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; max-height: 400px; overflow-y: auto; margin-top: 12px; }
        
        /* Loading */
        .loading { text-align: center; padding: 40px; color: #888; }
        .spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #ddd; border-top-color: #1a73e8; border-radius: 50%; animation: spin 0.8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* Welcome */
        .welcome { text-align: center; padding: 60px 20px; color: #666; }
        .welcome h2 { font-size: 20px; margin-bottom: 12px; color: #333; }
        .welcome p { font-size: 14px; margin-bottom: 8px; }
        .quick-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
        .quick-action { padding: 8px 16px; background: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 20px; cursor: pointer; font-size: 13px; color: #1a73e8; }
        .quick-action:hover { background: #d0e3ff; }
        
        /* Mobile */
        @media (max-width: 768px) {
            .sidebar { display: none; }
            .sidebar.show { display: flex; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: 85%; box-shadow: 4px 0 12px rgba(0,0,0,0.2); }
            .header .menu-btn { display: block; }
        }
        @media (min-width: 769px) {
            .header .menu-btn { display: none; }
        }

        /* ===================== NEW TAB STYLES ===================== */

        /* Order Deep Report - Dual Column Dashboard */
        .order-report-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        .order-report-content { flex: 1; overflow-y: auto; padding: 20px; }
        .dashboard-dual { display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; overflow-y: auto; }
        .view-ai-report { display: none; flex: 1; min-height: 0; flex-direction: column; }
        .dashboard-left { width: 100%; overflow-y: visible; padding: 0; border-right: none; }
        .dashboard-right { width: 100%; overflow-y: visible; padding: 0; }
        @media (max-width: 1000px) { .dashboard-dual { flex-direction: column; } .dashboard-left { width: 100%; } .dashboard-right { width: 100%; } }
        .report-section { background: white; border-radius: 10px; margin-bottom: 16px; border: 1px solid #e0e0e0; overflow: hidden; }
        .report-section-header { padding: 14px 18px; font-size: 15px; font-weight: 600; color: #333; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; }
        .report-section-body { padding: 16px 18px; font-size: 14px; line-height: 1.8; color: #444; }
        .timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
        .timeline-item:last-child { border-bottom: none; }
        .timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #1a73e8; margin-top: 6px; flex-shrink: 0; }
        .timeline-dot.sample { background: #f59e0b; }
        .timeline-date { font-size: 12px; color: #888; min-width: 90px; }
        .timeline-content { font-size: 13px; color: #333; flex: 1; }
        .issue-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-right: 4px; }
        .issue-tag.open { background: #fef2f2; color: #dc2626; }
        .issue-tag.resolved { background: #f0fdf4; color: #16a34a; }
        .issue-tag.pending { background: #fffbeb; color: #d97706; }
        .cost-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
        .cost-row:last-child { border-bottom: none; }
        .cost-label { color: #666; }
        .cost-value { font-weight: 600; color: #333; }
        .related-order { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 20px; font-size: 12px; color: #1a73e8; cursor: pointer; margin: 4px; }
        .related-order:hover { background: #d0e3ff; }
        .report-header-bar { padding: 12px 20px; background: white; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: space-between; }
        .report-header-bar h3 { font-size: 16px; color: #333; }
        .report-status-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
        .report-status-badge.active { background: #dcfce7; color: #16a34a; }
        .report-status-badge.completed { background: #f0f0f0; color: #666; }

        /* Knowledge Network */
        .network-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        .network-container { flex: 1; position: relative; min-height: 400px; }
        #networkGraph { width: 100%; height: calc(100vh - 200px); background: #fafafa; }
        .network-toolbar { padding: 8px 16px; background: white; border-bottom: 1px solid #e0e0e0; display: flex; gap: 8px; align-items: center; }
        .network-toolbar button { padding: 6px 14px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 12px; background: white; }
        .network-toolbar button:hover { background: #f0f7ff; border-color: #1a73e8; color: #1a73e8; }
        .network-toolbar button.active { background: #1a73e8; color: white; border-color: #1a73e8; }
        .node-detail-panel { position: absolute; right: 16px; top: 16px; width: 300px; background: white; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 10; display: none; overflow: hidden; }
        .node-detail-panel.show { display: block; }
        .node-detail-header { padding: 14px 16px; background: #f8f9fa; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; }
        .node-detail-header h4 { font-size: 14px; color: #333; }
        .node-detail-close { background: none; border: none; cursor: pointer; font-size: 18px; color: #888; }
        .node-detail-body { padding: 14px 16px; max-height: 400px; overflow-y: auto; }
        .node-detail-body .nd-field { margin-bottom: 10px; }
        .node-detail-body .nd-label { font-size: 11px; color: #888; margin-bottom: 2px; }
        .node-detail-body .nd-value { font-size: 13px; color: #333; }
        .legend-bar { padding: 8px 16px; background: #f8f9fa; border-top: 1px solid #e0e0e0; display: flex; gap: 16px; flex-wrap: wrap; }
        .legend-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #666; }
        .legend-dot { width: 10px; height: 10px; border-radius: 50%; }

        /* Inquiry Analysis */
        
.deadline-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.deadline-item.overdue {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.deadline-item.urgent {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.deadline-item.warning {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.deadline-item.normal {
    background: #d4edda;
    border-left-color: #28a745;
}

.deadline-icon {
    font-size: 20px;
    margin-right: 12px;
}

.deadline-info {
    flex: 1;
}

.deadline-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.deadline-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

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

.deadline-actions button {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.deadline-actions button:hover {
    background: #f0f0f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.stat-card {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a73e8;
}

.stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

}

}

}

}


.btn-back {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 13px;
}

.btn-back:hover {
    background: #f0f0f0;
}

.detail-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 16px;
    overflow: hidden;
}

.detail-section-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

.detail-section-content {
    padding: 12px 16px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: #333;
}

.email-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.email-item:last-child {
    border-bottom: none;
}

.email-icon {
    font-size: 20px;
    margin-right: 12px;
    margin-top: 2px;
}

.email-info {
    flex: 1;
}

.email-subject {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.email-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.email-snippet {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.email-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.email-actions button {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.email-actions button:hover {
    background: #f0f0f0;
}

.email-actions button.unlink {
    color: #dc3545;
    border-color: #dc3545;
}

.email-actions button.unlink:hover {
    background: #dc3545;
    color: white;
}

.ai-analysis-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.ai-analysis-title {
    font-size: 12px;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 8px;
}

.ai-analysis-content {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.tracking-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    margin-top: 8px;
}

.tracking-icon {
    font-size: 20px;
    margin-right: 12px;
}

.tracking-info {
    flex: 1;
}

.tracking-number {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.tracking-status {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.loading-small {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: #888;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 14px;
}

.link-modal-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.link-modal-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.link-modal-search button {
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.link-email-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.link-email-item:hover {
    background: #f8f9fa;
}

.link-email-info {
    flex: 1;
}

.link-email-subject {
    font-size: 13px;
    color: #333;
}

.link-email-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* 询价解析模块完整样式 */

/* 主面板 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a73e8;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 项目列表 */
}

}

}

}

}

.btn-back {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-back:hover {
    background: #f0f0f0;
}

.detail-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 16px;
    overflow: hidden;
}

.detail-section-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-section-header button {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.detail-section-content {
    padding: 12px 16px;
}

/* 项目信息网格 */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
}

/* 邮件列表 */
.email-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f8f9fa;
    gap: 12px;
}

.email-icon {
    font-size: 18px;
    margin-top: 2px;
}

.email-info {
    flex: 1;
    min-width: 0;
}

.email-subject {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.email-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.email-snippet {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.email-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.email-actions button {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.email-actions button:hover {
    background: #f0f0f0;
}

.email-actions button.unlink {
    color: #dc3545;
    border-color: #dc3545;
}

.email-actions button.unlink:hover {
    background: #fff5f5;
}

/* AI解析框 */
.ai-analysis-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.ai-analysis-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.ai-analysis-content {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* 快递追踪 */
.tracking-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    margin-top: 8px;
}

.tracking-icon {
    font-size: 16px;
    margin-right: 10px;
}

.tracking-info {
    flex: 1;
}

.tracking-number {
    font-weight: 500;
    font-size: 13px;
}

.tracking-status {
    font-size: 12px;
    color: #666;
}

/* 空状态 */
.empty-state {
    padding: 24px;
    text-align: center;
    color: #999;
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
}

/* 加载状态 */
.loading-small {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* 关联邮件弹窗 */
.link-email-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.link-email-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.link-email-search button {
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.link-email-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    background: #f8f9fa;
}

.link-email-item:hover {
    background: #f0f0f0;
}

.link-email-subject {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.link-email-meta {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
/* 修复flex布局 - 确保内容填满容器 */
.main { display: flex; flex: 1; overflow: hidden; min-height: 0; }
.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
