Files
HSAP/platform/web/src/styles/main.css
Chengfang Lu 7c43b44c57 feat: initial HSAP platform
Huaxu Sentinel Active Safety Platform with embedded algorithm code,
Docker Compose setup, and vendored dataset scaffolds for clone-and-run.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 16:59:59 +08:00

2040 lines
37 KiB
CSS

/* 广东华胥智能技术 · 主动安全算法迭代平台 */
:root {
--bg-base: #070b12;
--bg-elevated: #0f1623;
--bg-card: #141c2b;
--bg-hover: #1a2438;
--border: rgba(148, 163, 184, 0.12);
--border-strong: rgba(148, 163, 184, 0.22);
--text: #e8edf5;
--text-muted: #8b9cb3;
--text-dim: #5c6d85;
--accent: #22d3ee;
--accent-dim: rgba(34, 211, 238, 0.15);
--accent-strong: #0ea5e9;
--success: #34d399;
--success-dim: rgba(52, 211, 153, 0.12);
--warning: #fbbf24;
--warning-dim: rgba(251, 191, 36, 0.12);
--danger: #f87171;
--danger-dim: rgba(248, 113, 113, 0.12);
--purple: #a78bfa;
--sidebar-w: 260px;
--topbar-h: 72px;
--radius: 12px;
--radius-sm: 8px;
--shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
--font: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
--font-mono: ui-monospace, "Cascadia Code", "SF Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html {
font-size: 15px;
-webkit-font-smoothing: antialiased;
}
body {
margin: 0;
font-family: var(--font);
background: var(--bg-base);
color: var(--text);
line-height: 1.5;
min-height: 100vh;
}
body::before {
content: "";
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 80% 50% at 20% -10%, rgba(14, 165, 233, 0.12), transparent),
radial-gradient(ellipse 60% 40% at 90% 100%, rgba(6, 182, 212, 0.08), transparent);
pointer-events: none;
z-index: 0;
}
.app {
display: flex;
min-height: 100vh;
position: relative;
z-index: 1;
}
/* Sidebar */
.sidebar {
width: var(--sidebar-w);
flex-shrink: 0;
background: var(--bg-elevated);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
position: sticky;
top: 0;
height: 100vh;
z-index: 100;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
padding: 20px 18px;
border-bottom: 1px solid var(--border);
}
.brand-logo svg {
width: 40px;
height: 40px;
display: block;
}
.brand-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.brand-company {
font-size: 0.8rem;
font-weight: 600;
color: var(--text);
letter-spacing: 0.02em;
}
.brand-product {
font-size: 0.68rem;
color: var(--text-muted);
line-height: 1.3;
}
.nav {
flex: 1;
padding: 12px 10px;
display: flex;
flex-direction: column;
gap: 2px;
overflow-y: auto;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: var(--radius-sm);
color: var(--text-muted);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: background 0.15s, color 0.15s;
}
.nav-item:hover {
background: var(--bg-hover);
color: var(--text);
}
.nav-item.active {
background: var(--accent-dim);
color: var(--accent);
}
.nav-icon {
width: 18px;
text-align: center;
font-size: 0.75rem;
opacity: 0.85;
}
.nav-badge {
margin-left: auto;
font-size: 0.7rem;
font-weight: 600;
background: var(--warning-dim);
color: var(--warning);
padding: 2px 7px;
border-radius: 99px;
}
.sidebar-footer {
padding: 14px 18px;
border-top: 1px solid var(--border);
}
.env-chip {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 0.75rem;
color: var(--text-muted);
background: var(--bg-card);
padding: 6px 10px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.env-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--success);
box-shadow: 0 0 8px var(--success);
}
.sidebar-meta {
margin: 8px 0 0;
font-size: 0.68rem;
color: var(--text-dim);
}
/* Main */
.main-wrap {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.topbar {
height: var(--topbar-h);
flex-shrink: 0;
display: flex;
align-items: center;
gap: 16px;
padding: 0 28px;
border-bottom: 1px solid var(--border);
background: rgba(15, 22, 35, 0.85);
backdrop-filter: blur(12px);
position: sticky;
top: 0;
z-index: 50;
}
.menu-toggle {
display: none;
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text);
width: 40px;
height: 40px;
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 1.1rem;
}
.topbar-title h1 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
}
.topbar-title p {
margin: 2px 0 0;
font-size: 0.78rem;
color: var(--text-muted);
}
.topbar-actions {
margin-left: auto;
display: flex;
gap: 10px;
}
.content {
flex: 1;
padding: 24px 28px 40px;
overflow-x: hidden;
}
/* Buttons */
.btn {
font-family: inherit;
font-size: 0.85rem;
font-weight: 500;
padding: 8px 16px;
border-radius: var(--radius-sm);
border: 1px solid transparent;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
background: linear-gradient(135deg, var(--accent-strong), #06b6d4);
color: #042f2e;
border-color: rgba(34, 211, 238, 0.4);
}
.btn-primary:hover {
filter: brightness(1.08);
}
.btn-ghost {
background: transparent;
color: var(--text-muted);
border-color: var(--border);
}
.btn-ghost:hover {
background: var(--bg-hover);
color: var(--text);
}
.btn-sm {
padding: 5px 10px;
font-size: 0.78rem;
}
.btn-success {
background: var(--success-dim);
color: var(--success);
border-color: rgba(52, 211, 153, 0.3);
}
.btn-warning {
background: var(--warning-dim);
color: var(--warning);
border-color: rgba(251, 191, 36, 0.3);
}
.btn-danger {
background: var(--danger-dim);
color: var(--danger);
border-color: rgba(248, 113, 113, 0.3);
}
/* Grid & cards */
.grid-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px 20px;
position: relative;
overflow: hidden;
}
.stat-card::after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 80px;
height: 80px;
background: var(--accent-dim);
border-radius: 50%;
transform: translate(30%, -40%);
opacity: 0.5;
}
.stat-label {
font-size: 0.78rem;
color: var(--text-muted);
margin-bottom: 6px;
}
.stat-value {
font-size: 1.75rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.stat-delta {
font-size: 0.72rem;
margin-top: 6px;
color: var(--text-dim);
}
.stat-delta.up { color: var(--success); }
.stat-delta.warn { color: var(--warning); }
.panel {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 20px;
overflow: hidden;
}
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 1px solid var(--border);
}
.panel-header h2 {
margin: 0;
font-size: 0.95rem;
font-weight: 600;
}
.panel-body {
padding: 16px 20px;
}
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
/* Pipeline flow */
.pipeline-flow {
display: flex;
align-items: center;
gap: 0;
flex-wrap: wrap;
padding: 8px 0;
}
.pipeline-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
min-width: 100px;
}
.pipeline-node {
width: 44px;
height: 44px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
font-weight: 600;
background: var(--bg-hover);
border: 2px solid var(--border-strong);
color: var(--text-muted);
}
.pipeline-step.done .pipeline-node {
background: var(--success-dim);
border-color: var(--success);
color: var(--success);
}
.pipeline-step.active .pipeline-node {
background: var(--accent-dim);
border-color: var(--accent);
color: var(--accent);
box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}
.pipeline-label {
font-size: 0.72rem;
color: var(--text-muted);
text-align: center;
}
.pipeline-arrow {
color: var(--text-dim);
font-size: 1.2rem;
padding: 0 4px 20px;
}
/* Tables */
.table-wrap {
overflow-x: auto;
}
table.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.data-table th,
.data-table td {
text-align: left;
padding: 12px 14px;
border-bottom: 1px solid var(--border);
}
.data-table th {
font-size: 0.72rem;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td {
background: var(--bg-hover);
}
/* Badges */
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 0.72rem;
font-weight: 500;
padding: 3px 9px;
border-radius: 99px;
white-space: nowrap;
}
.badge-pending { background: var(--warning-dim); color: var(--warning); }
.badge-ingested { background: rgba(167, 139, 250, 0.15); color: var(--purple); }
.badge-staged { background: var(--accent-dim); color: var(--accent); }
.badge-training { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-evaluated { background: var(--success-dim); color: var(--success); }
.badge-promoted { background: var(--success-dim); color: var(--success); }
.badge-idle { background: var(--bg-hover); color: var(--text-dim); }
/* Task cards */
.task-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
.task-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px;
transition: border-color 0.15s, box-shadow 0.15s;
}
.task-card:hover {
border-color: var(--border-strong);
box-shadow: var(--shadow);
}
.task-card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 12px;
}
.task-name {
font-size: 1rem;
font-weight: 600;
font-family: var(--font-mono);
}
.task-type {
font-size: 0.7rem;
color: var(--text-dim);
margin-top: 2px;
}
.task-meta {
font-size: 0.78rem;
color: var(--text-muted);
margin: 10px 0;
line-height: 1.6;
}
.task-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
/* Pack toggles */
.pack-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.pack-row {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
background: var(--bg-hover);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.pack-row.active-pack {
border-color: rgba(34, 211, 238, 0.35);
background: var(--accent-dim);
}
.pack-info { flex: 1; min-width: 0; }
.pack-name {
font-weight: 600;
font-family: var(--font-mono);
font-size: 0.9rem;
}
.pack-path {
font-size: 0.72rem;
color: var(--text-dim);
margin-top: 2px;
}
.toggle {
position: relative;
width: 44px;
height: 24px;
flex-shrink: 0;
}
.toggle input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
inset: 0;
background: var(--bg-base);
border-radius: 99px;
border: 1px solid var(--border-strong);
cursor: pointer;
transition: background 0.2s;
}
.toggle-slider::before {
content: "";
position: absolute;
width: 18px;
height: 18px;
left: 2px;
top: 2px;
background: var(--text-muted);
border-radius: 50%;
transition: transform 0.2s, background 0.2s;
}
.toggle input:checked + .toggle-slider {
background: var(--accent-dim);
border-color: var(--accent);
}
.toggle input:checked + .toggle-slider::before {
transform: translateX(20px);
background: var(--accent);
}
/* Model version */
.version-card {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
}
.version-slot {
padding: 16px;
background: var(--bg-hover);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.version-slot h3 {
margin: 0 0 8px;
font-size: 0.72rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.version-path {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--accent);
word-break: break-all;
}
.version-metrics {
margin-top: 10px;
font-size: 0.8rem;
color: var(--text-muted);
}
/* Log timeline */
.log-list {
display: flex;
flex-direction: column;
gap: 0;
}
.log-entry {
display: grid;
grid-template-columns: 140px 100px 1fr;
gap: 16px;
padding: 12px 0;
border-bottom: 1px solid var(--border);
font-size: 0.82rem;
}
.log-entry:last-child { border-bottom: none; }
.log-time { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.75rem; }
.log-type { font-weight: 500; }
.log-type.ingest { color: var(--purple); }
.log-type.eval { color: var(--success); }
.log-type.train { color: #60a5fa; }
/* Progress bar */
.progress-bar {
height: 6px;
background: var(--bg-base);
border-radius: 99px;
overflow: hidden;
margin-top: 8px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent-strong), var(--accent));
border-radius: 99px;
transition: width 0.4s ease;
}
.job-card {
padding: 14px 16px;
border-bottom: 1px solid var(--border);
}
.job-card:last-child { border-bottom: none; }
.job-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.job-title {
font-weight: 600;
font-family: var(--font-mono);
font-size: 0.88rem;
}
/* Toast */
.toast-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
}
.toast {
padding: 12px 18px;
background: var(--bg-elevated);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
box-shadow: var(--shadow);
font-size: 0.85rem;
animation: toast-in 0.3s ease;
max-width: 360px;
}
@keyframes toast-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
/* Modal */
.modal {
border: none;
padding: 0;
background: transparent;
max-width: 480px;
width: calc(100% - 32px);
}
.modal::backdrop {
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(4px);
}
.modal-inner {
background: var(--bg-card);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
box-shadow: var(--shadow);
margin: 0;
padding: 0;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 20px;
border-bottom: 1px solid var(--border);
}
.modal-header h2 {
margin: 0;
font-size: 1rem;
}
.modal-close {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.4rem;
cursor: pointer;
line-height: 1;
padding: 4px;
}
.modal-body { padding: 20px; }
.modal-hint {
font-size: 0.78rem;
color: var(--text-dim);
margin: 0 0 16px;
}
.modal-hint code {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--accent);
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 14px 20px;
border-top: 1px solid var(--border);
}
.field {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 14px;
}
.field span {
font-size: 0.78rem;
color: var(--text-muted);
}
.field select {
font-family: inherit;
font-size: 0.88rem;
padding: 8px 12px;
background: var(--bg-base);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
}
.field input {
font-family: inherit;
font-size: 0.88rem;
padding: 8px 12px;
background: var(--bg-base);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
}
.checkbox-field {
flex-direction: row;
align-items: center;
gap: 10px;
}
.checkbox-field input { accent-color: var(--accent); }
.empty-state {
text-align: center;
padding: 40px 20px;
color: var(--text-dim);
font-size: 0.88rem;
}
/* KPI strip */
.kpi-strip {
display: flex;
gap: 12px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.kpi {
flex: 1;
min-width: 120px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 14px 16px;
text-align: center;
}
.kpi-val {
display: block;
font-size: 1.5rem;
font-weight: 700;
color: var(--accent);
}
.kpi-lbl {
font-size: 0.72rem;
color: var(--text-muted);
}
/* Labeling three-column */
.labeling-layout {
display: grid;
grid-template-columns: 100px 220px 1fr;
gap: 16px;
min-height: 480px;
}
.labeling-col {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.col-title {
font-size: 0.7rem;
font-weight: 600;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 10px;
}
.proj-btn {
display: block;
width: 100%;
margin-bottom: 6px;
padding: 10px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-hover);
color: var(--text-muted);
font-family: inherit;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.proj-btn.active {
background: var(--accent-dim);
border-color: rgba(34, 211, 238, 0.35);
color: var(--accent);
}
.task-nav-list {
overflow-y: auto;
flex: 1;
display: flex;
flex-direction: column;
gap: 6px;
}
.task-nav-item {
text-align: left;
padding: 10px;
border: 1px solid transparent;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text);
font-family: inherit;
cursor: pointer;
transition: background 0.15s;
}
.task-nav-item:hover { background: var(--bg-hover); }
.task-nav-item.active {
background: var(--accent-dim);
border-color: rgba(34, 211, 238, 0.3);
}
.task-nav-name {
display: block;
font-weight: 600;
font-family: var(--font-mono);
font-size: 0.88rem;
}
.task-nav-meta, .task-nav-counts {
display: block;
font-size: 0.68rem;
color: var(--text-dim);
margin-top: 2px;
}
.labeling-main { padding: 0; background: transparent; border: none; overflow: visible; }
.grid-2-equal {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 16px;
}
.panel-compact { margin-top: 0; }
.row-active td { background: var(--accent-dim) !important; }
.batch-detail-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.batch-detail-header h3 {
margin: 0;
font-family: var(--font-mono);
font-size: 1rem;
}
.batch-hint {
font-size: 0.78rem;
color: var(--text-muted);
margin: 0 0 12px;
}
.detail-dl {
margin: 0 0 14px;
font-size: 0.82rem;
}
.detail-dl dt {
color: var(--text-dim);
font-size: 0.7rem;
margin-top: 8px;
}
.detail-dl dd {
margin: 2px 0 0;
}
.path-dd { word-break: break-all; font-size: 0.72rem; }
.cli-box {
display: flex;
align-items: flex-start;
gap: 8px;
background: var(--bg-base);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px;
margin-bottom: 12px;
}
.cli-box code {
flex: 1;
font-size: 0.72rem;
color: var(--accent);
word-break: break-all;
}
.batch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.drop-guide { font-size: 0.82rem; color: var(--text-muted); }
.drop-block {
margin-bottom: 16px;
padding-bottom: 16px;
border-bottom: 1px solid var(--border);
}
.drop-block h4 { margin: 0 0 8px; font-size: 0.88rem; }
.drop-block .mono { font-size: 0.72rem; color: var(--accent); word-break: break-all; }
.drop-note { font-size: 0.75rem; color: var(--text-dim); margin: 0; }
.catalog-intro { margin: 0 0 16px; color: var(--text-muted); font-size: 0.88rem; }
.section-label {
font-size: 0.78rem;
color: var(--text-dim);
margin: 20px 0 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.catalog-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 14px;
}
.catalog-card {
background: var(--bg-hover);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 14px;
}
.catalog-card h3 { margin: 0 0 8px; font-size: 0.95rem; }
.class-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.class-chip {
font-size: 0.68rem;
padding: 2px 8px;
background: var(--bg-base);
border-radius: 99px;
color: var(--text-muted);
}
.catalog-toolbar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}
.version-table {
border: 1px solid var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
}
.dist-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.dist-row {
background: var(--bg-hover);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px;
}
.dist-meta {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-bottom: 6px;
font-size: 0.8rem;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.feature-card {
border: 1px solid var(--border);
background: var(--bg-hover);
border-radius: var(--radius-sm);
padding: 10px;
}
.feature-card h4 {
margin: 0 0 10px;
font-size: 0.78rem;
color: var(--text-muted);
}
.donut-wrap {
display: grid;
grid-template-columns: 150px 1fr;
gap: 10px;
align-items: center;
}
.donut-svg {
width: 150px;
height: 150px;
}
.donut-center-title {
fill: var(--text);
font-size: 12px;
font-weight: 600;
}
.donut-center-sub {
fill: var(--text-dim);
font-size: 10px;
}
.donut-legend {
display: flex;
flex-direction: column;
gap: 6px;
}
.legend-item {
display: grid;
grid-template-columns: 10px 1fr auto;
align-items: center;
gap: 8px;
font-size: 0.72rem;
}
.legend-item i {
width: 10px;
height: 10px;
border-radius: 2px;
display: inline-block;
}
.legend-item span {
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.scatter-svg {
width: 100%;
height: 170px;
display: block;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: rgba(7, 11, 18, 0.5);
}
.scatter-label {
fill: var(--text-muted);
font-size: 9px;
}
.scatter-axis {
fill: var(--text-dim);
font-size: 10px;
}
.radar-wrap {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
align-items: center;
}
.radar-svg {
width: 100%;
max-width: 220px;
height: auto;
display: block;
}
.radar-axis {
fill: var(--text-dim);
font-size: 9px;
text-anchor: middle;
dominant-baseline: middle;
}
.spark-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.spark-row {
display: grid;
grid-template-columns: 70px 1fr 56px;
gap: 8px;
align-items: center;
font-size: 0.72rem;
}
.spark-row span {
color: var(--text-muted);
font-family: var(--font-mono);
}
.spark-row strong {
text-align: right;
color: var(--text);
}
.crud-form {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px 12px;
}
.crud-actions {
grid-column: 1 / -1;
display: flex;
gap: 8px;
margin-top: 2px;
}
.data-table.compact th, .data-table.compact td { padding: 8px 10px; }
.text-dim { color: var(--text-dim); font-size: 0.78rem; }
.text-sm { font-size: 0.78rem; }
.mono { font-family: var(--font-mono); }
.cli-list .cli-box { margin-bottom: 8px; }
.toast-err { border-color: var(--danger); color: var(--danger); }
.audit-note {
font-size: 0.72rem;
color: var(--text-dim);
margin: 12px 0 0;
}
.audit-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.audit-row-clickable { cursor: pointer; }
.audit-row-clickable:hover { background: var(--bg-hover); }
.audit-detail-head { margin-bottom: 14px; }
.audit-detail-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.audit-detail-title { margin: 0 0 4px; font-size: 1.1rem; }
.audit-detail-meta { margin: 0 0 8px; }
.audit-scope-label { margin: 0 0 10px; color: var(--accent); font-size: 0.88rem; }
.audit-batch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.audit-batch-tag {
font-size: 0.72rem;
padding: 3px 8px;
border-radius: 99px;
border: 1px solid var(--border);
background: var(--bg-hover);
font-family: var(--font-mono);
}
.audit-batch-tag.missing { border-color: var(--danger); color: var(--danger); }
.audit-detail-actions { display: flex; gap: 8px; margin-top: 12px; }
.audit-gallery-toolbar { display: flex; align-items: center; gap: 12px; }
.audit-batch-select {
font-family: inherit;
padding: 4px 8px;
background: var(--bg-base);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
font-size: 0.78rem;
}
.audit-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}
.audit-gallery-item {
display: flex;
flex-direction: column;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-hover);
overflow: hidden;
padding: 0;
cursor: pointer;
text-align: left;
color: inherit;
}
.audit-gallery-item:hover { border-color: var(--border-strong); }
.audit-gallery-item.no-label { border-color: rgba(248, 113, 113, 0.45); }
.audit-gallery-img {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
background: var(--bg-base);
display: block;
}
.audit-img-placeholder {
width: 100%;
aspect-ratio: 4 / 3;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-base);
color: var(--text-dim);
font-size: 0.75rem;
}
.audit-img-loading { animation: pulse 1.2s ease-in-out infinite; }
.audit-gallery-cap {
padding: 8px 10px;
display: flex;
flex-direction: column;
gap: 2px;
font-size: 0.68rem;
color: var(--text-dim);
}
.audit-gallery-cap .mono {
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.audit-sentinel { height: 1px; }
.audit-lightbox {
position: fixed;
inset: 0;
z-index: 100;
background: rgba(4, 8, 14, 0.88);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.audit-lightbox-inner {
position: relative;
max-width: min(96vw, 1280px);
max-height: 92vh;
display: flex;
flex-direction: column;
gap: 10px;
}
.audit-lightbox-close { align-self: flex-end; }
.audit-lightbox-img {
max-width: 100%;
max-height: calc(92vh - 80px);
object-fit: contain;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.audit-lightbox-meta {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 0.82rem;
color: var(--text-muted);
}
.audit-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.params-pre {
margin: 0;
font-family: var(--font-mono);
font-size: 0.68rem;
white-space: pre-wrap;
max-width: 200px;
}
.milestone-layout {
display: grid;
grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.2fr);
gap: 14px;
}
.milestone-track {
display: flex;
flex-direction: column;
gap: 10px;
max-height: 540px;
overflow-y: auto;
padding-right: 4px;
}
.milestone-node {
display: grid;
grid-template-columns: 16px 1fr;
gap: 10px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-hover);
color: var(--text);
text-align: left;
padding: 10px 12px;
cursor: pointer;
}
.milestone-node:hover {
border-color: var(--border-strong);
}
.milestone-node.active {
border-color: rgba(34, 211, 238, 0.35);
background: var(--accent-dim);
}
.milestone-dot {
width: 12px;
height: 12px;
border-radius: 50%;
margin-top: 4px;
background: var(--accent);
box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}
.milestone-title {
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 2px;
}
.milestone-sub {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.72rem;
color: var(--text-dim);
margin-top: 4px;
}
.milestone-detail {
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-hover);
padding: 12px 14px;
min-height: 280px;
}
.milestone-detail-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.milestone-detail-head h3 {
margin: 0;
font-size: 0.95rem;
}
.milestone-detail .params-pre {
max-width: none;
padding: 8px;
background: rgba(7, 11, 18, 0.55);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-size: 0.72rem;
}
.milestone-result {
max-height: 220px;
overflow: auto;
}
.inline-field {
flex-direction: row;
align-items: center;
gap: 12px;
}
.inline-field input {
font-family: inherit;
padding: 8px 12px;
background: var(--bg-base);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
min-width: 160px;
}
/* Responsive */
@media (max-width: 1100px) {
.labeling-layout { grid-template-columns: 1fr; }
.grid-2-equal { grid-template-columns: 1fr; }
.grid-stats { grid-template-columns: repeat(2, 1fr); }
.grid-2 { grid-template-columns: 1fr; }
.version-card { grid-template-columns: 1fr; }
.crud-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: 1fr; }
.donut-wrap { grid-template-columns: 1fr; }
.radar-wrap { grid-template-columns: 1fr; }
.milestone-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: 0;
transform: translateX(-100%);
transition: transform 0.25s ease;
box-shadow: var(--shadow);
}
.sidebar.open { transform: translateX(0); }
.menu-toggle { display: block; }
.topbar { padding: 0 16px; }
.content { padding: 16px; }
.grid-stats { grid-template-columns: 1fr; }
.crud-form { grid-template-columns: 1fr; }
.log-entry {
grid-template-columns: 1fr;
gap: 4px;
}
}
/* Login & user */
.login-page {
min-height: 100vh;
padding: 28px;
}
.login-top-nav {
max-width: 1180px;
margin: 0 auto 14px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 10px 4px;
}
.login-top-brand {
display: flex;
align-items: center;
gap: 8px;
color: var(--text);
font-size: 0.86rem;
}
.login-top-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}
.login-top-links {
display: flex;
gap: 16px;
margin-left: auto;
}
.login-top-links a {
color: var(--text-dim);
text-decoration: none;
font-size: 0.78rem;
}
.login-top-links a:hover {
color: var(--text);
}
.login-support-btn {
white-space: nowrap;
text-decoration: none;
}
.login-shell {
max-width: 1180px;
margin: 0 auto;
min-height: calc(100vh - 56px);
display: grid;
grid-template-columns: 1.25fr 0.9fr;
gap: 20px;
align-items: stretch;
}
.login-shell.simple {
max-width: 520px;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.login-hero {
padding: 42px 38px;
border: 1px solid var(--border);
border-radius: var(--radius);
background:
linear-gradient(135deg, rgba(20, 28, 43, 0.98) 0%, rgba(13, 18, 30, 0.95) 70%),
radial-gradient(circle at 85% -15%, rgba(34, 211, 238, 0.22), transparent 42%),
radial-gradient(circle at -10% 120%, rgba(99, 102, 241, 0.16), transparent 48%),
var(--bg-card);
}
.login-kicker {
display: inline-block;
font-size: 0.76rem;
color: var(--accent);
background: var(--accent-dim);
border: 1px solid rgba(34, 211, 238, 0.25);
border-radius: 99px;
padding: 4px 10px;
margin-bottom: 14px;
}
.login-hero h1 {
margin: 0 0 12px;
font-size: 2rem;
line-height: 1.25;
}
.login-hero > p {
margin: 0 0 24px;
color: var(--text-muted);
max-width: 56ch;
}
.login-metrics {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin-bottom: 16px;
}
.login-metric {
padding: 12px 10px;
border-radius: 10px;
border: 1px solid var(--border);
background: rgba(7, 11, 18, 0.45);
display: flex;
flex-direction: column;
gap: 2px;
}
.login-metric strong {
font-size: 1rem;
color: #dbeafe;
letter-spacing: 0.01em;
}
.login-metric span {
font-size: 0.68rem;
color: var(--text-dim);
}
.login-feature-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.login-feature-card {
background: rgba(20, 28, 43, 0.78);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 14px;
}
.login-feature-card h3 {
margin: 0 0 6px;
font-size: 0.92rem;
}
.login-feature-card p {
margin: 0;
color: var(--text-dim);
font-size: 0.78rem;
line-height: 1.5;
}
.login-process {
margin-top: 18px;
padding: 10px 12px;
border: 1px dashed var(--border);
border-radius: var(--radius-sm);
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
color: var(--text-muted);
font-size: 0.76rem;
}
.login-process i {
color: var(--text-dim);
font-style: normal;
}
.login-card {
align-self: center;
width: 100%;
max-width: 460px;
justify-self: center;
padding: 34px 30px;
text-align: left;
}
.login-card h2 {
font-size: 1.35rem;
margin: 0 0 6px;
}
.btn-feishu {
width: 100%;
margin-top: 18px;
background: linear-gradient(135deg, #3b82f6, #2563eb);
border-color: rgba(59, 130, 246, 0.6);
color: #fff;
font-weight: 600;
padding: 10px 16px;
}
.dev-login {
margin-top: 24px;
padding-top: 24px;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 10px;
}
.dev-login input {
padding: 10px 12px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--bg-base);
color: var(--text);
}
.login-err {
color: var(--danger);
margin-top: 12px;
font-size: 0.9rem;
}
.login-help {
margin-top: 16px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-hover);
color: var(--text-muted);
font-size: 0.75rem;
display: flex;
flex-direction: column;
gap: 4px;
}
.login-help code {
font-family: var(--font-mono);
color: var(--accent);
font-size: 0.7rem;
}
.login-compliance {
margin-top: 14px;
padding-top: 12px;
border-top: 1px dashed var(--border);
color: var(--text-dim);
font-size: 0.7rem;
line-height: 1.5;
text-align: right;
}
.login-cases {
max-width: 1180px;
margin: 14px auto 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.login-case-item {
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: rgba(20, 28, 43, 0.7);
padding: 12px;
display: flex;
flex-direction: column;
gap: 5px;
}
.login-case-item strong {
font-size: 0.82rem;
}
.login-case-item span {
color: var(--text-dim);
font-size: 0.72rem;
}
.runtime-status {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 4;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: rgba(15, 22, 35, 0.92);
backdrop-filter: blur(6px);
padding: 10px 12px;
min-width: 150px;
box-shadow: var(--shadow);
}
.runtime-status h4 {
margin: 0 0 8px;
font-size: 0.72rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.runtime-status div {
display: flex;
align-items: center;
gap: 7px;
font-size: 0.78rem;
margin: 4px 0;
}
.runtime-status i {
width: 7px;
height: 7px;
border-radius: 50%;
display: inline-block;
}
.runtime-status i.ok {
background: var(--success);
}
.runtime-status i.bad {
background: var(--danger);
}
/* Scroll reveal (lightweight) */
.reveal-on-scroll {
opacity: 0;
transform: translateY(10px);
transition: opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
will-change: opacity, transform;
}
.reveal-on-scroll.in-view {
opacity: 1;
transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 40ms; }
.reveal-delay-2 { transition-delay: 90ms; }
.reveal-delay-3 { transition-delay: 140ms; }
.reveal-delay-4 { transition-delay: 190ms; }
.reveal-delay-5 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
.reveal-on-scroll {
opacity: 1;
transform: none;
transition: none;
}
}
.user-chip {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
padding: 8px;
background: var(--bg-card);
border-radius: var(--radius-sm);
}
.user-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
object-fit: cover;
}
.user-avatar-ph {
display: flex;
align-items: center;
justify-content: center;
background: var(--accent-dim);
color: var(--accent);
font-weight: 600;
}
.user-name {
font-size: 0.9rem;
font-weight: 500;
}
.user-role {
font-size: 0.75rem;
}
.btn-logout {
width: 100%;
margin-top: 8px;
}
@media (max-width: 980px) {
.login-shell {
grid-template-columns: 1fr;
}
.login-hero {
padding: 28px 22px;
}
.login-hero h1 {
font-size: 1.5rem;
}
.login-feature-grid {
grid-template-columns: 1fr;
}
.login-metrics {
grid-template-columns: 1fr;
}
.login-cases {
grid-template-columns: 1fr;
}
.login-top-nav {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.login-top-links {
margin-left: 0;
flex-wrap: wrap;
}
.runtime-status {
position: static;
margin: 12px auto 0;
max-width: 1180px;
}
.login-card {
max-width: none;
justify-self: stretch;
}
}