/* ======================================
   后台管理样式 v2 — Live 素材库
   设计：紫色系渐变 + 卡片毛玻璃感 + 非原生Toast/弹框
   ====================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: #f2f3fb;
    color: #28305a;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}
body {
    background-image:
      radial-gradient(900px 480px at 10% -10%, rgba(118,75,162,0.18), transparent 70%),
      radial-gradient(720px 380px at 100% 0%, rgba(102,126,234,0.18), transparent 65%),
      linear-gradient(180deg, #f3f4ff 0%, #ffffff 420px, #f4f6ff 100%);
    background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }
input, select, textarea { font-family: inherit; font-size: 14px; color: #28305a; }
code { background: #eef1ff; padding: 1px 6px; border-radius: 6px; color: #4f46e5; font-size: 12px; }
.red { color: #ef4444; }

/* ---------- 顶部 Header ---------- */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(135deg, rgba(102,126,234,.96), rgba(118,75,162,.96));
    backdrop-filter: saturate(140%) blur(12px);
    color: #fff;
    box-shadow: 0 6px 24px rgba(80,50,150,0.18);
}
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.back-home {
    padding: 6px 12px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    font-size: 13px;
    transition: all .2s;
    border: 1px solid rgba(255,255,255,0.25);
}
.back-home:hover { background: rgba(255,255,255,0.32); transform: translateY(-1px); }
.brand-name { display: flex; align-items: center; gap: 10px; }
.brand-icon {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.22);
    border-radius: 12px;
    font-size: 18px;
}
.brand-name h1 { font-size: 17px; font-weight: 700; letter-spacing: .3px; }

.header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.db-status {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
}
.db-status.ok   { color: #c7f9d8; }
.db-status.warn { color: #ffe7a5; background: rgba(255,193,7,.22); }
.admin-user {
    padding: 4px 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    font-size: 13px;
}
.logout-btn {
    padding: 6px 14px;
    background: rgba(255, 96, 126, 0.85);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(255, 96, 126, 0.35);
}
.logout-btn:hover { background: #ff4b6c; transform: translateY(-1px); }

/* ---------- Main ---------- */
.admin-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 22px 60px;
}

/* ---------- 统计卡片网格 ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(80,70,150,0.07),
                0 1px 0 rgba(0,0,0,0.02) inset;
    transition: transform .25s, box-shadow .25s;
    border: 1px solid rgba(120,110,220,0.08);
}
.stat-card::after {
    content: '';
    position: absolute; inset: auto -40px -40px auto;
    width: 160px; height: 160px; border-radius: 50%;
    opacity: .12;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(80,70,150,0.12); }
.sc-ico {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 22px;
    margin-bottom: 10px;
}
.sc-num { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
.sc-lbl { color: #8186a6; margin-top: 4px; font-size: 13px; }
.sc-purple .sc-ico { background: linear-gradient(135deg,#d6d3fe,#b4a9ff); }
.sc-purple .sc-num { color: #6d5df3; }
.sc-purple::after { background: #7c3aed; }

.sc-blue .sc-ico { background: linear-gradient(135deg,#bfdcff,#8db6ff); }
.sc-blue .sc-num { color: #2563eb; }
.sc-blue::after { background: #3b82f6; }

.sc-pink .sc-ico { background: linear-gradient(135deg,#ffd4e6,#ff9dc4); }
.sc-pink .sc-num { color: #db2777; }
.sc-pink::after { background: #ec4899; }

.sc-green .sc-ico { background: linear-gradient(135deg,#cdf7dc,#8de2b1); }
.sc-green .sc-num { color: #059669; }
.sc-green::after { background: #10b981; }

/* ---------- Tabs ---------- */
.tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(80,70,150,0.06);
    border: 1px solid rgba(120,110,220,0.08);
}
.tab {
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: #6a6f94;
    transition: all .2s;
}
.tab:hover { color: #4f46e5; }
.tab.active {
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(102,126,234,0.35);
}

/* ---------- Toolbar ---------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.count-info { color: #8186a6; font-size: 13px; }
.count-info b { color: #4f46e5; font-weight: 700; }

.search-box {
    display: flex; align-items: stretch;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(80,70,150,0.06);
    border: 1px solid rgba(120,110,220,0.08);
}
.search-box input {
    padding: 9px 14px;
    border: none;
    outline: none;
    background: transparent;
    width: 240px;
}
.search-btn {
    padding: 0 16px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
    font-weight: 600;
}
.search-btn:hover { filter: brightness(1.08); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline, .btn-danger {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all .22s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
    box-shadow: 0 6px 18px rgba(102,126,234,0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(102,126,234,0.42); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-outline {
    background: #fff;
    color: #4f46e5;
    border: 1px solid #d4d0ff;
    box-shadow: 0 2px 10px rgba(80,70,150,0.04);
}
.btn-outline:hover { background: #eef0ff; }
.btn-danger {
    background: linear-gradient(135deg,#ef4444,#dc2626);
    color: #fff;
    box-shadow: 0 6px 18px rgba(239,68,68,0.28);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(239,68,68,0.38); }
.btn-danger.danger { background: linear-gradient(135deg,#ef4444,#991b1b); }

/* ---------- Batch delete / toolbar actions ---------- */
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.btn-danger:disabled,
.btn-primary:disabled,
.btn-outline:disabled,
.btn.is-disabled,
.btn-danger.is-disabled {
    opacity: .5;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(.4);
}
/* 复选框列：居中对齐 + 紧凑 padding */
.admin-table th.col-check,
.admin-table td.col-check {
    text-align: center;
    padding: 10px 6px !important;
    width: 48px;
    user-select: none;
}
/* 复选框美化（贴合紫色主题） */
.admin-table input[type="checkbox"],
#matCheckAll {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
    vertical-align: middle;
}
#matCheckAll:hover { opacity: .85; }
#batchCount {
    display: inline-block;
    min-width: 14px;
    text-align: center;
    font-weight: 700;
}

