更新数据截止日2026.01.08

This commit is contained in:
lychang
2026-01-08 01:06:27 +08:00
commit ce02565b09
37 changed files with 12587 additions and 0 deletions

358
static/css/daily_report.css Normal file
View File

@@ -0,0 +1,358 @@
* {
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;
}
.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;
}
.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;
}
/* 预览控制样式 */
.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;
}

471
static/css/index.css Normal file
View File

@@ -0,0 +1,471 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: #f5f5f5;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 30px;
border-radius: 15px;
margin-bottom: 30px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.header h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.header p {
font-size: 1.1em;
opacity: 0.9;
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;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
text-align: center;
transition: transform 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
}
.stat-number {
font-size: 2.5em;
font-weight: bold;
color: #667eea;
margin-bottom: 5px;
}
.stat-label {
color: #666;
font-size: 0.9em;
}
.view-switcher {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.view-btn {
padding: 10px 20px;
border: 2px solid #667eea;
background: white;
color: #667eea;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: bold;
}
.view-btn.active {
background: #667eea;
color: white;
}
.view-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.chat-container {
display: grid;
grid-template-columns: 300px 1fr;
gap: 20px;
height: 70vh;
}
.sidebar {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
overflow-y: auto;
}
.sidebar h3 {
margin-bottom: 15px;
color: #333;
border-bottom: 2px solid #667eea;
padding-bottom: 10px;
}
.group-list {
list-style: none;
margin-bottom: 20px;
}
.group-item {
padding: 15px;
margin-bottom: 10px;
background: #f8f9fa;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
border-left: 4px solid transparent;
}
.group-item:hover {
background: #e9ecef;
transform: translateX(5px);
}
.group-item.active {
background: #667eea;
color: white;
border-left-color: #764ba2;
}
.group-name {
font-weight: bold;
margin-bottom: 5px;
}
.group-info {
font-size: 0.8em;
color: #666;
display: flex;
justify-content: space-between;
}
.group-item.active .group-info {
color: rgba(255, 255, 255, 0.8);
}
.chat-area {
background: white;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
}
.chat-header {
padding: 20px;
border-bottom: 1px solid #eee;
background: #f8f9fa;
border-radius: 12px 12px 0 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.current-group {
font-size: 1.2em;
font-weight: bold;
color: #333;
}
.group-stats {
font-size: 0.9em;
color: #666;
}
.controls {
padding: 20px;
border-bottom: 1px solid #eee;
background: #f8f9fa;
border-radius: 0 0 0 0;
text-align: center;
}
.load-more {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 25px;
cursor: pointer;
font-size: 1em;
transition: transform 0.3s ease;
}
.load-more:hover {
transform: scale(1.05);
}
.chat-messages {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 20px;
}
.message {
margin-bottom: 20px;
display: flex;
align-items: flex-start;
}
.message.own {
flex-direction: row-reverse;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
margin: 0 10px;
}
.message-content {
max-width: 70%;
padding: 12px 16px;
border-radius: 18px;
background: #f1f3f5;
position: relative;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
}
.message.own .message-content {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.message-sender {
font-weight: bold;
margin-bottom: 5px;
font-size: 0.9em;
}
.message-time {
font-size: 0.8em;
color: #999;
margin-top: 5px;
}
.message.own .message-time {
color: rgba(255, 255, 255, 0.8);
}
.loading {
text-align: center;
padding: 20px;
color: #666;
}
.error {
background: #ffe6e6;
color: #d63031;
padding: 10px;
border-radius: 8px;
margin: 10px 0;
text-align: center;
}
@media (max-width: 768px) {
.chat-container {
grid-template-columns: 1fr;
}
.sidebar {
display: none;
}
.message-content {
max-width: 85%;
}
}
body, .container {
overflow-x: hidden;
}
/* 聊天记录按钮样式 */
.chatrecord-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 8px 16px;
border-radius: 15px;
cursor: pointer;
font-size: 0.9em;
transition: all 0.3s ease;
text-align: left;
max-width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
}
.chatrecord-btn:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
/* 模态框样式 */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
animation: fadeIn 0.3s;
}
.modal-content {
background-color: white;
margin: 5% auto;
padding: 0;
border-radius: 15px;
width: 80%;
max-width: 800px;
max-height: 80vh;
overflow: hidden;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
animation: slideIn 0.3s;
}
.modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
margin: 0;
font-size: 1.3em;
}
.close {
color: white;
font-size: 28px;
font-weight: bold;
cursor: pointer;
transition: opacity 0.3s;
}
.close:hover {
opacity: 0.7;
}
.modal-body {
padding: 0;
max-height: calc(80vh - 80px);
overflow-y: auto;
}
.chat-record-content {
padding: 20px;
}
.chat-record-item {
margin-bottom: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: 10px;
border-left: 4px solid #667eea;
}
.chat-record-sender {
font-weight: bold;
margin-bottom: 5px;
color: #333;
}
.chat-record-text {
margin-bottom: 5px;
line-height: 1.4;
}
.chat-record-time {
font-size: 0.8em;
color: #666;
text-align: right;
}
.chat-record-image {
max-width: 200px;
max-height: 200px;
border-radius: 8px;
margin: 5px 0;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideIn {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.container {
max-width: 100%;
overflow-x: hidden;
}

274
static/css/markdown.css Normal file
View File

@@ -0,0 +1,274 @@
:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--accent-color: #e74c3c;
--light-bg: #f8f9fa;
--dark-bg: #2c3e50;
--text-color: #333;
--border-color: #e0e0e0;
--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
* {
margin: 5px;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
max-width: 1400px;
margin: 0 auto;
padding: 20px;
line-height: 1.6;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.header {
text-align: center;
margin-bottom: 30px;
color: white;
}
.header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.header p {
font-size: 1.1rem;
opacity: 0.9;
}
.main-content {
background: white;
border-radius: 15px;
padding: 30px;
box-shadow: var(--shadow);
margin-bottom: 30px;
}
.container {
display: flex;
gap: 30px;
margin-bottom: 40px;
}
.editor, .preview {
flex: 1;
border: 2px solid var(--border-color);
padding: 25px;
border-radius: 10px;
background: white;
transition: all 0.3s ease;
}
.editor:hover, .preview:hover {
border-color: var(--secondary-color);
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}
.editor h3, .preview h3 {
color: var(--primary-color);
margin-bottom: 15px;
font-size: 1.3rem;
border-bottom: 2px solid var(--secondary-color);
padding-bottom: 10px;
}
textarea {
width: 100%;
height: 400px;
font-family: 'Fira Code', 'Courier New', monospace;
font-size: 14px;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 15px;
resize: vertical;
transition: all 0.3s ease;
background: #fafafa;
}
textarea:focus {
outline: none;
border-color: var(--secondary-color);
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
background: white;
}
.toolbar {
margin-top: 20px;
display: flex;
gap: 10px;
flex-wrap: wrap;
}
button {
padding: 12px 24px;
background: linear-gradient(135deg, var(--secondary-color), #2980b9);
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
button:active {
transform: translateY(0);
}
#htmlPreview {
min-height: 400px;
padding: 15px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: #fafafa;
overflow-y: auto;
}
#htmlPreview::-webkit-scrollbar {
display: none;
}
.syntax-guide {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.guide-card {
background: var(--light-bg);
padding: 20px;
border-radius: 10px;
border-left: 4px solid var(--secondary-color);
}
.guide-card h3 {
color: var(--primary-color);
margin-bottom: 15px;
font-size: 1.2rem;
}
.syntax {
background: #2c3e50;
color: white;
padding: 8px 12px;
border-radius: 5px;
font-family: 'Fira Code', monospace;
font-size: 13px;
margin: 5px 0;
display: inline-block;
}
@keyframes slideIn {
from {
transform: translateY(-10px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* Blockquote 样式 - 注释样式,字体变小,颜色变灰 */
blockquote {
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
border-left: 4px solid #6c757d;
margin: 20px 0;
padding: 15px 20px;
font-size: 0.9em;
color: #6c757d;
font-style: italic;
border-radius: 0 8px 8px 0;
position: relative;
}
blockquote::before {
content: "❝";
font-size: 2em;
color: #adb5bd;
position: absolute;
left: 10px;
top: 5px;
opacity: 0.5;
}
blockquote p {
margin: 0;
line-height: 1.5;
}
/* CodeBlock 样式 - 更鲜艳的样式 */
pre {
background: linear-gradient(135deg, #2d3748, #4a5568);
border: 1px solid #4a5568;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
overflow-x: auto;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
position: relative;
white-space: pre;
font-family: 'Fira Code', monospace;
font-size: 13px;
line-height: 1.4;
color: #e2e8f0;
}
pre::before {
content: "</>";
position: absolute;
top: 10px;
right: 15px;
color: #81e6d9;
font-size: 0.8em;
font-weight: bold;
opacity: 0.7;
}
/* 行内代码样式 */
:not(pre) > code {
background: linear-gradient(135deg, #fed7e2, #fbb6ce);
color: #702459;
padding: 2px 6px;
border-radius: 4px;
line-height: 1.4;
border: 1px solid #fbb6ce;
}
.footer {
text-align: center;
color: white;
margin-top: 30px;
opacity: 0.8;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.syntax-guide {
grid-template-columns: 1fr;
}
.header h1 {
font-size: 2rem;
}
}

848
static/css/qa.css Normal file
View File

@@ -0,0 +1,848 @@
* {
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);
}
}

View File

@@ -0,0 +1,534 @@
* {
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;
}