safety-eval-website/src/pages/Container/Institution/index.css

414 lines
8.1 KiB
CSS
Raw Normal View History

2026-07-31 15:17:21 +08:00
/* ============ 机构端首页 — 1:1 还原原型 dashboard-classic ============ */
.institution-dashboard {
2026-07-09 10:05:52 +08:00
min-height: 100%;
2026-07-31 15:17:21 +08:00
background: #f8fafc;
color: #1e293b;
line-height: 1.6;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* 顶部工具栏 */
2026-07-09 10:05:52 +08:00
.institution-dashboard__toolbar {
2026-07-31 15:17:21 +08:00
padding: 0 0 8px;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* ============ dashboard-classic 布局 ============ */
.dashboard-classic {
2026-07-09 10:05:52 +08:00
display: grid;
2026-07-31 15:17:21 +08:00
gap: 0.85rem;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-classic-top,
.dashboard-classic-middle {
display: grid;
grid-template-columns: minmax(0, 3.2fr) minmax(300px, 1fr);
gap: 0.85rem;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* ============ dashboard-block 卡片 ============ */
.dashboard-block {
background: #fff;
border: 1px solid #e2e8f0;
padding: 0.95rem;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-block-head {
min-height: 28px;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.8rem;
margin-bottom: 0.75rem;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-block-head h3 {
font-size: 0.88rem;
margin: 0;
font-weight: 600;
color: #1e293b;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-block-head > div {
display: flex;
gap: 1.4rem;
font-size: 0.7rem;
color: #64748b;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-block-head b {
color: #2563eb;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* ============ 当前项目节点统计 ============ */
.dashboard-status-grid {
2026-07-09 10:05:52 +08:00
display: grid;
2026-07-31 15:17:21 +08:00
grid-template-columns: repeat(5, 1fr);
gap: 0.75rem;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-status-grid article {
2026-07-09 10:05:52 +08:00
display: flex;
align-items: center;
2026-07-31 15:17:21 +08:00
gap: 0.65rem;
min-height: 62px;
padding: 0.65rem;
2026-07-09 10:05:52 +08:00
background: #fff;
2026-07-31 15:17:21 +08:00
box-shadow: 0 4px 16px rgba(30, 64, 100, 0.07);
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-status-grid article > i {
width: 34px;
height: 34px;
border-radius: 4px;
2026-07-09 10:05:52 +08:00
display: flex;
align-items: center;
justify-content: center;
color: #fff;
2026-07-31 15:17:21 +08:00
font-style: normal;
font-weight: 700;
font-size: 13px;
flex: 0 0 34px;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-status-grid .blue { background: #4098f7; }
.dashboard-status-grid .violet { background: #8268ef; }
.dashboard-status-grid .green { background: #23bfa5; }
.dashboard-status-grid .orange { background: #ff9f2f; }
.dashboard-status-grid .cyan { background: #0eafbd; }
.dashboard-status-grid .red { background: #f0645b; }
.dashboard-status-grid span,
.dashboard-status-grid strong {
display: block;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-status-grid span {
font-size: 0.7rem;
color: #64748b;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-status-grid strong {
font-size: 1rem;
margin-top: 0.15rem;
color: #1e293b;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* ============ 通知提醒 ============ */
.dashboard-reminder-grid {
2026-07-09 10:05:52 +08:00
display: grid;
2026-07-31 15:17:21 +08:00
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-reminder-grid article {
2026-07-09 10:05:52 +08:00
display: flex;
align-items: center;
2026-07-31 15:17:21 +08:00
gap: 0.65rem;
min-height: 64px;
padding: 0.65rem;
cursor: pointer;
}
.dashboard-reminder-grid article:last-child {
grid-column: 1 / 2;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-reminder-grid article.yellow { background: #fff9e8; }
.dashboard-reminder-grid article.red { background: #fff2ef; }
.dashboard-reminder-grid article.blue { background: #edf4ff; }
.dashboard-reminder-grid i {
2026-07-09 10:05:52 +08:00
width: 34px;
height: 34px;
2026-07-31 15:17:21 +08:00
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
color: #fff;
font-style: normal;
font-weight: 700;
font-size: 13px;
flex: 0 0 34px;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-reminder-grid .yellow i { background: #f7bd08; }
.dashboard-reminder-grid .red i { background: #ff725c; }
.dashboard-reminder-grid .blue i { background: #5b8def; }
.dashboard-reminder-grid span,
.dashboard-reminder-grid strong {
display: block;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-reminder-grid span {
font-size: 0.68rem;
color: #64748b;
}
.dashboard-reminder-grid strong {
font-size: 1rem;
margin-top: 0.12rem;
color: #1e293b;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* ============ 服务行业项目统计 / 评价类别占比 ============ */
.dashboard-industry-block,
.dashboard-type-block {
min-height: 285px;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* 图例 */
.chart-legend span {
2026-07-09 10:05:52 +08:00
display: flex;
align-items: center;
2026-07-31 15:17:21 +08:00
gap: 0.25rem;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.chart-legend i {
width: 14px;
height: 6px;
border-radius: 5px;
background: #4285f4;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.chart-legend span:last-child i {
background: #ffab31;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* 柱状图容器 */
.dashboard-bar-chart {
height: 225px;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* ECharts 柱状图 */
.institution-bar-chart {
width: 100%;
height: 225px;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* ============ 评价类别占比 ============ */
2026-07-09 10:05:52 +08:00
.institution-donut-chart {
2026-07-31 15:17:21 +08:00
width: 100%;
height: 185px;
display: flex;
justify-content: center;
align-items: center;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-type-legend {
2026-07-09 10:05:52 +08:00
display: flex;
justify-content: center;
2026-07-31 15:17:21 +08:00
gap: 0.8rem;
flex-wrap: wrap;
font-size: 0.62rem;
color: #64748b;
margin-top: 8px;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-type-legend span {
display: flex;
2026-07-09 10:05:52 +08:00
align-items: center;
}
2026-07-31 15:17:21 +08:00
.dashboard-type-legend i {
display: inline-block;
2026-07-09 10:05:52 +08:00
width: 7px;
height: 7px;
border-radius: 50%;
2026-07-31 15:17:21 +08:00
margin-right: 0.25rem;
}
/* ============ 项目执行情况表格 ============ */
.dashboard-project-block .data-table {
background: #fff;
border: 0;
border-radius: 0;
box-shadow: none;
overflow: visible;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-project-table table {
width: 100%;
border-collapse: collapse;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-project-table th,
.dashboard-project-table td {
padding: 0.65rem 0.55rem;
font-size: 0.7rem;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-project-table th {
text-align: left;
font-weight: 600;
color: #64748b;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
white-space: nowrap;
}
.dashboard-project-table td {
border-bottom: 1px solid #e2e8f0;
color: #1e293b;
}
.dashboard-project-table tr:last-child td {
border-bottom: none;
}
.dashboard-project-table tr:hover td {
background: #f8fafc;
}
/* ============ 原生按钮(匹配原型) ============ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
padding: 0.42rem 0.85rem;
border: 1px solid var(--color-border, #e2e8f0);
border-radius: 8px;
font-size: 0.78rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
background: #fff;
color: #475569;
text-decoration: none;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.btn-primary {
background: #2563eb;
color: #fff;
border-color: #2563eb;
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-ghost {
background: transparent;
color: #64748b;
border: none;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.btn-ghost:hover { background: #f1f5f9; color: #1e293b; }
2026-07-09 10:05:52 +08:00
2026-07-31 15:17:21 +08:00
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.7rem; }
.dashboard-btn-ghost {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.75rem;
border: none;
border-radius: 8px;
font-size: 0.7rem;
font-weight: 500;
cursor: pointer;
background: transparent;
color: #64748b;
transition: all 0.15s ease;
}
.dashboard-btn-ghost:hover {
background: #f1f5f9;
color: #1e293b;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
/* 表格操作按钮 */
.dashboard-table-link {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.75rem;
border: none;
border-radius: 8px;
font-size: 0.7rem;
font-weight: 500;
cursor: pointer;
text-decoration: none;
background: #2563eb;
color: #fff;
transition: all 0.15s ease;
2026-07-09 10:05:52 +08:00
}
2026-07-31 15:17:21 +08:00
.dashboard-table-link:hover {
background: #1d4ed8;
text-decoration: none;
color: #fff;
2026-07-09 10:05:52 +08:00
}
2026-08-05 14:09:04 +08:00
/* ============ 骨架占位(加载态) ============ */
.sk-block {
display: inline-block;
background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
background-size: 400% 100%;
animation: sk-shimmer 1.3s ease-in-out infinite;
vertical-align: middle;
}
@keyframes sk-shimmer {
0% { background-position: 100% 0; }
100% { background-position: 0 0; }
}
/* 图表占位块 */
.sk-chart {
width: 100%;
height: 225px;
border-radius: 8px;
background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
background-size: 400% 100%;
animation: sk-shimmer 1.3s ease-in-out infinite;
}
.sk-chart--donut { height: 185px; }
/* 表格单元格骨架 */
.sk-cell {
width: 70%;
height: 12px;
border-radius: 4px;
}
.sk-cell--lg { width: 85%; }
.sk-cell--sm { width: 36px; }
2026-07-31 15:17:21 +08:00
/* ============ 响应式 ============ */
@media (max-width: 1280px) {
.dashboard-classic-top,
.dashboard-classic-middle {
2026-07-09 10:05:52 +08:00
grid-template-columns: 1fr;
}
2026-07-31 15:17:21 +08:00
.dashboard-status-grid {
grid-template-columns: repeat(2, 1fr);
2026-07-09 10:05:52 +08:00
}
}
@media (max-width: 760px) {
2026-07-31 15:17:21 +08:00
.dashboard-status-grid {
grid-template-columns: repeat(2, 1fr);
}
.dashboard-reminder-grid {
grid-template-columns: 1fr;
2026-07-09 10:05:52 +08:00
}
}