/* ---------- Form Inputs ---------- */
select, input[type="text"], input[type="number"], input[type="password"], textarea {
    padding: 10px 14px;
    border: 1px solid #d9daef;
    border-radius: 12px;
    background: #fff;
    outline: none;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
select:focus, input:focus, textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.14);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-item { margin-bottom: 14px; }
.form-item label {
    display: block;
    margin-bottom: 6px;
    color: #5a5f86;
    font-size: 13px;
    font-weight: 600;
}
.form-item label .req { color: #ef4444; margin-left: 2px; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.form-tip {
    margin-top: 12px;
    min-height: 18px;
    text-align: center;
    font-size: 13px;
    color: #8186a6;
}
.form-tip.error   { color: #ef4444; font-weight: 500; }
.form-tip.success { color: #16a34a; font-weight: 500; }

/* ---------- 表格 ---------- */
.table-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(80,70,150,0.06);
    overflow: hidden;
    border: 1px solid rgba(120,110,220,0.08);
}
.mat-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eef0fa;
    vertical-align: middle;
    font-size: 13px;
}
.admin-table th {
    background: linear-gradient(180deg,#f7f7ff, #fff);
    color: #54587f;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .2px;
}
.admin-table tbody tr { transition: background .2s; }
.admin-table tbody tr:hover { background: #f7f8ff; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.empty-row {
    text-align: center !important;
    padding: 50px 12px !important;
    color: #999fbe !important;
    font-size: 14px !important;
}
.id-pill {
    display: inline-block;
    padding: 3px 9px;
    background: #eef0ff;
    color: #4f46e5;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.tag-cat {
    background: linear-gradient(135deg,#eef0ff,#e0dfff);
    color: #5b4fff;
    border: 1px solid rgba(91,79,255,0.18);
}
.raw-text {
    max-width: 580px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #4a4e70;
    font-size: 12.5px;
    line-height: 1.55;
    word-break: break-all;
}
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; color: #8186a6; font-size: 12px; }

.row-actions { display: flex; align-items: center; gap: 6px; }
.link-btn {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    transition: all .2s;
    border: 1px solid transparent;
}
.lb-edit {
    color: #4f46e5;
    background: #f1efff;
}
.lb-edit:hover { background: #e5e1ff; }
.lb-del {
    color: #e11d48;
    background: #fff1f4;
}
.lb-del:hover { background: #ffe1e9; }

/* ---------- 分页 ---------- */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.page-btn {
    min-width: 38px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e7fb;
    border-radius: 10px;
    color: #5a5f86;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(80,70,150,0.04);
}
.page-btn:hover { border-color: #667eea; color: #4f46e5; transform: translateY(-1px); }
.page-btn.cur {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(102,126,234,0.35);
}
.page-nums { display: inline-flex; gap: 6px; }
.page-info { color: #8186a6; font-size: 13px; }

/* ---------- 分类卡片 ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.cat-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(120,110,220,0.08);
    box-shadow: 0 8px 22px rgba(80,70,150,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all .22s;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(80,70,150,0.14);
    border-color: rgba(102,126,234,0.22);
}
.cat-card-head { display: flex; align-items: center; gap: 14px; }
.cat-card-icon {
    width: 54px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px;
    background: linear-gradient(135deg,#eef0ff,#e0dfff);
    border-radius: 16px;
    flex-shrink: 0;
}
.cat-card-name { font-size: 16px; font-weight: 700; color: #2a2d55; }
.cat-card-meta { font-size: 12.5px; color: #8186a6; margin-top: 4px; }
.cat-card-meta b { color: #4f46e5; font-weight: 700; }
.cat-card-foot {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed #eef0fa;
}
.cat-card-foot .link-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
}

/* ============= Dialog ============= */
.dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dialog.open { display: flex; }
.dlg-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(30,10,80,0.55), rgba(10,0,40,0.7));
    backdrop-filter: blur(6px);
}
.dlg-box {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(30,10,80,0.35),
                0 0 0 1px rgba(255,255,255,0.5) inset;
    animation: dlgIn .24s cubic-bezier(.2,.7,.2,1);
}
.dlg-lg { max-width: 680px; }
.dlg-sm { max-width: 440px; }
@keyframes dlgIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dlg-head {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f7f7ff, #fff);
    border-bottom: 1px solid #eef0fa;
}
.dlg-head h3 { font-size: 16px; font-weight: 700; color: #2a2d55; }
.dlg-close {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: #f1efff;
    color: #655fd0;
    font-size: 22px;
    line-height: 1;
    transition: all .2s;
}
.dlg-close:hover { background: #e5e1ff; transform: rotate(90deg); }
.dlg-body {
    padding: 22px;
    overflow-y: auto;
}
.confirm-text {
    padding: 6px 4px 10px;
    font-size: 15px;
    color: #2a2d55;
    line-height: 1.6;
    font-weight: 500;
}

/* ---------- 解析预览 ---------- */
.preview-box {
    margin-top: 6px;
    padding: 14px;
    border: 1px dashed #b6b1ff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7f8ff 0%, #fff0f9 100%);
}
.preview-title {
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: .3px;
}
.p-head { margin-bottom: 12px; }
.p-title { font-weight: 700; margin-bottom: 6px; color: #2a2d55; word-break: break-all; }
.p-author {
    color: #6a6f94;
    font-size: 12.5px;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.p-author b { color: #2a2d55; font-weight: 700; }
.p-imgs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}
.p-img-item {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.p-img-item img { width: 100%; height: 100%; object-fit: cover; }
.p-live-badge {
    position: absolute;
    top: 4px; left: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    background: linear-gradient(135deg,#ef4444,#be185d);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    box-shadow: 0 3px 8px rgba(239,68,68,0.45);
}
.p-err {
    padding: 20px;
    text-align: center;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
}

/* ============= Toast ============= */
.toast-wrap {
    position: fixed;
    left: 50%;
    top: 26px;
    transform: translateX(-50%);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(20,16,45,0.88);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-10px) scale(.95);
    transition: opacity .28s, transform .28s;
    pointer-events: auto;
    min-width: 140px;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
}
.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.toast-ico {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
}
.toast.success { background: linear-gradient(135deg,#059669,#10b981); }
.toast.success .toast-ico { background: rgba(255,255,255,0.2); }
.toast.error { background: linear-gradient(135deg,#ef4444,#be123c); }
.toast.error .toast-ico { background: rgba(255,255,255,0.2); }
.toast.info { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.toast.info .toast-ico { background: rgba(255,255,255,0.2); }
.toast.loading .toast-ico { background: rgba(255,255,255,0.2); }
.toast .spin {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: _sp 0.7s linear infinite;
}
@keyframes _sp { to { transform: rotate(360deg); } }

/* 迷你 spinner（解析预览） */
.spinner.sm {
    width: 20px; height: 20px;
    border: 2px solid #c7d2fe;
    border-top-color: #4f46e5;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    animation: _sp 0.7s linear infinite;
}

/* ============= 登录页 ============= */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(800px 520px at 15% 0%, rgba(124,58,237,0.22), transparent 65%),
      radial-gradient(700px 440px at 85% 100%, rgba(236,72,153,0.22), transparent 65%),
      linear-gradient(160deg, #1a1740 0%, #3b1f6e 45%, #5b2470 100%);
}
.login-mask {
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.45), transparent 50%),
      radial-gradient(2px 2px at 70% 65%, rgba(255,255,255,0.35), transparent 50%),
      radial-gradient(2px 2px at 45% 85%, rgba(255,255,255,0.3), transparent 50%),
      radial-gradient(1.5px 1.5px at 90% 20%, rgba(255,255,255,0.4), transparent 50%);
    background-size: 260px 260px, 320px 320px, 280px 280px, 200px 200px;
    opacity: .4;
    pointer-events: none;
    animation: bgDrift 18s linear infinite alternate;
}
@keyframes bgDrift {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(12px, -18px, 0); }
}
.login-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.login-brand { text-align: center; color: #fff; }
.login-icon {
    width: 68px; height: 68px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    margin-bottom: 16px;
}
.login-title { font-size: 22px; font-weight: 800; letter-spacing: .4px; }
.login-sub   { color: rgba(255,255,255,0.72); font-size: 13px; margin-top: 4px; }

.login-card {
    width: 100%;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 30px 80px rgba(10,0,30,0.45);
}
.login-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #2a2d55;
    margin-bottom: 18px;
    text-align: center;
}
.login-btn {
    width: 100%;
    margin-top: 6px;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}
.login-tip {
    margin-top: 18px;
    padding: 10px 12px;
    background: #f5f3ff;
    color: #6d5df3;
    border: 1px dashed #b6b1ff;
    border-radius: 12px;
    font-size: 12px;
    text-align: center;
    line-height: 1.7;
}
.login-tip b { color: #4f46e5; }
.login-tip span { color: #5a5f86; display: block; margin-top: 2px; }

/* ============= 响应式 ============= */
@media (max-width: 991.98px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sc-num { font-size: 22px; }
    .search-box input { width: 160px; }
}
@media (max-width: 639.98px) {
    .admin-main { padding: 16px 12px 60px; }
    .header-inner { padding: 12px 14px; }
    .brand-name h1 { font-size: 14px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .tabs { overflow-x: auto; width: 100%; }
    .tab { flex: 0 0 auto; }
    .toolbar { gap: 8px; }
    .filters { width: 100%; }
    .search-box { flex: 1; min-width: 0; }
    .search-box input { width: 100%; }
    .btn-primary, .btn-outline, .btn-danger { padding: 9px 14px; font-size: 13px; }
    .admin-table th, .admin-table td { padding: 10px 12px; font-size: 12.5px; }
    .table-wrap { overflow-x: auto; }
    .raw-text { max-width: 240px; -webkit-line-clamp: 3; }
    .form-row { grid-template-columns: 1fr; }
    .login-card { padding: 22px 18px; }
}
