/* ============================================================
   admin.css — 进线后台共享样式 · 设计契约唯一来源（与 C端同源 token）
   风格：暖阳拟态（暖杏底 + 双向软阴影浮雕 / 赭陶×墨青）
   拟态原则：表面与底色一致，靠「右下暗投影 + 左上亮高光」浮起；
   凹陷元素（输入框/轨道）用内阴影。
   ============================================================ */

/* 省市区级联选择器结构样式（与 C端 form.html 共享同一份，尺寸经 CSS 变量区分） */
@import url("region-cascader.css?v=20260904");

/* hidden 属性兜底：防止组件 display 规则覆盖导致隐藏失效（各页面不再重复定义） */
[hidden] { display: none !important; }

:root {
  --primary: #2D6B5E;  /* 暖青绿 - 主操作 */
  --primary-deep: #1F4F44;  /* 暖青绿深 */
  --primary-soft: #DCE9E2;  /* 暖青绿弱（深于底一档，保证可见） */
  --primary-text: #FFF9F0;  /* 墨青按钮上的浅黄白文字（与 app.wxss 对齐） */
  --accent: #C05B3C;
  --accent-soft: #F4E2D6;
  --bg: #ECE1CF;  /* 暖阳杏底 · 拟态统一底色 */
  --surface: #ECE1CF;  /* 拟态：表面与底色一致，靠阴影分层 */
  --border: #DECFB8;
  --text: #3D2E22;
  --text-sub: #9A7B5D;
  --muted: #9A7B5D;  /* 与 text-sub 同义（漏斗页等引用） */
  --text-placeholder: #B8A184;
  --success: #3E8E6D;  --success-soft: #DCEAE2;
  --danger:  #C64F42;  --danger-soft:  #F3DED7;
  --info:    #4A7FB5;  --info-soft:    #DFE8F1;
  --sidebar-w: 188px;
  --radius-sm: 10px;
  --radius-md: 14px;  /* region-cascader.css 依赖 */
  --radius-lg: 20px;
  /* 拟态双向软阴影：右下暗投影 + 左上亮高光 */
  --neu-hi: rgba(255, 251, 242, .92);   /* 高光（亮于底色） */
  --neu-lo: rgba(146, 114, 76, .26);    /* 投影（深于底色） */
  --neu-sm: 4px 4px 9px var(--neu-lo), -4px -4px 9px var(--neu-hi);
  --neu-md: 8px 8px 18px rgba(146, 114, 76, .27), -8px -8px 18px var(--neu-hi);
  --neu-lg: 12px 12px 26px rgba(146, 114, 76, .28), -10px -10px 22px var(--neu-hi);
  --neu-in: inset 3px 3px 7px rgba(146, 114, 76, .24), inset -3px -3px 7px rgba(255, 251, 242, .8);
  --neu-in-sm: inset 2px 2px 5px rgba(146, 114, 76, .2), inset -2px -2px 5px rgba(255, 251, 242, .7);
  /* 兼容别名：旧页面内联样式仍在引用 */
  --shadow-lg: 0 24px 60px rgba(96, 72, 45, .32);
  --font-display: "Noto Serif SC", "Songti SC", "STZhongsong", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ============ App Shell（三页逐字一致，禁止改动结构） ============ */
.app-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--bg);  /* 拟态：与底色一体 */
  color: var(--text);
  box-shadow: 6px 0 18px rgba(146, 114, 76, .18);  /* 右侧软阴影分出侧栏 */
}
.app-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 20px;
}
.app-nav .brand .t1 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
}
.app-nav .brand .t2 { font-size: 11px; color: var(--text-sub); letter-spacing: .14em; margin-top: 2px; }
.app-nav nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.app-nav nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: box-shadow .2s ease, color .2s ease, background .2s ease;
}
/* 拟态 hover：轻按凹陷 */
.app-nav nav a:hover { box-shadow: var(--neu-in-sm); color: var(--text); }
/* 拟态 active：墨青浮雕块 */
.app-nav nav a.active {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
  box-shadow: 4px 4px 10px rgba(31, 79, 68, .3), -3px -3px 8px rgba(255, 251, 242, .5);
}
.app-nav .nav-foot {
  padding: 16px 20px 20px;
  box-shadow: inset 0 1px 0 rgba(146, 114, 76, .16), inset 0 2px 0 rgba(255, 251, 242, .5);  /* 拟态分割线 */
  display: flex;
  align-items: center;
  gap: 10px;
}
/* 汉堡按钮：仅窄视口显示（宽屏由媒体查询隐藏，默认 display:none 兜底） */
.nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 110;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--neu-sm);
}
.nav-toggle:hover { box-shadow: var(--neu-in-sm); }
/* 抽屉遮罩：仅窄视口由媒体查询生效（宽屏隐藏兜底） */
.nav-backdrop { display: none; }
.app-nav .nav-foot .who { line-height: 1.35; flex: 1; min-width: 0; }
.app-nav .nav-foot .who .n { font-size: 13px; font-weight: 600; }
.app-nav .nav-foot .who .r { font-size: 11px; color: var(--text-sub); }
.app-nav .nav-foot .logout-btn {
  flex: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--neu-sm);
  transition: box-shadow .2s ease, color .2s ease, background .2s ease;
}
.app-nav .nav-foot .logout-btn:hover {
  background: var(--danger);
  color: var(--primary-text);
  box-shadow: 3px 3px 8px rgba(198, 79, 66, .3), -2px -2px 6px rgba(255, 251, 242, .5);
}

