* { box-sizing: border-box; }
:root {
  --bg:#f3f5f8; --card:#fff; --line:#e3e8ef; --text:#1f2937; --muted:#6b7280;
  --brand:#1663d6; --brand2:#0b4bb5; --ok:#0e9f6e; --warn:#d97706; --bad:#dc2626; --info:#0284c7;
}
body { margin:0; font:14px/1.6 -apple-system,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; background:var(--bg); color:var(--text); }
header { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; background:linear-gradient(90deg,#0d2f6e,#1663d6); color:#fff; }
.brand { font-size:18px; font-weight:600; }
.brand .sub { font-size:12px; font-weight:400; opacity:.8; margin-left:10px; }
.head-right { display:flex; gap:10px; align-items:center; }
.head-right select { padding:6px 8px; border-radius:6px; border:1px solid #bcd0f0; min-width:220px; }
button { border:1px solid #ccd6e4; background:#fff; color:var(--text); padding:7px 14px; border-radius:7px; cursor:pointer; font-size:13px; }
button:hover { border-color:#9db4d6; background:#f7faff; }
button.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
button.primary:hover { background:var(--brand2); }
button.ghost { background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.5); color:#fff; }
button.danger { color:var(--bad); }
button.small { padding:3px 8px; font-size:12px; }
.tabs { display:flex; flex-wrap:wrap; gap:6px; padding:10px 20px 0; background:#fff; border-bottom:1px solid var(--line); }
.tab { border:1px solid transparent; background:none; padding:10px 20px; border-radius:8px 8px 0 0; font-size:15px; }
.tab.active { background:var(--bg); border-color:var(--line); border-bottom-color:var(--bg); font-weight:600; color:var(--brand); }
main { padding:16px 20px 60px; }
.panel { display:none; }
.panel.active { display:block; }
.bar { display:flex; gap:10px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.bar input { width:260px; }
.hint { color:var(--muted); font-size:12px; }
input, select, textarea { padding:7px 9px; border:1px solid #cbd5e1; border-radius:7px; font-size:13px; }
input:focus, select:focus { outline:2px solid #bfdbfe; border-color:var(--brand); }
.table-wrap { overflow:auto; background:#fff; border:1px solid var(--line); border-radius:10px; max-height:75vh; }
table.grid { border-collapse:collapse; width:100%; font-size:13px; }
table.grid th { position:sticky; top:0; background:#eef3fb; z-index:2; text-align:left; padding:8px 10px; border-bottom:2px solid var(--line); white-space:nowrap; }
table.grid td { padding:7px 10px; border-bottom:1px solid #f0f2f6; vertical-align:top; }
table.grid tr:hover td { background:#f8fbff; }
td input { width:110px; padding:4px 6px; }
td input.wide { width:150px; }
.badge { display:inline-block; padding:1px 8px; border-radius:20px; font-size:12px; white-space:nowrap; }
.b-未核验{background:#f1f5f9;color:#334155}
.b-自动命中,.b-手动指定{background:#e7f6ef;color:var(--ok)}
.b-待人工确认{background:#fef3e2;color:var(--warn)}
.b-无匹配{background:#fdeaea;color:var(--bad)}
.b-查无实名{background:#eef2f7;color:#64748b}
.hit { color:var(--ok); font-weight:600; }
.cand { color:var(--warn); }
.cell-compact { max-width:420px; overflow-wrap:anywhere; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:16px; }
.card h3 { margin:0 0 8px; }
.muted { color:var(--muted); }
.form-row { display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; }
.form-row label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.advanced { margin-top:12px; }
.advanced summary { cursor:pointer; color:var(--muted); }
#configJson { width:100%; font-family:ui-monospace,Menlo,monospace; font-size:12px; margin-top:6px; }
#importMsg { margin-top:10px; }
#toast { position:fixed; right:20px; bottom:20px; display:flex; flex-direction:column; gap:8px; z-index:99; }
#toast div { background:#111827; color:#fff; padding:10px 16px; border-radius:8px; box-shadow:0 4px 14px rgba(0,0,0,.2); max-width:420px; }
#toast div.ok { background:var(--ok); }
#toast div.err { background:var(--bad); }
.counts { display:flex; gap:14px; color:var(--muted); font-size:12px; margin-bottom:8px; flex-wrap:wrap; }
.counts b { color:var(--text); }

/* 支付宝核验队列 */
.verify-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; max-width:820px; box-shadow:0 2px 10px rgba(15,40,90,.05); }
.v-top { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.v-label { color:var(--muted); font-size:12px; }
.v-phone { font-size:44px; font-weight:700; letter-spacing:2px; color:#0d2f6e; cursor:pointer; }
.v-company { color:var(--muted); margin-top:4px; font-size:14px; }
.v-status { font-size:15px; }
.v-cand { margin:14px 0 4px; padding:10px 12px; background:#f7f9fc; border-radius:8px; color:#374151; font-size:13px; max-height:110px; overflow:auto; }
.v-form { display:flex; gap:16px; flex-wrap:wrap; margin:14px 0; }
.v-form label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.v-result { min-height:24px; font-size:15px; margin-bottom:12px; }
.v-result .hit { font-size:16px; }
.v-btns { display:flex; gap:10px; }
button.ghost2 { border-color:#f0c36d; color:#8a5a00; background:#fff7e6; }

/* 手机端适配（红米等安卓浏览器） */
@media (max-width: 700px) {
  header { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .brand { font-size: 16px; }
  .brand .sub { display: block; margin-left: 0; }
  .head-right { width: 100%; flex-wrap: wrap; }
  .head-right select { min-width: 0; flex: 1; }
  .tabs { overflow-x: auto; padding: 8px 10px 0; }
  .tab { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
  main { padding: 12px; }
  .bar { gap: 8px; }
  .bar input, .bar select { width: 100%; }
  .verify-card { padding: 14px; border-radius: 12px; }
  .v-top { flex-direction: column; gap: 8px; }
  .v-phone { font-size: 34px; letter-spacing: 1px; }
  .v-form { gap: 10px; }
  .v-form label { width: 100%; }
  .v-form input { width: 100% !important; font-size: 16px; padding: 10px; }
  .v-btns { flex-wrap: wrap; }
  .v-btns button { flex: 1 1 45%; padding: 12px 10px; font-size: 15px; }
  button { padding: 9px 12px; }
  table.grid { font-size: 12px; }
}

/* ================= 主题 A：清新活力（推广端） ================= */
body.theme-a { background:#f2f8ff; }
body.theme-a header { background:linear-gradient(90deg,#1677ff,#06b6d4,#10b981); }
body.theme-a button.primary { background:linear-gradient(90deg,#1677ff,#10b981); border:0; }
body.theme-a button.primary:hover { filter:brightness(.95); }
body.theme-a .tabs { background:#fff; }
body.theme-a .tab { border-radius:20px; border:1px solid #bfdbfe; background:#eff6ff; color:#1663d6; }
body.theme-a .tab.active { background:#1663d6; color:#fff; border-color:#1663d6; }
body.theme-a .card { border-color:#d1fae5; background:linear-gradient(160deg,#f0f9ff,#ecfdf5); }
body.theme-a table.grid th { background:#eef6ff; color:#0e7490; }
body.theme-a .badge.b-自动命中, body.theme-a .badge.b-手动指定 { background:#dcfce7; color:#059669; }
body.theme-a .hit { color:#059669; }

/* ================= 主题 C：科技数据感（管理端） ================= */
body.theme-c { background:#0b1220; color:#e5e7eb; }
body.theme-c header { background:linear-gradient(90deg,#0ea5e9,#a78bfa); }
body.theme-c .tabs { background:#0f172a; border-bottom-color:rgba(148,163,184,.2); }
body.theme-c .tab { background:rgba(34,211,238,.10); color:#67e8f9; border:1px solid rgba(34,211,238,.35); border-radius:20px; }
body.theme-c .tab.active { background:#22d3ee; color:#06202a; border-color:#22d3ee; }
body.theme-c main { color:#e5e7eb; }
body.theme-c .card, body.theme-c .table-wrap, body.theme-c .verify-card {
  background:linear-gradient(160deg,#111c34,#0b1220); border:1px solid rgba(34,211,238,.30); color:#e5e7eb;
  box-shadow:0 0 18px rgba(34,211,238,.10);
}
body.theme-c table.grid th { background:rgba(34,211,238,.12); color:#67e8f9; border-bottom-color:rgba(34,211,238,.3); }
body.theme-c table.grid td { color:#cbd5e1; border-bottom:1px solid rgba(148,163,184,.18); }
body.theme-c input, body.theme-c select, body.theme-c textarea {
  background:#0b1220; color:#e5e7eb; border-color:rgba(148,163,184,.4);
}
body.theme-c .hint, body.theme-c .muted { color:#94a3b8; }
body.theme-c button { background:#111c34; color:#cbd5e1; border-color:rgba(148,163,184,.4); }
body.theme-c button.primary { background:linear-gradient(90deg,#22d3ee,#a78bfa); border:0; color:#06202a; font-weight:700; }
body.theme-c .hit { color:#34d399; }
body.theme-c .cand { color:#fbbf24; }

/* ===== 栏目（标签栏）统一风格 ===== */
.tabs { align-items:center; gap:8px; padding:12px 20px 10px; }
.tab { font-weight:600; transition:all .15s ease; }
.tab:hover { transform:translateY(-1px); }

/* A：清新活力 —— 标签栏与顶栏呼应 */
body.theme-a .tabs { background:linear-gradient(180deg,#ffffff,#f6fbff); border-bottom:1px solid #dbeafe; }
body.theme-a .tab { background:#f0f7ff; color:#1d4ed8; border:1px solid #dbeafe; }
body.theme-a .tab.active { background:linear-gradient(90deg,#1677ff,#10b981); color:#fff; border-color:transparent; box-shadow:0 3px 12px rgba(22,119,255,.28); }
body.theme-a .tab.active::after { content:""; display:block; height:2px; margin-top:6px; border-radius:2px; background:rgba(255,255,255,.6); }

/* C：科技数据感 —— 标签栏融入暗色 */
body.theme-c .tabs { background:linear-gradient(180deg,#0f172a,#0b1220); border-bottom:1px solid rgba(34,211,238,.25); }
body.theme-c .tab { background:rgba(148,163,184,.10); color:#93c5fd; border:1px solid rgba(148,163,184,.25); }
body.theme-c .tab:hover { border-color:rgba(34,211,238,.5); }
body.theme-c .tab.active { background:linear-gradient(90deg,#22d3ee,#a78bfa); color:#06202a; border-color:transparent; box-shadow:0 0 14px rgba(34,211,238,.45); }

/* ===== 推广端：栏目与按钮统一（与"支付宝核验队列"同款） ===== */
body.theme-a .tabs .tab {
  background:#f0f7ff !important; color:#1d4ed8 !important;
  border:1px solid #dbeafe !important; font-weight:600;
}
body.theme-a .tabs .tab.active {
  background:linear-gradient(90deg,#1677ff,#10b981) !important;
  color:#fff !important; border-color:transparent !important;
  box-shadow:0 3px 12px rgba(22,119,255,.28) !important;
}
body.theme-a button {
  background:#f0f7ff !important; border:1px solid #bfdbfe !important; color:#1663d6 !important;
  font-weight:600;
}
body.theme-a button.primary {
  background:linear-gradient(90deg,#1677ff,#10b981) !important; border:0 !important; color:#fff !important;
}
body.theme-a button:hover { filter:brightness(.96); transform:translateY(-1px); }
body.theme-a button.danger { color:#dc2626 !important; border-color:#fecaca !important; background:#fef2f2 !important; }

/* ===== 推广端：卡片悬浮感（鼠标/手指） ===== */
body.theme-a .card,
body.theme-a .verify-card,
body.theme-a #wechatList > .card,
body.theme-a #feedbackList > .card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
  cursor: default;
}
body.theme-a .card:hover,
body.theme-a .verify-card:hover,
body.theme-a #wechatList > .card:hover,
body.theme-a #feedbackList > .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(22,119,255,.18);
  border-color: #93c5fd !important;
}
body.theme-a .card:active,
body.theme-a .verify-card:active {
  transform: translateY(-1px) scale(.995);
  box-shadow: 0 6px 14px rgba(22,119,255,.22);
}
@media (hover: none) {
  body.theme-a #wechatList > .card:active,
  body.theme-a #feedbackList > .card:active {
    transform: scale(.985);
    box-shadow: 0 6px 16px rgba(22,119,255,.2);
  }
}

/* ===== 管理端：卡片悬浮感（霓虹发光） ===== */
body.theme-c .card,
body.theme-c .verify-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
body.theme-c .card:hover,
body.theme-c .verify-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,.75) !important;
  box-shadow: 0 0 24px rgba(34,211,238,.35), 0 10px 26px rgba(0,0,0,.45);
}
body.theme-c .card:active,
body.theme-c .verify-card:active {
  transform: translateY(-1px) scale(.995);
  box-shadow: 0 0 14px rgba(167,139,250,.45);
}
body.theme-c table.grid tr:hover td { background: rgba(34,211,238,.06); }

/* 卡片文字：按主题配色，避免深色主题下文字看不清 */
body.theme-a .card-title { color:#0d2f6e; }
body.theme-c .card-title { color:#f1f5f9; }
body.theme-c .card .muted, body.theme-c .card small { color:#94a3b8 !important; }
body.theme-a .card-link { color:#1663d6; cursor:pointer; }
body.theme-c .card-link { color:#22d3ee !important; cursor:pointer; }
body.theme-c .card div, body.theme-c .card label { color:#e5e7eb; }
body.theme-c .card input, body.theme-c .card select { color:#e5e7eb; background:#0b1220; }

/* 待确认卡片的文字（企业名称/候选）按主题配色 */
body.theme-a .card-title { color:#0d2f6e; }
body.theme-c .card-title, body.theme-c .card .card-title { color:#f1f5f9 !important; }
body.theme-c #wechatList .card div, body.theme-c #wechatList .card span { color:#e5e7eb; }

/* 核验队列大号手机号：按主题配色 */
body.theme-a .v-phone { color:#0d2f6e; }
body.theme-c .v-phone { color:#22d3ee; text-shadow:0 0 14px rgba(34,211,238,.45); }
body.theme-c .v-company, body.theme-c .v-label { color:#94a3b8 !important; }
body.theme-c .v-cand { background:rgba(148,163,184,.12); color:#cbd5e1; }
body.theme-c .v-result { color:#e5e7eb; }

/* 数据报表：每日核验明细（深色主题可读性） */
body.theme-c .dayCard { background:linear-gradient(160deg,#111c34,#0b1220) !important; border-color:rgba(34,211,238,.3) !important; }
body.theme-c .dayCard summary { color:#e5e7eb !important; }
body.theme-c .dayCard summary b { color:#67e8f9 !important; }
body.theme-c .dayCard table.grid td { color:#cbd5e1 !important; }
body.theme-c .dayCard table.grid th { color:#67e8f9 !important; }
body.theme-c .dayCard .muted, body.theme-c .dayCard small { color:#94a3b8 !important; }
body.theme-c .dayCard .badge { color:#06202a !important; }
body.theme-c .hint { color:#94a3b8 !important; }

/* 汇总结果：企业分组行（深色主题可读） */
body.theme-c table.grid tr[style*="#eef4ff"] { background:rgba(34,211,238,.10) !important; }
body.theme-c table.grid tr[style*="#eef4ff"] td { color:#e5e7eb !important; }
body.theme-c table.grid tr[style*="#eef4ff"] b { color:#22d3ee !important; }
body.theme-c table.grid tr[style*="#eef4ff"] .muted { color:#94a3b8 !important; }
body.theme-c table.grid tr[style*="#eef4ff"] span[style*="color:#0e9f6e"] { color:#34d399 !important; }
body.theme-c table.grid tr[style*="#eef4ff"] span[style*="color:#b45309"] { color:#fbbf24 !important; }
body.theme-c table.grid td { color:#cbd5e1; }
body.theme-c table.grid td b { color:#e5e7eb; }

/* ===== 企业详情：卡片 ===== */
#detailList > .card.detail-card { margin:0; padding:16px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.person-chip {
  display:inline-block; padding:3px 10px; border-radius:16px; font-size:13px;
  background:#eef6ff; border:1px solid #dbeafe; color:#1e3a8a;
}
.person-chip b { color:#b45309; }
.person-chip small { color:#64748b; }
.contact-row {
  display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center;
  padding:6px 0; border-top:1px dashed var(--line); font-size:13px;
}
.contact-row:first-child { border-top:0; }

/* 企业详情卡片：悬浮感（与微信添加/数据反馈一致） */
body.theme-a .detail-card, body.theme-c .detail-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.theme-a #detailList > .card:hover {
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(22,119,255,.16);
  border-color:#bfdbfe;
}
body.theme-c #detailList > .card:hover {
  transform:translateY(-3px);
  border-color:rgba(34,211,238,.75) !important;
  box-shadow:0 0 24px rgba(34,211,238,.35), 0 10px 26px rgba(0,0,0,.45);
}

/* 深色主题下企业详情文字 */
body.theme-c .person-chip { background:rgba(34,211,238,.12); border-color:rgba(34,211,238,.3); color:#a5f3fc; }
body.theme-c .person-chip b { color:#fbbf24; }
body.theme-c .person-chip small { color:#94a3b8; }
body.theme-c #detailList .contact-row { border-top-color:rgba(148,163,184,.25); }
body.theme-c #detailList > .card div { color:#e5e7eb; }
body.theme-c #detailList > .card details .muted { color:#94a3b8 !important; }

/* 企业详情：元信息行 / 键值行 / 经营范围 */
.meta-row { display:flex; flex-wrap:wrap; gap:6px 10px; margin-top:8px; }
.meta-item {
  display:inline-flex; align-items:baseline; gap:4px;
  padding:2px 10px; border-radius:8px; font-size:13px;
  background:#f1f5f9; border:1px solid #e2e8f0; color:#0f172a;
}
.meta-item em { font-style:normal; color:#64748b; font-size:12px; }
#detailList .kv { margin-top:6px; font-size:14px; line-height:1.5; }
#detailList details.scope { margin-top:8px; }
#detailList details.scope > summary {
  cursor:pointer; font-weight:600; list-style:revert;
  display:inline-block; padding:2px 10px; border-radius:8px;
  background:#eff6ff; border:1px solid #dbeafe; color:#1d4ed8; font-size:13px;
}
#detailList details.scope[open] > summary { margin-bottom:4px; }

body.theme-c .meta-item { background:rgba(148,163,184,.12); border-color:rgba(148,163,184,.28); color:#e2e8f0; }
body.theme-c .meta-item em { color:#94a3b8; }
body.theme-c #detailList details.scope > summary { background:rgba(34,211,238,.12); border-color:rgba(34,211,238,.3); color:#67e8f9; }
body.theme-c #detailList .kv { color:#e5e7eb; }

/* 企业详情：搜索框（两行高度，可拉伸） */
textarea:focus { outline:2px solid #bfdbfe; border-color:var(--brand); }
#detailSearch { min-height:52px; font-size:13px; line-height:1.4; }
body.theme-c #detailSearch { background:#0b1220; color:#e5e7eb; border-color:rgba(148,163,184,.4); }

/* 企业详情：卡片可折叠（默认折叠） */
summary.detail-summary {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
  cursor:pointer; list-style:none; outline:none;
}
summary.detail-summary::-webkit-details-marker { display:none; }
summary.detail-summary::marker { content:""; }
summary.detail-summary::before {
  content:"▶"; font-size:11px; color:#94a3b8; flex:0 0 auto;
  transition:transform .15s ease;
}
details.detail-card[open] > summary.detail-summary::before { transform:rotate(90deg); }
.detail-name { font-size:16px; font-weight:800; color:#0d2f6e; }
.detail-sub { font-size:12px; color:#64748b; }
.detail-cnt { font-size:12px; color:#059669; margin-left:auto; white-space:nowrap; }
.detail-body { margin-top:10px; border-top:1px dashed var(--line); padding-top:8px; }

body.theme-c .detail-name { color:#f1f5f9; }
body.theme-c .detail-sub { color:#94a3b8; }
body.theme-c .detail-cnt { color:#34d399; }
body.theme-c .detail-body { border-top-color:rgba(148,163,184,.25); }

/* 核验队列：支付宝显示名提示（最多两行，移动端也整齐） */
#vDispLabel .v-disp-hint { display:block; line-height:1.45; }
#vDispLabel .v-disp-hint small { font-size:12px; color:var(--muted); }
body.theme-c #vDispLabel .v-disp-hint, body.theme-c #vDispLabel .v-disp-hint small { color:#94a3b8; }

/* 核验队列：把"支付宝显示名"这一项从 flex 改回普通块，
   避免 label 被 flex-column 拆成多行 */
#vDispLabel { display:block !important; width:100%; max-width:460px; }
#vDispLabel .v-disp-hint { display:block; margin-bottom:4px; }
#vDispLabel input { margin-top:0; }

/* 企业详情：数据来源小标签 */
.src-tag {
  display:inline-block; margin-left:6px; padding:1px 7px; border-radius:10px;
  font-size:11px; background:#fff7ed; color:#b45309; border:1px solid #fed7aa;
}
body.theme-c .src-tag { background:rgba(251,191,36,.14); color:#fbbf24; border-color:rgba(251,191,36,.35); }

/* 数据反馈：卡片也可折叠（与企业详情同一套样式） */
details[open] > summary.detail-summary::before { transform:rotate(90deg); }   /* 通用：箭头旋转 */
.kv { margin-top:6px; font-size:14px; line-height:1.5; }
.fb-card > summary.detail-summary { gap:8px 10px; }
.fb-card .detail-body { margin-top:8px; }
.fb-card .detail-body label { display:block; margin-top:8px; }
.fb-card .detail-body input, .fb-card .detail-body select { margin-top:3px; }
body.theme-c .fb-card .kv { color:#e5e7eb; }
body.theme-c .fb-card .detail-body { border-top-color:rgba(148,163,184,.25); }

/* 标签页数量角标 */
.tab-cnt {
  display:none; margin-left:6px; padding:0 7px; border-radius:10px;
  font-size:11px; line-height:18px; font-weight:700; vertical-align:1px;
  background:#e11d48; color:#fff; min-width:18px; text-align:center;
}
.tab-cnt.show { display:inline-block; }
body.theme-a .tab-cnt { background:#e11d48; }
body.theme-c .tab-cnt { background:#f43f5e; color:#fff; }
body.theme-a .tab.active .tab-cnt { background:#fff; color:#1663d6; }
body.theme-c .tab.active .tab-cnt { background:#06202a; color:#67e8f9; }

/* ===== 顶栏：标题+账号 同行，按钮靠最右 ===== */
.brand { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.brand-user { font-size:13px; font-weight:400; opacity:.85; white-space:nowrap; }
.head-right { margin-left:auto; }
.head-btns { display:flex; gap:10px; align-items:center; margin-left:auto; }
.cur-user { color:#fff; opacity:.9; }

/* ===== 手机端整体适配 ===== */
@media (max-width: 700px) {
  header { flex-direction:column; align-items:stretch; gap:8px; padding:10px 12px; }
  .brand { font-size:16px; gap:8px; line-height:1.3; }
  .brand-user { font-size:12px; }
  .head-right { width:100%; display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
  .head-right select { min-width:0; flex:1; }
  .head-btns { margin-left:auto; gap:6px; flex:0 0 auto; }
  .head-btns button { padding:9px 12px; font-size:13px; white-space:nowrap; }
  .cur-user { display:none; }              /* 账号名已在标题旁，不再重复显示 */

  /* 标签栏：横向滚动，更紧凑 */
  .tabs { padding:8px 10px 0; gap:5px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .tab { padding:8px 12px; font-size:13px; flex:0 0 auto; }
  .tab-cnt { margin-left:4px; padding:0 6px; font-size:10px; line-height:16px; min-width:16px; }

  main { padding:12px 10px 70px; }
  .bar { gap:8px; }
  .bar input, .bar select, .bar textarea { width:100% !important; }
  .table-wrap { max-height:65vh; }

  /* 企业详情 / 数据反馈 折叠卡片：摘要换行更自然 */
  summary.detail-summary { gap:6px 8px; }
  .detail-name { font-size:15px; }
  .detail-cnt { margin-left:0; }

  /* 按钮在手机上更好点按 */
  button.small { padding:6px 10px; font-size:12px; }
  #detailSearch { width:100% !important; }
}

/* ===== 手机端顶栏：强制压成一行（标题 + 账号 + 刷新 + 退出）===== */
@media (max-width: 700px) {
  header {
    flex-direction: row; flex-wrap: nowrap;
    align-items: center; gap: 6px;
    padding: 8px 10px;
  }
  .brand {
    font-size: 14px; font-weight: 600; gap: 5px;
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap;
    overflow: hidden; white-space: nowrap;
  }
  .brand-user { font-size: 11px; opacity: .9; }
  .head-right {
    width: auto !important; flex: 0 0 auto; margin-left: auto;
    flex-wrap: nowrap; gap: 4px;
  }
  .head-btns { margin-left: 0; gap: 4px; }
  .head-btns button {
    padding: 6px 8px; font-size: 12px; line-height: 1.2;
    white-space: nowrap; border-radius: 6px;
  }
  .cur-user { display: none; }
}

/* 超窄屏（≤360px）再缩一点，尽量保持一行 */
@media (max-width: 360px) {
  header { gap: 4px; padding: 7px 8px; }
  .brand { font-size: 12.5px; gap: 3px; }
  .brand-user { font-size: 10px; }
  .head-btns button { padding: 5px 6px; font-size: 11px; }
}
