/* ============================================================
   ARIFU 官网后台 V2 · 管理样式
   MaterialPro 设计语言：渐变深色侧边栏 + 浅色内容区
   ============================================================ */
:root {
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --sidebar-bg: #0A3D5C;
  --sidebar-bg2: #0E4C8C;
  --sidebar-hover: rgba(255, 255, 255, .08);
  --primary: #0A3D5C;
  --primary-hover: #0E4C8C;
  --primary-soft: #e6f0f5;
  --accent: #00B8E0;
  --accent-soft: #e0f4fb;
  --warning: #c47b17;
  --warning-soft: #fdf3e7;
  --danger: #d64545;
  --danger-soft: #fbeaea;
  --bg: #E8EDF2;
  --card: #fff;
  --border: #D5DEE7;
  --text: #1F2D3D;
  --muted: #5B6B7C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-lg: 0 12px 40px rgba(11, 58, 91, .16);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; color: var(--text); }

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

/* ============ 侧边栏 ============ */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%);
  color: #cbd5dc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: width .25s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-brand .logo-mark {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1F8A70 0%, #2eb392 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 138, 112, .35);
}
.sidebar-brand .brand-text { overflow: hidden; }
.sidebar-brand .brand-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.sidebar-brand .brand-sub { font-size: 11px; color: rgba(255, 255, 255, .55); }

.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 0; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 3px; }

