﻿/* 泸遇到家 · 技师管理后台（移动端） */

:root {
  --ink: #15181d;
  --ink-2: #333a44;
  --muted: #5d646f;
  --faint: #8b929c;
  --line: #e6e8ec;
  --line-2: #f1f3f6;
  --ground: #f3f4f6;
  --surface: #ffffff;
  --raised: #f8f9fb;
  --accent: #1c5fd6;
  --accent-tint: #eaf1fd;
  --green: #12734a;
  --green-tint: #e7f2ec;
  --red: #b42318;
  --red-tint: #fbecea;
  --amber: #8a5a00;
  --amber-tint: #fdf3e2;
  --blue-tint: #eaeffb;
  --blue-ink: #1a4bb0;
  --radius: 12px;
  --radius-s: 8px;
  --shadow-sheet: 0 -8px 32px rgba(16, 20, 28, 0.16);
  --tabbar-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: #e4e6ea;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--ground);
  overflow: hidden;
}

@media (min-width: 560px) {
  body { padding: 0; }
  .phone {
    height: 100dvh;
    border-left: 1px solid #d4d7dd;
    border-right: 1px solid #d4d7dd;
  }
}

.app {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 18px;
}
.app::-webkit-scrollbar { display: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar.on-surface { background: var(--surface); border-bottom: 1px solid var(--line); }

.topbar h1 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.topbar .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.topbar .grow { flex: 1; min-width: 0; }

.iconbtn {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  cursor: pointer;
}
.iconbtn:active { background: #e7e9ed; }
.iconbtn svg { width: 21px; height: 21px; }
.iconbtn.back svg { width: 22px; height: 22px; }

/* ---------- 通用块 ---------- */
.page { padding: 2px 16px 12px; }
.page.has-actions { padding-bottom: 78px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section { display: flex; align-items: baseline; gap: 8px; margin: 20px 2px 8px; }
.section h2 { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.section .meta { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 概览 ---------- */
.seg {
  display: flex;
  background: #e7e9ee;
  border-radius: 10px;
  padding: 3px;
  margin: 4px 0 2px;
}
.seg button {
  flex: 1;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
}
.seg button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 20, 28, 0.08);
}

.kpi {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kpi > div { padding: 13px 12px 14px; border-right: 1px solid var(--line-2); min-width: 0; }
.kpi > div:last-child { border-right: 0; }
.kpi .k { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.kpi .v {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
  white-space: nowrap;
}
.kpi .v small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi .v.lead { font-size: 25px; }

.kpi-foot {
  display: flex;
  gap: 16px;
  padding: 9px 12px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.kpi-foot b { color: var(--ink-2); font-weight: 600; }
.kpi-foot .neg b { color: var(--red); }

.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row:active { background: #f6f7f9; }
.row .label { flex: 1; min-width: 0; }
.row .label small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--faint); margin-top: 1px; line-height: 1.45; }
.row .count { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row .count.zero { color: var(--faint); font-weight: 500; }
.row .chev { color: #c2c7cf; flex: none; display: inline-flex; }
.row .chev svg { width: 18px; height: 18px; }
.row .kv { margin-left: auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row .kv small { font-size: 12px; color: var(--faint); font-weight: 400; margin-left: 4px; }

.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 8px; }
.chart-head { display: flex; align-items: baseline; margin-bottom: 10px; }
.chart-head .t { font-size: 13px; color: var(--muted); }
.chart-head .v { margin-left: auto; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; padding-top: 4px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 3px; }
.bars .bar i { display: block; background: #d7dce4; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .bar.hi i { background: var(--accent); }
.bars .bar span.d { font-size: 9.5px; color: var(--faint); text-align: center; white-space: nowrap; }
.bars-x { display: flex; gap: 5px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; font-size: 9.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 列表 / 卡片行 ---------- */
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 16px 10px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0;
  background: #e5e8ee;
  color: #3b424c;
  font: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 500; }
.chip em { font-style: normal; font-size: 11px; opacity: 0.65; }
.chip[aria-pressed="true"] em { opacity: 0.8; }

.list { display: flex; flex-direction: column; gap: 9px; }

.ocard {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.ocard:active { background: #fafbfc; }
.ocard .l1 { display: flex; align-items: center; gap: 8px; }
.ocard .svc { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard .dur { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pill {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.pill.wait { background: var(--blue-tint); color: var(--blue-ink); }
.pill.progress { background: var(--amber-tint); color: var(--amber); }
.pill.done { background: var(--green-tint); color: var(--green); }
.pill.cancel { background: var(--red-tint); color: var(--red); }
.pill.mute { background: #eceef2; color: #4b5361; }
.pill.accent { background: var(--accent-tint); color: var(--accent); }

.ocard .l2 { display: flex; gap: 12px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.ocard .l2 b { color: var(--ink-2); font-weight: 500; }
.ocard .l3 { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.ocard .money { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ocard .money small { font-size: 11px; color: var(--faint); font-weight: 400; margin-left: 5px; letter-spacing: 0; }
.ocard .acts { margin-left: auto; display: flex; gap: 6px; }

.btn {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { background: #f2f4f7; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.btn.primary:active { background: #000; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.danger { color: var(--red); }
.btn[disabled] { opacity: 0.45; }
.btn svg { width: 15px; height: 15px; }

.empty {
  padding: 36px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty .t { font-size: 14px; color: var(--ink-2); }
.empty .d { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

.loadmore {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.loadmore:active { background: #f2f4f7; }

/* ---------- 详情 ---------- */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.summary .top { display: flex; align-items: center; gap: 8px; }
.summary .amt { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.15; }
.summary .amt small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.summary .no { font-size: 12px; color: var(--faint); margin-top: 6px; font-variant-numeric: tabular-nums; word-break: break-all; }

.kvlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 14px; }
.kvlist .kvrow { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kvlist .kvrow:last-child { border-bottom: 0; }
.kvlist dt { width: 62px; flex: none; color: var(--muted); }
.kvlist dd { flex: 1; min-width: 0; color: var(--ink); word-break: break-word; }
.kvlist dd .s { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.kvlist dd .big { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kvlist dd .neg { color: var(--red); }

.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tl-item { position: relative; padding-left: 20px; padding-bottom: 14px; font-size: 13px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: #cfd4dc;
}
.tl-item.on::before { background: var(--ink); }
.tl-item::after {
  content: ""; position: absolute; left: 3px; top: 14px; bottom: 0; width: 1px; background: var(--line);
}
.tl-item:last-child::after { display: none; }
.tl-item .t { color: var(--ink-2); }
.tl-item .d { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.bottom-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 9px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: 10px;
}
.bottom-actions .btn { flex: 1; height: 42px; font-size: 14px; }

/* ---------- 人员卡 ---------- */
.pcard {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.pcard:active { background: #fafbfc; }
.pcard .top { display: flex; gap: 11px; align-items: center; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background: #e7eaef;
  color: #5f6672;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}
.avatar .ini { position: relative; z-index: 1; }
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.avatar img.ok { opacity: 1; }
.avatar.thumb { border-radius: 10px; }
.avatar.thumb .ini { font-size: 18px; }
.pcard .who { flex: 1; min-width: 0; }
.pcard .name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pcard .name small { font-size: 11px; font-weight: 400; color: var(--faint); }
.pcard .sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .stats { display: flex; gap: 14px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.pcard .stats div { font-size: 11.5px; color: var(--faint); }
.pcard .stats b { display: block; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.tags { display: flex; flex-wrap: nowrap; gap: 5px; margin-top: 8px; overflow: hidden; }
.tag { font-size: 11px; color: var(--muted); background: var(--raised); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }

/* ---------- 更多 / 我的 ---------- */
.menu-group { margin-bottom: 14px; }
.menu-group .gt { font-size: 12px; color: var(--faint); margin: 0 2px 6px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line-2);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.menu-item:first-of-type { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.menu-item:last-of-type { border-bottom: 0; border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.menu-item:active { background: #f6f7f9; }
.menu-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.menu-item .badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--raised);
  border-radius: 999px;
  padding: 1px 8px;
  font-variant-numeric: tabular-nums;
}
.menu-item .soon { margin-left: auto; font-size: 11px; color: var(--faint); }
.menu-item .chev { color: #c2c7cf; display: inline-flex; }
.menu-item .chev svg { width: 17px; height: 17px; }
.menu-item .soon + .chev { margin-left: 6px; }

.profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; }
.profile .top { display: flex; gap: 12px; align-items: center; }
.profile .name { font-size: 17px; font-weight: 650; }
.profile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.profile .org { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; }
.profile .org div { flex: 1; font-size: 11.5px; color: var(--faint); }
.profile .org b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; margin-top: 2px; }

.note {
  margin: 18px 2px 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.7;
}
.note b { color: var(--muted); font-weight: 500; }

/* ---------- 底部导航 ---------- */
.tabbar {
  flex: none;
  display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabbar button {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: inherit;
  font-size: 10.5px;
  color: #8b929c;
  cursor: pointer;
  padding: 0;
}
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button[aria-current="page"] { color: var(--accent); font-weight: 500; }
.tabbar button .dot { position: absolute; }

/* ---------- 筛选面板 ---------- */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 28, 0.34);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.scrim.show { opacity: 1; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 86%;
  display: flex;
  flex-direction: column;
}
.sheet.show { transform: translateY(0); }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #d8dce3; margin: 8px auto 0; flex: none; }
.sheet .head { display: flex; align-items: center; padding: 10px 16px 6px; flex: none; }
.sheet .head h3 { font-size: 15px; font-weight: 650; }
.sheet .head .close { margin-left: auto; }
.sheet .body { padding: 4px 16px 8px; overflow-y: auto; }
.sheet .group { margin: 12px 0 2px; font-size: 12px; color: var(--faint); }
.sheet .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sheet .opt {
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.sheet .opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.sheet .foot { display: flex; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; }
.sheet .foot .btn { flex: 1; height: 44px; font-size: 14px; }

/* ---------- 提示 ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  background: rgba(21, 24, 29, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 14px;
  border-radius: 10px;
  max-width: 86%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.no-tabs .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ---------- 搜索 ---------- */
.searchbar { display: flex; gap: 8px; padding: 0 0 8px; }
.searchbar[hidden] { display: none; }
.searchbar input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.searchbar input::placeholder { color: var(--faint); }
.searchbar input:focus { border-color: #b9c0cb; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- 骨架屏 ---------- */
.sk { background: linear-gradient(90deg, #eceef2 25%, #f3f4f7 37%, #eceef2 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 9px; }
.sk-card .a { height: 15px; width: 46%; }
.sk-card .b { height: 12px; width: 72%; margin-top: 10px; }
.sk-card .c { height: 12px; width: 34%; margin-top: 8px; }

/* ---------- 已选筛选 ---------- */
.applied { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.applied .tag-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 12px; color: var(--ink-2);
}
.applied .tag-btn svg { width: 12px; height: 12px; opacity: .55; }

/* ---------- 表格化的键值块（详情用） ---------- */
.section-title { display: flex; align-items: baseline; gap: 8px; margin: 20px 2px 8px; }
.section-title h2 { font-size: 14px; font-weight: 650; }
.section-title .meta { margin-left: auto; font-size: 12px; color: var(--faint); }

/* ---------- 树 ---------- */
.tree-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 14px; text-align: left; color: var(--ink); }
.tree-row:last-child { border-bottom: 0; }
.tree-row.child { padding-left: 30px; background: #fcfcfd; font-size: 13.5px; }
.tree-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row .type { font-size: 11px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }
.tree-row .st { font-size: 11px; color: var(--muted); }

/* ---------- 进度条 ---------- */
.progress { height: 6px; border-radius: 3px; background: #eceef2; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }

/* ---------- 统计条 ---------- */
.stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats-3 > div { padding: 12px 10px; border-right: 1px solid var(--line-2); }
.stats-3 > div:last-child { border-right: 0; }
.stats-3 .k { font-size: 11.5px; color: var(--muted); }
.stats-3 .v { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -0.02em; }

/* ---------- 表单 ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.form-field .req { color: var(--red); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink);
  outline: none; appearance: none;
}
.form-field textarea { height: 88px; padding: 10px 12px; resize: none; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #b9c0cb; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b929c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.form-field .hint { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.form-field .err { font-size: 11.5px; color: var(--red); margin-top: 5px; display: none; }
.form-field.bad input, .form-field.bad select, .form-field.bad textarea { border-color: #e3a6a0; background: #fffafa; }
.form-field.bad .err { display: block; }
.form-group-title { font-size: 12px; color: var(--faint); margin: 18px 2px 10px; }

/* ---------- 审核动作 ---------- */
.review-actions { display: flex; gap: 9px; }
.review-actions .btn { flex: 1; height: 42px; font-size: 14px; }

/* ---------- 详情摘要（通用） ---------- */
.dsum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.dsum .t { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.dsum .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dsum .row2 { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* =========================================================
   平板 & 桌面（同一套 DOM，换外壳与排版）
   ========================================================= */
@media (min-width: 700px) {
  .phone { max-width: 720px; }
}

body.wide { background: #eceef1; }
body.wide .phone {
  max-width: 1680px;
  border-left: 0;
  border-right: 0;
  background: var(--ground);
}
body.wide .app { overflow: hidden; padding-bottom: 0; }

.desk {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100%;
  background: var(--ground);
}

/* ---- 侧栏 ---- */
.dnav {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  min-height: 0;
}
.dbrand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; }
.dmark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.dname { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.dsub { font-size: 11px; color: var(--faint); margin-top: 1px; }
.dmode { padding: 0 12px 10px; }
.dmode select {
  width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  background: #fafbfc; font: inherit; font-size: 13px; color: var(--ink); padding: 0 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b929c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.dhint { font-size: 11px; color: var(--faint); margin-top: 6px; line-height: 1.5; }
.dnavscroll { flex: 1; overflow-y: auto; padding: 4px 10px 10px; scrollbar-width: thin; }
.dgroup { font-size: 11px; color: var(--faint); margin: 12px 8px 4px; }
.ditem {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px;
  border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 13px;
  color: #3f4650; text-align: left; cursor: pointer;
}
.ditem:hover { background: #f4f5f7; }
.ditem[aria-current="page"] { background: #eef1f5; color: var(--ink); font-weight: 600; }
.dlabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbadge { font-size: 11px; color: var(--muted); background: #eef1f5; border-radius: 999px; padding: 0 6px; line-height: 17px; }
.dfoot { border-top: 1px solid var(--line); padding: 8px 10px 12px; }
.duser { display: flex; align-items: center; gap: 9px; padding: 8px 8px 0; }
.dname2 { font-size: 12.5px; font-weight: 600; }
.dsub2 { font-size: 11px; color: var(--faint); }

/* ---- 主区 ---- */
.dmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dtop {
  flex: none; height: 56px; display: flex; align-items: center; gap: 16px;
  padding: 0 26px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.dcrumb { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dsearch { flex: 1; max-width: 420px; }
.dsearch input {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: #fafbfc; padding: 0 11px; font: inherit; font-size: 12.5px; color: var(--muted);
}
.dtopright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dtag {
  font-size: 11px; color: var(--amber); background: var(--amber-tint);
  border-radius: 4px; padding: 2px 7px;
}
.dcontent { flex: 1; overflow-y: auto; padding: 22px 26px 40px; min-height: 0; }
.dwrap { max-width: 1240px; margin: 0 auto; }
.dhead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.dhead h1 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.dhead .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dhead .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.seg-d { width: auto; margin: 0; padding: 3px; background: #e7e9ee; border-radius: 9px; }
.seg-d button { padding: 0 14px; height: 30px; }

.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.dch { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dch h3 { font-size: 14px; font-weight: 650; }
.dch .meta { margin-left: auto; font-size: 12px; color: var(--faint); }

.dkpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-card .k { font-size: 12px; color: var(--muted); }
.kpi-card .v {
  font-size: 26px; font-weight: 650; letter-spacing: -.03em; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi-card .v small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi-card .s { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

.dgrid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dgrid-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; align-items: start; }

.dtable { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dtable table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th {
  font-size: 11.5px; font-weight: 500; color: var(--muted); text-align: left;
  padding: 9px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dtable td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tr.click { cursor: pointer; }
.dtable tr.click:hover td { background: #fafbfc; }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.dempty { padding: 34px; text-align: center; color: var(--faint); }
.cellsub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

.dchips { display: flex; flex-wrap: wrap; gap: 8px; }
.dchips .chip { height: 30px; font-size: 12.5px; }

.dbars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.dbars i { flex: 1; background: #dfe3e9; border-radius: 3px 3px 0 0; display: block; min-height: 2px; }
.dbars i:hover { background: var(--accent); }
.dbars-x { display: flex; gap: 6px; margin-top: 6px; }
.dbars-x span { flex: 1; text-align: center; font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

.dtodo { display: flex; flex-direction: column; }
.dtodo-row {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 2px;
  border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer;
}
.dtodo-row:last-child { border-bottom: 0; }
.dtodo-row span:first-child { flex: 1; }
.dtodo-row b { font-variant-numeric: tabular-nums; font-size: 15px; }
.dtodo-row b.zero { color: var(--faint); font-weight: 500; }
.dtodo-row .chev { color: #c3c8d0; display: inline-flex; }
.dtodo-row .chev svg { width: 16px; height: 16px; }

.dstat {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.dstat:last-child { border-bottom: 0; }
.dstat span { color: var(--muted); flex: none; }
.dstat b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.drail { position: sticky; top: 0; }
.drail-amt {
  font-size: 30px; font-weight: 650; letter-spacing: -.03em; margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.drail-amt small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.drail-no { font-size: 11.5px; color: var(--faint); margin-top: 6px; word-break: break-all; }
.drail-acts { display: flex; gap: 8px; margin-top: 14px; }
.drail-acts .btn { flex: 1; }

.dtimeline { display: flex; gap: 0; }
.dtl { flex: 1; position: relative; padding-top: 18px; font-size: 12.5px; }
.dtl::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line);
}
.dtl i {
  position: absolute; top: 2px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #cfd4dc;
}
.dtl.on i { background: var(--ink); }
.dtl b { display: block; font-weight: 600; }
.dtl span { color: var(--faint); font-size: 11.5px; }
.dtags { display: flex; flex-wrap: wrap; gap: 6px; }

.dmode-note { margin-bottom: 14px; padding: 10px 14px; border: 1px solid #f0e2c4; background: #fdf8ec; border-radius: 10px; font-size: 12.5px; color: #6b5420; line-height: 1.6; }
.dmode-note b { font-weight: 650; }
.dgroup-t { font-size: 12px; color: var(--faint); margin: 18px 2px 8px; }
.dmodgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dmod {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font: inherit; cursor: pointer;
}
.dmod:hover { border-color: #cfd4dc; background: #fcfcfd; }
.dmod-name { font-size: 13.5px; font-weight: 500; }
.dmod-route { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) {
  .dmodgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dkpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .desk { grid-template-columns: 208px minmax(0, 1fr); }
  .dgrid2, .dgrid-detail { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   2026-12 改版：对齐「象吉到家」后台外观
   深色窄侧栏 + 二级菜单 + 白底内容 + 彩色指标卡
   ========================================================= */
body.wide { background: #f2f3f5; }

.desk2 {
  display: grid;
  grid-template-columns: 104px 146px minmax(0, 1fr);
  height: 100%;
  background: #f2f3f5;
}

/* ---- 深色侧栏 ---- */
.rail {
  display: flex;
  flex-direction: column;
  background: #2b303b;
  color: #c9cfd5;
  min-height: 0;
}
.rail-brand {
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #262b35;
}
.rail-logo {
  width: 34px; height: 34px; border-radius: 6px;
  background: #12a37a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.rail-name { font-size: 10.5px; color: #5f9dfb; letter-spacing: .06em; }
.rail-nav { flex: 1; overflow-y: auto; padding: 4px 0 8px; scrollbar-width: none; }
.rail-nav::-webkit-scrollbar { display: none; }
.rail-item {
  width: 100%; height: 46px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 9px;
  background: transparent; border: 0;
  color: #c9cfd5; font: inherit; font-size: 12.5px;
  text-align: left; cursor: pointer; white-space: nowrap;
}
.rail-item .ri { width: 19px; height: 19px; flex: none; display: inline-flex; }
.rail-item .ri svg { width: 19px; height: 19px; }
.rail-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rail-item[aria-current="page"] { background: #fff; color: #1f2a37; font-weight: 600; }
.rail-foot { padding: 10px 8px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.rail-mode {
  width: 100%; height: 26px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #343a46; color: #c9cfd5;
  font: inherit; font-size: 11px; padding: 0 3px; outline: none;
}

/* ---- 二级菜单 ---- */
.subnav { background: #fff; border-right: 1px solid #e6e8eb; overflow-y: auto; }
.subnav-in { padding: 8px 0 16px; }
.sub-item {
  width: 100%; min-height: 42px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; background: transparent;
  font: inherit; font-size: 13px; color: #606266;
  cursor: pointer; text-align: center; line-height: 1.3;
}
.sub-item:hover { color: #409eff; }
.sub-item[aria-current="page"] { color: #409eff; font-weight: 600; }
.sub-item i {
  font-style: normal; font-size: 10px; line-height: 15px;
  color: #fff; background: #f56c6c; border-radius: 8px; padding: 0 5px;
}

/* ---- 顶栏 ---- */
.dtop {
  height: 54px; flex: none;
  display: flex; align-items: center;
  padding: 0 20px;
  background: #fff; border-bottom: 1px solid #e6e8eb;
}
.dpage { font-size: 17px; font-weight: 600; color: #303133; }
.dtopright { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; color: #606266; }
.dhello { display: flex; align-items: center; gap: 6px; }
.dlink { border: 0; background: transparent; font: inherit; font-size: 13px; color: #606266; cursor: pointer; padding: 0; }
.dlink:hover { color: #409eff; }
.dbell { display: inline-flex; }
.dbell svg { width: 17px; height: 17px; }

/* ---- 内容区 ---- */
.dcontent { background: #f2f3f5; padding: 16px 20px 32px; overflow-y: auto; min-height: 0; }
.dwrap { max-width: 1440px; margin: 0 auto; }
.dhead { margin-bottom: 14px; }
.dhead h1 { font-size: 19px; font-weight: 600; color: #303133; letter-spacing: 0; }
.dhead .sub { font-size: 12.5px; color: #909399; margin-top: 3px; }
.dhead .right { display: flex; gap: 8px; align-items: center; }

.dcard { background: #fff; border: 1px solid #e6e8eb; border-radius: 4px; padding: 14px; }
.dch { margin-bottom: 10px; }
.dch h3 { font-size: 14px; font-weight: 600; color: #303133; }
.dch .meta { color: #909399; font-size: 12px; }

/* 表格 */
.dtable { border: 1px solid #e6e8eb; border-radius: 4px; background: #fff; }
.dtable th {
  background: #fafafa; color: #606266; font-weight: 500; font-size: 13px;
  padding: 11px 14px; border-bottom: 1px solid #ebeef5;
}
.dtable td { font-size: 13px; color: #303133; padding: 12px 14px; border-bottom: 1px solid #ebeef5; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tr.click:hover td { background: #f5f7fa; }
.cellsub { color: #909399; font-size: 12px; }

/* 胶囊 / 按钮 */
.dchips .chip {
  height: 30px; border-radius: 4px; border: 1px solid #dcdfe6;
  background: #fff; color: #606266; font-size: 12.5px; padding: 0 12px;
}
.dchips .chip[aria-pressed="true"] { background: #409eff; border-color: #409eff; color: #fff; }
.desk2 .btn {
  height: 32px; border-radius: 4px; border: 1px solid #dcdfe6;
  background: #fff; color: #606266; font-size: 13px;
}
.desk2 .btn:hover { border-color: #c6e2ff; color: #409eff; background: #ecf5ff; }
.desk2 .btn.primary { background: #409eff; border-color: #409eff; color: #fff; }
.desk2 .btn.primary:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }
.desk2 .loadmore { border-radius: 4px; }

/* 指标卡 */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi-tile {
  position: relative; overflow: hidden;
  border-radius: 4px; padding: 14px 16px 16px;
  color: #fff; min-height: 98px;
}
.kpi-tile .k { font-size: 14px; font-weight: 600; opacity: .96; }
.kpi-tile .v {
  font-size: 26px; font-weight: 700; line-height: 1.15; margin-top: 6px;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.kpi-tile .v small { font-size: 13px; font-weight: 500; opacity: .9; }
.kpi-tile .s { font-size: 12px; opacity: .88; margin-top: 5px; }
.kpi-mark {
  position: absolute; right: -6px; bottom: -14px;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.kpi-tile.k0 { background: linear-gradient(120deg, #2fbfd4, #6fdde9); }
.kpi-tile.k1 { background: linear-gradient(120deg, #f56c6c, #f9a0a0); }
.kpi-tile.k2 { background: linear-gradient(120deg, #e6a23c, #f3c98b); }
.kpi-tile.k3 { background: linear-gradient(120deg, #6f9ef5, #a7c4fa); }
.kpi-tile.k4 { background: linear-gradient(120deg, #3bb0a5, #74ccc4); }

/* 页脚状态 */
.dempty { color: #909399; }
.dstat { border-bottom: 1px solid #f0f2f5; }
.dstat span { color: #909399; }
.dstat b { color: #303133; }
.dtodo-row { border-bottom: 1px solid #f0f2f5; }
.dtodo-row b.zero { color: #c0c4cc; }
.dtodo-row .chev { color: #c0c4cc; }
.dmode-note { border: 1px solid #faecd8; background: #fdf6ec; color: #8a6d3b; border-radius: 4px; }
.rail ~ .dmain .seg-d button, .seg-d { background: #f5f7fa; }
.seg-d button[aria-selected="true"] { background: #fff; color: #409eff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

@media (max-width: 1280px) {
  .desk2 { grid-template-columns: 104px 132px minmax(0, 1fr); }
  .kpi-row { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
}

/* =========================================================
   登录页（参考「象吉到家」左右分栏）
   ========================================================= */
body.login-mode { background: #eef3fb; }
body.login-mode .phone { max-width: none; border: 0; background: transparent; }
body.login-mode .app { overflow: auto; padding: 0; }

.login { display: grid; grid-template-columns: 1.55fr 1fr; min-height: 100dvh; background: #fff; }
.login-left {
  position: relative; overflow: hidden;
  padding: 56px 64px;
  background:
    radial-gradient(1200px 600px at 20% 10%, #eaf2ff 0%, rgba(234,242,255,0) 60%),
    linear-gradient(135deg, #eef4fd 0%, #f7faff 55%, #eef4fd 100%);
}
.login-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #303133; font-weight: 600; }
.login-logo {
  width: 26px; height: 26px; border-radius: 6px; background: #12a37a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.login-name { margin-top: 46px; font-size: 26px; font-weight: 700; color: #1f2a37; letter-spacing: -.01em; }
.login-name span { color: #4a8cf7; }
.login-left h1 {
  margin-top: 10px; font-size: 44px; line-height: 1.18; letter-spacing: -.02em;
  color: #1f2a37; font-weight: 800;
}
.login-left h1 span { color: #1f2a37; }
.login-sub { margin-top: 16px; font-size: 15px; color: #3d4a5c; }
.login-art { position: absolute; left: 6%; bottom: 9%; width: 460px; height: 310px; }
.login-art .glow {
  width: 460px; height: 460px; left: -20px; bottom: -140px;
  background: radial-gradient(closest-side, rgba(120,170,255,.28), rgba(120,170,255,0));
  border-radius: 50%; filter: blur(2px);
}
.login-art span { position: absolute; display: block; border-radius: 50%; }
.login-art .a1 { width: 320px; height: 120px; left: 60px; bottom: 24px; border-radius: 50%; background: radial-gradient(closest-side, #cfe2ff, #eef5ff); box-shadow: 0 24px 60px rgba(74,140,247,.22); }
.login-art .a2 { width: 200px; height: 62px; left: 110px; bottom: 104px; background: linear-gradient(180deg, #ffffff, #dbe9ff); box-shadow: 0 14px 34px rgba(74,140,247,.24); }
.login-art .a3 { width: 78px; height: 78px; left: 165px; bottom: 148px; border-radius: 16px; background: linear-gradient(160deg, #ffffff, #c9dcff); transform: rotate(12deg); box-shadow: 0 18px 44px rgba(74,140,247,.28); }
.login-art .a4 { width: 46px; height: 46px; left: 270px; bottom: 86px; border-radius: 11px; background: linear-gradient(160deg, #ffffff, #d5e4ff); transform: rotate(-14deg); box-shadow: 0 12px 28px rgba(74,140,247,.2); }
.login-foot { position: absolute; left: 64px; bottom: 28px; font-size: 12px; color: #8b97a8; }

.login-right { display: flex; flex-direction: column; justify-content: center; position: relative; padding: 40px 64px; }
.login-box { width: 100%; max-width: 380px; margin: 0 auto; }
.login-box h2 { font-size: 30px; font-weight: 700; color: #1f2a37; letter-spacing: -.01em; }
.login-tabs { display: flex; gap: 26px; margin: 22px 0 26px; border-bottom: 1px solid #eceff5; }
.login-tabs button {
  border: 0; background: transparent; font: inherit; font-size: 14px; color: #909399;
  padding: 0 0 12px; cursor: pointer; position: relative;
}
.login-tabs button[aria-pressed="true"] { color: #4a8cf7; font-weight: 600; }
.login-tabs button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #4a8cf7;
}
.login-field {
  display: flex; align-items: center; gap: 10px; height: 46px;
  border: 1px solid #e4e8ef; border-radius: 4px; padding: 0 14px; margin-bottom: 16px;
  background: #fff;
}
.login-field .ico { width: 17px; height: 17px; color: #b3bcc9; display: inline-flex; }
.login-field .ico svg { width: 17px; height: 17px; }
.login-field input { flex: 1; border: 0; outline: none; font: inherit; font-size: 14px; color: #303133; background: transparent; }
.login-field input::placeholder { color: #b8bfc9; }
.login-field:focus-within { border-color: #4a8cf7; }
.login-btn {
  width: 100%; height: 46px; margin-top: 6px; border: 0; border-radius: 4px;
  background: #4a8cf7; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.login-btn:hover { background: #6aa2fa; }
.login-tip { margin-top: 12px; font-size: 12px; color: #a3acb9; text-align: center; }
.login-icp { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 12px; color: #a3acb9; }

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 32px 24px; }
}

/* =========================================================
   筛选区 / 折线图（对齐参考站的查询条与趋势图）
   ========================================================= */
.dfilter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  background: #fff; border: 1px solid #e6e8eb; border-radius: 4px;
  padding: 16px 16px; margin-bottom: 0;
}
.dfield { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #606266; }
.dfield > span { white-space: nowrap; }
.dfield input, .dfield select {
  height: 32px; border: 1px solid #dcdfe6; border-radius: 4px;
  padding: 0 10px; font: inherit; font-size: 13px; color: #303133;
  background: #fff; width: 168px; outline: none;
}
.dfield input:focus, .dfield select:focus { border-color: #409eff; }
.dfield input::placeholder { color: #b8bfc9; }
.dfilter-btns { display: flex; gap: 8px; margin-left: auto; }
.desk2 .btn.warn { background: #e6a23c; border-color: #e6a23c; color: #fff; }
.desk2 .btn.warn:hover { background: #ebb563; border-color: #ebb563; color: #fff; }
.desk2 .btn.success { background: #67c23a; border-color: #67c23a; color: #fff; }
.desk2 .btn.success:hover { background: #85ce61; border-color: #85ce61; color: #fff; }

.dline-wrap { width: 100%; }
.dline { width: 100%; height: 240px; display: block; }
.dlegend { display: flex; gap: 18px; justify-content: flex-end; margin-top: 6px; font-size: 12px; color: #606266; }
.dlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.dtabs { display: flex; gap: 26px; border-bottom: 1px solid #ebeef5; margin: 14px 0 0; }
.dtabs button {
  border: 0; background: transparent; font: inherit; font-size: 13.5px; color: #606266;
  padding: 0 0 11px; cursor: pointer; position: relative;
}
.dtabs button[aria-pressed="true"] { color: #409eff; font-weight: 600; }
.dtabs button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #409eff;
}
.dtabs button em { font-style: normal; color: #909399; font-size: 12px; }

/* ---- 区域（城市）切换 ---- */
.dcity { display: flex; align-items: center; gap: 6px; margin-left: 14px; font-size: 12.5px; color: #909399; }
.dcity select {
  height: 28px; border: 1px solid #dcdfe6; border-radius: 4px;
  padding: 0 6px; font: inherit; font-size: 13px; color: #303133; background: #fff; outline: none;
}
.dcity select:focus { border-color: #409eff; }
.seg-city { margin-right: 6px; }
.seg-d.seg-city button { padding: 0 12px; }

/* ---- 城市合伙人：新增弹窗 / 城市标签 ---- */
.dmodal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.dmodal-scrim { position: absolute; inset: 0; background: rgba(17, 24, 39, .38); }
.dmodal-box {
  position: relative; width: 520px; max-width: calc(100vw - 40px); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 6px; box-shadow: 0 18px 48px rgba(17, 24, 39, .18);
}
.dmodal-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid #ebeef5; position: sticky; top: 0; background: #fff; z-index: 2; }
.dmodal-head h3 { font-size: 16px; font-weight: 600; color: #303133; }
.dmodal-head .iconbtn { margin-left: auto; }
.dmodal-body { padding: 16px 18px; }
.dmodal-note {
  font-size: 12.5px; line-height: 1.6; color: #8a6d3b;
  background: #fdf6ec; border: 1px solid #faecd8; border-radius: 4px; padding: 10px 12px; margin-bottom: 14px;
}
.dform-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dform-row label { width: 84px; font-size: 13px; color: #606266; }
.dform-row input {
  flex: 1; height: 34px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 10px;
  font: inherit; font-size: 13px; color: #303133; outline: none;
}
.dform-row input:focus { border-color: #409eff; }
.dform-hint { font-size: 12.5px; color: #909399; }
.acity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 2px; }
.aopt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 9px 12px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff;
  font: inherit; cursor: pointer; text-align: left;
}
.aopt .an { font-size: 13.5px; color: #303133; }
.aopt .ao { font-size: 11.5px; color: #f56c6c; }
.aopt .ao.free { color: #67c23a; }
.aopt[aria-pressed="true"] { border-color: #409eff; background: #ecf5ff; }
.aopt.taken { background: #f7f8fa; cursor: not-allowed; }
.aopt.taken .an { color: #a8abb2; }
.aerr {
  margin-top: 10px; font-size: 12.5px; color: #f56c6c;
  background: #fef0f0; border: 1px solid #fde2e2; border-radius: 4px; padding: 8px 10px;
}
.dmodal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid #ebeef5; position: sticky; bottom: 0; background: #fff; }
.citytag {
  display: inline-block; margin: 2px 4px 2px 0; padding: 1px 7px; border-radius: 3px;
  background: #ecf5ff; color: #409eff; font-size: 12px; line-height: 18px;
}
.dminitag {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px;
  background: #f0f2f5; color: #909399; font-size: 11px; line-height: 16px; vertical-align: 1px;
}
.dminitag.new { background: #f0f9eb; color: #67c23a; }
.muted { color: #a8abb2; }

.dmodal-x {
  margin-left: auto; width: 28px; height: 28px; border: 0; background: transparent;
  color: #909399; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; padding: 0;
}
.dmodal-x:hover { background: #f5f7fa; color: #303133; }
.dmodal-x svg { width: 16px; height: 16px; }

.acount { font-style: normal; font-size: 11px; color: #909399; margin-left: 4px; }
.aopt.taken .acount { color: #f56c6c; }
.aopt .ao.ok { color: #e6a23c; }
.citytag i { font-style: normal; font-size: 11px; opacity: .75; }

.dquota { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: 12.5px; color: #909399; }
.dquota select {
  height: 26px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 4px;
  font: inherit; font-size: 12.5px; color: #303133; background: #fff; outline: none;
}
.dch { display: flex; align-items: center; gap: 8px; }
.dch .meta { margin-left: auto; }

/* ---- 评价删除 ---- */
.desk2 .btn.danger { background: #f56c6c; border-color: #f56c6c; color: #fff; }
.desk2 .btn.danger:hover { background: #f78989; border-color: #f78989; color: #fff; }
.dlink.danger { color: #f56c6c; }
.dlink.danger:hover { color: #f78989; }
.rvdel { margin-top: 3px; font-size: 11.5px; color: #f56c6c; }
.rcheck { display: inline-flex; align-items: center; }
.rcheck input { width: 14px; height: 14px; accent-color: #409eff; cursor: pointer; }
.dtabs { display: flex; gap: 24px; border-bottom: 1px solid #ebeef5; padding: 0 16px; }
.dtabs button {
  border: 0; background: transparent; font: inherit; font-size: 13.5px; color: #606266;
  padding: 12px 0 10px; cursor: pointer; position: relative;
}
.dtabs button[aria-pressed="true"] { color: #409eff; font-weight: 600; }
.dtabs button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #409eff;
}
.dtabs button em { font-style: normal; color: #909399; font-size: 12px; }
.dform-row select {
  flex: 1; height: 34px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 8px;
  font: inherit; font-size: 13px; color: #303133; background: #fff; outline: none;
}

/* ---- 分红比例变更 ---- */
.ratepend { margin-top: 3px; font-size: 11.5px; color: #e6a23c; }
.dform-row input[type="number"] { width: 120px; flex: none; }

.dtable td .dlink { white-space: nowrap; }
.dtable td .dlink + .dlink { margin-left: 8px; }
.dtable td:last-child { white-space: nowrap; }

/* ---- 管理员权限 ---- */
.preset-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 12.5px; color: #909399; }
.preset-row .btn { height: 28px; font-size: 12.5px; padding: 0 10px; }
.pgrid { max-height: 46vh; overflow: auto; border: 1px solid #ebeef5; border-radius: 4px; padding: 10px 12px; }
.pgroup { margin-bottom: 10px; }
.pgroup-t { font-size: 12px; color: #909399; margin-bottom: 6px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #f2f3f5; }
.prow:last-child { border-bottom: 0; }
.pname { flex: 1; font-size: 13px; color: #303133; }
.pbtns { display: inline-flex; gap: 6px; }
.popt {
  height: 26px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff; font: inherit; font-size: 12.5px; color: #606266; cursor: pointer;
}
.popt.on { background: #409eff; border-color: #409eff; color: #fff; }
.popt.on[data-v="ro"] { background: #e6a23c; border-color: #e6a23c; }
.popt.on[data-v=""] { background: #909399; border-color: #909399; }
.permbar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: #f0f2f5; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.permbar i { display: block; height: 100%; background: #409eff; }
.dronote {
  margin-bottom: 12px; padding: 9px 12px; border-radius: 4px;
  background: #fdf6ec; border: 1px solid #faecd8; color: #8a6d3b; font-size: 13px;
}

/* 只读身份：写操作全部隐藏（查询/导出仍然可用） */
.dwrap.ro [data-act="rv-del"],
.dwrap.ro [data-act="rv-restore"],
.dwrap.ro [data-act="rv-del-selected"],
.dwrap.ro [data-act="rate-open"],
.dwrap.ro [data-act="rate-ok"],
.dwrap.ro [data-act="rate-no"],
.dwrap.ro [data-act="rate-cancel"],
.dwrap.ro [data-act="agent-open"],
.dwrap.ro [data-act="agent-release"],
.dwrap.ro [data-act="approve"],
.dwrap.ro [data-act="reject"],
.dwrap.ro [data-act="perm-open"] { display: none !important; }
.dwrap.ro .rcheck { display: none; }

/* ---- 合伙人合同 ---- */
.ctgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.ctgrid > div { display: flex; flex-direction: column; gap: 3px; }
.ctgrid span { font-size: 12px; color: #909399; }
.ctgrid b { font-size: 13.5px; color: #303133; font-weight: 600; }

/* ---- 订单金额结构环形图 ---- */
.dgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .dgrid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dgrid3 > .dcard:first-child { grid-column: span 2; } }
.ddonut { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 2px; }
.ddonut-svg { width: 200px; height: 200px; }
.dcenter-v { font-size: 15px; font-weight: 700; fill: #303133; }
.dcenter-l { font-size: 11px; fill: #909399; }
.dlegend-box { width: 100%; display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.dleg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #606266; }
.dleg i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dleg .dn { flex: 1; }
.dleg .dv { color: #303133; font-variant-numeric: tabular-nums; }
.dleg .dp { width: 38px; text-align: right; color: #909399; }

@media (max-width: 1180px) {
  .dgrid3 > .dcard[style*="span 2"] { grid-column: span 2 !important; }
}
