/* ============================================================
   友心谊核销工作台 · 后台公共样式
   ------------------------------------------------------------
   审核台 / 配置台 / 成员 / 看板 四个页面共用这一份。
   依据《后台管理UI改造规格书》（2026-11-11）落地，一次定义，全站生效。

   三条硬规矩（照着做，别再破）：
   1. 字号只有六档，见 --fs-*；页面里不许出现 10.5px、12.5px 这种中间值
   2. 主色只有一支品牌蓝；状态只用 绿=通过/正常、红=打回/删除、紫=超管
   3. 按钮只有四类：主按钮 / 描边次按钮 / 危险描边 / 成功主按钮

   旧的变量名（--blue / --ink / --green …）保留，映射到新色值，
   老页面里写了 var(--blue) 的地方不用改也跟着变。
   ============================================================ */

:root {
  /* ---------- 品牌色 ---------- */
  --brand: #2563EB;
  --brand-press: #1D4ED8;
  --brand-soft: #EEF3FF;
  --brand-line: #C9DAFB;

  /* ---------- 底色 ---------- */
  --bg: #F6F7F9;
  --bg-sunken: #EFF2F6;
  --card: #FFFFFF;

  /* ---------- 文字四级 ---------- */
  --t1: #171A21;
  --t2: #5C6270;
  --t3: #9AA1AF;
  --t-disabled: #C2C7D1;

  /* ---------- 线 ---------- */
  --line: #ECEEF2;
  --line-2: #F0F2F5;
  --line-strong: #DDE1E8;

  /* ---------- 语义色 ---------- */
  --ok: #16A34A;
  --ok-soft: #EAF7EF;
  --ok-line: #A7E0BE;

  --danger: #DC2626;
  --danger-soft: #FDECEA;
  --danger-line: #F3C2C0;

  --warn: #B45309;
  --warn-soft: #FBF3E6;
  --warn-line: #EBD3A8;

  --purple: #7C3AED;
  --purple-soft: #F3EEFE;

  /* ---------- 字号：六档，全站只准用这六个 ---------- */
  --fs-2xs: 11px;   /* 极小：图表轴标、菜单分组标题 */
  --fs-xs: 12px;    /* 辅助：说明、表头、标签、时间 */
  --fs-sm: 13px;    /* 正文：表格单元格、按钮、列表行 */
  --fs-md: 14px;    /* 强调：菜单项、页签、表单控件 */
  --fs-lg: 15px;    /* 卡片标题、工单标题 */
  --fs-xl: 16px;    /* 品牌名、面板标题 */
  --fs-2xl: 18px;   /* 页面标题 */

  /* ---------- 间距：4 的倍数 ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;

  /* ---------- 圆角 ---------- */
  --r-card: 16px;
  --r-ctrl: 10px;
  --r-tag: 8px;
  --r-chip: 14px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;

  /* ---------- 阴影 ---------- */
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  --sh-1: 0 1px 2px rgba(16, 24, 40, .06);
  --sh-2: 0 2px 8px rgba(16, 24, 40, .08);
  --sh-3: 0 12px 32px rgba(16, 24, 40, .14);

  --h-top: 56px;

  /* ---------- 旧变量名映射（老页面不用改） ---------- */
  --ink: var(--t1);
  --ink-2: var(--t2);
  --ink-3: var(--t3);
  --ink-4: var(--t-disabled);
  --sub: var(--t2);
  --blue: var(--brand);
  --blue-dark: var(--brand-press);
  --blue-bg: var(--brand-soft);
  --blue-line: var(--brand-line);
  --green: var(--ok);
  --green-bg: var(--ok-soft);
  --green-line: var(--ok-line);
  --red: var(--danger);
  --red-bg: var(--danger-soft);
  --red-line: var(--danger-line);
  --orange: var(--warn);
  --orange-bg: var(--warn-soft);
  --orange-line: var(--warn-line);
}

/* ============================================================
   基础
   ============================================================ */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--t1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* 规格书：低于 1280 横向滚动，不压缩分栏 */
  min-width: 1280px;
}

