@charset "utf-8";
/* ============================================================
   ZOCMS 后台样式
   ============================================================ */

:root {
    --a-bg: #f4f7fc;
    --a-side: #0c1424;
    --a-primary: #2563eb;
    --a-primary-2: #4f46e5;
    --a-ink: #0f172a;
    --a-text: #475569;
    --a-muted: #8794a8;
    --a-line: #e7edf7;
    --a-line-2: #f0f4fa;
    --a-grad: linear-gradient(118deg, #2563eb, #4f46e5);
    --a-radius: 16px;
}

* { box-sizing: border-box; }

body.adm {
    margin: 0;
    background: var(--a-bg);
    color: var(--a-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--a-ink); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #64748b; background: #f4f7fc; padding: 2px 7px; border-radius: 6px; }
.ta-c { text-align: center; }
.ta-r { text-align: right; }
form.inline { display: inline; }
.inline { display: inline-block; }

.adm-ico { width: 17px; height: 17px; flex: 0 0 auto; }

/* ------------------------------ 框架 ------------------------------ */
.adm-shell { display: flex; min-height: 100vh; padding-left: 238px; }

.adm-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    background: linear-gradient(180deg, #0c1424 0%, #111d33 58%, #0d1729 100%);
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    overflow-y: auto;
    z-index: 60;
}
.adm-side::-webkit-scrollbar { width: 4px; }
.adm-side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }

.adm-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.adm-brand-mark {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--a-grad);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    display: grid; place-items: center;
    box-shadow: 0 12px 24px -12px rgba(37, 99, 235, .95);
}
.adm-brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.adm-brand-txt b { color: #fff; font-size: 17px; letter-spacing: .01em; }
.adm-brand-txt em { font-style: normal; font-size: 11px; color: #64748b; }
.adm-brand--light .adm-brand-txt b { color: #fff; }

.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav-label {
    font-size: 10.5px;
    letter-spacing: .16em;
    color: #4b5a72;
    padding: 16px 12px 7px;
    font-weight: 600;
}
.adm-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    color: #97a6bd;
    transition: background .2s, color .2s;
}
.adm-nav-item .adm-ico { width: 17px; height: 17px; opacity: .78; }
.adm-nav-item:hover { background: rgba(255, 255, 255, .06); color: #e2e8f0; }
.adm-nav-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, .95), rgba(79, 70, 229, .55));
    box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 1);
}
.adm-nav-item.is-active .adm-ico { opacity: 1; }
.adm-badge {
    margin-left: auto;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    display: grid;
    place-items: center;
}

.adm-side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 2px; }
.adm-side-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: #7d8ca3; }
.adm-side-link:hover { background: rgba(255, 255, 255, .06); color: #e2e8f0; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

.adm-top {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 68px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--a-line);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 26px;
}
.adm-burger {
    display: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--a-line);
    background: #fff;
    color: var(--a-ink);
    place-items: center;
}
.adm-top-title h1 { font-size: 15.5px; letter-spacing: -.01em; }
.adm-top-title span { font-size: 11.5px; color: var(--a-muted); }
.adm-top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.adm-user { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--a-line); }
.adm-avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(140deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 14px;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.adm-avatar--sm { width: 30px; height: 30px; font-size: 12.5px; border-radius: 9px; }
.adm-avatar--lg { width: 52px; height: 52px; font-size: 20px; border-radius: 15px; }
.adm-user-txt { display: flex; flex-direction: column; line-height: 1.25; }
.adm-user-txt b { font-size: 13px; color: var(--a-ink); }
.adm-user-txt em { font-style: normal; font-size: 11px; color: var(--a-muted); }

.adm-content { flex: 1; padding: 22px 26px 6px; }
.adm-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 26px 22px;
    font-size: 11.5px;
    color: #9aa8bb;
    flex-wrap: wrap;
}

