/* ============================
   刚刚好资源网 · 管理后台 Ink Paper（与前台统一）
   ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --a-primary: #1c1917;
    --a-primary-deep: #0c0a09;
    --a-sky: #ea580c;
    --a-accent: #c2410c;
    --a-ink: #14120f;
    --a-ink-2: #1c1917;
    --a-bg: #f4f2ee;
    --a-card: rgba(255,255,255,.94);
    --a-text: #14120f;
    --a-muted: #7a746c;
    --a-border: rgba(20,18,15,.08);
    --a-radius: 14px;
    --a-shadow: 0 10px 28px rgba(20,18,15,.07);
    --a-font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --a-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    font-family: var(--a-body);
    background: var(--a-bg);
    color: var(--a-text);
    font-size: 14px;
    line-height: 1.6;
}
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 480px at 0% -10%, rgba(234, 88, 12, 0.07), transparent 55%),
        radial-gradient(700px 420px at 100% 0%, rgba(28, 25, 23, 0.05), transparent 50%),
        linear-gradient(180deg, #f7f5f1 0%, #f1efe9 40%, #ebe8e2 100%);
}
a { color: var(--a-primary-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--a-accent); }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 248px;
    background: linear-gradient(180deg, #3a342c 0%, #2c271f 55%, #26211a 100%);
    color: #f3ebe0;
    flex-shrink: 0;
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto; z-index: 100;
    border-right: 1px solid rgba(243,235,224,.08);
    box-shadow: 4px 0 24px rgba(20,18,15,.12);
}
.admin-sidebar .logo {
    padding: 22px 22px 18px;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--a-font);
    letter-spacing: -.03em;
    border-bottom: 1px solid rgba(243,235,224,.1);
    color: #f8f1e6;
    background: none;
    -webkit-text-fill-color: #f8f1e6;
}
.admin-sidebar .logo::after {
    content: '';
    display: inline-block;
    width: 8px; height: 8px; margin-left: 8px;
    border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 0 0 3px rgba(234,88,12,.2);
    vertical-align: middle;
}
.admin-sidebar .menu { padding: 14px 0 28px; }
.admin-sidebar .menu-group {
    padding: 14px 22px 8px;
    font-size: 11px;
    color: rgba(243,235,224,.5);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 600;
}
.admin-sidebar .menu a {
    display: flex; align-items: center; gap: 10px;
    margin: 2px 10px;
    padding: 10px 14px;
    color: rgba(243,235,224,.82);
    transition: all .2s;
    border-radius: 10px;
    border-left: none;
    font-size: 13.5px;
    font-weight: 550;
}
.admin-sidebar .menu a:hover {
    background: rgba(243,235,224,.1); color: #fff;
}
.admin-sidebar .menu a.active {
    background: rgba(243,235,224,.12); color: #fff;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #ea580c;
}
.admin-sidebar .menu a .icon { width: 18px; text-align: center; }

.admin-main { margin-left: 248px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.admin-header {
    height: 58px;
    background: rgba(255,255,255,.75);
    padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 1px 0 var(--a-border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.admin-header .breadcrumb { font-size: 13.5px; color: var(--a-muted); }
.admin-header .breadcrumb a { color: var(--a-muted); }
.admin-header .breadcrumb a:hover { color: var(--a-primary-deep); }
.admin-header .header-right { display: flex; align-items: center; gap: 16px; }
.admin-header .admin-info { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.admin-header .admin-info .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #1c1917;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
    box-shadow: 0 0 0 2px rgba(28,25,23,.12);
}
.admin-header .logout-btn {
    padding: 7px 14px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--a-border);
    border-radius: 12px; cursor: pointer; font-size: 13px;
    color: var(--a-text); transition: all .2s; font-weight: 650;
}
.admin-header .logout-btn:hover {
    border-color: rgba(28,25,23,.35);
    color: var(--a-primary-deep);
    box-shadow: 0 0 0 3px rgba(28,25,23,.06);
}

.admin-content { padding: 24px; flex: 1; }
.admin-content .page-title {
    font-size: 22px; font-weight: 700; margin-bottom: 20px;
    color: var(--a-text); font-family: var(--a-font); letter-spacing: -.02em;
}

.card {
    background: var(--a-card);
    border-radius: var(--a-radius);
    padding: 20px;
    box-shadow: var(--a-shadow);
    margin-bottom: 16px;
    border: 1px solid var(--a-border);
    backdrop-filter: blur(10px);
}
.card .card-title {
    font-size: 15px; font-weight: 650; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--a-border);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--a-font);
}

.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.stat-card {
    background: var(--a-card);
    border-radius: var(--a-radius);
    padding: 20px;
    box-shadow: var(--a-shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative; overflow: hidden;
    border: 1px solid var(--a-border);
}
.stat-card::before {
    content: '';
    position: absolute; inset: 0 auto 0 0; width: 3px;
    background: linear-gradient(180deg, #1c1917, #ea580c);
    opacity: .9;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(20,18,15,.1);
    border-color: rgba(28,25,23,.18);
}
.stat-card .stat-label { color: var(--a-muted); font-size: 13px; margin-bottom: 8px; }
.stat-card .stat-value {
    font-size: 28px; font-weight: 750; color: var(--a-text);
    font-family: var(--a-font); letter-spacing: -.03em;
}
.stat-card .stat-icon {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; opacity: .9;
}
.stat-card.blue .stat-icon { background: linear-gradient(135deg, #ecfeff, #a5f3fc); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #ecfdf5, #6ee7b7); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #fffbeb, #fcd34d); }
.stat-card.red .stat-icon { background: linear-gradient(135deg, #fff1f2, #fda4af); }
.stat-card.purple .stat-icon,
.stat-card.cyan .stat-icon { background: linear-gradient(135deg, #f5f5f4, #fdba74); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; border: 1px solid transparent;
    border-radius: 10px; cursor: pointer; font-size: 14px;
    transition: all .2s; text-align: center; line-height: 1.4;
    background: #fff; font-weight: 500;
}
.btn-primary {
    background: linear-gradient(135deg, #1c1917 0%, #292524 55%, #44403c 100%);
    color: #fff; border: none;
    box-shadow: none;
    font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; transform: none; }
.btn-success { background: linear-gradient(135deg, #059669, #34d399); color: #fff; border: none; }
.btn-success:hover { filter: brightness(1.05); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #d97706, #fbbf24); color: #fff; border: none; }
.btn-warning:hover { filter: brightness(1.05); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #e11d48, #fb7185); color: #fff; border: none; }
.btn-danger:hover { filter: brightness(1.05); color: #fff; }
.btn-default {
    background: rgba(255,255,255,.9); color: var(--a-text);
    border-color: var(--a-border);
}
.btn-default:hover { border-color: rgba(28,25,23,.4); color: var(--a-primary-deep); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-xs { padding: 3px 9px; font-size: 11px; border-radius: 8px; }
.btn-link { padding: 4px 8px; border: none; background: transparent; color: var(--a-primary-deep); }
.btn-link:hover { color: var(--a-primary); text-decoration: underline; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-group--row { flex-wrap: nowrap; white-space: nowrap; }

/* 统一图片上传控件（隐藏原生 file，自定义按钮） */
.file-field {
    position: relative; display: block; width: 100%; cursor: pointer;
    margin: 0;
}
.file-field__input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2; margin: 0; font-size: 0;
    padding: 0 !important; border: none !important; background: transparent !important;
    box-shadow: none !important; border-radius: 0 !important;
}
.file-field__ui {
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 6px 10px 6px 6px;
    border: 1px dashed rgba(28,25,23,.38);
    border-radius: 10px;
    background: linear-gradient(180deg, #f5f5f4 0%, #ffffff 70%);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.file-field:hover .file-field__ui,
.file-field:focus-within .file-field__ui {
    border-color: #292524;
    box-shadow: 0 0 0 3px rgba(28,25,23,.12);
    background: #fff;
}
.file-field__btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: 8px;
    background: linear-gradient(135deg, #1c1917, #292524 55%, #ea580c);
    color: #fff; font-size: 13px; font-weight: 650; line-height: 1.2;
    box-shadow: 0 4px 12px rgba(28,25,23,.22);
}
.file-field__name {
    flex: 1; min-width: 0; font-size: 12.5px; color: #64748b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-field.has-file .file-field__name { color: #0f766e; font-weight: 600; }
.file-field--sm .file-field__ui { min-height: 38px; }
.file-field--sm .file-field__btn { padding: 6px 12px; font-size: 12px; }
.form-item label.file-field {
    margin-bottom: 0; font-weight: inherit; color: inherit; font-size: inherit;
}

/* 表格行操作：主按钮 + 更多下拉 */
.row-ops {
    display: inline-flex; align-items: center; gap: 6px;
    position: relative; white-space: nowrap;
}
.row-ops .op-main {
    display: inline-flex; align-items: center; gap: 6px;
}
.row-ops .op-more { position: relative; }
.row-ops .op-more-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 2px;
    min-width: 32px; height: 28px; padding: 0 8px;
    border: 1px solid var(--a-border); border-radius: 8px;
    background: #fff; color: #64748b; cursor: pointer; font-size: 12px; font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}
.row-ops .op-more-btn:hover,
.row-ops .op-more.open .op-more-btn {
    border-color: rgba(28,25,23,.45); color: var(--a-primary-deep);
    background: rgba(28,25,23,.06);
}
.row-ops .op-menu {
    display: none; z-index: 200;
    min-width: 160px; padding: 6px;
    background: #fff; border: 1px solid var(--a-border); border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15,23,42,.12);
}
.row-ops .op-more.open .op-menu { display: block; }
.row-ops .op-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 10px; border: none; border-radius: 7px;
    background: transparent; color: var(--a-text); font-size: 13px;
    text-align: left; cursor: pointer; line-height: 1.3;
}
.row-ops .op-menu button:hover { background: rgba(15,23,42,.05); }
.row-ops .op-menu button.danger { color: #e11d48; }
.row-ops .op-menu button.danger:hover { background: #fff1f2; }
.row-ops .op-menu .op-sep {
    height: 1px; margin: 4px 6px; background: var(--a-border);
}

.table-wrap { overflow-x: auto; }
.table-wrap--ops { overflow: visible; }
.data-table { width: 100%; border-collapse: collapse; background: transparent; table-layout: auto; }
.data-table th, .data-table td {
    padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--a-border);
    font-size: 13.5px; vertical-align: middle;
}
.data-table--compact th, .data-table--compact td { padding: 10px 12px; }
.data-table th {
    background: rgba(15,23,42,.03); font-weight: 650; color: var(--a-text);
    white-space: nowrap; font-family: var(--a-font); font-size: 12.5px;
    text-transform: uppercase; letter-spacing: .04em;
}
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(28,25,23,.04); }
.data-table .check-col { width: 40px; text-align: center; }
.data-table .action-col { width: auto; min-width: 168px; white-space: nowrap; }
.data-table .num-col { text-align: right; }

.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.user-avatar--txt {
    background: linear-gradient(135deg, #1c1917, #292524);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.user-meta { min-width: 0; }
.user-acc { font-weight: 650; color: var(--a-text); line-height: 1.3; }
.user-id { color: #94a3b8; font-weight: 500; font-size: 12px; }
.user-sub { margin-top: 2px; font-size: 12px; color: #64748b; line-height: 1.35; }
.user-sub .dot { margin: 0 4px; color: #cbd5e1; }
.user-sub .ok { color: #059669; }
.money { color: #059669; font-variant-numeric: tabular-nums; }
.muted-time { color: #64748b; font-size: 12.5px; white-space: nowrap; }

.tag {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 12px; line-height: 1.6; font-weight: 500;
}
.tag-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-blue { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.tag-orange { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.tag-red { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.tag-gray { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.tag-purple { background: #f5f5f4; color: #0f766e; border: 1px solid #99f6e4; }

.form-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.form-item { flex: 1; min-width: 200px; }
.form-item label {
    display: block; margin-bottom: 6px; font-size: 13.5px;
    color: var(--a-text); font-weight: 550;
}
.form-item label .required { color: #e11d48; margin-right: 4px; }
.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="email"],
.form-item input[type="number"],
.form-item input[type="url"],
.form-item select,
.form-item textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0;
    border-radius: 10px; font-size: 14px; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    background: #fff;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
    border-color: #292524; box-shadow: 0 0 0 4px rgba(28,25,23,.14);
    background: #f7fffd;
}
.form-item textarea { resize: vertical; min-height: 80px; }
.form-item .hint { font-size: 12px; color: var(--a-muted); margin-top: 4px; }
.form-item .error { border-color: #e11d48 !important; }
.form-item .error-text { color: #e11d48; font-size: 12px; margin-top: 4px; }
.form-actions { padding-top: 16px; border-top: 1px solid var(--a-border); }
.form-actions .btn { margin-right: 12px; }

.search-bar {
    background: var(--a-card); border-radius: var(--a-radius); padding: 16px 20px;
    margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-end;
    flex-wrap: wrap; box-shadow: var(--a-shadow); border: 1px solid var(--a-border);
}
.search-bar .form-item { min-width: 160px; flex: 0 0 auto; margin-bottom: 0; }
.search-bar .form-actions { border: none; padding: 0; }

.pagination {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 8px; padding: 16px 0; flex-wrap: wrap;
}
.pagination .page-info { color: var(--a-muted); font-size: 13px; margin-right: 4px; }
.pagination .page-size {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--a-muted); font-size: 13px; margin-right: 8px;
}
.pagination .page-size select {
    height: 32px; padding: 0 8px; border: 1px solid var(--a-border);
    border-radius: 8px; background: #fff; color: var(--a-text); font-size: 13px;
}
.pagination a, .pagination span {
    display: inline-block; min-width: 32px; height: 32px; padding: 0 10px;
    line-height: 30px; text-align: center; border: 1px solid var(--a-border);
    border-radius: 8px; color: var(--a-text); background: #fff;
}
.pagination a:hover { border-color: #292524; color: #1c1917; }
.pagination .current {
    background: linear-gradient(135deg, #1c1917, #292524);
    color: #fff; border-color: transparent;
}
.pagination .disabled { color: #cbd5e1; cursor: not-allowed; }

.batch-bar {
    background: linear-gradient(90deg, #ecfdf5, #ecfeff);
    border: 1px solid #99f6e4; border-radius: 10px;
    padding: 10px 16px; margin-bottom: 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.batch-bar .batch-info { color: #0f766e; font-size: 13px; }
.batch-bar .batch-actions { display: flex; gap: 8px; }

.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0;
    background-color: #cbd5e1; transition: .3s; border-radius: 22px;
}
.slider:before {
    position: absolute; content: ""; height: 18px; width: 18px;
    left: 2px; bottom: 2px; background-color: white;
    transition: .3s; border-radius: 50%;
}
input:checked + .slider { background: linear-gradient(90deg, #1c1917, #292524); }
input:checked + .slider:before { transform: translateX(22px); }

.perm-switches { display: flex; flex-direction: column; gap: 8px; min-width: 118px; }
.switch-row { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.switch-row .switch { flex-shrink: 0; }
.switch-row__txt { font-size: 12px; color: #64748b; white-space: nowrap; }

.alert {
    padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert-error { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.alert-info { background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490; }

.img-preview {
    display: inline-block; width: 80px; height: 80px; border: 1px solid var(--a-border);
    border-radius: 10px; overflow: hidden; background: #f8fafc; position: relative;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .remove {
    position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
    cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 12px;
}
.img-preview:hover .remove { display: flex; }

.modal-mask {
    position: fixed; inset: 0; background: rgba(11,19,36,.52); z-index: 1000;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: 16px; width: 90%; max-width: 520px;
    max-height: 90vh; overflow: auto;
    box-shadow: 0 24px 64px rgba(11,19,36,.28);
    border: 1px solid rgba(255,255,255,.4);
}
.modal-header {
    padding: 16px 24px; border-bottom: 1px solid var(--a-border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header .title { font-size: 16px; font-weight: 700; font-family: var(--a-font); }
.modal-header .close { cursor: pointer; font-size: 20px; color: #94a3b8; line-height: 1; }
.modal-header .close:hover { color: var(--a-text); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 12px 24px; border-top: 1px solid var(--a-border); text-align: right; }
.modal-footer .btn { margin-left: 10px; }

.section-title {
    font-size: 13px; font-weight: 650; color: #1c1917; margin-bottom: 10px;
    padding: 7px 12px; background: #f5f5f4; border-left: 3px solid #292524; border-radius: 6px;
}

.mobile-menu-btn {
    display: none; width: 40px; height: 40px; border: none; background: transparent;
    cursor: pointer; align-items: center; justify-content: center;
    font-size: 20px; color: var(--a-text); border-radius: 10px;
}
.mobile-menu-btn:hover { background: rgba(15,23,42,.05); }
.sidebar-mask {
    display: none; position: fixed; inset: 0;
    background: rgba(11,19,36,.45); z-index: 90;
}
.sidebar-mask.show { display: block; }

/* 只用 opacity，避免 transform 影响 fixed 弹窗/点击；只动画内容壳，不动画 script/modal */
@keyframes admin-fade { from{opacity:0} to{opacity:1} }
.admin-content > .admin-page { animation: admin-fade .35s ease both; }

/* 授权中心官方公告（顶栏下方粘性横幅，全后台可见） */
.auth-center-announce-wrap {
    position: sticky;
    top: 0;
    z-index: 90;
    margin: 0;
    border-bottom: 2px solid #0ea5e9;
    background: #fff;
    box-shadow: 0 6px 24px rgba(14, 165, 233, .15);
}
.auth-center-announce-wrap.has-items {
    animation: announce-pulse-border 2.5s ease-in-out infinite;
}
@keyframes announce-pulse-border {
    0%, 100% { border-bottom-color: #0ea5e9; }
    50% { border-bottom-color: #f59e0b; }
}
.auth-center-announce-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px 10px;
    font-size: 13px; color: var(--a-muted);
    border-bottom: 1px dashed var(--a-border);
    background: linear-gradient(90deg, #e0f2fe, #fff 55%);
}
.auth-center-announce-badge {
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    padding: 3px 10px; border-radius: 999px;
    background: linear-gradient(135deg, #0284c7, #0d9488); color: #fff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, .35);
}
.auth-center-announce-count {
    font-size: 12px; color: #64748b; font-weight: 600;
}
.auth-center-announce-more {
    margin-left: auto;
    font-size: 12px; font-weight: 700; color: #0284c7;
    text-decoration: none;
}
.auth-center-announce-more:hover { text-decoration: underline; }
.auth-center-announce {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px; font-size: 13px; line-height: 1.6;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.auth-center-announce-body { flex: 1; min-width: 0; }
.auth-center-announce:last-child { border-bottom: none; }
.auth-center-announce.lv-1 { background: linear-gradient(90deg, #eff6ff, #f8fafc); color: #1e40af; }
.auth-center-announce.lv-2 { background: linear-gradient(90deg, #fffbeb, #fff7ed); color: #c2410c; }
.auth-center-announce.lv-3 { background: linear-gradient(90deg, #fef2f2, #fff1f2); color: #b91c1c; }
.auth-center-announce-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.auth-center-announce-content { color: inherit; opacity: .92; }
.auth-center-announce-link {
    display: inline-block; margin-top: 6px; font-weight: 700;
    color: inherit; text-decoration: underline;
}
.auth-center-announce-time { margin-top: 6px; font-size: 11.5px; opacity: .7; }
.auth-center-announce-close {
    flex-shrink: 0; border: none; cursor: pointer;
    background: rgba(255,255,255,.75); color: inherit;
    border-radius: 8px; padding: 5px 12px; font-size: 12px;
    transition: background .15s;
}
.auth-center-announce-close:hover { background: #fff; }
.admin-sidebar .menu-badge {
    margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px;
    border-radius: 999px; background: #ef4444; color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* 后台首页 · 官方通知（与交易额并排） */
.dashboard-bottom-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.dashboard-chart-card,
.official-notices-side {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}
.dashboard-chart-wrap {
    flex: 1;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 10px 8px;
}
.dashboard-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.dashboard-chart-amt {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}
.dashboard-chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #0f766e, #0284c7);
    border-radius: 6px 6px 0 0;
}
.dashboard-chart-label {
    font-size: 12px;
    color: #475569;
}
.dashboard-chart-empty {
    flex: 1;
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    width: 100%;
}
.official-notices-side .card-title { margin-bottom: 0; }
.official-notices-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.official-notices-count {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.official-notices-empty-compact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    min-height: 180px;
}
.official-notices-list-compact {
    flex: 1;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.official-notice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.official-notice-row:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.official-notice-row:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}
.official-notice-row.lv-1 { border-left: 3px solid #3b82f6; }
.official-notice-row.lv-2 { border-left: 3px solid #f59e0b; background: #fffdf7; }
.official-notice-row.lv-3 { border-left: 3px solid #ef4444; background: #fffafa; }
.official-notice-row-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #3b82f6;
}
.official-notice-row.lv-2 .official-notice-row-indicator { background: #f59e0b; }
.official-notice-row.lv-3 .official-notice-row-indicator { background: #ef4444; }
.official-notice-row-body {
    flex: 1;
    min-width: 0;
}
.official-notice-row-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.official-notice-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 11px;
    color: #94a3b8;
}
.official-notice-row-meta .official-notice-level {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, .06);
    color: #64748b;
}
.official-notice-row.lv-2 .official-notice-row-meta .official-notice-level {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}
.official-notice-row.lv-3 .official-notice-row-meta .official-notice-level {
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
}
.official-notice-row-chevron {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: #cbd5e1;
    font-weight: 300;
}
.official-notice-row:hover .official-notice-row-chevron { color: #64748b; }
.official-notices-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}
.official-notice-compact {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.official-notice-compact:last-child { margin-bottom: 0; }
.official-notice-compact.lv-2 { border-left: 3px solid #f59e0b; background: #fffbeb; }
.official-notice-compact.lv-3 { border-left: 3px solid #ef4444; background: #fef2f2; }
.official-notice-compact.lv-1 { border-left: 3px solid #3b82f6; }
.official-notice-compact-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #94a3b8;
}
.official-notice-compact-head .official-notice-level {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, .06);
    color: #64748b;
}
.official-notice-compact-title {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 4px;
}
.official-notice-compact-content {
    font-size: 12.5px;
    line-height: 1.6;
    color: #475569;
}
.official-notice-compact-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}
.official-notice-compact-link:hover { text-decoration: underline; }

/* 首页官方通知弹窗 */
.official-notice-modal-mask { z-index: 1100; }
.official-notice-modal {
    width: min(92vw, 560px);
    max-height: min(88vh, 640px);
    display: flex;
    flex-direction: column;
}
.official-notice-modal-header {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    border-bottom-color: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.official-notice-modal-header .title { flex: 1; min-width: 0; }
.modal-close-btn {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.modal-close-btn:hover { color: #475569; }
.official-notice-modal.lv-2 .official-notice-modal-header {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
    border-bottom-color: #fde68a;
}
.official-notice-modal.lv-3 .official-notice-modal-header {
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
    border-bottom-color: #fecaca;
}
.official-notice-modal-body {
    overflow-y: auto;
    flex: 1;
    padding-top: 16px;
    padding-bottom: 16px;
}
.official-notice-modal-item {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 12px;
}
.official-notice-modal-item:last-child { margin-bottom: 0; }
.official-notice-modal-item.lv-2 {
    border-color: #fde68a;
    background: #fffbeb;
}
.official-notice-modal-item.lv-3 {
    border-color: #fecaca;
    background: #fef2f2;
}
.official-notice-modal-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11.5px;
    color: #64748b;
}
.official-notice-modal-item-head .official-notice-level {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59,130,246,.12);
    color: #1d4ed8;
}
.official-notice-modal-item.lv-2 .official-notice-level {
    background: rgba(245,158,11,.15);
    color: #b45309;
}
.official-notice-modal-item.lv-3 .official-notice-level {
    background: rgba(239,68,68,.12);
    color: #b91c1c;
}
.official-notice-modal-item-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}
.official-notice-modal-item-content {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.75;
}
.official-notice-modal-item-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.official-notice-modal-item-link:hover { text-decoration: underline; }
.official-notice-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.official-notice-modal-footer .btn { margin-left: 0; }

@media (max-width: 992px) {
    .dashboard-bottom-row { grid-template-columns: 1fr; }
    .admin-sidebar {
        transform: translateX(-100%); transition: transform .28s ease;
        box-shadow: 8px 0 32px rgba(0,0,0,.2); z-index: 95; width: 248px;
    }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; min-width: 0; }
    .mobile-menu-btn { display: inline-flex; }
    .admin-content { padding: 16px; min-width: 0; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
    /* 页面内联多列网格：录屏/手机浏览时纵向展开，避免裁切 */
    .admin-content [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .admin-content [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .page-title { font-size: 18px; margin-bottom: 14px; line-height: 1.35; }
    .admin-content { padding: 12px; }
    .admin-header {
        height: auto; min-height: 52px;
        padding: 8px 12px; gap: 8px;
        flex-wrap: wrap; align-items: center;
    }
    .admin-header > div:first-child {
        flex: 1 1 auto; min-width: 0; max-width: 100%;
    }
    .admin-header .breadcrumb {
        font-size: 12px; line-height: 1.45;
        white-space: normal; word-break: break-word;
    }
    .admin-header .header-right {
        flex: 1 1 100%; justify-content: flex-end;
        flex-wrap: wrap; gap: 8px;
    }
    .admin-header .header-right > a { font-size: 12px; }
    .admin-header .admin-info span:last-child { display: inline; font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .auth-center-announce-wrap { margin: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px 12px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; right: 10px; }
    .search-bar { flex-direction: column; align-items: stretch; padding: 14px; }
    .search-bar .form-item { width: 100%; min-width: 0; flex: 1 1 100%; }
    .search-bar .form-actions {
        width: 100%; display: flex; flex-wrap: wrap; gap: 8px;
    }
    .search-bar .form-actions .btn { flex: 1 1 auto; min-width: 0; margin: 0; }
    .batch-bar {
        flex-direction: column; align-items: stretch; gap: 10px;
        padding: 12px 14px;
    }
    .batch-bar .batch-actions {
        flex-wrap: wrap; width: 100%;
    }
    .batch-bar .batch-actions .btn { flex: 1 1 auto; }
    .form-row { flex-direction: column; gap: 0; }
    .form-item { min-width: 0; width: 100%; }
    .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .form-actions .btn { margin-right: 0; flex: 1 1 auto; }
    .card { padding: 14px; margin-bottom: 12px; }
    .card .card-title {
        flex-wrap: wrap; gap: 8px; font-size: 14px;
    }
    .btn-group { flex-wrap: wrap; }
    .btn-group--row { flex-wrap: wrap; white-space: normal; }
    .layout-2col { grid-template-columns: 1fr; }
    .admin-content [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    /* 表格：取消强制最小宽度，列内换行，录屏时一屏可见全部列 */
    .table-wrap {
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .card > .table-wrap::before,
    .card[style*="padding:0"] > .table-wrap::before {
        content: '表格列较多时可左右滑动查看；或缩小录屏区域以展示更多列';
        display: block;
        font-size: 11px;
        color: #64748b;
        padding: 6px 10px 8px;
        background: linear-gradient(90deg, #f8fafc, #fff);
        border-bottom: 1px dashed var(--a-border);
        line-height: 1.45;
    }
    .data-table {
        min-width: 0 !important;
        width: 100%;
        table-layout: auto;
    }
    .data-table th,
    .data-table td {
        white-space: normal;
        word-break: break-word;
        font-size: 12px;
        padding: 8px 6px;
        vertical-align: top;
        max-width: none;
    }
    .data-table th {
        font-size: 11px;
        line-height: 1.35;
    }
    .data-table .action-col {
        min-width: 0;
        white-space: normal;
    }
    .data-table .check-col { width: 32px; }
    .data-table .btn-group,
    .data-table .row-ops {
        flex-wrap: wrap;
        white-space: normal;
    }
    .data-table .btn-xs,
    .data-table .btn-link {
        padding: 4px 6px;
        font-size: 11px;
    }
    .user-cell { flex-wrap: wrap; }
    .muted-time { white-space: normal; }
    .pagination {
        justify-content: center;
        padding: 12px 0;
    }
    .pagination .page-info,
    .pagination .page-size { margin: 0; }
    .modal-mask .modal {
        width: 96% !important;
        max-width: 96vw !important;
        border-radius: 14px;
        max-height: 92vh;
    }
    .modal-body { padding: 16px; }
    .modal-header { padding: 12px 16px; }
    .modal-footer {
        padding: 10px 16px;
        display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
    }
    .modal-footer .btn { margin-left: 0; flex: 1 1 auto; }
    .page-header,
    [class*="page-head"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .demo-banner { font-size: 12px; padding: 8px 10px; }
    .official-notice-modal-footer { justify-content: stretch; }
    .official-notice-modal-footer .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card .stat-value { font-size: 18px; }
    .admin-sidebar { width: min(88vw, 248px); }
    .admin-header .logout-btn { padding: 6px 10px; font-size: 12px; }
    .mobile-menu-btn { width: 36px; height: 36px; }
}
html, body { overflow-x: hidden; max-width: 100vw; }
.admin-layout { max-width: 100vw; overflow-x: hidden; }
.admin-main { max-width: 100%; overflow-x: hidden; }
.admin-content { max-width: 100%; overflow-x: hidden; }
.admin-content img,
.admin-content video,
.admin-content iframe,
.admin-content pre { max-width: 100%; height: auto; }

/* ===== 独立登录页（管理员） ===== */
.admin-login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.admin-login-card {
    width: 100%; max-width: 420px;
    background: var(--a-card);
    border: 1px solid var(--a-border);
    border-radius: 18px;
    padding: 40px 34px;
    box-shadow: 0 24px 64px rgba(11,19,36,.14);
    animation: admin-fade .45s ease both;
    backdrop-filter: blur(12px);
}
.admin-login-card .login-logo { text-align: center; margin-bottom: 28px; }
.admin-login-card .login-logo .icon {
    width: 56px; height: 56px; margin: 0 auto 14px;
    background: linear-gradient(135deg, #1c1917, #292524 50%, #ea580c);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 800; font-family: var(--a-font);
    box-shadow: 0 10px 28px rgba(28,25,23,.3);
}
.admin-login-card .login-logo h1 {
    font-size: 20px; font-weight: 750; color: var(--a-text);
    font-family: var(--a-font); letter-spacing: -.02em; margin-bottom: 6px;
}
.admin-login-card .login-logo p { font-size: 13px; color: var(--a-muted); }
.admin-login-card .form-item { margin-bottom: 18px; }
.admin-login-card .form-item label {
    display: block; margin-bottom: 8px; font-size: 13.5px;
    font-weight: 550; color: var(--a-text);
}
.admin-login-card .form-item input {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 10px; font-size: 15px; outline: none; transition: all .2s;
}
.admin-login-card .form-item input:focus {
    border-color: #292524; box-shadow: 0 0 0 4px rgba(28,25,23,.14);
    background: #f7fffd;
}
.admin-login-card .login-btn {
    width: 100%; padding: 13px; margin-top: 6px;
    background: linear-gradient(135deg, #1c1917, #292524 50%, #ea580c);
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 650; cursor: pointer;
    box-shadow: 0 10px 24px rgba(28,25,23,.28);
    transition: transform .2s, filter .2s;
}
.admin-login-card .login-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.admin-login-card .footer-link {
    text-align: center; margin-top: 22px; font-size: 13px; color: var(--a-muted);
}
.layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) {
    .layout-2col { grid-template-columns: 1fr; }
}

/* gold-flow-admin */
@keyframes gold-flow-admin {
    0% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
    100% { background-position: 0% 40%; }
}
.admin-sidebar {
    background: linear-gradient(145deg, #2a241c 0%, #5a4630 26%, #3a3126 50%, #8b6b3d 76%, #2f291f 100%) !important;
    background-size: 280% 280% !important;
    animation: gold-flow-admin 16s ease-in-out infinite !important;
}