/* 数字用等宽：PO 号、数量、时间对得齐 */
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

a { color: var(--brand); text-decoration: none; }

/* 滚动条：细一点，别抢视觉 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #D8DDE5;
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #C2C9D4; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   顶栏：四个页面必须一模一样
   ============================================================ */
.topbar {
  height: var(--h-top);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: 0 var(--sp-6);
  position: relative;
  z-index: 20;
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  flex: none;
}

/* 32px 圆角 10px 蓝色方块，里面是白色相机 */
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand-name {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.25;
}
.brand-sub {
  font-size: var(--fs-2xs);
  color: var(--t3);
  line-height: 1.3;
  margin-top: 1px;
}

/* 页签：未选 --t2 / 选中品牌蓝 + 2px 下划线 */
.navswitch {
  display: flex;
  align-self: stretch;
  gap: 2px;
  flex: none;
}
.navswitch a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-4);
  font-size: var(--fs-md);
  color: var(--t2);
  text-decoration: none;
  border-radius: 0;
  transition: color .12s;
}
.navswitch a:hover { color: var(--t1); background: none; }
.navswitch a.on { color: var(--brand); font-weight: 600; }
.navswitch a.on::after {
  content: "";
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* 顶栏右侧：同步状态 + 用户 */
.syncbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--t3);
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}
.syncbtn .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.syncbtn.bad .dot { background: var(--warn); }
.syncbtn:hover { color: var(--t2); }

.whoami {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--t2);
  cursor: pointer;
  flex: none;
}

/* ============================================================
   按钮：只有四类
   ============================================================ */
button, .btn {
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--t1);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  height: 32px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
  line-height: 1;
}
button:hover, .btn:hover { border-color: var(--brand-line); color: var(--brand); }
button:active, .btn:active { transform: translateY(.5px); }
button:disabled, .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* 主按钮 */
button.primary, .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
button.primary:hover, .btn-primary:hover {
  background: var(--brand-press);
  border-color: var(--brand-press);
  color: #fff;
}

/* 成功主按钮：核对完成这类终结操作 */
button.ok, .btn-ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
  font-weight: 600;
}
button.ok:hover, .btn-ok:hover { background: #15803D; border-color: #15803D; color: #fff; }

/* 危险描边 */
button.danger, .btn-danger {
  background: #fff;
  border-color: var(--danger-line);
  color: var(--danger);
}
button.danger:hover, .btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }

/* 文字按钮 */
button.ghost, .btn-text {
  background: none;
  border: none;
  color: var(--brand);
  padding: 0 6px;
  height: auto;
}
button.ghost:hover, .btn-text:hover { background: none; text-decoration: underline; }

/* ============================================================
   标签 / Chips
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-tag);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--bg-sunken);
  color: var(--t2);
}
.tag-brand  { background: var(--brand-soft); color: var(--brand); }
.tag-ok     { background: var(--ok-soft); color: var(--ok); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-warn   { background: var(--warn-soft); color: var(--warn); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }
.tag-gray   { background: #F2F4F7; color: var(--t2); }

/* 筛选 chips：28px 高，全圆角 */
.chip {
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-chip);
  font-size: var(--fs-sm);
  color: var(--t2);
  background: #F2F4F7;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { background: #E8ECF2; color: var(--t1); }
.chip.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.chip .n, .chip b { font-weight: 600; }

/* ============================================================
   表格
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
thead th {
  background: #F7F8FA;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--t2);
  text-align: left;
  padding: 12px var(--sp-4);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 14px var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--t1);
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
  word-break: break-word;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAFBFD; }

/* ============================================================
   卡片 / 面板
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.panel-hd {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xl);
  font-weight: 600;
}
.panel-list { padding: 0; }

/* 页头：标题 18 / 说明 13 */
.page-head h2, .page-title {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--t1);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-head h2 .n { font-size: var(--fs-sm); color: var(--t3); font-weight: 400; }
.page-head .desc { font-size: var(--fs-sm); color: var(--t3); margin-top: 6px; }

