* { 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); } .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; } .qa-list { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; } .qa-item { padding: 20px; border-bottom: 1px solid #eee; transition: background-color 0.3s ease; } .qa-item:hover { background-color: #f8f9fa; } .qa-item:last-child { border-bottom: none; } .qa-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .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-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; } .nav-btn.active { 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; } /* 聊天记录预览样式 */ .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); } }