* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px 0; text-align: center; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .header h1 { font-size: 2.5em; margin-bottom: 10px; } .header p { font-size: 1.1em; opacity: 0.9; } .controls { background: white; padding: 20px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } /* 过滤区域样式 */ .filter-section { margin-bottom: 20px; background: #f8f9fa; border-radius: 8px; padding: 20px; border: 1px solid #e9ecef; } .filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #dee2e6; } .filter-header h3 { font-size: 18px; color: #495057; margin: 0; font-weight: 600; } .filter-actions { display: flex; gap: 10px; } .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; } .filter-item { display: flex; flex-direction: column; } .filter-item label { font-weight: 600; margin-bottom: 8px; font-size: 14px; color: #495057; } .filter-item input, .filter-item select { padding: 10px 12px; border: 1px solid #ced4da; border-radius: 6px; font-size: 14px; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } .filter-item input:focus, .filter-item select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .action-section { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: white; border-radius: 8px; border: 1px solid #e9ecef; margin-top: 20px; } .stats-section { flex: 1; } .stats-info { font-size: 15px; color: #6c757d; font-weight: 600; padding: 8px 0; } .create-section { display: flex; gap: 10px; } /* 批量操作区域样式 */ .batch-actions { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 5px; padding: 15px; margin-bottom: 20px; } .batch-header { display: flex; align-items: center; justify-content: space-between; } .batch-select { display: flex; align-items: center; gap: 10px; } .batch-select input[type="checkbox"] { width: 18px; height: 18px; } .batch-select label { font-weight: bold; color: #495057; margin: 0; } .batch-info { font-size: 14px; color: #6c757d; font-weight: bold; } .batch-buttons { display: flex; gap: 10px; } /* QA项目选中状态 */ .qa-item.selected { background-color: #e3f2fd; border-color: #2196f3; } .qa-checkbox { margin-right: 10px; } .qa-checkbox input[type="checkbox"] { width: 16px; height: 16px; } .search-box { display: flex; gap: 10px; margin-bottom: 15px; } .search-box input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; } .btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.3s ease; } .btn-primary { background: #667eea; color: white; } .btn-primary:hover { background: #5a6fd8; transform: translateY(-2px); } .btn-success { background: #28a745; color: white; } .btn-success:hover { background: #218838; } .btn-danger { background: #dc3545; color: white; } .btn-danger:hover { background: #c82333; } .btn-outline { background: transparent; color: #6c757d; border: 1px solid #6c757d; } .btn-outline:hover { background: #6c757d; color: white; } .qa-list { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; } .qa-item { background: white; border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; display: flex; flex-direction: column; } .qa-item:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); transform: translateY(-2px); } .qa-item.selected { background-color: #e3f2fd; border-color: #2196f3; box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2); } .qa-header { display: flex; align-items: center; margin-bottom: 15px; gap: 15px; } .qa-checkbox { flex-shrink: 0; } .qa-id { font-weight: bold; color: #667eea; font-size: 16px; } .qa-group { background: #f0f0f0; padding: 4px 8px; border-radius: 4px; font-size: 12px; color: #666; } .qa-id { font-weight: bold; color: #667eea; font-size: 1.2em; } .qa-group { background: #e9ecef; padding: 5px 10px; border-radius: 15px; font-size: 0.9em; } .qa-content { margin-bottom: 15px; } .nav { display: flex; gap: 10px; margin-bottom: 20px; } .nav-btn { padding: 8px 16px; background: #f8f9fa; border: 1px solid #ddd; border-radius: 5px; text-decoration: none; color: #333; transition: all 0.3s; } .nav-btn:hover { background: #667eea; color: white; border-color: #667eea; } .qa-section { margin-bottom: 10px; } .qa-section h4 { color: #495057; margin-bottom: 5px; font-size: 1em; } .message-list { background: #f8f9fa; padding: 10px; border-radius: 5px; max-height: 150px; overflow-y: auto; } .message-item { padding: 5px; margin-bottom: 5px; background: white; border-radius: 3px; font-size: 0.9em; border-left: 3px solid #667eea; } .qa-actions { display: flex; gap: 10px; } .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); } .modal-content { background-color: white; margin: 5% auto; padding: 30px; border-radius: 10px; width: 80%; max-width: 800px; max-height: 80vh; overflow-y: auto; } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .close { font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; } .close:hover { color: #000; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 5px; font-weight: bold; } .form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; } .message-selector { border: 1px solid #ddd; border-radius: 5px; padding: 15px; margin-bottom: 15px; } .search-results { max-height: 200px; overflow-y: auto; border: 1px solid #ddd; border-radius: 5px; margin-top: 10px; } .search-result-item { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; transition: background-color 0.2s; } .search-result-item:hover { background-color: #f0f0f0; } .selected-messages { background: #f8f9fa; padding: 10px; border-radius: 5px; margin-top: 10px; } .selected-message { display: flex; justify-content: space-between; align-items: center; padding: 5px; margin-bottom: 5px; background: white; border-radius: 3px; } .loading { text-align: center; padding: 20px; color: #666; } .empty-state { text-align: center; padding: 40px; color: #666; } .empty-state i { font-size: 48px; margin-bottom: 10px; opacity: 0.5; } /* 搜索相关样式 */ .search-container { position: relative; } .search-input-wrapper { position: relative; } .search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #ddd; border-top: none; border-radius: 0 0 5px 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 1000; display: none; } .search-suggestion-item { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s; } .search-suggestion-item:hover { background-color: #f8f9fa; } .search-suggestion-item:last-child { border-bottom: none; } .search-history { margin-top: 10px; border: 1px solid #ddd; border-radius: 5px; background: white; display: none; } .search-history-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #eee; background: #f8f9fa; } .search-history-header span { font-weight: bold; color: #495057; } .btn-clear-history { background: none; border: none; color: #6c757d; cursor: pointer; font-size: 12px; text-decoration: underline; } .btn-clear-history:hover { color: #495057; } .search-history-items { max-height: 200px; overflow-y: auto; } .search-history-item { padding: 8px 15px; cursor: pointer; border-bottom: 1px solid #f8f9fa; transition: background-color 0.2s; } .search-history-item:hover { background-color: #f8f9fa; } .search-history-item:last-child { border-bottom: none; } /* 按钮样式增强 */ .btn-secondary { background-color: #6c757d; border-color: #6c757d; } .btn-secondary:hover { background-color: #5a6268; border-color: #545b62; } .btn-info { background-color: #17a2b8; border-color: #17a2b8; } .btn-info:hover { background-color: #138496; border-color: #117a8b; } /* 搜索结果样式 */ .search-results-header { background: #f8f9fa; padding: 15px 20px; border-radius: 5px; margin-bottom: 15px; border-left: 4px solid #667eea; } .search-results-header h3 { margin: 0 0 5px 0; color: #495057; } .search-summary { color: #6c757d; font-size: 0.9em; } .search-result-item { border-left: 3px solid #28a745; background: #f8fff9; } .message-content { background: white; padding: 10px; border-radius: 3px; border: 1px solid #e9ecef; margin-top: 5px; line-height: 1.5; } .message-content mark { background-color: #fff3cd; padding: 2px 4px; border-radius: 2px; font-weight: bold; } /* 聊天记录预览样式 */ .chat-preview { background: white; border-radius: 10px; overflow: hidden; } .chat-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; text-align: center; } .chat-header h3 { margin: 0 0 10px 0; font-size: 1.5em; } .chat-info { opacity: 0.9; font-size: 0.9em; } .chat-container { padding: 20px; max-height: 400px; overflow-y: auto; background: #f8f9fa; } .chat-message { display: flex; margin-bottom: 15px; animation: fadeIn 0.3s ease; } .chat-message.question { flex-direction: row; } .chat-message.answer { flex-direction: row-reverse; } .chat-message.other { flex-direction: row; opacity: 0.7; } .message-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin: 0 10px; flex-shrink: 0; } .chat-message.question .message-avatar { background: #e3f2fd; color: #1976d2; } .chat-message.answer .message-avatar { background: #f3e5f5; color: #7b1fa2; } .chat-message.other .message-avatar { background: #f5f5f5; color: #757575; } .message-content { flex: 1; max-width: 70%; } .message-header { display: flex; align-items: center; margin-bottom: 5px; gap: 10px; } .sender { font-weight: bold; color: #333; } .time { font-size: 0.8em; color: #666; } .message-type-badge { padding: 2px 8px; border-radius: 12px; font-size: 0.7em; font-weight: bold; } .message-type-badge.question { background: #e3f2fd; color: #1976d2; } .message-type-badge.answer { background: #f3e5f5; color: #7b1fa2; } .message-type-badge.other { background: #f5f5f5; color: #757575; } .message-text { background: white; padding: 12px 15px; border-radius: 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); line-height: 1.4; word-wrap: break-word; } .chat-message.question .message-text { background: #e3f2fd; border-bottom-left-radius: 5px; } .chat-message.answer .message-text { background: #f3e5f5; border-bottom-right-radius: 5px; } .chat-message.other .message-text { background: #f5f5f5; border-radius: 18px; } .message-meta { display: flex; justify-content: space-between; margin-top: 5px; font-size: 0.7em; color: #999; } .chat-summary { background: white; padding: 15px 20px; border-top: 1px solid #eee; display: flex; justify-content: space-around; } .summary-item { text-align: center; } .summary-label { display: block; font-size: 0.8em; color: #666; margin-bottom: 5px; } .summary-value { display: block; font-size: 1.2em; font-weight: bold; color: #667eea; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }