/* ===========================================================
   微信位置认领服务商工作台 · 浅蓝渐变主题
   =========================================================== */
:root {
  --blue-900: #123a75;
  --blue-800: #1b4f9c;
  --blue-700: #2266c4;
  --blue-600: #2f7de1;
  --blue-500: #4a90e2;
  --blue-300: #8fc0f5;
  --blue-100: #e3f0ff;
  --blue-50:  #f2f8ff;
  --ink:      #1c2b45;
  --ink-2:    #4a5c78;
  --ink-3:    #8494ad;
  --line:     #e2ebf7;
  --white:    #ffffff;
  --success:  #16a34a;
  --warning:  #ea9a12;
  --danger:   #e0483d;
  --purple:   #7c5cd6;
  --shadow:   0 8px 28px rgba(31, 92, 173, .10);
  --shadow-sm:0 2px 10px rgba(31, 92, 173, .07);
  --radius:   14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #eaf4ff 0%, #f7fbff 45%, #dcecff 100%);
  background-attachment: fixed;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c6dcf5; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(91, 160, 245, .28), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(120, 195, 255, .30), transparent 45%),
    linear-gradient(135deg, #dcecff 0%, #f6faff 50%, #cfe4ff 100%);
}
.login-card {
  width: 100%; max-width: 940px; min-height: 520px; display: grid;
  grid-template-columns: 1.05fr 1fr; background: var(--white);
  border-radius: 22px; overflow: hidden; box-shadow: 0 24px 70px rgba(24, 76, 152, .18);
}
.login-hero {
  padding: 48px 44px; color: #fff;
  background: linear-gradient(155deg, #1b4f9c 0%, #2f7de1 55%, #57a6f0 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-hero::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  right: -130px; bottom: -140px; background: rgba(255,255,255,.09);
}
.login-hero h1 { font-size: 30px; line-height: 1.4; margin-bottom: 14px; font-weight: 700; }
.login-hero p { font-size: 14px; line-height: 1.9; opacity: .9; }
.login-logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.login-logo .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); font-size: 20px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-tags span {
  padding: 6px 12px; border-radius: 20px; font-size: 12px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
}
.login-form { padding: 54px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-form h2 { font-size: 24px; margin-bottom: 8px; }
.login-form .sub { color: var(--ink-3); margin-bottom: 30px; font-size: 13px; }
.login-form .field { margin-bottom: 18px; }
.login-form .btn-login { width: 100%; margin-top: 10px; height: 46px; font-size: 15px; }
/* v1.2.5：登录错误提示框 */
.login-error {
  display: none; margin-bottom: 18px; padding: 11px 14px; border-radius: 9px;
  background: #fff2f0; border: 1px solid #ffccc7; border-left: 4px solid #e5484d;
  color: #a8071a; font-size: 13px; line-height: 1.6;
}
.demo-accounts {
  margin-top: 26px; padding: 14px 16px; border-radius: 10px;
  background: var(--blue-50); border: 1px dashed var(--blue-300); font-size: 12px;
  color: var(--ink-2); line-height: 1.9;
}
.demo-accounts b { color: var(--blue-700); }
.demo-accounts code { cursor: pointer; color: var(--blue-600); }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: 0 0 236px; color: #fff; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(178deg, #17458c 0%, #2266c4 48%, #3a8ee6 100%);
  display: flex; flex-direction: column; z-index: 30;
}
.sb-brand { padding: 22px 20px 18px; display: flex; align-items: center; gap: 11px; }
.sb-brand .mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); font-size: 19px; border: 1px solid rgba(255,255,255,.25);
}
.sb-brand b { font-size: 15px; letter-spacing: .5px; display: block; }
.sb-brand small { font-size: 11px; opacity: .72; }
.sb-nav { flex: 1; overflow-y: auto; padding: 6px 10px 20px; }
.sb-group { font-size: 11px; opacity: .6; padding: 16px 12px 8px; letter-spacing: 1px; }
.sb-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; margin: 3px 0;
  border-radius: 9px; color: rgba(255,255,255,.86); cursor: pointer; font-size: 13.5px;
  transition: .18s;
}
.sb-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.sb-item.active { background: rgba(255,255,255,.22); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #fff; }
.sb-item .ico { width: 18px; text-align: center; font-size: 15px; }
.sb-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: 11.5px; opacity: .8; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; flex: 0 0 64px; display: flex; align-items: center; gap: 16px;
  padding: 0 26px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar .crumb { font-size: 15px; font-weight: 600; flex: 1; }
.topbar .crumb small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.mode-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, #e8f2ff, #d6e9ff); color: var(--blue-700);
  border: 1px solid #c9e0fb;
}
.mode-chip.real { background: linear-gradient(135deg, #e6f8ee, #d3f2e1); color: #14804a; border-color: #b9e8cf; }
.user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 5px 10px; border-radius: 10px; }
.user-chip:hover { background: var(--blue-50); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.user-chip b { font-size: 13px; display: block; }
.user-chip small { font-size: 11px; color: var(--ink-3); display: block; }
.content { padding: 24px 26px 40px; flex: 1; }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 18px;
}
.card.pad0 { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.card-head h3 { font-size: 16px; font-weight: 700; }
.card-head .desc { font-size: 12px; color: var(--ink-3); }
.card-head .spacer { flex: 1; }
.section-title { font-size: 15px; font-weight: 700; margin: 2px 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); }

.grid { display: grid; gap: 16px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }

.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -18px; top: -18px; width: 92px; height: 92px;
  border-radius: 50%; background: linear-gradient(135deg, rgba(74,144,226,.14), rgba(74,144,226,0));
}
.stat .label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.stat .foot { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.stat.c1 .value { color: var(--blue-600); }
.stat.c2 .value { color: var(--success); }
.stat.c3 .value { color: var(--warning); }
.stat.c4 .value { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-2); cursor: pointer; font-size: 13px;
  transition: .16s; white-space: nowrap;
}
.btn:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-50); }
.btn.primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(47,125,225,.25);
}
.btn.primary:hover { filter: brightness(1.07); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #f3d0cd; }
.btn.danger:hover { background: #fff1f0; border-color: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 11px 22px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fbfdff; color: var(--ink); outline: none; transition: .16s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(74,144,226,.12);
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field-row.g3 { grid-template-columns: repeat(3, 1fr); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--blue-600); width: 15px; height: 15px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 170px; }
.toolbar .spacer { flex: 1; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 12px 14px; background: var(--blue-50); color: var(--ink-2);
  font-weight: 600; font-size: 12px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid #f0f5fc; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: #f8fbff; }
table.tbl .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--blue-800); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }
.empty .big { font-size: 34px; display: block; margin-bottom: 10px; opacity: .55; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px;
  font-weight: 600; white-space: nowrap; line-height: 1.6;
}
.badge.blue   { background: #e6f1ff; color: var(--blue-700); }
.badge.green  { background: #e5f7ec; color: #14804a; }
.badge.orange { background: #fff2dd; color: #b56d00; }
.badge.red    { background: #fdeceb; color: #c33a30; }
.badge.gray   { background: #eef2f7; color: #6a7a92; }
.badge.purple { background: #f0eaff; color: #6b45c2; }

.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

.alert {
  padding: 12px 15px; border-radius: 10px; font-size: 12.5px; line-height: 1.7;
  margin-bottom: 16px; border: 1px solid;
}
.alert.info { background: #eef6ff; border-color: #cfe3fb; color: #22548f; }
.alert.warn { background: #fff8e8; border-color: #f5e0ad; color: #8a6100; }
.alert.err  { background: #fff0ef; border-color: #f4cdc9; color: #a93b31; }
.alert.ok   { background: #ecf9f1; border-color: #c6ead4; color: #14703f; }
.alert b { font-weight: 700; }

.code-block {
  background: #0f2547; color: #cfe3ff; border-radius: 10px; padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.65; overflow: auto; max-height: 420px; white-space: pre;
}
.code-block .k { color: #8fc0f5; }

/* ---------------- 弹窗 / Toast ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(14, 38, 74, .45); backdrop-filter: blur(3px);
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 620px;
  box-shadow: 0 24px 70px rgba(15, 45, 90, .28); max-height: 90vh; display: flex; flex-direction: column;
  animation: pop .18s ease-out;
}
.modal.wide { max-width: 900px; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h3 { font-size: 16px; flex: 1; }
.modal-head .x { cursor: pointer; font-size: 20px; color: var(--ink-3); line-height: 1; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
#toastBox { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 420px; padding: 12px 16px; border-radius: 10px; color: #fff;
  font-size: 13px; box-shadow: 0 10px 30px rgba(20,50,95,.22); animation: slidein .2s ease-out;
  line-height: 1.6;
}
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.success { background: linear-gradient(135deg, #17a34a, #35bd68); }
.toast.error   { background: linear-gradient(135deg, #d94336, #ea6255); }
.toast.info    { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }
.toast.warn    { background: linear-gradient(135deg, #d98a08, #edaa2c); }

/* ---------------- 向导 / 时间轴 / 二维码 ---------------- */
.steps { display: flex; align-items: center; margin-bottom: 24px; gap: 0; }
.step { display: flex; align-items: center; gap: 9px; flex: 1; }
.step .num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: #eaf1fa; color: var(--ink-3); flex: 0 0 28px;
}
.step.active .num { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); color: #fff; }
.step.done .num { background: #dff3e7; color: var(--success); }
.step .txt { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.step.active .txt { color: var(--blue-700); font-weight: 600; }
.step .line { flex: 1; height: 1px; background: var(--line); margin: 0 12px; }

.pick-list { display: grid; gap: 10px; }
.pick-item {
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; transition: .16s; background: #fbfdff;
}
.pick-item:hover { border-color: var(--blue-300); background: var(--blue-50); }
.pick-item.selected { border-color: var(--blue-500); background: #eef6ff; box-shadow: 0 0 0 2px rgba(74,144,226,.12); }
.pick-item .t { font-size: 13.5px; font-weight: 600; }
.pick-item .s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot {
  position: absolute; left: -23px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: #d9e6f7; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9e6f7;
}
.tl-item.done .dot { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.tl-item.current .dot { background: var(--blue-600); box-shadow: 0 0 0 3px rgba(47,125,225,.18); }
.tl-item .t { font-size: 13px; font-weight: 600; }
.tl-item .s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.qr-card { text-align: center; padding: 22px; background: linear-gradient(160deg, #f4f9ff, #e8f2ff); border-radius: 14px; border: 1px solid #d7e8fc; }
.qr-card img { width: 190px; height: 190px; border-radius: 10px; background: #fff; padding: 8px; box-shadow: var(--shadow-sm); }
.qr-card .cap { font-size: 12px; color: var(--ink-3); margin-top: 12px; line-height: 1.8; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 0; font-size: 13px; }
.kv > div { padding: 9px 0; border-bottom: 1px dashed #edf3fb; }
.kv .k { color: var(--ink-3); }
.kv .v { color: var(--ink); word-break: break-all; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; }
.bar-row .lbl { width: 120px; color: var(--ink-2); flex: 0 0 120px; }
.bar-track { flex: 1; height: 9px; border-radius: 6px; background: #eaf1fa; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); }
.bar-row .num { width: 34px; text-align: right; color: var(--ink-3); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 9px 16px; cursor: pointer; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; }
.tab.active { color: var(--blue-700); border-bottom-color: var(--blue-600); font-weight: 600; }
.tab:hover { color: var(--blue-600); }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

.link { cursor: pointer; color: var(--blue-600); }
.link:hover { text-decoration: underline; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mb10 { margin-bottom: 10px; } .mb16 { margin-bottom: 16px; }

/* ---------------- 响应式 ---------------- */
.menu-toggle { display: none; font-size: 20px; cursor: pointer; }
@media (max-width: 1100px) {
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -240px; transition: .22s; box-shadow: 8px 0 30px rgba(15,45,90,.2); }
  .sidebar.open { left: 0; }
  .menu-toggle { display: block; }
  .login-card { grid-template-columns: 1fr; max-width: 480px; }
  .login-hero { padding: 28px; min-height: 200px; }
  .login-hero h1 { font-size: 22px; }
  .login-form { padding: 32px 28px; }
  .content { padding: 18px 14px 30px; }
  .topbar { padding: 0 14px; }
  .grid.g4, .grid.g3, .grid.g2 { grid-template-columns: 1fr; }
  .field-row, .field-row.g3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 100px 1fr; }
}
@media (max-width: 560px) {
  .toolbar .input, .toolbar .select { width: 100%; min-width: 0; }
  .card { padding: 15px; }
  .modal-body { padding: 16px; }
}

/* ---------------- 图片上传组件 ---------------- */
.uploader { width: 100%; }
.up-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.up-empty { width: 100%; padding: 14px; border: 1px dashed #cfe0f5; border-radius: 10px; color: #94a6c0; font-size: 12.5px; text-align: center; background: #f8fbff; }
.up-thumb { position: relative; width: 108px; border: 1px solid #dce9fa; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(31,92,173,.06); }
.up-thumb > a { display: block; width: 108px; height: 82px; background: linear-gradient(135deg,#e8f2ff,#f6faff); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-name { display: block; font-size: 10.5px; color: #7c8ea8; padding: 5px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(20,40,70,.62); color: #fff; font-size: 14px; line-height: 18px; cursor: pointer; padding: 0; }
.up-del:hover { background: #e5484d; }
.up-loading { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 82px; background: linear-gradient(135deg,#e8f2ff,#f6faff); }
.up-loading .up-name { text-align: center; }
.up-spin { font-size: 12px; color: #2266c4; font-weight: 600; }
.up-drop { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px dashed #a9c9f0; border-radius: 10px; background: linear-gradient(135deg,#f4f9ff,#eaf3ff); cursor: pointer; color: #2f6bb5; font-size: 13px; transition: .18s; user-select: none; }
.up-drop:hover, .up-drop.over { border-color: #4a90e2; background: linear-gradient(135deg,#e8f3ff,#dcecff); }
.up-plus { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,#4a90e2,#2f7de1); color: #fff; font-size: 20px; line-height: 26px; text-align: center; flex: 0 0 28px; }
.up-tip { flex: 1; }
.up-count { font-size: 12px; color: #7c8ea8; }
.uploader .hint { margin-top: 6px; }
.up-preview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.up-preview-row .hint { margin-bottom: 8px; }

/* 缩略图网格（门店资料 / 任务详情 / 向导预览） */
.thumb-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 76px; height: 76px; border-radius: 9px; overflow: hidden; border: 1px solid #dce9fa; background: linear-gradient(135deg,#e8f2ff,#f6faff); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: #4a90e2; box-shadow: 0 3px 10px rgba(47,125,225,.18); }
.thumb.broken::after { content: '加载失败'; font-size: 10px; color: #94a6c0; display: block; text-align: center; padding-top: 28px; }
@media (max-width: 900px) { .up-preview-row { grid-template-columns: 1fr; } }

/* ---------------- 省 / 市 / 区三级联动下拉 ---------------- */
.region-picker { width: 100%; }
.rg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rg-cell > label { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-bottom: 5px; }
.rg-cell .select, .rg-cell .input { background: #fbfdff; }
.rg-manual { margin-top: 9px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 560px) { .rg-row { grid-template-columns: 1fr; } }

/* ---------------- 营业执照 OCR 识别面板（门店表单） ---------------- */
.ocr-panel {
  margin: 0 0 15px; padding: 13px 15px; border-radius: 11px;
  border: 1px solid #d9e9fb; background: linear-gradient(135deg, #f7fbff, #edf6ff);
}
.ocr-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; }
.ocr-head b { color: var(--blue-800); }
.ocr-head .btn-row { margin-left: auto; }
.ocr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.15); flex: 0 0 8px; }
.ocr-empty { font-size: 12px; color: var(--ink-2); line-height: 1.8; margin-top: 9px; }
.ocr-off {
  font-size: 12px; color: #7a6a3a; line-height: 1.8;
  background: #fff9ea; border: 1px dashed #f0d9a0; padding: 10px 12px; border-radius: 9px;
}
.ocr-off b { color: #8a6a12; }
.ocr-kv { margin-top: 10px; font-size: 12.5px; grid-template-columns: 140px 1fr; }
.ocr-kv > div { padding: 6px 0; }
.ocr-busy { opacity: .72; }

/* ---------------- 系统设置 · OCR 配置卡片 ---------------- */
.ocr-cfg { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 16px; }
.ocr-cfg .cfg-sub { font-size: 12.5px; font-weight: 600; color: var(--blue-800); margin: 14px 0 9px; }
.cfg-block { background: #f8fbff; border: 1px solid #e4eefb; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.cfg-block .field:last-child { margin-bottom: 0; }
.cfg-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.8; margin-top: 8px; }
.cfg-note code { background: #eaf2fd; padding: 1px 5px; border-radius: 4px; color: var(--blue-800); }
.cfg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cfg-links a { font-size: 11.5px; }
.cfg-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.cfg-state .dot { width: 7px; height: 7px; border-radius: 50%; background: #b8c6da; }
.cfg-state.on .dot { background: var(--success); }
.cfg-state.off .dot { background: #b8c6da; }
.ocr-test { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ocr-test .file { font-size: 12px; color: var(--ink-3); }

/* v1.3 腾讯地图选点弹窗 */
.map-pick-btn { background: #eef6ff; border-color: #b9d6f7; }
.mp-list { max-height: 260px; overflow-y: auto; border: 1px solid #e4eefb; border-radius: 10px; }
.mp-item { padding: 10px 12px; border-bottom: 1px solid #eef3fa; cursor: pointer; transition: background .15s; }
.mp-item:last-child { border-bottom: none; }
.mp-item:hover { background: #f5faff; }
.mp-item.sel { background: #eef6ff; box-shadow: inset 3px 0 0 var(--blue-500); }
.mp-name { font-weight: 600; color: var(--ink-1); font-size: 14px; }
.mp-addr { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.mp-coord { color: var(--blue-500); font-size: 12px; margin-top: 4px; }

/* v1.3.2 可搜索下拉（combo） */
.combo { position: relative; }
.combo input { width: 100%; }
.combo-list { display: none; position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid #d7e3f2; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20,60,110,.14); padding: 4px; }
.combo-list.open { display: block; }
.combo-item { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink-1); }
.combo-item:hover, .combo-item.active { background: #eef6ff; color: var(--blue-600); }
.combo-empty { padding: 8px 10px; font-size: 12px; color: var(--ink-3); }

/* ===== v1.3.3 门店信息自动补全（位置名称搜索下拉） ===== */
.ac-host { position: relative; }
.ac-list { max-height: 280px; }
.ac-list .ac-name { font-weight: 700; font-size: 13px; color: var(--ink-1); }
.ac-list .ac-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }

/* ===== v1.4.2 统计报表：近 14 天趋势柱图（纯 CSS，零依赖） ===== */
.ts-chart { display: flex; align-items: flex-end; gap: 6px; padding: 18px 6px 4px; overflow-x: auto; }
.ts-day { flex: 1 1 0; min-width: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ts-bars { display: flex; align-items: flex-end; gap: 3px; height: 92px; }
.ts-bar { width: 13px; border-radius: 4px 4px 2px 2px; position: relative; min-height: 3px; }
.ts-bar i { position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 10px; color: var(--ink-3); line-height: 1; }
.ts-bar.bp { background: linear-gradient(180deg, #60a5fa, var(--blue-600, #2563eb)); }
.ts-bar.bt { background: linear-gradient(180deg, #4ade80, var(--success, #16a34a)); }
.ts-date { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 2px; }
