/* 新雨山前 CRM · Web 版样式
   设计语言：HarmonyOS 风格 —— 墨绿主色 + 薄荷点缀 + 毛玻璃白卡片 + 大圆角 + 柔和分层阴影。
   字体优先使用 HarmonyOS Sans，落地鸿蒙的「圆润 / 通透 / 轻量」观感。 */
:root {
  --ink: #16211b;
  --ink-2: #1f2d25;
  --brand: #183828;
  --brand-soft: #2f6a4f;
  --mint: #78c8a8;
  --mint-ink: #2f8d66;
  --bg: #eef4f1;
  --bg-2: #f6f9f7;
  --line: #e2e9e5;
  --line-2: #eef2f0;
  --muted: #7d8983;
  --muted-2: #a3aeaa;
  --white: #ffffff;
  --danger: #d8432c;
  --danger-bg: #fdeceb;
  --amber: #b8800d;
  --amber-bg: #fdf3df;
  --blue: #3f86ff;
  --blue-bg: #eaf1ff;
  /* 柔和分层阴影：远虚 + 近实 */
  --shadow-sm: 0 2px 10px rgba(24, 56, 40, .05);
  --shadow: 0 10px 30px -8px rgba(24, 56, 40, .12), 0 2px 8px rgba(24, 56, 40, .05);
  --shadow-lg: 0 28px 72px -14px rgba(16, 36, 26, .34), 0 8px 24px rgba(16, 36, 26, .14);
  /* 大圆角 —— HarmonyOS 标志性圆润 */
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --sidebar: 240px;
  /* 毛玻璃材质变量，方便统一调整 */
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-blur: blur(22px) saturate(180%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 680px at 84% -14%, #e6f1ea 0%, rgba(230, 241, 234, 0) 60%),
    radial-gradient(1000px 560px at -10% 14%, #eef6f1 0%, rgba(238, 246, 241, 0) 62%),
    radial-gradient(900px 700px at 50% 120%, #e9f3ef 0%, rgba(233, 243, 239, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "HarmonyOS Sans Naskh",
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #cdeadd; }

/* 自定义滚动条 —— 贴合鸿蒙的纤细圆润观感 */
* { scrollbar-width: thin; scrollbar-color: #cdd9d3 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cdd9d3; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #b6c7bf; background-clip: content-box; }

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

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(20, 41, 31, .96) 0%, rgba(24, 56, 40, .98) 46%, rgba(18, 36, 27, .98) 100%);
  color: #dfeae4;
  z-index: 30;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .04), 12px 0 40px -24px rgba(16, 36, 26, .5);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 16px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #a6e0c6, #5fbb95);
  color: #10231a; font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 18px rgba(120, 200, 168, .32), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.brand-name { font-size: 15.5px; font-weight: 600; letter-spacing: .4px; color: #fff; }
.brand-sub { font-size: 11px; color: #8fae9f; letter-spacing: .8px; }

.nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 14px;
  color: #b7cbbf; font-size: 13.5px; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #eaf4ef; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(120, 200, 168, .22), rgba(120, 200, 168, .12));
  border-color: rgba(120, 200, 168, .32);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(120, 200, 168, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 999px; background: var(--mint);
  box-shadow: 0 0 12px rgba(120, 200, 168, .8);
}
.nav-item .ico { width: 18px; height: 18px; opacity: .92; flex: 0 0 18px; }
.nav-item .badge { margin-left: auto; }
.nav-group { padding: 16px 13px 4px; font-size: 10.5px; letter-spacing: 1.6px; color: #6f8c7d; }

.sidebar-foot { margin-top: auto; }
.account {
  padding: 13px; border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
}
.account-name { color: #fff; font-weight: 500; }
.account-meta { color: #8fae9f; font-size: 11px; margin-top: 2px; word-break: break-all; }
.account-actions { display: flex; gap: 8px; margin-top: 10px; }
.account-actions .btn { flex: 1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 30px 14px;
  background: linear-gradient(180deg, rgba(239, 244, 241, .9) 60%, rgba(239, 244, 241, .55));
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(226, 233, 229, .6);
}
.topbar-titles { min-width: 0; }
.topbar h1 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.2px; color: var(--brand); }
.topbar .sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.view { padding: 4px 30px 54px; max-width: 1680px; width: 100%; }

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  color: var(--brand);
  font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .1s ease, box-shadow .16s ease, color .16s ease;
}
.btn:hover { border-color: #cbd9d2; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(120, 200, 168, .3); }
.btn-primary { background: linear-gradient(135deg, #20503a, #183828); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(24, 56, 40, .55); }
.btn-primary:hover { background: linear-gradient(135deg, #2a5e46, #1e4531); box-shadow: 0 12px 26px -8px rgba(24, 56, 40, .6); color: #fff; }
.btn-mint { background: #e8f7f0; border-color: #cdeadd; color: var(--mint-ink); }
.btn-danger { color: var(--danger); border-color: #f2d6d1; background: #fff; }
.btn-danger:hover { background: #fff6f5; box-shadow: 0 8px 18px -8px rgba(216, 67, 44, .3); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--glass); color: var(--brand); }
.btn-sm { height: 31px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 16px 40px -10px rgba(24, 56, 40, .16), 0 4px 12px rgba(24, 56, 40, .06); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: 15.5px; font-weight: 600; color: var(--brand); letter-spacing: .2px; }
.card-note { font-size: 12px; color: var(--muted); }
.card-head .spacer { flex: 1; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.7;
  background: rgba(240, 243, 241, .8); color: var(--muted);
  white-space: nowrap;
}
.tag-green { background: rgba(232, 242, 236, .9); color: #3f9a72; }
.tag-mint { background: rgba(227, 246, 238, .9); color: var(--mint-ink); }
.tag-blue { background: var(--blue-bg); color: var(--blue); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 600;
  box-shadow: 0 4px 10px -4px rgba(216, 67, 44, .6);
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; min-width: 260px; flex: 1 1 260px; max-width: 420px;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: #b9d3c6; box-shadow: 0 0 0 4px rgba(120, 200, 168, .16); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; }
.search svg { width: 15px; height: 15px; color: var(--muted-2); flex: 0 0 15px; }
.select-wrap { position: relative; flex-shrink: 0; }
.select {
  height: 36px; padding: 0 32px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  font-size: 13px; color: #44524b; appearance: none; cursor: pointer; outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select-wrap::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px;
  border-right: 1.6px solid #8d9a93; border-bottom: 1.6px solid #8b9891;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
/* 包裹内的下拉框隐藏浏览器原生箭头，仅保留上方自定义的 ▾ 指示，避免双箭头 */
.select-wrap select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 30px; background: var(--glass-strong); cursor: pointer; }
.select:focus { border-color: #b9d3c6; box-shadow: 0 0 0 4px rgba(120, 200, 168, .16); }

.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12.5px; color: #5d6a63; margin-bottom: 7px; }
.field-label .req { color: var(--danger); margin-left: 2px; }
.input, .textarea, select.input {
  width: 100%; border: 1px solid var(--line); background: rgba(247, 250, 248, .85);
  border-radius: 14px; padding: 10px 13px; font-size: 13.5px; outline: 0;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, select.input:focus {
  background: #fff; border-color: #b9d3c6; box-shadow: 0 0 0 4px rgba(120, 200, 168, .16);
}
/* 筛选下拉（年份/期间）：固定宽度紧凑药丸。注意选择器须高于 .input 组里的 select.input(特异度0,1,1)，否则 width/圆角会被其覆盖而失效 */
.select-wrap select.input-sm {
  width: 104px; flex-shrink: 0; height: 32px;
  padding: 0 28px 0 12px; font-size: 12.5px;
  color: #3a4a43; background: var(--glass-strong);
  border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer; outline: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.select-wrap select.input-sm option { font-size: 13px; color: #2f3b35; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; min-width: 0; }
.field-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; background: #eef6f2;
  color: #3d6b57; font-size: 12px;
}
.chip button { border: 0; background: transparent; color: #7c9c8c; cursor: pointer; padding: 0; line-height: 1; }
/* 列表卡片中由销售订单自动同步的产品跟踪（仅展示、不落库，与详情页一致） */
.chip-auto { background: #f3f6f4; color: #6b7f76; border: 1px solid #e3e9e5; }
/* 列表卡片产品跟踪超过 2 条时的「剩余 N 项」提示 */
.chip-more { background: #eef2f0; color: #a3aeaa; border: 1px dashed #d7e0db; }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* 响应式卡片网格：手机 1 列 / 平板 2 列 / 桌面 3 列 / 宽屏 4 列，卡片不再被拉长 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: stretch; }
.card-grid > .row-item { height: 100%; }
/* 朕的江山 · 省级「覆盖机构」自适应卡片网格：一行 1 / 2 / 3 / 4 个 */
.cover-med-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.cover-med-grid > .row-item { height: 100%; }
@media (max-width: 1100px) { .cover-med-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .cover-med-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cover-med-grid { grid-template-columns: 1fr; } }
/* 产品跟踪网格：沿用机构卡片风格，列宽更窄，详情页窄栏内也能一排 2 张，宽屏自适应 2/3/4 张 */
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; align-items: stretch; }
.track-grid > .row-item { height: 100%; }
/* 产品跟踪卡片：状态药丸固定在卡片顶部左侧一列，各卡片左右对齐，不随产品名长短漂移 */
.track-card .tc-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.track-card .tc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.track-card .tc-tags .tag { margin-top: 0; white-space: nowrap; }
.track-card .tc-name { font-weight: 600; color: var(--ink); font-size: 13.5px; line-height: 1.4; word-break: break-word; }

/* 列表行 */
.list { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: block; padding: 16px 18px; border-radius: var(--r);
  background: var(--glass-strong); border: 1px solid var(--line-2);
  backdrop-filter: var(--glass-blur);
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
  cursor: pointer;
}
.row-item:hover { border-color: #cfe2d8; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.row-item.clickable { cursor: pointer; }
.row-item.clickable:hover .row-name { color: var(--brand-soft); }
.row-top { display: flex; align-items: flex-start; gap: 10px; }
.row-name { font-size: 14.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.row-name .muted { font-weight: 400; }
.row-tags { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.row-stats { display: flex; gap: 26px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.stat-k { font-size: 11.5px; color: var(--muted-2); }
.stat-v { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: -.2px; }
.stat-v small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
/* 销售数据卡片：三段等高布局，保证同一行卡片「产品名」在一条水平线、「数量/金额」在一条水平线 */
.order-card { display: flex; flex-direction: column; }
.order-card .oc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.order-card .oc-head .row-name { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card .oc-head .row-tags { flex: 0 0 auto; margin-left: 0; }
.order-card .oc-meta { min-height: 42px; }
.order-card .oc-meta .row-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card .oc-meta .oc-org { min-height: 19px; }
.order-card .row-stats { margin-top: auto; }
/* 合作企业卡片底部：左=销售/机构统计，右=统一占比圆环（仅正常供货显示） */
.org-card .row-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.org-card .row-stats { margin-top: 0; padding-top: 0; border-top: none; flex: 1; }
.org-donut { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.org-donut .donut { width: 62px; height: 62px; }
.org-donut .donut::before { width: 48px; height: 48px; }
.org-donut .donut-pct { font-size: 15px; }
.org-donut .donut-cap { font-size: 9px; }
.org-donut-cap { font-size: 10px; color: #6b7f76; }
/* 产品清单卡片底部：左=累计销量/金额，右=统一占比圆环（与 .org-donut 同款尺寸/配色），随顶部筛选实时变化 */
.prod-card .row-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.prod-card .row-stats { margin-top: 0; padding-top: 0; border-top: none; flex: 1; }
.prod-donut { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.prod-donut .donut { width: 62px; height: 62px; }
.prod-donut .donut::before { width: 48px; height: 48px; }
.prod-donut .donut-pct { font-size: 15px; }
.prod-donut .donut-cap { font-size: 9px; }
.prod-donut-cap { font-size: 10px; color: #6b7f76; }
.row-item.issue { border-color: #f3c3bb; background: #fffaf9; }
.row-item.issue .row-name { color: var(--danger); }
.issue-badge {
  display: inline-flex; align-items: center; padding: 1px 7px; margin-left: 6px;
  border-radius: 999px; background: var(--danger-bg); color: var(--danger);
  font-size: 10.5px; font-weight: 500; vertical-align: 2px;
}
.group-label {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 2px 8px; font-size: 12.5px; color: var(--mint-ink); font-weight: 500;
}
.group-label::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--mint); }
.group-label .count { color: var(--muted-2); font-weight: 400; }
/* 合作企业按状态分类：标题可点击折叠 / 展开 */
#org-list .group { margin-bottom: 6px; }
.group-label[data-act="toggle-group"] { cursor: pointer; user-select: none; }
.group-label[data-act="toggle-group"]:hover { color: var(--mint); }
.group-caret { display: inline-block; width: 12px; text-align: center; font-size: 10px; color: var(--muted-2); }
#org-list .group.collapsed { margin-bottom: 14px; }
#med-list .group { margin-bottom: 6px; }
#med-list .group.collapsed { margin-bottom: 14px; }
#rp-list .group { margin-bottom: 6px; }
#rp-list .group.collapsed { margin-bottom: 14px; }
/* 报单进展：只读卡片，逐条展示非售卖产品跟踪 */
.rp-tracks { margin-top: 10px; border-top: 1px dashed var(--line-2); padding-top: 8px; display: flex; flex-direction: column; gap: 7px; }
/* 报单进展：每条跟踪用固定列网格，保证名称/日期/天数/负责人纵向对齐 */
.rp-track {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 84px 56px 56px;
  align-items: center; gap: 8px;
  font-size: 12.5px; line-height: 1.5;
}
.rp-track .tag { justify-self: start; margin-top: 0; white-space: nowrap; }
.rp-field { color: var(--ink, #2b3a33); min-width: 0; }
.rp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-date, .rp-days { color: var(--muted-2, #7a8a80); font-variant-numeric: tabular-nums; }
.rp-owner { color: var(--ink, #2b3a33); white-space: nowrap; }
@media (max-width: 860px) {
  .rp-track { grid-template-columns: 38px minmax(0, 1fr) 70px 44px 42px; gap: 4px; font-size: 12px; }
}
.tag-purple { background: #f1ecfb; color: #7a5bb3; }

/* 工具模块：可扩展的工具卡片网格（设置页） */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 4px; }
.tool-item {
  display: block; padding: 16px 16px 16px 18px; border-radius: var(--r);
  background: var(--glass-strong); border: 1px solid var(--line-2);
  text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; position: relative;
}
.tool-item::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--mint); font-size: 20px; font-weight: 600; }
.tool-item:hover { transform: translateY(-2px); border-color: var(--mint); box-shadow: var(--shadow); }
.tool-name { font-weight: 600; color: var(--ink); font-size: 14.5px; padding-right: 18px; }
.tool-desc { color: var(--muted-2); font-size: 12.5px; margin-top: 5px; padding-right: 18px; }

/* 产品发布开关（HarmonyOS 风格圆润开关） */
.row-name-link { color: inherit; text-decoration: none; cursor: pointer; }
.row-name-link:hover { color: var(--brand-soft); }
.pub-control { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.pub-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 42px; box-sizing: border-box; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; border-radius: 999px;
  background: #d7e0db; transition: background .2s ease; border: 1px solid rgba(0, 0, 0, .04);
  box-sizing: border-box;
}
.switch .slider::before {
  content: ""; position: absolute; left: 3px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 36, 26, .28);
  transition: transform .2s ease;
}
.switch input:checked + .slider { background: linear-gradient(135deg, #34b98a, #2f8d66); }
.switch input:checked + .slider::before { transform: translate(18px, -50%); }
.switch input:disabled + .slider { opacity: .6; cursor: default; }

/* 产品库（子账号「从产品库添加」弹层） */
.catalog-list { display: flex; flex-direction: column; gap: 10px; }
.catalog-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--glass-strong); border: 1px solid var(--line-2); backdrop-filter: var(--glass-blur);
}
.catalog-info { flex: 1; min-width: 0; }
.catalog-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.catalog-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.btn-done { background: linear-gradient(135deg, #7fdcb6, #5fbb95); border-color: transparent; color: #0f3526; }

.empty { padding: 46px 16px; text-align: center; color: var(--muted-2); font-size: 13px; }
.empty b { display: block; color: #74807a; font-weight: 500; margin-bottom: 4px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r);
  backdrop-filter: var(--glass-blur);
  padding: 16px 16px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 24px; font-weight: 600; color: var(--brand); letter-spacing: -.5px; margin-top: 4px; }
.kpi-desc { font-size: 11px; color: var(--muted-2); margin-top: 3px; }

/* 数据看板核心指标：数字在上、标题与同比 chip 在下排 */
.kpi.core { display: flex; flex-direction: column; }
.kpi.core .kpi-value { margin-top: 0; font-size: 26px; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.kpi.core .kpi-label { font-size: 12.5px; }
.kpi-yoy { font-size: 12px; font-weight: 600; white-space: nowrap; }
.kpi-yoy.up { color: #2f8d66; }
.kpi-yoy.down { color: #d8533f; }
.kpi-yoy.new { color: var(--muted); font-weight: 500; }

/* 条形图 */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.bar-label { width: 132px; flex: 0 0 132px; font-size: 12.5px; color: #4c594f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 10px; border-radius: 999px; background: #edf3f0; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a6e0c6, #5fbb95); min-width: 2px; box-shadow: 0 1px 5px rgba(95, 187, 149, .25); }
.bar-fill.dark { background: linear-gradient(90deg, #35634c, #183828); }
.bar-value { width: 104px; flex: 0 0 104px; text-align: right; font-size: 12.5px; color: var(--brand); font-variant-numeric: tabular-nums; }

/* 用量条形（产品用量 / 省份产品销量） */
.usage-list { display: flex; flex-direction: column; gap: 13px; }
.usage-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.usage-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage-qty { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: -.3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.usage-unit { font-size: 11px; font-weight: 400; color: var(--muted-2); margin-left: 2px; font-style: normal; }
/* 用量条统一使用 .bar-fill 渐变（与企业成交排名一致），多色变体已弃用 */
.usage-foot { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 12px; }
.usage-amount { color: var(--mint-ink); font-weight: 600; }
.usage-extra { color: var(--muted-2); }

/* 数据面板 · 产品用量（卡片：产品名称 + 数量 + 金额） */
.usage-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.usage-card { background: linear-gradient(180deg, rgba(232, 246, 240, .7), #fff); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.uc-name { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.uc-k { font-size: 12px; color: var(--muted); }
.uc-v { font-size: 15px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }

/* 机构详情 · 数据面板统计 */
.data-panel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dps { background: linear-gradient(180deg, rgba(232, 246, 240, .7), rgba(255, 255, 255, .5)); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; }
.dps-v { font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.dps-l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* 数据看板 · 冲击感 Hero 横幅 */
.dash-hero {
  display: flex; align-items: stretch; gap: 18px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 26px 30px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 88% -20%, rgba(120, 200, 168, .28) 0%, rgba(120, 200, 168, 0) 55%),
    linear-gradient(135deg, #143a29 0%, #183828 52%, #10251a 100%);
  box-shadow: 0 26px 64px -20px rgba(16, 36, 26, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #eaf4ee;
  overflow: hidden;
}
.dash-hero-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dh-label { font-size: 13px; color: #9fc6b4; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.dh-label-sub { font-size: 11px; color: #6f9885; background: rgba(255, 255, 255, .07); padding: 2px 9px; border-radius: 999px; }
.dh-value { font-size: 52px; font-weight: 700; line-height: 1.05; margin: 6px 0 8px; letter-spacing: -1.5px; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(120, 200, 168, .25); }
.dh-sub { font-size: 12.5px; color: #a9c6b7; }
.dh-sub b { color: #eaf4ee; font-weight: 600; }
.dash-hero-side { display: flex; gap: 10px; align-items: stretch; flex: 0 0 auto; }
.dh-stat {
  min-width: 104px; padding: 12px 18px; border-radius: var(--r);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.dh-stat-v { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.dh-stat-l { font-size: 11.5px; color: #8fb6a3; }

/* 朕的江山 · 省份产品销量面板（复用 dash-panel） */
.prov-product-panel { margin-top: 16px; }

/* 详情键值 */
.kv { display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { width: 132px; flex: 0 0 132px; color: var(--muted); }
.kv .v { flex: 1; color: var(--ink); word-break: break-word; }

/* 弹层 */
.mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14, 30, 22, .4);
  backdrop-filter: blur(4px) saturate(120%);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: min(720px, 100%);
  max-height: 90vh; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg);
  animation: rise .24s cubic-bezier(.22, .85, .3, 1);
}
@keyframes rise { from { transform: translateY(20px); opacity: .55 } to { transform: none; opacity: 1 } }
.modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 12px;
}
.modal-title { font-size: 16.5px; font-weight: 600; color: var(--brand); }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 4px 24px 12px; overflow: auto; }
.modal-foot {
  display: flex; gap: 10px; padding: 12px 24px 20px;
  border-top: 1px solid var(--line-2); background: transparent;
}
.modal-foot .btn { flex: 1; height: 42px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center;
  font-size: 16px; line-height: 1;
  transition: color .15s ease, border-color .15s ease, transform .1s ease;
}
.icon-btn:hover { color: var(--brand); border-color: #cfdfd7; transform: translateY(-1px); }

@media (min-width: 860px) {
  .mask { align-items: center; }
  .modal { border-radius: 28px; max-height: 86vh; }
  .modal-wide { width: min(940px, 100%); }
}

/* 提示 */
.toast-root { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 20px; border-radius: 999px; background: rgba(20, 40, 30, .9);
  backdrop-filter: blur(12px) saturate(160%);
  color: #fff; font-size: 13px; box-shadow: 0 12px 34px rgba(16, 36, 26, .3);
  animation: toast-in .2s ease;
}
.toast.err { background: rgba(156, 47, 31, .94); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* 建议下拉 */
.suggest {
  margin-top: 6px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; max-height: 240px; overflow-y: auto;
  backdrop-filter: var(--glass-blur);
}
.suggest-item { padding: 9px 13px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: #f4faf7; }
.suggest-create { color: #2f8d66; font-weight: 600; background: #f1faf5; }
.suggest-create:hover { background: #e6f6ee; }
.suggest-none { color: #9aa7a0; font-style: italic; }
.suggest-search { position: sticky; top: 0; z-index: 2; background: #fff; margin-bottom: 6px; border-radius: 9px; box-shadow: 0 1px 0 var(--line-2); }
.suggest-list { /* 列表随 .suggest 容器滚动，搜索框 sticky 常驻顶部 */ }

/* 产品选择下拉（授权书） */
.dropdown { position: relative; }
.dropdown-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-height: 300px; overflow: auto; backdrop-filter: var(--glass-blur);
}
.dropdown-item { padding: 10px 13px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.dropdown-item:last-child { border-bottom: 0; }
.dropdown-item:hover { background: #f4faf7; }
.dropdown-item .pn { font-size: 13px; color: var(--ink); }
.dropdown-item .pm { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(900px 520px at 78% 8%, #dcece3 0%, rgba(220, 236, 227, 0) 62%),
    radial-gradient(760px 460px at 12% 92%, #e6f2ec 0%, rgba(230, 242, 236, 0) 60%),
    #eef4f0;
}
.login-card {
  width: min(920px, 100%); display: grid; grid-template-columns: 1.05fr .95fr;
  background: rgba(255, 255, 255, .9); border-radius: 28px; overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 36px 96px -18px rgba(16, 36, 26, .22), 0 8px 24px rgba(16, 36, 26, .1);
  border: 1px solid rgba(255, 255, 255, .6);
}
.login-visual {
  padding: 42px 40px; color: #eaf4ee;
  background: linear-gradient(160deg, #1c4531 0%, #183828 52%, #10251a 100%);
  position: relative; overflow: hidden;
}
.login-visual::after {
  content: ""; position: absolute; right: -120px; bottom: -140px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(120, 200, 168, .34), rgba(120, 200, 168, 0) 70%);
}
.login-visual h2 { margin: 22px 0 10px; font-size: 26px; letter-spacing: -.5px; color: #fff; }
.login-visual p { margin: 0; font-size: 13px; color: #a9c6b7; line-height: 1.8; max-width: 300px; }
.login-feats { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: #c4dacd; }
.login-feats span { display: flex; gap: 8px; align-items: center; }
.login-feats i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.login-form { padding: 42px 40px; }
.login-form h3 { margin: 0 0 6px; font-size: 19px; color: var(--brand); }
.login-form .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 24px; }
.login-form .btn { height: 44px; }
.login-err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-top: 8px; }
.login-hint { margin-top: 20px; font-size: 12px; color: var(--muted-2); line-height: 1.8; }
.login-hint code { background: #f2f7f4; padding: 1px 6px; border-radius: 6px; color: #40634f; }
.login-brand { display: flex; align-items: center; gap: 10px; }

@media (max-width: 860px) {
  .login-card { grid-template-columns: 1fr; }
  .login-visual { display: none; }
}

/* ===== 授权书 ===== */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.auth-step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: #e8f7f0; color: var(--mint-ink); font-size: 11.5px; font-weight: 600; margin-right: 8px; }
.letter-preview {
  background: #e9efeb; border-radius: var(--r); padding: 12px;
  display: flex; justify-content: center;
}
.letter-preview img { width: 100%; max-width: 420px; border-radius: 8px; box-shadow: 0 12px 36px rgba(20, 40, 30, .18); background: #fff; }
.letter-placeholder { width: 100%; max-width: 420px; aspect-ratio: 1240 / 1754; display: grid; place-items: center; color: var(--muted-2); font-size: 12.5px; background: #fff; border-radius: 8px; }
.prod-chip { display: flex; gap: 10px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--glass-strong); margin-bottom: 8px; backdrop-filter: var(--glass-blur); }
.prod-chip .no { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 7px; background: #eef6f2; color: var(--mint-ink); font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.prod-chip .body { flex: 1; min-width: 0; }
.prod-chip .name { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prod-chip .meta { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.prod-chip .mini { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12px; background: #f8fbf9; }
/* 产品跟踪：多选产品列表（选多个自动生成多条跟踪） */
.prod-multi { max-height: 190px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 12px; background: #f8fbf9; padding: 4px; }
.prod-multi-item { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 13px; cursor: pointer; line-height: 1.35; }
.prod-multi-item:hover { background: #eef6f2; }
.prod-multi-item input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; accent-color: #2f8f66; cursor: pointer; margin: 0; }
.prod-multi-item span { color: var(--ink, #2b3a33); }
.cat-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cat-row .info { flex: 1; min-width: 0; }
.cat-row .cn { font-size: 13.5px; font-weight: 500; }
.cat-row input { width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; font-size: 12px; background: #f9fbfa; }

/* 表格 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-weight: 500; color: var(--muted);
  font-size: 12px; padding: 9px 11px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: #f8fbf9; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* 分段控件 */
.segmented { display: inline-flex; background: #eef3f0; border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; padding: 6px 15px; border-radius: 999px;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.segmented button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* 文件拖放 */
.dropzone {
  border: 1.5px dashed #c8dbd1; border-radius: var(--r); padding: 28px;
  text-align: center; color: var(--muted); background: rgba(248, 251, 249, .7); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.over { border-color: var(--mint); background: #f2faf6; }
.dropzone b { color: var(--brand); }

/* ===== 朕的江山 · 覆盖版图 ===== */
.map-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.map-kpis .kpi { flex: 1 1 150px; min-width: 130px; }
.map-legend { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
.map-legend .lg { display: flex; align-items: center; gap: 6px; }
.map-legend .sw { width: 13px; height: 13px; border-radius: 4px; background: #fff; border: 1px solid var(--line-2); }
.map-legend .sw.lit { background: linear-gradient(150deg, #eaf8f1, #d8f1e6); border-color: rgba(120, 200, 168, .5); }

/* 省份产品销量：设备 TOP3 / 耗材 TOP3 卡片（两个独立卡片并排） */
.prov-product-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 720px) { .prov-product-wrap { grid-template-columns: 1fr; } }
.prov-cat { margin-bottom: 16px; }
.prov-cat:last-child { margin-bottom: 0; }
.prov-cat-title { font-size: 13px; font-weight: 600; color: var(--ink); margin: 2px 0 10px; }
.prov-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prov-cat-card { background: linear-gradient(180deg, rgba(232, 246, 240, .7), #fff); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pcc-rank { font-size: 13px; font-weight: 700; color: var(--brand); }
.pcc-name { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcc-qty { font-size: 18px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.pcc-qty small { font-size: 11px; color: var(--muted); font-weight: 500; }
.prov-cat-empty { font-size: 12.5px; color: var(--muted); padding: 4px 0; }

/* 用量卡片：第一行所选期间用量，第二行累计用量 */
.uc-row.uc-cum { padding-top: 7px; border-top: 1px dashed var(--line-2); }
.uc-row.uc-cum .uc-k { color: var(--muted); }
.uc-row.uc-cum .uc-v { color: var(--ink); }

/* 卡片头内的时间筛选下拉（年/期间） */
.card-head .select-wrap { margin: 0; }
.card-head .time-filter { min-width: 100px; }
@media (max-width: 720px) {
  .card-head { flex-wrap: wrap; }
  .card-head .time-filter { min-width: 88px; }
}
/* 真实地理 SVG 地图 */
.geo-map {
  width: 100%; height: auto; display: block;
  background:
    radial-gradient(120% 120% at 50% 0%, #eef6f2 0%, #e6f1ec 60%, #e9f3ef 100%);
  border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow); padding: 6px;
}
.map-shape {
  fill: #ffffff;
  stroke: #cdd9d3;
  stroke-width: 0.6;
  transition: fill .15s ease, stroke .15s ease;
}
.map-shape:hover { fill: #f1f7f4; stroke: #9fcab3; }
.map-shape.lit {
  stroke: #3f9a72;
  stroke-width: 0.8;
}
.map-label {
  font-size: 11px; fill: #143a29; font-weight: 600; text-anchor: middle;
  paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 2.4px; pointer-events: none;
}

/* ===== 朕的江山 · 数据看板布局 ===== */
.map-kpis .kpi-dash { flex: 1 1 0; min-width: 150px; }
.kpi-dash { text-align: center; padding: 18px 14px; }
.kpi-dash .kpi-value { font-size: 28px; letter-spacing: -.5px; }
.kpi-dash .kpi-desc { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

.map-dash {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(320px, 1fr);
  gap: 16px; align-items: start; margin-top: 4px;
}
.map-main { padding: 16px; }
.map-side { display: flex; flex-direction: column; gap: 16px; }
.dash-panel { padding: 18px; margin-bottom: 0; }
.dash-panel .card-head { margin-bottom: 12px; }
.dash-panel .empty { padding: 24px 8px; }

/* 比例环 */
.ring-row { display: flex; gap: 12px; align-items: center; justify-content: space-around; flex-wrap: wrap; }
.ring-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ring { width: 116px; height: 116px; }
.ring-bg { fill: none; stroke: #eaf1ed; stroke-width: 10; }
.ring-fg { fill: none; stroke: #5fbb95; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.ring-pct { fill: var(--brand); font-size: 21px; font-weight: 700; text-anchor: middle; font-variant-numeric: tabular-nums; }
.ring-sub { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.ring-stat { gap: 2px; }
.ring-stat-n { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1; }
.ring-stat-l { font-size: 11.5px; color: var(--muted-2); }

/* 城市标签云 */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.lit-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(150deg, #e9f8f1, #d6f0e5); border: 1px solid rgba(120, 200, 168, .5);
  color: var(--brand); font-size: 12px;
}
.lit-chip b { color: var(--mint-ink); font-variant-numeric: tabular-nums; }

/* 移动端适配 */
@media (max-width: 1080px) {
  .split, .auth-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { flex-direction: column; padding-bottom: 0; }
  /* 手机端取消底部菜单栏：登录进入独立菜单页，子页面顶部提供「菜单」返回按钮 */
  .sidebar { display: none !important; }
  .topbar { padding: 12px 16px 8px; }
  .topbar h1 { font-size: 18px; }
  .view { padding: 4px 16px 30px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .map-dash { grid-template-columns: 1fr; }
  .bar-label { width: 88px; flex-basis: 88px; }
  .bar-value { width: 84px; flex-basis: 84px; }
  .row-stats { gap: 16px; flex-wrap: wrap; }
  .modal-body { padding: 4px 16px 10px; }
  .modal-head, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .dash-hero { padding: 20px; }
  .dash-hero-side { width: 100%; }
  .dh-stat { flex: 1; min-width: 0; }
  .dh-value { font-size: 40px; }
  .data-panel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 手机端：区域销售数据的占比圆环隐藏（仅在桌面端显示，避免小屏拥挤） */
  .region-prov-card .donut { display: none; }
  /* 手机端：战略性隐藏各列表页筛选下拉与部分操作按钮（电脑端保持不变） */
  .toolbar-filters .select-wrap { display: none; }
  .mobile-hide { display: none !important; }
  /* 手机端独立菜单页：七个模块卡片 */
  .menu-page { padding: 6px 2px 10px; }
  .menu-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
  .menu-card {
    display: flex; align-items: center; gap: 13px; min-height: 68px;
    padding: 13px 14px; border-radius: 18px; text-decoration: none;
    background: var(--glass-strong); border: 1px solid var(--line-2);
    box-shadow: 0 3px 14px -8px rgba(24, 56, 40, .22);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    transition: transform .15s, border-color .15s, box-shadow .15s;
  }
  .menu-card:active { transform: scale(.98); border-color: var(--mint); }
  .menu-ico {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #1e4a35, #183828); color: #9fe2c4;
  }
  .menu-ico .ico { width: 23px; height: 23px; }
  .menu-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .menu-name { font-size: 15.5px; font-weight: 600; color: var(--ink, #23352b); }
  .menu-desc { font-size: 11.5px; color: var(--muted, #7d8b83); }
  .menu-arrow { margin-left: auto; color: var(--mint); font-size: 26px; font-weight: 500; line-height: 1; }
  .menu-logout { margin-top: 20px; color: var(--danger, #c0392b); border-color: #f0d3cd; background: #fff; }
}
/* 智能识别：产品明细表 */
.smart-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(24,56,40,.06); }
.smart-table th, .smart-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.smart-table thead th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--bg-2); }
.smart-table tbody tr:last-child td { border-bottom: none; }
.smart-table .input { padding: 6px 8px; width: 100%; min-width: 96px; }
.smart-table td .btn { white-space: nowrap; }

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .search { min-width: 100%; }
  .kpi-value { font-size: 20px; }
}

/* ===== 未付款清单（回款跟踪） ===== */
.unpaid-summary .kv .v.danger { color: var(--danger, #c0392b); }
.unpaid-summary .v.danger { color: var(--danger, #c0392b); }
.unpaid-org { padding: 0; overflow: hidden; }
.unpaid-org-head { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; cursor: pointer; background: var(--bg-2, #f6faf8); border-bottom: 1px solid var(--line-2, #eef2f0); }
.unpaid-org-head:hover { background: #eef6f1; }
.unpaid-org-title { display: flex; align-items: center; gap: 8px; }
.unpaid-org-title .caret { color: var(--muted, #8aa39a); font-size: 12px; width: 12px; }
.unpaid-org-title .card-title { margin: 0; }
.unpaid-org-sum { font-size: 13px; color: var(--text, #183828); line-height: 1.5; }
.unpaid-org-sum b { font-weight: 600; }
.unpaid-org-sum .ok { color: #2f8d66; }
.unpaid-org-sum .danger { color: #c0392b; }
.unpaid-org-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.unpaid-order { border: 1px solid var(--line-2, #eef2f0); border-radius: 12px; padding: 10px 12px; background: var(--white, #fff); }
.unpaid-order-row .row-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.unpaid-order-row .row-meta { font-size: 12px; color: var(--muted, #8aa39a); margin-top: 4px; line-height: 1.5; }
.unpaid-order-row .row-meta b.danger { color: #c0392b; }
.unpaid-ledger { margin: 8px 0 6px; border-top: 1px dashed var(--line-2, #eef2f0); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.unpaid-ledger-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.unpaid-ledger-row .ld-date { color: var(--muted, #8aa39a); }
.unpaid-ledger-row .ld-qty { color: #2f8d66; }
.unpaid-ledger-row .ld-amt { font-weight: 600; }
.unpaid-ledger-row .ld-note { color: var(--muted, #8aa39a); font-style: italic; }
.unpaid-ledger-row .btn { margin-left: auto; padding: 2px 10px; }
.unpaid-org-body > .btn { align-self: flex-start; }
/* 医疗机构分组卡片（未付款清单按医院分开展示） */
.unpaid-med { border: 1px solid var(--line-2, #eef2f0); border-radius: 12px; padding: 10px 12px; background: var(--bg-2, #f6faf8); }
.unpaid-med + .unpaid-med { margin-top: 10px; }
.unpaid-med-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.unpaid-med-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text, #183828); }
.med-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f8d66; display: inline-block; flex: none; }
.unpaid-med-sum { font-size: 12.5px; color: var(--muted, #8aa39a); line-height: 1.55; }
.unpaid-med-sum b { font-weight: 600; }
.unpaid-med-sum .ok { color: #2f8d66; }
.unpaid-med-sum .danger { color: #c0392b; }
.unpaid-med > .btn { margin-top: 6px; }
/* 订单小卡片（整卡可点 → 弹详情） */
.unpaid-order { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.unpaid-order:hover { border-color: #bcd8c8; box-shadow: 0 1px 6px rgba(24,56,40,.06); }
.unpaid-order .row-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.unpaid-order .row-name { font-weight: 600; color: var(--ink, #16211b); }
.unpaid-order .row-meta { font-size: 12px; color: var(--muted, #8aa39a); margin-top: 4px; line-height: 1.5; }
.unpaid-order .row-actions { display: flex; gap: 8px; margin-top: 9px; }
.unpaid-order .row-actions .btn { flex: 1; }
/* 薄荷主按钮（回款） */
.btn-mint { background: var(--mint, #78c8a8); color: #0f2a1d; border-color: transparent; }
.btn-mint:hover { background: #67bda0; }

/* ===== 通用指标卡（朕的江山风格标准件：纯白底 · 居中三行：标签 / 大数字 / 注释） ===== */
.metric-card {
  background: #fff; border: 1px solid var(--line-2, #eef2f0); border-radius: 14px;
  padding: 16px 14px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card .mc-label { font-size: 12.5px; color: #6b7f76; }
.metric-card .mc-value { font-size: 26px; font-weight: 700; color: var(--brand, #183828); letter-spacing: -.5px; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric-card .mc-value.ok { color: var(--mint-ink, #2f8d66); }
.metric-card .mc-value.danger { color: var(--danger, #d8432c); }
.metric-card .mc-desc { font-size: 11px; color: var(--muted-2, #a3aeaa); margin-top: 4px; }

/* ===== 回款覆盖占比（顶部 · 圆环图，标准模板，配色对齐朕的江山）=====
   细环：外直径:内直径 ≈ 1:0.76（环宽≈直径12%），平头、纯色、无阴影；
   已回款弧 = #5FB98A，未回款弧 = #E9EEEA，圆心留白，中心百分比墨绿 */
.coverage-card { padding: 16px; }
.coverage-main { display: flex; align-items: center; gap: 20px; }
.donut {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; box-shadow: inset 0 0 0 1px rgba(24,56,40,.05);
  transition: background .45s ease;
}
.donut::before {
  content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%;
  background: #fff;
}
.donut-center { position: relative; text-align: center; line-height: 1.1; }
.donut-pct { font-size: 24px; font-weight: 700; color: var(--brand, #183828); font-variant-numeric: tabular-nums; }
.donut-cap { font-size: 11px; color: #6b7f76; margin-top: 1px; }
.coverage-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted, #8aa39a); }
.coverage-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.coverage-legend .dot-mint { background: #5FB98A; }
.coverage-legend .dot-gray { background: #E9EEEA; }
.coverage-stats { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) {
  .coverage-main { flex-direction: column; align-items: stretch; }
  .donut { align-self: center; }
  .coverage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 数据看板 · 区域销售数据省份卡片（名称/金额 + 统一细环占比，配色对齐 .donut） */
.region-prov-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line-2, #eef2f0); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.region-prov-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rpc-info { flex: 1; min-width: 0; }
.rpc-name { font-size: 13.5px; font-weight: 600; color: var(--ink, #16211b); }
.rpc-amount { font-size: 20px; font-weight: 700; color: var(--brand, #183828); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.rpc-pct { font-size: 11px; color: #6b7f76; margin-top: 2px; }
/* 同款细环，按比例缩小（外 76 / 内 58 ≈ 1:0.76），保持统一圆环观感 */
.region-prov-card .donut { width: 76px; height: 76px; }
.region-prov-card .donut::before { width: 58px; height: 58px; }
.region-prov-card .donut-pct { font-size: 17px; }
.region-prov-card .donut-cap { font-size: 10px; }


/* 站点备案栏（ICP / 公安备案）：固定底部居中，登录页与登录后所有页面都显示 */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 26px; padding: 4px 12px;
  font-size: 11.5px; line-height: 1.4; color: #8a9b91;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(24, 56, 40, .06);
  pointer-events: auto;
}
.site-footer:empty { display: none; }
.site-footer a { color: #6f8578; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .sf-sep { color: #c3cec7; }
