/* ============================================================
 * 查小强 · H5 样式（方案A · 翡翠绿）
 * 设计变量：主绿 #0F6E56 / 深绿 #085041 / 浅绿底 #E1F5EE / 页面底 #F4F7F5
 * 整体：浅色底 + 白卡片 + 翡翠绿强调，扁平干净
 * ============================================================ */
:root {
  --primary: #0F6E56;
  --primary-deep: #085041;
  --primary-soft: #E1F5EE;
  --grad: #0F6E56; /* 兼容旧类名：不再使用渐变，统一纯色 */
  --bg: #F4F7F5;
  --card: #ffffff;
  --text: #22302B;
  --text2: #5F6B66;
  --text3: #97A29D;
  --line: #E7ECE9;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 110, 86, 0.08);
  /* Vant 组件主色统一换肤 */
  --van-primary-color: #0F6E56;
}

[v-cloak] { display: none; }
* { 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, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
/* 底部为 fixed Tabbar（约 50px + 设备安全区），此处预留足够空间，避免按钮被遮挡无法点击 */
.page { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.muted { color: var(--text3); font-size: 12px; }
.link { color: var(--primary); font-size: 13px; cursor: pointer; }
img { display: block; }

/* ---------- 通用卡片 / 表单 ---------- */
.panel { padding: 14px 14px 24px; }
.form-card, .result-card { background: var(--card); border-radius: var(--radius);
  padding: 18px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.block-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.fld { margin-bottom: 14px; }
.fld-label { display: block; font-size: 13px; color: var(--text2); margin: 0 2px 8px; }
.fld-label i { color: #e24b4a; font-style: normal; }
.fld-label .req { color: #e24b4a; font-size: 12px; font-weight: 600; }
.fld-label .opt { color: var(--text3); font-size: 12px; font-weight: 400; }
.fld-label .hint-strong { color: var(--primary); font-size: 12.5px; font-weight: 600; }
.fld-hint { margin: 7px 2px 0; color: var(--text3); font-size: 12px; line-height: 1.5; }
.cert-hint { margin: 12px 2px 0; color: var(--primary); font-size: 14px; font-weight: 600; line-height: 1.6; }
.atype { display: flex; gap: 10px; }
.atype-opt { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
  background: #F2F6F4; cursor: pointer; transition: border-color .15s, background .15s; }
.atype-opt b { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.atype-opt span { display: block; font-size: 11px; color: var(--text3); line-height: 1.4; }
.atype-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.atype-opt.on b, .atype-opt.on span { color: var(--primary); }
.fld-warn { margin: 8px 2px 0; padding: 8px 10px; border-radius: 8px; background: #FFF7E6;
  color: #A15C00; font-size: 12px; line-height: 1.5; }
.fld-input { background: #F2F6F4; border-radius: 12px; overflow: hidden; }
.fld-input.van-cell { padding: 11px 14px; }
/* 标签多选（发布页） */
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { font-size: 13px; line-height: 18px; color: var(--text2); background: #F2F6F4;
  border: 1px solid transparent; border-radius: 18px; padding: 6px 14px; cursor: pointer; }
.tag-chip.on { color: var(--primary); background: var(--primary-soft);
  border-color: rgba(15, 110, 86, 0.25); font-weight: 600; }
/* >=16px：避免 iOS Safari / 部分 WebView 聚焦时自动放大页面 */
.fld-input .van-field__control { font-size: 16px; }
.age-range { display: flex; align-items: center; gap: 8px; }
.age-range .fld-input { flex: 1; min-width: 0; }
.age-range .age-sep { color: var(--text2); font-size: 15px; }
.btn-main { margin-top: 8px; height: 46px; border: none; border-radius: 23px;
  background: var(--primary); font-size: 16px; font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(15, 110, 86, 0.28); }
.btn-plain { margin-top: 12px; border-radius: 23px; }

/* ---------- 认证页 / 子页导航 ---------- */
/* min-height 包含安全区，避免 border-box 下 padding-top 把内容区压成 1px、
   导致返回按钮被 align-items:center 顶到状态栏/刘海区（实测 notched 设备上顶到 28px） */
.sub-nav { display: flex; align-items: center; min-height: calc(48px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 6px 0;
  background: #fff; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 0 var(--line); }
.nav-back { font-size: 20px; padding: 10px 12px; cursor: pointer; color: var(--text); }
.nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.nav-right { width: 44px; }

/* ---------- 登录 / 注册 / 重置 ---------- */
.auth-page { background: var(--bg); }
.auth-hero { background: var(--primary); padding: calc(46px + env(safe-area-inset-top)) 24px 80px; text-align: center;
  border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.auth-hero::after { content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); }
.auth-hero::before { content: ''; position: absolute; left: -30px; bottom: 10px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); }
.brand-mark { display: block; width: 76px; height: 76px; margin: 0 auto 14px; position: relative; z-index: 1; }
.brand-logo { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.brand-slogan { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin-top: 10px; letter-spacing: 2px; }
.auth-card { background: var(--card); margin: -56px 20px 0; border-radius: 20px;
  padding: 26px 20px 22px; box-shadow: 0 12px 32px rgba(8, 80, 65, 0.12);
  position: relative; z-index: 2; }
.auth-title { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; }
.auth-foot { text-align: center; color: var(--text3); font-size: 11px; margin-top: 28px; }
.code-row { display: flex; align-items: center; gap: 10px; }
.code-row .fld-input { flex: 1; }
.btn-code { border-radius: 12px; padding: 0 14px; height: 40px; }

/* ---------- 首页 ---------- */
.home-hero { background: var(--primary); padding: calc(22px + env(safe-area-inset-top)) 20px 58px;
  border-radius: 0 0 28px 28px; color: #fff; position: relative; overflow: hidden; }
.home-hero::after { content: ''; position: absolute; right: -50px; top: -50px;
  width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.home-hero::before { content: ''; position: absolute; left: -36px; bottom: -30px;
  width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-brand { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; letter-spacing: 4px; }
.hero-brand .brand-icon { width: 30px; height: 30px; }
.hero-slogan { font-size: 13px; color: rgba(255, 255, 255, 0.85); margin-top: 8px; letter-spacing: 2px; }
.home-body { margin-top: -40px; padding: 0 12px; position: relative; z-index: 2; }

/* 搜索框 */
.search-box { display: flex; align-items: center; background: #fff; border-radius: 24px;
  padding: 6px 6px 6px 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.search-ico { font-size: 18px; color: var(--text3); margin-right: 8px; }
.search-input { flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; color: var(--text); min-width: 0; }
.search-input::placeholder { color: var(--text3); }
.search-btn { flex-shrink: 0; height: 34px; padding: 0 18px; background: var(--primary);
  border: none; font-weight: 600; }
.q-hint { font-size: 12px; color: var(--text3); margin: 0 4px 10px; }

/* 查询结果卡片 */
.rc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rc-name { font-size: 16px; font-weight: 700; margin-right: 4px; }
.rc-tag { background: var(--primary-soft); color: var(--primary); border: none; border-radius: 6px; }
.rc-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-row { display: flex; font-size: 14px; padding: 5px 0; line-height: 1.5; }
.rc-k { width: 88px; color: var(--text3); flex-shrink: 0; white-space: nowrap; }
.rc-row > span:last-child { word-break: break-all; }
.rc-shots { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rc-shot { width: 72px; height: 72px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: pointer; }
.rc-shot.big { width: 88px; height: 88px; }
/* 认证图片一行排布（点击弹框预览大图） */
.shot-row { display: flex; gap: 10px; margin-top: 2px; }
.rc-date { font-size: 11px; color: var(--text3); margin-top: 8px; }
.result-card.slim { padding: 14px; }
.mine-more { text-align: center; color: var(--primary); font-size: 13px; padding: 2px 0 12px; cursor: pointer; }
.svc-tip { text-align: center; font-size: 12px;
  background: var(--primary-soft); color: var(--primary); border-radius: 12px;
  padding: 10px 0; margin-top: 6px; cursor: pointer; }

/* 首页信息流：吸顶筛选 + 固定高度卡片 */
.feed-bar { position: sticky; top: 0; z-index: 30; margin: 0 -12px 8px; padding: 8px 12px;
  background: rgba(244, 247, 245, 0.96); backdrop-filter: blur(10px); }
.feed-filter { display: flex; align-items: center; gap: 4px; background: var(--card);
  border-radius: 999px; padding: 4px; border: 1px solid rgba(15, 110, 86, 0.06);
  box-shadow: 0 4px 14px rgba(15, 110, 86, 0.08); }
.feed-region { flex: 1 1 0; min-width: 0; height: 36px; display: flex; align-items: center;
  justify-content: center; gap: 3px; border-radius: 999px; background: transparent;
  font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: pointer; }
.feed-region.on { background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 3px 8px rgba(15, 110, 86, 0.22); }
.feed-region.dis { color: #C2CBC7; }
.fr-arrow { font-size: 9px; flex-shrink: 0; }
.feed-clear { flex-shrink: 0; height: 36px; display: flex; align-items: center; gap: 1px;
  padding: 0 10px 0 6px; font-size: 12px; color: var(--primary); cursor: pointer; }
.feed-clear .van-icon { font-size: 14px; }

.feed-card { position: relative; display: flex; flex-direction: column; height: 156px;
  background: linear-gradient(135deg, #E9F8F1 0%, #F7FDFA 48%, #FFFFFF 100%);
  border: 1px solid rgba(15, 110, 86, 0.08); border-radius: 18px; padding: 14px 16px;
  margin-bottom: 10px; box-shadow: 0 4px 14px rgba(15, 110, 86, 0.06);
  cursor: pointer; overflow: hidden; }
.feed-card::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(#12A57C, #0F6E56); }
.feed-card::after { content: ''; position: absolute; right: -38px; top: -46px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(15, 110, 86, 0.05); pointer-events: none; }
.feed-card > * { position: relative; z-index: 1; }
.feed-title { flex-shrink: 0; font-size: 15px; font-weight: 700; line-height: 21px; color: #1B3A31;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-meta { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 20px;
  margin-top: 7px; overflow: hidden; }
.feed-chip { flex-shrink: 0; font-size: 11px; line-height: 16px; color: #7B8883;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(15, 110, 86, 0.08);
  border-radius: 6px; padding: 1px 7px; }
.feed-chip.region { flex-shrink: 1; min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.feed-tag { flex-shrink: 0; font-size: 11px; font-weight: 600; line-height: 16px; color: #0F6E56;
  background: #CBEFE0; border-radius: 6px; padding: 2px 7px; }
.feed-tag.on { background: #CBEFE0; }
.feed-addr { flex-shrink: 0; display: flex; align-items: center; gap: 4px; margin-top: 7px;
  font-size: 12px; line-height: 18px; color: #4E5F58; white-space: nowrap; overflow: hidden; }
.feed-addr span { overflow: hidden; text-overflow: ellipsis; }
.feed-addr .van-icon { flex-shrink: 0; font-size: 13px; color: var(--primary); }
.feed-desc { flex: 1 1 auto; margin-top: 7px; font-size: 13px; line-height: 19px; color: #5F6B66;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-all; }
.feed-empty { text-align: center; color: var(--text3); font-size: 13px; padding: 60px 0; }
.feed-empty .van-icon { font-size: 34px; display: block; margin-bottom: 10px; }

/* 信息详情弹层 */
.feed-detail { max-height: 78vh; display: flex; flex-direction: column;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
.fd-head { display: flex; align-items: flex-start; gap: 12px; }
.fd-title { flex: 1; font-size: 18px; font-weight: 700; line-height: 1.45; word-break: break-all; }
.fd-close { flex-shrink: 0; font-size: 20px; color: var(--text3); padding: 2px; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fd-body { flex: 1; margin-top: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fd-row { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.fd-k { flex-shrink: 0; width: 40px; color: var(--text3); }
.fd-row span:last-child { word-break: break-all; }
.fd-label { margin-top: 14px; font-size: 13px; color: var(--text3); }
.fd-desc { margin-top: 6px; font-size: 14px; line-height: 1.75; color: var(--text);
  white-space: pre-wrap; word-break: break-all; }

/* ---------- 发布信息页 ---------- */
.entry-hero { background: var(--primary); padding: calc(20px + env(safe-area-inset-top)) 20px 52px;
  border-radius: 0 0 28px 28px; color: #fff; position: relative; overflow: hidden; }
.entry-hero::after { content: ''; position: absolute; right: -44px; top: -44px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.entry-hero-title { font-size: 21px; font-weight: 700; letter-spacing: 2px; }
.entry-hero-sub { font-size: 12px; color: rgba(255, 255, 255, 0.82); margin-top: 6px; letter-spacing: 1px; }
.entry-body { margin-top: -34px; padding: 0 12px; position: relative; z-index: 2; }

/* 联系客服弹层（首页咨询客服 / 「我的」页共用） */
.contact-pop { width: 82%; max-width: 320px; }
.contact-card { padding: 22px 20px; text-align: center; }
.contact-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.contact-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.contact-k { color: var(--text3); font-size: 13px; }
.contact-v { font-size: 16px; font-weight: 600; color: var(--primary); letter-spacing: 1px; word-break: break-all; }
.contact-copy { margin-bottom: 12px; }
.contact-qr { margin-top: 4px; }
.contact-qr img { width: 180px; height: 180px; object-fit: contain; border: 1px solid #eee; border-radius: 8px; margin: 0 auto; }
.contact-qr .muted { margin-top: 8px; }

/* 录入表单：标签 chips */
.tag-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px; }
.chip { padding: 7px 16px; border-radius: 18px; font-size: 13px; cursor: pointer;
  background: #F2F6F4; color: var(--text2); border: 1px solid transparent;
  transition: all 0.15s; user-select: none; }
.chip.on { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); font-weight: 600; }

/* 状态徽标 */
.st { font-weight: 600; }
.st-0 { color: #ff8f1f; } .st-1 { color: #10b981; } .st-2 { color: #ff4d4f; }
.reject-note { color: #ff4d4f; word-break: break-word; }
.status-card { padding-top: 14px; }
.st-banner { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700;
  border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.stb-0 { background: #fff7ec; color: #ff8f1f; }
.stb-1 { background: var(--primary-soft); color: var(--primary); }
.stb-2 { background: #ffeef0; color: #ff4d4f; }
.tip { margin-top: 10px; }

/* ---------- 我的页 ---------- */
.me-hero { background: linear-gradient(135deg, #0F6E56 0%, #1B8F71 100%);
  padding: calc(28px + env(safe-area-inset-top)) 20px 64px; color: #fff;
  border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.me-hero::after { content: ''; position: absolute; right: -46px; top: -46px;
  width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.me-user { display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.5); display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700; }
.me-name { font-size: 19px; font-weight: 700; }
.me-uid { font-size: 12px; color: rgba(255, 255, 255, 0.8); margin-top: 4px; }
.addr-edit-btn { margin-top: 12px; color: var(--primary); font-size: 13px; text-align: right; }
.row-actions { display: flex; gap: 12px; margin-top: 16px; }
.row-actions .van-button { flex: 1; }
.me-tier { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 6px;
  background: rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 3px 10px; }
.me-exp { font-size: 12px; color: rgba(255, 255, 255, 0.85); margin-top: 12px; }
/* 头部邀请入口：44px 金色胶囊 + 3px 金色柔光环，与渐变头部拉开亮度层 */
.me-invite-entry { position: absolute; z-index: 3; top: calc(28px + env(safe-area-inset-top)); right: 20px;
  height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px;
  border: 0; border-radius: 22px; background: linear-gradient(135deg, #FFD666, #FFA51F);
  color: #6B3A00; font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 40, 31, 0.32), 0 0 0 3px rgba(255, 214, 102, 0.42), 0 0 18px rgba(255, 214, 102, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease; }
.me-invite-entry:active { transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(6, 40, 31, 0.28), 0 0 0 3px rgba(255, 214, 102, 0.35), 0 0 12px rgba(255, 214, 102, 0.24); }
.me-invite-entry .van-icon { font-size: 21px; }
@media (max-width: 350px) {
  /* 350 及以下手机号行与 93.5px 胶囊会抢位（321~325 实测压字），退化成 44px 方形图标钮 */
  .me-invite-entry { width: 44px; padding: 0; }
  .me-invite-entry span { display: none; }
}
.me-body { margin-top: -44px; position: relative; z-index: 2; }
.me-row { display: flex; align-items: center; padding: 13px 2px; cursor: pointer;
  border-bottom: 1px solid var(--line); }
.me-row:last-of-type { border-bottom: none; }
.me-ico { width: 36px; height: 36px; border-radius: 11px; display: flex;
  align-items: center; justify-content: center; font-size: 19px; margin-right: 12px; }
.me-k { flex: 1; font-size: 15px; }
.me-v { font-size: 13px; }
.me-v.ok { color: var(--primary); } .me-v.go { color: var(--primary); }
.me-arrow { color: #C4CDC8; font-size: 14px; margin-left: 8px; }
/* minmax(0,1fr)：避免价格文案把 1fr 撑成 min-content，导致三列宽度不等、小屏溢出卡片 */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tier { min-width: 0; background: #F2F8F5; border: 1px solid #DCEEE7; border-radius: 14px;
  text-align: center; padding: 14px 4px; }
.tier-name { font-size: 13px; color: var(--text2); }
.tier-price { font-size: 17px; font-size: clamp(16px, 5vw, 20px); font-weight: 800; color: #d85a30; margin: 6px 0 2px; }
.tier-days { font-size: 11px; color: var(--text3); }
.logout-btn { text-align: center; color: #e24b4a; font-size: 14px; background: #fff;
  border-radius: var(--radius); padding: 14px 0; box-shadow: var(--shadow); cursor: pointer; }
.locked-card { text-align: center; padding: 26px 16px; }
.lock-ico { font-size: 30px; color: var(--text3); }
.lock-title { font-size: 15px; font-weight: 700; margin: 8px 0 6px; color: var(--text2); }

/* 注册页邀请提示 */
.invite-banner { display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--primary); background: var(--primary-soft); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px; }
.invite-banner .van-icon { font-size: 16px; }

/* 佣金明细弹层 */
.comm-pop { width: 100%; max-width: 480px; border-radius: 16px 16px 0 0; padding: 18px 16px 22px; max-height: 70vh; overflow-y: auto; }
.comm-head { position: relative; text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.comm-title { font-size: 16px; font-weight: 600; }
.comm-balance { font-size: 14px; color: var(--primary); margin-top: 4px; font-weight: 600; }
.comm-close { position: absolute; right: 0; top: 0; font-size: 20px; color: var(--text3); }
.comm-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.comm-type { font-size: 14px; }
.comm-time { font-size: 12px; color: var(--text3); margin-top: 3px; }
.comm-amt { font-size: 15px; font-weight: 600; color: var(--primary); }
.comm-empty { text-align: center; padding: 24px 0; }
.comm-tip { text-align: center; font-size: 12px; margin-top: 12px; line-height: 1.6; }

/* ---------- 底部导航 ---------- */
/* Tabbar 必须压住页面内容：home-body / me-body / entry-body 是 z-index:2（压 hero 用），
   Vant 固定 Tabbar 默认 z-index:1，iOS/触控板回弹滚动越过底部时内容会叠画在菜单上。
   提到 100 保证菜单永远在最上层、始终可点。 */
.tabbar.van-tabbar--fixed {
  z-index: 100;
  --van-tabbar-height: 66px;
  --van-tabbar-item-font-size: 14px;
  --van-tabbar-item-icon-size: 27px;
  --van-tabbar-item-active-background: transparent;
  overflow: visible;
  border-top: 1px solid #E6EFEA;
  box-shadow: 0 -6px 18px rgba(15, 110, 86, 0.08);
}
.tabbar .van-tabbar-item { position: relative; color: #7C8B85; font-size: 14px; font-weight: 600; transition: color 0.18s; }
.tabbar .van-tabbar-item--active { color: var(--primary); background: transparent; }
.tabbar .van-tabbar-item--active .van-tabbar-item__text { font-weight: 700; }
.tabbar .van-tabbar-item__icon { font-size: 27px; margin-bottom: 3px; transition: transform 0.18s; }
.tabbar .van-tabbar-item--active .van-tabbar-item__icon { transform: translateY(-1px) scale(1.06); }
/* 「录入」凸起圆钮：常驻绿色 CTA，不随未选中变灰 */
.tabbar .tab-entry { padding-top: 24px; }
.tabbar .tab-entry .van-tabbar-item__icon { position: absolute; top: -20px; left: 50%; margin: 0; font-size: 30px; transform: translateX(-50%); }
.tabbar .tab-entry.van-tabbar-item--active .van-tabbar-item__icon { transform: translateX(-50%); }
.tabbar .tab-entry-fab {
  width: 54px; height: 54px; border-radius: 50%; color: #fff;
  background: linear-gradient(150deg, #149073 0%, #0A5744 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(15, 110, 86, 0.34), 0 0 0 5px #fff;
}
.tabbar .tab-entry-fab .van-icon { font-size: 30px; }
.tabbar .tab-entry .van-tabbar-item__text { margin-top: 6px; color: #0F6E56; font-weight: 700; }
/* 选中项顶部指示条：加强「当前在哪一页」的辨识度 */
.tabbar .van-tabbar-item--active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 3px;
  margin-left: -13px;
  border-radius: 0 0 3px 3px;
  background: var(--primary);
}

/* ---------- 上传组件美化 ---------- */
.van-uploader__upload { background: #F2F6F4; border: 1px dashed #B9CCC4;
  border-radius: 12px; }
.van-uploader__preview-image, .van-uploader__upload { width: 80px; height: 80px; }

/* ---------- 子页（佣金 / 邀请）通用 ---------- */
.sub-page { padding-bottom: 24px; }
.sub-page .panel { padding: 16px 14px 24px; }

/* ---------- 我的佣金页 ---------- */
.comm-balance-card { background: linear-gradient(135deg, #0F6E56 0%, #085041 100%);
  color: #fff; border-radius: var(--radius); padding: 20px 18px; margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(8, 80, 65, 0.18); }
.comm-balance-label { font-size: 13px; color: rgba(255,255,255,0.82); }
.comm-balance-num { font-size: 30px; font-weight: 800; margin: 6px 0 8px; letter-spacing: 1px; }
.comm-balance-tip { font-size: 12px; color: rgba(255,255,255,0.78); }
.comm-list { background: var(--card); border-radius: var(--radius); padding: 6px 14px; box-shadow: var(--shadow); }
.comm-empty { text-align: center; padding: 24px 0; }
.comm-sub { font-size: 12px; color: var(--text3); margin-top: 3px; }
.comm-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 8px; margin-left: 6px; vertical-align: middle; }
.comm-badge.pending { color: #B26A00; background: #FFF3E0; }
.comm-badge.paid { color: var(--text3); background: #ECEFF1; }

/* ---------- 「我的」页邀请弹层 ---------- */
.invite-sheet { max-height: 90vh; overflow-y: auto; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -18px 50px rgba(4, 24, 18, 0.18); }
.invite-sheet-grab { width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 3px; background: #DCE5E1; }
.invite-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.invite-sheet-title { font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -0.2px; color: var(--text); }
.invite-sheet-title em { color: var(--primary); font-style: normal; margin: 0 3px; }
.invite-sheet-sub { margin-top: 5px; font-size: 11px; line-height: 1.3; color: var(--text3); }
.invite-sheet-close { width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: #F2F6F4; color: var(--text2); display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; }
.invite-sheet-rewards { display: flex; align-items: center; padding: 12px 8px; margin-bottom: 14px;
  border-radius: 14px; background: var(--primary-soft); }
.invite-sheet-reward { flex: 1; text-align: center; }
.invite-sheet-reward-num { font-size: 24px; line-height: 1; font-weight: 800; color: var(--primary);
  letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.invite-sheet-reward-label { margin-top: 5px; font-size: 11px; color: var(--text2); }
.invite-sheet-reward-divider { width: 1px; height: 32px; background: #CFE6DD; }
.invite-sheet-qr { padding: 14px 12px 10px; margin-bottom: 14px; border: 1px solid var(--line);
  border-radius: 16px; text-align: center; }
.invite-sheet-qr-img { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto; }
.invite-sheet-qr-tip { margin-top: 8px; font-size: 11px; color: var(--text3); }
.invite-sheet-link { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  margin-bottom: 14px; border-radius: 10px; background: #F2F6F4; color: var(--text2); }
.invite-sheet-link .van-icon { flex: none; color: var(--text3); font-size: 14px; }
.invite-sheet-link span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 11px; letter-spacing: 0.1px; }
.invite-sheet .btn-main { margin-top: 0; height: 46px; font-size: 15px; letter-spacing: 1px; }
.invite-sheet .btn-plain { margin-top: 10px; height: 42px; font-size: 14px; }

/* ---------- 邀请 / 推广页 ---------- */
.invite-page { background: var(--bg); }
.invite-wrap { padding: 16px 14px; }
.invite-card { background: var(--card); border-radius: 20px; padding: 22px 18px 18px;
  box-shadow: var(--shadow); }
.invite-brand { text-align: center; margin-bottom: 16px; }
.invite-logo { display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--primary); }
.invite-logo .brand-icon { width: 30px; height: 30px; }
.invite-slogan { font-size: 13px; color: var(--text2); margin-top: 6px; letter-spacing: 1px; }
.invite-bonus { display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); border-radius: 14px; padding: 14px 8px; margin-bottom: 18px; }
.bonus-item { flex: 1; text-align: center; }
.bonus-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.bonus-label { font-size: 12px; color: var(--text2); margin-top: 4px; }
.bonus-divider { width: 1px; height: 32px; background: #CFE6DD; }
.invite-qr-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; text-align: center; margin-bottom: 16px; }
.invite-qr-img { width: 240px; max-width: 100%; height: auto; display: block; margin: 0 auto; }
.invite-qr-tip { font-size: 12px; color: var(--text3); margin-top: 10px; }
.invite-link-box { background: #F2F6F4; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.invite-link { font-size: 13px; color: var(--text2); word-break: break-all; line-height: 1.6; cursor: pointer; }
.invite-actions .btn-plain { border-color: var(--primary); color: var(--primary); }
.invite-foot { text-align: center; font-size: 12px; margin-top: 14px; line-height: 1.6; }

/* 关注公众号引导（邀请页 / 注册页共用） */
.follow-card { display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 16px; }
.follow-card-main { flex: 1; min-width: 0; }
.follow-card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.follow-card-tip { font-size: 12px; color: var(--text3); line-height: 1.5; margin-top: 4px; }
.follow-card-qr { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; flex: 0 0 auto; background: #fff; }
.auth-page .follow-card { margin: 16px 20px 0; }

/* ---------- 邀请落地页 /join/:code（先关注再注册） ---------- */
.join-hero { background: var(--primary); color: #fff; padding: 30px 20px 24px; text-align: center; }
.join-logo { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); }
.join-logo .brand-mask { width: 36px; height: 36px; background: #fff;
  -webkit-mask: url(/assets/h5/img/logo-roach-mono.svg) center / contain no-repeat;
  mask: url(/assets/h5/img/logo-roach-mono.svg) center / contain no-repeat; }
.join-hero-title { font-size: 19px; font-weight: 700; }
.join-hero-sub { font-size: 12px; opacity: .85; margin-top: 7px; line-height: 1.6; }
.join-body { padding: 16px 16px 24px; }
.join-step { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.join-step-no { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary); font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.join-step-main { flex: 1; min-width: 0; }
.join-step-title { font-size: 15px; font-weight: 600; color: var(--text); }
.join-step-tip { font-size: 12px; color: var(--text3); line-height: 1.6; margin-top: 5px; }
.join-follow-qr { width: 132px; height: 132px; margin: 12px auto 2px; object-fit: contain;
  border-radius: 8px; background: #fff; }
.join-cta { margin-top: 6px; height: 48px; font-size: 16px; letter-spacing: 1px; }
.join-skip { text-align: center; font-size: 13px; color: var(--text2); padding: 14px 0 6px; cursor: pointer; }
.join-code { text-align: center; font-size: 12px; color: var(--text3); }

/* ---------- 宽屏（平板 / 手机横屏） ---------- */
/* Tabbar 与底部弹层由 Vant teleport 到 body，不受 #app 的 480px 限宽约束，
   需手动对齐到居中的 #app，否则横屏下铺满整屏、和内容错位 */
@media (min-width: 481px) {
  .tabbar.van-tabbar--fixed { left: calc(50% - 240px); width: 480px; }
  .van-popup--bottom { left: calc(50% - 240px); width: 480px; }
}

/* ---------- 组件库加载失败兜底 ---------- */
.vend-fail { padding: 48px 24px; text-align: center; color: #999; font-size: 14px; }

/* ---------- 首页查询入口卡片 ---------- */
.home-entry { display: flex; align-items: center; gap: 14px; background: var(--card);
  border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; cursor: pointer; }
.he-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px; }
.he-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.he-title { font-size: 16px; font-weight: 700; }
.he-sub { font-size: 12px; color: var(--text3); margin-top: 3px; }
.he-go { flex: 0 0 auto; margin-left: auto; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; border-radius: 20px; padding: 9px 18px; letter-spacing: 1px; }

/* ---------- 查询页 /search（会员提交手机号 → 客服电话回复） ---------- */
.search-page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
/* 品牌条：与二级页 sub-nav 对齐，只保留一行品牌信息 */
.sp-brandbar { display: flex; align-items: center; gap: 10px;
  margin: 12px 12px 0; padding: 10px 14px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.sp-bmark { flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 800; letter-spacing: 2px; }
.sp-bicon { width: 22px; height: 22px; }
.sp-bslogan { flex: 1; min-width: 0; font-size: 10.5px; letter-spacing: 0.5px;
  color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-body { padding: 14px 12px 10px; }
.fld-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 15px 16px; }
.fld-card + .fld-card { margin-top: 12px; }
.fld-card .fld-label { display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 9px; }
.badge { font-size: 10px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 5px; padding: 2px 6px; }
.sp-fld { display: flex; align-items: center; gap: 10px; height: 46px;
  padding: 0 12px; background: #FBFCFB; border: 1px solid var(--line); border-radius: 12px; }
.sp-fld:focus-within { border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08); }
.sp-fld-ico { flex: 0 0 auto; color: var(--text3); font-size: 17px; }
.sp-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--text); }
.sp-input::placeholder { color: var(--text3); }
.sp-hint { font-size: 11.5px; color: var(--text3); line-height: 1.6; margin: 8px 2px 0; }
.sp-hint.on { color: var(--primary); font-weight: 600; }
.sp-hint.err { color: #C0392B; font-weight: 600; }
.search-page .q-hint { margin: 14px 2px 10px; }
.sp-cta { margin: 14px 0 16px; }
.sp-cta .btn-main { margin-top: 0; }
.sp-cta .btn-main.van-button--disabled { background: #DCEBE5; color: #8FB3A7; box-shadow: none; opacity: 1; }

/* ---------- 首页「信息查询」入口：薄荷渐变，和列表卡同一视觉语言 ---------- */
.query-entry { display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; padding: 14px 16px; cursor: pointer;
  background: linear-gradient(135deg, #EAF7F1 0%, #D9F0E6 100%);
  border: 1px solid #CFE9DC; border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 110, 86, 0.08); }
.query-entry:active { transform: scale(0.995); }
.qe-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  background: var(--primary); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 20px; box-shadow: 0 4px 10px rgba(15, 110, 86, 0.22); }
.qe-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qe-text b { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }
.qe-text small { font-size: 11.5px; color: #4B7A68; margin-top: 3px; }
.qe-arrow { flex: 0 0 auto; color: var(--primary); font-size: 15px; }

/* ---------- 查询页：会员提示卡 ---------- */
.q-member-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  padding: 14px 16px; background: var(--card); border: 1px solid #F0E0BE;
  border-radius: var(--radius); box-shadow: var(--shadow); }
.qc-ico { flex: 0 0 auto; font-size: 24px; color: #C99A34; }
.qc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qc-text b { font-size: 14px; font-weight: 700; color: var(--text); }
.qc-text span { font-size: 11.5px; color: var(--text3); margin-top: 3px; line-height: 1.5; }
.qc-actions { flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: 5px; }
.qc-actions .van-button { height: 30px; padding: 0 14px; font-size: 12.5px; font-weight: 700; }
.qc-link { font-size: 11px; color: var(--primary); text-decoration: underline; cursor: pointer; }

/* ---------- 查询页：结果面板（只给有 / 无，不给记录详情） ---------- */
.q-result { margin: 0 0 16px; padding: 16px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); border-left: 4px solid var(--line); }
.q-result.has { background: #FFF9EE; border-left-color: #E0A93B; }
.q-result.none { background: #F3FAF7; border-left-color: var(--primary); }
.qr-head { display: flex; align-items: center; gap: 9px; }
.qr-ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; }
.q-result.has .qr-ico { background: #FCEBC9; color: #C4861C; }
.q-result.none .qr-ico { background: var(--primary-soft); color: var(--primary); }
.qr-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.qr-desc { font-size: 12px; color: var(--text3); line-height: 1.65; margin: 8px 0 0 39px; }
.q-result.has .qr-desc { color: #9A7423; font-weight: 600; }

/* ---------- 我的录入 / 历史列表 ---------- */
.mine-block { margin-bottom: 16px; }
.mine-block .result-card + .result-card { margin-top: 10px; }