.app-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 28px;
  background: rgba(236, 225, 207, .88);  /* 拟态底色半透明 */
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(146, 114, 76, .14);  /* 底部软阴影代替边线 */
}
.topbar .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
}
.topbar .crumb b { color: var(--text); font-weight: 600; font-size: 14px; }
.topbar .spacer { flex: 1; }
.topbar .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-sub);
  box-shadow: var(--neu-in);  /* 拟态凹陷输入槽 */
  transition: box-shadow .2s ease;
}
.topbar .search-box:focus-within {
  box-shadow: var(--neu-in), 0 0 0 2px rgba(45, 107, 94, .35);
}
.topbar .search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
}
.topbar .search-box input::placeholder { color: var(--text-placeholder); }
.topbar .admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.page-body { flex: 1; padding: 24px 28px 40px; }

/* ============ 通用组件 ============ */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
}
.page-head .desc { margin-top: 4px; font-size: 13px; color: var(--text-sub); }

.panel {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-md);  /* 拟态浮起 */
}
.panel + .panel { margin-top: 20px; }
.panel .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  /* 拟态分割线：暗线 + 亮线叠出刻痕 */
  box-shadow: inset 0 -1px 0 rgba(146, 114, 76, .15), inset 0 -2px 0 rgba(255, 251, 242, .5);
  font-size: 15px;
  font-weight: 600;
}
.panel .panel-head .sub { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--text-sub); }
.panel .panel-body { padding: 20px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: box-shadow .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 5px 5px 12px rgba(31, 79, 68, .3), -3px -3px 8px rgba(255, 251, 242, .45);
}
.btn-primary:hover { background: var(--primary-deep); }
.btn-primary:active { box-shadow: inset 3px 3px 7px rgba(15, 45, 38, .4); }  /* 按下凹陷 */
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-outline {
  background: var(--surface);
  color: var(--primary-deep);
  box-shadow: var(--neu-sm);
}
.btn-outline:hover { box-shadow: var(--neu-in-sm); }
.btn-ghost {
  background: transparent;
  color: var(--text-sub);
}
.btn-ghost:hover { color: var(--text); box-shadow: var(--neu-in-sm); }
.btn-danger {
  background: var(--danger);
  color: var(--primary-text);
  box-shadow: 5px 5px 12px rgba(198, 79, 66, .28), -3px -3px 8px rgba(255, 251, 242, .45);
}
.btn-danger:hover { background: #8F3F27; }
.btn-danger:active { box-shadow: inset 3px 3px 7px rgba(80, 25, 15, .4); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--neu-in-sm);  /* 拟态浅凹徽章 */
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.b-blue  { background: var(--info-soft);    color: var(--info); }
.b-green { background: var(--success-soft); color: var(--success); }
.b-gray  { background: #E2D5BE;             color: var(--text-sub); }
.b-gray::before { display: none; }

/* 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  /* 抬高层级：保证级联选择器面板浮在后续 reveal 卡片之上（低于顶栏 90 / 侧栏 100） */
  position: relative;
  z-index: 20;
}
.filter-bar .seg {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--neu-in);  /* 拟态凹槽轨道 */
}
.filter-bar .seg button {
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-sub);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: box-shadow .18s ease, color .18s ease, background .18s ease;
}
.filter-bar .seg button:hover { color: var(--text); }
.filter-bar .seg button.active {
  background: var(--surface);
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: var(--neu-sm);  /* 选中项自凹槽浮起 */
}
.filter-bar select {
  height: 34px;
  padding: 0 32px 0 12px;
  border: none;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  box-shadow: var(--neu-sm);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239A7B5D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: box-shadow .18s ease;
}
.filter-bar select:hover { box-shadow: var(--neu-in-sm); }
.filter-bar select:focus { box-shadow: var(--neu-in), 0 0 0 2px rgba(45, 107, 94, .35); }
.filter-bar .count { margin-left: auto; font-size: 12.5px; color: var(--text-sub); }