.adm-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.adm-page-head h2 { font-size: 20px; letter-spacing: -.02em; }
.adm-page-head p { margin-top: 4px; font-size: 12.5px; color: var(--a-muted); }
.adm-page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ------------------------------ 按钮 ------------------------------ */
.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
    background: #fff;
    font-family: inherit;
}
.adm-btn-primary { background: var(--a-grad); color: #fff; box-shadow: 0 10px 20px -14px rgba(37, 99, 235, 1); }
.adm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -14px rgba(37, 99, 235, 1); }
.adm-btn-ghost { border-color: var(--a-line); color: #334155; background: #fff; }
.adm-btn-ghost:hover { border-color: #c9d9f5; color: var(--a-primary); }
.adm-btn-danger { background: #fef2f2; color: #b91c1c; border-color: #fee2e2; }
.adm-btn-danger:hover { background: #fee2e2; }
.adm-btn-text { background: transparent; color: var(--a-primary); padding: 9px 8px; }
.adm-btn-text:hover { background: #eff5ff; }
.adm-btn-sm { padding: 7px 12px; font-size: 12.5px; }
.adm-btn-xs { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.adm-btn-lg { padding: 11px 22px; font-size: 14px; }
.adm-btn-block { width: 100%; }

.adm-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--a-muted); }
.adm-link:hover { color: var(--a-primary); }

/* ------------------------------ 卡片 ------------------------------ */
.adm-card {
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
    margin-bottom: 18px;
    overflow: hidden;
}
.adm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--a-line-2);
}
.adm-card-head h3 { font-size: 14px; letter-spacing: -.01em; }
.adm-sub { font-size: 11.5px; color: var(--a-muted); }
.adm-card-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; }

.adm-grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: start; }
.adm-grid-2--form { grid-template-columns: 1.6fr 1fr; }
.adm-col { min-width: 0; }
.adm-grid-2 > * { min-width: 0; }
.adm-card { min-width: 0; }

