移除被错误提交的测试用exe文件
All checks were successful
build / build (api, amd64, linux) (push) Successful in -49s
build / build (api, arm64, linux) (push) Successful in -47s
build / build (api.exe, amd64, windows) (push) Successful in -47s

修复前后端逻辑
This commit is contained in:
CN-JS-HuiBai
2026-04-17 10:40:05 +08:00
parent 1ed31b9292
commit d077eae2f6
10 changed files with 1794 additions and 1289 deletions

View File

@@ -1,677 +1,487 @@
:root {
--bg: #eff3f9;
--bg-accent: #f8fbff;
--surface: #ffffff;
--surface-soft: #f5f8fc;
--surface-strong: #ecf2fb;
--border: #d9e1ef;
--border-strong: #c8d4e7;
--text: #172033;
--muted: #61708b;
--muted-soft: #8c9ab2;
--brand: #1677ff;
--brand-strong: #0f5fd6;
--brand-soft: #eaf2ff;
--success: #168a54;
--warn: #d97706;
--danger: #c0392b;
--sidebar: #0f1728;
--sidebar-panel: #141f35;
--sidebar-muted: #8ea0c3;
/* Nebula Dark Palette */
--bg: #07101b;
--panel: rgba(9, 20, 35, 0.78);
--panel-strong: rgba(11, 24, 41, 0.92);
--text: #eef6ff;
--text-dim: rgba(227, 239, 255, 0.72);
--text-faint: rgba(227, 239, 255, 0.54);
--border: rgba(152, 192, 255, 0.16);
--shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
--shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.22);
/* Brand/Accent */
--accent: #6ce5ff;
--accent-strong: #21b8ff;
--accent-soft: rgba(108, 229, 255, 0.12);
--accent-rgb: 108, 229, 255;
/* Indicators */
--success: #65f0b7;
--warn: #ffca7a;
--danger: #ff8db5;
/* Radius */
--radius-xl: 28px;
--radius-lg: 20px;
--radius-md: 14px;
/* Sidebar */
--sidebar: #091221;
--sidebar-active: #ffffff;
--sidebar-border: rgba(255, 255, 255, 0.08);
--shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
--shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.05);
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
--sidebar-muted: rgba(227, 239, 255, 0.5);
font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
}
* {
box-sizing: border-box;
}
html,
body {
html, body {
margin: 0;
min-height: 100%;
background:
radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 30%),
radial-gradient(circle at top right, rgba(255, 201, 122, 0.08), transparent 22%),
linear-gradient(180deg, #050d16 0%, #07101b 100%);
color: var(--text);
overflow-x: hidden;
}
body {
margin: 0;
color: var(--text);
background:
radial-gradient(circle at top left, rgba(22, 119, 255, 0.12), transparent 28%),
radial-gradient(circle at right top, rgba(15, 95, 214, 0.08), transparent 24%),
linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 100%);
body::before {
content: "";
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(155, 192, 255, 0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(155, 192, 255, 0.04) 1px, transparent 1px);
background-size: 64px 64px;
mask-image: radial-gradient(circle at top center, black, transparent 80%);
pointer-events: none;
z-index: -1;
}
a {
color: inherit;
text-decoration: none;
transition: opacity 0.2s ease;
}
button,
input,
select,
textarea {
a:hover {
opacity: 0.8;
}
button, input, select, textarea {
font: inherit;
background: transparent;
color: inherit;
}
/* Glass Component Base */
.glass-card {
background: var(--panel);
backdrop-filter: blur(18px);
border: 1px solid var(--border);
box-shadow: var(--shadow-soft);
}
/* Main Layout */
.admin-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 272px minmax(0, 1fr);
grid-template-columns: 280px minmax(0, 1fr);
gap: 0;
}
/* Sidebar */
.admin-sidebar {
position: sticky;
top: 0;
height: 100vh;
overflow: auto;
padding: 26px 18px 22px;
color: #fff;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
linear-gradient(180deg, #121c2f 0%, #0d1524 100%);
border-right: 1px solid rgba(255, 255, 255, 0.03);
background: var(--sidebar);
border-right: 1px solid var(--border);
padding: 32px 20px;
display: flex;
flex-direction: column;
gap: 32px;
}
.sidebar-brand {
padding: 18px 16px 20px;
border-radius: 20px;
border: 1px solid var(--sidebar-border);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
padding: 0 12px;
}
.sidebar-brand-mark {
display: inline-flex;
align-items: center;
margin-bottom: 12px;
padding: 6px 10px;
padding: 6px 12px;
background: var(--accent-soft);
color: var(--accent);
border: 1px solid rgba(var(--accent-rgb), 0.2);
border-radius: 999px;
background: rgba(22, 119, 255, 0.16);
color: #b9d5ff;
font-size: 11px;
letter-spacing: 0.08em;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
margin-bottom: 14px;
}
.sidebar-brand strong {
display: block;
font-size: 24px;
line-height: 1.15;
color: var(--sidebar-active);
font-size: 26px;
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.1;
}
.sidebar-brand span:last-child {
.sidebar-brand span {
display: block;
margin-top: 10px;
color: var(--sidebar-muted);
font-size: 12px;
line-height: 1.5;
}
.sidebar-nav-label,
.sidebar-meta-label {
display: block;
color: var(--sidebar-muted);
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
font-size: 13px;
color: var(--text-faint);
margin-top: 8px;
}
.sidebar-nav-label {
margin: 22px 12px 10px;
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--text-faint);
margin: 24px 12px 12px;
}
.sidebar-nav {
display: grid;
gap: 8px;
gap: 6px;
}
.sidebar-item {
position: relative;
display: block;
padding: 12px 16px;
border-radius: var(--radius-md);
color: var(--sidebar-muted);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid transparent;
border-radius: 16px;
padding: 14px 14px 14px 16px;
transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sidebar-item:hover {
transform: translateX(2px);
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.06);
background: rgba(255, 255, 255, 0.04);
color: var(--text);
transform: translateX(4px);
}
.sidebar-item.active {
background: linear-gradient(180deg, rgba(22, 119, 255, 0.22), rgba(22, 119, 255, 0.12));
border-color: rgba(95, 162, 255, 0.28);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sidebar-item.active::before {
content: "";
position: absolute;
left: -6px;
top: 14px;
bottom: 14px;
width: 3px;
border-radius: 999px;
background: #7db3ff;
background: var(--accent-soft);
color: var(--accent);
border-color: rgba(var(--accent-rgb), 0.24);
box-shadow: inset 0 0 12px rgba(var(--accent-rgb), 0.08);
}
.sidebar-item strong {
display: block;
font-size: 14px;
color: var(--sidebar-active);
font-size: 15px;
font-weight: 700;
}
.sidebar-item span {
display: block;
margin-top: 6px;
color: var(--sidebar-muted);
font-size: 12px;
line-height: 1.45;
}
.sidebar-meta,
.sidebar-footer {
margin-top: 18px;
padding: 14px 16px;
border-radius: 16px;
border: 1px solid var(--sidebar-border);
background: rgba(255, 255, 255, 0.04);
}
.sidebar-meta strong {
display: block;
margin-top: 8px;
color: var(--sidebar-active);
font-size: 15px;
}
.sidebar-footer {
color: var(--sidebar-muted);
font-size: 12px;
line-height: 1.65;
opacity: 0.7;
margin-top: 2px;
}
/* Main Content */
.admin-main {
padding: 32px 40px;
min-width: 0;
padding: 22px 26px 30px;
}
.topbar {
position: sticky;
top: 0;
z-index: 5;
padding: 24px 28px;
border-radius: var(--radius-xl);
margin-bottom: 32px;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
padding: 18px 22px;
margin-bottom: 22px;
border: 1px solid rgba(255, 255, 255, 0.72);
border-radius: 24px;
background: rgba(255, 255, 255, 0.84);
backdrop-filter: blur(18px);
box-shadow: var(--shadow-soft);
align-items: flex-start;
gap: 24px;
}
.topbar-copy {
min-width: 0;
.topbar-copy h1 {
margin: 0;
font-size: 32px;
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.1;
}
.topbar-copy p {
margin: 10px 0 0;
font-size: 15px;
color: var(--text-dim);
}
.topbar-eyebrow {
display: inline-flex;
margin-bottom: 8px;
padding: 5px 10px;
border-radius: 999px;
background: var(--brand-soft);
color: var(--brand-strong);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.topbar h1 {
margin: 0;
font-size: 30px;
line-height: 1.15;
}
.topbar p {
margin: 8px 0 0;
color: var(--muted);
line-height: 1.6;
letter-spacing: 0.15em;
color: var(--accent);
margin-bottom: 10px;
}
.topbar-meta {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 14px;
gap: 12px;
margin-top: 16px;
}
.topbar-chip {
display: inline-flex;
align-items: center;
padding: 7px 11px;
padding: 6px 12px;
border-radius: 999px;
background: rgba(255,255,255,0.05);
border: 1px solid var(--border);
background: var(--surface-soft);
color: var(--muted);
font-size: 12px;
color: var(--text-dim);
}
.page-shell {
display: grid;
gap: 18px;
}
.page-hero,
.page-section,
.plugin-card,
.stat-card {
overflow: hidden;
}
.page-hero {
display: grid;
grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
gap: 20px;
align-items: stretch;
}
.page-hero-copy h2 {
margin: 10px 0 10px;
font-size: 28px;
line-height: 1.2;
}
.page-hero-copy p {
margin: 0;
color: var(--muted);
line-height: 1.7;
}
.page-hero-label,
.section-kicker {
display: inline-flex;
color: var(--brand-strong);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.page-hero-side {
display: grid;
gap: 12px;
}
.hero-metric {
display: grid;
align-content: center;
gap: 6px;
padding: 18px;
border: 1px solid var(--border);
border-radius: 18px;
background: linear-gradient(180deg, var(--surface-soft), #fff);
}
.hero-metric span {
color: var(--muted);
font-size: 12px;
}
.hero-metric strong {
font-size: 22px;
line-height: 1.2;
}
/* Cards & Grid */
.grid {
display: grid;
gap: 18px;
gap: 20px;
}
.grid-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.plugin-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
background: var(--surface);
border: 1px solid rgba(255, 255, 255, 0.72);
border-radius: 24px;
box-shadow: var(--shadow);
padding: 22px;
padding: 28px;
border-radius: var(--radius-xl);
}
.card h2,
.card h3 {
margin: 0;
}
.card p {
margin: 0;
color: var(--muted);
line-height: 1.65;
}
.section-headline {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
margin-bottom: 18px;
}
.section-headline h2 {
margin-top: 8px;
.card h2 {
font-size: 22px;
}
.section-copy {
max-width: 520px;
color: var(--muted);
line-height: 1.65;
}
.status-strip {
display: flex;
align-items: center;
}
.stat {
display: grid;
gap: 10px;
}
.stat strong {
font-size: 30px;
line-height: 1.15;
}
.hint {
color: var(--muted);
font-size: 13px;
line-height: 1.6;
}
.toolbar {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
border: 1px solid transparent;
border-radius: 14px;
padding: 10px 16px;
cursor: pointer;
font-weight: 600;
transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
transform: translateY(-1px);
}
.btn-primary {
color: #fff;
background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
box-shadow: 0 10px 20px rgba(22, 119, 255, 0.2);
}
.btn-secondary {
color: var(--brand-strong);
background: var(--brand-soft);
border-color: rgba(22, 119, 255, 0.08);
}
.btn-ghost {
color: var(--text);
background: #fff;
border-color: var(--border);
}
.status-pill {
display: inline-flex;
align-items: center;
gap: 8px;
width: fit-content;
padding: 7px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
margin: 0 0 14px;
}
.status-ok {
background: rgba(22, 138, 84, 0.12);
color: var(--success);
.stat-card {
display: flex;
flex-direction: column;
gap: 12px;
}
.status-warn {
background: rgba(217, 119, 6, 0.12);
color: var(--warn);
.stat-card strong {
font-size: 34px;
font-weight: 800;
letter-spacing: -0.04em;
color: var(--accent);
}
.status-danger {
background: rgba(192, 57, 43, 0.12);
color: var(--danger);
.stat-card span {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-faint);
}
/* Table Design */
.table-wrap {
overflow: auto;
border-radius: var(--radius-lg);
border: 1px solid var(--border);
border-radius: 18px;
background: #fff;
background: rgba(255, 255, 255, 0.02);
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
min-width: 680px;
}
th,
td {
th, td {
padding: 16px 20px;
text-align: left;
padding: 14px 14px;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
th {
position: sticky;
top: 0;
z-index: 1;
background: var(--surface-soft);
color: var(--muted);
background: rgba(255, 255, 255, 0.04);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.02em;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-faint);
}
tbody tr:hover {
background: #f8fbff;
}
td {
font-size: 14px;
background: rgba(255, 255, 255, 0.02);
}
tbody tr:last-child td {
border-bottom: 0;
}
.row-actions {
display: flex;
/* Forms & Inputs */
.field {
display: grid;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 18px;
}
.login-shell {
min-height: 100vh;
.field label {
font-size: 13px;
font-weight: 600;
color: var(--text-dim);
}
.field input, .field select, .field textarea {
width: 100%;
padding: 14px 16px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border);
border-radius: var(--radius-md);
transition: all 0.2s ease;
}
.field input:focus, .field select:focus {
border-color: var(--accent);
background: rgba(255, 255, 255, 0.08);
box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
outline: none;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 24px;
border-radius: var(--radius-md);
font-weight: 700;
font-size: 14px;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
border: 1px solid transparent;
}
.btn:active {
transform: scale(0.98);
}
.btn-primary {
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
color: #050d16;
box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.24);
}
.btn-secondary {
background: rgba(255,255,255,0.05);
border-color: var(--border);
color: var(--text);
}
.btn-ghost {
background: transparent;
color: var(--accent);
padding: 8px 12px;
}
.btn-ghost:hover {
background: var(--accent-soft);
}
/* Status Badges */
.status-pill {
padding: 6px 12px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
display: inline-flex;
}
.status-ok { background: rgba(101, 240, 183, 0.12); color: var(--success); border: 1px solid rgba(101, 240, 183, 0.2); }
.status-warn { background: rgba(255, 202, 122, 0.12); color: var(--warn); border: 1px solid rgba(255, 202, 122, 0.2); }
.status-danger { background: rgba(255, 141, 181, 0.12); color: var(--danger); border: 1px solid rgba(255, 141, 181, 0.2); }
/* Progress */
.progress-bar {
height: 8px;
background: rgba(255, 255, 255, 0.06);
border-radius: 999px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent), var(--accent-strong));
box-shadow: 0 0 12px var(--accent-soft);
}
/* Modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
z-index: 100;
display: grid;
place-items: center;
padding: 24px;
}
.login-card {
width: min(480px, 100%);
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(255, 255, 255, 0.76);
border-radius: 28px;
padding: 30px;
box-shadow: var(--shadow);
backdrop-filter: blur(12px);
.modal-card {
width: min(100%, 640px);
animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-card form,
.filter-form {
display: grid;
@keyframes modalIn {
from { opacity: 0; transform: scale(0.9) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
/* Pagination */
.pagination-shell {
display: flex;
align-items: center;
gap: 12px;
margin-top: 24px;
}
.field {
.page-btn {
width: 40px;
height: 40px;
display: grid;
gap: 8px;
}
.field label {
color: var(--muted);
font-size: 13px;
}
.field input,
.field select,
.field textarea {
width: 100%;
min-height: 44px;
padding: 12px 14px;
border: 1px solid var(--border);
border-radius: 14px;
background: #fff;
color: var(--text);
outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
border-color: rgba(22, 119, 255, 0.4);
box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.08);
}
.notice {
padding: 12px 14px;
border-radius: 14px;
font-size: 13px;
line-height: 1.5;
}
.notice.error {
background: rgba(192, 57, 43, 0.12);
color: var(--danger);
}
.notice.success {
background: rgba(22, 138, 84, 0.12);
color: var(--success);
}
.stack {
display: grid;
gap: 18px;
}
pre {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
border-radius: 16px;
background: #0f172a;
color: #dbe7ff;
padding: 14px 16px;
font-size: 12px;
line-height: 1.55;
}
.code-panel {
max-height: 420px;
overflow: auto;
}
.table-code {
max-width: 360px;
max-height: 180px;
overflow: auto;
place-items: center;
border-radius: 12px;
background: #111b31;
font-size: 11px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border);
transition: all 0.2s ease;
}
@media (max-width: 1180px) {
.page-hero,
.plugin-grid {
grid-template-columns: 1fr;
}
.page-btn.active {
background: var(--accent);
color: #050d16;
border-color: var(--accent);
}
@media (max-width: 980px) {
.admin-shell {
grid-template-columns: 1fr;
}
.admin-sidebar {
position: static;
height: auto;
border-right: 0;
}
.admin-main {
padding: 18px;
}
.topbar {
position: static;
flex-direction: column;
align-items: flex-start;
}
.grid-3 {
grid-template-columns: 1fr;
}
/* Responsive */
@media (max-width: 1024px) {
.admin-shell { grid-template-columns: 1fr; }
.admin-sidebar { position: static; height: auto; display: none; } /* Mobile sidebar handled differently */
.admin-main { padding: 24px; }
.grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.card {
padding: 18px;
border-radius: 20px;
}
.sidebar-brand,
.sidebar-meta,
.sidebar-footer {
border-radius: 16px;
}
.topbar h1,
.page-hero-copy h2 {
font-size: 24px;
}
.table-wrap {
border-radius: 14px;
}
/* Animation Utilities */
.fade-in {
animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

File diff suppressed because it is too large Load Diff