/* ============================================================
   企业ERP·CMS一体化管理平台 - 前端样式
   风格: 海康威视 / 大华 科技蓝
   说明: 零外部依赖, 全本地资源
   ============================================================ */
:root {
  --primary: #1f6fff;
  --primary-dark: #0b5cd6;
  --primary-light: #e8f0ff;
  --sidebar-bg1: #0a1a30;
  --sidebar-bg2: #0e2a4d;
  --bg: #eef2f7;
  --text: #1f2d3d;
  --muted: #5e6d82;
  --border: #e3e9f1;
  --success: #16a34a;
  --danger: #e5484d;
  --warning: #f5a524;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(16, 42, 84, .08), 0 1px 2px rgba(16, 42, 84, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.content { flex: 1; padding: 18px 20px; }
.footer {
  padding: 12px 20px; text-align: center; color: #93a3b7; font-size: 12px;
  border-top: 1px solid var(--border); background: #fff;
}

/* ---------------- 侧边栏 ---------------- */
.sidebar {
  width: 224px; flex-shrink: 0; background: linear-gradient(180deg, var(--sidebar-bg1), var(--sidebar-bg2));
  color: #c6d4e6; display: flex; flex-direction: column;
}
.brand {
  height: 60px; display: flex; align-items: center; padding: 0 18px; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-dot {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, #3d8bff, #1f6fff);
  box-shadow: 0 0 10px rgba(31,111,255,.6);
}
.brand-name { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.menu { flex: 1; overflow-y: auto; padding: 10px 0 20px; }
.menu::-webkit-scrollbar { width: 5px; }
.menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.menu-group { margin-bottom: 6px; }
.menu-title {
  padding: 8px 20px; font-size: 12px; color: #7d93b3; letter-spacing: 2px;
  border-left: 3px solid transparent;
}
.menu-group.active .menu-title { color: #9db8e0; }
.menu-item {
  display: block; padding: 10px 20px 10px 24px; color: #c6d4e6; font-size: 14px;
  border-left: 3px solid transparent; transition: all .15s;
}
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.active {
  background: linear-gradient(90deg, rgba(31,111,255,.25), rgba(31,111,255,.06));
  color: #fff; border-left-color: var(--primary); font-weight: 600;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.crumb { font-size: 16px; font-weight: 600; color: var(--text); }
.top-right { display: flex; align-items: center; gap: 14px; }
.sys-switch { display: flex; background: var(--bg); border-radius: 6px; padding: 3px; }
.sys-switch a {
  padding: 5px 14px; font-size: 13px; color: var(--muted); border-radius: 5px; transition: all .15s;
}
.sys-switch a.on { background: var(--primary); color: #fff; font-weight: 600; }
.userbox { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.userbox:hover { background: var(--bg); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3d8bff, #1f6fff);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.uname { color: var(--text); font-size: 14px; }
.user-drop {
  display: none; position: absolute; top: 100%; right: 0; min-width: 140px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(16,42,84,.15); z-index: 100;
}
.userbox:hover .user-drop { display: block; }
.user-drop a { display: block; padding: 10px 16px; color: var(--text); font-size: 13px; }
.user-drop a:hover { background: var(--primary-light); color: var(--primary); }

/* ---------------- 卡片 ---------------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-title {
  padding: 13px 18px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 16px 18px; }

/* ---------------- 提示条 ---------------- */
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; border: 1px solid transparent; }
.alert-success { color: #166534; background: #ecfdf3; border-color: #bcf0d4; }
.alert-error, .alert-danger { color: #b42318; background: #fef3f2; border-color: #fcd0cd; }
.alert-info { color: #175cd3; background: #eff8ff; border-color: #b2ddff; }
.alert-warning { color: #9a6700; background: #fffaeb; border-color: #fedf89; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block; padding: 8px 18px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1.4;
  transition: all .15s; text-align: center;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c9302f; border-color: #c9302f; color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; border-color: #15803d; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 5px; }
.btn-block { display: block; width: 100%; }
.btn-sso { background: #0e2a4d; border-color: #0e2a4d; color: #fff; }
.btn-sso:hover { background: #1a3f6e; border-color: #1a3f6e; color: #fff; }
.sso-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 8px; }

/* ---------------- 表单 ---------------- */
.form-control {
  width: 100%; padding: 8px 12px; border: 1px solid #cfd8e6; border-radius: 6px; background: #fff;
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,111,255,.12); }
textarea.form-control { min-height: 90px; resize: vertical; }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .span2 { grid-column: span 2; }
.form-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.form-hint { font-size: 12px; color: #93a3b7; margin-top: 4px; }

/* ---------------- 搜索/工具栏 ---------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.search-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-bar .form-control { width: auto; min-width: 140px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.table th { background: #f7f9fc; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: #f7faff; }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .center { text-align: center; }
.ops { white-space: nowrap; }
.ops a { margin-right: 8px; }

/* ---------------- 徽标 ---------------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; line-height: 1.6; }
.badge-blue { background: #e8f0ff; color: #1f6fff; }
.badge-green { background: #ecfdf3; color: #16a34a; }
.badge-red { background: #fef3f2; color: #e5484d; }
.badge-orange { background: #fffaeb; color: #f5a524; }
.badge-gray { background: #f1f3f7; color: #5e6d82; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; align-items: center; gap: 5px; margin-top: 14px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; color: var(--text); background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { color: #c3cddb; background: #f7f9fc; }
.pagination .total { border: none; background: none; color: var(--muted); }

/* ---------------- 统计卡片 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  border-left: 4px solid var(--primary); display: flex; flex-direction: column; gap: 6px;
}
.stat-card.green { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--warning); }
.stat-card.red { border-left-color: var(--danger); }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: #93a3b7; }

/* ---------------- 进度条 ---------------- */
.progress { height: 8px; background: #e8edf5; border-radius: 6px; overflow: hidden; min-width: 80px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #3d8bff, #1f6fff); border-radius: 6px; }

/* ---------------- Tab 页签 ---------------- */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 16px; gap: 4px; }
.tab {
  padding: 10px 18px; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s; background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------- 工作台头部 ---------------- */
.ws-head {
  background: linear-gradient(120deg, #0e2a4d, #123a6d); border-radius: var(--radius); color: #fff;
  padding: 20px 24px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow);
}
.ws-head h2 { font-size: 20px; font-weight: 600; }
.ws-head .ws-meta { margin-top: 6px; font-size: 13px; color: #a8c0e4; display: flex; gap: 16px; flex-wrap: wrap; }
.ws-head .ws-actions { display: flex; gap: 8px; }

/* ---------------- 详情网格 ---------------- */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.detail-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #f8fafd; border-radius: 6px; }
.detail-item .k { font-size: 12px; color: var(--muted); }
.detail-item .v { font-size: 14px; color: var(--text); word-break: break-all; }
.detail-grid .span-all { grid-column: 1 / -1; }

/* ---------------- 文件网格 ---------------- */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.file-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 8px; transition: all .15s; position: relative;
}
.file-item:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(31,111,255,.12); transform: translateY(-1px); }
.fi {
  width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.fi-img { background: linear-gradient(135deg,#38bdf8,#2563eb); }
.fi-pdf { background: linear-gradient(135deg,#fb7185,#e11d48); }
.fi-doc { background: linear-gradient(135deg,#60a5fa,#2563eb); }
.fi-xls { background: linear-gradient(135deg,#34d399,#059669); }
.fi-ppt { background: linear-gradient(135deg,#fb923c,#ea580c); }
.fi-zip { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.fi-video { background: linear-gradient(135deg,#f472b6,#db2777); }
.fi-audio { background: linear-gradient(135deg,#2dd4bf,#0d9488); }
.fi-txt { background: linear-gradient(135deg,#94a3b8,#475569); }
.fi-file { background: linear-gradient(135deg,#94a3b8,#475569); }
.fi-thumb { width: 100%; height: 92px; object-fit: cover; border-radius: 6px; }
.file-name { font-size: 13px; line-height: 1.35; height: 36px; overflow: hidden; word-break: break-all; }
.file-meta { font-size: 12px; color: #93a3b7; }
.file-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.img-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.img-preview-item { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.img-preview-item img { width: 100%; height: 110px; object-fit: cover; display: block; cursor: zoom-in; }
.img-preview-item .img-name { padding: 6px 8px; font-size: 12px; color: var(--muted); background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-preview-item .img-del { position: absolute; top: 6px; right: 6px; }

/* ---------------- 时间线/笔记 ---------------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 18px 14px; }
.timeline-item::before {
  content: ""; position: absolute; left: -17px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(31,111,255,.25);
}
.note-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.note-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.note-title { font-size: 15px; font-weight: 600; }
.note-meta { font-size: 12px; color: #93a3b7; }
.note-content { font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.comment-box { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.comment-item { display: flex; gap: 8px; padding: 6px 0; font-size: 13px; }
.comment-item .c-name { color: var(--primary); flex-shrink: 0; font-weight: 600; }
.comment-item .c-time { color: #93a3b7; flex-shrink: 0; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  display: none; position: fixed; inset: 0; background: rgba(9, 20, 38, .55); z-index: 999;
  align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 10px; width: 560px; max-width: 100%; box-shadow: 0 18px 50px rgba(9,20,38,.3); }
.modal-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-close { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: none; }
.modal-body { padding: 18px 20px; max-height: 65vh; overflow-y: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-lg { width: 860px; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 10%, #123a6d, transparent),
              radial-gradient(900px 500px at 85% 85%, #0b5cd6, transparent),
              linear-gradient(160deg, #081426, #0e2a4d 60%, #0a1a30);
  padding: 20px;
}
.login-card { width: 400px; max-width: 100%; background: #fff; border-radius: 12px; padding: 34px 36px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand .brand-dot { margin: 0 auto 12px; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3d8bff, #1f6fff); box-shadow: 0 6px 18px rgba(31,111,255,.4); }
.login-brand h1 { font-size: 22px; color: var(--text); }
.login-brand p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #93a3b7; font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------------- 错误页 ---------------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.error-card { background: #fff; border-radius: 12px; padding: 44px 56px; text-align: center; box-shadow: var(--shadow); max-width: 480px; }
.error-code { font-size: 64px; font-weight: 800; color: var(--primary); line-height: 1; }
.error-card h1 { margin: 12px 0 8px; font-size: 20px; }
.error-card p { color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.error-card .btn { margin: 0 5px; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 44px 20px; color: #93a3b7; }
.empty .empty-icon { font-size: 40px; margin-bottom: 10px; }

/* ---------------- 图片预览灯箱 ---------------- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 34px; cursor: pointer; background: none; border: none; }

/* ---------------- 杂项 ---------------- */
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; }
.mb10 { margin-bottom: 10px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------------- 报表图表(纯CSS) ---------------- */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 10px 4px 0; overflow-x: auto; }
.chart-col { flex: 1; min-width: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bars-area { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.bar { width: 12px; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s; }
.bar.income { background: linear-gradient(180deg, #3d8bff, #1f6fff); }
.bar.expense { background: linear-gradient(180deg, #fb7185, #e5484d); }
.chart-label { font-size: 11px; color: var(--muted); }
.chart-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.chart-legend i.lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.chart-legend i.income { background: #1f6fff; }
.chart-legend i.expense { background: #e5484d; }
.legend-list { font-size: 13px; color: var(--text); }
.legend-list .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.donut-row { display: flex; justify-content: center; padding: 10px 0; }
.donut-seg { width: 110px; height: 110px; border-radius: 50%; }
.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: flex; align-items: center; gap: 10px; }
.hbar-name { width: 130px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { flex: 1; height: 12px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, #3d8bff, #1f6fff); border-radius: 6px; }
.hbar-val { width: 90px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------- 单位工作台卡片 ---------------- */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ws-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: all .15s; color: var(--text);
}
.ws-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(31,111,255,.14); transform: translateY(-2px); color: var(--text); }
.ws-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ws-card-name { font-size: 15px; font-weight: 600; word-break: break-all; }
.ws-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ws-card-contact { font-size: 13px; color: var(--text); margin-bottom: 12px; }
.ws-card-foot { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }
.ws-card-go { margin-left: auto; color: var(--primary); font-weight: 600; }

/* 内联表单按钮 */
.inline-form { display: inline-block; margin: 0; }
.inline-form button { cursor: pointer; }

/* 菜单树(角色授权) */
.menu-tree { max-height: 420px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; }
.menu-tree .tree-item { padding: 3px 0; }
.menu-tree .tree-item .tree-parent { font-weight: 600; }
.menu-tree .tree-children { padding-left: 22px; }
.menu-tree label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 2px 10px 2px 0; font-size: 13px; }

/* 移动端适配 */
@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .brand-name, .menu-title, .menu-item { display: none; }
  .menu-item.active { display: block; }
  .content { padding: 12px; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
}