/* ------------------------------ 统计 ------------------------------ */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.adm-stat {
    position: relative;
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: .2s;
}
.adm-stat:hover { border-color: #d5e3f8; box-shadow: 0 18px 32px -26px rgba(15, 23, 42, .4); }
.adm-stat-ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.adm-stat-ico .adm-ico { width: 20px; height: 20px; }
.adm-stat-ico.is-blue { background: #eff5ff; color: #2563eb; }
.adm-stat-ico.is-violet { background: #f5f0ff; color: #7c3aed; }
.adm-stat-ico.is-amber { background: #fef4e6; color: #d97706; }
.adm-stat-ico.is-teal { background: #ecfdf5; color: #0d9488; }
.adm-stat-body b { display: block; font-size: 23px; line-height: 1.15; color: var(--a-ink); letter-spacing: -.02em; }
.adm-stat-body em { font-style: normal; font-size: 11.5px; color: var(--a-muted); }
.adm-badge-soft {
    margin-left: auto;
    font-size: 10.5px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: 999px;
    align-self: flex-start;
}

/* 图表 */
.adm-chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 22px 20px 16px; }
.adm-chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.adm-chart-val { font-size: 11px; color: var(--a-muted); }
.adm-chart-bar { width: 100%; max-width: 42px; border-radius: 8px 8px 4px 4px; background: #eef4fd; position: relative; overflow: hidden; }
.adm-chart-bar i { position: absolute; inset: 0; background: linear-gradient(180deg, #4f7ef7, #2563eb); border-radius: 8px 8px 4px 4px; opacity: .9; }
.adm-chart-x { font-size: 11px; color: #94a3b8; }

.adm-kv { display: flex; flex-direction: column; }
.adm-kv li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--a-line); font-size: 12.5px; }
.adm-kv li:last-child { border-bottom: 0; }
.adm-kv span { color: var(--a-muted); }
.adm-kv b { color: var(--a-ink); font-weight: 600; }
.adm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.adm-quick a {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 6px;
    border-radius: 11px;
    background: #f8fafe;
    border: 1px solid var(--a-line-2);
    font-size: 11.5px;
    color: #56667e;
}
.adm-quick a:hover { background: #eff5ff; border-color: #dbe8ff; color: var(--a-primary); }

/* 列表 */
.adm-list { display: flex; flex-direction: column; padding: 6px 8px 10px; }
.adm-list-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 11px; transition: background .18s; }
.adm-list-row:hover { background: #f8fafe; }
.adm-list-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; display: block; }
.adm-list-thumb .mock--poster { aspect-ratio: auto; height: 100%; border-radius: 10px; padding: 0; }
.adm-list-thumb .mock-poster-label { display: none; }
.adm-list-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.adm-list-txt b { font-size: 13px; color: #1e293b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-list-txt em { font-style: normal; font-size: 11.5px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------ 表格 ------------------------------ */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    color: #7b8aa0;
    background: #f9fbfe;
    padding: 11px 16px;
    border-bottom: 1px solid var(--a-line-2);
    white-space: nowrap;
}
.adm-table td { padding: 13px 16px; border-bottom: 1px solid var(--a-line-2); vertical-align: middle; color: #475569; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { transition: background .15s; }
.adm-table tbody tr:hover { background: #fafcff; }
.adm-table tr.is-unread { background: #fffcf3; }
.adm-table tr.is-unread:hover { background: #fff9ea; }
.adm-table .adm-muted { color: var(--a-muted); font-size: 12px; }
.adm-empty { text-align: center; padding: 44px 16px; color: var(--a-muted); font-size: 13px; }

.adm-name { display: flex; align-items: center; gap: 10px; }
.adm-name b { display: block; font-size: 13px; color: var(--a-ink); font-weight: 600; }
.adm-name em { display: block; font-style: normal; font-size: 11.5px; color: var(--a-muted); margin-top: 1px; }
.adm-name--sub { padding-left: 2px; }
.adm-tree-line {
    width: 14px; height: 15px;
    border-left: 1px solid #dbe4f0;
    border-bottom: 1px solid #dbe4f0;
    border-radius: 0 0 0 5px;
    flex: 0 0 auto;
    margin: -8px 2px 0 8px;
}
.adm-cat-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: #eff5ff;
    color: #2563eb;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.adm-cat-ico--sm { width: 28px; height: 28px; border-radius: 8px; }
.adm-cat-ico--sm .adm-ico { width: 15px; height: 15px; }
.adm-plugin-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    color: #fff;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.adm-swatch { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; }

.adm-title-cell { min-width: 0; }
.adm-title-cell b { display: block; font-size: 13px; color: var(--a-ink); font-weight: 600; }
.adm-title-cell em { display: block; font-style: normal; font-size: 11.5px; color: var(--a-muted); margin-top: 2px; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-thumb { display: block; width: 62px; height: 46px; border-radius: 8px; overflow: hidden; }
.adm-thumb .mock--poster { aspect-ratio: auto; height: 100%; border-radius: 8px; padding: 0; }
.adm-thumb .mock-poster-label { display: none; }

.adm-row-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; flex-wrap: nowrap; }
.adm-table td.ta-r { white-space: nowrap; }
.adm-nowrap { white-space: nowrap; }

.adm-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.adm-pill--green { background: #ecfdf5; color: #047857; }
.adm-pill--gray { background: #f1f5f9; color: #64748b; }
.adm-pill--blue { background: #eff5ff; color: #1d4ed8; }
.adm-pill--amber { background: #fffbeb; color: #b45309; }

/* 筛选与分页 */
.adm-filter { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--a-line-2); flex-wrap: wrap; }
.adm-filter select, .adm-filter input {
    border: 1px solid var(--a-line);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    background: #fff;
    font-family: inherit;
    outline: none;
}
.adm-filter input { min-width: 200px; }
.adm-filter select:focus, .adm-filter input:focus { border-color: #b9d1fb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.adm-filter-count { margin-left: auto; font-size: 12px; color: var(--a-muted); }

.adm-tabs { display: flex; gap: 4px; padding: 12px 18px 0; border-bottom: 1px solid var(--a-line-2); }
.adm-tab { padding: 8px 14px; font-size: 13px; color: #64748b; border-radius: 9px 9px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adm-tab:hover { color: var(--a-primary); }
.adm-tab.is-active { color: var(--a-primary); border-bottom-color: var(--a-primary); font-weight: 600; }

.pager { display: flex; align-items: center; gap: 6px; padding: 14px 18px; flex-wrap: wrap; }
.pg {
    min-width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--a-line);
    border-radius: 8px;
    font-size: 12.5px;
    color: #475569;
    background: #fff;
}
.pg:hover { border-color: #c9d9f5; color: var(--a-primary); }
.pg.is-on { background: var(--a-grad); color: #fff; border-color: transparent; }
.pg.is-off { color: #cbd5e1; background: #fafcff; }
.pg-total { margin-left: 8px; font-size: 12px; color: var(--a-muted); }

/* ------------------------------ 表单 ------------------------------ */
.adm-form .adm-card:last-of-type { margin-bottom: 0; }
.adm-fld { display: flex; flex-direction: column; gap: 6px; }
.adm-fld label { font-size: 12.5px; color: #3f4f66; font-weight: 500; }
.adm-fld label i { color: #ef4444; font-style: normal; }
.adm-fld input[type="text"],
.adm-fld input[type="number"],
.adm-fld input[type="password"],
.adm-fld input[type="search"],
.adm-fld input[type="datetime-local"],
.adm-fld select,
.adm-fld textarea {
    width: 100%;
    border: 1px solid var(--a-line);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--a-ink);
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
}
.adm-fld textarea { resize: vertical; line-height: 1.75; }
.adm-fld input:focus, .adm-fld select:focus, .adm-fld textarea:focus {
    border-color: #b9d1fb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.adm-fld input::placeholder, .adm-fld textarea::placeholder { color: #b3bfd0; }
.adm-fld .adm-input-lg { padding: 12px 14px; font-size: 16px; font-weight: 600; }
.adm-fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.adm-fld-row > .adm-fld + .adm-fld { margin-top: 0; }
.adm-fld-row--3 { grid-template-columns: repeat(3, 1fr); }
.adm-hint { font-size: 11.5px; color: #9aa8bb; }

.adm-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.8; background: #fbfcfe; }

.adm-form-foot { display: flex; align-items: center; gap: 12px; padding: 6px 0 26px; flex-wrap: wrap; }

.adm-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #3f4f66; cursor: pointer; }
.adm-switch input { display: none; }
.adm-switch-ui {
    width: 38px; height: 22px;
    border-radius: 999px;
    background: #dde5f0;
    position: relative;
    transition: background .2s;
    flex: 0 0 auto;
}
.adm-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
    transition: transform .2s;
}
.adm-switch input:checked + .adm-switch-ui { background: var(--a-grad); }
.adm-switch input:checked + .adm-switch-ui::after { transform: translateX(16px); }

/* 上传 */
.adm-upload { display: flex; gap: 12px; align-items: flex-start; }
.adm-upload--block { flex-direction: column; }
.adm-upload-preview {
    width: 78px; height: 78px;
    flex: 0 0 auto;
    border-radius: 11px;
    border: 1px dashed #d7e2f2;
    background: #f8fafe;
    display: grid;
    place-items: center;
    color: #b3bfd0;
    overflow: hidden;
}
.adm-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.adm-upload-preview--wide { width: 100%; height: 130px; }

/* LOGO 预览：等比缩放 + 透明底棋盘格，深色版用深底 */
.adm-upload--logo { align-items: center; }
.adm-upload--logo .adm-upload-preview {
    width: 176px; height: 72px;
    padding: 8px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #eef2f8 25%, transparent 25%, transparent 75%, #eef2f8 75%),
        linear-gradient(45deg, #eef2f8 25%, transparent 25%, transparent 75%, #eef2f8 75%);
    background-size: 12px 12px;
    background-position: 0 0, 6px 6px;
}
.adm-upload--logo .adm-upload-preview img { object-fit: contain; }
.adm-upload--logo .adm-upload-preview--dark {
    background-color: #0b1220;
    border-color: #22304a;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%);
}
.adm-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}
.adm-clear input { accent-color: #dc2626; margin: 0; }
.adm-clear:hover { color: #dc2626; }
.adm-upload-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.adm-upload-body input[type="text"] {
    border: 1px solid var(--a-line);
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 12.5px;
    outline: none;
}
.adm-upload input[type="file"] { font-size: 12px; color: #64748b; }
input[type="file"]::file-selector-button {
    border: 1px solid var(--a-line);
    background: #fff;
    color: #334155;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: inherit;
    margin-right: 10px;
    cursor: pointer;
    transition: .18s;
}
input[type="file"]::file-selector-button:hover { border-color: #c9d9f5; color: var(--a-primary); }

/* 图标选择器 */
.adm-icon-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.adm-icon-picker--sm { grid-template-columns: repeat(5, 1fr); gap: 7px; }
.adm-icon-opt input { display: none; }
.adm-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 11px 4px;
    border: 1px solid var(--a-line);
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    transition: .18s;
}
.adm-icon-box em { font-style: normal; font-size: 10.5px; }
.adm-icon-opt:hover .adm-icon-box { border-color: #c9d9f5; color: var(--a-primary); background: #f8fbff; }
.adm-icon-opt input:checked + .adm-icon-box {
    border-color: #93b4f8;
    background: #eff5ff;
    color: var(--a-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

/* 颜色与预览 */
.adm-color { padding: 2px !important; height: 40px; cursor: pointer; }
.adm-preview {
    margin-top: 14px;
    height: 96px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 14px 30px -20px rgba(15, 23, 42, .6);
}
.adm-preview--sm { height: 74px; font-size: 20px; }

/* 编辑器 */
.adm-editor { border: 1px solid var(--a-line); border-radius: 11px; overflow: hidden; }
.adm-editor-bar { display: flex; gap: 3px; padding: 8px; background: #f9fbfe; border-bottom: 1px solid var(--a-line-2); flex-wrap: wrap; }
.adm-editor-bar button {
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    color: #56667e;
    font-family: inherit;
}
.adm-editor-bar button:hover { background: #eef4fd; color: var(--a-primary); }
.adm-editor textarea { width: 100%; display: block; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 14px 16px; }

/* 提示条 */
.adm-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 11px;
    font-size: 13px;
    margin-bottom: 16px;
}
.adm-alert--success { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }
.adm-alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }

/* 留言详情 */
.adm-msg-head { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px dashed var(--a-line); }
.adm-msg-head b { font-size: 14px; color: var(--a-ink); }
.adm-msg-head em { font-style: normal; font-size: 12px; color: var(--a-muted); }
.adm-msg-body { padding: 18px 0 20px; font-size: 14px; line-height: 1.9; color: #334155; }
.adm-form-inline { display: flex; flex-direction: column; gap: 15px; }
.adm-form-inline-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-user-big { display: flex; align-items: center; gap: 13px; }
.adm-user-big b { display: block; font-size: 15px; color: var(--a-ink); }
.adm-user-big em { font-style: normal; font-size: 12px; color: var(--a-muted); }

/* ------------------------------ 登录页 ------------------------------ */
.adm-login { margin: 0; min-height: 100vh; background: #f4f7fc; }
.login-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-aside {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #0b1424, #14213b 55%, #0d1a30);
    color: #94a3b8;
    padding: 40px 46px;
    display: flex;
    flex-direction: column;
}
.login-glow {
    position: absolute;
    width: 620px; height: 620px;
    right: -180px; top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .38), transparent 66%);
}
.login-aside .adm-brand { position: relative; padding: 0; }
.login-aside .adm-brand-txt b { color: #fff; }
.login-aside-body { position: relative; margin: auto 0; }
.login-aside-body h2 { color: #fff; font-size: 34px; line-height: 1.32; letter-spacing: -.025em; }
.login-aside-body p { margin-top: 14px; font-size: 14px; color: #8fa0b8; }
.login-points { margin-top: 26px; display: flex; flex-direction: column; gap: 11px; }
.login-points li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #a9b8cc; }
.login-points .adm-ico { color: #34d399; }
.login-aside-foot { position: relative; font-size: 11.5px; color: #4f5f78; }

.login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: 20px;
    padding: 34px 32px 30px;
    box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .4);
}
.login-card h1 { font-size: 24px; letter-spacing: -.02em; }
.login-sub { margin-top: 6px; font-size: 13px; color: var(--a-muted); margin-bottom: 22px; }
.login-card .adm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.login-card .adm-field > span { font-size: 12.5px; color: #3f4f66; }
.adm-input-ico { position: relative; display: flex; align-items: center; }
.adm-input-ico .adm-ico { position: absolute; left: 12px; color: #a3b1c6; width: 16px; height: 16px; }
.adm-input-ico input {
    width: 100%;
    border: 1px solid var(--a-line);
    border-radius: 10px;
    padding: 11px 12px 11px 36px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    transition: .18s;
}
.adm-input-ico input:focus { border-color: #b9d1fb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.login-card .adm-btn-block { margin-top: 8px; }
.login-hint {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafe;
    border: 1px dashed #dfe8f5;
    font-size: 11.5px;
    color: #8593a8;
    line-height: 1.8;
}
.login-hint b { color: #475569; }
.login-copy { margin-top: 22px; font-size: 11.5px; color: #9aa8bb; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1180px) {
    .adm-stats { grid-template-columns: repeat(2, 1fr); }
    .adm-grid-2, .adm-grid-2--form { grid-template-columns: 1fr; }
    .adm-quick { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .adm-side { transform: translateX(-100%); transition: transform .26s; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
    body.adm-nav-open .adm-side { transform: none; }
    .adm-shell { padding-left: 0; }
    .adm-burger { display: grid; }
    .adm-top { padding: 0 16px; }
    .adm-content { padding: 16px 16px 4px; }
    .adm-foot { padding: 14px 16px 20px; }
    .adm-user-txt { display: none; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-aside { display: none; }
    .adm-fld-row, .adm-fld-row--3 { grid-template-columns: 1fr; }
    .adm-icon-picker { grid-template-columns: repeat(3, 1fr); }
    .adm-filter input { min-width: 120px; flex: 1; }
    .adm-title-cell em { max-width: 220px; }
}

@media (max-width: 640px) {
    .adm-stats { grid-template-columns: 1fr; }
    .adm-page-head { flex-direction: column; align-items: flex-start; }
    .adm-quick { grid-template-columns: repeat(2, 1fr); }
    .adm-card-body { padding: 16px; }
    .adm-top-actions .adm-btn { display: none; }
    .adm-icon-picker, .adm-icon-picker--sm { grid-template-columns: repeat(3, 1fr); }
}
