Files
iov_data_analysis_agent/web/static/clean_style.css

1109 lines
20 KiB
CSS
Raw Normal View History

2026-01-31 20:27:17 +08:00
/* Clean Style - IOV Data Analysis Agent */
:root {
--primary-color: #2563EB;
/* Tech Blue */
--primary-hover: #1D4ED8;
--bg-color: #FFFFFF;
--sidebar-bg: #F9FAFB;
--text-primary: #111827;
--text-secondary: #6B7280;
--border-color: #E5E7EB;
--card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
color: var(--text-primary);
background-color: var(--bg-color);
line-height: 1.5;
height: 100vh;
overflow: hidden;
}
.app-container {
display: flex;
height: 100vh;
}
/* Sidebar */
.sidebar {
width: 240px;
/* Compact width */
background-color: var(--sidebar-bg);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
padding: 1rem;
flex-shrink: 0;
}
.brand {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}
.brand i {
color: var(--primary-color);
font-size: 1.5rem;
}
.nav-menu {
display: flex;
flex-direction: column;
gap: 0.5rem;
flex: 1;
overflow-y: hidden;
/* Let history list handle scroll */
}
.nav-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
border-radius: 0.375rem;
color: var(--text-secondary);
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
font-size: 0.95rem;
border: none;
background: none;
width: 100%;
text-align: left;
}
.nav-item:hover {
background-color: #F3F4F6;
color: var(--text-primary);
}
.nav-item.active {
background-color: #EFF6FF;
color: var(--primary-color);
font-weight: 500;
}
.nav-item i {
width: 1.25rem;
text-align: center;
}
.nav-divider {
height: 1px;
background-color: var(--border-color);
margin: 1rem 0 0.5rem 0;
}
.nav-section-title {
font-size: 0.75rem;
text-transform: uppercase;
color: var(--text-secondary);
font-weight: 600;
letter-spacing: 0.05em;
margin-bottom: 0.5rem;
padding-left: 0.5rem;
}
/* History List */
.history-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.25rem;
padding-right: 5px;
}
.history-item {
font-size: 0.85rem;
color: var(--text-secondary);
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
align-items: center;
gap: 0.5rem;
}
.history-item:hover {
background-color: #F3F4F6;
color: var(--text-primary);
}
.history-item.active {
background-color: #EFF6FF;
color: var(--primary-color);
}
.status-bar {
margin-top: auto;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--text-secondary);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #D1D5DB;
}
.status-dot.running {
background-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
/* Main Content */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
background-color: #FFFFFF;
}
.header {
height: 64px;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
padding: 0 2rem;
background-color: #FFFFFF;
}
.header h2 {
font-size: 1.25rem;
font-weight: 600;
}
.content-area {
flex: 1;
overflow-y: auto;
padding: 2rem;
background-color: #ffffff;
}
/* Sections & Panel */
.section {
display: none;
max-width: 1000px;
margin: 0 auto;
}
.section.active {
display: block;
}
.analysis-grid {
display: grid;
grid-template-columns: 350px 1fr;
gap: 2rem;
height: calc(100vh - 64px - 4rem);
}
.panel {
background: #FFFFFF;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.panel-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.5rem;
display: flex;
align-items: center;
justify-content: space-between;
}
/* Forms */
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-label {
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary);
}
.form-input,
.form-textarea {
padding: 0.625rem 0.875rem;
border: 1px solid var(--border-color);
border-radius: 0.375rem;
font-family: inherit;
font-size: 0.9rem;
color: var(--text-primary);
outline: none;
transition: border-color 0.2s;
width: 100%;
}
.form-input:focus,
.form-textarea:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.form-textarea {
resize: vertical;
min-height: 100px;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.625rem 1.25rem;
border-radius: 0.375rem;
font-weight: 500;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
border: 1px solid transparent;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-hover);
}
.btn-secondary {
background-color: white;
border-color: var(--border-color);
color: var(--text-primary);
}
.btn-secondary:hover {
background-color: #F9FAFB;
border-color: #D1D5DB;
}
.btn-sm {
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
}
/* Template Cards */
.template-cards {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.template-card {
flex: 1 1 calc(50% - 0.35rem);
min-width: 100px;
padding: 0.35rem 0.5rem;
border: 1px solid var(--border-color);
border-radius: 0.25rem;
cursor: pointer;
transition: all 0.15s;
background: #FFFFFF;
}
.template-card:hover {
border-color: var(--primary-color);
background: #F0F7FF;
}
.template-card.selected {
border-color: var(--primary-color);
background: #EFF6FF;
box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.template-card-title {
font-size: 0.78rem;
font-weight: 600;
color: var(--text-primary);
line-height: 1.2;
}
.template-card-desc {
font-size: 0.68rem;
color: var(--text-secondary);
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2026-01-31 20:27:17 +08:00
/* Upload Area */
.upload-area {
border: 2px dashed var(--border-color);
border-radius: 0.5rem;
padding: 2rem;
text-align: center;
cursor: pointer;
transition: all 0.2s;
background-color: #F9FAFB;
}
.upload-area:hover,
.upload-area.dragover {
border-color: var(--primary-color);
background-color: #EFF6FF;
}
.upload-icon {
font-size: 1.5rem;
color: var(--text-secondary);
margin-bottom: 0.75rem;
}
.file-list {
margin-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.file-item {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
color: var(--text-primary);
background: #FFFFFF;
padding: 0.5rem;
border: 1px solid var(--border-color);
border-radius: 0.25rem;
}
/* Tabs */
.tabs {
display: flex;
gap: 1rem;
margin-left: 1rem;
}
.tab {
padding: 0.25rem 0.5rem;
font-size: 0.9rem;
color: var(--text-secondary);
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.2s;
}
.tab:hover {
color: var(--text-primary);
}
.tab.active {
color: var(--primary-color);
border-bottom-color: var(--primary-color);
font-weight: 500;
}
/* Log & Report Content */
.output-container {
flex: 1;
overflow-y: hidden;
/* Individual tabs scroll */
background: #F9FAFB;
border: 1px solid var(--border-color);
border-radius: 0.375rem;
padding: 1rem;
position: relative;
display: flex;
flex-direction: column;
}
/* Execution Tab */
#executionTab {
background-color: #F9FAFB;
padding: 0.5rem;
2026-01-31 20:27:17 +08:00
}
.log-content {
font-family: 'JetBrains Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
2026-01-31 20:27:17 +08:00
font-size: 0.85rem;
white-space: pre-wrap;
line-height: 1.6;
margin: 0;
}
.report-content {
font-size: 0.95rem;
line-height: 1.7;
color: #1F2937;
}
.report-content img {
max-width: 100%;
border-radius: 0.375rem;
margin: 1rem 0;
box-shadow: var(--card-shadow);
}
/* Empty State */
.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--text-secondary);
}
/* Utilities */
.hidden {
display: none !important;
}
/* ===== Round Card Styles ===== */
.round-cards-wrapper {
2026-01-31 20:27:17 +08:00
display: flex;
flex-direction: column;
gap: 0.75rem;
padding: 0.5rem;
}
.round-card {
border: 1px solid var(--border-color);
2026-01-31 20:27:17 +08:00
border-radius: 0.5rem;
background: #FFFFFF;
2026-01-31 20:27:17 +08:00
overflow: hidden;
transition: box-shadow 0.2s;
2026-01-31 20:27:17 +08:00
}
.round-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.round-card.expanded {
border-color: var(--primary-color);
box-shadow: 0 2px 12px rgba(37, 99, 235, 0.1);
}
.round-card-header {
2026-01-31 20:27:17 +08:00
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
cursor: pointer;
background: #F9FAFB;
transition: background 0.2s;
2026-01-31 20:27:17 +08:00
}
.round-card-header:hover {
background: #F0F7FF;
}
.round-number {
font-weight: 600;
font-size: 0.85rem;
color: var(--primary-color);
white-space: nowrap;
}
.round-summary {
flex: 1;
font-size: 0.85rem;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.round-toggle-icon {
color: var(--text-secondary);
font-size: 0.75rem;
2026-01-31 20:27:17 +08:00
transition: transform 0.2s;
}
.round-card-body {
padding: 1rem;
border-top: 1px solid var(--border-color);
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.round-section {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.round-section-title {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.03em;
}
.round-reasoning {
font-size: 0.9rem;
color: var(--text-primary);
line-height: 1.6;
white-space: pre-wrap;
}
.round-result {
font-size: 0.9rem;
color: var(--text-primary);
}
.round-details {
2026-01-31 20:27:17 +08:00
border: 1px solid var(--border-color);
border-radius: 0.375rem;
overflow: hidden;
}
.round-details summary {
padding: 0.5rem 0.75rem;
font-size: 0.85rem;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
background: #F9FAFB;
transition: background 0.2s;
}
.round-details summary:hover {
background: #F0F7FF;
color: var(--primary-color);
}
.round-code,
.round-raw-log {
margin: 0;
padding: 0.75rem;
font-family: 'JetBrains Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
font-size: 0.8rem;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-all;
background: #1a1b26;
color: #a9b1d6;
max-height: 300px;
overflow-y: auto;
}
.evidence-table {
width: 100%;
border-collapse: collapse;
font-size: 0.8rem;
margin-top: 0.25rem;
}
.evidence-table th,
.evidence-table td {
border: 1px solid var(--border-color);
padding: 0.35rem 0.5rem;
text-align: left;
}
.evidence-table th {
background: #F3F4F6;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
}
.evidence-table td {
color: var(--text-secondary);
}
/* ===== Data File Card Styles ===== */
.file-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 0.75rem;
padding: 0.5rem;
}
.data-file-card {
2026-01-31 20:27:17 +08:00
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
background: #FFFFFF;
2026-01-31 20:27:17 +08:00
cursor: pointer;
transition: all 0.2s;
}
.data-file-card:hover {
2026-01-31 20:27:17 +08:00
border-color: var(--primary-color);
background: #F0F7FF;
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
2026-01-31 20:27:17 +08:00
}
.data-file-icon {
font-size: 1.5rem;
color: var(--primary-color);
width: 2rem;
text-align: center;
flex-shrink: 0;
2026-01-31 20:27:17 +08:00
}
.data-file-info {
flex: 1;
min-width: 0;
2026-01-31 20:27:17 +08:00
}
.data-file-name {
font-size: 0.9rem;
font-weight: 500;
2026-01-31 20:27:17 +08:00
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.data-file-desc {
font-size: 0.8rem;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.data-preview-panel {
margin: 0.75rem 0.5rem;
border: 1px solid var(--border-color);
2026-01-31 20:27:17 +08:00
border-radius: 0.5rem;
background: #FFFFFF;
overflow: hidden;
}
.data-preview-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0.75rem;
background: #F9FAFB;
border-bottom: 1px solid var(--border-color);
font-size: 0.9rem;
font-weight: 500;
}
.data-preview-table {
width: 100%;
border-collapse: collapse;
font-size: 0.8rem;
}
.data-preview-table th,
.data-preview-table td {
2026-01-31 20:27:17 +08:00
border: 1px solid var(--border-color);
padding: 0.4rem 0.6rem;
text-align: left;
2026-01-31 20:27:17 +08:00
}
.data-preview-table th {
background: #F3F4F6;
2026-01-31 20:27:17 +08:00
font-weight: 600;
white-space: nowrap;
}
/* ===== Supporting Data Styles ===== */
.supporting-data-btn {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.25rem 0.6rem;
font-size: 0.78rem;
border: 1px solid #BFDBFE;
border-radius: 1rem;
background: #EFF6FF;
2026-01-31 20:27:17 +08:00
color: var(--primary-color);
cursor: pointer;
transition: all 0.2s;
margin-top: 0.35rem;
2026-01-31 20:27:17 +08:00
}
.supporting-data-btn:hover {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.supporting-data-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.supporting-data-content {
background: #FFFFFF;
border-radius: 0.5rem;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
max-width: 700px;
width: 90%;
max-height: 80vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.supporting-data-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border-color);
font-weight: 600;
font-size: 1rem;
}
.supporting-data-header button {
background: none;
border: none;
font-size: 1.25rem;
cursor: pointer;
2026-01-31 20:27:17 +08:00
color: var(--text-secondary);
padding: 0.25rem;
line-height: 1;
}
.supporting-data-header button:hover {
color: var(--text-primary);
}
.supporting-data-body {
padding: 1rem;
overflow-y: auto;
flex: 1;
}
.supporting-data-body .evidence-table {
font-size: 0.85rem;
}
/* ===== Report Paragraph Polishing ===== */
.report-paragraph {
position: relative;
padding: 0.5rem 0.75rem;
margin: 0.125rem 0;
border-left: 3px solid transparent;
border-radius: 0 0.25rem 0.25rem 0;
transition: all 0.2s ease;
cursor: pointer;
}
.report-paragraph:hover {
background-color: #F0F7FF;
border-left-color: #93C5FD;
}
.report-paragraph.selected {
background-color: #EFF6FF;
border-left-color: var(--primary-color);
box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}
/* 段落类型微调 */
.report-paragraph.para-heading {
border-left-color: transparent;
}
.report-paragraph.para-heading:hover {
border-left-color: #60A5FA;
}
.report-paragraph.para-image {
text-align: center;
}
.report-paragraph.para-table .para-content {
overflow-x: auto;
}
/* 润色操作按钮 */
.para-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
padding-top: 0.5rem;
border-top: 1px dashed var(--border-color);
flex-wrap: wrap;
align-items: center;
}
.polish-btn {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.3rem 0.65rem;
font-size: 0.8rem;
border: 1px solid var(--border-color);
border-radius: 1rem;
background: white;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.polish-btn:hover {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
transform: translateY(-1px);
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.polish-loading {
font-size: 0.85rem;
color: var(--primary-color);
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0;
}
/* 自定义润色输入 */
.custom-polish-input {
display: flex;
gap: 0.5rem;
width: 100%;
align-items: center;
}
.custom-polish-input .form-input {
flex: 1;
padding: 0.4rem 0.75rem;
font-size: 0.85rem;
}
/* 润色对比视图 */
.polish-diff {
border: 1px solid #BFDBFE;
border-radius: 0.5rem;
overflow: hidden;
background: white;
}
.diff-header {
background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
padding: 0.6rem 1rem;
border-bottom: 1px solid #BFDBFE;
}
.diff-title {
font-size: 0.9rem;
font-weight: 600;
color: var(--primary-color);
display: flex;
align-items: center;
gap: 0.5rem;
}
.diff-panels {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
}
.diff-panel {
padding: 0.75rem 1rem;
font-size: 0.9rem;
line-height: 1.6;
min-height: 80px;
overflow-y: auto;
max-height: 400px;
}
.diff-original {
background: #FEF2F2;
border-right: 1px solid #BFDBFE;
}
.diff-polished {
background: #F0FDF4;
}
.diff-label {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.5rem;
padding-bottom: 0.25rem;
border-bottom: 1px solid rgba(0,0,0,0.08);
}
.diff-original .diff-label {
color: #DC2626;
}
.diff-polished .diff-label {
color: #16A34A;
}
.diff-body {
color: var(--text-primary);
}
.diff-body img {
max-width: 100%;
}
.diff-body table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.diff-body th, .diff-body td {
border: 1px solid var(--border-color);
padding: 0.3rem 0.5rem;
text-align: left;
}
.diff-actions {
display: flex;
gap: 0.75rem;
padding: 0.75rem 1rem;
border-top: 1px solid #BFDBFE;
background: #F9FAFB;
justify-content: flex-end;
}
/* 报告内容中的表格样式 */
.para-content table {
width: 100%;
border-collapse: collapse;
margin: 0.5rem 0;
font-size: 0.9rem;
}
.para-content th, .para-content td {
border: 1px solid var(--border-color);
padding: 0.4rem 0.6rem;
text-align: left;
}
.para-content th {
background: #F3F4F6;
font-weight: 600;
}
.para-content img {
max-width: 100%;
border-radius: 0.375rem;
margin: 0.5rem 0;
box-shadow: var(--card-shadow);
}
/* 响应式:小屏幕下对比视图改为上下排列 */
@media (max-width: 900px) {
.diff-panels {
grid-template-columns: 1fr;
}
.diff-original {
border-right: none;
border-bottom: 1px solid #BFDBFE;
}
.analysis-grid {
grid-template-columns: 1fr;
}
}
/* ===== Progress Bar ===== */
.progress-bar-container {
padding: 0.5rem 0.75rem;
background: #F9FAFB;
border: 1px solid var(--border-color);
border-radius: 0.375rem;
margin-bottom: 0.5rem;
}
.progress-bar-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.35rem;
}
.progress-label {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-primary);
}
.progress-percent {
font-size: 0.8rem;
font-weight: 600;
color: var(--primary-color);
}
.progress-bar-track {
width: 100%;
height: 8px;
background: #E5E7EB;
border-radius: 4px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), #60A5FA);
border-radius: 4px;
transition: width 0.5s ease;
min-width: 0;
}
.progress-message {
font-size: 0.75rem;
color: var(--text-secondary);
margin-top: 0.25rem;
min-height: 1em;
}