/* ============================================================
   表单
   ============================================================ */
input[type=text], input[type=password], input[type=search], input[type=number],
select, textarea {
  font-family: inherit;
  font-size: var(--fs-md);
  color: var(--t1);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  height: 36px;
  padding: 0 10px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 9px 10px; line-height: 1.6; }
input::placeholder { color: var(--t-disabled); }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* ============================================================
   侧边菜单（配置台）
   ============================================================ */
.navgrp {
  font-size: var(--fs-2xs);
  color: var(--t3);
  padding: 14px 10px 6px;
  letter-spacing: .5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-ctrl);
  font-size: var(--fs-md);
  color: var(--t2);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav:hover { background: var(--line-2); color: var(--t1); }
.nav.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ============================================================
   组织树（成员页）
   ============================================================ */
.tree-item, .node {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-ctrl);
  font-size: var(--fs-md);
  color: var(--t2);
  cursor: pointer;
  user-select: none;
}
.tree-item:hover, .node:hover { background: var(--line-2); }
.tree-item.active, .node.on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.tree-item .count, .node .count {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--t3);
  font-weight: 400;
}
.tree-item.active .count, .node.on .count { color: var(--brand); }
/* 层级缩进：一级 28，二级 46 */
.tree-item.lv1 { padding-left: 28px; }
.tree-item.lv2 { padding-left: 46px; }

/* ============================================================
   看板
   ============================================================ */
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}
.kpi .k-label {
  font-size: var(--fs-sm);
  color: var(--t2);
  margin-bottom: 10px;
}
.kpi .k-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.15;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.kpi .k-num.brand { color: var(--brand); }
.kpi .k-num.ok { color: var(--ok); }
.kpi .k-num.danger { color: var(--danger); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(23, 26, 33, .9);
  color: #fff;
  font-size: var(--fs-sm);
  padding: 10px 18px;
  border-radius: var(--r-ctrl);
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   登录遮罩
   ============================================================ */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.login-box {
  background: #fff;
  border-radius: var(--r-card);
  padding: 32px;
  width: 360px;
  box-shadow: var(--sh-3);
}
.login-box h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  margin: 0 0 6px;
}
.login-box p {
  font-size: var(--fs-sm);
  color: var(--t3);
  margin: 0 0 20px;
}

/* ============================================================
   搜索框（审核台顶栏）
   ============================================================ */
.searchbox {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  flex: none;
}
.searchbox:focus-within {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.searchbox input {
  border: 0;
  background: none;
  outline: none;
  height: auto;
  padding: 0;
  font-size: var(--fs-sm);
  font-family: inherit;
  color: var(--t1);
  width: 100%;
  box-shadow: none;
}
.searchbox input::placeholder { color: var(--t-disabled); }

/* ============================================================
   当前用户（顶栏右侧，auth.js 生成 .av / .nm / .rl）
   ============================================================ */
.whoami .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.whoami .nm {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.2;
}
.whoami .rl {
  font-size: var(--fs-2xs);
  color: var(--t3);
  line-height: 1.2;
}

/* ============================================================
   顶部提示条（审核台用 toastbar，成员页用 toast，两个都留着）
   ============================================================ */
.toastbar {
  position: fixed;
  left: 50%;
  top: 72px;
  transform: translate(-50%, -6px);
  background: rgba(23, 26, 33, .92);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-ctrl);
  font-size: var(--fs-sm);
  box-shadow: var(--sh-2);
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  z-index: 200;
}
.toastbar.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   登录遮罩
   ------------------------------------------------------------
   没登录时整页盖住。这层只是体验，真正的拦截在服务端。
   注意：auth.js 会动态创建 .authmask / .authcard，
   这些样式删了这一页就变成左上角一坨 —— 改 theme 时别漏。
   ============================================================ */
.authmask {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.authmask.on { display: flex; }

.authcard {
  width: 404px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 38px 36px 30px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, .13), var(--shadow);
}

