:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-soft: #e8f0ff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #eef1f6;
  --badge: #e0ecff;
  --badge-text: #1d4ed8;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(31, 41, 55, 0.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }

/* 顶部 */
.topbar { position: relative; background: linear-gradient(135deg, #2563eb, #1e9be6); color: #fff; padding: 20px 18px 28px; text-align: center; }
.topbar__title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: 1px; }
.topbar__sub { margin: 6px 0 0; font-size: 13px; opacity: .9; }
.nav { position: absolute; top: 12px; right: 12px; left: 12px; max-width: none; margin: 0; padding: 0; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; z-index: 5; }
.nav a, .nav button { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.15); color: #fff; cursor: pointer; backdrop-filter: blur(2px); }
.nav a:hover { background: rgba(255,255,255,.28); }

.container { max-width: 720px; margin: 0 auto; padding: 0 14px; }
.container--wide { max-width: 960px; }

/* 搜索 */
.search { margin: -18px auto 8px; position: relative; z-index: 2; }
.search__box { display: flex; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 14px; }
.search__icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search__box input { flex: 1; border: none; outline: none; padding: 15px 10px; font-size: 16px; background: transparent; color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 2px 0; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.region-sel { flex: 1 1 28%; min-width: 92px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; color: var(--text); outline: none; }
.region-sel:focus { border-color: var(--primary); }

.status { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0; }
.results { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card__title { font-size: 17px; font-weight: 700; word-break: break-word; }
.card__badge { flex: none; background: var(--badge); color: var(--badge-text); font-size: 12px; padding: 3px 10px; border-radius: 999px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__tags { display: flex; align-items: center; gap: 6px; flex: none; }
.card__pin { flex: none; background: #fff3b0; color: #92670b; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid #f5df8a; white-space: nowrap; }
.card--pinned { border-left: 4px solid #f0b429; }
.card__row { display: flex; gap: 8px; padding: 4px 0; font-size: 14px; border-top: 1px dashed var(--line); }
.card__row:first-of-type { border-top: none; }
.card__key { color: var(--muted); flex: none; width: 72px; }
.card__val { flex: 1; word-break: break-word; }
/* v1.6.5 多区域 / 多省份：一个区域一个标签 */
.card__row--tags { align-items: flex-start; }
.rtags { display: flex; flex-wrap: wrap; gap: 6px; }
.rtag { display: inline-block; max-width: 100%; background: var(--primary-soft); color: var(--badge-text); font-size: 12.5px; line-height: 1.25; padding: 4px 10px; border-radius: 8px; border: 1px solid #d5e3ff; word-break: break-all; }
.rtag mark { background: #fff3b0; }
.rtag--more { background: var(--card); color: var(--muted); border: 1px dashed var(--line); font: inherit; font-size: 12.5px; cursor: pointer; }
mark { background: #fff3b0; color: inherit; padding: 0 1px; border-radius: 2px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* v1.6 联系电话图标（不明文，点击弹操作条） */
.card__val-muted { color: var(--muted); }
.tel-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: none; border-radius: 50%; background: var(--ok); color: #fff; cursor: pointer; vertical-align: middle; box-shadow: 0 2px 6px rgba(22,163,74,.28); transition: transform .12s ease, background .12s ease; }
.tel-btn:hover { background: #128a3e; }
.tel-btn:active { transform: scale(.92); }
.tel-btn svg { width: 17px; height: 17px; }
.tel-btn--copy { background: var(--primary); box-shadow: 0 2px 6px rgba(37,99,235,.28); }
.tel-btn--copy:hover { background: #1d4ed8; }

/* v1.6 底部操作条（拨打 / 复制） */
.sheet-mask { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.sheet-mask.is-open { opacity: 1; visibility: visible; }
.sheet { width: 100%; max-width: 480px; margin: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-radius: 16px; padding: 18px 16px 14px; box-shadow: 0 -6px 30px rgba(15,23,42,.18); transform: translateY(24px); transition: transform .18s ease; }
.sheet-mask.is-open .sheet { transform: none; }
.sheet__title { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.sheet__num { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 1px; color: var(--text); margin-bottom: 14px; word-break: break-all; }
.sheet__btn { display: block; width: 100%; padding: 12px; margin-top: 8px; border: none; border-radius: 10px; font-size: 15px; text-align: center; cursor: pointer; text-decoration: none; }
.sheet__btn--call { background: var(--ok); color: #fff; }
.sheet__btn--call:hover { background: #128a3e; }
.sheet__btn--copy { background: var(--primary); color: #fff; }
.sheet__btn--copy:hover { background: #1d4ed8; }
.sheet__btn--cancel { background: #f1f3f8; color: var(--muted); }

/* v1.6 轻提示 */
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 120; transform: translate(-50%, 12px); background: rgba(17,24,39,.88); color: #fff; font-size: 14px; padding: 9px 16px; border-radius: 999px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; pointer-events: none; max-width: 80vw; text-align: center; }
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* v1.6 分页加载更多 */
.loadmore { text-align: center; padding: 14px 0 22px; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 6px 14px 28px; }

/* 表单 / 通用 */
.form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; max-width: 420px; margin: 18px auto; }
.form h2 { margin: 0 0 14px; font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.btn { display: inline-block; width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-size: 15px; cursor: pointer; }
.btn--ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn--wx { background: #07c160; text-decoration: none; text-align: center; }
.btn--wx:hover { background: #06ad56; }
.btn--sm { width: auto; padding: 6px 12px; font-size: 13px; }
.btn--danger { background: var(--danger); }
.msg { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.msg--ok { background: #e7f7ec; color: var(--ok); }
.msg--err { background: #fdeaea; color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); }

/* 后台 */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 14px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tabs button { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.tabs button.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
table.tbl th { background: #f8fafc; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag--pending { background: #fff3b0; color: #92670b; }
.tag--approved { background: #e7f7ec; color: var(--ok); }
.tag--rejected { background: #fdeaea; color: var(--danger); }
.tag--admin { background: var(--badge); color: var(--badge-text); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.scope-sel { font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); }
.muted { color: var(--muted); }
.center-narrow { max-width: 460px; margin: 40px auto; text-align: center; }
