2026-11-04 16:48:46 +08:00
|
|
|
|
/* 在原型 token 之上补齐语义变量与新增组件;所有页面共用同一套颜色与排版。 */
|
|
|
|
|
|
:root {
|
|
|
|
|
|
--line: light-dark(#e5e9f2, #273247);
|
|
|
|
|
|
--line-soft: light-dark(#edf0f5, #253147);
|
|
|
|
|
|
--line-strong: light-dark(#dce2ed, #3a465d);
|
|
|
|
|
|
--muted: light-dark(#8792a7, #9aa7bd);
|
|
|
|
|
|
--muted-strong: light-dark(#6b788f, #b3bed0);
|
|
|
|
|
|
--card-bg: light-dark(#ffffff, #121b2b);
|
|
|
|
|
|
--field-bg: light-dark(#ffffff, #172235);
|
|
|
|
|
|
--soft-bg: light-dark(#f8faff, #182337);
|
|
|
|
|
|
--primary-soft: light-dark(#eaf0ff, #1c2d52);
|
|
|
|
|
|
--danger: #d94841;
|
|
|
|
|
|
--success: #13865c;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
body { min-height: 100vh; }
|
|
|
|
|
|
a { color: inherit; }
|
|
|
|
|
|
button:disabled { cursor: not-allowed; opacity: .55; }
|
|
|
|
|
|
|
|
|
|
|
|
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
|
|
|
|
|
|
.brand-text strong { font-size: 18px; letter-spacing: -.4px; }
|
|
|
|
|
|
.brand-text span { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
|
|
|
|
|
|
|
|
|
|
|
|
.nav-group { display: flex; flex-direction: column; gap: 3px; }
|
|
|
|
|
|
.nav-item .nav-meta { margin-left: auto; font-size: 10px; color: var(--muted); font-weight: 500; }
|
|
|
|
|
|
.nav-item.active .nav-meta { color: inherit; }
|
|
|
|
|
|
|
|
|
|
|
|
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
|
|
|
|
|
|
.btn.block { width: 100%; justify-content: center; }
|
|
|
|
|
|
.btn.ghost { border-color: transparent; background: transparent; }
|
|
|
|
|
|
.btn.ghost:hover { background: light-dark(#f2f5ff, #1d2a40); border-color: transparent; }
|
|
|
|
|
|
|
|
|
|
|
|
.topbar .instance strong { font-size: 12px; }
|
|
|
|
|
|
.topbar .instance span { font-size: 11px; color: var(--muted); }
|
|
|
|
|
|
.top-actions .avatar { cursor: pointer; }
|
|
|
|
|
|
.top-actions { position: relative; }
|
|
|
|
|
|
.dropdown {
|
|
|
|
|
|
position: absolute; right: 0; top: 46px; min-width: 210px; z-index: 15;
|
|
|
|
|
|
background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px;
|
|
|
|
|
|
box-shadow: 0 18px 46px #10182822; padding: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dropdown .dd-head { padding: 9px 10px 11px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
|
|
|
|
|
|
.dropdown .dd-head strong { display: block; font-size: 13px; }
|
|
|
|
|
|
.dropdown .dd-head span { font-size: 11px; color: var(--muted); }
|
|
|
|
|
|
.dropdown button {
|
|
|
|
|
|
display: flex; width: 100%; gap: 8px; align-items: center; padding: 9px 10px;
|
|
|
|
|
|
border: 0; background: transparent; color: inherit; border-radius: 8px; text-align: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dropdown button:hover { background: light-dark(#f2f5ff, #1d2a40); }
|
|
|
|
|
|
|
|
|
|
|
|
.demo-badge {
|
|
|
|
|
|
display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px;
|
|
|
|
|
|
background: light-dark(#fff5df, #3d2c13); color: #b7791f; font-size: 10px; font-weight: 700;
|
|
|
|
|
|
border: 1px solid light-dark(#f5e2b8, #5a431c); white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
.demo-banner {
|
|
|
|
|
|
display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -6px 0 18px;
|
|
|
|
|
|
padding: 10px 13px; border-radius: 10px; font-size: 12px;
|
|
|
|
|
|
background: light-dark(#fffaf0, #2c2414); border: 1px solid light-dark(#f3e3c3, #4a3b1c); color: #9a7320;
|
|
|
|
|
|
}
|
|
|
|
|
|
.demo-banner .btn { margin-left: auto; }
|
|
|
|
|
|
|
|
|
|
|
|
.notice {
|
|
|
|
|
|
border: 1px solid light-dark(#dbe3ff, #314a7a); background: light-dark(#f4f7ff, #1a2b4d);
|
|
|
|
|
|
color: light-dark(#25409a, #b7c9ff); border-radius: 10px; padding: 11px 13px; font-size: 12px;
|
|
|
|
|
|
line-height: 1.6; display: flex; gap: 9px; align-items: flex-start;
|
|
|
|
|
|
}
|
|
|
|
|
|
.notice.warn { border-color: light-dark(#f3e3c3, #5a431c); background: light-dark(#fffaf0, #2c2414); color: #9a7320; }
|
|
|
|
|
|
.notice.danger { border-color: light-dark(#f3d2cf, #5c2a2a); background: light-dark(#fff5f4, #341d1f); color: #b23b34; }
|
|
|
|
|
|
.notice + .notice { margin-top: 10px; }
|
|
|
|
|
|
.notice .btn { margin-left: auto; flex-shrink: 0; }
|
|
|
|
|
|
|
|
|
|
|
|
.state-block {
|
|
|
|
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
|
|
|
|
|
|
padding: 42px 20px; color: var(--muted); text-align: center; border-radius: 12px;
|
|
|
|
|
|
border: 1px dashed var(--line-strong); background: var(--soft-bg);
|
|
|
|
|
|
}
|
|
|
|
|
|
.state-block strong { color: inherit; font-size: 14px; }
|
|
|
|
|
|
.state-block p { margin: 0; max-width: 560px; line-height: 1.6; font-size: 12px; }
|
|
|
|
|
|
.skeleton { height: 14px; border-radius: 6px; background: light-dark(#eef1f7, #1f2b3d); animation: pulse 1.4s ease-in-out infinite; }
|
|
|
|
|
|
@keyframes pulse { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }
|
|
|
|
|
|
|
|
|
|
|
|
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
|
|
|
|
|
|
.pager .pager-info { font-size: 12px; color: var(--muted); }
|
|
|
|
|
|
.pager .pager-actions { display: flex; gap: 8px; align-items: center; }
|
|
|
|
|
|
.pager select { height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field-bg); color: inherit; }
|
|
|
|
|
|
|
|
|
|
|
|
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
|
|
|
|
|
|
.form-grid .full { grid-column: 1 / -1; }
|
|
|
|
|
|
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
|
|
|
|
.fld > label { font-size: 12px; font-weight: 650; color: var(--muted-strong); }
|
|
|
|
|
|
.fld > label .req { color: var(--danger); margin-left: 3px; }
|
|
|
|
|
|
.fld .field { width: 100%; min-width: 0; }
|
|
|
|
|
|
.fld .field.invalid { border-color: #e0827c; box-shadow: 0 0 0 3px #d9484118; }
|
|
|
|
|
|
.fld .field-hint { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
|
|
|
|
|
|
.fld .field-error { margin: 0; font-size: 11px; color: var(--danger); }
|
|
|
|
|
|
.fld textarea.field { height: auto; min-height: 96px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
|
|
|
|
|
|
.field[disabled], .field:disabled { opacity: .6; }
|
|
|
|
|
|
|
|
|
|
|
|
.kv { display: flex; flex-direction: column; gap: 9px; }
|
|
|
|
|
|
.kv-row { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
|
|
|
|
|
|
.kv-row span:first-child { color: var(--muted); flex-shrink: 0; }
|
|
|
|
|
|
.kv-row span:last-child { text-align: right; word-break: break-all; }
|
|
|
|
|
|
|
|
|
|
|
|
.drawer-backdrop {
|
|
|
|
|
|
position: fixed; inset: 0; background: #0b122080; z-index: 40;
|
|
|
|
|
|
display: flex; justify-content: flex-end;
|
|
|
|
|
|
}
|
|
|
|
|
|
.drawer {
|
|
|
|
|
|
width: min(720px, 100%); height: 100%; background: var(--card-bg);
|
|
|
|
|
|
border-left: 1px solid var(--line); display: flex; flex-direction: column;
|
|
|
|
|
|
animation: slide-in .18s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
@keyframes slide-in { from { transform: translateX(24px); opacity: .6 } to { transform: translateX(0); opacity: 1 } }
|
|
|
|
|
|
.drawer-head { padding: 19px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
|
|
|
|
|
|
.drawer-head h3 { margin: 0 0 5px; font-size: 17px; }
|
|
|
|
|
|
.drawer-head p { margin: 0; color: var(--muted); font-size: 12px; }
|
|
|
|
|
|
.drawer-body { padding: 18px 22px 32px; overflow: auto; flex: 1; }
|
|
|
|
|
|
.drawer-section { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
|
|
|
|
|
|
.drawer-section:last-child { border-bottom: 0; }
|
|
|
|
|
|
.drawer-section h4 { margin: 0 0 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
|
|
|
|
|
|
|
|
|
|
|
|
.raw-pre {
|
|
|
|
|
|
margin: 0; padding: 12px; border-radius: 10px; overflow: auto; max-height: 320px;
|
|
|
|
|
|
background: light-dark(#f7f9fd, #0f1929); border: 1px solid var(--line);
|
|
|
|
|
|
font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.6;
|
|
|
|
|
|
white-space: pre-wrap; word-break: break-all;
|
|
|
|
|
|
}
|
|
|
|
|
|
.segment {
|
|
|
|
|
|
border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
|
|
|
|
|
|
background: light-dark(#fbfcff, #172235);
|
|
|
|
|
|
}
|
|
|
|
|
|
.segment .seg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-bottom: 6px; }
|
|
|
|
|
|
.segment .seg-body { font-size: 12px; color: var(--muted-strong); word-break: break-all; line-height: 1.6; }
|
|
|
|
|
|
.segment img { max-width: 100%; border-radius: 8px; margin-top: 8px; display: block; }
|
|
|
|
|
|
|
|
|
|
|
|
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
|
|
|
|
|
|
.bar-chart .bar { flex: 1; background: linear-gradient(180deg, #6d8dff, var(--site-primary)); border-radius: 5px 5px 2px 2px; min-height: 4px; position: relative; }
|
|
|
|
|
|
.bar-chart .bar:hover:after {
|
|
|
|
|
|
content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
|
|
|
|
|
|
background: #172033; color: #fff; font-size: 10px; padding: 3px 6px; border-radius: 5px; white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
.chart-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 8px; }
|
|
|
|
|
|
|
|
|
|
|
|
.auth-shell {
|
|
|
|
|
|
min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
|
|
|
|
|
|
background: light-dark(#f4f6fb, #0c1220);
|
|
|
|
|
|
}
|
|
|
|
|
|
.auth-brand {
|
|
|
|
|
|
padding: 38px 34px; background: light-dark(#172554, #0b1120); color: #fff;
|
|
|
|
|
|
display: flex; flex-direction: column; gap: 34px;
|
|
|
|
|
|
}
|
2026-11-17 17:29:06 +08:00
|
|
|
|
.auth-brand .brand { flex-direction: column; align-items: flex-start; gap: 12px; }
|
|
|
|
|
|
.auth-brand .brand-lockup { display: block; line-height: 0; border-radius: 10px; overflow: hidden; }
|
|
|
|
|
|
.auth-brand .brand-lockup img { display: block; width: auto; height: 54px; }
|
|
|
|
|
|
.auth-brand .brand-tagline { font-size: 11px; color: #9fb0d8; font-weight: 500; letter-spacing: 0; }
|
2026-11-04 16:48:46 +08:00
|
|
|
|
.auth-pitch h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.6px; margin: 0 0 12px; }
|
|
|
|
|
|
.auth-pitch p { color: #b8c6e6; line-height: 1.7; margin: 0 0 22px; font-size: 13px; }
|
|
|
|
|
|
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
|
|
|
|
|
|
.auth-points li { display: flex; gap: 10px; font-size: 12px; color: #cdd8ef; line-height: 1.6; }
|
|
|
|
|
|
.auth-points li span { width: 6px; height: 6px; border-radius: 50%; background: #7c9aFF; margin-top: 7px; flex-shrink: 0; }
|
|
|
|
|
|
.auth-foot { margin: auto 0 0; font-size: 11px; color: #7f90b8; }
|
|
|
|
|
|
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
|
|
|
|
|
|
.auth-card {
|
|
|
|
|
|
width: min(460px, 100%); background: var(--card-bg); border: 1px solid var(--line);
|
|
|
|
|
|
border-radius: 16px; padding: 28px; box-shadow: 0 22px 60px #10182812;
|
|
|
|
|
|
}
|
|
|
|
|
|
.auth-card-head { margin-bottom: 20px; }
|
|
|
|
|
|
.auth-title { font-size: 23px; margin: 0 0 8px; letter-spacing: -.5px; }
|
|
|
|
|
|
.auth-sub { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
|
|
|
|
|
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
|
|
|
|
|
|
.auth-form .input {
|
|
|
|
|
|
height: 40px; border: 1px solid var(--line-strong); border-radius: 9px;
|
|
|
|
|
|
background: var(--field-bg); color: inherit; padding: 0 11px; outline: none; width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
.auth-form .input:focus { border-color: #8299ff; box-shadow: 0 0 0 3px #315efb1c; }
|
|
|
|
|
|
.auth-form .input.invalid { border-color: #e0827c; }
|
|
|
|
|
|
.auth-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 16px 0 0; }
|
|
|
|
|
|
.auth-note a { color: var(--site-primary); }
|
|
|
|
|
|
.loading-row { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; padding: 10px 0; }
|
|
|
|
|
|
.spinner {
|
|
|
|
|
|
width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--site-primary);
|
|
|
|
|
|
border-radius: 50%; animation: spin .8s linear infinite;
|
|
|
|
|
|
}
|
|
|
|
|
|
@keyframes spin { to { transform: rotate(360deg) } }
|
|
|
|
|
|
.guide-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 16px; }
|
|
|
|
|
|
.guide-step { display: flex; gap: 10px; font-size: 12px; color: var(--muted-strong); line-height: 1.55; }
|
|
|
|
|
|
.guide-step b { width: 20px; height: 20px; border-radius: 6px; background: var(--primary-soft); color: var(--site-primary); display: grid; place-items: center; flex-shrink: 0; font-size: 11px; }
|
|
|
|
|
|
|
|
|
|
|
|
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
|
|
|
|
.tabs { overflow-x: auto; }
|
|
|
|
|
|
.tab:disabled { opacity: .55; cursor: not-allowed; }
|
|
|
|
|
|
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
|
|
|
|
|
|
.filterbar .field { flex: 0 0 auto; }
|
|
|
|
|
|
.filterbar .searchfield { flex: 1 1 240px; }
|
|
|
|
|
|
.filterbar .full { flex-basis: 100%; }
|
|
|
|
|
|
.inline-warn { font-size: 11px; color: #b7791f; }
|
|
|
|
|
|
.switch { cursor: pointer; border: 0; }
|
|
|
|
|
|
.switch.off:after { background: #fff; }
|
|
|
|
|
|
|
|
|
|
|
|
.status.muted { color: #7a869a; background: light-dark(#f0f2f6, #252f40); }
|
|
|
|
|
|
.small-muted { font-size: 11px; color: var(--muted); }
|
|
|
|
|
|
.two-col > .card, .three-col > .card { min-width: 0; }
|
|
|
|
|
|
.card-head .card-title { display: flex; align-items: center; gap: 8px; }
|
|
|
|
|
|
.scroll-area { max-height: 340px; overflow: auto; }
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
|
|
.auth-shell { grid-template-columns: 1fr; }
|
|
|
|
|
|
.auth-brand { display: none; }
|
|
|
|
|
|
.form-grid { grid-template-columns: 1fr; }
|
|
|
|
|
|
}
|
|
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
|
|
.auth-main { padding: 24px 13px; }
|
|
|
|
|
|
.auth-card { padding: 20px; border-radius: 12px; }
|
|
|
|
|
|
.drawer { width: 100%; }
|
|
|
|
|
|
.topbar .brand-text { display: none; }
|
|
|
|
|
|
.filterbar .field { flex: 1 1 120px; }
|
|
|
|
|
|
.pager { flex-direction: column; align-items: flex-start; }
|
|
|
|
|
|
}
|
2026-11-17 17:29:06 +08:00
|
|
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- 可收起导航侧边栏 */
|
|
|
|
|
|
.sidebar {
|
|
|
|
|
|
transition: width .24s cubic-bezier(.4, 0, .2, 1), padding .24s cubic-bezier(.4, 0, .2, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
min-height: 30px;
|
|
|
|
|
|
padding: 0 5px 6px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar-head-title {
|
|
|
|
|
|
padding-left: 8px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
letter-spacing: 1px;
|
|
|
|
|
|
color: #98a2b5;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
transition: opacity .14s ease, max-width .2s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nav-toggle {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
|
border-radius: 7px;
|
|
|
|
|
|
background: var(--card-bg);
|
|
|
|
|
|
color: var(--muted-strong);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: background .15s ease, color .15s ease, border-color .15s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nav-toggle:hover {
|
|
|
|
|
|
background: light-dark(#f2f5ff, #1d2a40);
|
|
|
|
|
|
border-color: var(--line-strong);
|
|
|
|
|
|
color: var(--site-primary);
|
|
|
|
|
|
}
|
|
|
|
|
|
.nav-toggle:focus-visible {
|
|
|
|
|
|
outline: 2px solid var(--site-primary);
|
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nav-toggle svg {
|
|
|
|
|
|
transition: transform .24s cubic-bezier(.4, 0, .2, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
transition: gap .24s cubic-bezier(.4, 0, .2, 1), padding .24s cubic-bezier(.4, 0, .2, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
.nav-text {
|
|
|
|
|
|
max-width: 170px;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
transition: max-width .24s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nav-label {
|
|
|
|
|
|
max-height: 40px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
transition: max-height .24s cubic-bezier(.4, 0, .2, 1), opacity .14s ease,
|
|
|
|
|
|
padding .24s cubic-bezier(.4, 0, .2, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar-bottom {
|
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
|
max-height: 220px;
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
transition: max-height .24s cubic-bezier(.4, 0, .2, 1), opacity .14s ease,
|
|
|
|
|
|
padding .24s cubic-bezier(.4, 0, .2, 1), border-width .24s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed {
|
|
|
|
|
|
width: 64px;
|
|
|
|
|
|
padding-left: 8px;
|
|
|
|
|
|
padding-right: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .sidebar-head {
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
padding-right: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .sidebar-head-title {
|
|
|
|
|
|
max-width: 0;
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .nav-label {
|
|
|
|
|
|
max-height: 0;
|
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .nav-text {
|
|
|
|
|
|
max-width: 0;
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .nav-item {
|
|
|
|
|
|
gap: 0;
|
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
padding-right: 0;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .sidebar-bottom {
|
|
|
|
|
|
max-height: 60px;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
border-width: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 收起态只保留账号头像:昵称、QQ 与「切换」文字隐藏,避免挤压 64px 栏宽。 */
|
|
|
|
|
|
.sidebar.collapsed .sidebar-bottom .account-meta,
|
|
|
|
|
|
.sidebar.collapsed .sidebar-bottom .account-switch-text {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .sidebar-bottom .account-trigger {
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
padding: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .sidebar-bottom .account-popover {
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
width: 264px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .nav-toggle svg {
|
|
|
|
|
|
transform: rotate(180deg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 收起态:悬浮 / 键盘聚焦时显示文字标签。 */
|
|
|
|
|
|
.sidebar.collapsed .nav-item::after {
|
|
|
|
|
|
content: attr(data-label);
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: calc(100% + 10px);
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
z-index: 30;
|
|
|
|
|
|
padding: 5px 9px;
|
|
|
|
|
|
border-radius: 7px;
|
|
|
|
|
|
background: light-dark(#1f2a3d, #e6ecff);
|
|
|
|
|
|
color: light-dark(#ffffff, #1f2a3d);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transform: translateY(-50%) translateX(-4px);
|
|
|
|
|
|
transition: opacity .14s ease, transform .14s ease;
|
|
|
|
|
|
box-shadow: 0 8px 22px #1018282e;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar.collapsed .nav-item:hover::after,
|
|
|
|
|
|
.sidebar.collapsed .nav-item:focus-visible::after {
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
transform: translateY(-50%) translateX(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
|
.sidebar,
|
|
|
|
|
|
.sidebar .nav-toggle svg,
|
|
|
|
|
|
.sidebar .nav-item,
|
|
|
|
|
|
.sidebar .nav-text,
|
|
|
|
|
|
.sidebar .nav-label,
|
|
|
|
|
|
.sidebar .sidebar-bottom {
|
|
|
|
|
|
transition: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- 管理台 v1 设计 token */
|
|
|
|
|
|
/* 取值来源:docs/design/qlinker-admin-v1/设计规范与组件清单.md 1.1–1.7。 */
|
|
|
|
|
|
:root {
|
|
|
|
|
|
--site-primary: #4F5BEF;
|
|
|
|
|
|
--site-background: #F6F7FB;
|
|
|
|
|
|
--site-on-background: #171B26;
|
|
|
|
|
|
|
|
|
|
|
|
--qk-bg: #F6F7FB;
|
|
|
|
|
|
--qk-card: #FFFFFF;
|
|
|
|
|
|
--qk-line: #EDF0F5;
|
|
|
|
|
|
--qk-line-strong: #E4E7EF;
|
|
|
|
|
|
--qk-primary: #4F5BEF;
|
|
|
|
|
|
--qk-primary-weak: #EEF0FE;
|
|
|
|
|
|
--qk-primary-ink: #3B46C9;
|
|
|
|
|
|
--qk-slate-weak: #F8F9FC;
|
|
|
|
|
|
--qk-text: #171B26;
|
|
|
|
|
|
--qk-text-2: #5B6172;
|
|
|
|
|
|
--qk-text-3: #6B7280;
|
|
|
|
|
|
--qk-text-4: #9AA1B2;
|
|
|
|
|
|
--qk-green: #22C55E;
|
|
|
|
|
|
--qk-green-ink: #15803D;
|
|
|
|
|
|
--qk-green-weak: #F0FDF4;
|
|
|
|
|
|
--qk-red: #EF4444;
|
|
|
|
|
|
--qk-red-ink: #B91C1C;
|
|
|
|
|
|
--qk-red-weak: #FEF2F2;
|
|
|
|
|
|
--qk-amber: #F59E0B;
|
|
|
|
|
|
--qk-amber-ink: #B45309;
|
|
|
|
|
|
--qk-amber-weak: #FFFBEB;
|
|
|
|
|
|
--qk-cyan: #0EA5E9;
|
|
|
|
|
|
--qk-cyan-ink: #0369A1;
|
|
|
|
|
|
--qk-cyan-weak: #F0F9FF;
|
|
|
|
|
|
--qk-head-bg: #FAFBFD;
|
|
|
|
|
|
--qk-font-num: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
|
|
|
|
--qk-font-mono: 'Consolas', 'JetBrains Mono', monospace;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
body,
|
|
|
|
|
|
.app {
|
|
|
|
|
|
background: light-dark(var(--qk-bg), #0c1220);
|
|
|
|
|
|
color: light-dark(var(--qk-text), #e7ecf6);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 顶栏 52px:面包屑 + 实例胶囊 + 模式 + 账号 */
|
|
|
|
|
|
.topbar {
|
|
|
|
|
|
height: 52px;
|
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
background: light-dark(var(--qk-card), #121b2b);
|
|
|
|
|
|
border-bottom: 1px solid light-dark(var(--qk-line), #253147);
|
|
|
|
|
|
}
|
|
|
|
|
|
.shell { min-height: calc(100vh - 52px); }
|
|
|
|
|
|
.topbar .crumb {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.topbar .crumb strong { color: light-dark(var(--qk-text), #e7ecf6); font-weight: 650; }
|
|
|
|
|
|
.topbar .crumb-sep { color: light-dark(var(--qk-text-4), #6b788f); }
|
|
|
|
|
|
.topbar .instance {
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
|
border: 1px solid light-dark(var(--qk-line-strong), #344158);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.topbar .instance .dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--qk-green); }
|
|
|
|
|
|
.topbar .instance span { color: light-dark(var(--qk-text-2), #b3bed0); font-family: var(--qk-font-num); }
|
|
|
|
|
|
.topbar .mode-chip {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 5px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
background: var(--qk-green-weak);
|
|
|
|
|
|
color: var(--qk-green-ink);
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
.topbar .mode-chip:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qk-green); }
|
|
|
|
|
|
.topbar .global-search {
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
max-width: 320px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
border-color: light-dark(var(--qk-line-strong), #334057);
|
|
|
|
|
|
background: light-dark(var(--qk-slate-weak), #192437);
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.topbar .top-actions { gap: 8px; }
|
|
|
|
|
|
.topbar .icon-btn {
|
|
|
|
|
|
width: 26px;
|
|
|
|
|
|
height: 26px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
border-color: light-dark(var(--qk-line-strong), #344158);
|
|
|
|
|
|
background: light-dark(var(--qk-card), #1a2638);
|
|
|
|
|
|
}
|
|
|
|
|
|
.topbar .avatar {
|
|
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
background: var(--qk-primary);
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 650;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 侧栏 238 / 64 */
|
|
|
|
|
|
.sidebar {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
width: 238px;
|
|
|
|
|
|
padding: 14px 12px;
|
|
|
|
|
|
gap: 2px;
|
|
|
|
|
|
background: light-dark(var(--qk-card), #121b2b);
|
|
|
|
|
|
border-right: 1px solid light-dark(var(--qk-line), #253147);
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar-head { min-height: 38px; padding: 0 6px 10px; gap: 6px; justify-content: flex-start; }
|
|
|
|
|
|
.sidebar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
|
|
|
|
|
|
.sidebar-brand .brand-logo {
|
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
border-radius: 7px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar-brand .brand-logo img { display: block; width: 100%; height: 100%; }
|
|
|
|
|
|
.sidebar-brand .brand-text strong { font-size: 15px; letter-spacing: -.2px; }
|
|
|
|
|
|
.sidebar-brand .brand-text span { font-size: 10px; color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
.sidebar .nav-toggle {
|
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
background: light-dark(var(--qk-bg), #1d2a40);
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar .nav-label { font-size: 11px; line-height: 16px; color: light-dark(var(--qk-text-4), #8a96aa); font-weight: 500; letter-spacing: 0; padding: 8px 10px 4px; }
|
|
|
|
|
|
.sidebar .nav-item { height: 34px; padding: 0 10px; border-radius: 8px; gap: 9px; font-size: 13px; font-weight: 500; color: light-dark(var(--qk-text-2), #a8b3c8); }
|
|
|
|
|
|
.sidebar .nav-item:hover { background: light-dark(var(--qk-bg), #1d2a40); color: var(--qk-primary); }
|
|
|
|
|
|
.sidebar .nav-item.active { background: var(--qk-primary-weak); color: var(--qk-primary); font-weight: 600; }
|
|
|
|
|
|
.sidebar .nav-icon { width: 18px; font-size: 14px; }
|
|
|
|
|
|
.sidebar .sidebar-bottom { border: 1px solid light-dark(var(--qk-line), #2b374d); border-radius: 10px; padding: 11px 11px 10px; background: light-dark(var(--qk-slate-weak), #182337); }
|
|
|
|
|
|
.sidebar .sidebar-bottom strong { font-size: 11px; color: light-dark(#374151, #e7ecf6); }
|
|
|
|
|
|
.sidebar .sidebar-bottom p { font-size: 10px; line-height: 15px; color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
.sidebar .sidebar-bottom .btn { height: 24px; font-size: 10.5px; }
|
|
|
|
|
|
.sidebar.collapsed { width: 64px; padding: 14px 10px; }
|
|
|
|
|
|
.sidebar.collapsed .sidebar-head { justify-content: center; gap: 2px; padding: 0 0 12px; }
|
|
|
|
|
|
.sidebar.collapsed .sidebar-brand { flex: 0 0 auto; }
|
|
|
|
|
|
.sidebar.collapsed .sidebar-brand .brand-logo { width: 24px; height: 24px; }
|
|
|
|
|
|
.sidebar.collapsed .sidebar-brand .brand-text { display: none; }
|
|
|
|
|
|
.sidebar.collapsed .sidebar-head .nav-toggle { width: 22px; height: 22px; margin-left: 0; }
|
|
|
|
|
|
.sidebar.collapsed .nav-label { max-height: 0; padding: 0; opacity: 0; }
|
|
|
|
|
|
.sidebar.collapsed .nav-item { height: 36px; border-radius: 8px; }
|
|
|
|
|
|
|
|
|
|
|
|
/* 内容区与卡片 */
|
|
|
|
|
|
.content { padding: 20px 24px 32px; max-width: none; }
|
|
|
|
|
|
.grid { gap: 12px; }
|
|
|
|
|
|
.stats { gap: 12px; margin-bottom: 12px; }
|
|
|
|
|
|
.card {
|
|
|
|
|
|
background: light-dark(var(--qk-card), #121b2b);
|
|
|
|
|
|
border: 1px solid light-dark(var(--qk-line), #273247);
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.card-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
min-height: 46px;
|
|
|
|
|
|
margin: -16px -16px 12px;
|
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
|
border-bottom: 1px solid light-dark(var(--qk-line), #253147);
|
|
|
|
|
|
}
|
|
|
|
|
|
.card-title { font-size: 13px; line-height: 18px; font-weight: 600; }
|
|
|
|
|
|
.card-sub { font-size: 11px; color: light-dark(var(--qk-text-4), #8a96aa); font-weight: 400; }
|
|
|
|
|
|
.stat-top { font-size: 11px; color: light-dark(var(--qk-text-3), #b3bed0); }
|
|
|
|
|
|
.stat-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; background: var(--qk-primary-weak); color: var(--qk-primary); }
|
|
|
|
|
|
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin: 8px 0 4px; font-family: var(--qk-font-num); font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
.stat-foot { font-size: 10px; color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
|
|
|
|
|
|
/* 表格 */
|
|
|
|
|
|
th {
|
|
|
|
|
|
height: 34px;
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0);
|
|
|
|
|
|
background: light-dark(var(--qk-head-bg), #172235);
|
|
|
|
|
|
border-bottom: 1px solid light-dark(var(--qk-line), #2b374c);
|
|
|
|
|
|
}
|
|
|
|
|
|
td {
|
|
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
|
border-bottom: 1px solid light-dark(var(--qk-line), #253147);
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
line-height: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
tbody tr { height: 58px; }
|
|
|
|
|
|
.table-compact th { height: 30px; }
|
|
|
|
|
|
.table-compact td { height: 36px; padding: 3px 10px; }
|
|
|
|
|
|
.table-compact tbody tr { height: 36px; }
|
|
|
|
|
|
.identity { gap: 8px; min-width: 120px; }
|
|
|
|
|
|
.identity strong { font-size: 11.5px; line-height: 16px; font-weight: 600; }
|
|
|
|
|
|
.identity span { font-size: 9px; line-height: 13px; color: light-dark(var(--qk-text-4), #8a96aa); margin-top: 2px; font-family: var(--qk-font-num); }
|
|
|
|
|
|
.mini-avatar { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; background: var(--qk-primary-weak); color: var(--qk-primary); }
|
|
|
|
|
|
.table-actions { gap: 6px; align-items: center; }
|
|
|
|
|
|
.small-muted { color: light-dark(var(--qk-text-4), #8a96aa); font-size: 10px; }
|
|
|
|
|
|
|
|
|
|
|
|
/* 按钮 / 输入 / 页签 / 徽标 */
|
|
|
|
|
|
.btn {
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
gap: 5px;
|
|
|
|
|
|
border-color: light-dark(var(--qk-line-strong), #3a465d);
|
|
|
|
|
|
background: light-dark(var(--qk-card), #1a2638);
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
.btn:hover { border-color: #A9B1FF; }
|
|
|
|
|
|
.btn.primary { background: var(--qk-primary); border-color: var(--qk-primary); color: #fff; }
|
|
|
|
|
|
.btn.primary:hover { background: #4450DD; }
|
|
|
|
|
|
.btn.danger { color: var(--qk-red-ink); border-color: #FBD5D5; }
|
|
|
|
|
|
.btn.danger:hover { background: var(--qk-red-weak); }
|
|
|
|
|
|
.btn.sm, .btn.xs { height: 24px; padding: 0 8px; font-size: 11px; border-radius: 6px; }
|
|
|
|
|
|
.btn.lg { height: 36px; padding: 0 16px; font-size: 12px; }
|
|
|
|
|
|
.btn.block { width: 100%; justify-content: center; }
|
|
|
|
|
|
.field {
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
padding: 0 9px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
border-color: light-dark(var(--qk-line-strong), #37445b);
|
|
|
|
|
|
background: light-dark(var(--qk-card), #172235);
|
|
|
|
|
|
}
|
|
|
|
|
|
.field:focus { border-color: #8F98F5; box-shadow: 0 0 0 3px #4F5BEF1C; }
|
|
|
|
|
|
.fld > label { font-size: 11px; font-weight: 500; color: light-dark(var(--qk-text-2), #b3bed0); }
|
|
|
|
|
|
.fld .field.invalid { border-color: var(--qk-red); background: var(--qk-red-weak); box-shadow: none; }
|
|
|
|
|
|
.fld .field-error { font-size: 10px; color: var(--qk-red-ink); }
|
|
|
|
|
|
.fld .field-hint { font-size: 10px; }
|
|
|
|
|
|
.fld textarea.field { height: auto; min-height: 80px; padding: 8px; }
|
|
|
|
|
|
.tabs {
|
|
|
|
|
|
gap: 2px;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
border-bottom: 1px solid light-dark(var(--qk-line-strong), #253147);
|
|
|
|
|
|
}
|
|
|
|
|
|
.tab {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0);
|
|
|
|
|
|
border-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.tab.active { color: var(--qk-primary); font-weight: 600; border-bottom-color: transparent; }
|
|
|
|
|
|
.tab.active:after {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 14px;
|
|
|
|
|
|
right: 14px;
|
|
|
|
|
|
bottom: -1px;
|
|
|
|
|
|
height: 2px;
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
background: var(--qk-primary);
|
|
|
|
|
|
}
|
|
|
|
|
|
.tab .tab-count { color: light-dark(var(--qk-text-4), #8a96aa); font-size: 10px; margin-left: 4px; font-family: var(--qk-font-num); }
|
|
|
|
|
|
.tab.active .tab-count { color: var(--qk-primary-ink); }
|
|
|
|
|
|
.pill {
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
padding: 0 7px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
border-color: light-dark(var(--qk-line-strong), #344158);
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0);
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.status {
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
padding: 0 7px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.status:before { width: 5px; height: 5px; }
|
|
|
|
|
|
.success { color: var(--qk-green-ink); background: var(--qk-green-weak); }
|
|
|
|
|
|
.warning { color: var(--qk-amber-ink); background: var(--qk-amber-weak); }
|
|
|
|
|
|
.error { color: var(--qk-red-ink); background: var(--qk-red-weak); }
|
|
|
|
|
|
.info { color: var(--qk-primary-ink); background: var(--qk-primary-weak); }
|
|
|
|
|
|
.neutral { color: var(--qk-text-3); background: light-dark(#F3F4F6, #252f40); }
|
|
|
|
|
|
.code { font-family: var(--qk-font-mono); font-size: 10px; color: light-dark(var(--qk-text-2), #b3bed0); word-break: break-all; }
|
|
|
|
|
|
.notice { border-radius: 8px; padding: 9px 11px; font-size: 11px; line-height: 1.6; border-color: #DDE1FD; background: #F5F7FF; color: var(--qk-primary-ink); }
|
|
|
|
|
|
.notice.warn { border-color: #FDE9C2; background: #FFF9EC; color: #8A5B12; }
|
|
|
|
|
|
.notice.danger { border-color: #FECACA; background: var(--qk-red-weak); color: var(--qk-red-ink); }
|
|
|
|
|
|
.notice .btn { height: 24px; font-size: 10.5px; }
|
|
|
|
|
|
.filterbar { gap: 8px; margin-bottom: 12px; }
|
|
|
|
|
|
.filterbar .field { min-width: 108px; }
|
|
|
|
|
|
.filterbar .searchfield { flex: 1 1 220px; min-width: 180px; }
|
|
|
|
|
|
.pager {
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
padding: 0 12px;
|
|
|
|
|
|
border-top: 1px solid light-dark(var(--qk-line), #253147);
|
|
|
|
|
|
}
|
|
|
|
|
|
.pager .pager-info { font-size: 10px; color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
.pager .pager-actions { display: flex; gap: 4px; align-items: center; }
|
|
|
|
|
|
.pager select {
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
padding: 0 6px;
|
|
|
|
|
|
border: 1px solid light-dark(var(--qk-line), #344158);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
background: light-dark(var(--qk-card), #121b2b);
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0);
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.pg-btn {
|
|
|
|
|
|
min-width: 22px;
|
|
|
|
|
|
height: 22px;
|
|
|
|
|
|
padding: 0 5px;
|
|
|
|
|
|
border: 1px solid light-dark(var(--qk-line), #344158);
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
background: light-dark(var(--qk-card), #121b2b);
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0);
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
font-family: var(--qk-font-num);
|
|
|
|
|
|
}
|
|
|
|
|
|
.pg-btn:hover:not(:disabled) { border-color: light-dark(#b9c2d6, #4a5b7a); color: light-dark(var(--qk-text-2), #dbe3f0); }
|
|
|
|
|
|
.pg-btn.active,
|
|
|
|
|
|
.pg-btn.active:disabled {
|
|
|
|
|
|
border-color: light-dark(#c7ccff, #39438f);
|
|
|
|
|
|
background: light-dark(var(--qk-primary-weak), #1c2445);
|
|
|
|
|
|
color: var(--qk-primary);
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
.pg-btn:disabled:not(.active) { opacity: .55; }
|
|
|
|
|
|
.state-block { padding: 32px 16px; border-radius: 8px; background: light-dark(var(--qk-slate-weak), #182337); font-size: 11px; }
|
|
|
|
|
|
.state-block strong { font-size: 12px; }
|
|
|
|
|
|
|
|
|
|
|
|
/* 弹窗统一由 Element Plus el-dialog 承载(见 styles/element-theme.css) */
|
|
|
|
|
|
.switch { width: 28px; height: 16px; padding: 2px; border-radius: 8px; background: var(--qk-green); }
|
|
|
|
|
|
.switch:after { width: 12px; height: 12px; }
|
|
|
|
|
|
.switch.off { background: #E5E7EB; }
|
|
|
|
|
|
.switch:disabled { opacity: .5; }
|
|
|
|
|
|
.drawer { background: light-dark(var(--qk-card), #121b2b); }
|
|
|
|
|
|
.drawer-head { padding: 14px 18px; border-color: light-dark(var(--qk-line), #273247); }
|
|
|
|
|
|
.drawer-head h3 { font-size: 15px; }
|
|
|
|
|
|
.drawer-body { padding: 14px 18px 28px; }
|
|
|
|
|
|
.drawer-section { padding: 14px 0; }
|
|
|
|
|
|
.drawer-section h4 { font-size: 12px; margin-bottom: 10px; }
|
|
|
|
|
|
.kv-row { font-size: 11px; gap: 10px; }
|
|
|
|
|
|
.kv-row span:first-child { color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
.segment { border-radius: 8px; padding: 8px 10px; }
|
|
|
|
|
|
.segment .seg-head, .segment .seg-body { font-size: 11px; }
|
|
|
|
|
|
|
|
|
|
|
|
/* 其他通用 */
|
|
|
|
|
|
.eyebrow { font-size: 11px; color: light-dark(var(--qk-text-4), #8a96aa); margin-bottom: 4px; }
|
|
|
|
|
|
.page-actions { margin-bottom: 12px; }
|
|
|
|
|
|
.actions { gap: 8px; }
|
|
|
|
|
|
.inline-warn { font-size: 10px; color: var(--qk-amber-ink); }
|
|
|
|
|
|
.tooltip-hint { font-size: 10px; color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
.right-col { width: 326px; flex: 0 0 326px; }
|
|
|
|
|
|
.right-col-wide { width: 340px; flex: 0 0 340px; }
|
|
|
|
|
|
.split { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
|
|
|
|
|
|
.split > .main { flex: 1; min-width: 0; }
|
|
|
|
|
|
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
|
|
|
|
|
|
.stat-card { background: light-dark(var(--qk-card), #121b2b); border: 1px solid light-dark(var(--qk-line), #273247); border-radius: 12px; padding: 12px 14px; }
|
|
|
|
|
|
.stat-card .stat-label { font-size: 10px; color: light-dark(var(--qk-text-3), #b3bed0); display: flex; align-items: center; gap: 6px; }
|
|
|
|
|
|
.stat-card .stat-num { font-size: 22px; font-weight: 700; margin-top: 4px; font-family: var(--qk-font-num); font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
.stat-card .stat-num small { font-size: 10px; font-weight: 400; color: light-dark(var(--qk-text-4), #8a96aa); margin-left: 4px; }
|
|
|
|
|
|
.segmented { display: inline-flex; padding: 2px; border-radius: 6px; background: light-dark(var(--qk-bg), #182337); border: 1px solid light-dark(var(--qk-line), #2b374d); }
|
|
|
|
|
|
.segmented button { height: 24px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: light-dark(var(--qk-text-3), #b3bed0); font-size: 10.5px; }
|
|
|
|
|
|
.segmented button.active { background: var(--qk-primary-weak); color: var(--qk-primary-ink); font-weight: 600; }
|
|
|
|
|
|
.empty-line { padding: 24px; text-align: center; font-size: 11px; color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
.badge-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
|
|
|
|
|
|
.badge-dot.g { background: var(--qk-green); }
|
|
|
|
|
|
.badge-dot.r { background: var(--qk-red); }
|
|
|
|
|
|
.badge-dot.a { background: var(--qk-amber); }
|
|
|
|
|
|
.badge-dot.n { background: var(--qk-text-4); }
|
|
|
|
|
|
|
|
|
|
|
|
/* v2 自动化规则列表右栏与通用 chip */
|
|
|
|
|
|
.rules-layout { display: flex; gap: 12px; align-items: flex-start; }
|
|
|
|
|
|
.rules-main { flex: 1; min-width: 0; }
|
|
|
|
|
|
.rules-aside { width: 300px; flex: 0 0 300px; display: flex; flex-direction: column; gap: 12px; }
|
|
|
|
|
|
.aside-body { display: flex; flex-direction: column; gap: 10px; font-size: 11px; }
|
|
|
|
|
|
.aside-meta { display: flex; flex-direction: column; gap: 2px; color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
.aside-meta b { color: light-dark(var(--qk-text-2), #a8b3c8); font-weight: 500; word-break: break-all; }
|
|
|
|
|
|
.aside-list { margin: 0; padding-left: 16px; line-height: 1.7; color: light-dark(var(--qk-text-3), #b3bed0); }
|
|
|
|
|
|
.aside-body .flow-list { gap: 8px; }
|
|
|
|
|
|
.flow-list > div { display: flex; justify-content: space-between; gap: 8px; }
|
|
|
|
|
|
.flow-list b { font-weight: 600; }
|
|
|
|
|
|
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px;
|
|
|
|
|
|
font-size: 10px; border: 1px solid light-dark(var(--qk-line), #273247); background: light-dark(var(--qk-bg), #182337);
|
|
|
|
|
|
color: light-dark(var(--qk-text-3), #b3bed0); white-space: nowrap; }
|
|
|
|
|
|
.chip.ok { color: #2e6b34; border-color: #c8e6c9; background: #f1f8f1; }
|
|
|
|
|
|
.chip.warn { color: #8a5a12; border-color: #f0dcb4; background: #fdf8ef; }
|
|
|
|
|
|
.chip.muted { color: light-dark(var(--qk-text-4), #8a96aa); }
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
|
|
.rules-layout { flex-direction: column; }
|
|
|
|
|
|
.rules-aside { width: 100%; flex-basis: auto; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
|
|
.content { padding: 18px 20px 32px; }
|
|
|
|
|
|
.sidebar { width: 210px; }
|
|
|
|
|
|
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
|
|
|
|
.split { flex-direction: column; }
|
|
|
|
|
|
.right-col, .right-col-wide { width: 100%; flex-basis: auto; }
|
|
|
|
|
|
}
|
|
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
|
|
.topbar { height: 52px; padding: 0 12px; }
|
|
|
|
|
|
.shell { min-height: calc(100vh - 52px); }
|
|
|
|
|
|
.topbar .crumb { font-size: 11px; }
|
|
|
|
|
|
.topbar .global-search { display: none; }
|
|
|
|
|
|
.topbar .mode-chip { display: none; }
|
|
|
|
|
|
.content { padding: 14px 12px 80px; }
|
|
|
|
|
|
.card { padding: 14px; }
|
|
|
|
|
|
.card-head { margin: -14px -14px 10px; }
|
|
|
|
|
|
.stat-grid { grid-template-columns: 1fr 1fr; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 全局布局:导航固定一屏,页面内容在右侧内部滚动;顶栏保持可见。 */
|
|
|
|
|
|
.app {
|
|
|
|
|
|
height: 100vh;
|
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
.shell {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 仅导航列表可滚动;账号切换浮层在 sidebar-bottom 内,不受导航滚动容器裁切。 */
|
|
|
|
|
|
.sidebar-nav {
|
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
.sidebar-bottom {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.content {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
|
|
/* 移动端保留整页滚动与底部固定导航,避免内容被 100vh 裁切。 */
|
|
|
|
|
|
.app {
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
}
|
|
|
|
|
|
.content {
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
overflow-y: visible;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|