- 简化绑定和日志接口的查询、序列化与前端数据请求路径 - 统一登录流程与前端 API 调用层,补充后台图标依赖 - 抽取通用异步状态处理,减少多个管理页面的重复逻辑
530 lines
9.3 KiB
CSS
530 lines
9.3 KiB
CSS
:root {
|
|
--sentinel-bg: #08131c;
|
|
--sentinel-bg-soft: #102734;
|
|
--sentinel-panel: rgba(252, 255, 255, 0.82);
|
|
--sentinel-panel-strong: rgba(255, 255, 255, 0.9);
|
|
--sentinel-border: rgba(255, 255, 255, 0.24);
|
|
--sentinel-ink: #09161e;
|
|
--sentinel-ink-soft: #57717d;
|
|
--sentinel-accent: #07b093;
|
|
--sentinel-accent-deep: #0d7e8b;
|
|
--sentinel-warn: #ef7f41;
|
|
--sentinel-danger: #dc4f53;
|
|
--sentinel-shadow: 0 30px 80px rgba(2, 12, 18, 0.22);
|
|
--el-color-primary: #0b9e88;
|
|
--el-color-success: #1aa36f;
|
|
--el-color-warning: #ef7f41;
|
|
--el-color-danger: #dc4f53;
|
|
color: var(--sentinel-ink);
|
|
font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", "PingFang SC", sans-serif;
|
|
line-height: 1.5;
|
|
font-weight: 400;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*:focus-visible {
|
|
outline: 3px solid rgba(11, 158, 136, 0.34);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
html {
|
|
min-height: 100%;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(12, 193, 152, 0.22), transparent 34%),
|
|
radial-gradient(circle at top right, rgba(255, 170, 76, 0.18), transparent 30%),
|
|
linear-gradient(180deg, #09131d 0%, #0d1d29 35%, #112d3d 100%);
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
color: var(--sentinel-ink);
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
background:
|
|
linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
|
|
background-size: 34px 34px;
|
|
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 95%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
#app {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.panel {
|
|
background: var(--sentinel-panel);
|
|
border: 1px solid var(--sentinel-border);
|
|
border-radius: 28px;
|
|
backdrop-filter: blur(18px);
|
|
box-shadow: var(--sentinel-shadow);
|
|
}
|
|
|
|
.glass-panel {
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 255, 252, 0.74));
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0;
|
|
color: var(--sentinel-accent-deep);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.16em;
|
|
font-size: 0.74rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--sentinel-ink-soft);
|
|
}
|
|
|
|
.page-grid {
|
|
display: grid;
|
|
gap: 24px;
|
|
}
|
|
|
|
.hero-panel {
|
|
position: relative;
|
|
padding: 26px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
|
|
gap: 20px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.hero-copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hero-description {
|
|
max-width: 60ch;
|
|
}
|
|
|
|
.hero-side {
|
|
display: grid;
|
|
gap: 12px;
|
|
align-content: start;
|
|
}
|
|
|
|
.hero-aside,
|
|
.hero-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.hero-panel::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: -80px;
|
|
right: -40px;
|
|
width: 220px;
|
|
height: 220px;
|
|
background: radial-gradient(circle, rgba(7, 176, 147, 0.28), transparent 70%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hero-panel h3,
|
|
.section-title {
|
|
margin: 10px 0 8px;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.metric-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 20px;
|
|
}
|
|
|
|
.metric-card--enhanced {
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 252, 249, 0.78));
|
|
}
|
|
|
|
.metric-card::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: auto -60px -60px auto;
|
|
width: 140px;
|
|
height: 140px;
|
|
border-radius: 999px;
|
|
background: radial-gradient(circle, rgba(7, 176, 147, 0.16), transparent 70%);
|
|
}
|
|
|
|
.metric-card[data-accent="amber"]::before {
|
|
background: radial-gradient(circle, rgba(239, 127, 65, 0.16), transparent 70%);
|
|
}
|
|
|
|
.metric-card[data-accent="slate"]::before {
|
|
background: radial-gradient(circle, rgba(54, 97, 135, 0.16), transparent 70%);
|
|
}
|
|
|
|
.metric-value {
|
|
margin: 10px 0 0;
|
|
font-size: clamp(1.8rem, 3vw, 2.5rem);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.metric-footnote {
|
|
margin: 10px 0 0;
|
|
color: var(--sentinel-ink-soft);
|
|
}
|
|
|
|
.content-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
|
|
gap: 24px;
|
|
}
|
|
|
|
.content-grid--balanced {
|
|
grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
|
|
}
|
|
|
|
.chart-card,
|
|
.table-card,
|
|
.form-card {
|
|
padding: 24px;
|
|
}
|
|
|
|
.chart-surface {
|
|
width: 100%;
|
|
min-height: 340px;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.toolbar-left,
|
|
.toolbar-right {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.data-table .el-table {
|
|
--el-table-border-color: rgba(9, 22, 30, 0.08);
|
|
--el-table-header-bg-color: rgba(7, 176, 147, 0.08);
|
|
--el-table-row-hover-bg-color: rgba(7, 176, 147, 0.05);
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.soft-grid {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.support-card {
|
|
padding: 20px;
|
|
border-radius: 24px;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 251, 248, 0.72));
|
|
border: 1px solid rgba(255, 255, 255, 0.32);
|
|
}
|
|
|
|
.support-card h4 {
|
|
margin: 10px 0 8px;
|
|
font-size: 1.08rem;
|
|
}
|
|
|
|
.support-card p {
|
|
margin: 0;
|
|
color: var(--sentinel-ink-soft);
|
|
}
|
|
|
|
.support-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.support-list-item {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding: 12px 0;
|
|
border-top: 1px solid rgba(9, 22, 30, 0.08);
|
|
}
|
|
|
|
.support-list-item:first-child {
|
|
padding-top: 0;
|
|
border-top: 0;
|
|
}
|
|
|
|
.support-kpi {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.support-kpi strong {
|
|
font-size: 1.55rem;
|
|
}
|
|
|
|
.insight-card {
|
|
padding: 18px 20px;
|
|
border-radius: 22px;
|
|
background: linear-gradient(180deg, rgba(8, 31, 45, 0.92), rgba(12, 24, 33, 0.8));
|
|
color: #f2fffd;
|
|
}
|
|
|
|
.insight-value {
|
|
margin: 6px 0 0;
|
|
font-size: 1.65rem;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.insight-note {
|
|
margin: 8px 0 0;
|
|
color: rgba(242, 255, 253, 0.72);
|
|
}
|
|
|
|
.table-stack {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.inline-meta {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.login-shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-columns: 1.1fr 0.9fr;
|
|
gap: 24px;
|
|
padding: 24px;
|
|
}
|
|
|
|
.login-stage,
|
|
.login-card {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.login-stage {
|
|
padding: 42px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 28px;
|
|
justify-content: space-between;
|
|
color: #f7fffe;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(17, 231, 181, 0.24), transparent 28%),
|
|
linear-gradient(160deg, rgba(8, 24, 34, 0.95), rgba(15, 37, 50, 0.92));
|
|
}
|
|
|
|
.login-stage h1 {
|
|
margin: 12px 0;
|
|
font-size: clamp(2.4rem, 4vw, 4rem);
|
|
line-height: 0.96;
|
|
}
|
|
|
|
.login-copy {
|
|
max-width: 520px;
|
|
font-size: 1rem;
|
|
color: rgba(247, 255, 254, 0.78);
|
|
}
|
|
|
|
.login-card {
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 36px;
|
|
}
|
|
|
|
.login-card-inner {
|
|
width: min(100%, 460px);
|
|
padding: 34px;
|
|
background: var(--sentinel-panel-strong);
|
|
border-radius: 32px;
|
|
border: 1px solid var(--sentinel-border);
|
|
box-shadow: var(--sentinel-shadow);
|
|
}
|
|
|
|
.status-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
background: rgba(7, 176, 147, 0.12);
|
|
color: var(--sentinel-accent-deep);
|
|
font-weight: 700;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.status-chip .el-icon {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.stack {
|
|
display: grid;
|
|
gap: 24px;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 28px;
|
|
text-align: center;
|
|
color: var(--sentinel-ink-soft);
|
|
}
|
|
|
|
.brand-subtitle {
|
|
margin: 6px 0 0;
|
|
color: var(--sentinel-ink-soft);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.rail-grid {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rail-card {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding: 14px 16px;
|
|
border-radius: 18px;
|
|
background: rgba(255, 255, 255, 0.44);
|
|
border: 1px solid rgba(255, 255, 255, 0.26);
|
|
}
|
|
|
|
.rail-label,
|
|
.header-chip-label {
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.16em;
|
|
color: var(--sentinel-ink-soft);
|
|
}
|
|
|
|
.rail-meta {
|
|
color: var(--sentinel-ink-soft);
|
|
font-size: 0.86rem;
|
|
}
|
|
|
|
.header-copy {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.header-note {
|
|
margin: 0;
|
|
}
|
|
|
|
.header-chip-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-chip {
|
|
display: grid;
|
|
gap: 2px;
|
|
min-width: 140px;
|
|
padding: 10px 14px;
|
|
border-radius: 18px;
|
|
background: rgba(255, 255, 255, 0.56);
|
|
border: 1px solid rgba(255, 255, 255, 0.26);
|
|
}
|
|
|
|
.hero-stat-pair {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.hero-stat {
|
|
padding: 14px 16px;
|
|
border-radius: 20px;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 255, 252, 0.64));
|
|
border: 1px solid rgba(255, 255, 255, 0.36);
|
|
}
|
|
|
|
.hero-stat strong {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.table-toolbar-block {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
scroll-behavior: auto !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
.metric-grid,
|
|
.content-grid,
|
|
.login-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero-side {
|
|
justify-items: start;
|
|
}
|
|
|
|
.hero-aside,
|
|
.hero-actions {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.metric-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.chart-card,
|
|
.table-card,
|
|
.form-card,
|
|
.hero-panel {
|
|
padding: 18px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.metric-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.login-shell {
|
|
padding: 16px;
|
|
}
|
|
}
|