This commit is contained in:
2026-04-19 16:29:59 +08:00
22 changed files with 2060 additions and 916 deletions

View File

@@ -532,4 +532,236 @@ body {
.image-desc {
font-size: 0.9rem;
color: var(--text-secondary);
}
}
/* ===== 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;
}
}