/* ==========================================================================
   维创尚科技 · 后台样式（原生 CSS）
   浅色控制台风格，与前台白色科技体系保持一致
   ========================================================================== */

:root {
    --a-bg: #f4f6fa;
    --a-bg-soft: #eef1f7;
    --a-panel: #ffffff;
    --a-line: rgba(15, 40, 75, 0.12);
    --a-text: #17263c;
    --a-text-2: #5b6b82;
    --a-cyan: #0796b8;
    --a-blue: #2f6bff;
    --a-green: #16a34a;
    --a-danger: #dc2626;
    --a-radius: 14px;
    --a-shadow: 0 10px 30px rgba(15, 40, 75, 0.07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--a-bg);
    color: var(--a-text);
    font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 12% -8%, rgba(7, 182, 213, 0.08), transparent 60%),
        radial-gradient(700px 500px at 100% 0%, rgba(47, 107, 255, 0.07), transparent 55%),
        linear-gradient(rgba(15, 40, 75, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 40, 75, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: -1;
}

a { color: var(--a-cyan); text-decoration: none; }
a:hover { color: var(--a-blue); }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }

img { max-width: 100%; }

input, select, textarea, button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--a-cyan); outline-offset: 2px; }

/* ---------- 布局 ---------- */
.admin-shell { display: flex; min-height: 100vh; }

.admin-side {
    width: 248px;
    flex: 0 0 248px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--a-line);
    background: #ffffff;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand { padding: 22px 20px 16px; border-bottom: 1px solid var(--a-line); }
.admin-brand a { display: flex; align-items: center; gap: 12px; color: var(--a-text); }
.admin-brand img { width: 34px; height: 34px; object-fit: contain; }
.admin-brand b { display: block; font-size: 15px; color: var(--a-text); }
.admin-brand em { display: block; font-style: normal; font-size: 12px; color: var(--a-text-2); }

.admin-nav { padding: 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 3px; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--a-text-2);
    font-size: 14px;
    border: 1px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.admin-nav-item .icon { width: 17px; height: 17px; opacity: 0.85; }
.admin-nav-item span { flex: 1; }
.admin-nav-item:hover { color: var(--a-text); background: rgba(15, 40, 75, 0.05); }
.admin-nav-item.is-active {
    color: #0b5c70;
    background: linear-gradient(90deg, rgba(7, 182, 213, 0.12), rgba(47, 107, 255, 0.06));
    border-color: rgba(7, 150, 184, 0.32);
}
.admin-nav-item.is-active .icon { color: var(--a-cyan); opacity: 1; }

.nav-badge {
    font-style: normal;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--a-danger);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-side-foot { padding: 14px 14px 20px; border-top: 1px solid var(--a-line); display: flex; flex-direction: column; gap: 4px; }
.admin-side-foot form { margin: 0; }
.side-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--a-text-2);
    font-size: 13px;
    background: none;
    border: 0;
    width: 100%;
    cursor: pointer;
    text-align: left;
}
.side-link:hover { background: rgba(15, 40, 75, 0.05); color: var(--a-text); }
.side-logout:hover { color: var(--a-danger); }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--a-line);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.admin-eyebrow { margin: 0 0 2px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--a-cyan); }
.admin-top h1 { font-size: 22px; color: var(--a-text); }

.admin-top-actions { display: flex; align-items: center; gap: 14px; }
.admin-user { text-align: right; line-height: 1.3; }
.admin-user b { display: block; font-size: 13px; color: var(--a-text); }
.admin-user em { font-style: normal; font-size: 12px; color: var(--a-text-2); }

