Upload 12 files
Browse files- static/public.js +133 -130
- static/style.css +523 -523
static/public.js
CHANGED
|
@@ -1,131 +1,134 @@
|
|
| 1 |
-
const overviewCards = document.getElementById("overview-cards");
|
| 2 |
-
const dashboardUpdated = document.getElementById("dashboard-updated");
|
| 3 |
-
const timelineHeader = document.getElementById("timeline-header");
|
| 4 |
-
const healthGrid = document.getElementById("health-grid");
|
| 5 |
-
const dashboardEmpty = document.getElementById("dashboard-empty");
|
| 6 |
-
const refreshDashboardBtn = document.getElementById("refresh-dashboard");
|
| 7 |
-
|
| 8 |
-
const dateTimeFormatter = new Intl.DateTimeFormat("zh-CN", {
|
| 9 |
-
hour: "2-digit",
|
| 10 |
-
minute: "2-digit",
|
| 11 |
-
hour12: false,
|
| 12 |
-
});
|
| 13 |
-
|
| 14 |
-
function formatDateTime(value) {
|
| 15 |
-
if (!value) return "--";
|
| 16 |
-
const date = new Date(value);
|
| 17 |
-
if (Number.isNaN(date.getTime())) return "--";
|
| 18 |
-
return dateTimeFormatter.format(date);
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
function rateMeta(rate) {
|
| 22 |
-
if (rate === null || rate === undefined) return { label: "暂无数据", className: "status-cyan", colorClass: "cell-empty" };
|
| 23 |
-
if (rate >= 95) return { label: "优秀", className: "status-cyan", colorClass: "cell-cyan" };
|
| 24 |
-
if (rate >= 80) return { label: "良好", className: "status-green", colorClass: "cell-green" };
|
| 25 |
-
if (rate >= 50) return { label: "告警", className: "status-orange", colorClass: "cell-orange" };
|
| 26 |
-
return { label: "异常", className: "status-red", colorClass: "cell-red" };
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
function createSummaryCard(label, value, detail = "") {
|
| 30 |
-
const card = document.createElement("article");
|
| 31 |
-
card.className = "summary-card";
|
| 32 |
-
card.innerHTML = `<span>${label}</span><strong>${value}</strong><p>${detail}</p>`;
|
| 33 |
-
return card;
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
function renderOverview(data) {
|
| 37 |
-
overviewCards.innerHTML = "";
|
| 38 |
-
const averageHealth = data.average_health === null || data.average_health === undefined ? "--" : `${data.average_health.toFixed(2)}%`;
|
| 39 |
-
const totalCalls = data.total_requests ?? 0;
|
| 40 |
-
const healthyModels = (data.models || []).filter((model) => (model.latest_success_rate ?? 0) >= 95).length;
|
| 41 |
-
const displayedBuckets = data.models?.[0]?.points?.length || 0;
|
| 42 |
-
|
| 43 |
-
overviewCards.appendChild(createSummaryCard("总调用次数", totalCalls, "统计来自网关累计成功与失败请求"));
|
| 44 |
-
overviewCards.appendChild(createSummaryCard("平均健康度", averageHealth, "按监控模型最近 10 分钟成功率平均值计算"));
|
| 45 |
-
overviewCards.appendChild(createSummaryCard("高健康模型数", healthyModels, "最近一档成功率达到 95% 以上的模型数量"));
|
| 46 |
-
overviewCards.appendChild(createSummaryCard("统计窗口", `${displayedBuckets * (data.bucket_minutes || 10)} 分钟`, `当前按 ${data.bucket_minutes || 10} 分钟粒度滚动统计`));
|
| 47 |
-
dashboardUpdated.textContent = formatDateTime(data.generated_at);
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
function renderTimelineHeader(models) {
|
| 51 |
-
timelineHeader.innerHTML = "";
|
| 52 |
-
const points = models?.[0]?.points || [];
|
| 53 |
-
const emptyCell = document.createElement("div");
|
| 54 |
-
emptyCell.className = "timeline-label timeline-left-placeholder";
|
| 55 |
-
timelineHeader.appendChild(emptyCell);
|
| 56 |
-
points.forEach((point) => {
|
| 57 |
-
const cell = document.createElement("div");
|
| 58 |
-
cell.className = "timeline-label";
|
| 59 |
-
cell.textContent = point.label || formatDateTime(point.bucket_start);
|
| 60 |
-
timelineHeader.appendChild(cell);
|
| 61 |
-
});
|
| 62 |
-
}
|
| 63 |
-
|
| 64 |
-
function renderHealthRows(models) {
|
| 65 |
-
healthGrid.innerHTML = "";
|
| 66 |
-
if (!models || models.length === 0) {
|
| 67 |
-
dashboardEmpty.textContent = "当前没有可展示的模型健康数据,请确认 MODEL_LIST 配置并等待请求进入统计。";
|
| 68 |
-
return;
|
| 69 |
-
}
|
| 70 |
-
dashboardEmpty.textContent = "";
|
| 71 |
-
renderTimelineHeader(models);
|
| 72 |
-
|
| 73 |
-
models.forEach((model) => {
|
| 74 |
-
const latestRate = model.latest_success_rate === null || model.latest_success_rate === undefined ? "--" : `${model.latest_success_rate.toFixed(2)}%`;
|
| 75 |
-
const latestMeta = rateMeta(model.latest_success_rate);
|
| 76 |
-
|
| 77 |
-
const row = document.createElement("article");
|
| 78 |
-
row.className = "health-row-card";
|
| 79 |
-
|
| 80 |
-
const summary = document.createElement("div");
|
| 81 |
-
summary.className = "health-row-summary";
|
| 82 |
-
summary.innerHTML = `
|
| 83 |
-
<div class="health-row-accent ${latestMeta.className}"></div>
|
| 84 |
-
<div class="health-row-copy">
|
| 85 |
-
<h3 title="${model.model_id}">${model.model_id}</h3>
|
| 86 |
-
<
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
| 131 |
});
|
|
|
|
| 1 |
+
const overviewCards = document.getElementById("overview-cards");
|
| 2 |
+
const dashboardUpdated = document.getElementById("dashboard-updated");
|
| 3 |
+
const timelineHeader = document.getElementById("timeline-header");
|
| 4 |
+
const healthGrid = document.getElementById("health-grid");
|
| 5 |
+
const dashboardEmpty = document.getElementById("dashboard-empty");
|
| 6 |
+
const refreshDashboardBtn = document.getElementById("refresh-dashboard");
|
| 7 |
+
|
| 8 |
+
const dateTimeFormatter = new Intl.DateTimeFormat("zh-CN", {
|
| 9 |
+
hour: "2-digit",
|
| 10 |
+
minute: "2-digit",
|
| 11 |
+
hour12: false,
|
| 12 |
+
});
|
| 13 |
+
|
| 14 |
+
function formatDateTime(value) {
|
| 15 |
+
if (!value) return "--";
|
| 16 |
+
const date = new Date(value);
|
| 17 |
+
if (Number.isNaN(date.getTime())) return "--";
|
| 18 |
+
return dateTimeFormatter.format(date);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
function rateMeta(rate) {
|
| 22 |
+
if (rate === null || rate === undefined) return { label: "暂无数据", className: "status-cyan", colorClass: "cell-empty" };
|
| 23 |
+
if (rate >= 95) return { label: "优秀", className: "status-cyan", colorClass: "cell-cyan" };
|
| 24 |
+
if (rate >= 80) return { label: "良好", className: "status-green", colorClass: "cell-green" };
|
| 25 |
+
if (rate >= 50) return { label: "告警", className: "status-orange", colorClass: "cell-orange" };
|
| 26 |
+
return { label: "异常", className: "status-red", colorClass: "cell-red" };
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
function createSummaryCard(label, value, detail = "") {
|
| 30 |
+
const card = document.createElement("article");
|
| 31 |
+
card.className = "summary-card";
|
| 32 |
+
card.innerHTML = `<span>${label}</span><strong>${value}</strong><p>${detail}</p>`;
|
| 33 |
+
return card;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
function renderOverview(data) {
|
| 37 |
+
overviewCards.innerHTML = "";
|
| 38 |
+
const averageHealth = data.average_health === null || data.average_health === undefined ? "--" : `${data.average_health.toFixed(2)}%`;
|
| 39 |
+
const totalCalls = data.total_requests ?? 0;
|
| 40 |
+
const healthyModels = (data.models || []).filter((model) => (model.latest_success_rate ?? 0) >= 95).length;
|
| 41 |
+
const displayedBuckets = data.models?.[0]?.points?.length || 0;
|
| 42 |
+
|
| 43 |
+
overviewCards.appendChild(createSummaryCard("总调用次数", totalCalls, "统计来自网关累计成功与失败请求"));
|
| 44 |
+
overviewCards.appendChild(createSummaryCard("平均健康度", averageHealth, "按监控模型最近 10 分钟成功率平均值计算"));
|
| 45 |
+
overviewCards.appendChild(createSummaryCard("高健康模型数", healthyModels, "最近一档成功率达到 95% 以上的模型数量"));
|
| 46 |
+
overviewCards.appendChild(createSummaryCard("统计窗口", `${displayedBuckets * (data.bucket_minutes || 10)} 分钟`, `当前按 ${data.bucket_minutes || 10} 分钟粒度滚动统计`));
|
| 47 |
+
dashboardUpdated.textContent = formatDateTime(data.generated_at);
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
function renderTimelineHeader(models) {
|
| 51 |
+
timelineHeader.innerHTML = "";
|
| 52 |
+
const points = models?.[0]?.points || [];
|
| 53 |
+
const emptyCell = document.createElement("div");
|
| 54 |
+
emptyCell.className = "timeline-label timeline-left-placeholder";
|
| 55 |
+
timelineHeader.appendChild(emptyCell);
|
| 56 |
+
points.forEach((point) => {
|
| 57 |
+
const cell = document.createElement("div");
|
| 58 |
+
cell.className = "timeline-label";
|
| 59 |
+
cell.textContent = point.label || formatDateTime(point.bucket_start);
|
| 60 |
+
timelineHeader.appendChild(cell);
|
| 61 |
+
});
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
function renderHealthRows(models) {
|
| 65 |
+
healthGrid.innerHTML = "";
|
| 66 |
+
if (!models || models.length === 0) {
|
| 67 |
+
dashboardEmpty.textContent = "当前没有可展示的模型健康数据,请确认 MODEL_LIST 配置并等待请求进入统计。";
|
| 68 |
+
return;
|
| 69 |
+
}
|
| 70 |
+
dashboardEmpty.textContent = "";
|
| 71 |
+
renderTimelineHeader(models);
|
| 72 |
+
|
| 73 |
+
models.forEach((model) => {
|
| 74 |
+
const latestRate = model.latest_success_rate === null || model.latest_success_rate === undefined ? "--" : `${model.latest_success_rate.toFixed(2)}%`;
|
| 75 |
+
const latestMeta = rateMeta(model.latest_success_rate);
|
| 76 |
+
|
| 77 |
+
const row = document.createElement("article");
|
| 78 |
+
row.className = "health-row-card";
|
| 79 |
+
|
| 80 |
+
const summary = document.createElement("div");
|
| 81 |
+
summary.className = "health-row-summary";
|
| 82 |
+
summary.innerHTML = `
|
| 83 |
+
<div class="health-row-accent ${latestMeta.className}"></div>
|
| 84 |
+
<div class="health-row-copy">
|
| 85 |
+
<h3 title="${model.model_id}">${model.model_id}</h3>
|
| 86 |
+
<div class="health-meta-inline">
|
| 87 |
+
<span class="health-rate-pill ${latestMeta.className}">${latestRate}</span>
|
| 88 |
+
<span class="health-call-pill">?? ${model.total_calls ?? 0}</span>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
`;
|
| 92 |
+
|
| 93 |
+
const cells = document.createElement("div");
|
| 94 |
+
cells.className = "health-cells";
|
| 95 |
+
(model.points || []).forEach((point) => {
|
| 96 |
+
const meta = rateMeta(point.success_rate);
|
| 97 |
+
const cell = document.createElement("div");
|
| 98 |
+
cell.className = `health-cell ${meta.colorClass}`;
|
| 99 |
+
cell.title = `${point.label} 成功 ${point.success_count}/${point.total_count}`;
|
| 100 |
+
cells.appendChild(cell);
|
| 101 |
+
});
|
| 102 |
+
|
| 103 |
+
row.appendChild(summary);
|
| 104 |
+
row.appendChild(cells);
|
| 105 |
+
healthGrid.appendChild(row);
|
| 106 |
+
});
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
async function loadDashboard() {
|
| 110 |
+
const response = await fetch("/api/dashboard", { headers: { Accept: "application/json" } });
|
| 111 |
+
if (!response.ok) {
|
| 112 |
+
throw new Error("健康看板数据加载失败");
|
| 113 |
+
}
|
| 114 |
+
const payload = await response.json();
|
| 115 |
+
renderOverview(payload);
|
| 116 |
+
renderHealthRows(payload.models || []);
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
async function refreshDashboard() {
|
| 120 |
+
try {
|
| 121 |
+
await loadDashboard();
|
| 122 |
+
} catch (error) {
|
| 123 |
+
dashboardEmpty.textContent = error.message;
|
| 124 |
+
timelineHeader.innerHTML = "";
|
| 125 |
+
healthGrid.innerHTML = "";
|
| 126 |
+
}
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
refreshDashboardBtn?.addEventListener("click", refreshDashboard);
|
| 130 |
+
|
| 131 |
+
window.addEventListener("DOMContentLoaded", () => {
|
| 132 |
+
refreshDashboard();
|
| 133 |
+
window.setInterval(refreshDashboard, 60 * 1000);
|
| 134 |
});
|
static/style.css
CHANGED
|
@@ -1,524 +1,524 @@
|
|
| 1 |
-
:root {
|
| 2 |
-
--bg: #f8fbfd;
|
| 3 |
-
--surface: #ffffff;
|
| 4 |
-
--surface-soft: #f1f8fb;
|
| 5 |
-
--surface-muted: #eef6f9;
|
| 6 |
-
--line: #deedf3;
|
| 7 |
-
--line-strong: #c8e5ef;
|
| 8 |
-
--text: #3d4652;
|
| 9 |
-
--muted: #7b8a97;
|
| 10 |
-
--cyan: #57c8df;
|
| 11 |
-
--cyan-deep: #46bfd8;
|
| 12 |
-
--green: #69c36c;
|
| 13 |
-
--yellow: #a8cf6d;
|
| 14 |
-
--orange: #f0ae46;
|
| 15 |
-
--red: #f06d6f;
|
| 16 |
-
--shadow: 0 20px 42px rgba(109, 153, 177, 0.12);
|
| 17 |
-
--font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
|
| 18 |
-
--font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
* {
|
| 22 |
-
box-sizing: border-box;
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
html,
|
| 26 |
-
body {
|
| 27 |
-
min-height: 100%;
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
body {
|
| 31 |
-
margin: 0;
|
| 32 |
-
font-family: var(--font-sans);
|
| 33 |
-
color: var(--text);
|
| 34 |
-
background:
|
| 35 |
-
radial-gradient(circle at top left, rgba(105, 195, 108, 0.08), transparent 22%),
|
| 36 |
-
radial-gradient(circle at top right, rgba(87, 200, 223, 0.12), transparent 20%),
|
| 37 |
-
linear-gradient(180deg, #fbfdfe 0%, #f6fbfd 100%);
|
| 38 |
-
}
|
| 39 |
-
|
| 40 |
-
.health-page-shell,
|
| 41 |
-
.catalog-page-shell {
|
| 42 |
-
width: min(1560px, calc(100vw - 56px));
|
| 43 |
-
margin: 0 auto;
|
| 44 |
-
padding: 26px 0 44px;
|
| 45 |
-
}
|
| 46 |
-
|
| 47 |
-
.health-topbar,
|
| 48 |
-
.catalog-topbar,
|
| 49 |
-
.health-summary-grid,
|
| 50 |
-
.health-board-panel,
|
| 51 |
-
.catalog-summary-grid,
|
| 52 |
-
.catalog-filter-panel,
|
| 53 |
-
.catalog-board-panel,
|
| 54 |
-
.summary-card,
|
| 55 |
-
.provider-card {
|
| 56 |
-
background: var(--surface);
|
| 57 |
-
border: 1px solid var(--line);
|
| 58 |
-
box-shadow: var(--shadow);
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
.health-topbar,
|
| 62 |
-
.catalog-topbar,
|
| 63 |
-
.health-board-panel,
|
| 64 |
-
.catalog-filter-panel,
|
| 65 |
-
.catalog-board-panel {
|
| 66 |
-
border-radius: 28px;
|
| 67 |
-
}
|
| 68 |
-
|
| 69 |
-
.health-topbar,
|
| 70 |
-
.catalog-topbar {
|
| 71 |
-
display: flex;
|
| 72 |
-
justify-content: space-between;
|
| 73 |
-
align-items: flex-start;
|
| 74 |
-
gap: 20px;
|
| 75 |
-
padding: 26px 30px;
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
.health-topbar h1,
|
| 79 |
-
.catalog-topbar h1,
|
| 80 |
-
.board-header-row h2,
|
| 81 |
-
.health-row-copy h3,
|
| 82 |
-
.provider-card h3 {
|
| 83 |
-
font-family: var(--font-display);
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
.health-topbar h1,
|
| 87 |
-
.catalog-topbar h1 {
|
| 88 |
-
margin: 12px 0 10px;
|
| 89 |
-
font-size: clamp(30px, 2.5vw, 44px);
|
| 90 |
-
line-height: 1.1;
|
| 91 |
-
}
|
| 92 |
-
|
| 93 |
-
.health-topbar p,
|
| 94 |
-
.catalog-topbar p,
|
| 95 |
-
.panel-hint,
|
| 96 |
-
.provider-card p,
|
| 97 |
-
.summary-card p,
|
| 98 |
-
.timeline-label,
|
| 99 |
-
.board-meta-box span {
|
| 100 |
-
color: var(--muted);
|
| 101 |
-
}
|
| 102 |
-
|
| 103 |
-
.topbar-actions {
|
| 104 |
-
display: flex;
|
| 105 |
-
gap: 14px;
|
| 106 |
-
align-items: center;
|
| 107 |
-
flex-wrap: wrap;
|
| 108 |
-
}
|
| 109 |
-
|
| 110 |
-
.mini-badge {
|
| 111 |
-
display: inline-flex;
|
| 112 |
-
align-items: center;
|
| 113 |
-
padding: 8px 14px;
|
| 114 |
-
border-radius: 999px;
|
| 115 |
-
background: rgba(87, 200, 223, 0.12);
|
| 116 |
-
color: var(--cyan-deep);
|
| 117 |
-
border: 1px solid rgba(87, 200, 223, 0.26);
|
| 118 |
-
font-size: 13px;
|
| 119 |
-
font-weight: 700;
|
| 120 |
-
letter-spacing: 0.05em;
|
| 121 |
-
}
|
| 122 |
-
|
| 123 |
-
.mini-badge.subtle {
|
| 124 |
-
background: var(--surface-soft);
|
| 125 |
-
color: var(--muted);
|
| 126 |
-
border-color: var(--line);
|
| 127 |
-
}
|
| 128 |
-
|
| 129 |
-
.text-nav-link,
|
| 130 |
-
.refresh-link,
|
| 131 |
-
.provider-filter-btn {
|
| 132 |
-
appearance: none;
|
| 133 |
-
border: 1px solid var(--line-strong);
|
| 134 |
-
background: var(--surface);
|
| 135 |
-
color: var(--text);
|
| 136 |
-
text-decoration: none;
|
| 137 |
-
border-radius: 999px;
|
| 138 |
-
padding: 11px 16px;
|
| 139 |
-
font: inherit;
|
| 140 |
-
cursor: pointer;
|
| 141 |
-
}
|
| 142 |
-
|
| 143 |
-
.text-nav-link:hover,
|
| 144 |
-
.refresh-link:hover,
|
| 145 |
-
.provider-filter-btn:hover {
|
| 146 |
-
border-color: var(--cyan);
|
| 147 |
-
color: var(--cyan-deep);
|
| 148 |
-
}
|
| 149 |
-
|
| 150 |
-
.health-summary-grid,
|
| 151 |
-
.catalog-summary-grid {
|
| 152 |
-
margin-top: 18px;
|
| 153 |
-
display: grid;
|
| 154 |
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
| 155 |
-
gap: 16px;
|
| 156 |
-
background: transparent;
|
| 157 |
-
border: none;
|
| 158 |
-
box-shadow: none;
|
| 159 |
-
}
|
| 160 |
-
|
| 161 |
-
.summary-card {
|
| 162 |
-
border-radius: 22px;
|
| 163 |
-
padding: 18px 20px;
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
.summary-card span {
|
| 167 |
-
display: block;
|
| 168 |
-
color: var(--muted);
|
| 169 |
-
font-size: 13px;
|
| 170 |
-
}
|
| 171 |
-
|
| 172 |
-
.summary-card strong {
|
| 173 |
-
display: block;
|
| 174 |
-
margin: 10px 0 8px;
|
| 175 |
-
font-family: var(--font-display);
|
| 176 |
-
font-size: 28px;
|
| 177 |
-
}
|
| 178 |
-
|
| 179 |
-
.health-board-panel,
|
| 180 |
-
.catalog-filter-panel,
|
| 181 |
-
.catalog-board-panel {
|
| 182 |
-
margin-top: 18px;
|
| 183 |
-
padding: 26px 28px;
|
| 184 |
-
}
|
| 185 |
-
|
| 186 |
-
.board-header-row {
|
| 187 |
-
display: flex;
|
| 188 |
-
justify-content: space-between;
|
| 189 |
-
align-items: flex-start;
|
| 190 |
-
gap: 18px;
|
| 191 |
-
flex-wrap: wrap;
|
| 192 |
-
margin-bottom: 18px;
|
| 193 |
-
}
|
| 194 |
-
|
| 195 |
-
.board-header-row h2 {
|
| 196 |
-
margin: 12px 0 0;
|
| 197 |
-
font-size: clamp(24px, 2vw, 34px);
|
| 198 |
-
}
|
| 199 |
-
|
| 200 |
-
.board-meta-box {
|
| 201 |
-
min-width: 200px;
|
| 202 |
-
padding: 14px 16px;
|
| 203 |
-
border-radius: 20px;
|
| 204 |
-
background: var(--surface-soft);
|
| 205 |
-
border: 1px solid var(--line);
|
| 206 |
-
}
|
| 207 |
-
|
| 208 |
-
.board-meta-box strong {
|
| 209 |
-
display: block;
|
| 210 |
-
margin-top: 8px;
|
| 211 |
-
font-family: var(--font-display);
|
| 212 |
-
font-size: 20px;
|
| 213 |
-
}
|
| 214 |
-
|
| 215 |
-
.timeline-header {
|
| 216 |
-
display: grid;
|
| 217 |
-
grid-template-columns: 360px repeat(6, minmax(74px, 1fr));
|
| 218 |
-
gap: 12px;
|
| 219 |
-
align-items: center;
|
| 220 |
-
margin: 10px 0 12px;
|
| 221 |
-
}
|
| 222 |
-
|
| 223 |
-
.timeline-label {
|
| 224 |
-
text-align: center;
|
| 225 |
-
font-size: 13px;
|
| 226 |
-
}
|
| 227 |
-
|
| 228 |
-
.timeline-left-placeholder {
|
| 229 |
-
text-align: left;
|
| 230 |
-
}
|
| 231 |
-
|
| 232 |
-
.health-list {
|
| 233 |
-
display: flex;
|
| 234 |
-
flex-direction: column;
|
| 235 |
-
gap: 16px;
|
| 236 |
-
}
|
| 237 |
-
|
| 238 |
-
.health-row-card {
|
| 239 |
-
display: grid;
|
| 240 |
-
grid-template-columns: 360px minmax(0, 1fr);
|
| 241 |
-
gap: 18px;
|
| 242 |
-
align-items: center;
|
| 243 |
-
padding: 18px 0;
|
| 244 |
-
border-bottom: 1px solid var(--line);
|
| 245 |
-
}
|
| 246 |
-
|
| 247 |
-
.health-row-card:last-child {
|
| 248 |
-
border-bottom: none;
|
| 249 |
-
}
|
| 250 |
-
|
| 251 |
-
.health-row-summary {
|
| 252 |
-
display: flex;
|
| 253 |
-
align-items: center;
|
| 254 |
-
gap: 16px;
|
| 255 |
-
min-width: 0;
|
| 256 |
-
}
|
| 257 |
-
|
| 258 |
-
.health-row-accent {
|
| 259 |
-
width: 22px;
|
| 260 |
-
min-width: 22px;
|
| 261 |
-
height: 92px;
|
| 262 |
-
border-radius: 999px;
|
| 263 |
-
background: var(--cyan);
|
| 264 |
-
}
|
| 265 |
-
|
| 266 |
-
.health-row-copy {
|
| 267 |
-
min-width: 0;
|
| 268 |
-
}
|
| 269 |
-
|
| 270 |
-
.health-row-copy h3 {
|
| 271 |
-
margin: 0;
|
| 272 |
-
font-size: 26px;
|
| 273 |
-
white-space: nowrap;
|
| 274 |
-
overflow: hidden;
|
| 275 |
-
text-overflow: ellipsis;
|
| 276 |
-
}
|
| 277 |
-
|
| 278 |
-
.health-rate-pill {
|
| 279 |
-
display: inline-flex;
|
| 280 |
-
align-items: center;
|
| 281 |
-
margin-top: 12px;
|
| 282 |
-
padding: 9px 14px;
|
| 283 |
-
border-radius: 14px;
|
| 284 |
-
font-weight: 800;
|
| 285 |
-
font-size: 15px;
|
| 286 |
-
background: var(--surface-soft);
|
| 287 |
-
}
|
| 288 |
-
|
| 289 |
-
.health-cells {
|
| 290 |
-
display: grid;
|
| 291 |
-
grid-template-columns: repeat(6, minmax(74px, 1fr));
|
| 292 |
-
gap: 12px;
|
| 293 |
-
align-items: center;
|
| 294 |
-
}
|
| 295 |
-
|
| 296 |
-
.health-cell {
|
| 297 |
-
width: 100%;
|
| 298 |
-
aspect-ratio: 1 / 1;
|
| 299 |
-
border-radius: 14px;
|
| 300 |
-
border: 4px solid transparent;
|
| 301 |
-
background: var(--surface-muted);
|
| 302 |
-
}
|
| 303 |
-
|
| 304 |
-
.cell-cyan {
|
| 305 |
-
border-color: var(--cyan);
|
| 306 |
-
background: rgba(87, 200, 223, 0.12);
|
| 307 |
-
}
|
| 308 |
-
|
| 309 |
-
.cell-green {
|
| 310 |
-
border-color: var(--green);
|
| 311 |
-
background: rgba(105, 195, 108, 0.1);
|
| 312 |
-
}
|
| 313 |
-
|
| 314 |
-
.cell-orange {
|
| 315 |
-
border-color: var(--orange);
|
| 316 |
-
background: rgba(240, 174, 70, 0.1);
|
| 317 |
-
}
|
| 318 |
-
|
| 319 |
-
.cell-red {
|
| 320 |
-
border-color: var(--red);
|
| 321 |
-
background: rgba(240, 109, 111, 0.1);
|
| 322 |
-
}
|
| 323 |
-
|
| 324 |
-
.cell-empty {
|
| 325 |
-
border-color: transparent;
|
| 326 |
-
background: var(--surface-muted);
|
| 327 |
-
}
|
| 328 |
-
|
| 329 |
-
.status-cyan,
|
| 330 |
-
.status-cyan.health-row-accent {
|
| 331 |
-
color: var(--cyan-deep);
|
| 332 |
-
background-color: var(--cyan);
|
| 333 |
-
}
|
| 334 |
-
|
| 335 |
-
.status-green,
|
| 336 |
-
.status-green.health-row-accent {
|
| 337 |
-
color: var(--green);
|
| 338 |
-
background-color: var(--green);
|
| 339 |
-
}
|
| 340 |
-
|
| 341 |
-
.status-orange,
|
| 342 |
-
.status-orange.health-row-accent {
|
| 343 |
-
color: var(--orange);
|
| 344 |
-
background-color: var(--orange);
|
| 345 |
-
}
|
| 346 |
-
|
| 347 |
-
.status-red,
|
| 348 |
-
.status-red.health-row-accent {
|
| 349 |
-
color: var(--red);
|
| 350 |
-
background-color: var(--red);
|
| 351 |
-
}
|
| 352 |
-
|
| 353 |
-
.health-rate-pill.status-cyan { color: var(--cyan-deep); background: rgba(87, 200, 223, 0.14); }
|
| 354 |
-
.health-rate-pill.status-green { color: var(--green); background: rgba(105, 195, 108, 0.14); }
|
| 355 |
-
.health-rate-pill.status-orange { color: var(--orange); background: rgba(240, 174, 70, 0.14); }
|
| 356 |
-
.health-rate-pill.status-red { color: var(--red); background: rgba(240, 109, 111, 0.14); }
|
| 357 |
-
|
| 358 |
-
.provider-filter-panel {
|
| 359 |
-
display: flex;
|
| 360 |
-
justify-content: space-between;
|
| 361 |
-
align-items: center;
|
| 362 |
-
gap: 18px;
|
| 363 |
-
flex-wrap: wrap;
|
| 364 |
-
}
|
| 365 |
-
|
| 366 |
-
.provider-filter-panel h2 {
|
| 367 |
-
margin: 12px 0 0;
|
| 368 |
-
font-family: var(--font-display);
|
| 369 |
-
font-size: clamp(22px, 2vw, 30px);
|
| 370 |
-
}
|
| 371 |
-
|
| 372 |
-
.provider-filter-bar {
|
| 373 |
-
display: flex;
|
| 374 |
-
gap: 10px;
|
| 375 |
-
flex-wrap: wrap;
|
| 376 |
-
}
|
| 377 |
-
|
| 378 |
-
.provider-filter-btn.active {
|
| 379 |
-
background: rgba(87, 200, 223, 0.12);
|
| 380 |
-
border-color: rgba(87, 200, 223, 0.3);
|
| 381 |
-
color: var(--cyan-deep);
|
| 382 |
-
font-weight: 700;
|
| 383 |
-
}
|
| 384 |
-
|
| 385 |
-
.provider-grid {
|
| 386 |
-
display: grid;
|
| 387 |
-
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
| 388 |
-
gap: 18px;
|
| 389 |
-
}
|
| 390 |
-
|
| 391 |
-
.provider-card {
|
| 392 |
-
border-radius: 24px;
|
| 393 |
-
padding: 20px;
|
| 394 |
-
display: flex;
|
| 395 |
-
flex-direction: column;
|
| 396 |
-
}
|
| 397 |
-
|
| 398 |
-
.provider-card-fixed {
|
| 399 |
-
height: 320px;
|
| 400 |
-
}
|
| 401 |
-
|
| 402 |
-
.provider-card-head {
|
| 403 |
-
display: flex;
|
| 404 |
-
justify-content: space-between;
|
| 405 |
-
align-items: flex-start;
|
| 406 |
-
gap: 12px;
|
| 407 |
-
}
|
| 408 |
-
|
| 409 |
-
.provider-card h3 {
|
| 410 |
-
margin: 0;
|
| 411 |
-
font-size: 24px;
|
| 412 |
-
}
|
| 413 |
-
|
| 414 |
-
.provider-card p {
|
| 415 |
-
margin: 10px 0 0;
|
| 416 |
-
}
|
| 417 |
-
|
| 418 |
-
.provider-model-list {
|
| 419 |
-
margin-top: 18px;
|
| 420 |
-
display: flex;
|
| 421 |
-
flex-direction: column;
|
| 422 |
-
gap: 10px;
|
| 423 |
-
overflow-y: auto;
|
| 424 |
-
padding-right: 4px;
|
| 425 |
-
}
|
| 426 |
-
|
| 427 |
-
.provider-model-chip {
|
| 428 |
-
display: block;
|
| 429 |
-
padding: 11px 14px;
|
| 430 |
-
border-radius: 16px;
|
| 431 |
-
background: var(--surface-soft);
|
| 432 |
-
border: 1px solid var(--line);
|
| 433 |
-
font-family: var(--font-display);
|
| 434 |
-
font-size: 13px;
|
| 435 |
-
color: var(--text);
|
| 436 |
-
white-space: nowrap;
|
| 437 |
-
overflow: hidden;
|
| 438 |
-
text-overflow: ellipsis;
|
| 439 |
-
}
|
| 440 |
-
|
| 441 |
-
.panel-hint {
|
| 442 |
-
margin-top: 16px;
|
| 443 |
-
}
|
| 444 |
-
|
| 445 |
-
@media (max-width: 1200px) {
|
| 446 |
-
.timeline-header,
|
| 447 |
-
.health-row-card,
|
| 448 |
-
.health-cells {
|
| 449 |
-
grid-template-columns:
|
| 450 |
-
}
|
| 451 |
-
}
|
| 452 |
-
|
| 453 |
-
@media (max-width: 980px) {
|
| 454 |
-
.health-page-shell,
|
| 455 |
-
.catalog-page-shell {
|
| 456 |
-
width: min(100vw - 24px, 1560px);
|
| 457 |
-
}
|
| 458 |
-
|
| 459 |
-
.health-summary-grid,
|
| 460 |
-
.catalog-summary-grid {
|
| 461 |
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
| 462 |
-
}
|
| 463 |
-
|
| 464 |
-
.timeline-header {
|
| 465 |
-
display: none;
|
| 466 |
-
}
|
| 467 |
-
|
| 468 |
-
.health-row-card {
|
| 469 |
-
grid-template-columns: 1fr;
|
| 470 |
-
gap: 14px;
|
| 471 |
-
padding: 18px;
|
| 472 |
-
border: 1px solid var(--line);
|
| 473 |
-
border-radius: 24px;
|
| 474 |
-
background: var(--surface);
|
| 475 |
-
}
|
| 476 |
-
|
| 477 |
-
.health-cells {
|
| 478 |
-
grid-template-columns: repeat(6, minmax(40px, 1fr));
|
| 479 |
-
}
|
| 480 |
-
}
|
| 481 |
-
|
| 482 |
-
@media (max-width: 720px) {
|
| 483 |
-
.health-topbar,
|
| 484 |
-
.catalog-topbar,
|
| 485 |
-
.health-board-panel,
|
| 486 |
-
.catalog-filter-panel,
|
| 487 |
-
.catalog-board-panel {
|
| 488 |
-
padding: 20px;
|
| 489 |
-
}
|
| 490 |
-
|
| 491 |
-
.health-summary-grid,
|
| 492 |
-
.catalog-summary-grid,
|
| 493 |
-
.provider-grid {
|
| 494 |
-
grid-template-columns: 1fr;
|
| 495 |
-
}
|
| 496 |
-
|
| 497 |
-
.topbar-actions,
|
| 498 |
-
.provider-filter-bar {
|
| 499 |
-
width: 100%;
|
| 500 |
-
}
|
| 501 |
-
|
| 502 |
-
.text-nav-link,
|
| 503 |
-
.refresh-link,
|
| 504 |
-
.provider-filter-btn {
|
| 505 |
-
width: 100%;
|
| 506 |
-
text-align: center;
|
| 507 |
-
}
|
| 508 |
-
|
| 509 |
-
.health-row-summary {
|
| 510 |
-
align-items: flex-start;
|
| 511 |
-
}
|
| 512 |
-
|
| 513 |
-
.health-row-accent {
|
| 514 |
-
height: 72px;
|
| 515 |
-
}
|
| 516 |
-
|
| 517 |
-
.health-row-copy h3 {
|
| 518 |
-
font-size: 22px;
|
| 519 |
-
}
|
| 520 |
-
|
| 521 |
-
.health-cells {
|
| 522 |
-
grid-template-columns: repeat(3, minmax(54px, 1fr));
|
| 523 |
-
}
|
| 524 |
}
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--bg: #f8fbfd;
|
| 3 |
+
--surface: #ffffff;
|
| 4 |
+
--surface-soft: #f1f8fb;
|
| 5 |
+
--surface-muted: #eef6f9;
|
| 6 |
+
--line: #deedf3;
|
| 7 |
+
--line-strong: #c8e5ef;
|
| 8 |
+
--text: #3d4652;
|
| 9 |
+
--muted: #7b8a97;
|
| 10 |
+
--cyan: #57c8df;
|
| 11 |
+
--cyan-deep: #46bfd8;
|
| 12 |
+
--green: #69c36c;
|
| 13 |
+
--yellow: #a8cf6d;
|
| 14 |
+
--orange: #f0ae46;
|
| 15 |
+
--red: #f06d6f;
|
| 16 |
+
--shadow: 0 20px 42px rgba(109, 153, 177, 0.12);
|
| 17 |
+
--font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
|
| 18 |
+
--font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
* {
|
| 22 |
+
box-sizing: border-box;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
html,
|
| 26 |
+
body {
|
| 27 |
+
min-height: 100%;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
body {
|
| 31 |
+
margin: 0;
|
| 32 |
+
font-family: var(--font-sans);
|
| 33 |
+
color: var(--text);
|
| 34 |
+
background:
|
| 35 |
+
radial-gradient(circle at top left, rgba(105, 195, 108, 0.08), transparent 22%),
|
| 36 |
+
radial-gradient(circle at top right, rgba(87, 200, 223, 0.12), transparent 20%),
|
| 37 |
+
linear-gradient(180deg, #fbfdfe 0%, #f6fbfd 100%);
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.health-page-shell,
|
| 41 |
+
.catalog-page-shell {
|
| 42 |
+
width: min(1560px, calc(100vw - 56px));
|
| 43 |
+
margin: 0 auto;
|
| 44 |
+
padding: 26px 0 44px;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.health-topbar,
|
| 48 |
+
.catalog-topbar,
|
| 49 |
+
.health-summary-grid,
|
| 50 |
+
.health-board-panel,
|
| 51 |
+
.catalog-summary-grid,
|
| 52 |
+
.catalog-filter-panel,
|
| 53 |
+
.catalog-board-panel,
|
| 54 |
+
.summary-card,
|
| 55 |
+
.provider-card {
|
| 56 |
+
background: var(--surface);
|
| 57 |
+
border: 1px solid var(--line);
|
| 58 |
+
box-shadow: var(--shadow);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.health-topbar,
|
| 62 |
+
.catalog-topbar,
|
| 63 |
+
.health-board-panel,
|
| 64 |
+
.catalog-filter-panel,
|
| 65 |
+
.catalog-board-panel {
|
| 66 |
+
border-radius: 28px;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.health-topbar,
|
| 70 |
+
.catalog-topbar {
|
| 71 |
+
display: flex;
|
| 72 |
+
justify-content: space-between;
|
| 73 |
+
align-items: flex-start;
|
| 74 |
+
gap: 20px;
|
| 75 |
+
padding: 26px 30px;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.health-topbar h1,
|
| 79 |
+
.catalog-topbar h1,
|
| 80 |
+
.board-header-row h2,
|
| 81 |
+
.health-row-copy h3,
|
| 82 |
+
.provider-card h3 {
|
| 83 |
+
font-family: var(--font-display);
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.health-topbar h1,
|
| 87 |
+
.catalog-topbar h1 {
|
| 88 |
+
margin: 12px 0 10px;
|
| 89 |
+
font-size: clamp(30px, 2.5vw, 44px);
|
| 90 |
+
line-height: 1.1;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.health-topbar p,
|
| 94 |
+
.catalog-topbar p,
|
| 95 |
+
.panel-hint,
|
| 96 |
+
.provider-card p,
|
| 97 |
+
.summary-card p,
|
| 98 |
+
.timeline-label,
|
| 99 |
+
.board-meta-box span {
|
| 100 |
+
color: var(--muted);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.topbar-actions {
|
| 104 |
+
display: flex;
|
| 105 |
+
gap: 14px;
|
| 106 |
+
align-items: center;
|
| 107 |
+
flex-wrap: wrap;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.mini-badge {
|
| 111 |
+
display: inline-flex;
|
| 112 |
+
align-items: center;
|
| 113 |
+
padding: 8px 14px;
|
| 114 |
+
border-radius: 999px;
|
| 115 |
+
background: rgba(87, 200, 223, 0.12);
|
| 116 |
+
color: var(--cyan-deep);
|
| 117 |
+
border: 1px solid rgba(87, 200, 223, 0.26);
|
| 118 |
+
font-size: 13px;
|
| 119 |
+
font-weight: 700;
|
| 120 |
+
letter-spacing: 0.05em;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
.mini-badge.subtle {
|
| 124 |
+
background: var(--surface-soft);
|
| 125 |
+
color: var(--muted);
|
| 126 |
+
border-color: var(--line);
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
.text-nav-link,
|
| 130 |
+
.refresh-link,
|
| 131 |
+
.provider-filter-btn {
|
| 132 |
+
appearance: none;
|
| 133 |
+
border: 1px solid var(--line-strong);
|
| 134 |
+
background: var(--surface);
|
| 135 |
+
color: var(--text);
|
| 136 |
+
text-decoration: none;
|
| 137 |
+
border-radius: 999px;
|
| 138 |
+
padding: 11px 16px;
|
| 139 |
+
font: inherit;
|
| 140 |
+
cursor: pointer;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
.text-nav-link:hover,
|
| 144 |
+
.refresh-link:hover,
|
| 145 |
+
.provider-filter-btn:hover {
|
| 146 |
+
border-color: var(--cyan);
|
| 147 |
+
color: var(--cyan-deep);
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.health-summary-grid,
|
| 151 |
+
.catalog-summary-grid {
|
| 152 |
+
margin-top: 18px;
|
| 153 |
+
display: grid;
|
| 154 |
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
| 155 |
+
gap: 16px;
|
| 156 |
+
background: transparent;
|
| 157 |
+
border: none;
|
| 158 |
+
box-shadow: none;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
.summary-card {
|
| 162 |
+
border-radius: 22px;
|
| 163 |
+
padding: 18px 20px;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.summary-card span {
|
| 167 |
+
display: block;
|
| 168 |
+
color: var(--muted);
|
| 169 |
+
font-size: 13px;
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
.summary-card strong {
|
| 173 |
+
display: block;
|
| 174 |
+
margin: 10px 0 8px;
|
| 175 |
+
font-family: var(--font-display);
|
| 176 |
+
font-size: 28px;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
.health-board-panel,
|
| 180 |
+
.catalog-filter-panel,
|
| 181 |
+
.catalog-board-panel {
|
| 182 |
+
margin-top: 18px;
|
| 183 |
+
padding: 26px 28px;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
.board-header-row {
|
| 187 |
+
display: flex;
|
| 188 |
+
justify-content: space-between;
|
| 189 |
+
align-items: flex-start;
|
| 190 |
+
gap: 18px;
|
| 191 |
+
flex-wrap: wrap;
|
| 192 |
+
margin-bottom: 18px;
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
.board-header-row h2 {
|
| 196 |
+
margin: 12px 0 0;
|
| 197 |
+
font-size: clamp(24px, 2vw, 34px);
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
.board-meta-box {
|
| 201 |
+
min-width: 200px;
|
| 202 |
+
padding: 14px 16px;
|
| 203 |
+
border-radius: 20px;
|
| 204 |
+
background: var(--surface-soft);
|
| 205 |
+
border: 1px solid var(--line);
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
.board-meta-box strong {
|
| 209 |
+
display: block;
|
| 210 |
+
margin-top: 8px;
|
| 211 |
+
font-family: var(--font-display);
|
| 212 |
+
font-size: 20px;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
.timeline-header {
|
| 216 |
+
display: grid;
|
| 217 |
+
grid-template-columns: 360px repeat(6, minmax(74px, 1fr));
|
| 218 |
+
gap: 12px;
|
| 219 |
+
align-items: center;
|
| 220 |
+
margin: 10px 0 12px;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
.timeline-label {
|
| 224 |
+
text-align: center;
|
| 225 |
+
font-size: 13px;
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
.timeline-left-placeholder {
|
| 229 |
+
text-align: left;
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
.health-list {
|
| 233 |
+
display: flex;
|
| 234 |
+
flex-direction: column;
|
| 235 |
+
gap: 16px;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
.health-row-card {
|
| 239 |
+
display: grid;
|
| 240 |
+
grid-template-columns: 360px minmax(0, 1fr);
|
| 241 |
+
gap: 18px;
|
| 242 |
+
align-items: center;
|
| 243 |
+
padding: 18px 0;
|
| 244 |
+
border-bottom: 1px solid var(--line);
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
.health-row-card:last-child {
|
| 248 |
+
border-bottom: none;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
.health-row-summary {
|
| 252 |
+
display: flex;
|
| 253 |
+
align-items: center;
|
| 254 |
+
gap: 16px;
|
| 255 |
+
min-width: 0;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.health-row-accent {
|
| 259 |
+
width: 22px;
|
| 260 |
+
min-width: 22px;
|
| 261 |
+
height: 92px;
|
| 262 |
+
border-radius: 999px;
|
| 263 |
+
background: var(--cyan);
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
.health-row-copy {
|
| 267 |
+
min-width: 0;
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
.health-row-copy h3 {
|
| 271 |
+
margin: 0;
|
| 272 |
+
font-size: 26px;
|
| 273 |
+
white-space: nowrap;
|
| 274 |
+
overflow: hidden;
|
| 275 |
+
text-overflow: ellipsis;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
.health-rate-pill {
|
| 279 |
+
display: inline-flex;
|
| 280 |
+
align-items: center;
|
| 281 |
+
margin-top: 12px;
|
| 282 |
+
padding: 9px 14px;
|
| 283 |
+
border-radius: 14px;
|
| 284 |
+
font-weight: 800;
|
| 285 |
+
font-size: 15px;
|
| 286 |
+
background: var(--surface-soft);
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.health-cells {
|
| 290 |
+
display: grid;
|
| 291 |
+
grid-template-columns: repeat(6, minmax(74px, 1fr));
|
| 292 |
+
gap: 12px;
|
| 293 |
+
align-items: center;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.health-cell {
|
| 297 |
+
width: 100%;
|
| 298 |
+
aspect-ratio: 1 / 1;
|
| 299 |
+
border-radius: 14px;
|
| 300 |
+
border: 4px solid transparent;
|
| 301 |
+
background: var(--surface-muted);
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
.cell-cyan {
|
| 305 |
+
border-color: var(--cyan);
|
| 306 |
+
background: rgba(87, 200, 223, 0.12);
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
.cell-green {
|
| 310 |
+
border-color: var(--green);
|
| 311 |
+
background: rgba(105, 195, 108, 0.1);
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
.cell-orange {
|
| 315 |
+
border-color: var(--orange);
|
| 316 |
+
background: rgba(240, 174, 70, 0.1);
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
.cell-red {
|
| 320 |
+
border-color: var(--red);
|
| 321 |
+
background: rgba(240, 109, 111, 0.1);
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
.cell-empty {
|
| 325 |
+
border-color: transparent;
|
| 326 |
+
background: var(--surface-muted);
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
.status-cyan,
|
| 330 |
+
.status-cyan.health-row-accent {
|
| 331 |
+
color: var(--cyan-deep);
|
| 332 |
+
background-color: var(--cyan);
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
.status-green,
|
| 336 |
+
.status-green.health-row-accent {
|
| 337 |
+
color: var(--green);
|
| 338 |
+
background-color: var(--green);
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
.status-orange,
|
| 342 |
+
.status-orange.health-row-accent {
|
| 343 |
+
color: var(--orange);
|
| 344 |
+
background-color: var(--orange);
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
.status-red,
|
| 348 |
+
.status-red.health-row-accent {
|
| 349 |
+
color: var(--red);
|
| 350 |
+
background-color: var(--red);
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
.health-rate-pill.status-cyan { color: var(--cyan-deep); background: rgba(87, 200, 223, 0.14); }
|
| 354 |
+
.health-rate-pill.status-green { color: var(--green); background: rgba(105, 195, 108, 0.14); }
|
| 355 |
+
.health-rate-pill.status-orange { color: var(--orange); background: rgba(240, 174, 70, 0.14); }
|
| 356 |
+
.health-rate-pill.status-red { color: var(--red); background: rgba(240, 109, 111, 0.14); }
|
| 357 |
+
|
| 358 |
+
.provider-filter-panel {
|
| 359 |
+
display: flex;
|
| 360 |
+
justify-content: space-between;
|
| 361 |
+
align-items: center;
|
| 362 |
+
gap: 18px;
|
| 363 |
+
flex-wrap: wrap;
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
.provider-filter-panel h2 {
|
| 367 |
+
margin: 12px 0 0;
|
| 368 |
+
font-family: var(--font-display);
|
| 369 |
+
font-size: clamp(22px, 2vw, 30px);
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
.provider-filter-bar {
|
| 373 |
+
display: flex;
|
| 374 |
+
gap: 10px;
|
| 375 |
+
flex-wrap: wrap;
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
.provider-filter-btn.active {
|
| 379 |
+
background: rgba(87, 200, 223, 0.12);
|
| 380 |
+
border-color: rgba(87, 200, 223, 0.3);
|
| 381 |
+
color: var(--cyan-deep);
|
| 382 |
+
font-weight: 700;
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
+
.provider-grid {
|
| 386 |
+
display: grid;
|
| 387 |
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
| 388 |
+
gap: 18px;
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
.provider-card {
|
| 392 |
+
border-radius: 24px;
|
| 393 |
+
padding: 20px;
|
| 394 |
+
display: flex;
|
| 395 |
+
flex-direction: column;
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
.provider-card-fixed {
|
| 399 |
+
height: 320px;
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
.provider-card-head {
|
| 403 |
+
display: flex;
|
| 404 |
+
justify-content: space-between;
|
| 405 |
+
align-items: flex-start;
|
| 406 |
+
gap: 12px;
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
.provider-card h3 {
|
| 410 |
+
margin: 0;
|
| 411 |
+
font-size: 24px;
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
.provider-card p {
|
| 415 |
+
margin: 10px 0 0;
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
.provider-model-list {
|
| 419 |
+
margin-top: 18px;
|
| 420 |
+
display: flex;
|
| 421 |
+
flex-direction: column;
|
| 422 |
+
gap: 10px;
|
| 423 |
+
overflow-y: auto;
|
| 424 |
+
padding-right: 4px;
|
| 425 |
+
}
|
| 426 |
+
|
| 427 |
+
.provider-model-chip {
|
| 428 |
+
display: block;
|
| 429 |
+
padding: 11px 14px;
|
| 430 |
+
border-radius: 16px;
|
| 431 |
+
background: var(--surface-soft);
|
| 432 |
+
border: 1px solid var(--line);
|
| 433 |
+
font-family: var(--font-display);
|
| 434 |
+
font-size: 13px;
|
| 435 |
+
color: var(--text);
|
| 436 |
+
white-space: nowrap;
|
| 437 |
+
overflow: hidden;
|
| 438 |
+
text-overflow: ellipsis;
|
| 439 |
+
}
|
| 440 |
+
|
| 441 |
+
.panel-hint {
|
| 442 |
+
margin-top: 16px;
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
@media (max-width: 1200px) {
|
| 446 |
+
.timeline-header,
|
| 447 |
+
.health-row-card,
|
| 448 |
+
.health-cells {
|
| 449 |
+
grid-template-columns: 260px repeat(12, minmax(26px, 1fr));
|
| 450 |
+
}
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
@media (max-width: 980px) {
|
| 454 |
+
.health-page-shell,
|
| 455 |
+
.catalog-page-shell {
|
| 456 |
+
width: min(100vw - 24px, 1560px);
|
| 457 |
+
}
|
| 458 |
+
|
| 459 |
+
.health-summary-grid,
|
| 460 |
+
.catalog-summary-grid {
|
| 461 |
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
| 462 |
+
}
|
| 463 |
+
|
| 464 |
+
.timeline-header {
|
| 465 |
+
display: none;
|
| 466 |
+
}
|
| 467 |
+
|
| 468 |
+
.health-row-card {
|
| 469 |
+
grid-template-columns: 1fr;
|
| 470 |
+
gap: 14px;
|
| 471 |
+
padding: 18px;
|
| 472 |
+
border: 1px solid var(--line);
|
| 473 |
+
border-radius: 24px;
|
| 474 |
+
background: var(--surface);
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
.health-cells {
|
| 478 |
+
grid-template-columns: repeat(6, minmax(40px, 1fr));
|
| 479 |
+
}
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
@media (max-width: 720px) {
|
| 483 |
+
.health-topbar,
|
| 484 |
+
.catalog-topbar,
|
| 485 |
+
.health-board-panel,
|
| 486 |
+
.catalog-filter-panel,
|
| 487 |
+
.catalog-board-panel {
|
| 488 |
+
padding: 20px;
|
| 489 |
+
}
|
| 490 |
+
|
| 491 |
+
.health-summary-grid,
|
| 492 |
+
.catalog-summary-grid,
|
| 493 |
+
.provider-grid {
|
| 494 |
+
grid-template-columns: 1fr;
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
.topbar-actions,
|
| 498 |
+
.provider-filter-bar {
|
| 499 |
+
width: 100%;
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
.text-nav-link,
|
| 503 |
+
.refresh-link,
|
| 504 |
+
.provider-filter-btn {
|
| 505 |
+
width: 100%;
|
| 506 |
+
text-align: center;
|
| 507 |
+
}
|
| 508 |
+
|
| 509 |
+
.health-row-summary {
|
| 510 |
+
align-items: flex-start;
|
| 511 |
+
}
|
| 512 |
+
|
| 513 |
+
.health-row-accent {
|
| 514 |
+
height: 72px;
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
.health-row-copy h3 {
|
| 518 |
+
font-size: 22px;
|
| 519 |
+
}
|
| 520 |
+
|
| 521 |
+
.health-cells {
|
| 522 |
+
grid-template-columns: repeat(3, minmax(54px, 1fr));
|
| 523 |
+
}
|
| 524 |
}
|