:root {
  color-scheme: light;
  /* 浅色轻奢底：浅灰白渐变，营造层次 */
  --bg: #ececef;
  --bg-grad: linear-gradient(180deg, #f3f3f6 0%, #e8e8ec 100%);
  --card: #ffffff;
  --card-2: #f6f6f8;
  --line: #e6e6ea;
  --line-soft: #f0f0f3;
  /* 文字：近黑 + 中灰 */
  --text: #1b1b1f;
  --muted: #8b8b93;
  /* 轻奢点缀：克制的香槟金，仅用于品牌/少量强调 */
  --gold: #cdb389;
  --gold-bright: #e6d2a6;
  --gold-dark: #a8843f;
  /* 主强调：高级炭黑（黑白灰银里的"黑"层次） */
  --primary: #1f1f23;
  --primary-d: #111114;
  --primary-soft: rgba(31,31,35,.06);
  --primary-soft-2: rgba(31,31,35,.10);
  --silver: #c9ccd2;
  --silver-2: #e4e6ea;
  --ok: #2e9e6b;
  --danger: #d6453f;
  --warn: #c98a2e;
  --radius: 14px;
  --radius-sm: 10px;
  /* 浅色柔和多层阴影，取代深色重影 */
  --shadow: 0 1px 2px rgba(20,20,30,.04), 0 6px 20px rgba(20,20,30,.06);
  --shadow-hover: 0 2px 6px rgba(20,20,30,.06), 0 12px 34px rgba(20,20,30,.10);
  --glow: 0 0 0 3px rgba(31,31,35,.12);
}
* { box-sizing: border-box; }
::selection { background: rgba(31,31,35,.12); color: #1b1b1f; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100vh; }

/* 布局 */
.side {
  position: fixed; left: 0; top: 54px; bottom: 0; width: 232px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 0; z-index: 20;
}
.brand {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 18px 18px; color: #1a1a1d;
  background: linear-gradient(135deg, #ecd9b0 0%, #ddc290 55%, #c9ab74 100%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.10);
}
.brand-t { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.brand::after { display: none; }
/* 中间导航区：占据剩余空间并可独立滚动，顶部品牌与底部用户栏保持固定 */
#nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}
#nav::-webkit-scrollbar { width: 6px; }
#nav::-webkit-scrollbar-thumb { background: #d2d2d8; border-radius: 6px; }
#nav::-webkit-scrollbar-thumb:hover { background: #c2c2ca; }
.navitem {
  display: block; padding: 12px 16px; color: #5a5a62; text-decoration: none;
  margin: 3px 12px; border-radius: 10px; font-weight: 500; transition: all .15s ease;
}
.navitem:hover { background: #f1f1f4; color: #1b1b1f; }
.navitem.active {
  background: linear-gradient(135deg, #2a2a2e, #1a1a1d); color: #fff;
  box-shadow: 0 4px 14px rgba(31,31,35,.18); font-weight: 600;
}
/* 数据看板 下拉抽屉 */
.nav-parent { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.nav-caret { font-size: 11px; opacity: .55; margin-left: 6px; transition: transform .2s ease; }
.nav-parent.open .nav-caret { transform: rotate(180deg); }
.nav-subs { display: none; }
.nav-subs.open { display: block; }
.nav-sub { font-size: 13px; padding: 9px 16px; margin: 2px 12px 2px 22px; }
.side-foot {
  margin-top: auto; padding: 14px; border-top: 1px solid var(--line); font-size: 13px;
}
.side-foot #me { padding: 4px 6px 10px; color: #5a5a62; line-height: 1.7; }
.side-foot #me small { color: var(--muted); }
.role {
  display: inline-block; background: rgba(205,179,137,.12); color: var(--gold-dark);
  border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 600;
}
.main { margin-left: 232px; margin-top: 54px; padding: 32px 38px; max-width: 1060px; }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #d8d8de; }
.card h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.card h3 {
  margin: 18px 0 12px; padding: 8px 12px 8px 14px;
  font-size: 15.5px; font-weight: 700; color: #2a2a2e;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(205,179,137,.10), transparent 80%);
  border-radius: 0 8px 8px 0; line-height: 1.4;
}
.card h3 small { font-size: 12px; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }

/* 表单 */
input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  margin-bottom: 12px; font-size: 14px; background: #ffffff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #a8a8b0; }
input:focus {
  outline: none; border-color: #9a9aa2;
  box-shadow: var(--glow); background: #fff;
}
textarea, select { font-family: inherit; color: var(--text); }
.btn {
  width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px;
  background: #ffffff; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .15s ease;
}
.btn:hover { border-color: #cfcfd6; background: #f7f7f9; }
.btn.primary {
  background: linear-gradient(135deg, #2a2a2e, #1a1a1d); color: #fff; border-color: rgba(0,0,0,.15);
  box-shadow: 0 4px 14px rgba(31,31,35,.18); font-weight: 700;
}
.btn.primary:hover { filter: brightness(1.12); box-shadow: 0 6px 20px rgba(31,31,35,.26); }
.btn.ghost {
  width: auto; padding: 7px 14px; margin-top: 8px; font-size: 13px; color: var(--muted);
  background: transparent; border-color: var(--line);
}
.btn.ghost:hover { color: #1b1b1f; border-color: #b9b9c0; background: #f4f4f6; }

/* 登录 */
.login-wrap { max-width: 760px; margin: 56px auto; padding: 0 20px; }
.login-head { text-align: center; margin-bottom: 30px; }
.login-head h1 {
  font-size: 28px; margin: 0 0 8px; letter-spacing: 1px;
  background: linear-gradient(135deg, #2a2a2e, #6a6a72);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-head p { color: var(--muted); margin: 0; font-size: 13.5px; }
.login-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.login-cards .card { padding: 24px 22px; }
.login-cards .card h2 {
  margin: 0 0 18px; padding-bottom: 12px;
  font-size: 17px; font-weight: 700; text-align: center;
  border-bottom: 2px solid var(--gold); border-radius: 0;
}
/* 身份切换（注册卡片内） */
.identity-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.identity-tabs .id-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; cursor: pointer; background: var(--card); color: var(--muted);
  transition: all .15s ease; user-select: none;
}
.identity-tabs .id-tab input { width: auto; margin: 0; accent-color: var(--gold-dark); }
.identity-tabs .id-tab:has(input:checked) {
  border-color: var(--gold); color: #2a2a2e; font-weight: 600;
  background: linear-gradient(135deg, rgba(205,179,137,.14), rgba(205,179,137,.04));
  box-shadow: 0 2px 8px rgba(205,179,137,.12);
}
/* 登录页输入框聚焦金色高亮 */
.login-cards input:focus, .login-cards select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(205,179,137,.16); outline: none;
}
.login-cards .btn.primary { margin-top: 6px; }

/* 统计 */
.stat-row { display: flex; gap: 14px; margin-bottom: 8px; }
.stat {
  flex: 1; background: linear-gradient(135deg, #ffffff, #f7f7f9); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #c9ccd2, #9aa0aa);
}
.stat b { display: block; font-size: 22px; color: #1b1b1f; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; background: #f6f6f8; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #f6f6f9; }

/* toast：Vercel 风格 黑底白字圆角 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px);
  background: #000; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .2px; z-index: 300;
  box-shadow: 0 6px 24px rgba(0,0,0,.28); opacity: 0;
  animation: toast-in .26s cubic-bezier(.2,.8,.2,1) forwards;
}
.toast.err { background: #dc2626; color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.toast.out { animation: toast-out .2s ease forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* 面板 / 表单网格 */
.panel {
  background: linear-gradient(135deg, #ffffff, #fafafa); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: end; }
.form-grid label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 4px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; color: var(--text); font-family: inherit; background: #ffffff;
}
.form-grid select { cursor: pointer; }
.form-grid textarea { resize: vertical; }
.form-grid .btn { grid-column: 1 / -1; width: auto; align-self: start; margin-top: 4px; }

/* 进度条 + 红绿灯 */
.pbar { background: #e6e6ea; border-radius: 6px; height: 8px; overflow: hidden; margin: 6px 0; }
.pfill { background: linear-gradient(90deg, #2a2a2e, #4a4a52); height: 100%; transition: width .2s; }
.light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.light.green { background: #2bbf6a; }
.light.yellow { background: #f2c14e; }
.light.red { background: #e0483e; }

/* 任务行 */
.task-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.task-row:hover { box-shadow: var(--shadow-hover); border-color: #d8d8de; }
.task-head { display: flex; align-items: center; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.task-meta { color: var(--muted); font-size: 12px; margin: 4px 0; }
.task-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.task-edit select, .task-edit input[type="text"], .task-edit .t_note, .task-edit .f_content, .task-edit .lf_content, .task-edit .a_to {
  flex: 1; min-width: 120px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: #ffffff; color: var(--text);
}
.task-edit input[type="range"] { flex: 2; min-width: 140px; accent-color: #1f1f23; }
.task-edit .t_prog_v { font-size: 13px; color: var(--muted); min-width: 42px; }
.btn.small { width: auto; padding: 8px 16px; font-size: 13px; }

/* 任务反馈区 + 附件 */
.task-fb { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.fb { margin-top: 8px; }
.fb-toggle { margin-bottom: 4px; }
.fb-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.fb-item { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.fb-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.fb-content { font-size: 13px; margin: 2px 0 4px; white-space: pre-wrap; word-break: break-word; color: #3a3a42; }
.fb-atts { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-att img.fb-img { max-width: 160px; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.fb-media { max-width: 320px; max-height: 220px; border-radius: 8px; margin-top: 4px; }
.fb-video { width: 320px; }
.fb-form { display: flex; flex-direction: column; gap: 6px; }
.fb-form .fb-text { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; resize: vertical; box-sizing: border-box; background: #ffffff; color: var(--text); }
.fb-files { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-actions { display: flex; gap: 8px; align-items: center; }
.fb-pick { cursor: pointer; }

/* 客户 / 楼盘 / 客资行 */
.cust-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.cust-row:hover { box-shadow: var(--shadow-hover); border-color: #d8d8de; }
.cust-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.cust-meta { color: var(--muted); font-size: 13px; margin: 5px 0; }
.tag { background: rgba(205,179,137,.14); color: var(--gold-dark); border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
/* 分级徽标 S/A/B/C（轻奢香槟金 + 银灰） */
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 7px; font-size: 12px; font-weight: 700; line-height: 1; vertical-align: middle; }
.g-S { background: linear-gradient(135deg, #ecd9b0, #cdb389); color: #5a4a26; box-shadow: 0 1px 4px rgba(205,179,137,.5); }
.g-A { background: rgba(205,179,137,.22); color: #8a6f3e; border: 1px solid rgba(205,179,137,.5); }
.g-B { background: rgba(120,120,128,.16); color: #55555c; border: 1px solid rgba(120,120,128,.32); }
.g-C { background: rgba(120,120,128,.1); color: #7a7a82; border: 1px solid rgba(120,120,128,.24); }
.chip { display: inline-block; background: #f0f0f3; border-radius: 6px; padding: 3px 9px; font-size: 12px; margin: 3px 4px 0 0; color: #5a5a62; }
.follows { margin: 6px 0; }
.follows-title { font-size: 12px; color: var(--muted); margin: 6px 0 4px; }

/* 线索等级配色 */
.tag-lv-S { background: #c0392b; color: #fff; }
.tag-lv-A { background: #d9821f; color: #fff; }
.tag-lv-B { background: #5b8fb0; color: #fff; }
.tag-lv-C { background: #2f8f7a; color: #fff; }
.tag-lv-D { background: #6b7280; color: #fff; }
.tag-lv-E { background: #9aa0a8; color: #2a2a2e; }

/* 线索卡片头部小标签 */
.meta-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mt { background: #f0f0f3; color: #5a5a62; border-radius: 6px; padding: 2px 9px; font-size: 12px; }

/* 线索信息 kv 网格 */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 10px 0; }
.kv-i { display: flex; gap: 8px; font-size: 13px; line-height: 1.6; }
.kv-k { color: var(--muted); flex: 0 0 64px; }
.kv-v { color: #1b1b1f; flex: 1; word-break: break-all; }

/* 跟进记录卡片 */
.follow-card {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px; margin: 5px 0; font-size: 13px;
}
.fc-date { font-weight: 600; color: var(--gold-dark); }
.fc-by { font-weight: 600; color: #c0584f; }
.fc-line { color: #4a4a52; }
.fc-lv { flex: 0 0 auto; }

/* 删除按钮：小号 · 深色文字 · 无底色 */
.btn-del {
  background: none; border: none; color: #1f1f23; box-shadow: none;
  font-weight: 500; width: auto; padding: 2px 6px;
}
.btn-del:hover { background: var(--primary-soft); color: #000; }
.btn.tiny { width: auto; padding: 2px 8px; font-size: 12px; margin-left: auto; line-height: 1.5; }
.del-row { display: flex; justify-content: flex-end; margin-top: 6px; }
.visits { margin: 6px 0; }
.visits-title { font-size: 12px; color: var(--muted); margin: 4px 0 2px; }
.visit-card {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 12px; margin: 4px 0; font-size: 13px;
}
.visit-card .vc-time { font-weight: 600; color: var(--gold-dark); }
.visit-card .vc-by { font-size: 12px; color: var(--muted); }
.visit-card .vc-note { color: #4a4a52; flex: 1; min-width: 60%; }

/* 多选 checkbox 网格（意向产品等） */
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px 10px; margin-top: 4px; }
.ck-grid label.ck { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #2a2a30; cursor: pointer; background: var(--card-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; }
.ck-grid label.ck input { margin: 0; }

/* 客资状态徽标（成交/待成交/丢单三态） */
.tag.deal-tag { background: #e6f4ea; color: #1a7e3f; border: 1px solid #b8e0c5; }
.tag.pending-tag { background: #fff5e6; color: #b07300; border: 1px solid #f5dca0; }

/* 渠道卡片操作区（更新基础信息 / 更新跟进进度 双按钮） */
.lm-actions { display: flex; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }

/* 看板 */
.overview { display: flex; gap: 14px; margin-bottom: 16px; }
.ov { flex: 1; background: linear-gradient(135deg, #ffffff, #f7f7f9); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.ov b { display: block; font-size: 24px; color: #1b1b1f; }
.ov span { font-size: 12px; color: var(--muted); }
.board-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.board-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bcol { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: #f4f4f6; overflow: hidden; box-shadow: var(--shadow); }
.bcol-h { background: linear-gradient(135deg, #2a2a2e, #1a1a1d); color: #fff; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.bzone { padding: 10px 14px; border-bottom: 1px dashed var(--line); }
.bzone:last-child { border-bottom: none; }
.bzone-t { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #3a3a42; }
.bz-item { font-size: 13px; padding: 3px 0; border-bottom: 1px solid #ececef; }
.bz-item.ok { color: var(--ok); }
.bz-item.warn { color: var(--warn); }

/* 模块内嵌看板（设计师/老用户/异业三工顶部） */
.board-mini { background: linear-gradient(135deg, #ffffff, #fafafa); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.board-mini h3 { margin: 0 0 12px; }

/* 线索管理：复选 + 筛选 */
.form-grid label.ck { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.form-grid label.ck input { width: auto; margin: 0; accent-color: #1f1f23; }
.lm-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.lm-filters select, .lm-filters input { width: auto; min-width: 120px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: #ffffff; color: var(--text); }

/* ============ 顶栏 + 抽屉开关 ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 54px; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20,20,30,.07); box-shadow: 0 1px 10px rgba(20,20,30,.05);
}
.topbar-t { font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: .5px; }
.nav-toggle {
  display: none; /* 桌面隐藏，移动端显示 */
  width: 38px; height: 38px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; border-radius: 9px;
}
.nav-toggle:hover { background: #f1f1f4; }
.nav-toggle span { display: block; height: 2px; width: 20px; background: var(--text); border-radius: 2px; }
.topbar-spacer { flex: 1 1 auto; }
.topbar .help-btn { margin-left: 0; }
.help-btn {
  width: auto; padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #ecd9b0, #d6bd86);
  border: none; border-radius: 20px; box-shadow: 0 3px 10px rgba(205,179,137,.28); transition: .15s;
}
.help-btn.help-btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 16px; }
.help-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* 顶栏帮助按钮：桌面 / 移动端均显示 */
#help-btn { display: inline-flex; align-items: center; }

/* 遮罩层 */
.side-mask {
  position: fixed; inset: 0; background: rgba(20,20,30,.35);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; z-index: 24;
}
.side-mask.show { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ============ 启动 / 页面加载 ============ */
.boot-loading {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: var(--bg-grad); z-index: 60;
}
.page-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 340px; color: var(--muted);
}
.boot-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--primary-soft); border-top-color: var(--gold);
  animation: boot-spin .9s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
.boot-text { font-size: 14px; color: var(--muted); letter-spacing: .5px; }

/* ============ 问题帮助弹窗（Glassmorphism） ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(236,236,239,.5);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 16px; animation: fade-in .15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%; max-width: 460px; max-height: 82vh; overflow-y: auto;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  box-shadow: 0 10px 50px rgba(30,30,50,.18), inset 0 1px 0 rgba(255,255,255,.85);
  animation: pop-in .18s ease;
}
/* 淡淡白色噪点纹理叠加 */
.modal::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: .05; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@keyframes pop-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-h {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px;
  border-bottom: 1px solid rgba(20,20,30,.06); position: sticky; top: 0;
  background: rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1;
}
.help-ava {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #ecd9b0, #d6bd86); color: #1a1a1d;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.modal-h b { font-size: 15px; }
.modal-x {
  margin-left: auto; width: 30px; height: 30px; border: none; background: #ededf0; border-radius: 8px;
  font-size: 18px; line-height: 1; cursor: pointer; color: #6a6a72;
}
.modal-x:hover { background: #e2e2e7; color: #1b1b1f; }
.help-bubble { margin: 14px 18px 6px; padding: 12px 14px; border-radius: 12px; background: rgba(205,179,137,.12); color: #7d6533; font-size: 14px; line-height: 1.6; }
.help-faq { padding: 8px 18px 4px; }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); }
.faq-arrow { color: var(--muted); transition: transform .2s; }
.faq-i.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: #6a6a72; font-size: 13px; line-height: 1.7; }
.faq-i.open .faq-a { max-height: 240px; padding: 0 2px 14px; }
.help-foot { padding: 10px 18px 18px; font-size: 12px; }

/* ============ 注册 / 补录 表单字段 ============ */
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fld > span i { color: var(--danger); font-style: normal; margin-left: 2px; }
.fld select, .fld input { margin-bottom: 0; }
.tip { font-size: 12px; line-height: 1.6; margin: 4px 0 0; color: var(--muted); }

/* 补录 / 无权限 提示卡 */
.warn-card { border-color: rgba(201,138,46,.4); background: linear-gradient(135deg, rgba(201,138,46,.10), rgba(201,138,46,.05)); }
.warn-card h2 { color: var(--warn); }
.claim-box { margin-top: 14px; padding: 14px 16px; border: 1px dashed rgba(201,138,46,.45); border-radius: 12px; background: rgba(201,138,46,.06); }
.claim-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.claim-row input { margin-bottom: 0; flex: 1; }

/* ============ 数据看板 ============ */
.scope-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.scope-range { font-size: 13px; color: var(--muted); }
.scope-range b { color: var(--text); }
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi-grid .stat { padding: 14px 10px; }
.stat.sm { padding: 12px 8px; }
.stat.sm b { font-size: 18px; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 6px; }
.tbl-scroll .tbl { min-width: 560px; }

/* 权限分配控件 */
.rp-set { display: flex; gap: 6px; align-items: center; }
.rp-sel { flex: 1; min-width: 120px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #ffffff; color: var(--text); }
.rp-save { margin: 0; }
.rp-reset { margin: 0; }
.rp-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rp-search { width: 240px; max-width: 60%; margin-bottom: 0; padding: 8px 12px; font-size: 13px; }
.rp-count { white-space: nowrap; }

/* 看板筛选栏 */
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(31,31,35,.05); border: 1px solid rgba(31,31,35,.10); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 16px;
}
.filter-bar label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.filter-bar select {
  width: auto; min-width: 130px; margin: 0; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: #ffffff; color: var(--text);
}
.filter-bar .btn.ghost { margin-top: 0; }

/* 环比卡片 */
.mom-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 16px; }
.mom-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
}
.mom-card span { font-size: 12px; color: var(--muted); }
.mom-card b { font-size: 20px; color: var(--text); font-weight: 700; }
.mom-card i.mom { font-style: normal; font-size: 12px; font-weight: 600; }
.mom-card i.mom.up { color: var(--ok); }
.mom-card i.mom.down { color: var(--danger); }

/* 横向条形图（区域 / 商户 占比 + 成交） */
.barchart { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 4px; }
.bar-i { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px 12px; align-items: center; }
.bar-label { font-size: 13px; color: #3a3a42; font-weight: 500; }
.bar-track { background: #e6e6ea; border-radius: 8px; height: 24px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2a2a2e, #5a5a62); transition: width .3s ease; min-width: 3px; }
.bar-val { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }

/* 排名列表（商户 / 小组 TOP3 / 后3名） */
.rank-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.rank-i { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; }
.rank-no { flex: 0 0 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.rank-no.rank-top { background: linear-gradient(135deg, #ecd9b0, #d6bd86); color: #1a1a1d; }
.rank-no.rank-bot { background: linear-gradient(135deg, #9aa3b2, #6b7280); }
.rank-name { flex: 1; font-size: 14px; color: #3a3a42; }
.rank-val { font-size: 15px; font-weight: 700; color: #1b1b1f; }
.rank-i .muted { font-size: 12px; }

/* 各模块明细 */
.mod-detail { margin: 14px 0; }
.mod-detail h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #3a3a42; }
.mod-go { font-size: 12px; font-weight: 500; color: var(--gold-dark); margin-left: 8px; text-decoration: none; }
.mod-go:hover { text-decoration: underline; }

/* 看板模块快速跳转小菜单 */
.mod-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 18px; padding: 10px 12px; background: #f6f6f8; border: 1px solid var(--line); border-radius: 10px; }
.mod-jump-lab { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mod-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 13px; color: var(--gold-dark); background: #fff; border: 1px solid rgba(205,179,137,.4); border-radius: 999px; text-decoration: none; transition: all .15s; }
.mod-chip:hover { background: rgba(205,179,137,.10); border-color: var(--gold); }
.mod-chip-cnt { font-size: 11px; color: #1a1a1d; background: linear-gradient(135deg, #ecd9b0, #d6bd86); border-radius: 999px; padding: 1px 7px; min-width: 16px; text-align: center; }

/* 重置密码按钮（警告样式） */
.btn.tiny.warn { color: var(--warn); background: rgba(201,138,46,.12); border: 1px solid rgba(201,138,46,.4); margin-left: 0; }
.btn.tiny.warn:hover { background: rgba(201,138,46,.2); }

/* 我的小组 面板（左下角常驻，仅在已进入小组时显示） */
.mygroups { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.mg-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.mg-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; max-height: 220px; overflow-y: auto; }
.mg-item { background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; transition: all .15s; }
.mg-item:hover { border-color: #b9b9c0; background: #f4f4f6; }
.mg-item.active { border-color: var(--gold); background: rgba(205,179,137,.10); }
.mg-item b { display: block; font-size: 13px; color: var(--text); }
.mg-item .muted { font-size: 11px; color: var(--muted); }
.mine-item { cursor: pointer; }
.mine-item:hover { border-color: #b9b9c0; }

/* ============ 防克隆：登录页授权告知 ============ */
.wm-note {
  max-width: 760px; margin: 18px auto 0; padding: 10px 14px;
  text-align: center; font-size: 12.5px; line-height: 1.6;
  color: var(--warn); background: rgba(201,138,46,.10); border: 1px solid rgba(201,138,46,.35);
  border-radius: 10px;
}

/* 数据看板 · 模块明细汇总条 */
.scope-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.scope-summary span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: #6a6a70; }
.scope-summary b { color: #1f1f23; margin-left: 5px; font-size: 15px; }
.mod-anchor { cursor: pointer; }
.mod-anchor:hover { background: rgba(205,179,137,.10); border-color: var(--gold); }

/* ============ 响应式：≤1024px 抽屉模式 ============ */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .mom-row { grid-template-columns: repeat(2, 1fr); }
  .scope-hd, .filter-bar, .mod-jump { gap: 8px; }
  .task-edit { gap: 6px; }
  .task-edit input, .task-edit select, .task-edit button { flex: 1 1 140px; }
  .main { padding: 24px 20px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .topbar-t { font-size: 15px; }
  .side {
    position: fixed; top: 54px; left: 0; bottom: 0; width: 82%; max-width: 300px;
    transform: translateX(-100%); transition: transform .24s ease; z-index: 25;
    box-shadow: 0 10px 40px rgba(20,20,30,.18);
  }
  .side.open { transform: translateX(0); }
  .main { margin-left: 0; margin-top: 54px; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); max-width: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .stat.sm { grid-column: span 1; }
  .mom-row { grid-template-columns: repeat(2, 1fr); }
  .bar-i { grid-template-columns: 84px 1fr auto; }
  .login-cards, .form-grid { grid-template-columns: 1fr; }
  .stat-row, .overview { flex-direction: column; }
  .help-btn { padding: 5px 11px; font-size: 12px; }
  .help-btn-sm { padding: 4px 10px; font-size: 11px; }
  .cust-row { padding: 12px 12px; }
  .scope-hd .btn, .filter-bar .btn { width: 100%; }
  .filter-bar select { width: 100%; flex: 1 1 100%; }
  .topbar { gap: 8px; padding: 0 10px; }
  .mod-jump, .mod-chip { font-size: 12px; }
  .card { padding: 18px 16px; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* ---------------- 楼盘地图看板（高德） ---------------- */
.map-legend { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.map-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); }
.map-legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.25); }
.map-legend .dot-store { background: #1f1f23; }
.map-legend .dot-prop { background: #2f6bff; }
.pm-map { width: 100%; height: 520px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: #f4f4f6; }
.pm-fit-btn { margin-left: auto; padding: 5px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; }
.pm-fit-btn:hover { border-color: var(--brand, #2f6bff); color: var(--brand, #2f6bff); }
.map-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.3); }
.map-dot.dot-store { background: #1f1f23; }
.map-dot.dot-prop { background: #2f6bff; }
.iw { font-size: 13px; min-width: 200px; }
.iw-h { font-weight: 700; font-size: 13px; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid #eee; }
.iw-h.iw-store { color: #1f1f23; }
.iw-h.iw-prop { color: #2f6bff; }
.iw-r { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.iw-k { color: #888; }
.iw-v { color: #1f1f23; font-weight: 600; text-align: right; }

/* ================= 门店看板 / 渠道管理 样式 ================= */
.store-page section { scroll-margin-top: 62px; }
.sb-nav {
  position: sticky; top: 62px; z-index: 6; display: flex; gap: 6px; flex-wrap: wrap;
  background: #ffffff; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: var(--shadow); margin: -2px 0 16px;
}
.sb-a { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sb-a:hover { background: #f1f1f4; color: var(--text); }
.sb-a.active { background: linear-gradient(135deg, #2a2a2e, #1a1a1d); color: #fff; }
.seg { display: inline-flex; gap: 4px; background: #f0f0f3; padding: 3px; border-radius: 10px; flex-wrap: wrap; }
.seg-b { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; font-weight: 600; }
.seg-b.on { background: #ffffff; color: var(--text); box-shadow: 0 1px 4px rgba(20,20,30,.10); }
.panel-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-hd h3, .panel-hd h4 { margin: 0; }
.panel-hd-split { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel-hd-split h3 { margin: 0; }
.stat .stat-extra { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 400; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 2px; }
.ov-cell { background: var(--card-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ov-k { font-size: 12px; color: var(--muted); }
.ov-v { font-size: 14px; font-weight: 700; color: var(--text); word-break: break-all; line-height: 1.5; }
.ov-s { font-size: 11px; color: var(--muted); }
.chip-mem { background: rgba(205,179,137,.16); color: var(--gold-dark); font-weight: 600; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.goal-card h4 { margin: 0 0 8px; font-size: 14px; color: #3a3a42; }
.goal-line { margin-bottom: 12px; font-size: 13px; color: #3a3a42; }
.goal-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.goal-meta b { color: var(--text); }
.yoy-hd { color: var(--muted); }
.prog { position: relative; height: 18px; background: #efeff2; border-radius: 10px; overflow: hidden; margin-top: 4px; }
.prog-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, #2b2b30, #1a1a1d); transition: width .3s ease; }
.prog-fill.done { background: linear-gradient(90deg, #d3ad67, #b8913f); }
.prog-t { position: absolute; right: 8px; top: 0; line-height: 18px; font-size: 11px; font-weight: 700; color: #1b1b1f; }
.prog-empty { font-size: 12px; }
.yoy { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.yoy.up { color: #c0392b; background: #fdecea; }
.yoy.down { color: #1f7a4d; background: #e7f4ec; }
.yoy.flat { color: #8b8b93; background: #f0f0f3; }
.lost-tag { background: #fbe4e2 !important; color: #c0392b !important; border: 1px solid #f3c2bf; font-weight: 700; }
.lost-row-bg { background: #fffafa; }
.lost-kv .kv-k { color: #c0392b; }
.lost-list { display: flex; flex-direction: column; gap: 8px; }
.lost-row { background: #fff8f7; border: 1px solid #f3d9d6; border-radius: 10px; padding: 8px 12px; }
.lost-row .tag { margin-right: 8px; }
.rev-form { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.rev-form label { font-size: 13px; color: #3a3a42; padding-top: 9px; font-weight: 600; }
.rev-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; resize: vertical; margin-bottom: 0; }
.rev-day { margin-bottom: 14px; }
.rev-day-t { font-size: 13px; font-weight: 700; color: #3a3a42; border-left: 3px solid var(--gold); padding-left: 8px; margin-bottom: 6px; }
.rev-card { border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 12px; margin: 6px 0; background: var(--card-2); }
.rev-card .tag { margin-right: 8px; }
.rev-cnt { margin-top: 4px; font-size: 13px; color: #3a3a42; white-space: pre-wrap; }
.goal-form h4.full { grid-column: 1 / -1; margin: 6px 0 0; }
.goal-form label { display: flex; flex-direction: column; font-size: 13px; color: #3a3a42; }
.modal-f { margin-top: 14px; text-align: right; }
.modal-f .btn { width: auto; padding: 9px 22px; }
#sb-main h4 { margin: 14px 0 6px; font-size: 14px; color: #3a3a42; }
.tbl-scroll { overflow-x: auto; }
@media (max-width: 900px) { .goal-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .rev-form { grid-template-columns: 1fr; } .sb-nav { top: 54px; } }

/* ================= 导航：一级项目标签 + 小字功能说明 ================= */
.navitem {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; line-height: 1.4;
}
.nav-ico { flex: 0 0 auto; font-size: 15px; line-height: 1; }
.nav-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.nav-label { font-weight: 500; line-height: 1.25; }
.nav-sub-tip {
  display: block; font-size: 11px; line-height: 1.3; margin-top: 2px;
  color: var(--muted); opacity: .9; font-weight: 400;
}
.navitem.active .nav-label { color: #fff; font-weight: 600; }
.navitem.active .nav-sub-tip { color: rgba(255,255,255,.72); }
.navitem.nav-sub { padding: 8px 14px; }
.navitem.nav-sub .nav-ico { font-size: 13px; }

/* ================= 页面卡片 / 板块（数据看板 + 各业务页，统一轻奢卡片式） ================= */
.page-card { padding: 24px 26px; }
.card .page-title {
  position: relative; margin: 0 0 6px; padding-left: 14px;
  font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: .5px;
}
.page-title::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, #ecd9b0, #c9ab74);
}
/* 页面级小字提示（香槟金左边线 + 浅底） */
.page-hint {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  margin: 0 0 18px; padding: 10px 14px;
  background: var(--primary-soft); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
/* 板块卡片：每个业务区块独立卡片，标题突出 + 小字说明 */
.sec {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.sec:last-child { margin-bottom: 0; }
.sec:hover { box-shadow: var(--shadow-hover); border-color: #d8d8de; }
.sec-h {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin: 0 0 12px; padding: 8px 12px 8px 14px;
  font-size: 16px; font-weight: 700; color: #2a2a2e;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(205,179,137,.10), transparent 80%);
  border-radius: 0 8px 8px 0;
}
.sec-sub { font-size: 12px; font-weight: 500; color: var(--muted); }

/* 排名表（门店 / 人员） */
.rank-tbl { font-size: 13.5px; }
.rank-tbl th { white-space: nowrap; }
.rank-tbl th:first-child, .rank-tbl td:first-child { width: 44px; text-align: center; }
.rank-tbl .num {
  text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--text); white-space: nowrap;
}
/* 覆盖 .rank-no 在"列表"组件中的圆形样式，使其在表格单元格内正常显示为序号 */
table.rank-tbl td.rank-no {
  display: table-cell; flex: none; width: 44px; height: auto;
  border-radius: 0; background: none; color: var(--text); font-weight: 700;
}
/* 我的门店行高亮 */
.rank-tbl tr.me-row { background: rgba(205,179,137,.14); }
.rank-tbl tr.me-row:hover { background: rgba(205,179,137,.20); }
.me-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  font-size: 11px; font-weight: 700; color: #5a4a26;
  background: linear-gradient(135deg, #ecd9b0, #c9ab74);
  border-radius: 999px; vertical-align: middle;
}
/* 小字静默说明（用于门店行下方区域/商户、人员行下方角色） */
.muted.sm { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; line-height: 1.4; }

/* 业务页登记/列表 小字提示标题（如"登记未成交意向客资"） */
.zone-tip {
  display: block; font-size: 12.5px; color: var(--muted); line-height: 1.55;
  margin: 2px 0 12px;
}
.zone-tip.ok { color: var(--gold-dark); }
.zone-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; padding: 8px 12px 8px 14px; font-size: 16px; font-weight: 700; color: #2a2a2e; border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(205,179,137,.10), transparent 80%); border-radius: 0 8px 8px 0; }
.zone-h small { font-size: 12px; font-weight: 500; color: var(--muted); }

/* 表单区块顶部小字（登记区/列表区提示） */
.form-note { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.form-note.ok { color: var(--gold-dark); }

/* 业务页内：提升卡片内边距与留白 */
.card > .panel:last-child, .page-card > .panel:last-child { margin-bottom: 0; }

/* ============ 更新面板（更新基础信息 / 更新跟进进度） ============ */
.edit-box {
  margin-top: 12px; padding: 18px 18px 14px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 12px rgba(20,20,30,.06);
}
.edit-box-h {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 8px 12px 8px 14px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(205,179,137,.10), transparent 80%);
  border-radius: 0 8px 8px 0;
}
.edit-box-h b { font-size: 15px; font-weight: 700; color: #2a2a2e; }
.edit-box-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
/* form-grid + edit-box 联动：标签与输入框更紧凑 */
.edit-box.form-grid { gap: 10px 16px; }
.edit-box.form-grid label { font-size: 12.5px; gap: 5px; }
.edit-box.form-grid input,
.edit-box.form-grid select,
.edit-box.form-grid textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.edit-box.form-grid input:focus,
.edit-box.form-grid select:focus,
.edit-box.form-grid textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(205,179,137,.18); outline: none;
}
.edit-box.form-grid textarea { resize: vertical; min-height: 60px; }
/* 保存按钮：全宽醒目 */
.edit-box .btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; padding: 10px; font-size: 14px; font-weight: 600; }
/* 意向产品多选网格在面板内更紧凑 */
.edit-box .ck-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 10px; }
.edit-box .ck-grid label.ck { padding: 6px 10px; font-size: 12.5px; }
/* 独立输入框（非 label 内）也撑满 */
.edit-box > input { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .page-card { padding: 18px 16px; }
  .page-title { font-size: 19px; }
  .sec { padding: 14px 14px; }
  .edit-box { padding: 14px 14px 12px; }
  .edit-box .ck-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ============ 多流量客资：权限列表 + 反馈标签 ============ */
.perm-list { display: flex; flex-direction: column; gap: 8px; }
.perm-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--bg-soft); border-radius: 8px;
}
.perm-name { font-weight: 600; font-size: 14px; }
.tag-ok { background: #e6f7ee; color: #2a8a4a; }
.tag-warn { background: #fef3e6; color: #b8742a; }
.tag.sm { font-size: 11px; padding: 1px 6px; }
.perm-row .ck { font-size: 13px; color: var(--text); }
