/* ============================================================
 * 走失宠物互助小程序 · 公共样式（common.css）
 * 所有走失小程序页面统一引用本样式，禁止页内重复造轮子
 * 主题：Fresh Gradient（橙 F0782E / 青绿 2BA389 / 暖底 FFF9F3）
 * ============================================================ */
:root {
  --accent: #F0782E;
  --accent2: #2BA389;
  --bg: #FFF9F3;
  --ink: #2C2118;
  --muted: #8A7A6C;
  --line: #F2E4D5;
  --gold: #D9A441;
  --purple: #7B5BA6;
  --red: #E5484D;
  --blue: #3B82F6;

  /* ---------- 字体契约（2026-09-23） ----------
     原字体栈只有 'PingFang SC' 覆盖中文，而它是 Apple 专属：
     Windows / Android 上中文只能落到 body 未声明的系统默认，
     导致同一页面在三端出现三种中文字形与字重观感。
     下面按「拉丁先行 + 中文显式命中」排，命中优先级从高到低：
       -apple-system / BlinkMacSystemFont   Apple 系统字（Mac / iOS 视觉与旧版完全一致）
       'Segoe UI Variable Text' / 'Segoe UI'  Windows 11 / 10 拉丁
       Roboto                                Android 拉丁
       'PingFang SC'                         国行 iOS / macOS 中文（旧版唯一覆盖项）
       'HarmonyOS Sans SC' / 'MiSans'        华为 / 小米机型（国产 Android 主力）
       'Noto Sans SC' / 'Source Han Sans SC' 原生 Android / Linux
       'Microsoft YaHei UI' / 'Microsoft YaHei'  Windows 中文（旧版落到未声明默认的元凶）
     末尾 emoji 族显式兜底：页面已全面改用 SVG 图标，此处只兜住用户输入的文本，
     防止其中符号被中文字体以单色字形渲染出来。
     ⚠️ 本变量只决定「用哪套字形」，不含任何字号 / 行高 / 字距 → 对既有页面零布局影响。 */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI',
          Roboto, 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Noto Sans SC',
          'Source Han Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei',
          Helvetica, Arial, sans-serif,
          'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #EDE6DD;
  color: var(--ink);
  /* 字形渲染：macOS / iOS 关闭亚像素加粗，避免小号中文糊成一团；
     Windows 保持 ClearType 默认。两者都不改变字号与行高。 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 数字等宽：金额、计数、天数这类需要纵向对齐的数字位。
   只改字形宽度（tabular-nums），不改字号 —— 位数变化时不再左右抖动。 */
.tnum,
.info-grid .gv b,
.trace-entry .tv,
.chist .ch-t .cn { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- 手机壳容器 ---------- */
.phone-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(44, 33, 24, .12);
}

/* ---------- 小程序 web-view 内（2026-10-04 双标题栏修复） ----------
 * 标记类由 common.js 早期挂上（UA 含 miniProgram ⇒ html.mp-webview）。
 * 小程序原生导航栏已在顶部，H5 的仿真状态栏（9:41）与自绘标题栏若再渲染
 * 就是「双重标题栏」（真机预览实测）。两类均为普通流内元素，直接隐藏即可，
 * page-body 顺位上移、无 padding 残留。普通浏览器（含微信内 H5）不受影响。 */
html.mp-webview .status-bar { display: none !important; }
html.mp-webview .nav-bar { display: none !important; }

/* ---------- 小程序 web-view：底栏 tab 冻结（2026-10-04） ----------
 * .phone-wrap 是 min-height:100vh，.page-body 缺 min-height:0 ⇒ 长内容把壳整体
 * 撑高、页面整体滚动，tabbar 跟在内容末尾要滚到底才见（真机实测）。
 * web-view 内锁定壳为视口高并允许 page-body 收缩内滚 —— tabbar 冻结在底部。
 * 普通浏览器（mp-plain）保持整体滚动的手机壳原型形态不变。 */
html.mp-webview .phone-wrap { height: 100vh; }
html.mp-webview .page-body { min-height: 0; }

/* ---------- 小程序 web-view 返回条（2026-10-04） ----------
 * common.js 仅在 mp-webview 下往 .phone-wrap 顶部注入：单页壳原生栏无返回键，
 * 页面需一条精简返回条。普通浏览器不注入、无此元素。 */
.mp-back-bar {
  display: flex; align-items: center; flex: none;
  height: 38px; padding: 0 10px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mp-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 4px 10px 4px 4px; margin-left: -4px; border-radius: 8px;
}
.mp-back-btn:active { background: var(--bg); }
.status-bar {
  height: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex: none;
}
.status-bar .sb-l { font-weight: 600; }
.status-bar .sb-r { display: flex; gap: 5px; align-items: center; }

/* ---------- 顶部导航栏 ---------- */
.nav-bar {
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  flex: none;
  position: relative;
}
.nav-bar .nb-l { width: 28px; display: flex; }
.nav-bar .nb-back {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 50%;
}
.nav-bar .nb-back:active { background: rgba(255,255,255,.2); }
.nav-bar .nb-t {
  font-size: 16px; font-weight: 600;
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-bar .nb-r { width: 28px; display: flex; justify-content: flex-end; font-size: 18px; }
.nav-bar.plain { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-bar.plain .nb-back { color: var(--ink); }
.nav-bar .nb-sub { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; opacity: .85; }

/* ---------- 内容区 ---------- */
.page-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* ---------- 底部导航（tabBar · 微信经典式） ---------- */
.tabbar {
  flex: none;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  padding: 6px 0 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.tabbar .tab {
  flex: 1;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  padding: 2px 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tabbar .tab .ic {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
/* 图标一律来自公共图标集 wb-icons.js，尺寸在此统一收口（原 emoji 兜底字号已删除） */
.tabbar .tab .ic .wb-ico { width: 24px; height: 24px; display: block; }
.tabbar .tab.on { color: var(--accent); font-weight: 700; }
.tabbar .tab:active { background: var(--bg); }

/* ---------- 定位条 ---------- */
.locbar {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--ink);
  margin: 10px 12px 8px;
  box-shadow: 0 2px 8px rgba(44,33,24,.06);
  flex: none;
}
.locbar .lb-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locbar b { color: var(--accent); white-space: nowrap; }
.locbar .lb-refresh { font-size: 14px; color: var(--muted); padding: 4px; }

/* ---------- 模拟地图 ---------- */
.gmap {
  position: relative;
  height: 240px;
  margin: 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg,#EAF3EA,#E3EFE6);
  box-shadow: inset 0 0 0 1px #DCE8DC;
  flex: none;
}
.gmap::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 46px, #ffffff 46px 49px),
              repeating-linear-gradient(90deg, transparent 0 46px, #ffffff 46px 49px);
}
.gmap .park { position: absolute; width: 74px; height: 56px; background: #BFE0C0; border-radius: 10px; left: 12px; top: 20px; opacity: .9; }
.gmap .park2 { position: absolute; width: 60px; height: 44px; background: #CFE7CE; border-radius: 10px; right: 16px; bottom: 16px; opacity: .9; }
.gmap .water { position: absolute; width: 88px; height: 34px; background: #A8CFE0; border-radius: 999px; right: 26px; top: 14px; opacity: .85; }
.gmap .marker {
  position: absolute; transform: translate(-50%,-100%);
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.gmap .marker .pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(44,33,24,.25); border: 2px solid #fff;
}
.gmap .marker .pin span { transform: rotate(45deg); font-size: 16px; }
.gmap .marker .lbl {
  margin-top: 2px; background: rgba(255,255,255,.92); border-radius: 6px;
  font-size: 10px; padding: 1px 5px; color: var(--ink); font-weight: 700;
  box-shadow: 0 1px 4px rgba(44,33,24,.15); white-space: nowrap;
}
.gmap .marker.active .pin { box-shadow: 0 0 0 3px rgba(240,120,46,.45); }
.gmap .me {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--blue);
  border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(59,130,246,.4), 0 2px 6px rgba(44,33,24,.2);
}
.gmap .range {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px dashed rgba(59,130,246,.5);
}

/* ---------- 地图控制 chips ---------- */
.mapctrl { display: flex; gap: 8px; margin: 8px 12px 0; align-items: center; flex: none; overflow-x: auto; scrollbar-width: none; }
.mapctrl::-webkit-scrollbar { display: none; }
.mapctrl .chip {
  font-size: 11px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; font-weight: 600; white-space: nowrap;
}
.mapctrl .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 宠物列表 ---------- */
.plist { padding: 6px 12px 12px; }
.pitem {
  display: flex; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; cursor: pointer;
  transition: .15s;
}
.pitem.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(240,120,46,.18); }
.pitem .av { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
/* 有照片时用缩略图铺满方框；下面的 .ph 是「图挂了/加载中」的兜底层 */
.pitem .av.photo { position: relative; padding: 0; overflow: hidden; background: #F7F3EE; font-size: 22px; }
.pitem .av.photo .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pitem .av.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 图片真的解码成功后才收起兜底层（透明图也不会透出底下的物种字） */
.pitem .av.photo.ok .ph { display: none; }
.pitem .mi { flex: 1; min-width: 0; }
.pitem .mi .n { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pitem .mi .n .badge { font-size: 9px; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.pitem .mi .n .badge.found { background: var(--accent2); }
.pitem .mi .sub { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitem .di { font-size: 12px; font-weight: 700; color: var(--accent2); flex: none; align-self: center; }
.pitem .dt { font-size: 10px; color: #C8B8A8; flex: none; align-self: center; margin-left: 4px; }

/* ---------- 空状态 / 加载 / 错误 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.empty .big { font-size: 40px; }
.empty .t { font-size: 14px; font-weight: 700; }
.empty .d { font-size: 11px; color: var(--muted); line-height: 1.5; }
.empty .btn { margin-top: 6px; }
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px; color: var(--muted); font-size: 12px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用按钮 ---------- */
.btn {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, #F0782E, #E8621C);
  color: #fff; border-radius: 12px; padding: 12px 0;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(240,120,46,.28);
}
.btn:active { transform: scale(.985); }
.btn.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; font-weight: 600; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.sm { padding: 8px 0; font-size: 13px; border-radius: 10px; display: inline-block; width: auto; padding-left: 18px; padding-right: 18px; }
.btn.ok { background: linear-gradient(135deg, #2BA389, #1F8A72); box-shadow: 0 4px 12px rgba(43,163,137,.28); }
.btn:disabled { opacity: .6; }

/* ---------- 表单 ---------- */
.form { padding: 8px 12px 20px; }
.fphoto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.fphoto .cell {
  aspect-ratio: 1; border-radius: 10px; background: #F7F3EE;
  border: 1px dashed #E5D6C4; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #C8B8A8; position: relative; overflow: hidden; cursor: pointer;
}
.fphoto .cell.has { background: #FFF3E6; border-style: solid; }
.fphoto .cell.has .pet { font-size: 28px; }
.fphoto .cell .del {
  position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(44,33,24,.55); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.fgroup { margin-bottom: 12px; }
.fgroup .lab { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.fgroup .lab .req { color: var(--accent); }
.fin, .fsel, .farea {
  width: 100%; border: 1px solid #E5D6C4; border-radius: 9px;
  padding: 10px 12px; font-size: 13px; background: #fff; color: var(--ink);
}
.farea { resize: none; height: 64px; }
.fgroup.err .fin, .fgroup.err .fsel { border-color: var(--red); background: #FFF2F2; }
.fgroup .msg { display: none; font-size: 10px; color: var(--red); margin-top: 3px; }
.fgroup.err .msg { display: block; }
.fselwrap { position: relative; }
.fselwrap::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }
.fsel { appearance: none; -webkit-appearance: none; padding-right: 32px; }

/* ---------- 卡片 / 信息网格 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.card .ct { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12px; }
.info-grid .gv b { color: var(--ink); }
.info-grid .gv span { color: var(--muted); }
.desc { margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ---------- 详情 hero ---------- */
.hero {
  position: relative; height: 200px; margin: 10px 12px 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 84px;
  background: linear-gradient(135deg,#FFE3C2,#FFD9E8); overflow: hidden; flex: none;
}
.hero .st {
  position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 3px 9px;
}
.hero .st.ok { background: var(--accent2); }
.hero .st.search { background: var(--blue); }
.hero .st .t { font-size: 10px; font-weight: 700; }
.hero .st.t { background: var(--gold); }

/* ---------- 联系操作区 ---------- */
.ctct { display: flex; gap: 8px; margin-bottom: 10px; }
.ctct .cc {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px; text-align: center; font-size: 11px; font-weight: 700; cursor: pointer;
}
.ctct .cc .ic { font-size: 18px; display: block; margin-bottom: 2px; }
.ctct .cc:active { background: var(--bg); }

/* ---------- 入口行 ---------- */
.trace-entry {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; cursor: pointer;
}
.trace-entry .tk { font-size: 13px; font-weight: 700; flex: none; }
.trace-entry .tv { flex: 1; font-size: 11px; color: var(--accent2); font-weight: 700; text-align: right; }
.trace-entry .ta { color: #C8B8A8; font-size: 15px; }

/* ---------- 统计卡 ---------- */
.sum { display: flex; gap: 8px; padding: 10px 12px 4px; }
.sum .scard { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px; text-align: center; }
.sum .scard .n { font-size: 19px; font-weight: 700; color: var(--accent); }
.sum .scard .t { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ---------- Tab 切换（带 URL 后缀） ---------- */
.tabs { display: flex; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.tabs .ti { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; color: var(--muted); cursor: pointer; font-weight: 700; }
.tabs .ti.on { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- 记录/线索条目 ---------- */
.tl { padding: 8px 12px 14px; }
.trec {
  display: flex; gap: 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; cursor: pointer;
}
.trec .ic { width: 36px; height: 36px; border-radius: 9px; background: #FFF3E6; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.trec .bd { flex: 1; min-width: 0; }
.trec .bd .n { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trec .bd .n .stt { font-size: 9px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.trec .bd .n .stt.w { background: #FFF3E6; color: var(--accent); }
.trec .bd .n .stt.m { background: #F1EDF7; color: #7A6CA6; }
.trec .bd .n .stt.o { background: #E6F5EF; color: var(--accent2); }
.trec .bd .s { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.trec .bd .more { display: none; margin-top: 6px; padding: 7px; background: #F7F3EE; border-radius: 8px; font-size: 11px; color: #51453A; line-height: 1.5; }
.trec.open .bd .more { display: block; }
.trec .ti { font-size: 10px; color: #C8B8A8; flex: none; }

/* ---------- 说明文字 ---------- */
.pnote { font-size: 10px; color: var(--muted); padding: 4px 12px 10px; line-height: 1.6; }

/* ---------- 分享卡片 ---------- */
.sharecard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; margin: 12px 12px 8px; }
.sharecard .im { height: 130px; background: linear-gradient(135deg,#FFE3C2,#FFD9E8); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.sharecard .tx { padding: 10px 13px; }
.sharecard .tx .n { font-size: 15px; font-weight: 700; line-height: 1.4; }
.sharecard .tx .s { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.sharecard .tx .btnline { margin-top: 9px; }

.sendlayout { padding: 4px 12px 16px; }
.sendlayout .loca { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.sendshot { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-bottom: 9px; }
.sendshot .r { display: flex; justify-content: space-between; font-size: 11px; padding: 5px 0; border-bottom: 1px dashed var(--line); gap: 8px; }
.sendshot .r:last-child { border-bottom: none; }
.sendshot .r .k { color: var(--muted); flex: none; }
.sendshot .r .v { font-weight: 600; text-align: right; word-break: break-all; }
.sendshot .r code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; background: #F7F3EE; padding: 1px 4px; border-radius: 4px; }

/* ---------- 积分页 ---------- */
.pts-top {
  padding: 14px 12px 11px; margin: 10px 12px 0; border-radius: 14px;
  background: linear-gradient(135deg,#FFF3E6,#FFE9DC);
  border: 1px solid var(--line);
}
.pts-top .pn { font-size: 11px; color: var(--muted); }
.pts-top .pv { font-size: 38px; font-weight: 700; color: var(--accent); line-height: 1.15; }
.pts-top .pv small { font-size: 15px; color: var(--muted); font-weight: 600; }
.pts-top .pd { font-size: 11px; color: var(--muted); margin-top: 3px; }
.ptagrow { margin: 8px 12px 0; display: flex; gap: 7px; flex-wrap: wrap; }
.ptag { display: inline-block; font-size: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--ink); }
.clot-tag { display: inline-block; font-size: 10px; background: #F7F2FC; border: 1px solid #D9C5EF; border-radius: 999px; padding: 2px 8px; color: var(--purple); }
.ptl { padding: 6px 12px 14px; }
.pli { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; margin-bottom: 7px; }
.pli .ic { width: 32px; height: 32px; border-radius: 8px; background: #FFF3E6; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.pli .bd { flex: 1; min-width: 0; }
.pli .bd .n { font-size: 12px; font-weight: 700; }
.pli .bd .s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.pli .pt { font-size: 13px; font-weight: 700; color: var(--accent2); flex: none; }

/* ---------- 传播激励引导横幅 ---------- */
.gain {
  margin: 10px 12px 0; background: linear-gradient(120deg,#FFF0DC,#FFE6F0);
  border: 1px solid #F8DDBE; border-radius: 12px; padding: 9px 12px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.gain .gic { font-size: 19px; flex: none; }
.gain .gb { flex: 1; min-width: 0; }
.gain .gb .t { font-size: 12px; font-weight: 700; }
.gain .gb .s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.gain .gz { font-size: 11px; color: var(--accent); font-weight: 700; flex: none; }

/* ---------- AI 传播链 ---------- */
.chipcap { font-size: 10px; color: var(--muted); padding: 10px 12px 0; }
.chiprow { display: flex; gap: 7px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.pchip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.pchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mychain {
  margin: 9px 12px 0; background: #E6F5EF; border: 1px solid #CBE8DC; border-radius: 12px;
  padding: 9px 12px; display: flex; align-items: center; gap: 8px;
}
.mychain .mic { font-size: 18px; flex: none; }
.mychain .mb { flex: 1; font-size: 11px; font-weight: 700; }
.mychain .mb small { display: block; font-size: 10px; color: #5B877B; font-weight: 400; margin-top: 2px; line-height: 1.5; }
.mychain .mz { font-size: 10px; color: var(--accent2); font-weight: 700; flex: none; }
.chain { padding: 8px 12px 10px; }
.chain-node {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; cursor: pointer;
}
.chain-node .cav { width: 36px; height: 36px; border-radius: 50%; background: #FFF3E6; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.chain-node .cb { flex: 1; min-width: 0; }
.chain-node .cb .n { font-size: 13px; font-weight: 700; }
.chain-node .cb .s { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.chain-node .cp { font-size: 10px; color: var(--accent); font-weight: 700; flex: none; text-align: right; }
.chain-node.end { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(43,163,137,.15); }
.chain-node.reward .cav { background: #E6F5EF; }
.chain-node.owner {
  border-color: var(--gold); box-shadow: 0 0 0 2px rgba(217,164,65,.18);
  background: linear-gradient(120deg,#FFFBEF,#FFF6DC);
}
.chain-node.owner .cav { background: #FFF1CF; }
.cown {
  display: inline-block; font-size: 9px; color: #A97B14; background: #FFF3D6;
  border: 1px solid #E9CE96; border-radius: 999px; padding: 1px 6px; font-weight: 700;
  vertical-align: middle; margin-left: 4px;
}
.clot {
  display: inline-block; font-size: 9px; color: var(--purple); background: #F1E9FA;
  border: 1px solid #D9C5EF; border-radius: 999px; padding: 1px 6px; font-weight: 700;
  vertical-align: middle; margin-left: 4px;
}
.chain-link { width: 2px; height: 14px; background: var(--line); margin-left: 20px; }
.chain-note { font-size: 10px; color: var(--muted); padding: 2px 2px 12px; line-height: 1.6; }

/* ---------- 悬浮操作栏（内容/详情页共用：点赞 · 评论 · 收藏 · 分享） ----------
   结构由 common.js 的 MiniApp.floatActions() 生成，页面只放一个空容器：
     <div class="float-actions" id="floatActions"></div>
   2026-09-23 从 lost-detail.html 提取为公共资产（页面内不得再重复定义本段）。
   定位：相对 .phone-wrap 贴右缘竖向居中；栏内缝隙 pointer-events:none，
   只有按钮本身吃点击 —— 否则整条竖带会挡住底下的卡片。 */
.float-actions {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; z-index: 40;
  pointer-events: none;
}
.fa-btn {
  width: 48px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0; font: inherit; color: var(--ink); pointer-events: auto;
}
.fa-ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(44,33,24,.18);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: var(--ink);
  transition: transform .12s, background .15s, box-shadow .15s, color .15s;
}
.fa-btn:active .fa-ic { transform: scale(.9); }
.fa-c { font-size: 10px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
/* 激活态：like 红 / fav 金（功能色，与暖橙主色区分）；光晕强化反馈 */
.fa-btn.like.on .fa-ic { background: #FF4D4F; box-shadow: 0 4px 14px rgba(255,77,79,.42); }
.fa-btn.like.on .fa-c { color: #FF4D4F; }
.fa-btn.fav.on .fa-ic { background: #FFB300; box-shadow: 0 4px 14px rgba(255,179,0,.42); }
.fa-btn.fav.on .fa-c { color: #D98800; }
/* heart / star 是轮廓图标：激活态由 CSS 补实心 + 转白，图标本身不写死状态色 */
.fa-btn.like.on .fa-ic, .fa-btn.fav.on .fa-ic { color: #fff; }
.fa-btn.like.on .fa-ic .wb-ico path,
.fa-btn.fav.on .fa-ic .wb-ico path { fill: currentColor; }
@media print { .float-actions { display: none !important; } }

/* ---------- 底部弹出层 ---------- */
.mask {
  position: absolute; inset: 0; background: rgba(44,33,24,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60;
}
.mask.show { opacity: 1; pointer-events: auto; }
.popcard { width: 84%; background: #fff; border-radius: 16px; padding: 18px 16px; text-align: center; }
.popcard .tt { font-size: 15px; font-weight: 700; }
.popcard .s { font-size: 12px; color: var(--muted); margin: 8px 0 16px; line-height: 1.6; }
.popcard .btn { margin-bottom: 8px; }
.popcard .btn:last-child { margin-bottom: 0; }

/* 底部弹窗：固定贴视口底部，宽度与手机壳同宽（420）并居中——
   弹窗常被写在 .phone-wrap 之外，用 absolute 会撑满桌面浏览器整屏，故用 fixed + 居中。 */
.sheet {
  position: fixed; left: 50%; bottom: 0; width: min(100%, 420px); background: #fff;
  border-radius: 18px 18px 0 0; box-shadow: 0 -10px 34px rgba(44,33,24,.20);
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translate(-50%, 110%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1); z-index: 55;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: #EADCCB; margin: 2px auto 10px; }
.sheet .hdbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet .hdbar .hd { margin-bottom: 0; }
.sheet .x {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #F7F1EA; color: var(--muted);
  font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.sheet .x:active { background: #EFE3D6; }
.sheet .hd { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sheet .sc { font-size: 11px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.sheet .sc:last-child { margin-bottom: 0; }

/* 弹窗遮罩：与弹窗同宽居中，点一下即关闭 */
.sheet-scrim {
  position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, 420px);
  transform: translateX(-50%); background: rgba(44,33,24,.32);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 54;
}
.sheet-scrim.show { opacity: 1; pointer-events: auto; }

/* ---------- 选点面板（搜地点 / 按城市；lost-map 与 lost-publish 共用，勿再页内重复定义） ---------- */
.sheet.pick { z-index: 60; }
.pick-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.pick-tabs .pt {
  flex: 1; text-align: center; padding: 9px 0; font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 11px; background: #FFFDFB;
  transition: background .15s, color .15s, box-shadow .15s;
}
.pick-tabs .pt.on {
  color: #fff; background: linear-gradient(135deg, #F0782E, #E8621C);
  border-color: transparent; box-shadow: 0 3px 10px rgba(240,120,46,.24);
}
.pick-search { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.pick-search .fin { flex: 1 1 auto; min-width: 0; }
/* .btn 默认 width:100%，在 flex 行里会把输入框挤成一条缝——这里显式收成「按内容宽」 */
.pick-search .pick-go {
  flex: 0 0 auto; width: auto; margin: 0; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; border-radius: 9px;
}
.pick-tip { font-size: 11px; color: var(--muted); margin: 0 2px 10px; line-height: 1.65; }
.pick-list { max-height: 42vh; overflow-y: auto; }
.pick-item {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px;
  margin-bottom: 8px; background: #fff;
}
.pick-item:active { background: #FDF3EA; border-color: #F3D9BE; }
.pick-item .p-n { font-size: 13px; font-weight: 600; line-height: 1.4; }
.pick-item .p-s { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.pick-citys { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-citys .pc {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; background: #FFFDFB;
}
.pick-citys .pc:active { background: #FDF3EA; border-color: #F3D9BE; }
.pick-loading { font-size: 11px; color: var(--muted); text-align: center; padding: 16px 12px; line-height: 1.7; }
.rowline { display: flex; align-items: center; justify-content: space-between; background: #F7F3EE; border-radius: 9px; padding: 8px 10px; margin-bottom: 7px; font-size: 12px; }
.rowline .k { color: var(--muted); }
.rowline .v { font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  background: rgba(44,33,24,.92); color: #fff; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; opacity: 0; transition: opacity .2s;
  pointer-events: none; z-index: 90; text-align: center; max-width: 82%;
  line-height: 1.6; white-space: pre-line;
}
.toast.show { opacity: 1; }

/* ---------- 线索表单：图片上传（真实预览） ---------- */
.fphoto .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fphoto .cell .del { z-index: 2; }
.clue-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.clue-imgs img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.clue-imgs .ci { width: 58px; height: 58px; border-radius: 8px; background: #F7F3EE; border: 1px dashed #E5D6C4; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #C8B8A8; flex: none; }

/* ---------- GPS 自动定位条 ---------- */
.gpsbar {
  display: flex; align-items: center; gap: 8px;
  background: #EAF6F2; border: 1px solid #CBE8DC; border-radius: 9px;
  padding: 9px 11px; margin-bottom: 12px; font-size: 12px;
}
.gpsbar .gic { font-size: 16px; flex: none; }
.gpsbar .gb { flex: 1; min-width: 0; }
.gpsbar .gb .t { font-weight: 700; color: var(--accent2); display: flex; align-items: center; gap: 5px; }
.gpsbar .gb .lbl { display: inline-block; font-size: 9px; font-weight: 700; background: var(--accent2); color: #fff; border-radius: 999px; padding: 0 6px; }
.gpsbar .gb .s { font-size: 10px; color: #5B877B; margin-top: 1px; line-height: 1.5; word-break: break-all; }
.gpsbar .gb .s b { color: var(--accent); }
.gpsbar .gre { font-size: 10px; color: var(--accent2); font-weight: 700; background: #fff; border: 1px solid #CBE8DC; border-radius: 999px; padding: 3px 9px; flex: none; cursor: pointer; }
.gpsbar.fail { background: #FFF2F2; border-color: #F2C6C6; }
.gpsbar.fail .gb .t { color: var(--red); }
.gpsbar.fail .gb .s { color: #B98A8A; }
.gpsbar.fail .gb .lbl { background: var(--red); }

/* ---------- 详情页：线索与历史区块 ---------- */
.chist { margin: 10px 12px 0; }
.chist .ch-t { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.chist .ch-t .cn { font-size: 10px; font-weight: 700; color: var(--accent); background: #FFF3E6; border-radius: 999px; padding: 1px 7px; }
.chist .ch-sub { font-size: 11px; font-weight: 700; color: var(--muted); margin: 8px 0 5px; display: flex; align-items: center; gap: 6px; }
.chist .ch-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chist .chitem { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; }
.chist .chitem .ic { width: 30px; height: 30px; border-radius: 8px; background: #FFF3E6; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.chist .chitem .bd { flex: 1; min-width: 0; }
.chist .chitem .bd .n { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.chist .chitem .bd .n .stt { font-size: 9px; border-radius: 999px; padding: 1px 6px; font-weight: 700; }
.chist .chitem .bd .n .stt.w { background: #FFF3E6; color: var(--accent); }
.chist .chitem .bd .s { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.chist .chitem .bd .meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.chist .chitem .bd .meta img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.chist .chitem .ti { font-size: 10px; color: #C8B8A8; flex: none; align-self: flex-start; }
.gps-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; color: var(--accent2); background: #EAF6F2; border: 1px solid #CBE8DC; border-radius: 999px; padding: 1px 6px; font-weight: 700; }
.chist .empty-tip { font-size: 11px; color: var(--muted); background: #F7F3EE; border: 1px dashed var(--line); border-radius: 10px; padding: 10px; text-align: center; }

/* ---------- 发布类表单共用控件（找宠物 / 找主人 都用，勿页内重复定义） ---------- */
/* 品种「可选可输」combobox：输入框 + 下拉面板（点选字典品种，也可直接输入新品种） */
.combo { position: relative; }
.combo-input { padding-right: 34px; }
.combo-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }
.combo-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px rgba(44,33,24,.12); overflow: hidden; z-index: 30; max-height: 220px; overflow-y: auto; }
.combo-opt { padding: 11px 14px; font-size: 13px; color: var(--ink); cursor: pointer; }
.combo-opt.on { color: var(--accent); font-weight: 700; background: #FFF6EC; }
.combo-opt:active { background: #FFF6EC; }
.combo-empty { padding: 11px 14px; font-size: 12px; color: var(--muted); }
/* AI 解析结果卡（在公共 .card 基础上做发布页专属的强调与操作区） */
.ai-card { border-color: var(--accent); background: linear-gradient(180deg, #FFF8F0, #fff); margin-top: 10px; }
.ai-card .ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-conf { font-size: 10px; font-weight: 600; color: var(--accent); background: #FFF3E6; border-radius: 999px; padding: 2px 8px; flex: none; }
.ai-act { display: flex; gap: 8px; margin-top: 10px; }
.ai-act .btn { flex: 1; }
.ai-tip { font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.ai-warn { font-size: 11px; color: var(--muted); line-height: 1.6; }
/* 字段来源标签 + 冲突提示（照片解析 / 文本解析 双源合并） */
.lab .src-tag { font-size: 10px; font-weight: 600; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.src-tag.src-photo { color: #185FA5; background: #E6F1FB; }
.src-tag.src-text { color: #0F6E56; background: #E1F5EE; }
.src-conflict { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.src-conflict .sw { color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; white-space: nowrap; }

/* ---------- 智能匹配结果（目击线索 ↔ 走失宠物） ----------
 * 颜色写死中性/青绿（不依赖 --wb-* 变量）：未引入 wb-ui.css 的页面也能直接用。
 * 青绿左条 = AI 语义，与 wb-aicard 同一视觉语言。 */
.match-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #EFEFEF; border-radius: 14px; padding: 12px; margin-top: 10px; }
.match-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2BA389, #21916F); }
.match-card .mhd { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; }
.match-card .mhd .mc { font-size: 10px; font-weight: 600; color: #2BA389; background: #EAF6F2; border-radius: 999px; padding: 2px 8px; }
.match-card .msub { font-size: 11px; line-height: 1.6; color: #8C8C8C; margin-bottom: 10px; }
.match-item { display: flex; gap: 9px; background: #fff; border: 1px solid #EFEFEF; border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; }
.match-item:last-child { margin-bottom: 0; }
.match-item.lv-high { border-color: #2BA389; box-shadow: 0 0 0 2px rgba(43,163,137,.14); }
.match-item .mav { width: 46px; height: 46px; border-radius: 10px; background: #F7F7F7; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; overflow: hidden; }
.match-item .mav img { width: 100%; height: 100%; object-fit: cover; }
.match-item .mb { flex: 1; min-width: 0; }
.match-item .mb .mn { font-size: 13px; font-weight: 700; color: #1A1A1A; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.match-item .mb .mn .stt { font-size: 9px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.match-item .mb .mn .stt.w { background: #FFF3E6; color: #F0782E; }
.match-item .mb .mn .stt.m { background: #F1EDF7; color: #7A6CA6; }
.match-item .mb .mn .stt.o { background: #EAF6F2; color: #2BA389; }
.match-item .mb .ms { font-size: 11px; color: #8C8C8C; margin-top: 3px; line-height: 1.45; }
.match-item .mb .mr { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.match-item .mb .mr span { font-size: 9px; color: #5B877B; background: #EAF6F2; border: 1px solid #CBE8DC; border-radius: 999px; padding: 1px 6px; }
.match-item .mb .mact { margin-top: 7px; }
.match-item .mp { flex: none; text-align: right; align-self: center; }
.match-item .mp .pv { font-size: 15px; font-weight: 800; color: #2BA389; line-height: 1.1; }
.match-item .mp .pv small { font-size: 9px; font-weight: 700; }
.match-item .mp .pd { font-size: 10px; color: #8C8C8C; margin-top: 2px; }

/* ---------- AI 机器人自动回复气泡（线索 / 历史通用） ---------- */
.ai {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 7px;
  background: #F6F0FA; border: 1px solid #E3D2F2; border-radius: 10px;
  padding: 7px 9px; font-size: 10px; line-height: 1.55;
}
.ai .aic {
  width: 20px; height: 20px; border-radius: 50%; background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; margin-top: 1px;
}
.ai .ab { flex: 1; min-width: 0; color: #6B4E86; }
.ai .ab .an { font-size: 9px; font-weight: 700; color: var(--purple); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ai .ab .an .m {
  font-size: 8px; color: #9B79B8; background: #EDE2F7; border-radius: 999px; padding: 0 5px;
  font-weight: 400; font-family: Consolas, Menlo, monospace;
}
.ai .ab .at { margin-top: 1px; word-break: break-all; }
.ai .ab .at .pending { color: #A98BC2; font-style: italic; }
.ai .ai-ti { font-size: 9px; color: #B9A5CC; flex: none; align-self: flex-start; white-space: nowrap; }