Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
376 lines
13 KiB
HTML
376 lines
13 KiB
HTML
<style>
|
|
:root {
|
|
--primary: #1a56db;
|
|
--primary-light: #e8effc;
|
|
--success: #059669;
|
|
--success-light: #d1fae5;
|
|
--warning: #d97706;
|
|
--warning-light: #fef3c7;
|
|
--danger: #dc2626;
|
|
--danger-light: #fee2e2;
|
|
--gray-50: #f9fafb;
|
|
--gray-100: #f3f4f6;
|
|
--gray-200: #e5e7eb;
|
|
--gray-300: #d1d5db;
|
|
--gray-500: #6b7280;
|
|
--gray-700: #374151;
|
|
--gray-900: #111827;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
|
|
"Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
color: var(--gray-900);
|
|
background: var(--gray-50);
|
|
line-height: 1.8;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.report-container {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* 封面 */
|
|
.cover {
|
|
text-align: center;
|
|
padding: 80px 60px;
|
|
background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
|
|
color: white;
|
|
}
|
|
.cover h1 { font-size: 32px; margin-bottom: 16px; font-weight: 700; }
|
|
.cover .subtitle { font-size: 18px; opacity: 0.9; margin-bottom: 40px; }
|
|
.cover .school-name { font-size: 42px; font-weight: 700; margin: 30px 0; letter-spacing: 4px; }
|
|
.cover .date { font-size: 16px; opacity: 0.7; margin-top: 40px; }
|
|
|
|
/* 正文 */
|
|
.section { padding: 40px 60px; page-break-before: auto; }
|
|
.section h1 {
|
|
font-size: 26px; color: var(--primary); margin-bottom: 24px;
|
|
padding-bottom: 12px; border-bottom: 3px solid var(--primary);
|
|
}
|
|
.section h2 { font-size: 22px; color: var(--gray-900); margin: 28px 0 16px; }
|
|
.section h3 { font-size: 18px; color: var(--gray-700); margin: 20px 0 12px; }
|
|
.section p { margin: 10px 0; text-indent: 2em; text-align: justify; }
|
|
|
|
/* 得分卡片 */
|
|
.score-cards {
|
|
display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 16px; margin: 20px 0;
|
|
}
|
|
.score-card {
|
|
background: var(--gray-50); border-radius: 12px; padding: 20px;
|
|
text-align: center; border: 1px solid var(--gray-200);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
.score-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
|
|
.score-card .label { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
|
|
.score-card .value { font-size: 32px; font-weight: 700; color: var(--primary); }
|
|
.score-card .diff { font-size: 13px; margin-top: 4px; }
|
|
.score-card .diff.positive { color: var(--success); }
|
|
.score-card .diff.negative { color: var(--danger); }
|
|
|
|
/* 图表容器 */
|
|
.chart-box {
|
|
width: 100%; margin: 20px 0; background: white;
|
|
border: 1px solid var(--gray-200); border-radius: 8px; padding: 16px;
|
|
}
|
|
.chart-box .chart { width: 100%; height: 400px; }
|
|
.chart-box .chart-title {
|
|
font-size: 14px; color: var(--gray-500); text-align: center;
|
|
margin-top: 8px; font-weight: 500;
|
|
}
|
|
|
|
/* 双图并排 */
|
|
.chart-row {
|
|
display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0;
|
|
}
|
|
.chart-row .chart-box { margin: 0; }
|
|
.chart-row .chart-box .chart { height: 350px; }
|
|
|
|
/* 三图并排 */
|
|
.chart-row-3 {
|
|
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 20px 0;
|
|
}
|
|
.chart-row-3 .chart-box { margin: 0; }
|
|
.chart-row-3 .chart-box .chart { height: 300px; }
|
|
|
|
/* ====== 金字塔水平指示器 ====== */
|
|
.pyramid-container {
|
|
display: flex; flex-direction: column; align-items: center;
|
|
margin: 16px 0; padding: 20px;
|
|
}
|
|
.pyramid-row {
|
|
position: relative;
|
|
display: flex; align-items: center; justify-content: center;
|
|
margin: 3px 0;
|
|
width: 100%;
|
|
}
|
|
.pyramid-block {
|
|
height: 38px; display: flex; align-items: center; justify-content: center;
|
|
font-weight: 700; font-size: 13px; color: white;
|
|
border-radius: 4px; transition: all 0.3s;
|
|
letter-spacing: 1px;
|
|
}
|
|
.pyramid-block.lv4 { width: 140px; background: linear-gradient(135deg, #059669, #10b981); }
|
|
.pyramid-block.lv3 { width: 200px; background: linear-gradient(135deg, #2563eb, #3b82f6); }
|
|
.pyramid-block.lv2 { width: 260px; background: linear-gradient(135deg, #d97706, #f59e0b); }
|
|
.pyramid-block.lv1 { width: 320px; background: linear-gradient(135deg, #dc2626, #ef4444); }
|
|
.pyramid-block.active {
|
|
box-shadow: 0 0 0 3px white, 0 0 0 6px var(--primary);
|
|
transform: scale(1.05); z-index: 2;
|
|
}
|
|
.pyramid-block.dimmed { opacity: 0.35; }
|
|
/* 标注用绝对定位,不影响色块居中 */
|
|
.pyramid-label {
|
|
position: absolute;
|
|
left: calc(50% + 175px); /* 最宽块320/2=160,再留15px间距 */
|
|
font-size: 13px; font-weight: 700;
|
|
color: var(--primary); white-space: nowrap;
|
|
animation: arrowPulse 1.5s infinite;
|
|
}
|
|
.pyramid-label .arrow { margin-right: 4px; }
|
|
@keyframes arrowPulse {
|
|
0%, 100% { opacity: 1; transform: translateX(0); }
|
|
50% { opacity: 0.6; transform: translateX(4px); }
|
|
}
|
|
|
|
/* 水平指示器(行内) */
|
|
.level-indicator {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 4px 14px; border-radius: 20px; font-size: 14px; font-weight: 600;
|
|
}
|
|
.level-indicator.level-4 { background: #d1fae5; color: #065f46; }
|
|
.level-indicator.level-3 { background: #dbeafe; color: #1e40af; }
|
|
.level-indicator.level-2 { background: #fef3c7; color: #92400e; }
|
|
.level-indicator.level-1 { background: #fee2e2; color: #991b1b; }
|
|
|
|
/* 水平对比表 */
|
|
.level-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
|
|
.level-table th {
|
|
background: var(--primary); color: white; padding: 10px 14px;
|
|
text-align: center; font-weight: 600;
|
|
}
|
|
.level-table td { padding: 10px 14px; text-align: center; border: 1px solid var(--gray-200); font-weight: 600; }
|
|
.level-table .lv4 { background: #d1fae5; color: #065f46; }
|
|
.level-table .lv3 { background: #dbeafe; color: #1e40af; }
|
|
.level-table .lv2 { background: #fef3c7; color: #92400e; }
|
|
.level-table .lv1 { background: #fee2e2; color: #991b1b; }
|
|
|
|
/* 表格 */
|
|
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
|
|
.data-table th {
|
|
background: var(--primary); color: white; padding: 10px 14px;
|
|
text-align: center; font-weight: 600;
|
|
}
|
|
.data-table td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--gray-200); }
|
|
.data-table tr:nth-child(even) { background: var(--gray-50); }
|
|
.data-table tr:hover { background: var(--primary-light); }
|
|
|
|
/* LLM分析区域 */
|
|
.llm-analysis {
|
|
background: var(--gray-50); border-left: 4px solid var(--primary);
|
|
padding: 20px 24px; margin: 16px 0; border-radius: 0 8px 8px 0;
|
|
}
|
|
.llm-analysis p { text-indent: 2em; margin: 8px 0; }
|
|
.llm-analysis h3 { color: var(--primary); margin: 12px 0 8px; }
|
|
.llm-analysis h4 { color: var(--gray-700); margin: 10px 0 6px; }
|
|
.llm-analysis ul { margin: 8px 0 8px 2em; }
|
|
.llm-analysis li { margin: 4px 0; }
|
|
.llm-analysis strong { color: var(--primary); }
|
|
|
|
/* 图表解读说明(轻量版,紧贴图表下方) */
|
|
.chart-caption {
|
|
background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
|
|
border: 1px solid var(--gray-200);
|
|
border-top: none;
|
|
padding: 12px 18px;
|
|
margin: -4px 0 20px 0;
|
|
border-radius: 0 0 8px 8px;
|
|
font-size: 13.5px;
|
|
color: var(--gray-700);
|
|
line-height: 1.7;
|
|
}
|
|
.chart-caption::before {
|
|
content: '▎';
|
|
color: var(--primary);
|
|
font-weight: 700;
|
|
margin-right: 6px;
|
|
}
|
|
.chart-caption p {
|
|
display: inline;
|
|
margin: 0;
|
|
text-indent: 0;
|
|
}
|
|
|
|
/* 分隔线 */
|
|
.section-divider {
|
|
border: none; border-top: 2px dashed var(--gray-200);
|
|
margin: 30px 0;
|
|
}
|
|
|
|
/* 类型标签 */
|
|
.type-badge {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
|
|
}
|
|
.type-badge.good {
|
|
background: linear-gradient(135deg, #d1fae5, #a7f3d0);
|
|
color: #065f46; border: 1px solid #6ee7b7;
|
|
}
|
|
.type-badge.weak {
|
|
background: linear-gradient(135deg, #fef3c7, #fde68a);
|
|
color: #92400e; border: 1px solid #fcd34d;
|
|
}
|
|
|
|
/* ====== 右侧目录导航(极简现代风) ====== */
|
|
.toc-nav {
|
|
position: fixed;
|
|
top: 50%; right: 20px;
|
|
transform: translateY(-50%);
|
|
width: 180px;
|
|
max-height: 75vh;
|
|
overflow-y: auto;
|
|
background: rgba(255,255,255,0.85);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border-radius: 12px;
|
|
padding: 14px 0;
|
|
z-index: 1000;
|
|
opacity: 0.45;
|
|
transition: opacity 0.3s, box-shadow 0.3s;
|
|
}
|
|
.toc-nav:hover {
|
|
opacity: 1;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.08);
|
|
}
|
|
.toc-nav::-webkit-scrollbar { width: 0; }
|
|
|
|
/* 左侧细线轨道 */
|
|
.toc-track {
|
|
position: relative;
|
|
padding-left: 2px;
|
|
}
|
|
.toc-track::before {
|
|
content: '';
|
|
position: absolute; left: 14px; top: 0; bottom: 0;
|
|
width: 1.5px;
|
|
background: var(--gray-200);
|
|
}
|
|
|
|
.toc-item {
|
|
display: block;
|
|
position: relative;
|
|
padding: 4px 14px 4px 28px;
|
|
color: var(--gray-500);
|
|
text-decoration: none;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
transition: color 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
/* 轨道上的圆点 */
|
|
.toc-item::before {
|
|
content: '';
|
|
position: absolute; left: 11px; top: 50%;
|
|
width: 5px; height: 5px;
|
|
border-radius: 50%;
|
|
background: var(--gray-300);
|
|
transform: translateY(-50%);
|
|
transition: all 0.25s;
|
|
}
|
|
.toc-item:hover { color: var(--gray-900); }
|
|
.toc-item:hover::before { background: var(--gray-500); }
|
|
|
|
.toc-item.active {
|
|
color: var(--gray-900);
|
|
font-weight: 600;
|
|
}
|
|
.toc-item.active::before {
|
|
background: var(--primary);
|
|
width: 7px; height: 7px;
|
|
box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
|
|
}
|
|
|
|
.toc-item.level-1 {
|
|
font-size: 12px; font-weight: 500;
|
|
padding-top: 6px; padding-bottom: 2px;
|
|
color: var(--gray-700);
|
|
}
|
|
.toc-item.level-2 {
|
|
font-size: 11px; font-weight: 400;
|
|
padding-left: 36px;
|
|
color: var(--gray-400);
|
|
max-height: 0; overflow: hidden;
|
|
padding-top: 0; padding-bottom: 0;
|
|
transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s;
|
|
opacity: 0;
|
|
}
|
|
.toc-item.level-2.visible {
|
|
max-height: 30px;
|
|
padding-top: 3px; padding-bottom: 3px;
|
|
opacity: 1;
|
|
}
|
|
.toc-item.level-2::before { left: 19px; width: 4px; height: 4px; }
|
|
.toc-item.level-2.active::before { width: 6px; height: 6px; }
|
|
|
|
/* 折叠按钮 */
|
|
.toc-toggle {
|
|
position: fixed;
|
|
bottom: 24px; right: 24px;
|
|
width: 40px; height: 40px;
|
|
background: rgba(255,255,255,0.9);
|
|
backdrop-filter: blur(8px);
|
|
color: var(--gray-700);
|
|
border: 1px solid var(--gray-200);
|
|
border-radius: 10px;
|
|
cursor: pointer; z-index: 1001;
|
|
font-size: 18px;
|
|
display: none;
|
|
align-items: center; justify-content: center;
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.06);
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
}
|
|
.toc-toggle:hover {
|
|
background: white;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* 打印样式 */
|
|
@media print {
|
|
body { background: white; }
|
|
.report-container { box-shadow: none; max-width: none; }
|
|
.section { page-break-inside: avoid; }
|
|
.chart-box { page-break-inside: avoid; }
|
|
.chart-row { grid-template-columns: 1fr 1fr; }
|
|
.toc-nav, .toc-toggle { display: none !important; }
|
|
}
|
|
|
|
@media (max-width: 1400px) {
|
|
.toc-nav { width: 160px; right: 12px; }
|
|
}
|
|
@media (max-width: 1280px) {
|
|
.toc-nav { display: none; }
|
|
.toc-toggle { display: flex; }
|
|
.toc-nav.show {
|
|
display: block; right: 12px; bottom: 72px; top: auto;
|
|
transform: none; max-height: 65vh;
|
|
opacity: 1; box-shadow: 0 8px 32px rgba(0,0,0,0.1);
|
|
}
|
|
}
|
|
@media (max-width: 768px) {
|
|
.chart-row { grid-template-columns: 1fr; }
|
|
.chart-row-3 { grid-template-columns: 1fr; }
|
|
.section { padding: 20px 24px; }
|
|
.cover { padding: 40px 24px; }
|
|
.cover .school-name { font-size: 28px; }
|
|
.toc-nav { display: none; }
|
|
.toc-toggle { display: flex; }
|
|
.toc-nav.show { display: block; width: 170px; }
|
|
}
|
|
</style>
|