feat(frontend): 管理台按原型落地,新增独立消息检索页与演示数据开关
This commit is contained in:
@@ -0,0 +1,218 @@
|
||||
/* 在原型 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;
|
||||
}
|
||||
.auth-brand .brand-text strong { color: #fff; }
|
||||
.auth-brand .brand-text span { color: #9fb0d8; }
|
||||
.auth-brand .logo { background: #fff; color: var(--site-primary); box-shadow: none; }
|
||||
.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; }
|
||||
}
|
||||
Reference in New Issue
Block a user