feat: 添加 L4 AI 诊断报告(后端 DeepSeek 端点 + 前端摘要块与详情页)
This commit is contained in:
@@ -0,0 +1,217 @@
|
||||
/* ── AI 诊断报告详情页 ── */
|
||||
.diagnosis-report-page {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 32px 24px;
|
||||
min-height: 100vh;
|
||||
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
|
||||
background: linear-gradient(135deg, #f5f0e8 0%, #e8e4d8 30%, #f0ece2 60%, #ebe5d5 100%);
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* ── 返回链接 ── */
|
||||
.diagnosis-report-back {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 14px;
|
||||
color: #5b8db8;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.diagnosis-report-back:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ── 头部信息 ── */
|
||||
.diagnosis-report-header {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.diagnosis-report-header h1 {
|
||||
margin: 0 0 8px 0;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: #4a6741;
|
||||
}
|
||||
|
||||
.diagnosis-report-header .diagnosis-report-range {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin: 0 0 4px 0;
|
||||
}
|
||||
|
||||
.diagnosis-report-header .diagnosis-report-date {
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ── 指标条 ── */
|
||||
.diagnosis-report-kpi-bar {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-bottom: 24px;
|
||||
border-radius: 12px;
|
||||
padding: 16px 20px;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
.diagnosis-report-kpi-item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.diagnosis-report-kpi-item .kpi-value {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.diagnosis-report-kpi-item .kpi-label {
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* ── 报告正文卡片 ── */
|
||||
.diagnosis-report-body {
|
||||
background: #fff;
|
||||
border-radius: 16px;
|
||||
padding: 36px 40px;
|
||||
margin-bottom: 24px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
|
||||
line-height: 1.9;
|
||||
font-size: 15px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.diagnosis-report-body h4 {
|
||||
color: #4a6741;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
margin: 28px 0 12px 0;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid #e8e4d8;
|
||||
}
|
||||
|
||||
.diagnosis-report-body h4:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.diagnosis-report-body p {
|
||||
margin: 0 0 12px 0;
|
||||
}
|
||||
|
||||
.diagnosis-report-body strong {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.diagnosis-report-body ul,
|
||||
.diagnosis-report-body ol {
|
||||
margin: 0 0 12px 0;
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
.diagnosis-report-body li {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.diagnosis-report-body table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 12px 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.diagnosis-report-body th,
|
||||
.diagnosis-report-body td {
|
||||
border: 1px solid #e0ddd4;
|
||||
padding: 8px 12px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.diagnosis-report-body th {
|
||||
background: #f5f3eb;
|
||||
font-weight: 600;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
/* ── 重新生成按钮 ── */
|
||||
.diagnosis-report-actions {
|
||||
text-align: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.diagnosis-report-actions button {
|
||||
background: #6b8e6b;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 8px 28px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.diagnosis-report-actions button:hover {
|
||||
background: #5a7d5a;
|
||||
}
|
||||
|
||||
.diagnosis-report-actions button:disabled {
|
||||
background: #ccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ── 免责声明 ── */
|
||||
.diagnosis-report-disclaimer {
|
||||
font-size: 12px;
|
||||
color: #aaa;
|
||||
text-align: center;
|
||||
padding: 0 24px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ── Loading ── */
|
||||
.diagnosis-report-loading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 80px 0;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.diagnosis-report-loading p {
|
||||
margin-top: 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ── 错误 ── */
|
||||
.diagnosis-report-error {
|
||||
text-align: center;
|
||||
padding: 60px 0;
|
||||
color: #c0584f;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ── 响应式 ── */
|
||||
@media (max-width: 768px) {
|
||||
.diagnosis-report-page {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.diagnosis-report-body {
|
||||
padding: 24px 20px;
|
||||
}
|
||||
|
||||
.diagnosis-report-kpi-bar {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user