/* 省市区级联选择器结构样式已抽至 region-cascader.css（顶部 @import 引入），
   后台使用默认尺寸（34px 触发框 / 148px 列宽），无需额外覆盖 */

/* 表格 */
.table-wrap { overflow-x: auto; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.tbl th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-sub);
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(146, 114, 76, .2), inset 0 -2px 0 rgba(255, 251, 242, .45);  /* 拟态刻痕线 */
  white-space: nowrap;
}
.tbl td {
  padding: 14px 16px;
  box-shadow: inset 0 -1px 0 rgba(146, 114, 76, .1);  /* 行分隔用浅刻痕 */
  vertical-align: middle;
}
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: rgba(255, 251, 242, .42); }
.tbl tbody tr:last-child td { box-shadow: none; }
.tbl .cell-id { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; color: var(--text-sub); }
.tbl .cell-name { display: flex; align-items: center; gap: 10px; }
.tbl .cell-name .n { font-weight: 600; }
.tbl .cell-link { color: var(--primary-deep); font-weight: 500; }
.tbl .cell-link:hover { text-decoration: underline; }
.tbl .row-actions { display: flex; gap: 8px; }

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  box-shadow: inset 0 1px 0 rgba(146, 114, 76, .15), inset 0 2px 0 rgba(255, 251, 242, .5);  /* 拟态分割线 */
  font-size: 13px;
  color: var(--text-sub);
}
.pager .pages { display: flex; gap: 8px; }
/* 每页条数选择器 */
.pager .pager-left { display: flex; align-items: center; gap: 8px; }
.pager .size-label { font-size: 13px; }
.pager select {
  height: 30px;
  padding: 0 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--neu-sm);
  transition: box-shadow .18s ease;
}
.pager select:hover { box-shadow: var(--neu-in-sm); }
.pager select:focus { outline: none; box-shadow: var(--neu-in), 0 0 0 2px rgba(45, 107, 94, .35); }
.pager .pages button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-sub);
  cursor: pointer;
  box-shadow: var(--neu-sm);
  transition: box-shadow .18s ease, color .18s ease, background .18s ease;
}
.pager .pages button:hover:not(:disabled) { box-shadow: var(--neu-in-sm); color: var(--primary-deep); }
.pager .pages button.cur {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
  box-shadow: 4px 4px 10px rgba(31, 79, 68, .3), -2px -2px 6px rgba(255, 251, 242, .45);
}
.pager .pages button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* 空态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 20px;
  color: var(--text-sub);
}
.empty-state svg { opacity: .5; }
.empty-state .t { font-size: 14px; }
.empty-state .d { font-size: 12.5px; }

