* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f5f5f5; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; border-radius: 10px; margin-bottom: 30px; text-align: center; } .header h1 { font-size: 2.5em; margin-bottom: 10px; } .header p { font-size: 1.2em; 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); } .control-group { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .control-group label { font-weight: bold; color: #555; } .control-group input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; } .btn { background: #667eea; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 14px; transition: background 0.3s; } .btn:hover { background: #5a6fd8; } .btn:disabled { background: #ccc; cursor: not-allowed; } .report-container { background: white; border-radius: 10px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; } .report-content { white-space: pre-wrap; font-family: 'Courier New', monospace; line-height: 1.8; font-size: 14px; } .loading { text-align: center; padding: 40px; color: #666; } .error { background: #ffe6e6; color: #d63031; padding: 15px; border-radius: 5px; margin: 10px 0; border-left: 4px solid #d63031; } .statistics { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px; } .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; } .stat-item { background: white; padding: 15px; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .stat-value { font-size: 1.8em; font-weight: bold; color: #667eea; } .stat-label { font-size: 0.9em; color: #666; margin-top: 5px; } .category-chart { margin: 20px 0; } .category-item { display: flex; align-items: center; margin: 10px 0; padding: 10px; background: #f8f9fa; border-radius: 5px; } .category-bar { height: 20px; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 10px; margin: 0 10px; min-width: 50px; } .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; } .nav-btn.active { background: #667eea; color: white; border-color: #667eea; } .api-version { background-color: #e7f3ff; border-left: 4px solid #1890ff; padding: 10px 15px; margin: 10px 0; border-radius: 4px; color: #1890ff; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .api-version strong { color: #096dd9; font-weight: 600; } .api-version:hover { background-color: #d4e6ff; transition: background-color 0.3s ease; } /* 表格样式 - 控制长文本换行 */ .report-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; table-layout: fixed; } .report-content th, .report-content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; word-wrap: break-word; word-break: break-all; overflow-wrap: break-word; hyphens: auto; } .report-content th { background-color: #f8f9fa; font-weight: bold; color: #333; } .report-content tr:nth-child(even) { background-color: #f8f9fa; } .report-content tr:hover { background-color: #e9ecef; } /* 针对特定列设置不同的宽度 */ .report-content td:nth-child(1) { /* 第一列 - 客户群名称 */ width: 20%; min-width: 120px; } .report-content td:nth-child(2), /* 第二列 - 消息总量 */ .report-content td:nth-child(3) { /* 第三列 - 活跃人数 */ width: 10%; min-width: 80px; text-align: center; } .report-content td:nth-child(4) { /* 第四列 - 核心互动时段 */ width: 20%; min-width: 150px; } .report-content td:nth-child(5) { /* 第五列 - 平均每日消息量 */ width: 15%; min-width: 100px; text-align: center; } /* 问题分类表格样式 */ .report-content td:nth-child(1) { /* 问题类别 */ width: 15%; min-width: 100px; } .report-content td:nth-child(2) { /* 具体问题描述 */ width: 40%; min-width: 200px; } .report-content td:nth-child(3), /* 出现频次 */ .report-content td:nth-child(4), /* 涉及群聊 */ .report-content td:nth-child(5) { /* 当前状态 */ width: 15%; min-width: 80px; text-align: center; } /* 响应式表格 */ @media (max-width: 768px) { .report-content table { font-size: 12px; } .report-content th, .report-content td { padding: 6px 8px; } .report-content td:nth-child(n) { width: auto; min-width: 60px; } } .export-btn{ background: #28a745; color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-size: 14px; margin-left: auto; } .export-btn:hover { background: #218838; } /* 图片导出按钮样式 */ .image-export-btn { background: #17a2b8; color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-size: 14px; margin-left: 10px; transition: all 0.3s ease; } .image-export-btn:hover:not(.disabled) { background: #138496; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.2); } .image-export-btn.disabled { background: #6c757d; cursor: not-allowed; opacity: 0.6; } .image-export-btn.disabled:hover { background: #6c757d; transform: none; box-shadow: none; } /* 预览控制样式 */ .preview-controls { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; } .preview-btn { background: #f8f9fa; color: #666; border: 1px solid #ddd; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.3s; } .preview-btn:hover { background: #e9ecef; border-color: #adb5bd; } .preview-btn.active { background: #667eea; color: white; border-color: #667eea; } /* Markdown源代码显示样式 */ .markdown-source { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 5px; padding: 20px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; max-height: 600px; overflow-y: auto; } .markdown-source pre { margin: 0; background: none; border: none; padding: 0; } .markdown-source code { background: none; border: none; padding: 0; color: #333; } /* 增强的报告内容样式 */ .report-content { white-space: pre-wrap; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.8; font-size: 14px; background: white; padding: 20px; border-radius: 5px; border: 1px solid #e9ecef; } /* Markdown渲染样式 */ .report-content h1, .report-content h2, .report-content h3, .report-content h4, .report-content h5, .report-content h6 { margin: 20px 0 10px 0; color: #333; font-weight: 600; } .report-content h1 { font-size: 1.8em; border-bottom: 2px solid #667eea; padding-bottom: 10px; } .report-content h2 { font-size: 1.5em; border-bottom: 1px solid #ddd; padding-bottom: 8px; } .report-content h3 { font-size: 1.3em; } .report-content p { margin: 10px 0; } .report-content ul, .report-content ol { margin: 10px 0 10px 20px; } .report-content li { margin: 5px 0; } .report-content blockquote { border-left: 4px solid #667eea; background: #f8f9fa; padding: 10px 15px; margin: 15px 0; font-style: italic; } .report-content code { background: #f1f3f4; padding: 2px 6px; border-radius: 3px; font-family: 'Courier New', monospace; font-size: 0.9em; } .report-content pre { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 5px; padding: 15px; overflow-x: auto; margin: 15px 0; } .report-content pre code { background: none; padding: 0; } .report-content table { border-collapse: collapse; width: 100%; margin: 15px 0; } .report-content th, .report-content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; } .report-content th { background: #f8f9fa; font-weight: 600; } .report-content tr:nth-child(even) { background: #f8f9fa; } /* 水平分隔线样式 */ .report-content hr { border: none; border-top: 2px solid #667eea; margin: 30px 0; height: 0; }