431 lines
24 KiB
CSS
431 lines
24 KiB
CSS
/* RustProxyAdmin — Modern SaaS Dashboard 风格
|
|
灵感:Linear / Vercel / Stripe —— 轻量卡片 + 柔和渐变 + 轻微 Glassmorphism */
|
|
:root {
|
|
--bg: #f3f5fa;
|
|
--card: rgba(255, 255, 255, .78);
|
|
--card-solid: #ffffff;
|
|
--text: #0f172a;
|
|
--muted: #64748b;
|
|
--faint: #94a3b8;
|
|
--border: rgba(15, 23, 42, .08);
|
|
--border-strong: rgba(15, 23, 42, .14);
|
|
--primary: #6366f1;
|
|
--primary-d: #4f46e5;
|
|
--grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
|
--grad-indigo: linear-gradient(135deg, #6366f1, #818cf8);
|
|
--grad-violet: linear-gradient(135deg, #8b5cf6, #c084fc);
|
|
--grad-cyan: linear-gradient(135deg, #06b6d4, #22d3ee);
|
|
--grad-amber: linear-gradient(135deg, #f59e0b, #fbbf24);
|
|
--grad-emerald: linear-gradient(135deg, #10b981, #34d399);
|
|
--grad-rose: linear-gradient(135deg, #f43f5e, #fb7185);
|
|
--grad-blue: linear-gradient(135deg, #3b82f6, #60a5fa);
|
|
--ok: #16a34a; --ok-bg: #dcfce7;
|
|
--warn: #b45309; --warn-bg: #fef3c7;
|
|
--danger: #dc2626; --danger-bg: #fee2e2;
|
|
--info: #0284c7; --info-bg: #e0f2fe;
|
|
--radius: 14px;
|
|
--shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
|
|
--shadow: 0 8px 24px -10px rgba(15, 23, 42, .14);
|
|
--shadow-lg: 0 24px 56px -16px rgba(15, 23, 42, .22);
|
|
--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
body {
|
|
margin: 0; color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55;
|
|
background-color: var(--bg);
|
|
background-image:
|
|
radial-gradient(640px 420px at 8% -6%, rgba(99, 102, 241, .10), transparent 60%),
|
|
radial-gradient(720px 480px at 96% 4%, rgba(139, 92, 246, .08), transparent 60%),
|
|
radial-gradient(900px 600px at 50% 110%, rgba(34, 211, 238, .07), transparent 60%);
|
|
background-attachment: fixed;
|
|
min-height: 100vh;
|
|
}
|
|
a { color: var(--primary-d); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
::selection { background: rgba(99, 102, 241, .22); }
|
|
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .16); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
|
|
/* ---------- 布局 ---------- */
|
|
.layout { display: flex; min-height: 100vh; }
|
|
.sidebar {
|
|
width: 248px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
|
|
background: rgba(255, 255, 255, .72);
|
|
-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
|
|
border-right: 1px solid var(--border);
|
|
display: flex; flex-direction: column; z-index: 20;
|
|
}
|
|
.logo { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
|
|
.logo-mark {
|
|
width: 34px; height: 34px; border-radius: 10px; background: var(--grad-primary);
|
|
display: flex; align-items: center; justify-content: center; color: #fff;
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, .4); flex-shrink: 0;
|
|
}
|
|
.logo-mark svg { width: 20px; height: 20px; }
|
|
.logo-text { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
|
|
.logo-text small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
|
|
.sidebar nav { padding: 4px 12px 20px; flex: 1; }
|
|
.nav-group { padding: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
|
|
.sidebar nav a {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 7px 10px; border-radius: 10px; color: #334155; margin: 1px 0;
|
|
font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s;
|
|
}
|
|
.sidebar nav a:hover { background: rgba(15, 23, 42, .05); text-decoration: none; color: var(--text); }
|
|
.sidebar nav a.active { background: rgba(99, 102, 241, .12); color: var(--primary-d); font-weight: 600; }
|
|
.sidebar nav a.active .nav-ic { background: var(--grad-primary); color: #fff; box-shadow: 0 3px 8px rgba(99, 102, 241, .35); }
|
|
.nav-ic {
|
|
width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
background: rgba(15, 23, 42, .05); color: #64748b; transition: all .15s;
|
|
}
|
|
.nav-ic svg { width: 17px; height: 17px; }
|
|
.sidebar-foot { padding: 12px 18px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
|
|
|
|
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
.topbar {
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
padding: 10px 28px; position: sticky; top: 0; z-index: 10;
|
|
background: rgba(255, 255, 255, .66);
|
|
-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.topbar-crumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
|
|
.topbar-crumb b { color: var(--text); font-weight: 600; }
|
|
.user-chip { display: flex; align-items: center; gap: 10px; }
|
|
.avatar {
|
|
width: 32px; height: 32px; border-radius: 50%; background: var(--grad-primary); color: #fff;
|
|
display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
|
|
box-shadow: 0 3px 8px rgba(99, 102, 241, .35);
|
|
}
|
|
.user-meta { line-height: 1.25; }
|
|
.user-meta .uname { font-weight: 600; font-size: 13px; }
|
|
.role-badge { font-size: 11px; padding: 1px 8px; border-radius: 20px; background: rgba(99,102,241,.12); color: var(--primary-d); font-weight: 600; }
|
|
.role-badge.viewer { background: rgba(100,116,139,.14); color: #475569; }
|
|
|
|
.content { padding: 28px; max-width: 1440px; width: 100%; margin: 0 auto; animation: fadeUp .35s ease; }
|
|
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
@media (prefers-reduced-motion: reduce) { .content { animation: none; } * { transition: none !important; } }
|
|
|
|
/* 页头:标题 + 描述 + 操作区 */
|
|
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
|
|
.page-head-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
|
|
.page-head-desc { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }
|
|
.page-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
|
.page-head-actions:empty { display: none; }
|
|
|
|
.warn-banner {
|
|
background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(251,191,36,.10));
|
|
border-bottom: 1px solid rgba(245, 158, 11, .3); color: #92400e;
|
|
padding: 10px 28px; text-align: center; font-size: 13px;
|
|
-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
|
|
}
|
|
.warn-banner a { color: #b45309; font-weight: 700; }
|
|
|
|
/* ---------- 按钮 ---------- */
|
|
.btn {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
background: var(--card-solid); border: 1px solid var(--border-strong); color: var(--text);
|
|
padding: 8px 16px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 550;
|
|
font-family: var(--font); box-shadow: var(--shadow-sm); transition: all .15s; white-space: nowrap;
|
|
}
|
|
.btn:hover { border-color: rgba(15,23,42,.24); box-shadow: var(--shadow); transform: translateY(-1px); }
|
|
.btn:active { transform: translateY(0); }
|
|
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
|
|
.btn-primary { background: var(--grad-primary); border: none; color: #fff; box-shadow: 0 4px 14px rgba(99, 102, 241, .4); }
|
|
.btn-primary:hover { box-shadow: 0 8px 20px rgba(99, 102, 241, .5); border: none; filter: brightness(1.05); }
|
|
.btn-danger { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
|
|
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
|
|
.btn-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--ok); }
|
|
.btn-ok:hover { background: var(--ok); border-color: var(--ok); color: #fff; }
|
|
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
|
|
.btn-block { width: 100%; margin-top: 10px; padding: 11px; font-size: 14.5px; border-radius: 12px; }
|
|
.btn-ghost { background: transparent; border: none; box-shadow: none; color: var(--muted); }
|
|
.btn-ghost:hover { background: rgba(15,23,42,.06); color: var(--text); box-shadow: none; }
|
|
|
|
/* ---------- 表单 ---------- */
|
|
input, select, textarea {
|
|
background: var(--card-solid); border: 1px solid var(--border-strong); color: var(--text);
|
|
padding: 9px 12px; border-radius: 10px; font-size: 13.5px; width: 100%; font-family: var(--font);
|
|
transition: border-color .15s, box-shadow .15s;
|
|
}
|
|
input:focus, select:focus, textarea:focus {
|
|
outline: none; border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, .16);
|
|
}
|
|
input::placeholder, textarea::placeholder { color: var(--faint); }
|
|
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary-d); cursor: pointer; }
|
|
label { display: block; margin-bottom: 6px; color: #475569; font-size: 13px; font-weight: 550; }
|
|
.form-row { margin-bottom: 14px; }
|
|
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
|
.form-hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
|
|
|
|
/* ---------- 工具栏 ---------- */
|
|
.toolbar {
|
|
display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center;
|
|
background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
|
|
border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm);
|
|
}
|
|
.toolbar input, .toolbar select { width: auto; }
|
|
.toolbar .spacer { flex: 1; }
|
|
|
|
/* ---------- 表格 ---------- */
|
|
table.tbl {
|
|
width: 100%; border-collapse: separate; border-spacing: 0;
|
|
background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
|
|
border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13.5px; }
|
|
.tbl thead th {
|
|
background: rgba(248, 250, 252, .8); color: var(--muted);
|
|
font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.tbl tbody tr { transition: background .12s; }
|
|
.tbl tbody tr:hover td { background: rgba(99, 102, 241, .045); }
|
|
.tbl tbody tr:last-child td { border-bottom: none; }
|
|
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }
|
|
.pager { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
|
|
|
|
/* ---------- 徽章 / 标签 ---------- */
|
|
.badge {
|
|
display: inline-flex; align-items: center; gap: 4px;
|
|
padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
|
|
background: rgba(100, 116, 139, .12); color: #475569; border: 1px solid transparent; white-space: nowrap;
|
|
}
|
|
.badge.ok { background: var(--ok-bg); color: #15803d; }
|
|
.badge.warn { background: var(--warn-bg); color: var(--warn); }
|
|
.badge.danger, .badge.bad { background: var(--danger-bg); color: #b91c1c; }
|
|
.badge.muted { background: rgba(100,116,139,.1); color: var(--muted); }
|
|
.badge.info { background: var(--info-bg); color: var(--info); }
|
|
.badge.primary { background: rgba(99,102,241,.12); color: var(--primary-d); }
|
|
.tagchip, .groupchip {
|
|
display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
|
|
margin: 1px 3px; color: #fff; box-shadow: var(--shadow-sm);
|
|
}
|
|
.groupchip { border-radius: 7px; }
|
|
|
|
/* ---------- 卡片 / 统计 ---------- */
|
|
.card {
|
|
background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
|
|
border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 16px;
|
|
box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
|
|
}
|
|
.card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
|
|
.card h3 .sub { font-weight: 500; font-size: 12.5px; color: var(--muted); }
|
|
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
|
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
|
|
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
|
|
|
|
/* 统计卡片(仪表盘) */
|
|
.stat-card {
|
|
background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
|
|
border: 1px solid var(--border); border-radius: 16px; padding: 18px;
|
|
box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start;
|
|
transition: transform .18s, box-shadow .18s; position: relative; overflow: hidden;
|
|
}
|
|
.stat-card::after {
|
|
content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
|
|
background: radial-gradient(220px 120px at 110% -20%, var(--glow, rgba(99,102,241,.10)), transparent 70%);
|
|
}
|
|
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
|
|
.stat-icon {
|
|
width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
|
|
display: flex; align-items: center; justify-content: center; color: #fff;
|
|
box-shadow: 0 6px 14px -4px rgba(15, 23, 42, .3);
|
|
}
|
|
.stat-icon svg { width: 22px; height: 22px; }
|
|
.stat-icon.indigo { background: var(--grad-indigo); }
|
|
.stat-icon.violet { background: var(--grad-violet); }
|
|
.stat-icon.cyan { background: var(--grad-cyan); }
|
|
.stat-icon.amber { background: var(--grad-amber); }
|
|
.stat-icon.emerald { background: var(--grad-emerald); }
|
|
.stat-icon.rose { background: var(--grad-rose); }
|
|
.stat-icon.blue { background: var(--grad-blue); }
|
|
.stat-body { min-width: 0; }
|
|
.stat-num { font-size: 25px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
|
|
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
|
|
.stat-delta { font-size: 12px; font-weight: 600; margin-top: 4px; display: inline-block; padding: 1px 8px; border-radius: 12px; }
|
|
.stat-delta.up { background: var(--ok-bg); color: #15803d; }
|
|
.stat-delta.down { background: var(--danger-bg); color: #b91c1c; }
|
|
|
|
/* ---------- 进度条 ---------- */
|
|
.progress { height: 8px; background: rgba(15,23,42,.07); border-radius: 6px; overflow: hidden; min-width: 80px; }
|
|
.progress > div { height: 100%; background: var(--grad-primary); border-radius: 6px; transition: width .3s; }
|
|
.progress > div.warn { background: var(--grad-amber); }
|
|
.progress > div.danger { background: var(--grad-rose); }
|
|
.pbar { display: inline-block; width: 120px; height: 8px; background: rgba(15,23,42,.07); border-radius: 6px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
|
|
.pfill { height: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 6px; transition: width .3s; }
|
|
.pfill.warn { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
|
|
.pfill.danger { background: linear-gradient(90deg, #fb7185, #f43f5e); }
|
|
|
|
/* ---------- 选项卡 ---------- */
|
|
.tabs {
|
|
display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px;
|
|
background: rgba(15, 23, 42, .05); border-radius: 12px;
|
|
}
|
|
.tabs button {
|
|
background: none; border: none; color: var(--muted); padding: 8px 18px; cursor: pointer;
|
|
font-size: 13.5px; font-weight: 550; border-radius: 9px; font-family: var(--font); transition: all .15s;
|
|
}
|
|
.tabs button:hover { color: var(--text); }
|
|
.tabs button.active { color: var(--text); background: var(--card-solid); box-shadow: var(--shadow-sm); }
|
|
|
|
/* ---------- 弹窗 ---------- */
|
|
.modal-mask {
|
|
position: fixed; inset: 0; background: rgba(15, 23, 42, .42);
|
|
-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
|
|
display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
|
|
animation: fadeIn .18s ease;
|
|
}
|
|
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
.modal {
|
|
background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
|
|
border: 1px solid var(--border); border-radius: 18px; padding: 26px;
|
|
width: 580px; max-width: 94vw; max-height: 88vh; overflow-y: auto;
|
|
box-shadow: var(--shadow-lg); animation: popIn .22s cubic-bezier(.2, .9, .3, 1.2);
|
|
}
|
|
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
|
|
.modal h3 { margin: 0 0 18px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
|
|
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
|
|
|
|
/* ---------- toast ---------- */
|
|
#toast { position: fixed; bottom: 26px; right: 26px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
|
|
.toast-msg {
|
|
background: rgba(15, 23, 42, .92); color: #f1f5f9; padding: 12px 18px; border-radius: 12px;
|
|
box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500;
|
|
-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
|
|
animation: slideIn .25s cubic-bezier(.2, .9, .3, 1.2); border: 1px solid rgba(255,255,255,.1);
|
|
display: flex; align-items: center; gap: 8px;
|
|
}
|
|
.toast-msg::before { content: "✓"; color: #34d399; font-weight: 700; }
|
|
.toast-msg.err { border-color: rgba(248, 113, 113, .4); }
|
|
.toast-msg.err::before { content: "⚠"; color: #f87171; }
|
|
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
|
|
|
|
/* ---------- 登录页 ---------- */
|
|
.login-body {
|
|
display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0;
|
|
background-color: #eef0f8;
|
|
background-image:
|
|
radial-gradient(720px 480px at 12% 8%, rgba(99, 102, 241, .22), transparent 60%),
|
|
radial-gradient(680px 520px at 88% 90%, rgba(139, 92, 246, .18), transparent 60%),
|
|
radial-gradient(560px 420px at 85% 12%, rgba(34, 211, 238, .14), transparent 60%),
|
|
radial-gradient(600px 500px at 8% 92%, rgba(244, 114, 182, .10), transparent 60%);
|
|
}
|
|
.login-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px; animation: fadeUp .4s ease; }
|
|
.login-brand { display: flex; align-items: center; gap: 12px; }
|
|
.login-brand .logo-mark { width: 44px; height: 44px; border-radius: 13px; }
|
|
.login-brand .logo-mark svg { width: 26px; height: 26px; }
|
|
.login-brand b { font-size: 21px; letter-spacing: -.02em; }
|
|
.login-card {
|
|
background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
|
|
border: 1px solid rgba(255, 255, 255, .7); border-radius: 22px;
|
|
padding: 38px 40px; width: 400px; max-width: 92vw;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
.login-card h1 { margin: 0 0 4px; font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
|
|
.login-card .muted { color: var(--muted); margin: 0 0 24px; font-size: 13.5px; }
|
|
.login-card label { display: block; margin-bottom: 14px; font-size: 13px; color: #475569; font-weight: 550; }
|
|
.login-card label input { margin-top: 6px; padding: 11px 14px; }
|
|
.error {
|
|
background: var(--danger-bg); color: #b91c1c; padding: 10px 14px; border-radius: 10px;
|
|
margin-bottom: 14px; font-size: 13px; font-weight: 550; border: 1px solid #fecaca;
|
|
}
|
|
.login-foot { color: var(--muted); font-size: 12.5px; }
|
|
|
|
/* ---------- 文本 / 代码 ---------- */
|
|
.muted { color: var(--muted); }
|
|
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
|
|
.codebox {
|
|
background: #0f172a; color: #c7d2fe; border: 1px solid rgba(15,23,42,.2);
|
|
border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; word-break: break-all;
|
|
max-height: 400px; overflow-y: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
font-size: 12.5px; line-height: 1.6;
|
|
}
|
|
pre.mark { background: #0f172a; color: #e2e8f0; padding: 12px 16px; border-radius: 12px; overflow-x: auto; font-size: 12.5px; }
|
|
|
|
/* ---------- 开关 ---------- */
|
|
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
|
|
.switch input { opacity: 0; width: 0; height: 0; }
|
|
.slider { position: absolute; inset: 0; background: rgba(15,23,42,.14); border-radius: 24px; cursor: pointer; transition: .2s; }
|
|
.slider:before {
|
|
content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
|
|
background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.2);
|
|
}
|
|
.switch input:checked + .slider { background: var(--grad-primary); }
|
|
.switch input:checked + .slider:before { transform: translateX(18px); }
|
|
|
|
/* ---------- 批量操作条 ---------- */
|
|
.batchbar {
|
|
position: sticky; bottom: 16px; background: rgba(255,255,255,.9);
|
|
-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
|
|
border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; margin-top: 14px;
|
|
display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* ---------- P9 统计/监控 ---------- */
|
|
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
|
|
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
|
|
.bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
|
|
.bar-row > span:first-child { width: 110px; flex-shrink: 0; font-weight: 550; }
|
|
.bar-row .mono { margin-left: auto; white-space: nowrap; color: var(--muted); }
|
|
.bar { flex: 1; height: 14px; background: rgba(15,23,42,.07); border-radius: 8px; overflow: hidden; }
|
|
.bar > div { height: 100%; border-radius: 8px; background: var(--grad-primary); transition: width .4s; }
|
|
.node-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
|
|
.node-cards .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
|
|
.spark { width: 100%; height: 60px; }
|
|
.warn-row td { background: rgba(245, 158, 11, .07) !important; }
|
|
.danger-row td { background: rgba(244, 63, 94, .06) !important; }
|
|
|
|
/* ---------- 空状态 ---------- */
|
|
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
|
|
.empty-state .empty-ic {
|
|
width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px;
|
|
background: rgba(99,102,241,.1); color: var(--primary-d);
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.empty-state .empty-ic svg { width: 28px; height: 28px; }
|
|
.empty-state p { margin: 6px 0 0; font-size: 13.5px; }
|
|
.empty-state b { color: var(--text); font-size: 15px; }
|
|
|
|
/* ---------- 详情定义列表 ---------- */
|
|
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; }
|
|
.kv dt { color: var(--muted); font-weight: 550; }
|
|
.kv dd { margin: 0; word-break: break-all; }
|
|
|
|
/* ---------- 步骤 / 时间线(告警事件等) ---------- */
|
|
.timeline { position: relative; padding-left: 22px; }
|
|
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: rgba(15,23,42,.1); border-radius: 2px; }
|
|
.timeline-item { position: relative; padding: 8px 0; }
|
|
.timeline-item::before {
|
|
content: ""; position: absolute; left: -19px; top: 14px; width: 10px; height: 10px;
|
|
border-radius: 50%; background: var(--card-solid); border: 2px solid var(--primary);
|
|
}
|
|
|
|
/* ---------- 响应式 ---------- */
|
|
@media (max-width: 1100px) {
|
|
.grid3 { grid-template-columns: 1fr 1fr; }
|
|
}
|
|
@media (max-width: 900px) {
|
|
.sidebar { width: 72px; }
|
|
.sidebar .logo-text, .sidebar .nav-group, .sidebar nav a span.nav-txt, .sidebar-foot { display: none; }
|
|
.sidebar nav a { justify-content: center; padding: 8px; }
|
|
.logo { justify-content: center; padding: 16px 8px 12px; }
|
|
.content { padding: 18px; }
|
|
.grid2, .grid3, .form-grid { grid-template-columns: 1fr; }
|
|
.topbar { padding: 10px 16px; }
|
|
.user-meta { display: none; }
|
|
}
|
|
.page-head-desc:empty { display: none; }
|
|
|
|
/* 提醒行(仪表盘) */
|
|
.alert-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(15,23,42,.03); border: 1px solid var(--border); margin-bottom: 8px; font-size: 13px; }
|
|
.alert-line.warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.28); }
|
|
.alert-line.danger { background: rgba(244,63,94,.07); border-color: rgba(244,63,94,.25); }
|
|
.alert-line .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
|