/* ============================================================================
   智慧零售数据同步平台 · 全局样式（深蓝科技风）
   创建时间：2026-11-18  创建人：liuzy
   说明：整站统一为深蓝科技风（与手机版门店页 store_mobile.html 同一设计语言）。
         所有选择器、布局规则与旧版一致，仅替换视觉层（配色/背景/发光），
         不改变任何布局尺寸与功能钩子，保证功能零影响。
   设计基准：--bg #050d26 / 主色 #4f8cff / 霓虹青 #35e2ff / 荧光绿 #3ddc97
   ============================================================================ */
:root {
  /* 深蓝科技风设计变量（2026-11-18 liuzy：与 store_mobile.html 保持一致） */
  --bg: #050d26;
  --card: linear-gradient(180deg, rgba(28, 64, 150, .22), rgba(9, 22, 58, .42));
  --card-solid: #0a1838;              /* 弹层/抽屉等需要不透明背景时使用 */
  --line: rgba(86, 156, 255, .28);
  --line-2: rgba(86, 156, 255, .14);
  --line-strong: #4fd8ff;
  --text: #dce8ff;
  --muted: #7e93c4;
  --primary: #4f8cff;
  --primary-d: #35e2ff;
  --green: #3ddc97;
  --amber: #ffb63d;
  --red: #ff6b81;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(2, 8, 26, .5), inset 0 0 24px rgba(46, 108, 255, .05);
  color-scheme: dark;                 /* 原生控件（日期/下拉/滚动条）跟随深色 */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 全局背景：顶部光晕 + 底部辉光 + 科技网格纹理（2026-11-18 liuzy） */
body {
  background-image:
    radial-gradient(ellipse 90% 38% at 50% -6%, rgba(46, 108, 255, .18), transparent),
    radial-gradient(ellipse 60% 24% at 50% 106%, rgba(53, 226, 255, .08), transparent),
    linear-gradient(rgba(86, 156, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 156, 255, .045) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
}

/* 深色主题滚动条（2026-11-18 liuzy） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(86, 156, 255, .32); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79, 216, 255, .5); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { text-align: right; }

/* ---------- 登录 ---------- */
/* 登录页：深空背景 + 科技发光卡片（2026-11-18 liuzy） */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  position: relative;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow), 0 0 34px rgba(46, 108, 255, .14);
  backdrop-filter: blur(4px);
}
/* 登录卡四角亮标（与 .tech 同款，2026-11-18 liuzy） */
.login-card::before, .login-card::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
}
.login-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--line-strong); border-left: 2px solid var(--line-strong);
  border-top-left-radius: 14px;
}
.login-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
  border-bottom-right-radius: 14px;
}

.login-logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(79, 140, 255, .14);
  border: 1px solid rgba(79, 140, 255, .4);
  color: var(--primary-d);
  box-shadow: 0 0 14px rgba(53, 226, 255, .25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* 标题渐变字 + 辉光（2026-11-18 liuzy） */
.login-card h1 {
  font-size: 18px; margin: 0 0 4px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(180deg, #eaf4ff, #7db6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 18px rgba(79, 140, 255, .35);
}
.login-card p { margin: 0 0 18px; }
.login-card label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.login-card input {
  width: 100%; margin-top: 6px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; outline: none; background: rgba(255, 255, 255, .06);
  color: var(--text); font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-card input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 10px rgba(79, 140, 255, .35);
  background: rgba(255, 255, 255, .09);
}
.login-err { color: var(--red); font-size: 12px; min-height: 18px; margin-top: 10px; }

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

/* 侧边栏：深色玻璃质感 + 右侧发光描边（2026-11-18 liuzy） */
.side {
  width: 208px;
  flex: 0 0 208px;
  background: linear-gradient(180deg, rgba(10, 24, 62, .88), rgba(5, 13, 38, .94));
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 18px rgba(3, 10, 32, .4);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(6px);
}

.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14px;
  padding: 4px 10px 18px;
  color: var(--text);
  letter-spacing: .5px;
}
.brand svg { color: var(--primary-d); filter: drop-shadow(0 0 6px rgba(53, 226, 255, .6)); }

.nav { display: flex; flex-direction: column; gap: 2px; }

/* 侧边栏父级分组（2026-11-16 liuzy：一级菜单加大加粗、箭头更明显） */
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.nav-group-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  padding: 8px 12px; border-radius: 8px;
  cursor: pointer; user-select: none;
}
.nav-group-title:hover { background: rgba(79, 140, 255, .1); }
.nav-arrow {
  font-size: 11px; color: var(--muted);
  transition: transform .15s ease;
  display: inline-block; width: 14px; text-align: center;
}
/* 收起状态：隐藏组内二级菜单（2026-11-16 liuzy） */
.nav-group.collapsed .nav-item { display: none; }
.nav-group.collapsed .nav-arrow { transform: rotate(-90deg); }