.authcard .mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  -webkit-user-drag: none;
}

.authcard h1 {
  margin: 0;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--t1);
}
.authcard .sub {
  margin: 6px 0 22px;
  font-size: var(--fs-xs);
  color: var(--t3);
  line-height: 1.6;
}

/* 表单一行：登录框和配置台都用这个 */
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--t2);
  margin-bottom: 6px;
  font-weight: 600;
}
.authcard .field input {
  width: 100%;
  height: 40px;
  font-size: var(--fs-md);
}
.authcard .field input.mono {
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.authbtn {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border-radius: var(--r-ctrl);
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.authbtn:hover { background: var(--brand-press); border-color: var(--brand-press); }
.authbtn:disabled { opacity: .6; cursor: wait; }

.autherr {
  min-height: 18px;
  font-size: var(--fs-xs);
  color: var(--danger);
  margin-top: 10px;
  line-height: 1.5;
}
.autherr.ok { color: var(--ok); }

.authfoot {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-2xs);
  color: var(--t3);
  line-height: 1.7;
}

/* ============================================================
   通用弹层（配置台用）
   ============================================================ */
.modalmask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modalmask.on { display: flex; }

.modal {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--sh-3);
  width: 520px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-hd {
  padding: 16px 20px 12px;
  font-size: var(--fs-lg);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-bd { padding: 16px 20px; overflow: auto; }
.modal-ft {
  padding: 12px 20px 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

/* ============================================================
   工具类
   ============================================================ */
.grow { flex: 1; }
.small { font-size: var(--fs-xs); color: var(--t3); }
.empty {
  padding: 44px 0;
  text-align: center;
  color: var(--t3);
  font-size: var(--fs-sm);
  line-height: 1.9;
}


/* ===== 一级板块切换：核销中心 / 品控中心（2026-11-26） =====
   为什么做成实心胶囊而不是像页签那样加下划线：
   页签（.navswitch）表示"同一个板块里的不同页面"，
   板块是比页面高一级的东西，必须长得不一样，否则看不出层级。
   所以：板块 = 实心胶囊（选中蓝底白字），页面 = 文字 + 下划线。 */
.blocksw {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--bg);
  border-radius: 12px;
  flex: none;
}
.blocksw a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--t2);
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.blocksw a:hover {
  color: var(--t1);
  background: rgba(0, 0, 0, .04);
}
.blocksw a.on {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, .3);
}
.blocksw a.on:hover {
  color: #fff;
  background: #1D4ED8;
}
/* 品控是独立服务，加个小箭头提示"会到另一个站" */
.blocksw a.ext::after {
  content: "↗";
  font-size: 11px;
  opacity: .65;
  font-weight: 400;
}

/* 板块和页签之间拉一条竖线，视线上一分为二 */
.blocksw-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  flex: none;
  margin: 0 4px;
}

/* 版本小标：改完样式让人一眼看出是不是新版，不用猜缓存 */
.ver-tag {
  font-size: 11px;
  color: var(--t3);
  font-family: Consolas, monospace;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: none;
  user-select: all;
}


/* ===== 多选胶囊（2026-11-26）=====
   原生 checkbox 在 1080p 上只有 13px，勾选状态又只靠一个蓝框，
   离远了根本看不出选没选。改成整块可点的胶囊：选中就是蓝底带勾，
   一眼能认，点击区域也大得多（手机上更明显）。 */
.pickchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  font-size: var(--fs-sm);
  color: var(--t2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  cursor: pointer;
  user-select: none;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.pickchip:hover { border-color: var(--line-strong); }
.pickchip.on {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand);
  font-weight: 600;
}
/* 勾号用伪元素画，不用图标也不用 emoji */
.pickchip::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  flex: none;
  transition: background .12s, border-color .12s;
}
.pickchip.on::before {
  background: var(--brand) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  border-color: var(--brand);
}
.pickchip-row { display: flex; flex-wrap: wrap; gap: 8px; }