/* 加载骨架 */
.skeleton-row { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.skeleton {
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #E3D6BF 25%, #F4EDDF 50%, #E3D6BF 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* 输入框（后台）：拟态凹陷 */
.textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  box-shadow: var(--neu-in);
  transition: box-shadow .2s ease;
}
.textarea:focus { box-shadow: var(--neu-in), 0 0 0 2px rgba(45, 107, 94, .35); }
.textarea::placeholder { color: var(--text-placeholder); }

/* 状态流转按钮组 */
.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.flow-actions .btn .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block;
}

/* ============ 数据看板（升级版） ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 20px;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--neu-lg); }
.stat-card .s-icon {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neu-in-sm);  /* 拟态凹陷图标槽 */
}
.stat-card .s-num { font-size: 32px; font-weight: 700; font-family: var(--font-display); line-height: 1; letter-spacing: .01em; }
.stat-card .s-num small { font-size: 13px; font-weight: 400; color: var(--text-sub); margin-left: 4px; }
.stat-card .s-label { margin-top: 8px; font-size: 12.5px; color: var(--text-sub); }
.stat-card .s-trend {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: var(--neu-in-sm);
}
.trend-up { background: var(--success-soft); color: var(--success); }

/* 看板面板：栅格布局 */
.dash-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.dash-grid + .dash-grid { margin-top: 20px; } /* 看板多行板块组之间统一 20px 垂直间距 */
.dash-grid .panel + .panel { margin-top: 0; }

/* 横向条形分布：凹陷轨道 + 凸起填充 */
.hbar-list { display: flex; flex-direction: column; gap: 16px; }
.hbar-item .row1 { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.hbar-item .row1 .n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-item .row1 .v { color: var(--text-sub); flex: none; }
.hbar-item .track { height: 10px; border-radius: 999px; background: #E3D6BF; box-shadow: var(--neu-in-sm); overflow: hidden; }
.hbar-item .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3A7D6E, var(--primary));
  transition: width .8s cubic-bezier(.16, .84, .44, 1);
}
.hbar-item.gold .fill { background: linear-gradient(90deg, #CE6A45, var(--accent)); }
.hbar-item.blue .fill { background: linear-gradient(90deg, #5A8CC2, var(--info)); }
.hbar-item.green .fill { background: linear-gradient(90deg, #4C9E7D, var(--success)); }

/* Toast */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(61, 46, 34, .92);
  color: var(--primary-text);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 入场动效 */
.reveal { opacity: 0; animation: fade-up .5s ease forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== 通用弹窗（全后台唯一实现：线索导出 / 账号编辑 / 重置密码等复用） ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(61, 46, 34, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  width: 440px;
  max-width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--neu-sm);
  padding: 26px;
  transform: translateY(12px);
  transition: transform .25s ease;
}
.modal-mask.show .modal { transform: none; }
.modal h3 { font-size: 17px; margin-bottom: 18px; }
.modal .m-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal .m-actions .btn { flex: 1; }

/* ===== 全局确认弹窗（showConfirm，与 .modal 体系同源） ===== */
.confirm-modal { width: 380px; }
.confirm-modal .cf-title { margin-bottom: 10px; }
.confirm-modal .cf-desc {
  font-size: 13.5px; line-height: 1.8; color: var(--text-sub);
  white-space: pre-line; word-break: break-all;
}

/* 响应式 */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* 窄视口：侧栏改为抽屉式（汉堡按钮呼出，不再整体隐藏） */
  .app-nav {
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: none;
  }
  .app-nav.nav-open { transform: translateX(0); box-shadow: 8px 0 24px rgba(96, 72, 45, .3); }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(61, 46, 34, .35);  /* 移动端遮罩略减淡 */
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  .nav-toggle {
    display: flex;
  }
  .app-content { margin-left: 0; }
  .topbar { padding-left: 60px; }
  .topbar .search-box { display: none; }
  .page-body { padding: 16px; }
}
