/* ============================================================
   空铺招租 · 本地测试平台
   ------------------------------------------------------------
   设计原则（先读这四条，再读代码）：

   1. 一个强调色。品牌蓝只给"该点的地方"：主按钮、选中态、价格。
      其余全部用中性灰阶。颜色一多，重点就没了。

   2. 间距走 4 的倍数。4 / 8 / 12 / 16 / 20 / 24 / 32。
      不出现 13px 和 17px 这种随手写的数 —— 它们凑在一起看着就是"没做过排版"。

   3. 字号只有五档：22 / 17 / 15 / 13 / 11.5。
      层级靠字重和颜色区分，不靠把字号一路排到 9px（手机上 9px 是看不清的）。

   4. 阴影只用在"浮起来的东西"上：卡片、抽屉、中间那颗凸起按钮。
      平面上撒阴影 = 满屏脏。
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  /* —— 品牌色：只在需要"被点"的地方出现 —— */
  --brand: #185FA5;
  --brand-deep: #0C447C;
  --brand-bright: #2A7CC7;
  --brand-soft: #EAF2FB;
  --brand-line: #C9DDF2;

  /* —— 语义色 —— */
  --green: #0F6E56;
  --green-soft: #E3F3EC;
  --amber: #A66A12;
  --amber-soft: #FBF0DC;
  --red: #D1453B;
  --red-soft: #FCECEA;
  --orange: #C4501F;

  /* —— 中性灰阶：整页 95% 的面积都是这几个色 —— */
  --ink: #16181D;
  --ink2: #4A4E57;
  /* ink3 是 13px 说明文字的主力色，必须过 AA（≥4.5:1）。
     原来的 #8A8F99 只有 3.2:1，「拍门头、标位置、填个电话就能发」
     这类核心卖点恰好用的是它 —— 是最难读的一行。压到 #6B7280 = 4.65:1。 */
  --ink3: #6B7280;
  /* ink4 从此只做装饰：图标描边、分隔、未选中态。不给任何正文用。 */
  --ink4: #B4B8C0;
  /* 占位符专用：比 ink4 深一档，但仍明显浅于真实值，
     配合左对齐 + 值加粗，填完一眼能分清哪些是输入过的 */
  --ink-ph: #9CA3AF;
  --line: #E7E5E0;
  --line-soft: #F1EFEA;
  --page: #F6F5F2;
  --card: #FFFFFF;

  /* —— 圆角 —— */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 22px;

  /* —— 阴影：只有两级 —— */
  --sh-1: 0 1px 2px rgba(22, 24, 29, .05), 0 2px 8px rgba(22, 24, 29, .04);
  --sh-2: 0 8px 24px rgba(22, 24, 29, .10), 0 2px 6px rgba(22, 24, 29, .05);
  --sh-brand: 0 8px 22px rgba(24, 95, 165, .26);
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 22% 22%, rgba(24, 95, 165, .10) 0%, transparent 62%),
    radial-gradient(1100px 700px at 78% 88%, rgba(196, 80, 31, .07) 0%, transparent 60%),
    #EFEDE8;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .1px;
}

/* ============================================================
   桌面外壳：左介绍栏 + 右手机屏
   ------------------------------------------------------------
   之前 1440 宽的屏幕中间浮一个 392px 手机壳，两侧各空 500px，
   背景只有一层暖灰渐变 —— 看起来像设计稿预览器，不像能转发的网站。
   ============================================================ */

.shell {
  width: 100%; height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  gap: 72px; padding: 0 56px;
}

.side {
  width: 396px; flex-shrink: 0;
  display: flex; flex-direction: column;
  max-height: 720px;
}

.side-top { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.side-name { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--ink2); }
.logo.big {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-deep));
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 11px; box-shadow: 0 6px 16px rgba(24, 95, 165, .3);
}
.logo.big i { height: 3.5px; border-radius: 2px; background: #fff; display: block; }
.logo.big i.short { width: 58%; }

.side-h1 {
  font-size: 40px; line-height: 1.22; font-weight: 800;
  letter-spacing: .5px; color: var(--ink);
}
.side-sub {
  margin-top: 16px; font-size: 15px; line-height: 1.85;
  color: var(--ink2); letter-spacing: .2px;
}

.side-points { list-style: none; margin: 28px 0 0; padding: 0; }
.side-points li {
  padding: 13px 0; border-top: 1px solid rgba(22, 24, 29, .09);
  display: flex; flex-direction: column; gap: 4px;
}
.side-points li b { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.side-points li span { font-size: 13.5px; color: var(--ink3); line-height: 1.6; }

.side-links { display: flex; gap: 10px; margin-top: 28px; }
.side-btn {
  height: 46px; padding: 0 22px; border-radius: 12px; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 600; letter-spacing: .4px;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-deep));
  color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(24, 95, 165, .45);
  font-family: inherit;
  transition: transform .14s;
}
.side-btn:active { transform: scale(.97); }
.side-btn.ghost {
  background: #fff; color: var(--ink2);
  border: 1px solid var(--line); box-shadow: none;
}
.side-btn.ghost.ok { color: var(--green); border-color: var(--green); }

.side-foot {
  margin-top: 22px; font-size: 12.5px; color: var(--ink3);
  letter-spacing: .2px;
}

/* ============================================================
   手机壳（只在电脑上出现）
   ============================================================ */

.phone {
  width: 392px;
  height: 812px;
  max-height: calc(100vh - 64px);
  background: linear-gradient(160deg, #2A2C31, #0E0F12);
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 40px 90px -24px rgba(15, 20, 30, .5),
    0 12px 32px -12px rgba(15, 20, 30, .28),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
  position: relative;
  flex-shrink: 0;
}
/* 落地感：壳底下压一层软阴影，别让它浮在真空里 */
.phone::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: -22px;
  height: 36px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 20, 30, .22), transparent 70%);
  filter: blur(10px); z-index: -1; pointer-events: none;
}

.screen {
  width: 100%;
  height: 100%;
  background: var(--page);
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

html.is-phone body {
  display: block;
  background: var(--page);
  align-items: stretch;
}
html.is-phone .shell {
  display: block; padding: 0; gap: 0;
  height: 100vh; height: 100dvh;
}
html.is-phone .side { display: none; }
html.is-phone .phone {
  width: 100%; height: 100%; max-height: none;
  border-radius: 0; padding: 0; box-shadow: none; background: var(--page);
}
html.is-phone .phone::after { display: none; }
html.is-phone .screen { border-radius: 0; }

/* 状态栏在真机上要隐藏，但顶部安全区（刘海/灵动岛）必须补回来，
   否则蓝色 Logo 和「空铺招租」会直接顶进摄像头区域 */
.statusbar {
  height: 40px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: transparent; z-index: 30;
}
.statusbar .right { display: flex; gap: 6px; align-items: center; font-size: 10px; font-weight: 500; }
.nb { display: inline-flex; align-items: flex-end; gap: 2px; }
.nb i { width: 3px; background: currentColor; border-radius: 1px; display: block; }
html.is-phone .statusbar { display: none; }
html.is-phone .screen {
  padding-top: env(safe-area-inset-top, 0px);
}

/* ============================================================
   骨架
   ============================================================ */

.view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.view::-webkit-scrollbar { width: 0; }

.page { display: none; min-height: 100%; flex-direction: column; }
.page.active { display: flex; }

/* 滚动内容底部留白，别被 tabbar 压住 */
.scroll-pad { padding-bottom: 12px; }

/* ---------- 导航栏 ---------- */
.navbar {
  height: 48px; flex-shrink: 0; display: flex; align-items: center;
  padding: 0 8px; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 20;
}
.navbar .back {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink2); flex-shrink: 0; border-radius: 50%;
  transition: background .15s;
}
.navbar .back:active { background: var(--line-soft); }
.navbar .back svg { width: 20px; height: 20px; }
.navbar .title {
  flex: 1; text-align: center; font-size: 15.5px; font-weight: 650;
  letter-spacing: .3px; color: var(--ink);
}
.navbar .act {
  min-width: 52px; text-align: right; font-size: 13px; font-weight: 500;
  color: var(--brand); cursor: pointer; padding-right: 8px;
  display: flex; align-items: center; justify-content: flex-end; gap: 5px;
}

