/* ===== 管理后台全部样式 ===== */
/* ========== 管理员后台 ========== */
.login-wrap { min-height: 70vh; display:grid; place-items:center; }
.login-split { display:flex; min-height:100vh; background:var(--bg); }
.login-left { flex:0 0 44%; position:relative; overflow:hidden; background:linear-gradient(135deg,#e7faf6 0%,#cdebe5 100%); display:flex; align-items:center; justify-content:center; }
.login-illust { width:100%; height:100%; background-repeat:no-repeat; background-position:center; background-size:contain; min-height:480px; }
.login-left-tag { position:absolute; bottom:24px; left:0; right:0; text-align:center; color:var(--brand-dark); font-size:1.1rem; font-weight:700; letter-spacing:.5px; }
.login-right { flex:1; min-width:0; padding:36px 60px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#fff; position:relative; }
.login-brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--brand-dark); align-self:flex-start; padding-bottom:18px; margin-bottom:36px; border-bottom:1px solid var(--line); width:100%; }
.login-brand-img { width:46px; height:46px; border-radius:50%; object-fit:cover; }
.login-brand-text { display:flex; flex-direction:column; line-height:1.2; }
.login-brand-cn { font-weight:800; font-size:1.15rem; color:var(--brand-dark); }
.login-brand-en { font-size:.78rem; color:var(--muted); margin-top:2px; letter-spacing:.4px; }
.login-card { width:100%; max-width:380px; }
.login-h2 { text-align:center; font-size:1.55rem; color:var(--ink); margin:0 0 8px; font-weight:700; }
.login-sub { text-align:center; color:var(--muted); font-size:.88rem; margin:0 0 22px; }
.login-field { position:relative; margin-bottom:14px; }
.login-field i { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:.95rem; }
.login-field input { width:100%; padding:13px 14px 13px 40px; border:1px solid var(--line); border-radius:10px; font-size:.95rem; background:#fff; transition:all .2s; }
.login-field input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(80,196,188,.12); }
.login-btn { width:100%; padding:13px; background:var(--brand); color:#fff; border:0; border-radius:10px; font-size:1rem; font-weight:700; cursor:pointer; margin-top:6px; letter-spacing:2px; box-shadow:0 4px 14px rgba(80,196,188,.32); transition:all .2s; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.login-btn:hover { background:var(--brand-dark); transform:translateY(-1px); box-shadow:0 6px 18px rgba(80,196,188,.42); }
.login-tip { margin-top:14px; min-height:22px; text-align:center; color:#e74c3c; font-size:.85rem; }
.login-tip i { margin-right:4px; }
.login-foot { margin-top:30px; text-align:center; color:var(--muted); font-size:.78rem; letter-spacing:.4px; }
@media (max-width:768px) {
  .login-split { flex-direction:column; min-height:100vh; }
  .login-left { flex:0 0 auto; min-height:240px; padding:20px; }
  .login-illust { min-height:200px; background-size:60%; }
  .login-left-tag { position:static; padding-top:10px; font-size:.95rem; }
  .login-right { padding:28px 22px; }
  .login-brand { margin-bottom:18px; padding-bottom:14px; }
}
/* 登录/管理页隐藏前端底部 */
.admin-footer { text-align:center; padding:12px 0; color:var(--muted); font-size:.78rem; background:transparent; }
body:has(.login-split) .footer,
body:has(.login-split) .site-footer,
body:has(.admin-layout) .footer,
body:has(.admin-layout) .site-footer { display:none !important; }
/* ===== 后台侧边栏布局（简洁清爽版） ===== */
.admin-layout { display:flex; align-items:stretch; min-height: 100vh; transition:all .2s; }
.admin-side { width:224px; flex:0 0 224px; background:#fff; color:var(--ink-soft); display:flex; flex-direction:column; padding:18px 12px; position:sticky; top:0; height:100vh; overflow:auto; border-right:1px solid var(--line); transition:width .2s,flex .2s; }
.admin-side.collapsed { width:60px; flex:0 0 60px; padding:18px 6px; }
.admin-side.collapsed .as-brand-info,
.admin-side.collapsed .as-label,
.admin-side.collapsed .as-group { display:none; }
.admin-side.collapsed .as-brand { justify-content:center; padding:10px 0 16px; }
.admin-side.collapsed .as-brand-img { width:32px; height:32px; }
.admin-side.collapsed .as-item { justify-content:center; padding:9px 0; }
.admin-side.collapsed .as-home { justify-content:center; padding:9px 0; }
.admin-side.collapsed .as-collapse i { transform:rotate(180deg); }
.as-brand { display:flex; align-items:center; gap:10px; padding:8px 8px 14px; border-bottom:1px solid var(--line); margin-bottom:8px; }
.as-brand-img { width:36px; height:36px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.as-brand-info { display:flex; flex-direction:column; min-width:0; }
.as-brand-cn { font-weight:700; font-size:.9rem; color:var(--brand-dark); line-height:1.25; white-space:nowrap; }
.as-brand-en { font-size:.68rem; color:var(--muted); line-height:1.25; letter-spacing:.3px; white-space:nowrap; }
.as-brand-sub { font-size:.7rem; color:var(--brand); font-weight:600; margin-top:1px; }
.as-collapse { position:absolute; top:16px; right:-12px; width:24px; height:24px; border-radius:50%; background:#fff; color:var(--ink-soft); border:1px solid var(--line); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:.7rem; box-shadow:0 1px 3px rgba(15,30,50,.08); z-index:5; }
.as-collapse:hover { background:var(--brand-light); color:var(--brand); border-color:var(--brand); }
.as-home { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; color:var(--brand); font-size:.88rem; font-weight:600; margin-bottom:10px; text-decoration:none; background:var(--brand-light); }
.as-home:hover { background:var(--brand); color:#fff; }
.as-home i { width:16px; text-align:center; }
.as-group { font-size:.68rem; letter-spacing:.06em; color:var(--muted); margin:12px 8px 4px; text-transform:uppercase; font-weight:700; }
.as-item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; color:var(--ink-soft); font-size:.88rem; font-weight:500; margin-bottom:1px; text-decoration:none; transition:all .15s; }
.as-item i { width:16px; text-align:center; font-size:.88rem; }
.as-item:hover { background:var(--brand-light); color:var(--brand-dark); }
.as-item.active { background:var(--brand); color:#fff; box-shadow:0 2px 8px rgba(80,196,188,.28); }
.as-item.active i { color:#fff; }
.admin-main { flex:1; min-width:0; display:flex; flex-direction:column; background:var(--bg); }
.am-top { display:flex; align-items:center; gap:12px; padding:12px 24px; border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:5; box-shadow:0 1px 2px rgba(15,30,50,.04); }
.as-toggle { display:none; border:1px solid var(--line); background:#fff; border-radius:8px; width:38px; height:36px; cursor:pointer; color:var(--brand); }
.am-title { font-size:1.15rem; margin:0; font-weight:700; color:var(--ink); }
.am-spacer { flex:1; }
.am-user { position:relative; }
.am-user-btn { display:inline-flex; align-items:center; gap:7px; padding:6px 12px; background:var(--bg); border:1px solid var(--line); border-radius:8px; cursor:pointer; color:var(--ink); font-weight:600; font-size:.88rem; transition:all .15s; }
.am-user-btn:hover { background:var(--brand-light); border-color:var(--brand); color:var(--brand-dark); }
.am-user-btn:hover .am-caret { color:var(--brand); }
.am-caret { font-size:.65rem; transition:transform .2s; margin-left:2px; }
.am-user-btn.active .am-caret { transform:rotate(180deg); }
.am-user-menu { position:absolute; top:calc(100% + 8px); right:0; min-width:180px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgba(15,30,50,.14); padding:6px; z-index:50; opacity:0; visibility:hidden; transform:translateY(-4px); transition:all .15s; }
.am-user-menu.show { opacity:1; visibility:visible; transform:translateY(0); }
.am-menu-item { display:flex; align-items:center; gap:10px; padding:10px 12px; color:var(--ink); text-decoration:none; border-radius:7px; font-size:.88rem; cursor:pointer; transition:all .12s; }
.am-menu-item:hover { background:var(--brand-light); color:var(--brand-dark); }
.am-menu-item i { width:16px; text-align:center; color:var(--muted); }
.am-menu-item:hover i { color:var(--brand); }
.am-body { padding:24px 24px 44px; }
/* 导航管理 + 快捷入口 可编辑表格 */
.edit-tbl { width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.edit-tbl th, .edit-tbl td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.edit-tbl th { background:#f7fafa; font-size:.82rem; color:var(--ink); font-weight:700; border-bottom-width:2px; }
.edit-tbl tr:last-child td { border-bottom:0; }
.edit-tbl tr:hover td { background:#fafdfc; }
.edit-tbl input, .edit-tbl textarea { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:7px; font-size:.87rem; background:#fff; transition:all .15s; }
.edit-tbl input:focus, .edit-tbl textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 2px rgba(80,196,188,.12); }
.edit-tbl textarea { resize:vertical; min-height:60px; font-family:inherit; }
.edit-tbl .nv-ops { white-space:nowrap; display:flex; gap:4px; align-items:flex-start; }
.edit-tbl .nv-ops button { width:28px; height:28px; border:1px solid var(--line); background:#fff; border-radius:6px; cursor:pointer; color:var(--ink-soft); display:inline-flex; align-items:center; justify-content:center; font-size:.82rem; transition:all .15s; }
.edit-tbl .nv-ops button:hover { border-color:var(--brand); color:var(--brand); background:var(--brand-light); }
.edit-tbl .nv-ops .q-del:hover { border-color:#e74c3c; color:#e74c3c; background:#fdecea; }
.edit-tbl .q-acts { white-space:nowrap; }
/* 导航管理容器 */
.tbl-wrap { overflow-x:auto; border-radius:10px; box-shadow:0 1px 3px rgba(15,30,50,.04); margin-bottom:14px; }
/* 命名管理 */
.naming-sec { border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin-bottom:16px; background:#fff; box-shadow:var(--shadow); }
.ns-t { font-size:1rem; margin:0 0 12px; color:var(--brand-dark); display:flex; align-items:center; gap:8px; }
.naming-sec code { background:var(--brand-light); color:var(--brand-dark); padding:1px 6px; border-radius:5px; font-size:.78rem; }
.dash-wrap { display:flex; flex-direction:column; gap:18px; }
.dash-cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap:16px; }
.dash-card { position:relative; display:flex; align-items:center; gap:14px; padding:18px 20px; background:#fff; border:1px solid var(--line); border-radius:16px; text-decoration:none; color:inherit; box-shadow:0 4px 14px rgba(20,40,60,.06); transition:.2s; overflow:hidden; }
.dash-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(20,40,60,.14); border-color:var(--brand); }
.dash-card .dc-ico { width:50px; height:50px; border-radius:14px; flex:none; display:grid; place-items:center; background:linear-gradient(135deg,var(--brand),var(--accent)); box-shadow:0 6px 14px rgba(47,154,145,.28); }
.dash-card .dc-ico i { color:#fff; font-size:1.45rem; }
.dash-card .dc-text { display:flex; flex-direction:column; gap:2px; }
.dash-card .dc-num { font-size:1.7rem; font-weight:800; color:var(--ink); line-height:1.05; }
.dash-card .dc-lbl { font-size:.85rem; color:var(--muted); }
.dash-cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.dash-quick, .dash-recent { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px 20px; box-shadow:0 4px 14px rgba(20,40,60,.05); }
.dash-h { margin:0 0 14px; font-size:1rem; color:var(--ink); display:flex; align-items:center; gap:8px; }
.dash-h i { color:var(--brand); }
.dash-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.qk { display:flex; align-items:center; gap:8px; padding:11px 12px; border:1px solid var(--line); border-radius:12px; text-decoration:none; color:var(--ink); font-size:.9rem; transition:.18s; }
.qk:hover { border-color:var(--brand); background:rgba(47,154,145,.07); color:var(--brand); }
.qk i { color:var(--brand); font-size:1rem; }
.dash-news { list-style:none; margin:0; padding:0; }
.dash-news li { border-bottom:1px dashed var(--line); }
.dash-news li:last-child { border-bottom:none; }
.dash-news a { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 2px; text-decoration:none; color:var(--ink-soft); font-size:.88rem; }
.dash-news a:hover .dn-t { color:var(--brand); }
.dn-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dn-d { color:var(--muted); font-size:.78rem; white-space:nowrap; }
.dn-empty { color:var(--muted); padding:10px 2px; }
.toolbar .btn, .toolbar label.btn { cursor:pointer; }
.btn.danger { background:var(--accent); }
.btn.danger:hover { background:var(--accent-dark); }
/* 编辑表单 */
.edit-form { background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px 26px; box-shadow: 0 1px 3px rgba(15,30,50,.04); }
.ef-row { margin-bottom:16px; }
.ef-row label { display:block; font-weight:600; margin-bottom:7px; font-size:.9rem; color:var(--ink); }
.ef-row input, .ef-row textarea, .ef-row select { width:100%; padding:10px 13px; border:1px solid var(--line); border-radius:9px; font-size:.92rem; background:#fff; transition:all .15s; }
.ef-row input:focus, .ef-row textarea:focus, .ef-row select:focus { outline:none; border-color:var(--brand); box-shadow: 0 0 0 3px rgba(80,196,188,.12); }
.ef-2, .ef-3 { display:grid; gap:14px; margin-bottom:14px; }
.ef-2 { grid-template-columns: 1fr 1fr; } .ef-3 { grid-template-columns: repeat(3,1fr); }
.ef-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.seo-box { margin:10px 0 16px; border:1px solid var(--line); border-radius:9px; padding:10px 14px; }
.seo-box summary { cursor:pointer; font-weight:600; color:var(--brand-dark); }
/* 富文本编辑器 — WordPress 风格美化 */
.wp-editor { border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow: 0 2px 8px rgba(15,30,50,.05); }
.wp-toolbar { background:linear-gradient(180deg,#fafdfc 0%,#f3f8f7 100%); border-bottom:1px solid var(--line); position:relative; }
.wp-tb-row { display:flex; gap:2px; flex-wrap:wrap; align-items:center; padding:8px 10px; }
.wp-tb-row button { min-width:32px; height:32px; padding:0 6px; border:1px solid transparent; background:transparent; border-radius:6px; cursor:pointer; font-size:.92rem; color:var(--ink-soft); display:inline-flex; align-items:center; justify-content:center; transition:all .15s; font-weight:600; }
.wp-tb-row button:hover { background:#fff; border-color:var(--brand-light); color:var(--brand); box-shadow:0 1px 3px rgba(80,196,188,.18); }
.wp-tb-row button.active { background:var(--brand); color:#fff; border-color:var(--brand); box-shadow:0 2px 6px rgba(80,196,188,.32); }
.wp-tb-row button i { font-size:.95em; }
.wp-tb-row select { height:32px; border:1px solid var(--line); border-radius:6px; font-size:.85rem; padding:0 8px; background:#fff; cursor:pointer; transition:.15s; }
.wp-tb-row select:hover { border-color:var(--brand); }
.wp-tb-row select:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 2px rgba(80,196,188,.15); }
.wp-block-fmt { min-width:104px; }
.wp-font-size { min-width:78px; }
.wp-sep { width:1px; height:20px; background:var(--line); margin:0 4px; }
.wp-color-btn { position:relative; display:inline-flex; flex-direction:column; align-items:center; padding:2px 0 !important; min-width:36px !important; height:32px !important; }
.wp-color-btn i { font-size:.78rem; line-height:1; }
.wp-color-bar { display:block; width:22px; height:4px; border-radius:2px; margin-top:2px; border:1px solid var(--line); }
.wp-color-popup { position:absolute; top:100%; left:8px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgba(15,30,50,.18); padding:14px; z-index:50; width:300px; }
.wp-cp-label { font-size:.82rem; font-weight:600; color:var(--ink-soft); margin-bottom:8px; }
.wp-cp-grid { display:grid; grid-template-columns:repeat(8,1fr); gap:5px; margin-bottom:12px; }
.wp-cp-swatch { width:26px; height:26px; border-radius:6px; cursor:pointer; border:1px solid rgba(0,0,0,.08); display:block; transition:all .15s; }
.wp-cp-swatch:hover { transform:scale(1.18); border-color:var(--brand); box-shadow:0 2px 6px rgba(0,0,0,.18); }
.wp-cp-custom { display:flex; gap:8px; align-items:center; padding-top:8px; border-top:1px solid var(--line); }
.wp-cp-custom input[type=color] { width:40px; height:32px; border:1px solid var(--line); border-radius:7px; cursor:pointer; }
.wp-cp-apply { padding:6px 14px; border:0; background:var(--brand); color:#fff; border-radius:7px; cursor:pointer; font-size:.84rem; font-weight:600; }
.wp-cp-apply:hover { background:var(--brand-dark); }
.wp-content { min-height:380px; border:0; border-radius:0; padding:22px 28px; background:#fff; overflow:auto; line-height:1.85; font-size:.95rem; }
.wp-content:focus { outline:none; box-shadow:inset 0 0 0 2px rgba(80,196,188,.2); }
.wp-content h1 { font-size:2em; margin:.67em 0; }
.wp-content h2 { font-size:1.5em; margin:.75em 0 .5em; color:var(--brand-dark); padding-bottom:.3em; border-bottom:1px solid var(--line); }
.wp-content h3 { font-size:1.17em; margin:.83em 0; color:var(--ink); }
.wp-content h4 { font-size:1em; margin:1.12em 0; font-weight:bold; }
.wp-content blockquote { border-left:4px solid var(--brand); margin:1em 0; padding:10px 18px; background:var(--brand-light); color:var(--ink-soft); border-radius:0 8px 8px 0; }
.wp-content pre { background:#f4f4f4; padding:14px; border-radius:8px; overflow:auto; font-family:ui-monospace,Menlo,monospace; border:1px solid var(--line); }
.wp-content img { max-width:100%; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,.08); }
.wp-content table.wp-ins-table { margin:12px 0; }
.wp-content table { border-collapse:collapse; }
.wp-content td, .wp-content th { border:1px solid #ddd; padding:8px 12px; }
.wp-content a { color:var(--brand); text-decoration:underline; }
.rte-source { width:100%; min-height:380px; border:0; border-radius:0; padding:22px 28px; background:#1e1e1e; color:#ddd; font-family:ui-monospace,Menlo,monospace; font-size:.88rem; resize:vertical; }
.rte-source:focus { outline:none; }
/* 兼容旧 RTE 样式 */
.rte-toolbar { display:flex; gap:4px; flex-wrap:wrap; align-items:center; padding:8px; background:var(--bg); border:1px solid var(--line); border-bottom:0; border-radius:9px 9px 0 0; }
.rte-toolbar button { width:34px; height:32px; border:1px solid var(--line); background:#fff; border-radius:6px; cursor:pointer; font-size:.85rem; }
.rte-toolbar button:hover { background:var(--brand-light); }
.rte-sep { width:1px; height:22px; background:var(--line); margin:0 4px; }
.rte-color { display:inline-flex; align-items:center; gap:4px; font-size:.78rem; color:var(--text-2); padding:0 6px; }
.rte-color input[type=color] { width:26px; height:26px; border:1px solid var(--line); border-radius:6px; background:#fff; padding:2px; cursor:pointer; }
.cover-row { display:flex; align-items:center; gap:10px; }
.cover-row input { flex:1; }
.tag-checks { display:flex; gap:12px; flex-wrap:wrap; }
.tag-checks label { display:flex; align-items:center; gap:6px; cursor:pointer; font-size:.92rem; }
.cover-prev { width:40px; height:40px; border:1px solid var(--line); border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:1.2rem; color:var(--brand-dark); background:var(--brand-light); }
.rte { min-height:280px; border:1px solid var(--line); border-radius:0 0 9px 9px; padding:16px; background:#fff; overflow:auto; }
.rte:focus { outline:2px solid var(--brand-light); }
/* 数据表操作 */
.ops a { color:var(--brand); font-weight:600; margin-right:10px; }
.ops .del, .ops .save { background:var(--bg); border:1px solid var(--line); border-radius:7px; padding:4px 10px; cursor:pointer; font-size:.82rem; color:var(--ink-soft); }
.ops .del:hover { background:#ffe9e9; color:var(--accent); }
.ops .save:hover { background:var(--brand-light); color:var(--brand); }
.swatch { display:inline-block; width:16px; height:16px; border-radius:4px; vertical-align:middle; margin-right:6px; }
.qa-edit { width:100%; padding:6px 8px; border:1px solid var(--line); border-radius:7px; resize:vertical; }
.ok { color:var(--ok); font-weight:700; } .wait { color:var(--accent); font-weight:700; }