/* 二级菜单项：hover 微亮，active 左侧霓虹光条 + 渐变底（2026-11-18 liuzy） */
.nav-item {
  position: relative;
  display: block; width: 100%;
  text-align: left;
  border: 0; background: transparent;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: #9db3e2; cursor: pointer;
  font-family: inherit;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: rgba(79, 140, 255, .1); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(79, 140, 255, .22), rgba(53, 226, 255, .08));
  color: var(--primary-d); font-weight: 600;
}
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan, #35e2ff), var(--primary));
  box-shadow: 0 0 8px rgba(53, 226, 255, .8);
}

.side-foot {
  margin-top: auto; padding: 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-2); font-size: 12px;
}

.main { flex: 1; min-width: 0; padding: 18px 22px 40px; }

.topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px; gap: 16px;
}
/* 页标题：大屏式渐变字（2026-11-18 liuzy） */
.topbar h2 {
  margin: 0; font-size: 19px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(180deg, #eaf4ff, #7db6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 12px; }

/* ---------- 组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 14px; font-size: 13px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text);
  border-radius: 8px; cursor: pointer; font-family: inherit;
  transition: all .12s ease; white-space: nowrap;
}
.btn:hover {
  border-color: rgba(79, 216, 255, .55);
  background: rgba(79, 140, 255, .14);
  box-shadow: 0 0 10px rgba(46, 108, 255, .25);
}
/* 主按钮：青蓝渐变 + 深色文字 + 辉光（与手机版按钮同款，2026-11-18 liuzy） */
.btn.primary {
  background: linear-gradient(135deg, rgba(79, 140, 255, .95), rgba(53, 226, 255, .8));
  border-color: rgba(53, 226, 255, .5);
  color: #06122e; font-weight: 700;
  box-shadow: 0 0 14px rgba(53, 226, 255, .3);
}
.btn.primary:hover {
  background: linear-gradient(135deg, rgba(79, 140, 255, 1), rgba(53, 226, 255, .92));
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(53, 226, 255, .45);
}
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.block { width: 100%; padding: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.link {
  border: 0; background: transparent; color: var(--primary-d);
  cursor: pointer; font-size: 12px; padding: 0 2px; font-family: inherit;
}
.link:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(53, 226, 255, .6); }

.input {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; background: rgba(255, 255, 255, .06); outline: none; font-family: inherit;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { border-color: var(--line-strong); box-shadow: 0 0 8px rgba(79, 140, 255, .3); }
.input:disabled { background: rgba(255, 255, 255, .03); color: var(--muted); }
/* 复选框/单选框使用霓虹青色（2026-11-18 liuzy） */
input[type="checkbox"], input[type="radio"] { accent-color: #35e2ff; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

/* 卡片：深蓝渐变底 + 发光描边 + 四角亮标（2026-11-18 liuzy） */
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 12px; overflow: hidden;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none; z-index: 1;
}
.card::before {
  top: 0; left: 0;
  border-top: 2px solid rgba(79, 216, 255, .55); border-left: 2px solid rgba(79, 216, 255, .55);
  border-top-left-radius: var(--radius);
}
.card::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid rgba(79, 216, 255, .55); border-right: 2px solid rgba(79, 216, 255, .55);
  border-bottom-right-radius: var(--radius);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); gap: 12px;
}
/* 卡片标题：左侧发光竖条（与手机版面板标题同款，2026-11-18 liuzy） */
.card-head h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.card-head h3::before {
  content: ""; width: 4px; height: 13px; border-radius: 2px; margin-right: 8px;
  background: linear-gradient(180deg, #35e2ff, #4f8cff);
  box-shadow: 0 0 8px rgba(53, 226, 255, .7);
}
.card-body { padding: 14px 16px; }

/* KPI 指标卡（2026-11-18 liuzy） */
.stat {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.stat .label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat .value {
  font-size: 24px; font-weight: 700; letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}
/* 强调指标：渐变数字 + 辉光（.accent 的 value 均为纯数字，可安全使用渐变字） */
.stat.accent .value {
  background: linear-gradient(180deg, #f2f8ff, #5ec5ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 16px rgba(79, 140, 255, .4);
}
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.kv { margin: 0; display: grid; grid-template-columns: 84px 1fr; gap: 9px 12px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; word-break: break-all; font-size: 13px; }
.kv code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(86, 156, 255, .1); border: 1px solid var(--line-2);
  padding: 2px 6px; border-radius: 5px; font-size: 12px;
  color: #a8dbff;
}

.btn-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hint { margin-top: 10px; color: var(--muted); min-height: 18px; }

/* 状态徽标：深色半透明底 + 霓虹文字（2026-11-18 liuzy） */
.pill {
  font-size: 11.5px; padding: 2px 9px; border-radius: 20px;
  background: rgba(126, 147, 196, .14); color: var(--muted);
  border: 1px solid transparent;
}
.pill.ok { background: rgba(61, 220, 151, .12); color: var(--green); border-color: rgba(61, 220, 151, .35); }
.pill.warn { background: rgba(255, 182, 61, .12); color: var(--amber); border-color: rgba(255, 182, 61, .35); }
.pill.bad { background: rgba(255, 107, 129, .12); color: var(--red); border-color: rgba(255, 107, 129, .35); }
.pill.run { background: rgba(79, 140, 255, .14); color: var(--primary-d); border-color: rgba(79, 140, 255, .4); }

/* 状态圆点：加发光（2026-11-18 liuzy） */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #44598c; display: inline-block;
  box-shadow: 0 0 0 2px rgba(86, 156, 255, .12);
}
.dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(61, 220, 151, .8); }
.dot.warn { background: var(--amber); box-shadow: 0 0 8px rgba(255, 182, 61, .8); }
.dot.bad { background: var(--red); box-shadow: 0 0 8px rgba(255, 107, 129, .8); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap.wide { max-height: calc(100vh - 300px); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.tbl th {
  text-align: left; padding: 9px 12px; color: var(--muted);
  font-weight: 500; font-size: 12px; background: #0c1c46;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s ease; }
.tbl tbody tr:hover { background: rgba(79, 140, 255, .08); }
.tbl .empty { text-align: center; color: var(--muted); padding: 28px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #8fa6d9; }
.ellipsis { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

.pager {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--muted);
}

.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.toolbar .spacer { flex: 1; }
.shop-select { max-width: 260px; min-width: 150px; }
.ok-tag { color: var(--green) !important; font-weight: 600; text-shadow: 0 0 6px rgba(61, 220, 151, .5); }
.bad-tag { color: var(--red) !important; font-weight: 600; text-shadow: 0 0 6px rgba(255, 107, 129, .5); }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }

/* 汇总条（2026-11-18 liuzy：与卡片同风格） */
.summary-bar {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; margin-bottom: 12px; font-size: 13px;
  box-shadow: var(--shadow);
}
.summary-bar b { font-size: 15px; }
.summary-bar .tag { font-size: 11.5px; color: var(--muted); }

/* ---------- 扫码 ---------- */
.qr-body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* 二维码容器保持浅色底，保证企业微信二维码可识别（2026-11-18 liuzy） */
.qr-box {
  width: 280px; height: 324px; border: 1px dashed rgba(86, 156, 255, .45);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #eef3ff; overflow: hidden; text-align: center; padding: 6px;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-empty { color: #5a6f9e; display: flex; flex-direction: column; gap: 6px; }

/* 唤起扫码环境时的等待态：占位与二维码同尺寸，避免页面跳动 */
.qr-wait {
  width: 280px; height: 324px; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(255, 255, 255, .04);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
}
.qr-wait-title { font-size: 13.5px; color: var(--text); font-weight: 600; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(86, 156, 255, .22); border-top-color: #35e2ff;
  animation: spin .9s linear infinite; margin-bottom: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 表格上方的口径说明 */
.legend {
  margin: -4px 0 12px; padding: 8px 12px;
  background: rgba(86, 156, 255, .07); border: 1px solid var(--line-2); border-radius: 8px;
}
.legend b { color: var(--text); font-weight: 600; }

/* ---------- 提示 ---------- */
.alert {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 12px; font-size: 13px;
}
.alert.warn { background: rgba(255, 182, 61, .08); border: 1px solid rgba(255, 182, 61, .4); }
.alert.error { background: rgba(255, 107, 129, .08); border: 1px solid rgba(255, 107, 129, .4); }

/* 轻提示：深蓝玻璃 + 霓虹描边（2026-11-18 liuzy） */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: rgba(9, 22, 58, .95); color: var(--text);
  border: 1px solid rgba(86, 156, 255, .45);
  box-shadow: 0 0 20px rgba(46, 108, 255, .3);
  padding: 10px 16px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .18s ease;
  max-width: 520px; z-index: 99;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 107, 129, .6); color: #ffd3da; }
.toast.ok { border-color: rgba(61, 220, 151, .6); color: #c9f7e4; }

/* ---------- 销售明细：宽表 / 字段选择 / 详情抽屉 ---------- */
/* 宽表按内容撑开、横向滚动，而不是把列挤到换行 */
.tbl.wide-tbl { width: max-content; min-width: 100%; }
.tbl.wide-tbl th, .tbl.wide-tbl td {
  white-space: nowrap; max-width: 340px;
  overflow: hidden; text-overflow: ellipsis;
}
/* 左列冻结：背景必须不透明，否则横向滚动时内容透出（2026-11-18 liuzy） */
.tbl.sticky-first th:first-child,
.tbl.sticky-first td:first-child {
  position: sticky; left: 0; z-index: 2; background: #0a1838;
  box-shadow: 1px 0 0 var(--line-2);
}
.tbl.sticky-first thead th:first-child { background: #0c1c46; z-index: 3; }
.tbl.sticky-first tbody tr:hover td:first-child { background: #10234e; }
.tbl tbody tr.row-click { cursor: pointer; }
.cell-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.th-tip { border-bottom: 1px dotted rgba(126, 147, 196, .7); cursor: help; }

/* 2026-11-16 liuzy：任务中心表格按 colgroup 固定列宽铺满整行，整体居中而非挤在左侧 */
.tbl.jobs-tbl { table-layout: fixed; }
.tbl.jobs-tbl th, .tbl.jobs-tbl td { overflow: hidden; text-overflow: ellipsis; }
.tbl.jobs-tbl td.jobs-err { white-space: nowrap; }

/* 字段选择浮层（2026-11-18 liuzy：深色化） */
.colpick-wrap { position: relative; }
.colpick {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  width: 520px; max-width: 86vw; background: var(--card-solid);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(2, 8, 26, .6), 0 0 16px rgba(46, 108, 255, .18);
  padding: 12px 14px;
}
.colpick-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.colpick-body { max-height: 340px; overflow: auto; }
.colpick-group { margin-bottom: 10px; }
.colpick-group > div:first-child {
  font-size: 11.5px; color: var(--muted); margin-bottom: 4px;
  letter-spacing: .04em;
}
.colpick-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; }
.colpick-items label {
  display: flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 2px 0; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.colpick-foot {
  display: flex; gap: 14px; justify-content: flex-end;
  border-top: 1px solid var(--line-2); padding-top: 8px;
}

/* 详情抽屉（2026-11-18 liuzy：深色化） */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(2, 8, 24, .55);
  z-index: 60;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 94vw;
  background: linear-gradient(180deg, #0a1838, #071228);
  border-left: 1px solid var(--line);
  z-index: 61; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(2, 8, 26, .6);
}
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0 0 2px; font-size: 15px; }
.drawer-actions { display: flex; gap: 12px; flex-shrink: 0; }
.drawer-body { padding: 6px 18px 24px; overflow: auto; }
.drawer-group { margin-top: 14px; }
.drawer-group h4 {
  margin: 0 0 6px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .06em;
}
.drawer-kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; font-size: 12.5px; }
.drawer-kv dt { color: var(--muted); }
.drawer-kv dd { margin: 0; word-break: break-all; }

/* ---------- 响应式 ---------- */
/* 2026-11-16 liuzy：窄屏下保持菜单层级纵向排列（一级分组标题 + 二级菜单项），不再横排 */
@media (max-width: 980px) {
  .layout { flex-direction: column; }
  .side {
    width: 100%; flex: none; height: auto; position: static;
    flex-direction: column; align-items: stretch; padding: 10px 12px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .brand { padding: 6px 12px 6px 4px; }
  .nav-group { margin-top: 8px; }
  .side-foot { margin-top: 10px; border-top: 1px solid var(--line-2); }
  .main { padding: 14px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}