/* ============================================================
   底部 tabbar
   ============================================================ */

/* 底部导航：四等分标准结构。
   原来中间塞了一颗 62px 固定宽的凸起 FAB，把左右图标挤开、视觉重心偏掉，
   而且「找铺」和「地图」两个 22px 图标在同宽下几乎同义。
   FAB 已拆成右下角独立悬浮球（见 .fab-float），这里回归纯导航。 */
.tabbar {
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0; display: flex; align-items: stretch;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line-soft);
  padding: 0 2px calc(6px + env(safe-area-inset-bottom, 0px));
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 500;
  color: var(--ink3); cursor: pointer; position: relative;
  transition: color .16s;
}
.tabbar .tab svg { width: 22px; height: 22px; transition: transform .16s; }
.tabbar .tab.on { color: var(--brand); font-weight: 600; }
.tabbar .tab.on svg { transform: translateY(-1px); }
.tabbar .tab:active svg { transform: scale(.9); }

/* 右下角独立悬浮球：只在「浏览类」页面出现（列表/找铺/地图）。
   新建是任务流入口，不该出现在首页或表单页本身。 */
.fab-float {
  position: absolute; right: 18px;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 18px);
  width: 54px; height: 54px; border-radius: 18px; z-index: 25;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-deep));
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(24, 95, 165, .5), 0 2px 6px rgba(24, 95, 165, .3);
  transition: transform .16s, opacity .16s;
  cursor: pointer;
}
.fab-float.show { display: flex; }
.fab-float:active { transform: scale(.94); }
.fab-float svg { width: 24px; height: 24px; }

/* 表单页的吸底发布条。表单是任务流，不是浏览：
   tabbar 和悬浮球都隐藏了（见 renderTabbar / renderFab），
   这颗按钮永远不会被别的东西压住。 */
.capture-cta {
  position: sticky; bottom: 0; z-index: 26;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg,
    rgba(246, 245, 242, 0) 0%,
    rgba(246, 245, 242, .94) 22%,
    var(--page) 55%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.capture-cta .btn { width: 100%; }
/* 给吸底条留出滚动余量，最后一张卡片不会被它盖住 */
.pad-b-form { padding-bottom: 24px; }

.tab-dot {
  position: absolute; top: 2px; right: 50%; margin-right: -20px;
  min-width: 15px; height: 15px; line-height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 9.5px; font-weight: 600; text-align: center;
  box-shadow: 0 0 0 2px #fff;
  display: inline-block;
}
/* 导航栏右侧用的时候不需要绝对定位 */
.tab-dot.inline {
  position: static; margin: 0 0 0 5px; box-shadow: none;
  vertical-align: 1px;
}

/* ============================================================
   通用件
   ============================================================ */

.pad { padding: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.card.flat { border: none; box-shadow: var(--sh-1); }

.btn {
  height: 48px; border-radius: 13px; border: none;
  font-size: 15.5px; font-weight: 600; letter-spacing: .3px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; font-family: inherit;
  transition: transform .12s, opacity .15s, box-shadow .15s;
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn.primary {
  background: linear-gradient(160deg, var(--brand-bright), var(--brand));
  color: #fff; box-shadow: var(--sh-brand);
}
.btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand-line); }
.btn.ghost:active { background: var(--brand-soft); }
.btn.grey { background: var(--line-soft); color: var(--ink2); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { height: 40px; font-size: 13.5px; border-radius: 11px; width: auto; padding: 0 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* 徽标：统一 20px 高，圆角 6，字号 10.5 */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2px;
  white-space: nowrap;
}
.badge::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .75; flex-shrink: 0;
}
.badge.free { background: var(--green-soft); color: var(--green); }
.badge.offer { background: var(--amber-soft); color: var(--amber); }
.badge.rented { background: var(--line-soft); color: var(--ink3); }
.badge.gone { background: var(--red-soft); color: var(--red); }

.empty {
  padding: 56px 28px; text-align: center;
  font-size: 13.5px; color: var(--ink3); line-height: 1.95;
}
.empty .big {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 18px; background: var(--line-soft);
  font-size: 22px; color: var(--ink4);
}

/* 区块标题 */
.sec-h {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px 10px;
}
.sec-h b { font-size: 15px; font-weight: 650; letter-spacing: .3px; }
.sec-h span { font-size: 11.5px; color: var(--ink3); }

/* ============================================================
   搜索框
   ============================================================ */

.searchbar {
  height: 40px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; padding: 0 12px; gap: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar:focus-within {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, .09);
}
.searchbar svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink4); }
.searchbar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13.5px; font-family: inherit; color: var(--ink); min-width: 0;
}
.searchbar input::placeholder { color: var(--ink4); }
.searchbar .clr {
  width: 18px; height: 18px; border-radius: 50%; background: var(--line);
  color: var(--ink3); font-size: 12px; line-height: 18px; text-align: center;
  cursor: pointer; flex-shrink: 0;
}

/* ============================================================
   chips（筛选）
   ============================================================ */

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }

/* 筛选条：右缘渐隐，明确告诉用户"这里还能横滑"。
   原来第 4 个 chip 被容器右边缘硬切成半个「1」，没有任何提示。
   滚到最右时 JS 会加 .at-end 把遮罩淡出，不会永久遮住最后一项。 */
.chips-wrap { position: relative; flex: 1; min-width: 0; }
.chips-wrap::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 30px;
  background: linear-gradient(90deg, rgba(246, 245, 242, 0), var(--page) 92%);
  pointer-events: none; opacity: 1; transition: opacity .18s;
}
.chips-wrap.at-end::after { opacity: 0; }
.chips-wrap .chips { width: 100%; }
.chip {
  flex-shrink: 0; height: 32px; padding: 0 13px;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: all .15s; white-space: nowrap;
}
.chip:active { transform: scale(.97); }
.chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 3px 10px rgba(24, 95, 165, .22); font-weight: 600;
}
.chip .n {
  font-size: 11px; padding: 0 5px; height: 16px; line-height: 16px;
  border-radius: 5px; background: var(--line-soft); color: var(--ink3);
  font-weight: 600;
}
.chip.on .n { background: rgba(255, 255, 255, .22); color: #fff; }

/* ============================================================
   房东 · 铺位列表
   ============================================================ */

.item {
  display: flex; gap: 12px; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 10px;
  cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s;
}
.item:active {
  transform: scale(.993); border-color: var(--brand-line);
  box-shadow: 0 4px 14px rgba(22, 24, 29, .07);
}
.thumb {
  width: 84px; height: 84px; border-radius: 10px; flex-shrink: 0;
  overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #fff; font-size: 10.5px; font-weight: 650; letter-spacing: .8px;
}
.thumb .ico-sm { opacity: .85; }
.thumb .ico-sm svg { width: 17px; height: 17px; }
.thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .14));
  pointer-events: none;
}
.thumb.dim::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(246, 245, 242, .68);
}
.item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item .t-row { display: flex; align-items: flex-start; gap: 8px; }
.item h4 {
  flex: 1; font-size: 14px; font-weight: 650; line-height: 1.42; letter-spacing: .1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item .meta {
  font-size: 12px; color: var(--ink3); margin-top: 4px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.item .meta .dot { width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--ink4); }
.item .meta .stale {
  color: var(--amber); background: var(--amber-soft);
  padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 500;
}
.item .row2 {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: auto; padding-top: 8px;
}
.item .price {
  font-size: 17px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
.item .price small {
  font-size: 10.5px; font-weight: 500; color: var(--ink3); margin-left: 3px;
  letter-spacing: 0;
}
.item .time {
  font-size: 10.5px; color: var(--ink4); margin-top: 5px;
  display: flex; align-items: center; gap: 4px;
}
.item .time svg { width: 11px; height: 11px; }

/* ============================================================
   客户 · 找铺卡片
   ============================================================ */

.bcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; display: flex; gap: 12px; margin-bottom: 10px;
  cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s;
}
.bcard:active {
  transform: scale(.993); border-color: var(--brand-line);
  box-shadow: 0 4px 14px rgba(22, 24, 29, .07);
}
.bthumb {
  width: 96px; height: 96px; border-radius: 10px; flex-shrink: 0;
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: #fff; font-size: 10.5px; font-weight: 650; letter-spacing: .8px;
  overflow: hidden;
}
.bthumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .12));
}
.bthumb .ico-sm { opacity: .85; }
.bthumb .ico-sm svg { width: 18px; height: 18px; }
.bstatus {
  position: absolute; left: 5px; top: 5px; z-index: 2;
  height: 18px; padding: 0 6px; border-radius: 5px;
  font-size: 9.5px; font-weight: 600; line-height: 18px;
  color: #fff; backdrop-filter: blur(6px);
}
.bstatus.free { background: rgba(15, 110, 86, .88); }
.bstatus.offer { background: rgba(166, 106, 18, .9); }

.bbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.btitle {
  font-size: 14px; font-weight: 650; line-height: 1.42; letter-spacing: .1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bprice { display: flex; align-items: baseline; margin-top: 6px; gap: 2px; }
.bprice .num {
  font-size: 19px; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: -.3px; line-height: 1;
}
.bprice .unit { font-size: 10.5px; font-weight: 500; color: var(--brand); opacity: .85; }
.bprice .sqm { font-size: 10.5px; color: var(--ink3); margin-left: 5px; }
.bmeta {
  font-size: 12px; color: var(--ink2); margin-top: 5px;
  display: flex; align-items: center; gap: 6px;
}
.bmeta .dot { width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--ink4); }
.btags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.btag {
  height: 18px; padding: 0 6px; border-radius: 5px;
  font-size: 10px; font-weight: 500; line-height: 18px;
  background: var(--line-soft); color: var(--ink3);
}
.btag.biz { background: var(--brand-soft); color: var(--brand); }
.bfoot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 7px; gap: 8px;
}
.baddr {
  font-size: 10.5px; color: var(--ink3); flex: 1;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 3px;
}
.baddr svg { width: 11px; height: 11px; flex-shrink: 0; opacity: .7; }
.fresh {
  flex-shrink: 0; height: 18px; padding: 0 6px; border-radius: 5px;
  background: var(--green-soft); color: var(--green);
  font-size: 9.5px; font-weight: 600; line-height: 18px;
  display: inline-flex; align-items: center; gap: 2px;
}
.fresh svg { width: 9px; height: 9px; }

/* ============================================================
   排序条
   ============================================================ */

.sortbar {
  display: flex; align-items: center; justify-content: space-between;
  /* 上边加一条分隔：不加的话「地图/列表」切换和上面那行面积 chip 挤在同一条
     视觉带上，看起来像同一个控件被切剩下的碎片 */
  margin-top: 10px; padding: 11px 2px 10px;
  border-top: 1px solid var(--line-soft);
}
.sorts { display: flex; gap: 4px; }
.sort {
  height: 26px; padding: 0 9px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--ink3);
  cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
  transition: all .15s;
}
.sort.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.sort svg { width: 11px; height: 11px; }
.count { font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }

/* 筛选行（带左侧标签） */
.filter-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.filter-row .fr-label {
  width: 28px; flex-shrink: 0; font-size: 11.5px; color: var(--ink3); font-weight: 500;
}
.filter-row .chips { flex: 1; }

/* ============================================================
   抽屉 / 遮罩 / toast
   ============================================================ */

