文件还在测试中

This commit is contained in:
2026-08-08 15:53:53 +08:00
parent 5f1e7adb64
commit 8101177cb5
241 changed files with 18074 additions and 22 deletions
+306
View File
@@ -0,0 +1,306 @@
/* ===== 后台管理样式 · 现代化设计系统 ===== */
:root {
--brand-1: #0ea5e9; /* 主色·天蓝 */
--brand-2: #14b8a6; /* 辅色·青绿 */
--brand-grad: linear-gradient(135deg, #0ea5e9, #14b8a6);
--side-bg: #0b1220; /* 侧栏深底 */
--side-bg-2: #111a2e;
--ink: #0f172a;
--ink-soft: #475569;
--muted: #94a3b8;
--line: #e5e9f0;
--surface: #ffffff;
--canvas: #f4f6fb;
--radius: 14px;
--radius-lg: 18px;
--shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
--shadow-md: 0 6px 24px -12px rgba(15,23,42,.24);
--shadow-lg: 0 24px 60px -28px rgba(2,12,27,.55);
}
* { box-sizing: border-box; }
body.admin { margin: 0; font-family: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.li { flex: 0 0 auto; vertical-align: middle; }
/* sidebar */
.admin-side { position: fixed; inset: 0 auto 0 0; width: 252px; background: linear-gradient(180deg, var(--side-bg-2), var(--side-bg)); color: #cbd5e1; padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 4px; z-index: 30; border-right: 1px solid rgba(255,255,255,.04); }
.admin-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 16px; padding: 8px 10px 16px; letter-spacing: .01em; }
.admin-brand .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; margin: 4px -4px; padding: 0 4px; }
.admin-nav::-webkit-scrollbar { width: 6px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }
.admin-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 11px; color: #aab6c8; font-weight: 600; font-size: 14px; transition: background .18s, color .18s, transform .1s; }
.admin-nav a .nav-ic { display: inline-flex; color: #7c8aa3; transition: color .18s; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a:hover .nav-ic { color: #cbd5e1; }
.admin-nav a.active { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(14,165,233,.8); }
.admin-nav a.active .nav-ic { color: #fff; }
.admin-nav a.active::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: #fff; }
.admin-side-foot { border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; margin-top: 4px; }
.admin-side-foot a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; color: #8fa0b8; font-size: 13px; font-weight: 600; transition: background .18s, color .18s; }
.admin-side-foot a:hover { background: rgba(255,255,255,.06); color: #fff; }
/* 子系统子页面(CRM / PSI 的二级项),作为左导主项下缩进子项,与 admin 框架风格统一 */
.admin-nav a.child { padding-left: 40px; font-size: 13px; gap: 10px; opacity: .82; }
.admin-nav a.child .nav-ic, .admin-nav a.child span { font-size: 14px; }
.admin-nav a.child.active { opacity: 1; }
.admin-body { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-top { height: 64px; background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 20; }
.admin-top-left { display: flex; align-items: center; gap: 14px; }
.top-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-1); font-weight: 700; font-size: 14px; }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.admin-user-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.admin-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-grad); color: #fff; }
.admin-content { padding: 30px; flex: 1; max-width: 1400px; width: 100%; }
/* login */
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(60% 55% at 25% 15%, rgba(14,165,233,.28), transparent), radial-gradient(55% 55% at 85% 85%, rgba(20,184,166,.26), transparent), #0b1220; padding: 20px; }
.login-card { width: 400px; max-width: 100%; background: var(--surface); border-radius: 22px; padding: 40px 34px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6); }
.login-card h1 { font-size: 23px; margin: 4px 0 6px; }
.login-card p.sub { color: #64748b; font-size: 14px; margin-bottom: 22px; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; font-weight: 800; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-grad); color: #fff; box-shadow: 0 10px 20px -8px rgba(14,165,233,.7); }
/* cards / headings */
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
.page-head .desc { color: #64748b; font-size: 14px; margin-top: 5px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 18px; margin-bottom: 28px; }
.stat-box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.stat-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-box b { display: block; font-size: 32px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.stat-box span { color: #64748b; font-size: 13px; }
.stat-box .stat-ic { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); box-shadow: 0 8px 18px -8px rgba(14,165,233,.6); }
.stat-box.c1 .stat-ic { background: linear-gradient(135deg,#0ea5e9,#38bdf8); }
.stat-box.c2 .stat-ic { background: linear-gradient(135deg,#14b8a6,#2dd4bf); }
.stat-box.c3 .stat-ic { background: linear-gradient(135deg,#8b5cf6,#a78bfa); }
.stat-box.c4 .stat-ic { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
/* buttons */
.btn-primary, .btn-soft, .btn-danger, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 11px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: transform .14s, box-shadow .2s, background .2s, filter .2s; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 12px 26px -14px rgba(14,165,233,.9); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-soft { background: #eef2ff; color: #4338ca; }
.btn-soft:hover { background: #e0e7ff; }
.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-danger:hover { background: #fecaca; }
.btn-ghost { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.btn-ghost:hover { background: #e9eef5; border-color: #cbd5e1; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
/* tables */
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid #eef2f7; }
.admin-table th { background: #f8fafc; color: var(--ink-soft); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background .15s; }
.admin-table tr:hover td { background: #f6f9fe; }
.thum { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 18px; }
.tag-mini { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #e0f2fe; color: #0369a1; }
.muted { color: var(--muted); }
/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: #334155; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-1); outline: none; box-shadow: 0 0 0 3px rgba(14,165,233,.18); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.alert { padding: 12px 15px; border-radius: 11px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-err { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-ok { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
/* role badge */
.role-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.role-super_admin { background: #fef3c7; color: #b45309; }
.role-admin { background: #dbeafe; color: #1d4ed8; }
.role-user { background: #dcfce7; color: #15803d; }
.role-none { background: #e5e7eb; color: #374151; }
.row-actions { display: flex; gap: 8px; }
/* status badge (CRM 客户状态) */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.st-grey { background: #e5e7eb; color: #4b5563; }
.st-blue { background: #dbeafe; color: #1d4ed8; }
.st-purple { background: #ede9fe; color: #6d28d9; }
.st-green { background: #dcfce7; color: #15803d; }
.st-gold { background: #fef3c7; color: #b45309; }
.st-red { background: #fee2e2; color: #b91c1c; }
/* 仪表盘快捷操作 */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 4px 0; }
.qa-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: #111827; transition: transform .2s, box-shadow .2s, border-color .2s; }
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-1); }
.qa-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; margin-bottom: 8px; background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(20,184,166,.12)); color: var(--brand-1); }
.qa-t { font-weight: 700; font-size: 15px; }
.qa-d { font-size: 12px; color: #6b7280; }
.preview-box { border-radius: 12px; padding: 26px; color: #fff; margin-top: 14px; }
@media (max-width: 860px) {
.admin-side { transform: translateX(-100%); transition: transform .3s; }
.admin-side.open { transform: none; }
.admin-body { margin-left: 0; }
.form-grid { grid-template-columns: 1fr; }
}
.menu-toggle { display: none; background: none; border: none; color: var(--ink-soft); cursor: pointer; padding: 6px; border-radius: 8px; align-items: center; }
.menu-toggle:hover { background: #f1f5f9; }
@media (max-width: 860px) { .menu-toggle { display: inline-flex; } }
/* ===== 可视化拖拽构建器 ===== */
.pb-workspace { display: flex; gap: 0; min-height: 74vh; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; }
/* 旧版(admin/page_builder.php)兼容 */
.pb-left, .pb-right { width: 248px; flex: 0 0 248px; background: #f8fafc; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; padding: 14px; overflow: auto; }
.pb-box { margin-bottom: 18px; }
.pb-box h4 { margin: 0 0 10px; font-size: 13px; color: #475569; letter-spacing: .04em; text-transform: uppercase; }
.pb-upload { display: block; text-align: center; background: #0ea5e9; color: #fff; border-radius: 10px; padding: 10px; cursor: pointer; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pb-upload:hover { background: #0284c7; }
.pb-add { display: block; width: 100%; margin-bottom: 8px; background: #fff; border: 1px dashed #94a3b8; color: #334155; border-radius: 10px; padding: 10px; cursor: pointer; font-size: 14px; }
.pb-add:hover { border-color: #0ea5e9; color: #0ea5e9; }
/* 新版三栏:图标栏 | 编辑画布 | 右栏标签页 */
.pb-rail { width: 60px; flex: 0 0 60px; background: #0f172a; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.pb-rail-btn { width: 42px; height: 42px; border: none; border-radius: 10px; background: rgba(255,255,255,.08); color: #e2e8f0; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.pb-rail-btn:hover { background: #0ea5e9; color: #fff; transform: translateY(-1px); }
.pb-rail-btn:active { transform: scale(.95); }
.pb-canvas-wrap { flex: 1; overflow: auto; background: #eef2f7; background-image: radial-gradient(#dbe3ec 1px, transparent 1px); background-size: 18px 18px; padding: 26px; display: flex; justify-content: center; align-items: flex-start; }
.pb-stage { position: relative; width: 720px; min-height: 480px; background: #fff; box-shadow: 0 10px 40px rgba(15,23,42,.12); border-radius: 6px; }
.pb-side { width: 312px; flex: 0 0 312px; background: #f8fafc; border-left: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.pb-tabs { display: flex; border-bottom: 1px solid #e2e8f0; background: #fff; }
.pb-tab { flex: 1; border: none; background: none; padding: 12px 4px; font-size: 13px; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; }
.pb-tab.active { color: #0ea5e9; border-bottom-color: #0ea5e9; font-weight: 600; }
.pb-panes { flex: 1; overflow: auto; padding: 14px; }
.pb-pane.hidden { display: none; }
.pb-preview { position: relative; width: 720px; transform-origin: top left; }
.pb-preview .pb-el { cursor: default; }
.pb-preview .pb-handle { display: none !important; }
.pb-preview .pb-el.sel { outline: none; }
.pb-hint { font-size: 12px; color: #94a3b8; line-height: 1.8; }
.pb-lib { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-lib-item { position: relative; }
.pb-lib-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; display: block; }
.pb-lib-item img:hover { border-color: #0ea5e9; }
.pb-lib-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #ef4444; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pb-lib-del:hover { background: #dc2626; }
.pb-el { position: absolute; box-sizing: border-box; cursor: move; user-select: none; }
.pb-text { width: 100%; min-height: 1.4em; white-space: pre-wrap; word-break: break-word; padding: 2px 4px; }
.pb-img { max-width: 100%; width: auto; display: block; object-fit: cover; border-radius: 4px; }
.pb-text[contenteditable=true] { user-select: text; cursor: text; outline: none; }
.pb-el.sel { outline: 2px dashed #0ea5e9; outline-offset: 2px; }
.pb-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #0ea5e9; border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize; display: none; }
.pb-el.sel .pb-handle { display: block; }
.pb-empty { font-size: 13px; color: #94a3b8; }
#pbPropsBody label { display: block; font-size: 12px; color: #64748b; margin: 10px 0 4px; }
#pbPropsBody input[type=text], #pbPropsBody input[type=number], #pbPropsBody input[type=color], #pbPropsBody textarea, #pbPropsBody select { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 9px; font-size: 13px; font-family: inherit; }
#pbPropsBody textarea { min-height: 64px; resize: vertical; }
.pb-del { margin-top: 14px; width: 100%; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 8px; padding: 8px; cursor: pointer; font-size: 13px; }
.pb-del:hover { background: #fee2e2; }
.pb-align { display: flex; gap: 6px; margin: 2px 0 6px; }
.pb-ab { flex: 1; border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 8px 0; cursor: pointer; font-size: 13px; color: #334155; }
.pb-ab:hover { border-color: #0ea5e9; }
.pb-ab.active { background: #0ea5e9; border-color: #0ea5e9; color: #fff; font-weight: 600; }
/* 新增元素类型(按钮/价格/规格)在编辑器中为静态预览,避免拦截拖拽 */
.pb-static { pointer-events: none; user-select: none; }
.pb-btn-prev { display: inline-block; padding: 10px 22px; border-radius: 10px; background: #0ea5e9; color: #fff; font-weight: 600; cursor: move; box-sizing: border-box; }
.pb-btn-prev.pb-buy { background: #ef4444; }
.pb-price-prev { font-size: 28px; font-weight: 700; }
.pb-specs-prev { width: 100%; font-size: 13px; background: #fff; }
.pb-specs-prev .sp-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e2e8f0; }
@media (max-width: 980px) { .pb-left, .pb-right { width: 180px; flex-basis: 180px; } .pb-rail { width: 52px; flex-basis: 52px; } .pb-side { width: 260px; flex-basis: 260px; } }
/* ===== 分系统(CRM/PSI)共享后台组件 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px -26px rgba(0,0,0,.5); }
.stat-card .stat-num { font-size: 28px; font-weight: 900; color: #0ea5e9; line-height: 1.1; }
.stat-card .stat-label { color: #64748b; font-size: 13px; margin-top: 8px; }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; margin-bottom: 22px; box-shadow: 0 10px 30px -26px rgba(0,0,0,.5); }
.panel h3 { margin: 0 0 16px; font-size: 17px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid #eef2f7; }
.tbl th { background: #f8fafc; color: #475569; font-weight: 700; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #f8fafc; }
/* Excel 式冻结表头:列表表格在面板内可滚动,表头吸顶 */
.panel:has(> .tbl) { max-height: calc(100vh - 220px); overflow: auto; }
.tbl thead th { position: sticky; top: 0; z-index: 3; background: #f8fafc; }
/* 用户管理:分系统页面权限勾选 */
.chk-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: #334155; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field { min-width: 0; }
.row-actions a { margin-right: 12px; color: #0ea5e9; font-weight: 700; font-size: 13px; }
.row-actions a:last-child { color: #dc2626; }
.tag-in { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-weight: 700; font-size: 13px; }
.tag-out { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fee2e2; color: #dc2626; font-weight: 700; font-size: 13px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.alert-ok { background: #dcfce7; color: #15803d; }
.alert-err { background: #fee2e2; color: #dc2626; }
.alert-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; font-weight: 600; }
/* 导航待升级徽标 */
.nav-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px -2px rgba(239,68,68,.7); }
/* 通用小工具 */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.card-title { margin: 0 0 16px; font-size: 17px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-link { color: #64748b; font-weight: 600; font-size: 13px; }
/* 数据库管理:表列表与浏览 */
.db-stat { color: #64748b; font-size: 13px; margin-bottom: 14px; }
.db-stat b { color: var(--ink); }
.db-search { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.db-search input { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; }
.db-search input:focus { border-color: var(--brand-1); outline: none; box-shadow: 0 0 0 3px rgba(14,165,233,.18); }
.tbl-data .cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-ok { color: #0ea5e9; font-weight: 700; font-size: 13px; margin-right: 12px; }
.link-del { color: #dc2626; font-weight: 700; font-size: 13px; }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.pager-info { color: #64748b; font-size: 13px; }
/* 信息表(系统设置) */
.tbl-info th { width: 180px; text-align: left; color: #64748b; font-weight: 700; background: #f8fafc; }
.tbl-info td { color: var(--ink); }
/* 快捷入口卡片 */
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
.shortcut-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s; }
.shortcut-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-1); }
.shortcut-ic { color: var(--brand-1); }
.shortcut-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.shortcut-desc { font-size: 13px; color: #64748b; }
/* 数据库升级提示条 */
.alert-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, #fff7ed, #fffbeb); border: 1px solid #fdba74; margin-bottom: 18px; }
.alert-upgrade-main { display: flex; align-items: center; gap: 14px; }
.alert-upgrade-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #fff; }
.alert-upgrade b { font-size: 16px; color: #b45309; }
/* 状态标签(数据库管理 / 升级) */
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-gray { background: #e5e7eb; color: #4b5563; }
/* 数据库编辑表单 */
.db-form-card { max-width: 880px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; }
.form-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: #334155; }
.form-type { font-style: normal; color: #94a3b8; font-weight: 500; font-size: 12px; }
.form-row .input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); }
.form-row .input:focus { border-color: var(--brand-1); outline: none; box-shadow: 0 0 0 3px rgba(14,165,233,.18); }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }