/* ============================================================
 * 中国移动 · 行销入户信息采集平台
 * 10086 品牌风格 · 精致移动端 UI
 * ============================================================ */

:root {
  --blue: #0070c0;
  --blue-dark: #005a9e;
  --blue-light: #e8f3fb;
  --cyan: #00a0e9;
  --green: #2ba471;
  --orange: #e6772e;
  --red: #e23b3b;
  --text: #1a1a2e;
  --text-2: #4a4a5a;
  --text-3: #8888a0;
  --line: #e8ecf1;
  --bg: #f4f6fa;
  --card-bg: #ffffff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,80,160,.06);
  --shadow-md: 0 4px 16px rgba(0,80,160,.08);
  --shadow-lg: 0 8px 30px rgba(0,40,100,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: .2px;
  /* C：锁定字号缩放，防止系统“字体大小”设置放大页面 */
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh; /* D：X5 地址栏收起时用动态视口高度，避免页面跳动 */
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0,20,60,.06);
}

/* ════════════════ 顶部栏 ════════════════ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* A：刘海/挖孔屏状态栏适配（不支持 env() 的老内核自动回退到 10px 16px） */
  padding: 10px 16px;
  padding: calc(10px + env(safe-area-inset-top)) 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tu-phone {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tu-logout {
  border: 1.5px solid rgba(255,255,255,.7);
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 13px;
  cursor: pointer;
}
.tu-logout:active { transform: scale(.96); }
.brand-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
/* 中国移动 LOGO（base64 内联图片，不依赖网络） */
.cmcc-logo {
  height: 30px; width: auto; min-width: 28px; display: block; flex: none;
  object-fit: contain;
}
.auth-brand-ico.cmcc-logo { height: 52px; margin: 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}
.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}
.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.sync-dot.cloud { background: #4ade80; animation: pulse 2s infinite; }
.sync-dot.local { background: #fbbf24; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,.1); }
}

/* ════════════════ 视图容器 ════════════════ */
.view-wrap {
  flex: 1;
  padding: 14px 14px 78px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.view { display: none; animation: slideUp .3s ease; }
.view.active { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ════════════════ 二级页返回按钮 ════════════════ */
.view-back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px 14px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e8ecf1);
  border-radius: 10px;
  color: var(--blue, #0070C0);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm, none);
  -webkit-tap-highlight-color: transparent;
}
.view-back .vb-ico {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-1px);
}
.view-back:active { opacity: .7; }

/* ════════════════ 页头引导 ════════════════ */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.page-header.small { padding: 13px 16px 12px; margin-bottom: 12px; }
.page-header-icon { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.page-header.small .page-header-icon { font-size: 24px; }
.page-header-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
}
.page-header.small .page-header-text h1 { font-size: 15px; }
.page-header-text p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: .85;
  font-weight: 500;
}

/* ════════════════ 表单系统 ════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 7px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0;
}
.step-num.req {
  background: var(--red);
}
.required { color: var(--red); margin-left: 2px; }

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
  background: var(--card-bg);
  outline: none;
  transition: all .2s ease;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,112,192,.12);
  background: #fff;
}
.form-input::placeholder { color: var(--text-3); }
.form-input-sub { margin-top: 8px; background: #fafbfd; }

/* 备注文本框 */
.form-textarea {
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
  line-height: 1.55;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-3);
  font-size: 13px;
}
.form-select { cursor: pointer; padding-right: 36px; }
.form-select-sm { padding: 9px 32px 9px 11px; font-size: 13.5px; border-radius: var(--radius-sm); }

/* ════════════════ 地图区域 ════════════════ */
.map-section {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #e4e9f0;
}
.map-error {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #b3261e;
  background: rgba(255,244,244,.96);
  border-top: 1px solid #f3c2c2;
}
.map-canvas {
  height: 210px;
  width: 100%;
  background: #dce3eb;
}
.map-toolbar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  z-index: 500;
}
.coord-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
  padding: 8px 10px;
  background: #fafbfd;
  border-top: 1px solid var(--line);
}
.coord-ico { font-size: 14px; }

