/* ============================
   启航·授权中心 · Admin UI v4
   钢青系，信息分区清晰、少噪音
   ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --b-primary: #0284c7;
    --b-primary-2: #0ea5e9;
    --b-teal: #0d9488;
    --b-ink: #0b1220;
    --b-bg: #edf1f7;
    --b-card: #ffffff;
    --b-text: #0f172a;
    --b-muted: #64748b;
    --b-border: rgba(15, 23, 42, .08);
    --b-soft: #f1f5f9;
    --b-sidebar-w: 236px;
    --b-font: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --b-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --b-radius: 12px;
    --b-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

body {
    font-family: var(--b-body);
    background: var(--b-bg);
    color: var(--b-text);
    font-size: 14px;
    line-height: 1.6;
}
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(640px 320px at 100% 0%, rgba(14,165,233,.1), transparent 55%),
        radial-gradient(520px 280px at 0% 100%, rgba(13,148,136,.08), transparent 50%),
        linear-gradient(165deg, #e8eef5 0%, #f4f7fb 50%, #edf1f7 100%);
}
a { color: var(--b-primary); text-decoration: none; }
a:hover { color: var(--b-primary-2); }

/* ---------- Layout ---------- */
.badmin-layout { display: flex; min-height: 100vh; }

.badmin-sidebar {
    width: var(--b-sidebar-w); flex-shrink: 0;
    background: linear-gradient(180deg, #0b1220 0%, #101a2c 100%);
    color: #fff;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex; flex-direction: column;
    border-right: 1px solid rgba(125, 211, 252, .08);
}
.badmin-sidebar .logo {
    padding: 18px 16px 16px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--b-font); font-weight: 800; font-size: 14px;
    background: linear-gradient(135deg, #0284c7, #0d9488);
    color: #fff; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-text strong {
    font-family: var(--b-font); font-size: 14px; font-weight: 700;
    color: #f8fafc; letter-spacing: -.01em;
}
.logo-text em {
    font-style: normal; font-size: 11px; color: rgba(148,163,184,.9);
    margin-top: 2px;
}

.badmin-sidebar .menu {
    padding: 10px 0 16px;
    overflow-y: auto; flex: 1;
}
.badmin-sidebar .menu-group {
    padding: 14px 18px 6px;
    font-size: 11px; color: rgba(148,163,184,.65);
    letter-spacing: .08em; font-weight: 600;
}
.badmin-sidebar .menu-group:first-of-type { padding-top: 6px; }
.badmin-sidebar .menu a {
    display: flex; align-items: center; gap: 10px;
    margin: 1px 10px; padding: 9px 12px;
    color: rgba(226,232,240,.72);
    transition: background .15s, color .15s;
    border-radius: 10px; font-size: 13.5px; font-weight: 500;
}
.badmin-sidebar .menu a:hover {
    background: rgba(14,165,233,.1); color: #fff;
}
.badmin-sidebar .menu a.active {
    background: rgba(14,165,233,.18);
    color: #fff;
    box-shadow: inset 3px 0 0 #38bdf8;
}
.badmin-sidebar .menu a .mi {
    width: 22px; height: 22px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; font-family: var(--b-font);
    background: rgba(255,255,255,.06); color: rgba(226,232,240,.85);
    flex-shrink: 0;
}
.badmin-sidebar .menu a .menu-badge {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.badmin-sidebar .menu a.active .mi {
    background: rgba(56,189,248,.25); color: #e0f2fe;
}
.badmin-sidebar .menu a.menu-ext { opacity: .9; }

.badmin-sidebar .license-balance {
    margin: 12px 12px 4px;
    padding: 12px 14px;
    background: rgba(14,165,233,.12);
    border: 1px solid rgba(125,211,252,.16);
    border-radius: 12px; flex-shrink: 0;
}
.badmin-sidebar .license-balance .t { font-size: 11px; color: rgba(255,255,255,.55); }
.badmin-sidebar .license-balance .v {
    font-size: 20px; font-weight: 750; color: #e0f2fe; margin-top: 2px;
    font-family: var(--b-font); letter-spacing: -.02em;
}
.badmin-sidebar .license-balance .bal-link {
    display: inline-block; margin-top: 8px; font-size: 12px;
    color: #7dd3fc !important; padding: 0 !important; margin-left: 0 !important;
    background: none !important; box-shadow: none !important;
}
.badmin-sidebar .license-balance .bal-link:hover { color: #fff !important; }

.badmin-sidebar .license-quota {
    margin-top: 8px;
    background: rgba(124,58,237,.14);
    border-color: rgba(167,139,250,.22);
}
.badmin-sidebar .license-quota .quota-v { color: #ddd6fe; }
.badmin-sidebar .license-quota .quota-unit {
    font-size: 12px; font-weight: 500; margin-left: 2px; opacity: .85;
}
.badmin-sidebar .license-quota .quota-line {
    font-size: 11px; color: rgba(255,255,255,.55); margin-top: 4px; line-height: 1.45;
}

.sidebar-foot {
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.sidebar-foot .sf-name {
    font-size: 13px; font-weight: 600; color: #e2e8f0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-foot .sf-role {
    font-size: 11px; color: rgba(148,163,184,.8); margin-top: 2px;
}

.badmin-main {
    margin-left: var(--b-sidebar-w); flex: 1;
    display: flex; flex-direction: column; min-height: 100vh; min-width: 0;
}
.badmin-header {
    height: 56px; background: rgba(255,255,255,.82); padding: 0 22px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 1px 0 var(--b-border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.badmin-header .breadcrumb {
    font-size: 13px; color: var(--b-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.badmin-header .breadcrumb a { color: var(--b-muted); }
.badmin-header .breadcrumb a:hover { color: var(--b-primary); }
.badmin-header .bc-sep { margin: 0 6px; color: #cbd5e1; }
.badmin-header .header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.badmin-header .role-tag {
    font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
    background: var(--b-soft); color: var(--b-primary); border: 1px solid var(--b-border);
}
.badmin-header .admin-info { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.badmin-header .admin-info .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0d9488);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
}
.badmin-header .admin-name { font-size: 13.5px; }
.badmin-header .logout-btn {
    padding: 6px 12px; background: #fff; border: 1px solid var(--b-border);
    border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--b-text);
}
.badmin-header .logout-btn:hover { border-color: rgba(2,132,199,.35); color: var(--b-primary); }
.mobile-menu-btn {
    display: none; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--b-border);
    background: #fff; border-radius: 8px; cursor: pointer; font-size: 16px;
}
.sidebar-mask {
    display: none; position: fixed; inset: 0; background: rgba(10,18,32,.45); z-index: 110;
}

.badmin-content { padding: 20px 24px 32px; flex: 1; }

/* ---------- Page chrome ---------- */
.page-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-title {
    font-size: 20px; font-weight: 750; color: var(--b-text); margin-bottom: 0;
    font-family: var(--b-font); letter-spacing: -.02em; line-height: 1.3;
}
.page-head .page-title { margin-bottom: 4px; }
.page-desc {
    font-size: 13px; color: var(--b-muted); margin: 0; max-width: 560px;
}
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.sub-tabs {
    display: flex; gap: 4px; flex-wrap: wrap;
    margin: -6px 0 18px;
    padding: 4px;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--b-border);
    border-radius: 12px;
    width: fit-content; max-width: 100%;
}
.sub-tabs a {
    padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 550; color: var(--b-muted);
}
.sub-tabs a:hover { color: var(--b-primary); background: rgba(14,165,233,.06); }
.sub-tabs a.active {
    background: #fff; color: var(--b-primary);
    box-shadow: 0 1px 3px rgba(15,23,42,.08);
}

/* ---------- Cards / stats ---------- */
.card {
    background: var(--b-card); border-radius: var(--b-radius); padding: 18px 20px; margin-bottom: 14px;
    box-shadow: var(--b-shadow); border: 1px solid var(--b-border);
}
.card .card-title {
    font-size: 14.5px; font-weight: 650; margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--b-border); font-family: var(--b-font);
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.card.card-flush { padding: 0; overflow: hidden; }
.card.card-flush .card-title { padding: 14px 18px; margin: 0; }

.stats-grid, .stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 18px;
}
.stat-card {
    background: var(--b-card); border-radius: var(--b-radius); padding: 16px 16px 16px 18px;
    border: 1px solid var(--b-border); position: relative; overflow: hidden;
    box-shadow: var(--b-shadow);
}
.stat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #0ea5e9, #0d9488);
}
.stat-card .stat-label,
.stat-card .label { color: var(--b-muted); font-size: 12.5px; }
.stat-card .stat-value,
.stat-card .value {
    font-size: 24px; font-weight: 750; margin-top: 6px;
    font-family: var(--b-font); letter-spacing: -.03em; color: var(--b-text);
}
.stat-card .value.c1, .stat-card .value.c2, .stat-card .value.c3,
.stat-card .value.c4, .stat-card .value.c5 { color: var(--b-text); }
.stat-card .value.c6 { color: #be123c; }

.grid-2 {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px;
}
.grid-2.tight { margin-top: 4px; }
@media (max-width: 1100px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 7px 14px; border-radius: 9px; border: 1px solid transparent;
    cursor: pointer; font-size: 13.5px; transition: all .15s; background: #fff;
    font-family: inherit; line-height: 1.4;
}
.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9 60%, #0d9488);
    color: #fff; border: none; box-shadow: 0 6px 16px rgba(2,132,199,.22);
}
.btn-primary:hover { filter: brightness(1.04); color: #fff; }
.btn-default { border-color: var(--b-border); color: var(--b-text); }
.btn-default:hover { border-color: rgba(2,132,199,.35); color: var(--b-primary); }
.btn-danger { background: #e11d48; color: #fff; border: none; }
.btn-danger:hover { filter: brightness(1.05); color: #fff; }
.btn-success { background: #059669; color: #fff; border: none; }
.btn-success:hover { filter: brightness(1.05); color: #fff; }
.btn-warning { background: #d97706; color: #fff; border: none; }
.btn-warning:hover { filter: brightness(1.05); color: #fff; }
.btn-link {
    background: transparent; border: none; color: var(--b-primary);
    padding: 2px 6px; box-shadow: none;
}
.btn-link:hover { color: var(--b-primary-2); text-decoration: underline; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn-xs { padding: 2px 7px; font-size: 11px; border-radius: 6px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Table ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    padding: 11px 14px; border-bottom: 1px solid var(--b-border);
    text-align: left; font-size: 13.5px; vertical-align: middle;
}
.data-table th {
    background: var(--b-soft); font-weight: 650; font-size: 12px;
    color: var(--b-muted); letter-spacing: .02em; white-space: nowrap;
}
.data-table tbody tr:hover { background: rgba(14,165,233,.03); }
.data-table .check-col { width: 40px; }
.data-table .action-col { white-space: nowrap; min-width: 120px; }
.data-table .action-col .btn { margin: 2px 2px; }
.data-table .mono, .mono {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12.5px; color: var(--b-primary);
}
.num-col { text-align: right; font-variant-numeric: tabular-nums; }
.empty-cell { text-align: center; color: #94a3b8; padding: 36px 16px !important; }

/* ---------- Tags ---------- */
.tag {
    display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
    font-weight: 500; line-height: 1.5;
}
.tag-green { background: #ecfdf5; color: #047857; }
.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-red { background: #fff1f2; color: #be123c; }
.tag-orange { background: #fffbeb; color: #b45309; }
.tag-gray { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.tag-purple { background: #f5f3ff; color: #6d28d9; }

/* ---------- Forms ---------- */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; margin-bottom: 6px; font-weight: 550; font-size: 13.5px; }
.form-item input, .form-item select, .form-item textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0;
    border-radius: 9px; font-size: 14px; outline: none; background: #fff;
    font-family: inherit;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
    border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.form-actions {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    margin-top: 4px;
}
.search-bar .form-actions { margin-top: 0; padding-bottom: 2px; }
.hint {
    font-size: 12.5px; color: var(--b-muted); line-height: 1.65;
    margin-top: 8px; padding: 10px 12px;
    background: var(--b-soft); border-radius: 8px; border: 1px solid var(--b-border);
}
.hint code {
    background: #fff; border: 1px solid #e2e8f0; padding: 1px 5px;
    border-radius: 4px; font-size: 12px; color: #0369a1;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 12.5px; cursor: pointer; background: #fff;
}
.chip:hover { border-color: rgba(2,132,199,.35); }
.chip input { width: auto; margin: 0; }

.search-bar {
    background: var(--b-card); border: 1px solid var(--b-border); border-radius: var(--b-radius);
    padding: 14px 16px; margin-bottom: 12px;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
    box-shadow: var(--b-shadow);
}
.search-bar .form-item { margin-bottom: 0; min-width: 160px; flex: 1; }
.search-bar .form-item label { font-size: 12px; color: var(--b-muted); font-weight: 500; }

.batch-bar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
    background: var(--b-card); border: 1px solid var(--b-border);
    border-radius: var(--b-radius); padding: 10px 14px; margin-bottom: 12px;
    box-shadow: var(--b-shadow);
}
.batch-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pagination-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; gap: 10px; flex-wrap: wrap;
    border-top: 1px solid var(--b-border); background: #fafbfc;
}
.pagination-bar .pag-info { font-size: 12.5px; color: var(--b-muted); }
.pagination-bar .pag-info b { color: var(--b-primary); font-weight: 650; }
.pagination { display: flex; justify-content: flex-end; gap: 6px; padding: 14px 0; align-items: center; }
.pagination a, .pagination span {
    min-width: 32px; height: 32px; line-height: 30px; text-align: center;
    border: 1px solid var(--b-border); border-radius: 8px; padding: 0 8px; background: #fff;
}
.pagination .current {
    background: var(--b-primary); color: #fff; border-color: transparent;
}

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.modal-mask {
    position: fixed; inset: 0; background: rgba(10,18,32,.48); z-index: 1000;
    display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: 14px; width: 90%; max-width: 560px;
    max-height: 90vh; overflow: auto;
    box-shadow: 0 24px 64px rgba(10,18,32,.28);
}
.modal-header {
    padding: 14px 18px; border-bottom: 1px solid var(--b-border);
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-header .title { font-weight: 700; font-family: var(--b-font); font-size: 15px; }
.modal-body { padding: 16px 18px; }
.modal-footer { padding: 12px 18px; border-top: 1px solid var(--b-border); text-align: right; }

.trend-chart {
    display: flex; align-items: flex-end; gap: 8px; height: 150px;
    padding: 4px 2px; border-bottom: 1px solid var(--b-border);
}
.trend-col {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    flex: 1; min-width: 28px;
}
.trend-col .cnt { font-size: 11px; color: var(--b-muted); font-weight: 600; }
.trend-col .bar {
    width: 100%; border-radius: 4px 4px 0 0; min-width: 16px;
    background: linear-gradient(180deg, #38bdf8, #0284c7);
}
.trend-col .dt { font-size: 10.5px; color: #94a3b8; }
.muted { color: var(--b-muted); }
.req { color: #e11d48; }

.b-toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #0284c7, #0ea5e9 55%, #0d9488);
    color: #fff; padding: 10px 20px; border-radius: 999px;
    box-shadow: 0 12px 28px rgba(2,132,199,.28);
    z-index: 99999; font-size: 13.5px; font-weight: 600;
    transition: opacity .3s, transform .3s;
}
.b-toast.hide { opacity: 0; transform: translate(-50%, -10px); }

@keyframes b-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.badmin-content > * { animation: b-fade .35s ease both; }

/* ---------- 公告编辑弹窗 ---------- */
.modal.modal-ann { max-width: 820px; border: 1px solid var(--b-border); }
.modal-ann .modal-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border-bottom: 1px solid rgba(14,165,233,.12);
}
.modal-ann .modal-header-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.modal-ann .modal-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    background: linear-gradient(135deg, #0284c7, #0d9488);
    box-shadow: 0 8px 20px rgba(2,132,199,.25);
}
.modal-ann .modal-header .title { font-size: 17px; margin-bottom: 2px; }
.modal-ann .modal-sub { font-size: 12.5px; color: var(--b-muted); font-weight: 400; line-height: 1.5; }
.modal-ann .modal-close {
    width: 34px; height: 34px; border: none; border-radius: 10px; cursor: pointer;
    background: rgba(255,255,255,.75); color: var(--b-muted); font-size: 20px; line-height: 1;
    transition: background .15s, color .15s;
}
.modal-ann .modal-close:hover { background: #fff; color: var(--b-text); }
.modal-ann .modal-body { padding: 20px 22px 8px; }
.modal-ann .modal-footer {
    padding: 14px 22px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #fafbfc;
}
.modal-ann .modal-footer-hint { font-size: 12px; color: var(--b-muted); }
.modal-ann-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.modal-ann-form { min-width: 0; }
.ann-section {
    margin-bottom: 18px; padding-bottom: 18px;
    border-bottom: 1px dashed rgba(15,23,42,.08);
}
.ann-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ann-section-title {
    font-size: 12px; font-weight: 700; color: var(--b-muted);
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.ann-section-title::before {
    content: ''; width: 3px; height: 12px; border-radius: 2px;
    background: linear-gradient(180deg, #0ea5e9, #0d9488);
}
.form-item .field-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px; gap: 8px;
}
.form-item .field-meta label { margin-bottom: 0; }
.form-item .char-count { font-size: 11.5px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.form-item input, .form-item select, .form-item textarea { transition: border-color .15s, box-shadow .15s; }
.form-item textarea.ann-content {
    min-height: 120px; resize: vertical; line-height: 1.65;
}
.form-item .input-prefix {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid #e2e8f0; border-radius: 9px; overflow: hidden; background: #fff;
}
.form-item .input-prefix:focus-within {
    border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.form-item .input-prefix span {
    padding: 9px 12px; background: var(--b-soft); color: var(--b-muted);
    font-size: 12.5px; border-right: 1px solid #e2e8f0; flex-shrink: 0;
}
.form-item .input-prefix input {
    border: none; border-radius: 0; box-shadow: none !important; flex: 1; min-width: 0;
}
.form-item .input-prefix input:focus { box-shadow: none !important; }
.ann-level-pills, .ann-status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ann-pill {
    flex: 1; min-width: 88px; padding: 10px 12px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; background: #fff; cursor: pointer;
    text-align: center; transition: all .15s; user-select: none;
}
.ann-pill:hover { border-color: rgba(14,165,233,.35); background: #f8fafc; }
.ann-pill.active { border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.12); }
.ann-pill .pill-label { font-size: 13px; font-weight: 650; display: block; }
.ann-pill .pill-desc { font-size: 11px; opacity: .85; margin-top: 2px; display: block; }
.ann-pill.level-1.active { background: linear-gradient(135deg, #0284c7, #0ea5e9); }
.ann-pill.level-2.active { background: linear-gradient(135deg, #d97706, #f59e0b); }
.ann-pill.level-3.active { background: linear-gradient(135deg, #dc2626, #ef4444); }
.ann-pill.status-0.active { background: linear-gradient(135deg, #64748b, #94a3b8); }
.ann-pill.status-1.active { background: linear-gradient(135deg, #059669, #10b981); }
.ann-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ann-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ann-preview-panel {
    position: sticky; top: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--b-border); border-radius: 12px; padding: 14px;
}
.ann-preview-label {
    font-size: 11px; font-weight: 700; color: var(--b-muted);
    letter-spacing: .05em; margin-bottom: 10px;
}
.ann-preview-shell {
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.ann-preview-bar {
    font-size: 12.5px; padding: 10px 12px; line-height: 1.55;
    display: flex; align-items: flex-start; gap: 8px;
}
.ann-preview-bar.level-1 { background: linear-gradient(90deg,#eff6ff,#f0f9ff); color: #1d4ed8; border-bottom: 1px solid #bfdbfe; }
.ann-preview-bar.level-2 { background: linear-gradient(90deg,#fffbeb,#fff7ed); color: #c2410c; border-bottom: 1px solid #fed7aa; }
.ann-preview-bar.level-3 { background: linear-gradient(90deg,#fef2f2,#fff1f2); color: #b91c1c; border-bottom: 1px solid #fecaca; }
.ann-preview-bar .pv-icon { flex-shrink: 0; }
.ann-preview-bar .pv-body { flex: 1; min-width: 0; }
.ann-preview-bar .pv-title { font-weight: 700; margin-right: 4px; }
.ann-preview-bar .pv-link {
    display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 600;
    text-decoration: underline; opacity: .9;
}
.ann-preview-meta {
    margin-top: 12px; font-size: 11.5px; color: var(--b-muted); line-height: 1.7;
}
.ann-preview-meta b { color: var(--b-text); font-weight: 600; }
.ann-level-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.ann-level-tag.l1 { background: #e0f2fe; color: #0369a1; }
.ann-level-tag.l2 { background: #ffedd5; color: #c2410c; }
.ann-level-tag.l3 { background: #fee2e2; color: #b91c1c; }

/* ---------- 版本发布编辑页 ---------- */
.release-edit-card { padding: 0; overflow: hidden; }
.release-edit-form { display: flex; flex-direction: column; }
.release-edit-layout {
    display: grid; grid-template-columns: 1fr 300px; gap: 0;
    border-bottom: 1px solid var(--b-border);
}
.release-edit-main { padding: 22px 24px; min-width: 0; }
.release-preview-panel {
    padding: 22px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-left: 1px solid var(--b-border);
}
.release-summary-input {
    min-height: 64px; resize: vertical; line-height: 1.65;
}
.release-changelog-input {
    width: 100%; font-family: Consolas, "SF Mono", Monaco, monospace;
    font-size: 13px; line-height: 1.7; min-height: 220px; resize: vertical;
    padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #fafbfc;
}
.release-changelog-input:focus {
    outline: none; border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12); background: #fff;
}
.release-changelog-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.release-changelog-toolbar-label { font-size: 12px; color: var(--b-muted); }
.release-hint-box {
    margin-top: 10px; padding: 10px 12px; border-radius: 10px;
    background: linear-gradient(90deg, #eff6ff, #f0fdfa);
    border: 1px solid #bae6fd; font-size: 12.5px; line-height: 1.65; color: #475569;
}
.release-hint-box strong { display: block; color: #0369a1; margin-bottom: 2px; font-size: 13px; }
.release-preview-card {
    border: 1px solid var(--b-border); border-radius: 12px;
    background: #fff; overflow: hidden;
    box-shadow: 0 6px 20px rgba(15,23,42,.06);
}
.release-preview-version {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px 8px; font-family: var(--b-font);
    font-size: 22px; font-weight: 800; color: #0f172a;
}
.release-preview-badge {
    font-size: 10px; font-weight: 800; letter-spacing: .04em;
    padding: 3px 8px; border-radius: 999px;
    background: linear-gradient(135deg, #0284c7, #0d9488); color: #fff;
}
.release-preview-title {
    padding: 0 16px 6px; font-weight: 700; font-size: 15px; color: #1e293b;
}
.release-preview-summary {
    padding: 0 16px 12px; font-size: 12.5px; color: #64748b; line-height: 1.6;
    border-bottom: 1px dashed #e2e8f0;
}
.release-preview-changelog {
    padding: 12px 16px; max-height: 200px; overflow-y: auto;
}
.release-log-line {
    font-size: 12px; line-height: 1.65; padding: 4px 0 4px 10px;
    border-left: 3px solid #cbd5e1; margin-bottom: 6px; color: #475569;
}
.release-log-line:last-child { margin-bottom: 0; }
.release-log-line.muted { border-left-color: transparent; color: #94a3b8; font-style: italic; }
.release-log-line.log-feature { border-left-color: #0ea5e9; color: #0369a1; }
.release-log-line.log-fix { border-left-color: #f59e0b; color: #b45309; }
.release-log-line.log-change { border-left-color: #8b5cf6; color: #6d28d9; }
.release-preview-download {
    padding: 10px 16px 14px; font-size: 12px; border-top: 1px solid #f1f5f9;
}
.release-preview-download .has-url { color: #059669; font-weight: 600; }
.release-preview-download .no-url { color: #94a3b8; }
.release-edit-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 24px; background: #fafbfc;
}
.release-edit-footer-hint { font-size: 12.5px; color: var(--b-muted); }
.release-edit-footer-actions { display: flex; gap: 10px; flex-shrink: 0; }
.form-item .req { color: #ef4444; }

@media (max-width: 992px) {
    .release-edit-layout { grid-template-columns: 1fr; }
    .release-preview-panel { border-left: none; border-top: 1px solid var(--b-border); }
}

@media (max-width: 768px) {
    .modal-ann-layout { grid-template-columns: 1fr; }
    .ann-preview-panel { position: static; }
    .ann-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .badmin-sidebar {
        position: fixed; transform: translateX(-100%); transition: transform .28s; z-index: 120;
    }
    .badmin-sidebar.show { transform: none; }
    .badmin-main { margin-left: 0; }
    .badmin-content { padding: 14px; }
    .stats-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
    .mobile-menu-btn { display: inline-flex; }
    .sidebar-mask.show { display: block; }
    .badmin-header .admin-name { display: none; }
    .badmin-header .role-tag { display: none; }
    .page-title { font-size: 18px; }
}

/* ===== Login ===== */
.b-login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.b-login-box {
    width: 100%; max-width: 400px;
    background: var(--b-card);
    border: 1px solid var(--b-border);
    border-radius: 16px;
    padding: 36px 30px;
    box-shadow: 0 20px 50px rgba(10,18,32,.12);
    animation: b-fade .4s ease both;
}
.b-login-box .logo-big {
    font-size: 19px; font-weight: 750; text-align: center;
    font-family: var(--b-font); letter-spacing: -.02em;
    background: linear-gradient(90deg, #0284c7, #0d9488);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.b-login-box .logo-sub {
    text-align: center; font-size: 12px; color: var(--b-muted);
    margin: 6px 0 26px; letter-spacing: .03em;
}
.b-login-box .field { margin-bottom: 14px; }
.b-login-box .field label {
    display: block; margin-bottom: 6px; font-size: 13.5px;
    font-weight: 550; color: var(--b-text);
}
.b-login-box .field input {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 9px; font-size: 15px; outline: none;
}
.b-login-box .field input:focus {
    border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.b-login-box .btn-login {
    width: 100%; padding: 12px; margin-top: 6px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9 55%, #0d9488);
    color: #fff; border: none; border-radius: 9px;
    font-size: 15px; font-weight: 650; cursor: pointer;
    box-shadow: 0 8px 20px rgba(2,132,199,.24);
}
.b-login-box .btn-login:hover { filter: brightness(1.04); }
.b-login-box .tip {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--b-border);
    font-size: 12px; color: var(--b-muted); line-height: 1.7; text-align: center;
}
.b-login-box .tip code {
    background: #f0f9ff; color: #0369a1; padding: 2px 6px; border-radius: 4px;
}