.admin-content { padding: 26px 32px 56px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(120deg, #07b6d5, #2f6bff);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(47, 107, 255, 0.26);
}
.btn-primary:hover { color: #ffffff; box-shadow: 0 12px 30px rgba(47, 107, 255, 0.34); }
.btn-ghost {
    background: #ffffff;
    border-color: var(--a-line);
    color: var(--a-text);
}
.btn-ghost:hover { border-color: rgba(7, 150, 184, 0.45); color: var(--a-cyan); }
.btn-danger { background: rgba(220, 38, 38, 0.07); border-color: rgba(220, 38, 38, 0.28); color: #b42318; }
.btn-danger:hover { background: rgba(220, 38, 38, 0.13); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- 面板 ---------- */
.admin-section { display: flex; flex-direction: column; gap: 20px; max-width: 1280px; }
.panel {
    background: var(--a-panel);
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius);
    padding: 20px 22px;
    box-shadow: var(--a-shadow);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { font-size: 17px; color: var(--a-text); }
.panel-desc { margin: 4px 0 0; font-size: 12.5px; color: var(--a-text-2); }
.panel-link { font-size: 13px; color: var(--a-cyan); white-space: nowrap; }
.panel-note { margin: 16px 0 0; font-size: 12px; color: var(--a-text-2); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--a-panel);
    border: 1px solid var(--a-line);
    border-radius: 12px;
    color: var(--a-text);
    box-shadow: var(--a-shadow);
    transition: border-color 0.18s, transform 0.18s;
}
.stat-card:hover { border-color: rgba(7, 150, 184, 0.4); transform: translateY(-2px); }
.stat-card.is-accent { border-color: rgba(220, 38, 38, 0.25); background: linear-gradient(150deg, rgba(220, 38, 38, 0.05), #ffffff); }
.stat-icon { color: var(--a-cyan); display: flex; }
.stat-body b { display: block; font-size: 24px; line-height: 1.1; color: var(--a-text); }
.stat-body small { font-size: 12px; color: var(--a-text-2); }

.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(15, 40, 75, 0.12);
}
.admin-list li:last-child { border-bottom: 0; }
.admin-list .empty { color: var(--a-text-2); font-size: 13px; justify-content: flex-start; }
.list-main a { color: var(--a-text); font-size: 14px; }
.list-main a:hover { color: var(--a-cyan); }
.list-main small { display: block; color: var(--a-text-2); font-size: 12px; margin-top: 2px; }
.tips-list .list-main b { display: block; color: var(--a-text); font-size: 13.5px; }

.status {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.status.is-on { color: #15803d; background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.28); }
.status.is-off { color: var(--a-text-2); background: rgba(15, 40, 75, 0.05); border-color: var(--a-line); }
.status.is-new { color: #b45309; background: rgba(217, 119, 6, 0.10); border-color: rgba(217, 119, 6, 0.28); }

.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 9px;
    border: 1px solid var(--a-line);
    background: #ffffff;
    color: var(--a-text);
    font-size: 13px;
}
.quick-links a:hover { border-color: rgba(7, 150, 184, 0.4); color: var(--a-cyan); }

/* ---------- 页面引导 ---------- */
.page-intro { display: flex; flex-direction: column; gap: 8px; }
.page-intro p { margin: 0; color: var(--a-text-2); font-size: 13.5px; }
.page-intro-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
.back-link { font-size: 13px; color: var(--a-cyan); align-self: flex-start; }

/* ---------- 表单 ---------- */
.admin-form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #33475f; font-weight: 600; }
.req { color: var(--a-danger); margin-left: 2px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="password"],
.field input[type="number"],
.field input[type="datetime-local"],
.field input[type="file"],
.field input[type="search"],
.field select,
.field textarea,
.search-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid var(--a-line);
    background: #ffffff;
    color: var(--a-text);
    font-size: 14px;
    transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus {
    border-color: rgba(7, 150, 184, 0.6);
    box-shadow: 0 0 0 3px rgba(7, 182, 213, 0.14);
    outline: none;
}
.field textarea { resize: vertical; }
.field input:disabled { opacity: 0.6; cursor: not-allowed; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--a-text-2) 50%), linear-gradient(135deg, var(--a-text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.field-tip { margin: 0; font-size: 11.5px; color: var(--a-text-2); }
.field-error { margin: 0; font-size: 12px; color: var(--a-danger); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: rgba(220, 38, 38, 0.5); }

.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: #33475f; cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--a-cyan); }

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0 4px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(244, 246, 250, 0.95) 32%);
    z-index: 5;
}
.form-actions-note { font-size: 12px; color: var(--a-text-2); }

/* ---------- 媒体上传 ---------- */
.media-row { display: flex; align-items: flex-start; gap: 14px; }
.media-preview {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    border: 1px solid var(--a-line);
    background: #f4f7fb;
    object-fit: contain;
    padding: 6px;
    flex: 0 0 auto;
}
.media-preview.is-small { width: 48px; height: 48px; }
.media-inputs { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.media-inputs input[type="file"] { padding: 7px 10px; font-size: 12px; }
.media-grid { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--a-line); }

.cover-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--a-line);
    background: #f4f7fb;
    margin-bottom: 4px;
}
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.editor-main, .editor-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- 富文本编辑器 ---------- */
.rich-editor { border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; background: #ffffff; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--a-line); background: #f7fafc; }
.rich-toolbar button {
    border: 0;
    background: transparent;
    color: var(--a-text-2);
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12.5px;
    cursor: pointer;
}
.rich-toolbar button:hover { background: rgba(7, 182, 213, 0.12); color: var(--a-cyan); }
.rich-textarea {
    width: 100%;
    min-height: 220px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 14px !important;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    resize: vertical;
}
.rich-textarea:focus { box-shadow: none !important; }
.rich-preview {
    border-top: 1px solid var(--a-line);
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    background: #fbfcfe;
}
.rich-preview h2 { font-size: 18px; margin: 12px 0 6px; color: var(--a-text); }
.rich-preview h3 { font-size: 16px; margin: 10px 0 6px; color: var(--a-text); }
.rich-preview p { margin: 0 0 10px; }
.rich-preview ul, .rich-preview ol { margin: 0 0 10px; padding-left: 22px; }
.rich-preview a { color: var(--a-cyan); }
.rich-preview img { border-radius: 8px; }

/* ---------- 重复项 ---------- */
.repeater { display: flex; flex-direction: column; gap: 12px; }
.repeater-items { display: flex; flex-direction: column; gap: 12px; }
.repeater-item { border: 1px dashed var(--a-line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; }
.repeater-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.repeater-index { font-size: 11.5px; color: var(--a-text-2); letter-spacing: 0.08em; }
.link-danger { background: none; border: 0; color: var(--a-danger); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.link-danger:hover { color: #991b1b; text-decoration: underline; }
.repeater > [data-add-item] { align-self: flex-start; }

/* ---------- 列表 / 表格 ---------- */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--a-text-2);
    border: 1px solid transparent;
}
.filter-tab b { font-size: 11.5px; color: var(--a-text-2); font-weight: 600; }
.filter-tab:hover { color: var(--a-text); background: rgba(15, 40, 75, 0.05); }
.filter-tab.is-active { color: #0b5c70; background: rgba(7, 182, 213, 0.10); border-color: rgba(7, 150, 184, 0.32); }
.filter-tab.is-active b { color: var(--a-cyan); }

.search-form { display: flex; gap: 8px; align-items: center; }
.search-form input { width: 230px; max-width: 100%; padding: 8px 12px; font-size: 13px; }

/* 安全认证相关组件 */
.search-form select,
.inline-form select {
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid var(--a-line);
    background: #ffffff;
    color: var(--a-text);
    font-size: 13px;
    font-family: inherit;
}

.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1 1 180px; min-width: 0; }
.inline-form-compact { gap: 6px; align-items: center; margin-top: 6px; }

.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.panel-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.panel-note { color: var(--a-text-2); font-size: 12.5px; line-height: 1.6; }

.secret-panel {
    padding: 14px 16px;
    margin: 4px 0 14px;
    border: 1px dashed rgba(7, 150, 184, 0.38);
    border-radius: 12px;
    background: rgba(7, 182, 213, 0.06);
    font-size: 13px;
    line-height: 1.7;
    color: var(--a-text);
}
.secret-panel p { margin: 0 0 8px; }
.secret-panel p:last-child { margin-bottom: 0; }
.secret-step .code-line {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #0f2136;
    color: #c7ecff;
    font-size: 12.5px;
    word-break: break-all;
}
.code-line-url { max-width: 100%; }
.code-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.code-grid code {
    padding: 8px 10px;
    border-radius: 8px;
    background: #0f2136;
    color: #c7ecff;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--a-text-2); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-row .stat-card { flex-direction: column; align-items: flex-start; gap: 6px; }
.stat-row .stat-card span { font-size: 12px; color: var(--a-text-2); letter-spacing: 0.04em; }
.stat-row .stat-card b { font-size: 22px; line-height: 1.2; color: var(--a-text); }
.stat-row .stat-card b.is-warn { color: var(--a-danger); }

.session-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.session-list .list-main { min-width: 0; }
.session-list .list-main small { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.empty-line { padding: 14px 0; color: var(--a-text-2); font-size: 13px; }

@media (max-width: 720px) {
    .stat-row { grid-template-columns: 1fr 1fr; }
    .inline-form { align-items: stretch; }
    .inline-form .field { flex-basis: 100%; }
}

.table-wrap { overflow-x: auto; border: 1px solid var(--a-line); border-radius: 10px; background: #ffffff; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th {
    text-align: left;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--a-text-2);
    padding: 11px 12px;
    border-bottom: 1px solid var(--a-line);
    background: #f7fafc;
    white-space: nowrap;
}
.admin-table td { padding: 11px 12px; border-bottom: 1px solid rgba(15, 40, 75, 0.07); font-size: 13.5px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.is-new { background: rgba(217, 119, 6, 0.05); }
.col-cover { width: 74px; }
.col-cat { width: 130px; }
.col-status { width: 92px; }
.col-num { width: 70px; text-align: center; }
.col-date { width: 132px; white-space: nowrap; }
.col-actions { width: 190px; }
.col-summary { max-width: 260px; }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--a-line); }
.table-title { color: var(--a-text); font-size: 13.5px; font-weight: 600; }
.table-title:hover { color: var(--a-cyan); }
.table-sub { margin: 2px 0 0; font-size: 11.5px; color: var(--a-text-2); }
.tag-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; color: #15803d; background: rgba(22, 163, 74, 0.10); border: 1px solid rgba(22, 163, 74, 0.25); font-weight: 500; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; }
.row-actions form { margin: 0; }
.row-actions button { background: none; border: 0; padding: 0; color: var(--a-cyan); font-size: 12.5px; cursor: pointer; }
.row-actions button:hover { color: var(--a-blue); }
.row-actions button.is-danger { color: var(--a-danger); }
.row-actions button.is-danger:hover { color: #991b1b; }
.row-muted { color: var(--a-text-2); font-size: 12px; }

.empty-state { padding: 34px 20px; text-align: center; color: var(--a-text-2); }
.empty-state h2 { color: var(--a-text); font-size: 18px; margin-bottom: 8px; }
.empty-state p { margin: 0 0 12px; font-size: 13.5px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--a-line);
    color: var(--a-text);
    font-size: 12.5px;
    background: #ffffff;
}
.page-btn:hover { border-color: rgba(7, 150, 184, 0.45); color: var(--a-cyan); }
.page-btn.is-current { background: rgba(7, 182, 213, 0.12); border-color: rgba(7, 150, 184, 0.4); color: #0b5c70; }
.page-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.page-info { margin-left: 6px; font-size: 12px; color: var(--a-text-2); }

/* ---------- 提示 ---------- */
.admin-flash {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 13.5px;
    border: 1px solid var(--a-line);
    background: #ffffff;
}
.admin-flash.is-success { color: #166534; border-color: rgba(22, 163, 74, 0.3); background: rgba(22, 163, 74, 0.07); }
.admin-flash.is-error { color: #b42318; border-color: rgba(220, 38, 38, 0.3); background: rgba(220, 38, 38, 0.06); }
.admin-flash.is-warn { color: #92400e; border-color: rgba(217, 119, 6, 0.32); background: rgba(217, 119, 6, 0.08); }
.admin-flash a { color: inherit; text-decoration: underline; }

/* ---------- 区块卡片 ---------- */
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.section-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px 16px;
    border-radius: 11px;
    border: 1px solid var(--a-line);
    background: #ffffff;
    color: var(--a-text);
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.section-card:hover { border-color: rgba(7, 150, 184, 0.4); transform: translateY(-2px); color: var(--a-text); box-shadow: 0 14px 30px rgba(15, 40, 75, 0.10); }
.section-card-head { display: flex; align-items: center; justify-content: space-between; }
.section-card-head b { font-size: 14px; color: var(--a-text); }
.section-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(15, 40, 75, 0.18); }
.section-dot.is-on { background: var(--a-green); box-shadow: 0 0 8px rgba(22, 163, 74, 0.5); }
.section-card-title { font-size: 12.5px; color: var(--a-cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-card-desc { font-size: 11.5px; color: var(--a-text-2); line-height: 1.6; flex: 1; }
.section-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.section-card-foot small { font-size: 10.5px; color: rgba(91, 107, 130, 0.8); }
.section-card-foot span { font-size: 11.5px; color: var(--a-cyan); }

/* 区块卡片：前台显示 / 隐藏开关 */
.section-card-wrap { position: relative; display: flex; }
.section-card-wrap .section-card { width: 100%; height: 100%; }
.section-card-wrap.is-hidden .section-card { border-style: dashed; background: #fbfcfe; }
.section-card-wrap.is-hidden .section-card-title,
.section-card-wrap.is-hidden .section-card-desc { opacity: 0.55; }
.section-card-wrap.is-hidden .section-card:hover { border-color: rgba(15, 40, 75, 0.2); box-shadow: none; transform: none; }
.section-card-wrap .section-card-head { padding-right: 68px; }
.section-vis { position: absolute; top: 9px; right: 10px; z-index: 2; margin: 0; }
.vis-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px 4px 5px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--a-text-2);
    cursor: pointer;
    transition: background 0.18s;
}
.vis-toggle:hover { background: rgba(15, 40, 75, 0.06); }
.vis-toggle.is-on:hover { background: rgba(22, 163, 74, 0.1); }
.vis-track {
    position: relative;
    flex: none;
    width: 30px;
    height: 17px;
    border-radius: 9px;
    background: rgba(15, 40, 75, 0.2);
    transition: background 0.18s;
}
.vis-track i {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 40, 75, 0.28);
    transition: transform 0.18s;
}
.vis-toggle.is-on .vis-track { background: var(--a-green); }
.vis-toggle.is-on .vis-track i { transform: translateX(13px); }
.vis-label { font-size: 11px; line-height: 1; letter-spacing: 0.02em; }
.vis-toggle.is-on .vis-label { color: #15803d; }

/* ---------- 留言详情 ---------- */
.detail-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }
.detail-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(15, 40, 75, 0.10); font-size: 13.5px; }
.detail-row span { width: 96px; flex: 0 0 auto; color: var(--a-text-2); }
.detail-row b { color: var(--a-text); font-weight: 500; word-break: break-all; }
.message-body { margin-top: 18px; padding: 16px; border-radius: 10px; background: #fbfcfe; border: 1px solid var(--a-line); }
.message-body h3 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-text-2); margin-bottom: 8px; }
.message-body p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--a-text); white-space: pre-wrap; }
.detail-actions { margin-top: 18px; gap: 10px; }

/* 登录页样式独立在 assets/css/login.css（仅登录态加载） */

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .editor-layout { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; flex: none; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--a-line); }
    .admin-brand { padding: 14px 18px 10px; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 8px 12px 12px; overflow: visible; }
    .admin-nav-item { padding: 8px 11px; font-size: 13px; }
    .admin-nav-item span { flex: none; }
    .admin-side-foot { flex-direction: row; padding: 10px 14px; }
    .admin-top { padding: 14px 18px; position: static; }
    .admin-top-actions .btn { display: none; }
    .admin-content { padding: 18px 18px 46px; }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: 1fr; }
    .page-intro-row { flex-direction: column; align-items: flex-start; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .list-toolbar { align-items: flex-start; }
    .search-form { width: 100%; }
    .search-form input { flex: 1; width: auto; }
}

@media (max-width: 560px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 12px; }
    .stat-body b { font-size: 20px; }
    .admin-top h1 { font-size: 18px; }
    .media-row { flex-direction: column; }
    .media-preview { width: 100%; height: 120px; }
    .form-actions { position: static; background: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
