358 lines
5.9 KiB
CSS
358 lines
5.9 KiB
CSS
* {
|
|
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;
|
|
} |