/* ════════════════ 拍照 ════════════════ */
.photo-section { margin-top: 10px; }
.photo-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--blue);
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.photo-trigger:active { background: #d0e7f7; }
.photo-trigger-ico { font-size: 18px; }
.photo-preview {
  width: 100%;
  margin-top: 8px;
  border-radius: var(--radius-md);
  display: block;
  border: 1.5px solid var(--line);
}

/* ════════════════ 问查算比（多图上传，选填） ════════════════ */
.wcb-sub { margin: -4px 0 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.wcb-section { margin-top: 10px; }
.wcb-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--blue);
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.wcb-trigger:active { background: #d0e7f7; }
.wcb-trigger-ico { font-size: 18px; }
.wcb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.wcb-grid:empty { display: none; }
.wcb-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-2, #f5f7fa);
}
.wcb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcb-thumb-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: none;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.wcb-thumb-del:active { background: rgba(0, 0, 0, .78); }
.wcb-tip { margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* ════════════════ 手机号列表 ════════════════ */
.phone-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.phone-row { display: flex; gap: 8px; align-items: center; }
.phone-row .form-input { flex: 1; }
.btn-del-phone {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-sm);
  background: #fff5f5;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ════════════════ 单选标签组 ════════════════ */
.radio-group { display: flex; gap: 10px; }
.radio-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: #fafbfd;
  transition: all .15s;
  user-select: none;
}
.radio-tag input { display: none; }
.radio-tag.checked {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* ════════════════ 意愿等级芯片 ════════════════ */
.willing-group { display: flex; gap: 10px; }
.willing-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 13px 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafbfd;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  transition: all .15s;
}
.willing-chip .chip-ico { font-size: 15px; }
.willing-chip.high.active { border-color: var(--green); background: #ecfdf5; color: #15803d; }
.willing-chip.mid.active { border-color: var(--orange); background: #fff8ed; color: #c2410c; }
.willing-chip.low.active { border-color: var(--red); background: #fef2f2; color: #b91c1c; }

/* ════════════════ 按钮系统 ════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(.97); }

.btn-ico { font-size: 15px; line-height: 1; }

.btn-primary-outline {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  font-size: 13px;
  padding: 8px 14px;
}
.btn-primary-outline:hover { background: var(--blue-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-3);
  border: 1.5px solid var(--line);
  font-size: 13px;
  padding: 8px 14px;
}
.btn-ghost:hover { background: #f8f9fb; }

.btn-danger-ghost {
  background: transparent;
  color: var(--red);
  border: 1.5px solid #fecaca;
  font-size: 13px;
  padding: 8px 14px;
}

.btn-dashed {
  background: transparent;
  color: var(--blue);
  border: 1.5px dashed var(--blue);
  font-size: 13px;
  padding: 6px 14px;
}

.btn-xs { padding: 5px 11px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 20px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; text-align: center; }

.btn-submit {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,112,192,.35);
  margin-top: 4px;
  letter-spacing: .5px;
}
.btn-submit:active { box-shadow: 0 2px 8px rgba(0,112,192,.25); }

/* ════════════════ 卡片系统 ════════════════ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.03);
}
.card-header {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-header-ico { font-size: 15px; }
.list-hint { font-weight: 400; font-size: 12px; color: var(--text-3); margin-left: auto; }

/* ════════════════ 统计卡片行 ════════════════ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.03);
}
.stat-box.accent { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.stat-box.warn { background: linear-gradient(135deg, #fefce8, #fef3c7); }
.stat-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.2;
}
.stat-box.accent .stat-value { color: var(--blue-dark); }
.stat-box.warn .stat-value { color: #d97706; }
.stat-box.demand { background: linear-gradient(135deg, #fff1eb, #ffe4d6); }
.stat-box.demand .stat-value { color: #c2410c; }
.stat-key {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 3px;
  font-weight: 600;
}

/* ════════════════ 各运营商户数汇总 ════════════════ */
.op-sum-card { padding: 16px; }
.op-sum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.op-sum-item {
  background: var(--bg-soft, #f7f9fc);
  border: 1px solid var(--border, #e5e9f0);
  border-top: 3px solid #7f8c8d;
  border-radius: var(--radius-md, 10px);
  padding: 12px 8px;
  text-align: center;
}
.op-sum-name { font-size: 12.5px; color: var(--text-2, #4b5563); font-weight: 600; }
.op-sum-num { font-size: 24px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.op-sum-unit { font-size: 12px; font-weight: 600; }
.op-sum-pct { font-size: 11px; color: var(--text-3, #94a3b8); margin-top: 2px; }

/* ════════════════ 图表卡片 ════════════════ */
.chart-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.chart-body { position: relative; }

/* ════════════════ 商机登记图表网格 ════════════════ */
.chart-grid { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.chart-box { width: 100%; display: flex; flex-direction: column; align-items: center; }
.chart-title { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; text-align: center; }
.chart-box canvas { max-height: 260px !important; width: auto !important; margin: 0 auto; }

@media (min-width: 768px) {
  .chart-grid { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .chart-box { width: 30%; min-width: 260px; max-width: 320px; }
  .chart-box canvas { max-height: 220px !important; }
}

/* ════════════════ 筛选卡片 ════════════════ */
.filter-card { padding: 14px 14px 12px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
  margin-bottom: 10px;
  transition: all .2s;
}
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,112,192,.08); }
.search-ico { font-size: 15px; color: var(--text-3); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.search-input::placeholder { color: var(--text-3); }

.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.filter-item { min-width: 0; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { flex: 1; }

/* ════════════════ 数据列表（明细/提醒） ════════════════ */
.data-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.data-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.data-list li:last-child { border-bottom: none; }

.rec-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.rec-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 11px;
  font-weight: 600;
}
.rec-main { flex: 1; min-width: 0; }
.rec-name { font-weight: 750; font-size: 14px; color: var(--text); }
.rec-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.rec-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}
.badge-high { background: #ecfdf5; color: #15803d; }
.badge-mid { background: #fff8ed; color: #c2410c; }
.badge-low { background: #fef2f2; color: #b91c1c; }
.rec-del-btn {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #ccc;
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
}
.rec-del-btn:active { color: var(--red); }

.empty-state {
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  padding: 20px 0 4px;
}
.empty-state .empty-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--orange, #e6772e);
  padding: 0 12px;
}

/* ════════════════ 回访提醒 ════════════════ */
.remind-card {
  border: 1.5px solid #fed7aa;
  background: #fffbeb;
}
.remind-header { justify-content: space-between; color: #c2410c !important; }
.remind-badge {
  background: var(--orange);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}
.remind-desc { font-size: 12.5px; color: #92400e; margin: 0 0 10px; }
.remind-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: #ffedd5;
  color: #c2410c;
  white-space: nowrap;
}
.remind-tag.urgent { background: #fee2e2; color: #dc2626; }

/* 回访提醒 — 整体折叠 */
.remind-toggle-arrow { font-size: 11px; color: #c2410c; transition: transform .2s ease; }
.remind-header.remind-expanded .remind-toggle-arrow { transform: rotate(90deg); }
.remind-item { cursor: pointer; transition: background .15s ease; }
.remind-item:hover { background: #fff7ed; }
.remind-item .remind-summary {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 4px; flex-wrap: wrap;
}
.remind-sum-name { font-weight: 700; font-size: 14px; color: var(--text); flex: 1; min-width: 0; }
.remind-sum-name.remind-urgent { color: #dc2626; }
.remind-sum-meta { font-size: 12px; color: var(--text-3); }
.remind-sum-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #ffedd5; color: #c2410c; white-space: nowrap; }
.remind-arrow-detail { font-size: 14px; color: #bbb; }

/* ════════════════ 管理员 / 村组汇总 ════════════════ */
.admin-card { border: 1.5px dashed var(--blue); background: #fafcff; }
.admin-header { color: var(--blue) !important; }
.admin-divider { height: 1px; background: var(--line); margin: 12px 0; }
.admin-config { margin-bottom: 10px; }
.config-title { font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.config-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.config-row label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.config-input {
  width: 70px;
  padding: 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}
.field-error { color: var(--red); font-size: 12px; text-align: center; min-height: 16px; margin-top: 6px; }
.field-hint { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 6px; line-height: 1.5; }

.admin-actions { display: flex; gap: 8px; }

/* 管理员授权管理 */
.admin-list { display: flex; flex-direction: column; gap: 6px; }
.admin-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: #f8fafd;
  border: 1px solid #e3e9ef; border-radius: 8px;
  font-size: 13px;
}

.village-summary { display: flex; flex-direction: column; gap: 8px; }
/* 村组汇总整体折叠 */
.vs-toggle-arrow { font-size: 11px; color: var(--blue); transition: transform .2s ease; margin-left: 4px; }
.admin-header.vs-expanded .vs-toggle-arrow { transform: rotate(90deg); }
/* 各注册账号汇总整体折叠 */
.as-toggle-arrow { font-size: 11px; color: var(--blue); transition: transform .2s ease; margin-left: 4px; }
.admin-header.as-expanded .as-toggle-arrow { transform: rotate(90deg); }
.vs-item {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #fff;
  cursor: pointer; transition: all .15s ease;
}
.vs-item:hover { border-color: var(--blue); }
.vs-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 750;
  font-size: 14px;
  color: var(--blue-dark);
  margin-bottom: 0;
}
.vs-count { font-size: 12px; color: var(--text-3); font-weight: 600; }
.vs-arrow-detail { font-size: 14px; color: #bbb; }
.vs-stats { font-size: 12.5px; color: #555; line-height: 1.7; margin-top: 4px; }
.vs-stats b { color: var(--text); font-weight: 700; }
.vs-wl { display: flex; gap: 6px; margin-top: 6px; }
.vs-wl span {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.vs-wl .wl-high { background: #ecfdf5; color: #15803d; }
.vs-wl .wl-mid { background: #fff8ed; color: #c2410c; }
.vs-wl .wl-low { background: #fef2f2; color: #b91c1c; }

.account-summary { display: flex; flex-direction: column; gap: 8px; }
.as-phone { font-size: 12px; color: var(--text-3); margin: 2px 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.as-tag-admin { font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); padding: 1px 8px; border-radius: 20px; }

/* ════════════════ 导出页 ════════════════ */
.export-card { padding: 18px 16px; }
.export-summary { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.export-summary strong { color: var(--blue); font-size: 18px; font-weight: 900; }
.export-note { font-size: 12.5px; color: var(--orange); margin-bottom: 14px; }
.export-buttons { display: flex; flex-direction: column; gap: 10px; }

.help-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); line-height: 1.85; }
.help-list b { color: var(--blue); }

/* ════════════════ 历史回访面板 ════════════════ */
.history-panel {
  margin-top: 12px;
  border: 1.5px solid var(--blue-light);
  background: #f8fcff;
  border-radius: var(--radius-md);
  padding: 12px;
}
.history-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 750;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.history-head-ico { font-size: 14px; }
.history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
}
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,80,160,.05);
  transition: background .15s;
}
.history-item:active { background: var(--blue-light); }
.history-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.history-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 11px;
  font-weight: 600;
}
.history-info { flex: 1; min-width: 0; }
.history-name { font-weight: 700; font-size: 13px; }
.history-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ═════════════════ 首页（导航） ═════════════════ */
/* 图腾 banner：可上传照片作为背景 */
.home-banner {
  position: relative;
  height: 150px;
  margin: 10px 14px 4px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 6px 16px rgba(0,112,192,.18);
}
.home-banner.has-img { background-color: #1f3a5f; }
.home-banner-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.5) 100%);
}
.home-banner-text {
  position: relative;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 14px 16px;
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
}
.home-banner-edit {
  position: absolute;
  right: 12px; top: 12px;
  background: rgba(255,255,255,.92);
  color: var(--blue);
  border: none;
  font-size: 12px; font-weight: 700;
  padding: 5px 11px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.home-banner-clear {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 15px; line-height: 1;
  cursor: pointer;
}
.home-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.home-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--card-bg);
  border: 1.5px solid var(--border, #e3eaf3);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  -webkit-appearance: none;
  appearance: none;
}
.home-card:active { transform: scale(.98); }
.home-card:active, .home-card:focus { border-color: var(--blue); box-shadow: var(--shadow-md); }
.hc-ico {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--blue-light);
  border-radius: 14px;
}
.hc-body { flex: 1 1 auto; min-width: 0; }
.hc-title { font-size: 16px; font-weight: 750; color: var(--text-1); }
.hc-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.hc-arrow { flex: 0 0 auto; font-size: 24px; color: var(--blue); font-weight: 700; }

/* ═════════════════ 位置信息页定位条 ═════════════════ */
.loc-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}
.loc-status {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  background: var(--blue-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-ico { margin-right: 4px; }

/* ════════════════ 弹窗 ════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-overlay[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.modal-sm { max-width: 340px; }
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal-close-btn:active { background: var(--line); }
.modal-content { padding: 18px; }

/* --- 在线表格预览（网页版 Excel）--- */
.modal-panel-table {
  width: 96vw !important;
  max-width: 1100px !important;
  max-height: 92vh !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-panel-table .modal-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
}
.table-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.table-preview-title { font-size: 16px; font-weight: 700; color: var(--text); }
.table-preview-meta { font-size: 12.5px; color: var(--text-3); }
.table-preview-note { margin-left: 8px; color: var(--blue); }
.table-preview-filter { margin-bottom: 10px; flex-shrink: 0; }
.table-preview-filter input {
  width: 100%; box-sizing: border-box; padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--text);
  outline: none;
}
.table-preview-filter input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,112,192,.12); }
.table-preview-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}
.table-preview {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: max-content;
}
.table-preview thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.table-preview tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(0,0,0,.04);
  white-space: nowrap;
  color: var(--text-2);
}
.table-preview tbody tr:nth-child(even) { background: rgba(0,112,192,.045); }
.table-preview tbody tr:hover { background: rgba(0,112,192,.1); }

.detail-photo { width: 100%; border-radius: var(--radius-md); display: block; margin-bottom: 14px; }
.detail-photo.empty {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--line);
}
.detail-wcb-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark, #00457d);
  margin: 4px 0 8px;
}
.detail-wcb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.detail-wcb-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  display: block;
  cursor: zoom-in;
}
.detail-field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail-field:last-child { border-bottom: none; }
.detail-field .df-label { color: var(--text-3); flex-shrink: 0; }
.detail-field .df-value { font-weight: 650; text-align: right; word-break: break-all; }

/* 详情弹窗编辑按钮 */
.detail-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.detail-edit-btn {
  font-size: 14px !important;
  padding: 11px 16px !important;
}

/* 编辑表单样式 */
.edit-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--line);
}
.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.edit-actions .btn { flex: 1; }

/* 明细列表备注标记 */
.rec-remark-tag {
  display: inline-block;
  font-size: 13px;
  margin-left: 6px;
  cursor: default;
  vertical-align: middle;
  opacity: .7;
}

/* 位置信息历史备注 */
.history-remark {
  font-size: 11.5px;
  color: #888;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════ 看板下钻详情 ════════════════ */
.vs-clickable { cursor: pointer; transition: box-shadow .15s, transform .1s; }
.vs-clickable:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); transform: translateY(-1px); }
.vs-clickable:active { transform: translateY(0); }
.vs-arrow { font-size: 16px; color: var(--text-3); margin-left: 4px; }

.drill-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 2px;
  line-height: 1.4;
}
.drill-subtitle {
  font-size: 12px;
  color: #777;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.drill-stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.drill-stat {
  flex: 1;
  background: linear-gradient(135deg,#eef5ff,#f0f7ff);
  border-radius: var(--radius-sm,8px);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drill-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.2;
}
.drill-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

.drill-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line, #e8ecf0);
}
.drill-section-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-2);
  margin-bottom: 8px;
}

.drill-op-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.drill-op-item {
  font-size: 13px;
  padding: 6px 10px;
  background: #f8fafb;
  border-left: 4px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drill-wl-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.drill-wl-bar span {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.drill-none { font-size: 12px; color: var(--text-3); }

.drill-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}
.town-group-wrap {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 2px;
}
.town-group {
  margin-bottom: 12px;
}
.town-group:last-child {
  margin-bottom: 0;
}
.town-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm,6px);
  background: var(--fill-blue,#eef5ff);
  color: var(--blue,#0070c0);
  font-size: 13px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}
.town-group-head .town-group-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2,#5a6b7f);
}
.town-group-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 镇区级下钻（聪哥 2026-09-08：各镇区默认收起，点镇区名右侧箭头展开该镇区明细） */
.town-head-tap {
  cursor: pointer;
  user-select: none;
}
.town-head-tap:active { opacity: .75; }
.town-arrow {
  font-size: 14px;
  line-height: 1;
  color: var(--blue, #0070c0);
  font-weight: 700;
  margin-left: 6px;
  flex-shrink: 0;
}
.drill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm,6px);
  background: #fafbfc;
  transition: background .12s;
}
.drill-record-tap { cursor: pointer; }
.drill-record-tap:hover { background: var(--fill-blue,#eef5ff); }
.drill-row-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drill-row-op {
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.drill-row-wl {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}
.drill-row-wl.badge-高 { background: #ecfdf5; color: #15803d; }
.drill-row-wl.badge-中 { background: #fff8ed; color: #c2410c; }
.drill-row-wl.badge-低 { background: #fef2f2; color: #b91c1c; }

/* 下钻弹窗头部：横向布局，左侧标题+副标题，右侧"展开明细"按钮 */
.drill-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.drill-head-row .drill-head-text { flex: 1; min-width: 0; }
.drill-head-row .drill-title { margin-bottom: 2px; }
.drill-head-row .drill-subtitle { margin-bottom: 0; }
.drill-toggle-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, color .15s;
  white-space: nowrap;
  margin-top: 2px;
}
.drill-toggle-btn:hover { background: var(--blue-dark, #005a9c); }
.drill-toggle-btn:active { transform: scale(.97); }
.drill-toggle-btn.is-open {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

/* 汇总列表：今日新增/本周走访 默认只显示这部分 */
.drill-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 4px;
}
.drill-row.drill-summary-row {
  padding: 11px 14px;
  background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%);
  border: 1px solid #e0ecff;
}
.drill-row-cnt {
  font-size: 12.5px;
  color: var(--text-3, #777);
  flex-shrink: 0;
}
.drill-row-cnt b {
  font-size: 15px;
  color: var(--blue);
  font-weight: 800;
  margin: 0 1px;
}

/* 明细列表容器：默认 hidden，展开后才显示 */
.drill-detail-list {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e0e6ed;
}
.drill-detail-list[hidden] { display: none; }
.drill-detail-list .drill-section { margin-top: 10px; }
.drill-detail-list .drill-section:first-child { margin-top: 4px; }

.admin-prompt {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 14px;
}
.form-input-center { text-align: center; letter-spacing: 2px; }

/* ════════════════ 底部导航栏 ════════════════ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  z-index: 90;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.tab {
  flex: 1;
  border: none;
  background: none;
  padding: 6px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: var(--text-3);
  transition: color .15s;
}
.tab-ico { font-size: 21px; line-height: 1; }
.tab-label { font-size: 11px; font-weight: 600; }
.tab.active { color: var(--blue); }
.tab.active .tab-label { font-weight: 800; }

/* ════════════════ Toast 提示 ════════════════ */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(.92);
  background: rgba(26,26,46,.88);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease;
  max-width: 82%;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ════════════════ Leaflet 适配 ════════════════ */
.leaflet-control-attribution { font-size: 9px !important; display: none; }

/* ════════════════ 看板数据范围标识 ══════════════════ */
.scope-bar {
  margin: 0 14px 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  border: 1px solid rgba(0,112,192,.18);
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 600;
}
.scope-bar.admin {
  background: #fff4e5;
  border-color: rgba(230,119,46,.3);
  color: #b45309;
}

/* ════════════════ 隐藏兜底 ════════════════ */
[hidden] { display: none !important; }

/* ══ 登录用户条 ══ */
.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 14px 0;
  padding: 7px 12px;
  background: var(--blue-light);
  border: 1px solid rgba(0,112,192,.18);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--blue-dark);
}
.ub-ico { font-size: 15px; }
.ub-phone { font-weight: 700; letter-spacing: .5px; flex: 1; }
.ub-logout {
  border: 1.5px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.ub-logout:active { transform: scale(.97); }

/* ══ 登录 / 注册 网关 ══ */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, rgba(0,112,192,.14), rgba(0,160,233,.10)), var(--bg);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 22px 20px;
  animation: authIn .32s ease;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand-ico { font-size: 40px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,80,160,.18)); }
.auth-brand-name { font-size: 19px; font-weight: 800; color: var(--blue); letter-spacing: 2px; margin-top: 6px; line-height: 1.35; }
.auth-brand-name-sub { font-size: 14px; font-weight: 600; color: var(--blue); opacity: 0.85; letter-spacing: 1px; }
.auth-brand-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 16px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .18s;
}
.auth-tab.active {
  background: var(--card-bg);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.auth-form { display: flex; flex-direction: column; gap: 11px; }
.auth-form[hidden] { display: none !important; }
.auth-tip { font-size: 12px; color: var(--text-3); text-align: center; margin: 14px 0 0; }
.auth-link { background: none; border: none; color: var(--text-3); font-size: 13px; text-align: right; padding: 2px 4px; cursor: pointer; margin-top: 2px; }
.auth-link:hover { color: var(--primary); text-decoration: underline; }
.auth-form-title { font-size: 15px; font-weight: 600; color: var(--text-1); text-align: center; margin-bottom: 2px; }


/* ══ 导出页管理员锁 ══ */
.export-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px;
  background: var(--blue-light);
  border: 1px dashed rgba(0,112,192,.32);
  border-radius: var(--radius-md);
}
.export-lock-ico { font-size: 34px; line-height: 1; }
.export-lock-text { display: flex; flex-direction: column; gap: 4px; }
.export-lock-text b { font-size: 14.5px; color: var(--blue-dark); font-weight: 800; }
.export-lock-text span { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.export-lock .btn { margin-top: 4px; }


/* ══ 他人记录受限详情提示 ══ */
.detail-locked {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--blue-light);
  border: 1px dashed rgba(0,112,192,.32);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ════════════ 首页工作台仪表盘 ════════════ */
.home-dash {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hud-cell {
  background: var(--card-bg);
  border: 1.5px solid var(--border, #e3eaf3);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform .12s ease, border-color .12s ease;
}
.hud-cell.hud-todo { cursor: pointer; }
.hud-cell.hud-todo:active,
.hud-cell.hud-todo:focus { transform: scale(.98); border-color: var(--blue); box-shadow: var(--shadow-md); }
.hud-cell.hud-tap { cursor: pointer; }
.hud-cell.hud-tap:active,
.hud-cell.hud-tap:focus { transform: scale(.98); border-color: var(--blue); box-shadow: var(--shadow-md); }
.hud-cell.hud-tap .hud-lab::after { content: " ›"; color: var(--text-3); }
.hud-cell.hud-warn { border-color: #f59e0b; background: #fff8e8; }
.hud-ico { font-size: 22px; line-height: 1; }
.hud-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.hud-cell.hud-warn .hud-val { color: #d97706; }
.hud-lab {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.hud-block {
  background: var(--card-bg);
  border: 1.5px solid var(--border, #e3eaf3);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
}
.hud-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hud-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1, #22223a);
}
.hud-block-sub {
  font-size: 11.5px;
  color: var(--text-3);
}

.hud-areas { display: flex; flex-direction: column; gap: 8px; }
.hud-area {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--blue-light);
  border-radius: 8px;
  font-size: 13px;
}
.hud-area-name {
  color: var(--text-1, #22223a);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.hud-area-bar {
  flex: 0 0 80px;
  height: 6px;
  background: rgba(0,112,192,.15);
  border-radius: 3px;
  overflow: hidden;
}
.hud-area-bar > i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}
.hud-area-cnt { flex: 0 0 auto; color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }

.hud-recent { display: flex; flex-direction: column; gap: 6px; }
.hud-recent-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.hud-recent-name { font-weight: 600; color: var(--text-1, #22223a); }
.hud-recent-sub { color: var(--text-3); font-size: 12px; }
.hud-recent-meta { margin-left: auto; color: var(--text-3); font-size: 12px; flex: 0 0 auto; }

.hud-empty { color: var(--text-3); font-size: 12.5px; padding: 6px 2px; }

/* ===== 首页 KPI 环比小字（v3.5）===== */
.hud-delta { display: flex; align-items: center; gap: 6px; margin: 2px 0 1px; flex-wrap: wrap; }
.hud-prev { color: var(--text-3); font-size: 11px; }
.hud-delta-num { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 8px; }
.hud-delta-num.hud-up { color: #c0392b; background: #fdecea; }      /* 升=红 */
.hud-delta-num.hud-down { color: #1e8449; background: #e8f8f0; }    /* 降=绿 */
.hud-delta-num.hud-flat { color: var(--text-3); background: #f1f3f5; }

/* ===== 登记达人 Top3（v3.5）===== */
.hud-champ { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 1px; min-height: 58px; justify-content: center; }
.hud-champ-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.hud-champ-name { font-weight: 600; color: var(--text-1, #22223a); }
.hud-champ-cnt { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════
 * 桌面端响应式适配（≥768px 生效）
 * 手机端体验保持不变，纯 CSS 增强
 * ════════════════════════════════════════════════════════════ */

/* 桌面端侧边栏：默认隐藏（手机端） */
.desk-side { display: none; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

@media (min-width: 768px) {

  /* ── 整体布局：侧边栏 + 内容区 ── */
  #app {
    max-width: 1280px;
    flex-direction: row;
    box-shadow: 0 0 60px rgba(0, 40, 100, .08);
  }

  .desk-side {
    display: flex;
    flex-direction: column;
    flex: 0 0 224px;
    width: 224px;
    background: linear-gradient(180deg, #0a4d8c 0%, #052f5e 100%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .side-brand {
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .side-brand-title { font-size: 16px; font-weight: 600; letter-spacing: .5px; line-height: 1.4; }
  .side-brand-sub { font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 5px; }
  .side-nav {
    flex: 1;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .side-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background .12s ease, color .12s ease;
    -webkit-appearance: none;
    appearance: none;
  }
  .side-tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .side-tab.active { background: #fff; color: #0a4d8c; font-weight: 600; }
  .side-ico { font-size: 16px; width: 22px; text-align: center; flex: 0 0 auto; pointer-events: none; }
  .side-label { pointer-events: none; }
  .side-foot { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .side-ver { font-size: 11px; color: rgba(255, 255, 255, .45); }

  .topbar { padding: 12px 24px; }
  .brand-name { font-size: 15px; letter-spacing: 1px; }
  .brand-sub { display: block; }
  .view-wrap { flex: 1; padding: 24px 32px 40px; }
  .tabbar {
    position: sticky;
    bottom: 0;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 6px 32px max(6px, env(safe-area-inset-bottom));
  }

  /* ── 首页：入口卡片 2 列 · 指标卡 4 列 ── */
  .home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hud-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .hud-cell { padding: 18px 14px; }

  /* ── 走访表单：双列（含地图/照片/多图/长文本的组全宽） ── */
  #collectForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    row-gap: 2px;
  }
  #collectForm .form-group:has(.map-section),
  #collectForm .form-group:has(.wcb-section),
  #collectForm .form-group:has(textarea),
  #collectForm .btn-submit { grid-column: 1 / -1; }

  /* ── 看板：明细列表 2 列卡片化 · 汇总区块 2 列 ── */
  #recordList { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #recordList li {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
  }
  #recordList li:last-child { border: 1px solid var(--line); }
  .village-summary, .account-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  /* ── 导出页：按钮 2 列 ── */
  .export-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── 位置页：历史列表 2 列 ── */
  .history-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: none; }
  .history-item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; background: var(--card-bg); }

  /* ── 弹窗：桌面端加宽 ── */
  .modal-panel { max-width: 580px; }
  .modal-sm { max-width: 440px; }
  .modal-content { padding: 22px; }

  /* ── 首页卡片 hover 反馈（桌面端） ── */
  .home-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .home-card:active { transform: scale(.99); }
}

/* ════════════════════════════════════════════════════════════
 * 网格工作台 v2 新板块：话营 / 任务 / 考勤
 * ════════════════════════════════════════════════════════════ */

/* ── 通用：统计卡 ── */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.gstat-cell {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}
.gstat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.3;
  word-break: break-all;
}
.gstat-val .champ-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.gstat-val .champ-row .champ-medal { font-size: 14px; flex-shrink: 0; }
.gstat-val .champ-row .champ-name { font-size: 13px; font-weight: 600; }
.gstat-val .champ-row .champ-cnt { font-size: 13px; font-weight: 700; color: var(--blue); }
.gstat-lab { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.gstat-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.4; min-height: 15px; }
.gstat-multi { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--text-2); line-height: 1.25; }
.gstat-multi .gstat-line { white-space: nowrap; }
.gstat-multi b { color: var(--blue); font-weight: 700; font-size: 12px; margin: 0 2px; }

/* ── 通用：双按钮行 ── */
.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 6px;
}
.panel-actions .btn { margin: 0; }
.panel-actions .btn-ghost { color: var(--blue); border-color: var(--blue-light); }
.panel-actions .btn-ghost:hover { background: var(--blue-light); }

/* ── 通用：区块标题 ── */
.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 2px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── 通用：分段筛选 ── */
.seg-filter {
  display: flex;
  background: #eef1f6;
  border-radius: 10px;
  padding: 3px;
  margin: 10px 0 4px;
}
.seg-item {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.seg-item.active { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 1px 4px rgba(0,80,160,.12); }

/* ── 通用：记录列表 ── */
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

/* ── 话营：通话/录音条目 ── */
.call-item { display: flex; align-items: center; gap: 10px; }
.ci-type {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef1f6;
  color: var(--text-2);
  min-width: 40px;
  text-align: center;
}
.ct-外呼 { background: var(--blue-light); color: var(--blue); }
.ct-呼入 { background: #eafaf1; color: var(--green); }
.ct-回访 { background: #fff4e8; color: var(--orange); }
.ct-跟进 { background: #f0eaff; color: #6c4fd8; }
.ct-金牛客群邀约 { background: var(--blue-light); color: var(--blue); }
.ct-异网客群邀约 { background: #fff4e8; color: var(--orange); }
.ct-千兆接续 { background: #eafaf1; color: var(--green); }
.ct-宽带接续 { background: #e8f3fb; color: var(--blue); }
.ct-历史销户送安防 { background: #f0eaff; color: #6c4fd8; }
.ct-大兵团作战邀约 { background: #fdeef0; color: #c0392b; }
.ct-其他 { background: #eef1f6; color: var(--text-2); }
.ct-rec  { background: #e8f3fb; color: var(--blue); font-size: 14px; padding: 3px 6px; }
.ci-result {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.cr-connected { background: #eafaf1; color: var(--green); }
.cr-failed    { background: #fdeef0; color: #c0392b; }
.cr-unknown   { background: #eef1f6; color: var(--text-2); }
.form-readonly {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 12px;
  background: var(--bg-2, #f6f7f9);
  border-radius: 8px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-3, #999);
  margin-top: 4px;
}
.ci-body { flex: 1; min-width: 0; }
.ci-phone { font-size: 14px; font-weight: 600; color: var(--text); }
.ci-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-owner { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.ci-del, .ci-play {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-3);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ci-del:hover { color: var(--red); background: #fdf0f0; }
.ci-play { color: var(--blue); }
.ci-play:hover { background: var(--blue-light); }
.ci-rec-tag { color: var(--blue); font-size: 11px; }
.form-readonly { background: #f7f9fc; border: 1px solid var(--line, #e5e9f2); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--text-2); }
.form-hint { font-size: 11px; color: var(--text-3, #999); margin-top: 4px; line-height: 1.5; }

/* ── 任务：卡片 ── */
.task-card { display: block; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-title { font-size: 14px; font-weight: 700; color: var(--text); flex: 1; min-width: 0; }
.tk-badge { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tk-st-待办   { background: #eef1f6; color: var(--text-2); }
.tk-st-进行中 { background: var(--blue-light); color: var(--blue); }
.tk-st-已完成 { background: #eafaf1; color: var(--green); }
.tk-st-已逾期 { background: #fdf0f0; color: var(--red); }
.tk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 8px;
}
.tk-pri { padding: 1px 6px; border-radius: 5px; font-size: 11px; }
.tk-pri-高 { background: #fdf0f0; color: var(--red); }
.tk-pri-中 { background: #fff4e8; color: var(--orange); }
.tk-pri-低 { background: #eef1f6; color: var(--text-3); }
.tk-desc { font-size: 13px; color: var(--text-2); margin-top: 8px; background: #f8f9fb; border-radius: 8px; padding: 8px 10px; }
.tk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.tk-src { font-size: 11px; color: var(--text-3); }
.tk-ops { display: flex; gap: 6px; }
.tk-btn {
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.tk-btn-start { background: var(--blue-light); color: var(--blue); }
.tk-btn-done  { background: #eafaf1; color: var(--green); }
.tk-btn-del   { background: #fdf0f0; color: var(--red); }

/* ── 任务：周计划卡 ── */
.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.plan-head b { font-size: 14px; color: var(--text); }
.plan-tag { font-size: 11px; color: var(--blue); background: var(--blue-light); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.plan-row { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ── 考勤 ── */
.attend-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  color: #fff;
  margin: 12px 0;
  box-shadow: 0 6px 20px rgba(0,112,192,.25);
}
.attend-status { font-size: 16px; font-weight: 700; margin-bottom: 14px; opacity: .95; }
.attend-status.st-none { color: #ffe9a8; }
.attend-status.st-in   { color: #d8f5e6; }
.attend-status.st-done { color: #e8f3fb; }
#attendClockArea { display: flex; justify-content: center; gap: 12px; }
.btn-xlg {
  padding: 16px 26px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#btnClockIn  { background: #fff; color: var(--blue); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
#btnClockOut { background: rgba(255,255,255,.92); color: var(--blue-dark); }
.attend-time { margin-top: 12px; font-size: 12px; opacity: .8; }
.attend-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.at-date { font-size: 13px; font-weight: 700; color: var(--text); }
.at-name { font-size: 12px; color: var(--text-3); }
.at-times { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); }
.at-in { color: var(--green); }
.at-out { color: var(--orange); }
.at-dur { color: var(--text-2); font-weight: 600; }

/* ── 弹窗内表单辅助 ── */
.modal-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.audio-name { font-size: 13px; color: var(--text-2); margin-bottom: 12px; word-break: break-all; }
.audio-loading { font-size: 13px; color: var(--text-3); padding: 20px 0; text-align: center; }
.audio-player { margin: 4px 0 12px; }
.audio-player audio { display: block; width: 100%; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; margin: 0; }
.tip-box {
  font-size: 12px;
  color: var(--text-2);
  background: #f0f6ff;
  border: 1px dashed #b9d8f5;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── 桌面端适配（≥768px） ── */
@media (min-width: 768px) {
  .grid-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .gstat-val { font-size: 24px; }
  .call-item, .task-card, .plan-card { padding: 14px 16px; }
  .attend-card { padding: 28px 24px; }
}

/* 测试环境标识徽章 */
.test-badge{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:#ff6b35;color:#fff;font-size:11px;font-weight:600;line-height:1.6;vertical-align:1px;letter-spacing:.5px;}
@media (min-width:768px){.side-brand-sub .test-badge{background:rgba(255,107,53,.9);}}

/* ============================================================
 * v3.0 新增样式 — 四大板块（看板/工作台/填报/导出）
 * ============================================================ */

/* --- 底部导航 4 tab（原5tab改为4tab，间距自动适应） --- */
.tabbar { display: flex; }
.tabbar .tab { flex: 1; }

/* --- 子标签栏（看板/填报内部子菜单） --- */
.sub-tabbar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 52px;
  z-index: 50;
  padding: 0 8px;
}
.sub-tab {
  flex: 0 0 auto;
  min-width: 80px;
  text-align: center;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-2);
  border: none;
  background: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
  transition: color .2s, border-color .2s;
  letter-spacing: .3px;
}
.sub-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}
@media (min-width: 768px) {
  .sub-tabbar { top: 56px; padding: 0 12px; }
  .sub-tab { font-size: 15px; padding: 12px 18px; }
}

/* --- 看板/填报面板切换 --- */
.dash-panel, .report-panel { display: none; }
.dash-panel.active, .report-panel.active { display: block; }
/* 看板纵向长页面（聪哥 2026-08-30 拍板）：四大板块内容直接平铺，不折叠 */
#dash-reg, #dash-invite, #dash-cap, #dash-profiles { display: block; }

/* --- AI 分析卡片 --- */
.ai-card { margin-bottom: 12px; }
.ai-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  min-height: 60px;
}
.ai-loading {
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}
.ai-suggestion {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--blue-dark);
  line-height: 1.6;
}
.ai-suggestion::before {
  content: "💡 ";
}
.ai-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-metric {
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-2);
}
.ai-metric b { color: var(--blue); font-size: 14px; }
.ai-refresh-btn { margin-top: 8px; }

/* --- 商机登记拆分网格 --- */
.reg-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.reg-split-cell {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}
.reg-split-title {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.reg-split-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
}
.reg-split-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.4;
}

/* --- 邀约账号表格（聪哥 2026-08-31 拍板：行=账号，列=4 时段） --- */
.invite-list { display: block; }
.invite-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.invite-thead {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.invite-th-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.invite-th-col {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #d32f2f;        /* 聪哥 2026-08-31 标注：红色横排时段列头 */
}
.invite-tbody { display: flex; flex-direction: column; }
.invite-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px dashed var(--border);
}
.invite-row:last-child { border-bottom: none; }
.invite-row:hover { background: var(--blue-light); }
.invite-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.invite-td {
  text-align: center;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-2);
}
.invite-td b {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.invite-td-unit { color: var(--text-2); font-size: 10.5px; margin-left: 1px; }
.invite-td-sec { color: var(--text-3); font-size: 10.5px; }

@media (max-width: 480px) {
  .invite-thead, .invite-row { padding: 7px 6px; }
  .invite-th-name, .invite-row-name { font-size: 12px; }
  .invite-th-col { font-size: 12px; }
  .invite-td b { font-size: 12.5px; }
  .invite-td-unit, .invite-td-sec { font-size: 10px; }
}

/* --- 界面子标签栏（填报内部四个界面） --- */
.iface-tabs {
  display: flex;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.iface-tab {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  font-size: 12.5px;
  color: var(--text-2);
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  transition: all .2s;
  border-right: 1px solid var(--line);
}
.iface-tab:last-child { border-right: none; }
.iface-tab.active {
  color: #fff;
  background: var(--blue);
  font-weight: 600;
}

/* --- 产能结果填报 --- */
.cap-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cap-date-label { font-size: 13px; color: var(--text-2); }
.cap-date-input {
  border: 1px solid #d8dee6;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  background: #f8fafd;
}
.cap-form-card { margin-bottom: 12px; }
.cap-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
}
.cap-field:last-of-type { border-bottom: none; }
.cap-field-label { font-size: 13.5px; color: var(--text); }
.cap-field-input {
  width: 72px;
  height: 34px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  background: #f8fafd;
}
.cap-field-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.cap-cum-card { margin-bottom: 12px; }
.cap-cum-table-wrap { overflow-x: auto; margin-top: 10px; }
.cap-cum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cap-cum-table th {
  font-size: 11px;
  color: var(--text-3);
  padding: 6px 8px;
  text-align: center;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cap-cum-table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #f0f2f5;
  color: var(--text);
}
.cap-cum-table td:first-child { text-align: left; font-weight: 500; font-size: 12.5px; }
.cap-cum-table .num { font-weight: 600; color: var(--blue); }
.cap-cum-table .today { background: #e8f3fb; }

/* --- 工作饱和度填报 --- */
.sat-form-card { margin-bottom: 12px; }
.sat-auto-card { margin-bottom: 12px; }
.sat-auto-preview { font-size: 13px; color: var(--text-2); }
.sat-auto-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
}
.sat-auto-row:last-child { border-bottom: none; }
.sat-auto-label { font-size: 13px; color: var(--text-2); }
.sat-auto-val { font-size: 14px; font-weight: 600; color: var(--blue); }
.sat-temp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 6px;
  margin-bottom: 6px;
}
.sat-temp-row input {
  height: 32px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text);
  background: #f8fafd;
  min-width: 0;
}
.sat-temp-row input:focus { outline: none; border-color: var(--blue); background: #fff; }
.sat-temp-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.sat-temp-header > div { padding: 0 4px; }
.sat-add-btn {
  margin-top: 6px;
  padding: 6px 12px;
  border: 1px dashed var(--blue);
  border-radius: 6px;
  background: none;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
}

/* --- 导出页新样式 --- */
.export-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.export-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* --- 在线查看（免导出）链接按钮 --- */
.btn-view-link {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px dashed rgba(0,112,192,.38);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .15s;
}
.btn-view-link:hover { background: rgba(0,112,192,.14); }
.btn-view-link:active { background: rgba(0,112,192,.2); }

/* --- 桌面端 4 tab 侧边栏调整 --- */
@media (min-width: 768px) {
  .sub-tabbar { max-width: 100%; }
  .grid-stats { grid-template-columns: repeat(4, 1fr); }
}

/* --- 看板数据范围标识 --- */
.scope-bar {
  display: none;
}

/* ════════════════════════════════════════════════════════
 * v3 优化轮新增样式（看板结论 / 饱和度双模块 / 海报 / 权限 / 通话 / 周计划 / 商客菜单 / 关联人员产能）
 * ════════════════════════════════════════════════════════ */

/* --- AI 一句话结论 --- */
.ai-conclusion {
  margin: 10px 0 6px;
  padding: 8px 12px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: 600;
  line-height: 1.5;
}

/* --- 工作饱和度三模块：商机登记 / 邀约概况 / 本日走访 --- */
.sat-mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.sat-mod {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}
.sat-mod-title { font-size: 12px; color: var(--text-3); margin-bottom: 8px; font-weight: 600; }
.sat-mod-num { font-size: 26px; font-weight: 800; color: var(--blue); line-height: 1.2; }
.sat-mod-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.sat-mod-sub { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.sat-mod-sub b { color: var(--blue); }

/* --- 本日走访情况填报 --- */
.visit-block { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 10px; background: var(--card-bg); }
.visit-block-title { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.visit-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
  resize: vertical;
  min-height: 42px;
  font-family: inherit;
}
.visit-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.visit-input::placeholder { color: var(--text-3); }

/* --- 宣传海报展示区 --- */
.home-posters { margin: 14px 0 4px; }
.poster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.poster-slot {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px dashed var(--line);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-empty { font-size: 13px; color: var(--text-3); }
.poster-clickable { cursor: pointer; }
.poster-clickable:hover { opacity: 0.92; }

/* --- 管理权限弹窗 --- */
.perm-panel { max-height: 86vh; overflow-y: auto; }
.perm-sub { font-size: 12px; color: var(--text-3); margin: -4px 0 12px; }
.perm-block {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.perm-block-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.perm-badge { background: var(--blue); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 8px; }
.perm-empty { font-size: 12px; color: var(--text-3); padding: 8px 0; text-align: center; }
.perm-item-list { display: flex; flex-direction: column; gap: 8px; }
.perm-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm);
}
.perm-item-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.perm-item-info b { color: var(--text); }
.perm-item-info span { color: var(--text-2); font-size: 12px; }
.perm-item-sub { font-size: 11px; color: var(--text-3); }
.perm-item-ops { display: flex; gap: 6px; flex-shrink: 0; }
.perm-st { font-size: 11px; border-radius: 4px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; }
.perm-st-ok { background: #e7f6ef; color: var(--green); }
.perm-st-pending { background: #fff3e6; color: var(--orange); }
.perm-st-rejected { background: #fdeaea; color: var(--red); }

/* --- 通话进行中悬浮条 --- */
.call-active-bar {
  margin: 10px 0;
  padding: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--radius-md);
  color: #fff;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-md);
}
.call-active-info { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.call-active-dot { width: 8px; height: 8px; border-radius: 50%; background: #7cfc98; animation: pulse-dot 1.2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#callActiveTimer { font-variant-numeric: tabular-nums; margin-left: auto; }
.call-active-actions { display: flex; gap: 8px; justify-content: flex-end; }
.call-active-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); }

/* --- 周计划填写表格（周一~周日） --- */
.wp-day-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wp-day-row { display: flex; align-items: center; gap: 8px; }
.wp-day-label { width: 74px; flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wp-day-label b { font-size: 13px; color: var(--text); }
.wp-day-date { font-size: 10px; color: var(--text-3); }
.wp-day-row .form-input { flex: 1; }

/* --- 周计划展示表格 --- */
.plan-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.plan-table th {
  background: var(--blue-light); color: var(--blue-dark); font-weight: 600;
  padding: 6px 8px; text-align: left; font-size: 12px;
}
.plan-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-td-day { width: 96px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.plan-td-date { display: block; font-size: 10px; color: var(--text-3); font-weight: 400; }
.plan-td-plan { color: var(--text); }

/* --- 商客界面两级菜单 --- */
.ke-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ke-menu-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.ke-menu-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.ke-kids-num { font-size: 10px; background: rgba(0,0,0,.08); border-radius: 8px; padding: 0 5px; }
.ke-menu-btn.active .ke-kids-num { background: rgba(255,255,255,.25); }
.ke-sub-area { margin-top: 4px; }
.ke-sub-title { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.ke-people-block { margin-top: 14px; padding: 10px; background: var(--bg); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ke-people-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); width: 100%; }

/* --- 关联人员产能 --- */
.cap-biz-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--card-bg);
}
.cap-biz-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cap-biz-name { font-size: 14px; font-weight: 700; color: var(--text); flex: 1; }
.cap-biz-total-label { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.cap-biz-total-input { width: 84px; flex-shrink: 0; }
.cap-people-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cap-people-label { font-size: 11.5px; color: var(--text-3); margin-right: 4px; width: 100%; }
.cap-people-item { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 6px; padding: 3px 8px; }
.cap-people-name { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.cap-people-input {
  width: 52px; border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 6px; font-size: 13px; text-align: center;
  -moz-appearance: textfield;
}
.cap-people-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.cap-people-total { font-size: 12px; color: var(--blue); white-space: nowrap; }
.cap-people-sum-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }

/* --- 人员画像 --- */
.profile-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .profile-list { grid-template-columns: repeat(4, 1fr); } }
.profile-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.profile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line); }
.profile-avatar { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.profile-name { font-size: 13px; font-weight: 700; color: var(--text); }
.profile-role { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.profile-summary { display: flex; justify-content: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--text-2); }
.profile-summary b { color: var(--blue); }
.profile-extra { margin-top: 6px; font-size: 10px; color: var(--text-3); line-height: 1.5; }
.profile-extra b { color: var(--blue); font-size: 11px; }
.profile-detail { margin-top: 12px; }
.profile-detail-back { margin-bottom: 10px; }
.profile-section { margin-bottom: 12px; }
.profile-section-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.profile-metric-row { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-metric {
  background: var(--bg);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-2);
  flex: 1;
  min-width: 100px;
  text-align: center;
}
.profile-metric b { color: var(--blue); font-size: 15px; display: block; margin-bottom: 2px; }

/* --- 下钻明细弹窗 --- */
.drill-modal-list { max-height: 60vh; overflow-y: auto; }
.drill-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.drill-modal-item:last-child { border-bottom: none; }
.drill-modal-name { font-weight: 600; color: var(--text); }
.drill-modal-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.drill-modal-meta { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.drill-modal-item.drill-modal-click { cursor: pointer; transition: background .15s; }
.drill-modal-item.drill-modal-click:hover { background: var(--blue-light); }
.drill-modal-item.drill-modal-click:active { background: rgba(0,112,192,0.12); }

/* --- 商客全部展开 --- */
.ke-biz-block { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 10px; background: var(--card-bg); }
.ke-biz-title { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.ke-biz-block .cap-field { padding: 6px 0; }
.ke-biz-block .ke-people-block { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.gstat-clickable { cursor: pointer; transition: background .15s; }
.gstat-clickable:hover { background: var(--blue-light); }
.reg-split-clickable { cursor: pointer; }
.reg-split-clickable:hover { background: var(--blue-light); }

/* --- 到期回访提醒：黄色提示卡（参考正式版） --- */
.remind-card-fold { background: #fffbeb; border: 1px solid #fde68a; }
.remind-header-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; }
.remind-header-left { display: flex; align-items: center; gap: 8px; }
.remind-ico { font-size: 16px; }
.remind-title { font-size: 15px; font-weight: 700; color: #92400e; }
.remind-header-right { display: flex; align-items: center; gap: 8px; }
.remind-count-badge { background: #f97316; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.remind-arrow { font-size: 11px; color: #c2410c; transition: transform .2s ease; }
.remind-header-bar.remind-expanded .remind-arrow { transform: rotate(90deg); }
.remind-desc-text { font-size: 12.5px; color: #92400e; padding: 0 14px 10px; line-height: 1.5; }
.remind-body { border-top: 1px dashed #fde68a; }
.remind-card-fold .remind-list { padding: 6px 0; }

/* --- 登记明细：卡片式列表（参考正式版） --- */
.reg-card-list { padding: 0; }
.reg-card-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.reg-card-item:last-child { border-bottom: none; }
.reg-card-item:hover { background: var(--blue-light); }
.reg-card-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: #eee; }
.reg-card-thumb.empty { display: flex; align-items: center; justify-content: center; background: var(--blue-light); color: var(--blue); font-size: 16px; font-weight: 700; }
.reg-card-body { flex: 1; min-width: 0; }
.reg-card-name { font-size: 14px; font-weight: 700; color: var(--text); }
.reg-card-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.reg-card-right { text-align: right; }
.reg-card-will { font-size: 12px; font-weight: 700; color: #2ba471; background: #ecfdf5; padding: 3px 8px; border-radius: 20px; }
.card-header-sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: auto; }

/* --- 异网到期时间分析 --- */
.expire-month-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.expire-month-cell { background: var(--bg); border-radius: var(--radius-md); padding: 10px 8px; text-align: center; cursor: pointer; transition: background .15s; border: 1px solid transparent; }
.expire-month-cell:hover { background: var(--blue-light); border-color: var(--blue); }
.expire-month-cell .em-label { font-size: 12px; color: var(--text-2); }
.expire-month-cell .em-val { font-size: 18px; font-weight: 700; color: var(--blue); margin-top: 2px; }
.expire-month-cell .em-unit { font-size: 11px; color: var(--text-3); }

/* --- 异网到期时间分析：三级下钻（年份→月份→明细） --- */
.expire-hint { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.expire-back { grid-column: 1 / -1; justify-self: start; display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); padding: 4px 12px; border: 1px solid var(--blue); border-radius: 14px; cursor: pointer; user-select: none; background: #fff; margin-bottom: 2px; }
.expire-back:active { opacity: .6; }
/* 明细弹窗：按登记人分组 */
.expire-owner-group { background: var(--bg); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 10px; border-left: 3px solid var(--blue); }
.expire-owner-head { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.expire-owner-head span { font-weight: 500; color: var(--text-3); font-size: 12px; }
.expire-detail-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--line); }
.expire-detail-row:last-child { border-bottom: none; }
.expire-detail-main { min-width: 0; }
.expire-detail-main b { font-size: 13px; color: var(--text); display: block; }
.expire-detail-sub { font-size: 11.5px; color: var(--text-3); display: block; margin-top: 1px; }
.expire-detail-date { font-size: 11.5px; color: var(--text-3); flex-shrink: 0; }

/* --- 异网到期明细：行可点击下钻到完整登记信息 --- */
.expire-detail-click { cursor: pointer; transition: background .15s; }

/* --- 月份卡片运营商分布标签 --- */
.em-op-tags { font-size: 11px; color: var(--text-2); margin-top: 4px; line-height: 1.4; }

/* --- 折叠汇总面板（按村组 / 按账号） --- */
.fold-panel { padding: 0; overflow: hidden; }
.fold-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; user-select: none; }
.fold-header:active { opacity: .7; }
.fold-header-left { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.fold-ico { font-size: 15px; }
.fold-arrow { font-size: 12px; color: var(--text-3); transition: transform .2s; }
.fold-panel.open .fold-arrow { transform: rotate(90deg); }
.fold-body { padding: 0 16px 12px; }
.fold-list { display: flex; flex-direction: column; gap: 6px; }
.fold-row { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.fold-row-name { font-weight: 600; color: var(--text); }
.fold-row-count { font-weight: 700; color: var(--blue); }
.account-row-clickable { cursor: pointer; }
.account-row-clickable:hover { background: var(--blue-light); }

/* --- 异网到期时间嵌入cell内样式 --- */
.expire-embed-hint { font-size: 11px; color: var(--text-3); margin-top: 8px; margin-bottom: 4px; text-align: left; padding-left: 2px; }
/* cell 内部的年份网格更紧凑 */
.reg-split-cell .expire-month-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.reg-split-cell .expire-month-cell { padding: 6px 4px; }
.reg-split-cell .expire-month-cell .em-label { font-size: 11px; }
.reg-split-cell .expire-month-cell .em-val { font-size: 16px; }
.reg-split-cell .expire-month-cell .em-unit { font-size: 10px; }
.reg-split-cell .expire-month-cell .em-op-tags { font-size: 10px; margin-top: 2px; }

/* 工作饱和度卡片：分析区在上，模块在下，增加间距 */
.ai-card .ai-content { margin-bottom: 12px; }

/* ===== 看板·五大界面产能速览带 ===== */
/* ===== 看板·五大界面产能速览带（聪哥 2026-08-30 二次拍板：恢复原横向板式，不做修改） ===== */
.cap-quick-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; padding: 2px; }
.cap-quick-card { flex: 1 1 0; min-width: 92px; min-height: 110px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px 8px; text-align: center; cursor: pointer; transition: box-shadow .15s, transform .1s; box-shadow: 0 1px 3px rgba(0,82,147,.06); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cap-quick-card:active { transform: scale(.96); }
.cap-quick-card .cap-quick-name { font-size: 14px; font-weight: 800; color: var(--text-2); }
.cap-quick-card .cap-quick-val { font-size: 26px; font-weight: 900; color: var(--blue); line-height: 1.25; margin: 3px 0 2px; }
.cap-quick-card .cap-quick-lab { font-size: 9.5px; color: var(--text-3); white-space: nowrap; }
.cap-quick-card .cap-quick-scores { display: none; }

/* 业务分值统一图例（聪哥 2026-08-30 拍板：底部统一框展示，去重） */
.cap-quick-legend-wrap { flex: 0 0 100%; margin-top: 6px; }
.cap-quick-legend { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.cap-quick-legend-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cap-quick-legend-body { display: flex; flex-wrap: wrap; gap: 6px 8px; }

/* ===== 看板·产能分析：五大界面 8大业务占比圆环图（聪哥 2026-08-30 拍板） ===== */
.cap-donut-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cap-donut-card { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,82,147,.05); }
.cap-donut-card:nth-child(4), .cap-donut-card:nth-child(5) { grid-column: span 3; }
/* 结论区（聪哥 2026-08-30 拍板格式） */
.cap-conclusion { margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,82,147,.05); }
.cap-conclusion-title { font-size: 14.5px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.cap-conclusion-item { font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.cap-conclusion-item b { color: var(--blue); font-weight: 700; }
.cap-donut-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cap-donut-name { font-size: 14.5px; font-weight: 800; color: var(--text); }
.cap-donut-scope { font-size: 10.5px; color: var(--text-3); }
.cap-donut-chart { position: relative; width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 1 / 1; }
.cap-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.cap-donut-total { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.1; }
.cap-donut-total-lab { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.cap-donut-legend { columns: 2; column-gap: 10px; margin-top: 10px; }
.cap-donut-lgd-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); white-space: nowrap; break-inside: avoid; padding: 2px 0; }
.cap-donut-lgd-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.cap-donut-lgd-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.cap-donut-lgd-val { flex: 0 0 auto; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cap-donut-empty { column-span: all; text-align: center; font-size: 12px; color: var(--text-3); padding: 18px 0; }
@media (max-width: 640px) {
  .cap-donut-list { grid-template-columns: 1fr; gap: 10px; }
  .cap-donut-card, .cap-donut-card:nth-child(4), .cap-donut-card:nth-child(5) { grid-column: auto; padding: 10px 12px; }
  .cap-donut-total { font-size: 22px; }
  .cap-conclusion { padding: 14px 16px; }
}

/* ===== 看板·整体运营分析 V2（聪哥 2026-08-30 拍板：默认展开 · 固定文案结构） ===== */
.ops-analysis-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 4px 0 8px; box-shadow: 0 1px 4px rgba(0,82,147,.05); }
.ops-analysis-card .ops-conclusion { font-size: 13.5px; font-weight: 600; color: var(--text); background: linear-gradient(90deg, #e8f3fc 0%, rgba(232,243,252,0) 100%); border-left: 3px solid var(--blue); padding: 14px 16px; border-radius: 6px; line-height: 1.8; margin-bottom: 56px; }
.ops-analysis-card .ops-conclusion-lbl { color: var(--blue); font-weight: 700; margin-right: 4px; }
.ops-section-title { font-size: 14px; font-weight: 800; color: #d32f2f; margin: 16px 0 10px; display: flex; align-items: center; gap: 8px; }
.ops-section-title .ops-section-bar { background: #d32f2f; }
.ops-section-bar { display: inline-block; width: 3px; height: 16px; background: var(--blue); border-radius: 2px; }

/* 1、2 两节：左右双格（PC/手机均两列并排），格内三时段竖排
   聪哥 2026-08-31 拍板：两框等高(stretch)，左框三段之间用留白拉开，
   左框最底部文字与右框表格最底部文字齐平 */
.ops-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; align-items: stretch; }
/* 左框（1 从产能维度看）：flex 纵向 + 段间自动均分剩余高度（title 贴顶、末段贴底） */
.ops-box-grid > .ops-section-box:first-child { display: flex; flex-direction: column; justify-content: space-between; }
/* 聪哥 2026-08-31 拍板：左框三段「段落居中」——每段（标题+内容）整体水平居中，段内文字保持左对齐 */
.ops-box-grid > .ops-section-box:first-child { text-align: left; }
.ops-box-grid > .ops-section-box:first-child .ops-section-row-head { text-align: center; }
.ops-box-grid > .ops-section-box:first-child .ops-section-row-body { width: fit-content; max-width: 100%; margin: 0 auto; }
.ops-box-grid > .ops-section-box:first-child .ops-section-line { justify-content: flex-start; }
.ops-box-grid > .ops-section-box:first-child .ops-section-txt { flex: 1 1 auto; }
/* 末段底部 padding 与右框 .ops-sat-card 底部 padding(10px) 一致 → 两侧底部文字齐平 */
.ops-box-grid > .ops-section-box:first-child .ops-section-row:last-child { padding-bottom: 10px; }
@media (max-width: 640px) {
  /* 聪哥 2026-08-31 拍板：手机端两框改为单列堆叠，右框表格不再被挤到逐字换行 */
  .ops-box-grid { grid-template-columns: 1fr; gap: 10px; }
  .ops-section-box { padding: 8px; border-radius: 10px; }
  .ops-section-box .ops-section-title { font-size: 13.5px; margin: 0 0 6px; gap: 4px; }
  .ops-section-box .ops-section-title .ops-section-bar { width: 3px; height: 14px; }
  .ops-section-row { padding: 6px 0; }
  .ops-section-row-head { margin-bottom: 4px; }
  .ops-section-tag { font-size: 10px; padding: 1px 5px; }
  .ops-section-row-body { gap: 3px; }
  .ops-section-line { font-size: 10.5px; gap: 4px; line-height: 1.45; }
  .ops-section-lbl { font-size: 10px; min-width: 28px; padding: 2px 8px; }
  /* 手机端右框卡片底部 padding 为 9px，左框末段同步对齐 */
  .ops-box-grid > .ops-section-box:first-child .ops-section-row:last-child { padding-bottom: 9px; }
}
.ops-section-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ops-section-box .ops-section-title { margin-top: 0; }

.ops-section-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ops-section-row:last-child { border-bottom: none; padding-bottom: 0; }
.ops-section-row-head { margin-bottom: 8px; }
.ops-section-tag { display: inline-block; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.ops-section-row-body { display: flex; flex-direction: column; gap: 8px; }
.ops-section-line { display: flex; align-items: flex-start; gap: 12px; line-height: 1.65; font-size: 12px; color: var(--text-2); }
.ops-section-lbl { flex: none; font-weight: 700; color: #fff; background: var(--blue); font-size: 11px; min-width: 32px; padding: 3px 10px; border-radius: 12px; text-align: center; line-height: 1.4; margin-top: 1px; }
.ops-section-lbl-warn { background: #d32f2f; }
.ops-section-txt { flex: 1 1 auto; }
.ops-section-foot { font-size: 11.5px; color: var(--text-3); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); line-height: 1.6; }


/* ===== 看板·速览带业务分值标签 ===== */
.cap-quick-scores { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 3px; justify-content: center; height: 78px; overflow-y: auto; scrollbar-width: thin; }
.cap-score-tag { display: inline-flex; align-items: center; background: #f0f7ff; border: 1px solid rgba(0,112,192,0.18); border-radius: 10px; padding: 1px 6px; font-size: 10px; line-height: 1.4; color: var(--text-2); white-space: nowrap; }
.cap-score-tag .cap-score-name { color: var(--text-2); }
.cap-score-tag .cap-score-num { margin-left: 3px; color: var(--blue); font-weight: 800; }
/* 8 分及以上业务标红 */
.cap-score-tag.high { background: #fff0f0; border-color: rgba(211,47,47,.25); color: #d32f2f; }
.cap-score-tag.high .cap-score-name,
.cap-score-tag.high .cap-score-num { color: #d32f2f; }
.cap-table-score { display: inline-block; margin-left: 4px; font-size: 10px; color: var(--blue); font-weight: 700; background: #f0f7ff; padding: 0 5px; border-radius: 8px; line-height: 1.5; }

/* ===== 看板·板块小标题 ===== */
.dash-section-title { font-size: 13px; font-weight: 700; color: var(--blue); margin: 14px 4px 2px; display: flex; align-items: center; gap: 6px; }
.dash-section-title .dash-detail-btn { margin-left: auto; font-size: 12px; color: var(--blue); background: transparent; border: none; padding: 2px 4px; cursor: pointer; }
.dash-detail-body { display: none; }
.dash-section-bar { display: inline-block; width: 3px; height: 14px; background: var(--blue); border-radius: 2px; }

/* ===== 看板·统一六项菜单卡片（标题项高一致） ===== */
.dash-sec { display: flex; flex-direction: column; margin: 0 0 16px; }
.dash-sec-head {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; height: 44px;
  padding: 0 4px; margin-bottom: 8px;
  box-sizing: border-box;
}
.dash-sec-head .dash-sec-bar { width: 4px; height: 16px; background: var(--blue); border-radius: 2px; flex: none; }
.dash-sec-head .dash-sec-ico { font-size: 16px; line-height: 1; flex: none; }
.dash-sec-head .dash-sec-title {
  font-size: 14px; font-weight: 800; color: var(--text);
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-sec-head .dash-sec-action {
  flex: none; margin-left: auto;
  display: inline-flex; align-items: center; min-height: 28px;
}
.dash-sec-head .dash-sec-action:empty::before {
  content: ''; display: inline-block; width: 1px; height: 28px;
}
.dash-sec-head .btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; line-height: 1.4; }
.dash-sec-body {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,82,147,.05);
}
.dash-sec-body .grid-stats { margin: 0; }
.dash-sec-body .cap-quick-strip { margin: 0; padding: 0; }
.dash-sec-body .ai-card { margin-bottom: 0; }
.dash-sec-body .card:last-child { margin-bottom: 0; }

/* ===== 看板·整体运营分析下钻（入口卡 + 明细层） ===== */
.ops-drill-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ops-drill-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,82,147,.05); transition: transform .12s, box-shadow .15s; }
.ops-drill-card:active { transform: scale(.98); }
.ops-drill-ico { width: 40px; height: 40px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.ops-drill-ico.ico-blue { background: #e8f3fc; }
.ops-drill-ico.ico-green { background: #e6f7ee; }
.ops-drill-ico.ico-orange { background: #fff3e0; }
.ops-drill-ico.ico-purple { background: #f1ecfb; }
.ops-drill-main { flex: 1; min-width: 0; }
.ops-drill-title { font-size: 13.5px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ops-badge { flex: none; font-size: 10px; padding: 1.5px 8px; border-radius: 999px; font-weight: 700; }
.ops-badge.ok { background: #e6f7ee; color: #0e9f5b; }
.ops-badge.warn { background: #fff3e0; color: #e07b00; }
.ops-drill-sum { font-size: 12px; color: var(--text-2); margin-top: 7px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ops-drill-arrow { flex: none; color: var(--text-3); font-size: 20px; line-height: 1; }

/* 下钻明细层（全屏滑入） */
.ops-drill-overlay { position: fixed; inset: 0; z-index: 1200; background: var(--bg, #f4f7fb); display: none; flex-direction: column; width: 100%; max-width: 480px; margin: 0 auto; }
.ops-drill-overlay.open { display: flex; animation: opsDrillIn .22s ease; }
@keyframes opsDrillIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.ops-drill-head { background: linear-gradient(135deg, #0070C0, #005a9e); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; flex: none; }
.ops-drill-back { font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 8px 2px 0; user-select: none; }
.ops-drill-head-title { flex: 1; font-size: 15.5px; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-drill-refresh { flex: none; border: 1px solid rgba(255,255,255,.55) !important; color: #fff !important; background: rgba(255,255,255,.16) !important; }
.ops-drill-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px 24px; }
/* 下钻层内四大数据模块：手机端 2 列展示 */
.ops-drill-overlay .sat-mod-grid { grid-template-columns: repeat(2, 1fr); }

/* PC 端下钻层放宽，充分利用桌面空间 */
@media (min-width: 768px) {
  .ops-drill-overlay { max-width: 900px; }
  .ops-drill-body { padding: 18px 24px 32px; }
}

/* ===== 看板·从工作饱和度看 两维度分栏（聪哥 2026-08-31 拍板 A 方案） ===== */
.ops-sat-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.ops-sat-card:last-child { margin-bottom: 0; }
.ops-sat-card-title { font-size: 13.5px; font-weight: 700; color: var(--blue); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.ops-sat-card-title::before { content: ""; display: inline-block; width: 3px; height: 14px; background: var(--blue); border-radius: 2px; }
.ops-sat-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ops-sat-table thead th { color: var(--text-3); font-weight: 500; text-align: left; padding: 6px 4px; border-bottom: 1px dashed var(--line); line-height: 1.3; }
.ops-sat-table tbody td { padding: 9px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; line-height: 1.55; color: var(--text-2); }
.ops-sat-table tbody tr:last-child td { border-bottom: none; }
.ops-sat-table tbody tr:hover td { background: #fafbfc; }
.ops-sat-tag { display: inline-block; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; line-height: 1.4; }
.ops-sat-iface { color: var(--blue); font-weight: 700; }
.ops-sat-acc { display: inline-block; background: #fff7e6; color: #c47b00; padding: 1px 6px; border-radius: 3px; font-size: 11.5px; line-height: 1.45; margin-top: 2px; }
.ops-sat-muted { color: var(--text-3); font-style: italic; text-align: center; padding: 14px 4px !important; }
@media (max-width: 640px) {
  .ops-sat-card { padding: 9px 10px; border-radius: 9px; }
  .ops-sat-card-title { font-size: 12.5px; margin-bottom: 6px; }
  /* 手机端表格：固定列宽 + 关键文字 nowrap，避免「登/记/最/多」逐字竖排 */
  .ops-sat-table { font-size: 11.5px; table-layout: fixed; }
  .ops-sat-table thead th { padding: 6px 4px; }
  .ops-sat-table thead th:nth-child(1) { width: 22%; }   /* 时段 */
  .ops-sat-table thead th:nth-child(2) { width: 39%; }   /* 登记最多 / 邀约最多 */
  .ops-sat-table thead th:nth-child(3) { width: 39%; }   /* 登记最少 / 邀约账号 */
  .ops-sat-table tbody td { padding: 7px 4px; line-height: 1.45; word-break: break-word; }
  .ops-sat-tag { font-size: 10px; padding: 1px 6px; white-space: nowrap; }
  .ops-sat-iface { white-space: nowrap; }
  .ops-sat-acc { font-size: 10.5px; padding: 0 5px; white-space: nowrap; }
}

/* 通话类型统计（2026-09-05 新增） */
.ct-stats { display: flex; flex-direction: column; gap: 14px; }
.ct-row-head { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; line-height: 1.6; }
.ct-row-head b { color: var(--text); }
.ct-row-head b:not(:first-child) { color: var(--blue); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 14px; background: #f2f7fc; border: 1px solid #d8e6f3; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.ct-chip b { color: var(--blue); font-weight: 700; }
.ct-chip-top { background: linear-gradient(90deg, #e8f3fc 0%, rgba(232,243,252,0) 100%); border-color: var(--blue); }
.ct-chip-empty { color: var(--text-3); border-style: dashed; background: transparent; }
.ct-iface-name { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed #d8e6f3; }
.ct-period { margin-bottom: 10px; }
.ct-period:last-child { margin-bottom: 0; }
/* 通话类型统计：PC 端左右结构（2026-09-05） */
@media (min-width: 768px) {
  .ct-stats { flex-direction: row; gap: 24px; }
  .ct-row { flex: 1; min-width: 0; }
}
.ct-iface-name { color: #e02020; }