.sidebar-group-label {
  padding: 16px 22px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 22px;
  margin: 2px 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-nav a.active {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: #2eb392;
  border-radius: 0 4px 4px 0;
}
.sidebar-nav a { position: relative; }
.sidebar-nav .icon { flex-shrink: 0; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-nav .icon svg { width: 20px; height: 20px; }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-user .avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B3A5B, #1F8A70);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.sidebar-user .u-info { overflow: hidden; line-height: 1.3; }
.sidebar-user .u-name { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-user .u-role { font-size: 11px; color: rgba(255, 255, 255, .5); }
.sidebar-user .u-logout {
  flex-shrink: 0;
  margin-left: auto;
  color: rgba(255, 255, 255, .6);
  display: inline-flex;
  padding: 6px;
  border-radius: 6px;
}
.sidebar-user .u-logout:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.sidebar-user .u-logout svg { width: 18px; height: 18px; }

/* 侧边栏折叠 */
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-nav a span,
.sidebar.collapsed .sidebar-group-label,
.sidebar.collapsed .u-info { display: none; }
.sidebar.collapsed .sidebar-nav a { justify-content: center; padding: 12px; margin: 2px 10px; }
.sidebar.collapsed .sidebar-user { justify-content: center; padding: 8px; }
.sidebar.collapsed .u-logout { margin-left: 0; }

/* ============ 主内容 ============ */
.main-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  padding: 28px 32px 40px;
  transition: margin-left .25s cubic-bezier(.4, 0, .2, 1);
}
.sidebar.collapsed ~ .main-content { margin-left: var(--sidebar-w-collapsed); }

/* 顶部栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.topbar h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.topbar .topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar .collapse-btn {
  width: 36px;
  height: 36px;
  margin-left: 12px;
  margin-right: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.topbar .collapse-btn:hover { color: var(--primary); border-color: var(--primary); }
.topbar .collapse-btn svg { width: 18px; height: 18px; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }

/* ============ 卡片 ============ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 16px; font-size: 16px; }
.card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card .card-head h3 { margin: 0; }

/* 统计卡片 */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-icon.blue { background: var(--primary-soft); color: var(--primary); }
.stat-icon.green { background: var(--accent-soft); color: var(--accent); }
.stat-icon.amber { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-body .stat-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-body .stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border-radius: 8px; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 14px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table thead th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .meta { color: var(--muted); font-size: 13px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
  transition: all .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(11, 58, 91, .25); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(31, 138, 112, .25); }
.btn-accent:hover { background: #18735e; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b93a3a; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef1f4; color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 58, 91, .1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a6b0ba; }

/* ============ 徽章 ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.badge-draft { background: var(--warning-soft); color: var(--warning); }
.badge-published { background: var(--accent-soft); color: var(--accent); }
.badge-muted { background: #eef1f4; color: var(--muted); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ============ 文件管理器 ============ */
.file-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.file-toolbar .selected-info {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.file-toolbar .selected-info strong { color: var(--primary); }

.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.file-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.file-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.file-item.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(11, 58, 91, .15);
}
.file-item .file-icon { height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.file-item .file-icon img.thumb {
  width: 100%;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.file-item .file-name { font-size: 12px; word-break: break-all; color: var(--text); line-height: 1.4; }
.file-item .file-ops {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  gap: 4px;
}
.file-item:hover .file-ops { display: flex; }
.file-ops button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all .12s;
  font-size: 12px;
}
.file-ops button:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.file-ops button.danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.file-ops button svg { width: 13px; height: 13px; }

/* 选中勾选框 */
.file-item .file-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}
.file-item.selectable .file-check { display: flex; }
.file-item.selected .file-check { background: var(--primary); border-color: var(--primary); }

/* 右键菜单 */
.context-menu {
  position: fixed;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 1000;
  min-width: 160px;
  display: none;
}
.context-menu.show { display: block; }
.context-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  transition: background .12s;
}
.context-menu .menu-item:hover { background: var(--primary-soft); color: var(--primary); }
.context-menu .menu-item.danger { color: var(--danger); }
.context-menu .menu-item.danger:hover { background: var(--danger-soft); }
.context-menu .menu-item svg { width: 16px; height: 16px; }
.context-menu .menu-sep { height: 1px; background: var(--border); margin: 4px 8px; }

/* ============ 富文本编辑器（网页编辑） ============ */
.page-item {
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  transition: background .12s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-item:hover { background: var(--primary-soft); }
.page-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.page-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Quill 编辑器容器 */
#editorWrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
#editorToolbar { border-bottom: 1px solid var(--border); }
.quill-editor-body { min-height: 58vh; font-size: 15px; line-height: 1.7; }

/* Quill Snow 主题适配 MaterialPro 配色 */
.ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  padding: 8px 12px;
}
.ql-toolbar.ql-snow .ql-stroke { stroke: var(--muted); }
.ql-toolbar.ql-snow .ql-fill { fill: var(--muted); }
.ql-toolbar.ql-snow .ql-picker { color: var(--muted); }
.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active { color: var(--primary); }
.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke { stroke: var(--primary); }
.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill { fill: var(--primary); }
.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active { color: var(--primary); }
.ql-toolbar.ql-snow .ql-picker-options { background: #fff; border-color: var(--border); box-shadow: var(--shadow); border-radius: 8px; }
.ql-toolbar.ql-snow .ql-picker-options .ql-picker-item:hover { color: var(--primary); }

.ql-container.ql-snow {
  border: none;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-family: inherit;
}
.ql-editor { padding: 20px 24px; min-height: 58vh; }
.ql-editor.ql-blank::before {
  color: #a6b0ba;
  font-style: normal;
  left: 24px;
}
.ql-editor h1 { font-size: 2em; }
.ql-editor h2 { font-size: 1.6em; }
.ql-editor h3 { font-size: 1.3em; }
.ql-editor a { color: var(--primary); }
.ql-editor table { border-collapse: collapse; }
.ql-editor table td { border: 1px solid var(--border); padding: 6px 10px; }

/* 预览 iframe */
#previewFrame { box-shadow: var(--shadow); }

/* ============ 页面编辑：位置层次 ============ */
.outline-panel { max-height: 60vh; overflow-y: auto; }
.outline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background .12s;
  line-height: 1.4;
}
.outline-item:hover { background: var(--primary-soft); }
.outline-item .lvl {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  width: 22px;
  text-align: center;
}
.outline-item .otext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outline-item.lv1 { padding-left: 10px; font-weight: 600; }
.outline-item.lv2 { padding-left: 26px; }
.outline-item.lv3 { padding-left: 42px; }
.outline-item.lv4 { padding-left: 58px; }
.outline-item.lv5, .outline-item.lv6 { padding-left: 74px; }
.outline-empty { font-size: 12px; color: var(--muted); padding: 8px 10px; }

/* 位置面包屑 */
.pos-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--primary-soft);
  border-radius: 8px;
  margin-bottom: 12px;
}
.pos-breadcrumb .crumb { color: var(--primary); font-weight: 600; }
.pos-breadcrumb .sep { color: #a6b0ba; }
.pos-breadcrumb .cur { color: var(--text); font-weight: 600; }

/* 元素统计 chips */
.stats-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stats-chips .chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #eef1f4;
  color: var(--muted);
  white-space: nowrap;
}
.stats-chips .chip b { color: var(--primary); font-weight: 700; }

/* ============ 弹窗（Modal） ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 45, .5);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .18s ease;
}
.modal-panel {
  background: var(--card);
  border-radius: 14px;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .22s cubic-bezier(.4, 0, .2, 1);
}
.modal-panel h3 { margin: 0 0 20px; font-size: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Toast 提示 ============ */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  display: none;
  font-size: 14px;
  max-width: 360px;
  animation: slideInRight .25s ease;
}
.toast.show { display: block; }
.toast.success { border-left-color: var(--accent); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: #e6a23c; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  background: #fff;
}
.login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 420px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.login-brand .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0B3A5B 0%, #1F8A70 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 58, 91, .3);
}
.login-brand .brand-name { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.2; }
.login-brand .brand-sub { font-size: 12px; color: var(--muted); }
.login-card h2 { font-size: 26px; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-right {
  flex: 1;
  background: linear-gradient(160deg, #0B3A5B 0%, #123c5e 45%, #1F8A70 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(46, 179, 146, .25), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, .08), transparent 40%);
}
.login-right .feat { position: relative; text-align: center; max-width: 420px; }
.login-right .feat h3 { color: #fff; font-size: 24px; margin: 0 0 12px; }
.login-right .feat p { color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.8; margin: 0; }
.login-right .feat-list { margin-top: 28px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.login-right .feat-list .item { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .88); font-size: 14px; }
.login-right .feat-list .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2eb392;
  box-shadow: 0 0 0 4px rgba(46, 179, 146, .2);
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .sidebar { width: var(--sidebar-w-collapsed); }
  .sidebar .brand-text,
  .sidebar .sidebar-nav a span,
  .sidebar .sidebar-group-label,
  .sidebar .u-info { display: none; }
  .sidebar .sidebar-nav a { justify-content: center; padding: 12px; }
  .main-content { margin-left: var(--sidebar-w-collapsed); padding: 20px 16px; }
  .sidebar.collapsed ~ .main-content { margin-left: var(--sidebar-w-collapsed); }
  .topbar { flex-wrap: wrap; }
  .login-right { display: none; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