.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  background: rgba(22, 24, 29, .9); color: #fff;
  font-size: 13.5px; font-weight: 500; padding: 11px 20px;
  border-radius: 12px; z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 270px; text-align: center; line-height: 1.55;
  backdrop-filter: blur(10px); box-shadow: var(--sh-2);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.mask {
  position: absolute; inset: 0; background: rgba(15, 18, 24, .42);
  backdrop-filter: blur(2px);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.mask.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 8px 20px 24px; z-index: 210;
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  max-height: 78%; overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(15, 18, 24, .16);
}
.sheet.show { transform: translateY(0); }
.sheet-grip {
  width: 36px; height: 4px; background: var(--line); border-radius: 2px;
  margin: 0 auto 16px;
}
.sheet h3 { font-size: 17px; font-weight: 650; letter-spacing: .3px; margin-bottom: 5px; }
.sheet .sub { font-size: 12.5px; color: var(--ink3); margin-bottom: 16px; line-height: 1.65; }
.sheet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 2px; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: background .12s; border-radius: 8px;
}
.sheet-row:active { background: #FAF9F7; }
.sheet-row:last-of-type { border-bottom: none; }
.sheet-row .r { font-size: 12px; color: var(--ink3); font-weight: 400; }
.sheet-row .l {
  display: flex; align-items: center; gap: 10px;
}
.sheet-row .l .doti {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.sheet-row.danger { color: var(--red); }

/* 抽屉里的输入框 */
.inp {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; font-size: 14px; font-family: inherit;
  outline: none; color: var(--ink); background: #FCFBF9;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 10px;
}
.inp:focus {
  border-color: var(--brand-line); background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, .09);
}
.inp::placeholder { color: var(--ink4); }
textarea.inp { height: auto; padding: 12px 14px; resize: none; line-height: 1.65; }

/* ============================================================
   调试条（本地平台专有）
   ============================================================ */

/* 调试条：默认彻底不渲染。
   它原本是 position:absolute; bottom:0; height:26px，而 tabbar 高 62px、
   文字标签落在最后一行 —— 两者重叠 26px，把「首页/找铺/地图」的标签
   整个盖掉，只剩一排没有字义的图标；还把手机号、版本号、登录入口
   直接摊在游客面前。正式环境不该出现，需要时 ?debug=1 打开。 */
.devbar { display: none; }
.devbar.on {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 150;
  height: 26px; background: rgba(22, 24, 29, .9);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .72);
  font-size: 10.5px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.devbar .who { color: #7EDCB2; font-weight: 600; }
.devbar .pg { color: rgba(255, 255, 255, .45); }
.devbar .sep { flex: 1; }
.devbar .dbg-btn {
  color: #A8CDEE; cursor: pointer; padding: 2px 6px; border-radius: 4px;
  transition: background .15s;
}
.devbar .dbg-btn:active { background: rgba(255, 255, 255, .12); }

/* ============================================================
   金融数字：统一用等宽数字，避免跳字
   ============================================================ */

.num-mono { font-variant-numeric: tabular-nums; letter-spacing: -.2px; }

/* 分隔线 */
.hr { height: 1px; background: var(--line-soft); margin: 14px 0; }

/* 底部说明（列表末尾 / 卡片脚下） */
.list-foot {
  text-align: center; font-size: 11.5px; color: var(--ink4);
  padding: 6px 0 26px; letter-spacing: .3px;
}
.hint { font-size: 11.5px; color: var(--ink3); line-height: 1.75; margin-top: 12px; }
.hint.center { text-align: center; margin-top: 12px; }

/* ============================================================
   首页
   ============================================================ */

.home {
  min-height: 100%;
  padding: 18px 18px 22px;
  display: flex; flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 2px 18px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-deep));
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 10px;
  box-shadow: 0 4px 12px rgba(24, 95, 165, .28);
}
.brand .logo i { height: 3.5px; border-radius: 2px; background: #fff; display: block; }
.brand .logo i.short { width: 58%; }
.brand-txt b {
  display: block; font-size: 18.5px; font-weight: 700;
  letter-spacing: 1.2px; line-height: 1.2;
}
.brand-txt span { display: block; font-size: 11.5px; color: var(--ink3); margin-top: 3px; letter-spacing: .2px; }

.resume {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; margin-bottom: 14px;
  font-size: 12.5px; color: var(--ink2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.resume:active { background: #FBFAF8; border-color: var(--brand-line); }
.resume-ico { display: flex; color: var(--ink4); }
.resume-tag {
  margin-left: auto; background: var(--brand-soft); color: var(--brand);
  font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px;
}

/* ---------- 两块面板 ---------- */
.panel {
  border-radius: var(--r-lg); padding: 20px 20px 18px;
  margin-bottom: 14px;
  /* 原来写 flex:1 —— 两张卡被拉成等分高度、内容却撑不满，
     底部各留 70~85px 空白而且两处不一致。改成按内容自适应。 */
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .14s, box-shadow .18s;
}
.panel:active { transform: scale(.992); }

.panel.landlord {
  background:
    radial-gradient(circle at 82% -8%, rgba(255, 255, 255, .22), transparent 46%),
    linear-gradient(152deg, #1E74BC 0%, #0B3F72 100%);
  box-shadow: 0 14px 34px -10px rgba(12, 68, 124, .5);
}
/* 一块很淡的光，让深色面板不死板 */
.panel .glow {
  position: absolute; right: -50px; top: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%);
  pointer-events: none;
}
.panel.customer {
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22, 24, 29, .04);
}

.panel-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.panel-badge {
  font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .95);
}
.panel-badge.light { background: var(--brand-soft); color: var(--brand); }
.panel-arrow { display: flex; color: rgba(255, 255, 255, .55); }
.panel-arrow.light { color: var(--ink4); }

.panel-title {
  font-size: 25px; font-weight: 700; color: #fff;
  letter-spacing: 1.5px; line-height: 1.28;
  position: relative; z-index: 1;
}
.panel-title.light { color: var(--ink); }
.panel-desc {
  /* 原来是 rgba(255,255,255,.74)，压在 #2A7CC7 上只有 3.1:1 ——
     「拍门头、标位置、填个电话就能发」这句是核心卖点，恰恰最难读。
     改成不透明浅蓝白，对比度到 5.6:1。 */
  font-size: 13px; line-height: 1.7; color: #E9F1FA;
  margin-top: 9px; position: relative; z-index: 1;
}
.panel-desc.light { color: var(--ink2); }

/* 主行动的出口：一行文字链，替代原来卡片里那颗白按钮。
   按钮 + 整卡点击 + 右上角 chevron 三处指向同一动作，是嵌套点击区。 */
.panel-go {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; align-self: flex-start;
  font-size: 13.5px; font-weight: 650; color: #fff;
  letter-spacing: .3px;
  border-bottom: 1.5px solid rgba(255, 255, 255, .45);
  padding-bottom: 2px;
  position: relative; z-index: 1;
}
.panel-go.light { color: var(--brand); border-bottom-color: var(--brand-line); }

.panel-stat {
  display: flex; align-items: center; margin-top: 18px; padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  position: relative; z-index: 1;
}
.panel-stat.quiet {
  justify-content: flex-start; font-size: 12px;
  color: rgba(255, 255, 255, .56);
}
.st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.st-num {
  font-size: 21px; font-weight: 700; color: #fff; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.st-num.hot { color: #FFD08A; }
.st-lbl { font-size: 10.5px; color: rgba(255, 255, 255, .58); letter-spacing: .3px; }
.st-div { width: 1px; height: 24px; background: rgba(255, 255, 255, .14); }

.panel-acts { margin-top: 16px; position: relative; z-index: 1; }
.pact {
  width: 100%; height: 46px; border-radius: 12px; border: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .3px;
  font-family: inherit; cursor: pointer; transition: transform .12s, opacity .15s;
}
.pact:active { transform: scale(.985); opacity: .92; }
.pact.solid { background: #fff; color: var(--brand-deep); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.pact.line {
  background: linear-gradient(160deg, var(--brand-bright), var(--brand));
  color: #fff; box-shadow: var(--sh-brand);
}

.foot {
  text-align: center; font-size: 12px; color: var(--ink3);
  margin-top: 6px; line-height: 1.8; letter-spacing: .2px;
}

/* ============================================================
   首屏真实房源横滑
   ------------------------------------------------------------
   一个招租产品的首屏没有一张铺面照片，说服力是零。
   把「最近上架」提到首屏，让实拍这件事先于文案被看见。
   ============================================================ */

.rail-sec { margin: 2px -18px 16px; }
.rail-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 18px 10px;
}
.rail-head b { font-size: 15px; font-weight: 700; letter-spacing: .4px; }
.rail-more { font-size: 12.5px; color: var(--brand); font-weight: 500; cursor: pointer; }

.rail {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 2px 18px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.res-card {
  flex: 0 0 152px; width: 152px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(22, 24, 29, .04);
  transition: transform .14s, box-shadow .18s;
}
.res-card:active { transform: scale(.98); box-shadow: var(--sh-2); }

.res-img {
  position: relative; height: 104px; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.res-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-ph { display: flex; color: rgba(255, 255, 255, .9); }
.res-tag {
  position: absolute; left: 8px; top: 8px;
  background: rgba(255, 255, 255, .94); color: var(--amber);
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  letter-spacing: .3px;
}

.res-body { padding: 9px 10px 11px; }
.res-price {
  font-size: 16px; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.res-price small { font-size: 10.5px; font-weight: 500; color: var(--ink3); margin-left: 1px; }
.res-meta {
  font-size: 11.5px; color: var(--ink3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.res-addr {
  font-size: 11.5px; color: var(--ink2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 版本号：只在页脚最末一个灰点，连点 5 下开调试模式。
   不再常驻底部黑条（那条会压住 tabbar 的文字标签）。 */
.ver-tag {
  display: inline-block; margin-left: 6px;
  color: var(--ink4); font-size: 10.5px;
  cursor: default; user-select: none;
}

/* ============================================================
   详情页
   ============================================================ */

.hero {
  height: 200px; position: relative; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #fff; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .04) 40%, rgba(0, 0, 0, .26));
}
.hero-ico { opacity: .5; position: relative; z-index: 1; }
/* 没有实拍图时用品牌色占位卡，而不是随机渐变糊成一张"像照片"的假图 ——
   随机色块会被误读成拍糊了的实拍，品牌色一眼就知道这是占位 */
.hero.hero-empty {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, .18), transparent 55%),
    linear-gradient(150deg, #2A7CC7 0%, #0C447C 100%);
}
.hero.hero-empty::after { display: none; }
.hero-txt {
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 600; letter-spacing: 3px; opacity: .82;
}
.hero-badge { position: absolute; left: 14px; top: 14px; z-index: 2; }
.hero-count {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  font-size: 10.5px; font-weight: 500;
  background: rgba(0, 0, 0, .38); color: #fff;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* 压在大图上的信息卡：往上提一点，视觉上跟大图咬合 */
.hero-card {
  background: #fff; margin: -18px 14px 0; padding: 16px;
  border-radius: var(--r-lg); position: relative; z-index: 5;
  box-shadow: var(--sh-2);
}
.hero-card h2 {
  font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: .2px;
}
.hero-price { display: flex; align-items: baseline; gap: 3px; margin-top: 9px; }
.hero-price .n {
  font-size: 24px; font-weight: 700; color: var(--orange);
  font-variant-numeric: tabular-nums; letter-spacing: -.5px; line-height: 1;
}
.hero-price .u { font-size: 11.5px; font-weight: 500; color: var(--ink3); }

/* 头图下方的数据条：把 面积 / 月租 / 楼层 提炼成一行大数字。
   原来位在这三项占着「基本信息」表格的三行，和押付、门宽这类次要字段
   平铺在一起，访客要在八行里找「多少钱」 */
.spec-bar {
  display: flex; align-items: stretch;
  margin-top: 12px; padding: 11px 0 10px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.spec {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding-right: 10px; min-width: 0;
}
.spec + .spec { border-left: 1px solid var(--line-soft); padding-left: 14px; }
.spec .sv {
  font-size: 19px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
  letter-spacing: -.3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.spec .sv.hot { color: var(--orange); }
.spec .sv i {
  font-style: normal; font-size: 11px; font-weight: 500;
  color: var(--ink3); margin-left: 2px; letter-spacing: 0;
}
.spec .sk { font-size: 11.5px; color: var(--ink3); letter-spacing: .3px; }
.hero-addr {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--ink2); margin-top: 10px; line-height: 1.5;
}
.hero-addr svg { flex-shrink: 0; color: var(--ink4); }
.hero-internal {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px; color: var(--ink3);
}
.hero-internal .warn { color: var(--amber); font-weight: 600; }

.card-h {
  font-size: 11.5px; font-weight: 600; color: var(--ink3);
  letter-spacing: .5px; padding: 12px 0 4px;
  text-transform: uppercase;
}
.card-h.flat { padding-top: 0; }
.pad-t12 { padding-top: 12px; }
.mt-8 { margin-top: 8px; }
.hero-price .n.neg { font-size: 19px; color: var(--ink2); }
.kv {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink3); }
.kv .v { font-weight: 500; font-variant-numeric: tabular-nums; }
.remark {
  font-size: 13px; line-height: 1.85; color: var(--ink2);
  margin-top: 6px; letter-spacing: .1px;
}

/* 底部操作条 */
.actionbar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px 14px; flex-shrink: 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line-soft);
}
.abtn {
  height: 48px; min-width: 56px; border-radius: 13px; border: none;
  background: var(--line-soft); color: var(--ink2);
  font-size: 13px; font-weight: 600; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 0 12px;
  transition: transform .12s, background .15s;
}
.abtn:active { transform: scale(.97); background: #E7E5E0; }
.abtn.primary {
  flex: 1; flex-direction: row; gap: 6px;
  background: linear-gradient(160deg, var(--brand-bright), var(--brand));
  color: #fff; font-size: 15px; box-shadow: var(--sh-brand);
}
.abtn.primary:active { background: var(--brand-deep); }

/* ============================================================
   线索
   ============================================================ */

.lead {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; margin-bottom: 10px;
}
.lead-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.lead-h strong { font-size: 14px; font-weight: 650; }
.lead-time { margin-left: auto; font-size: 10.5px; color: var(--ink4); }
.lead-prop {
  font-size: 11.5px; color: var(--ink3); margin-bottom: 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.lead-note {
  font-size: 12.5px; line-height: 1.75; color: var(--ink2);
  background: #FAF9F7; border-radius: 9px; padding: 9px 11px;
}
.lead-when {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 500; color: var(--brand); margin-top: 8px;
}

/* ============================================================
   采集页
   ============================================================ */

.shoot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.shoot {
  aspect-ratio: 1; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 9.5px; font-weight: 500;
}
.shoot.done { background: var(--green-soft); color: var(--green); }
.shoot.add { border: 1.5px dashed var(--line); background: #FCFBF9; color: var(--ink4); }

.field {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.field:last-child { border-bottom: none; }
.field label { width: 58px; flex-shrink: 0; font-size: 13.5px; color: var(--ink2); }
.field input {
  flex: 1; border: none; outline: none; background: transparent;
  /* 左对齐：原来右对齐时，浅灰占位符和填进去的真实值贴在同一个视觉终点，
     字号字色几乎一致，填完根本分不清哪些是输入过的 */
  font-size: 15px; font-family: inherit; text-align: left; color: var(--ink);
  min-width: 0; font-variant-numeric: tabular-nums;
  font-weight: 500;
}
/* 空值时：浅灰、常规字重 —— 与填过的值形成明确区分 */
.field input:placeholder-shown {
  color: var(--ink-ph); font-weight: 400;
}
.field input::placeholder { color: var(--ink-ph); }
/* 必填标记：标题、面积、月租是真必填，给个小红点，别用红星过度装饰 */
.field .req { width: 4px; height: 4px; border-radius: 50%; background: var(--red); opacity: .75; flex-shrink: 0; }
.field .unit { font-size: 12px; color: var(--ink3); flex-shrink: 0; }

.loc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0; font-size: 13px;
}
.loc-row .k { color: var(--ink2); width: 58px; flex-shrink: 0; }
.loc-row .v {
  flex: 1; font-size: 12px; color: var(--ink3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.loc-row .edit { font-size: 12.5px; font-weight: 500; color: var(--brand); cursor: pointer; }

/* 定位状态：上面一行放来源标签，右侧两行放结果 */
.loc-cap {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--line-soft);
}
.loc-cap .k { color: var(--ink2); width: 58px; flex-shrink: 0; font-size: 13.5px; padding-top: 1px; }
.loc-state { flex: 1; min-width: 0; }
.loc-state .t { font-size: 13px; color: var(--ink); font-weight: 500; }
.loc-state .s {
  margin-top: 3px; font-size: 11.5px; color: var(--ink3); line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   抽屉里的数据统计
   ============================================================ */

.dbstat { display: flex; gap: 10px; }
.dbstat > div {
  flex: 1; background: #FCFBF9; border: 1px solid var(--line-soft);
  border-radius: 11px; padding: 12px 8px; text-align: center;
}
.dbstat b {
  display: block; font-size: 20px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.dbstat span { font-size: 10.5px; color: var(--ink3); }

.json {
  font-size: 10px; line-height: 1.6; background: #FAF9F7;
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 11px; overflow: auto; max-height: 330px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink2); white-space: pre-wrap; word-break: break-all;
}

/* 「找铺」页底部切身份 */
.switch-role {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 12.5px; font-weight: 500; color: var(--brand);
  padding: 18px 0 26px; cursor: pointer;
}
.switch-role:active { opacity: .7; }

/* ============================================================
   间距工具（只在真的需要一次性的地方用，别滥用）
   ============================================================ */

.px { padding-left: 14px; padding-right: 14px; }
.pt-0 { padding-top: 0; }
.mt-6 { margin-top: 6px; }
.mt-10 { margin-top: 10px; }
.pad-b4 { padding-bottom: 4px; }
.pad-t0 { padding-top: 0; }
.h-8 { height: 8px; }
.nav-spacer { width: 36px; flex-shrink: 0; }
.nav-spacer-r { width: 52px; flex-shrink: 0; }

/* 卡片内边距的三种常用规格 */
.card.pad-l { padding: 4px 16px 10px; }
.card.pad-m { padding: 14px 16px; }
.card.pad-s { padding: 16px; }
.card + .card, .card + .mt-card { margin-top: 12px; }
.mt-card { margin-top: 12px; }

/* 空态与错误态里的第二行说明 */
.empty .sub {
  font-size: 12px; color: var(--ink4); margin-top: 3px; line-height: 1.7;
}
.empty .big.err { color: var(--red); background: var(--red-soft); }

/* 详情页「配套」标签稍大一号 */
.btag.lg {
  height: 24px; line-height: 24px; font-size: 11.5px; padding: 0 9px;
}

/* 抽屉里的双按钮行与全宽按钮 */
.btn-row { display: flex; gap: 10px; margin: 16px 0 8px; }
.btn-row .btn { flex: 1; height: 42px; font-size: 13.5px; }
.btn.full-wide { width: 100%; margin-top: 10px; }
.btn.mt-14 { margin-top: 14px; }
.btn.mt-18 { margin-top: 18px; }

/* 「管理」抽屉里的状态圆点 */
.sheet-row .cur { color: var(--green); font-size: 11px; margin-left: 5px; }
.doti.green { background: var(--green); }
.doti.amber { background: var(--amber); }
.doti.gray { background: var(--ink3); }


/* ============================================================
   地图页
   ------------------------------------------------------------
   版式跟小程序地图页一致：地图铺满、筛选条浮在顶部、
   定位/图层按钮浮在右侧、点标记弹底部卡片。

   注意 z-index 的排序，这是最容易出错的地方：
   瓦片(400) < 标记(600) < 筛选条/按钮(1000)。
   Leaflet 自己的控件是 800 起，所以浮动按钮要压到 1000 以上，
   否则点不到。
   ============================================================ */

.map-wrap {
  position: relative;
  /* 高度由 shell.js 按导航栏/底栏实测高度写进 --map-h，
     比写死 144px 靠得住：断点一改、底栏多一项，这里不用跟着改 */
  height: var(--map-h, calc(var(--vh, 1vh) * 100 - 144px));
  min-height: 340px;
  background: #EDEBE6;
  overflow: hidden;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* 底图没回来时不要白闪 */
  background: #E8E6E1;
}

.map-canvas .leaflet-container { font: inherit; background: #E8E6E1; }

/* 地图上的一切文字都别被顺手选中，手机上长按很难看 */
.map-wrap {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 瓦片降饱和：高德/OSM 的彩色底图（绿地、橙路、密集标注）直接嵌在
   米白 + 品牌蓝的界面里，视觉上像"两个产品"。压到 0.4 饱和度之后
   变成一张灰调底图，界面重新成为视觉主体。 */
.map-tile { filter: saturate(.4) contrast(.96) brightness(1.04); }

/* Leaflet 默认的白色方块 +- 和自定义圆形按钮并排，一眼就是"没改过默认样式"。
   这里把控件改成和定位/图层按钮同规格的白色圆钮。 */
.leaflet-control-zoom {
  border: none !important; box-shadow: none !important;
  margin: 0 12px 14px 0 !important;
}
.leaflet-control-zoom a,
.leaflet-control-zoom a:hover {
  width: 40px !important; height: 40px !important;
  line-height: 40px !important; text-indent: 0 !important;
  border-radius: 50% !important; border: none !important;
  background: rgba(255, 255, 255, .97) !important;
  color: var(--ink2) !important;
  font-size: 19px !important; font-weight: 400 !important;
  box-shadow: var(--sh-2) !important;
  display: flex !important; align-items: center; justify-content: center;
  margin-bottom: 8px !important;
  transition: background .15s, transform .12s;
}
.leaflet-control-zoom a:active { transform: scale(.94); background: #fff !important; }
.leaflet-control-zoom a:last-child { margin-bottom: 0 !important; }
.leaflet-control-zoom-in { font-size: 21px !important; }
.leaflet-control-zoom-out { font-size: 21px !important; }

/* 版权条：法律要求保留，但没必要做成一条抢戏的横带 */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, .72) !important;
  color: var(--ink3) !important;
  font-size: 9px !important; padding: 1px 6px !important;
  border-radius: 4px 0 0 0;
  backdrop-filter: blur(4px);
}
.leaflet-control-attribution a { color: var(--ink3) !important; }

.map-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 12.5px; color: var(--ink3); line-height: 1.8; padding: 24px;
}

/* ---------- 顶部筛选条 ---------- */
.map-top {
  position: absolute; top: 10px; left: 0; right: 0;
  z-index: 1000; padding: 0 10px; pointer-events: none;
}

.map-chips { display: flex; gap: 6px; overflow-x: auto; pointer-events: auto; }
.map-chips::-webkit-scrollbar { display: none; }

.map-chip {
  flex-shrink: 0; height: 32px; padding: 0 11px;
  display: inline-flex; align-items: center; gap: 5px;
  border: none; border-radius: 16px; cursor: pointer;
  font-size: 12.5px; font-weight: 500; font-family: inherit;
  color: var(--ink2); background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 8px rgba(22, 24, 29, .13);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  transition: background .15s, color .15s;
}
.map-chip:active { transform: scale(.97); }
.map-chip .n {
  font-size: 10.5px; font-variant-numeric: tabular-nums;
  color: var(--ink3); opacity: .9;
}
.map-chip.on { background: var(--brand); color: #fff; }
.map-chip.on .n { color: rgba(255, 255, 255, .72); }

/* ---------- 右侧浮动按钮 ---------- */
.map-fabs {
  position: absolute; right: 10px; bottom: 84px;
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
}

.map-fab {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .96); color: var(--ink2);
  box-shadow: var(--sh-2); cursor: pointer;
  transition: background .15s, transform .12s;
}
.map-fab:active { background: var(--line-soft); transform: scale(.95); }

/* ---------- 点位计数 ---------- */
/* 底部结果卡。
   原来是一颗深色小药丸，和信息量、和整套白色圆角卡片语言都不搭，
   而且把"有几间"这个关键信息压在最小字号里。改成贴底的白色结果卡。 */
.map-count {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 1000;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px -6px rgba(22, 24, 29, .18), 0 1px 3px rgba(22, 24, 29, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  transition: transform .14s;
}
.map-count:active { transform: scale(.985); }
.map-count .mc-num {
  font-size: 21px; font-weight: 700; color: var(--brand); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.4px;
  min-width: 26px;
}
.map-count .mc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.map-count .mc-txt b { font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.map-count .mc-txt span {
  font-size: 11.5px; color: var(--ink3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-count .mc-go {
  flex-shrink: 0; height: 32px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  color: var(--brand); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: inherit; cursor: pointer;
}

/* ---------- 价格气泡标记 ---------- */
.map-pin { background: none; border: none; }

.map-pin-body {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -100%);
  height: 24px; padding: 0 9px;
  display: inline-flex; align-items: center;
  border-radius: 12px;
  color: #fff; font-size: 11.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; letter-spacing: .2px;
  box-shadow: 0 3px 10px rgba(22, 24, 29, .28), 0 0 0 2px rgba(255, 255, 255, .9);
  transition: transform .12s;
}

/* 气泡下面的小尖角，让价格"钉"在坐标上而不是浮在空中 */
.map-pin-body::after {
  content: ''; position: absolute; left: 50%; bottom: -5px;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  filter: brightness(.86);
}

.map-pin:hover .map-pin-body,
.map-pin:active .map-pin-body { transform: translate(-50%, -104%); }

/* ---------- 底部详情卡（悬浮在地图上，不占布局） ---------- */
.map-sheet-host {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1100; pointer-events: none;
}
.map-sheet-host .map-sheet { pointer-events: auto; }

.map-sheet {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(22, 24, 29, .14);
  padding: 8px 16px 14px;
  animation: msIn .22s cubic-bezier(.22, .8, .3, 1);
}

@keyframes msIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ms-grip {
  width: 34px; height: 4px; border-radius: 2px;
  background: var(--line); margin: 0 auto 10px;
}

/* 卡片内容槽：以后要加"收藏/分享"之类，都塞这里，外面不用动 */
.ms-body { display: block; }

.ms-head { display: flex; align-items: flex-start; gap: 10px; }

.ms-thumb {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .92);
}

.ms-txt { flex: 1; min-width: 0; }
.ms-txt h4 {
  font-size: 14px; font-weight: 650; color: var(--ink); letter-spacing: .2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-txt p {
  margin-top: 4px; font-size: 11.5px; color: var(--ink3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ms-price {
  display: flex; align-items: baseline; gap: 3px;
  margin-top: 11px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.ms-price .num {
  font-size: 21px; font-weight: 680; color: var(--ink);
  letter-spacing: -.3px; font-variant-numeric: tabular-nums;
}
.ms-price .unit { font-size: 11.5px; color: var(--ink3); }
.ms-area {
  margin-left: auto; font-size: 11.5px; color: var(--ink3);
  font-variant-numeric: tabular-nums;
}

.ms-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 9px; font-size: 11px; color: var(--ink3);
  font-variant-numeric: tabular-nums;
}
.ms-meta span { display: inline-flex; align-items: center; gap: 4px; }

.ms-warn {
  display: flex; align-items: center; gap: 5px;
  margin-top: 9px; padding: 7px 10px; border-radius: 8px;
  background: var(--amber-soft, #FBF1E2); color: var(--amber);
  font-size: 11.5px;
}

/* 卡片里的按钮行别再留那么大上下白 */
.map-sheet .btn-row { margin: 12px 0 0; }
.map-sheet .btn-row .btn { height: 40px; }

/* 底栏现在是五项，字号要收一点，否则"地图"两个字会挤 */
.tabbar .tab { font-size: 10px; }
.tabbar .tab.center { flex: 1; }

/* ============================================================
   找铺页 · 列表/地图双视图
   ============================================================ */

/* sortbar 右侧的视图切换按钮 */
.view-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 11px; border-radius: 14px;
  font-size: 12px; font-weight: 550; color: var(--brand);
  background: var(--brand-soft); cursor: pointer;
  transition: background .15s, transform .12s;
  flex-shrink: 0;
}
.view-toggle:active { transform: scale(.95); }

/* 找铺页地图模式的高度变量兜底（实际高度由 syncMapHeight 实测写入） */
.browse-map .map-wrap { min-height: 300px; }
.browse-map { padding-bottom: 0; }
.browse-map .map-wrap { margin-top: 2px; }

/* 地图区域包装层：地图页与找铺页地图模式共用 */
.map-full { position: relative; }

/* ============================================================
   拍照上传与实拍图展示
   ============================================================ */

/* 采集页：必拍提示 */
.req-note { font-size: 11px; color: var(--ink3); font-weight: 400; margin-left: 6px; }

/* 拍照格：空槽（可点）与已拍（显示缩略图） */
.shoot.empty-slot {
  border: 1.5px dashed var(--line);
  background: #FAF9F7;
  cursor: pointer;
  color: var(--ink3);
}
.shoot.empty-slot:active { border-color: var(--brand); color: var(--brand); }

.shoot.real { padding: 0; border: none; position: relative; overflow: hidden; }
.shoot-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.shoot.real span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 6px 4px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  color: #fff; font-size: 10.5px; z-index: 1;
}
.shoot-redo {
  position: absolute; top: 4px; right: 4px; bottom: auto; left: auto;
  padding: 2px 7px !important;
  background: rgba(0, 0, 0, .55) !important;
  border-radius: 9px; color: #fff; font-size: 10px !important;
  cursor: pointer;
}

/* 列表/找铺卡缩略图上的实拍图 */
.thumb, .bthumb, .ms-thumb { overflow: hidden; }
.thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.bthumb .thumb-img { border-radius: inherit; }

/* 详情页照片横滑（scroll-snap，一屏一张，iOS/安卓都顺） */
.hero-gallery {
  display: flex;
  flex-direction: row;      /* .hero 是 column（竖排图标用），这里必须显式改回横排，否则照片竖着堆叠、根本滑不动 */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-gallery::-webkit-scrollbar { display: none; }
.hero-slide {
  min-width: 100%; width: 100%; height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  flex-shrink: 0;           /* 不让 flex 把每张压窄 */
  display: block;
}
.hero-gallery .hero-badge,
.hero-gallery .hero-count { position: absolute; z-index: 2; }

/* 桌面端没有滑动操作，给左右箭头翻页（手机上也留着，不影响横滑） */
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .34); color: #fff;
  font-size: 19px; line-height: 1; padding: 0 0 2px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; cursor: pointer; backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.hero-nav:active { background: rgba(0, 0, 0, .55); }
.hero-nav.prev { left: 10px; }
.hero-nav.next { right: 10px; }

/* 横滑相册里的角标要压过遮罩层 */
.hero-gallery::after { display: none; }
.ms-thumb { position: relative; }
.ms-thumb .thumb-img { border-radius: inherit; }

/* ================= 海报 ================= */
#poster { position: fixed; inset: 0; z-index: 200; display: none; }
#poster.show { display: block; }
.poster-mask { position: absolute; inset: 0; background: rgba(15,18,22,.72); }
.poster-body {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 560px; max-height: 92%;
  background: #fff; border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-sizing: border-box; overflow-y: auto;
}
.poster-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 16px; color: #1a1a1a; margin-bottom: 10px;
}
.poster-x { font-size: 22px; font-weight: 400; color: #999; padding: 0 6px; cursor: pointer; }
.poster-canvas-wrap { position: relative; border-radius: 10px; overflow: hidden; background: #f4f4f4; width: 320px; margin: 0 auto; }
.poster-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.poster-export-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; }
.poster-chips { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.poster-chip {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: #f2f2f2; color: #666; cursor: pointer; user-select: none;
}
.poster-chip.on { background: #0c447c; color: #fff; }
.poster-btns .btn { width: 100%; }
.poster-tip { font-size: 11px; color: #aaa; text-align: center; margin: 8px 0 0; }

/* ============================================================
   铺位列表 · 批量管理（多选删除）
   ============================================================ */

/* 勾选圈压在缩略图左上角，不占布局宽度 —— 卡片本来就窄 */
.item { position: relative; }
.item .chk {
  position: absolute; left: 5px; top: 5px; z-index: 2;
  width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; line-height: 1;
  background: rgba(255, 255, 255, .92);
  border: 1.5px solid #c4c8d0;
  box-shadow: 0 1px 4px rgba(22, 24, 29, .18);
  transition: all .14s;
}
.item .chk.on { background: var(--brand); border-color: var(--brand); }
.item.checked { border-color: var(--brand); background: var(--brand-soft); }

/* 底部操作条：sticky 贴在滚动区底部，滚动时不会跑走 */
.bulkbar {
  position: sticky; bottom: 0; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  margin: 10px 12px 14px; padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(22, 24, 29, .14);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.bulk-all {
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 550; color: var(--ink2);
  cursor: pointer; flex-shrink: 0;
}
.bulk-all:active { transform: scale(.97); }
.bulk-n { flex: 1; font-size: 13px; color: var(--ink2); }
.bulk-n b { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.bulk-del {
  height: 36px; padding: 0 22px; border-radius: 10px;
  background: var(--red); color: #fff; border: none;
  font-size: 13.5px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.bulk-del:disabled { opacity: .38; cursor: not-allowed; }
.bulk-del:active:not(:disabled) { transform: scale(.97); }

/* ============================================================
   回收站
   ============================================================ */

/* 列表页底部的入口：低存在感，但一直能看见 */
.trash-entry {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 14px 22px; padding: 11px 0;
  border-radius: 12px; border: 1px dashed var(--line);
  background: #fff; color: var(--ink3);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.trash-entry:active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }

/* 导出店铺数据：和回收站入口同款虚线框，紧挨在下面 */
.export-entry {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: -12px 14px 22px; padding: 11px 0;
  border-radius: 12px; border: 1px dashed var(--line);
  background: #fff; color: var(--ink3);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.export-entry:active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }

.trash-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.trash-thumb {
  width: 56px; height: 56px; border-radius: 9px; flex-shrink: 0;
  overflow: hidden; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.trash-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trash-info { flex: 1; min-width: 0; }
.trash-info h4 {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trash-info p {
  font-size: 11.5px; color: var(--ink3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trash-info p.t { color: var(--ink4); font-size: 11px; }
.trash-restore {
  flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  color: var(--brand); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.trash-restore:active { transform: scale(.96); }

/* ============================================================
   登录 / 设置账号（v45）
   ------------------------------------------------------------
   这一页是整个系统唯一的闸门，所以视觉上要"轻"：
   没有导航、没有侧栏，只有一张卡和两个输入框。
   留白给足，让人一眼知道「就填这两行」。
   ============================================================ */

.login { padding-top: 26px; }

.login-top { padding: 0 4px 22px; }
.login-top .logo {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-deep));
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 11px; margin-bottom: 16px;
  box-shadow: 0 5px 16px rgba(24, 95, 165, .3);
}
.login-top .logo i { height: 3.5px; border-radius: 2px; background: #fff; display: block; }
.login-top .logo i.short { width: 58%; }
.login-top h1 {
  font-size: 22px; font-weight: 700; letter-spacing: .4px;
  line-height: 1.3; color: var(--ink);
}
.login-top p {
  margin-top: 9px; font-size: 13px; line-height: 1.72; color: var(--ink3);
}
.login-top p b { color: var(--ink2); font-weight: 600; }

.login-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 2px 16px;
}
.login-card .field label { width: 56px; }
.login-card .field input { font-size: 15px; }

.login-btn {
  width: 100%; margin-top: 18px; height: 50px;
  font-size: 15.5px; letter-spacing: .5px;
}

.login-alt {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: var(--brand); font-weight: 500;
  cursor: pointer;
}
.login-alt:active { opacity: .6; }

.login-tip {
  margin-top: 24px; padding: 13px 14px;
  background: #FAF9F7; border: 1px solid var(--line-soft);
  border-radius: 11px; font-size: 11.5px; line-height: 1.85; color: var(--ink3);
}
.login-tip b { color: var(--ink2); font-weight: 600; }
.login-tip code {
  display: inline-block; margin-top: 4px; padding: 3px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--ink2); word-break: break-all;
}

.login-foot {
  margin-top: 26px; text-align: center;
  font-size: 11.5px; line-height: 1.7; color: var(--ink4);
}

/* ============================================================
   账号与密码（v45）
   ============================================================ */

.sec-title {
  font-size: 12px; font-weight: 600; color: var(--ink3);
  letter-spacing: .3px; padding: 4px 2px 10px;
}

.acc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.acc-row:last-child { border-bottom: none; }
.acc-row .acc-k { color: var(--ink2); }
.acc-row .acc-v { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.acc-logout {
  margin-top: 22px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.acc-logout:active { transform: scale(.985); opacity: .9; }

/* ============ 法务文档页 ============ */
.legal-tabs {
  display: flex; gap: 8px; padding: 10px 16px 4px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--page) 82%, transparent);
}
.lg-tab {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink3);
  background: var(--card); cursor: pointer;
  transition: color .15s, background .15s;
}
.lg-tab.on { color: #fff; background: var(--brand); }
.legal-doc { font-size: 14px; line-height: 1.9; color: var(--ink2); }
.legal-doc h3 {
  font-size: 15px; color: var(--ink); margin: 22px 0 6px;
  padding-left: 9px; border-left: 3px solid var(--brand); line-height: 1.4;
}
.legal-doc h3:first-child { margin-top: 6px; }
.legal-doc p { margin: 8px 0; }
.legal-doc ul { margin: 6px 0 12px; padding-left: 20px; }
.legal-doc li { margin: 5px 0; }
.legal-doc b { color: var(--ink); }
.lg-note { font-size: 12px; color: var(--ink3); border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.lg-tail { margin-top: 26px; font-size: 12px; color: var(--ink3); background: var(--card); border-radius: 10px; padding: 10px 14px; }

/* 页脚协议链接 */
.foot-link { color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot-dot { margin: 0 4px; }

/* 发布页协议勾选 */
.agree-row {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12px; line-height: 1.6; color: var(--ink3);
  padding: 2px 6px 10px; cursor: pointer;
}
.agree-row input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0;
}
.agree-link { color: var(--brand); font-weight: 600; cursor: pointer; }

/* ================= 数据看板（v53） ================= */
.stats-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.stcard {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.stc-k { font-size: 12px; color: var(--ink3); }
.stc-pv { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stc-pv small { font-size: 12px; font-weight: 400; color: var(--ink3); }
.stc-uv { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.stc-diff { font-size: 11px; padding: 1px 6px; border-radius: 999px; }
.stc-diff.up { color: #166534; background: #e8f5ec; }
.stc-diff.down { color: #9f1239; background: #fdeaee; }

.bars { display: flex; align-items: flex-end; gap: 8px; padding: 18px 12px 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bar-n { font-size: 11px; color: var(--ink2); font-weight: 600; min-height: 14px; }
.bar-track {
  width: 100%; max-width: 30px; height: 90px;
  display: flex; align-items: flex-end; justify-content: center;
}
.bar-fill {
  width: 100%; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, transparent));
  transition: height .4s ease;
}
.bar-col.zero .bar-fill { background: var(--line-soft); }
.bar-day { font-size: 10px; color: var(--ink3); }
.bar-uv { font-size: 11px; color: var(--ink2); font-weight: 600; }
.bar-wd { font-size: 10px; color: var(--ink3); }

.tops { padding: 6px 14px; }
.top-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.top-row + .top-row { border-top: 1px solid var(--line-soft); }
.top-rank {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ink3); background: var(--bg2);
}
.top-rank.hot { color: #fff; background: var(--brand); }
.top-name { font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.top-track { flex: 1; height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; }
.top-fill { height: 100%; border-radius: 3px; background: var(--brand); opacity: .55; }
.top-n { font-size: 13px; color: var(--ink2); min-width: 28px; text-align: right; }

.stats-details { padding: 0; overflow: hidden; }
.stats-details summary {
  padding: 13px 16px; font-size: 14px; color: var(--ink); font-weight: 600;
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px;
}
.stats-details summary::after { content: '▾'; margin-left: auto; color: var(--ink3); transition: transform .2s; }
.stats-details[open] summary::after { transform: rotate(180deg); }
.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-table th, .stats-table td {
  padding: 8px 16px; text-align: left; border-top: 1px solid var(--line-soft); color: var(--ink2);
}
.stats-table th { color: var(--ink3); font-weight: 500; border-top: 0; font-size: 12px; }
.stats-table td:nth-child(2), .stats-table td:nth-child(3),
.stats-table th:nth-child(2), .stats-table th:nth-child(3) { text-align: right; }
.stats-table tr.on td { color: var(--ink); font-weight: 600; }

/* ================= 举报与待审核（v55） ================= */

/* 详情页底部的举报入口：要能被找到，但不能抢「约看铺子」的注意力 */
.report-row {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 18px; padding: 10px;
  font-size: 12.5px; color: var(--ink3);
  border-radius: 10px; cursor: pointer;
}
.report-row:active { background: var(--bg2); }
.report-row svg { flex-shrink: 0; opacity: .75; }

/* 列表页入口的待审红点 */
.export-entry.has-dot span::after {
  content: ''; display: inline-block;
  width: 6px; height: 6px; margin-left: 6px; vertical-align: middle;
  border-radius: 50%; background: var(--brand);
}

.rv-hint {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px; padding: 10px 12px;
  font-size: 12.5px; color: var(--ink2);
  background: var(--bg2); border-radius: 10px; line-height: 1.5;
}
.rv-hint svg { flex-shrink: 0; color: var(--brand); }

.rv-item {
  display: flex; gap: 12px; padding: 12px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 12px; margin-bottom: 10px;
}
.rv-thumb {
  width: 74px; height: 74px; flex-shrink: 0; border-radius: 9px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: var(--ink3);
}
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rv-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  line-height: 1.35; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-meta {
  font-size: 12px; color: var(--ink3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-why { font-size: 12px; color: var(--ink2); }
.rv-why.bad { color: #9f1239; }
.rv-acts { display: flex; gap: 8px; margin-top: 6px; }
.rv-btn {
  flex: 1; height: 32px; border-radius: 8px; border: 1px solid var(--line-soft);
  background: var(--card); color: var(--ink2); font-size: 13px; cursor: pointer;
}
.rv-btn.ok { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.rv-btn:active { opacity: .8; }
