/* ============================================================
 * Shenzhen & HK Premium Long-Term Rentals — design system (v2)
 * ------------------------------------------------------------
 * 国际化 · 简约 · 高级感
 * 手机优先：先写单列布局，再用 min-width 媒体查询向上适配
 * ============================================================ */

:root {
  /* 主色：暖象牙（干净通透，只留一丝暖意）
     注意：--brand 是浅色底，浅底上不要再放白字，文字一律用 --ink 系 */
  --brand:        #f4efe6;   /* 主浅底：暖象牙 */
  --brand-dark:   #ece5d8;   /* 更深一档的象牙，用于区块分隔 */
  --brand-mid:    #f8f4ec;   /* 中间过渡 */
  --brand-soft:   #f6f1e8;   /* 浅色软底 */
  --brand-tint:   #fefcf8;   /* 极浅象牙（页面底色） */

  /* 点缀：香槟金（浅底上仍要够深才看得见） */
  --accent:       #b08d4a;
  --accent-2:     #c9a961;
  --accent-soft:  #faf6ec;
  --accent-ink:   #8a6a2c;

  /* 语义色 */
  --ok:           #17694f;
  --ok-soft:      #eaf5f0;
  --warn:         #9a6b12;
  --warn-soft:    #fdf7e8;
  --danger:       #a8342a;
  --danger-soft:  #fbeeec;

  /* 中性（暖调中性，避免灰得发冷） */
  --ink:          #2e2a24;   /* 主文字：暖炭黑 */
  --ink-2:        #5a544b;
  --ink-3:        #8a8378;
  --ink-4:        #b5aea2;
  --line:         #e9e3d8;
  --line-2:       #dad3c5;
  --surface:      #ffffff;
  --surface-2:    #faf7f1;   /* 暖白 */
  --surface-3:    #f3eee4;

  --radius-lg:    18px;
  --radius:       12px;
  --radius-sm:    8px;

  --shadow-xs:    0 1px 2px rgba(58,49,40,.05);
  --shadow-sm:    0 2px 8px rgba(58,49,40,.06);
  --shadow:       0 4px 18px rgba(58,49,40,.07);
  --shadow-md:    0 10px 30px rgba(58,49,40,.09);
  --shadow-lg:    0 22px 60px rgba(58,49,40,.12);

  --maxw:         1440px;
  --serif:        "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", serif;
  --sans:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }

/* [hidden] 必须真的隐藏。浏览器默认的 [hidden]{display:none} 属于 UA 样式表，
 * 任何作者样式里的 display 都能把它顶掉（二维码弹层就因此常驻全屏过一次）。
 * 这条兜底放在最前面，不要删。 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--brand-tint);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

/* ---------------- 布局容器 ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============================================================
 * 页头
 * ============================================================ */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 66px; display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.brand-text i {
  font-style: normal; font-size: 10px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 600;
}

.main-nav { display: none; gap: 26px; margin-left: 12px; }
.main-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 6px 0; position: relative; transition: color .18s;
}
.main-nav a:hover { color: var(--accent-ink); }
.main-nav a.active { color: var(--accent-ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent-2); border-radius: 2px;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.city-select {
  display: none;
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 999px; padding: 6px 12px; font-size: 13px;
  font-weight: 600; color: var(--ink-2); cursor: pointer;
  appearance: none; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7885' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.lang-switch { display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  padding: 5px 9px; border-radius: 999px; transition: all .18s;
}
.lang-btn:hover { color: var(--accent-ink); }
.lang-btn.on { background: #2e2a24; color: #fff; }

.menu-btn {
  border: 1px solid var(--line-2); background: var(--surface);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-btn span { width: 16px; height: 2px; background: var(--ink-2); border-radius: 2px; transition: all .22s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 窄屏页头收紧：390px 宽的手机上，品牌副标语 + 4 个语言按钮 + 菜单
 * 原本会把头部撑到 ~445px（整页横向溢出，右上角的悬浮徽标也会被带出屏幕）。
 * 收起副标语、缩小语言按钮后才装得下。 */
@media (max-width: 719px) {
  .header-inner { gap: 10px; padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-text i { display: none; }
  .header-right { gap: 6px; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 4px 6px; font-size: 11px; }
  .menu-btn { width: 34px; height: 34px; }
}

.mobile-menu {
  display: none; flex-direction: column;
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 8px 20px 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 4px; font-size: 15.5px; font-weight: 600;
  color: var(--ink-2); border-bottom: 1px solid var(--line);
}
.mobile-menu a.active { color: var(--accent-ink); }
.mobile-menu .mm-cta {
  margin-top: 14px; border: none; text-align: center;
  background: #1f8a54; color: #fff; border-radius: 10px; border-bottom: none;
}

/* ============================================================
 * 按钮
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  font-size: 14.5px; font-weight: 650; padding: 11px 20px;
  transition: all .18s; white-space: nowrap; text-align: center;
}
.btn-primary { background: #2e2a24; color: #fff; }
.btn-primary:hover { background: #1f1b16; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-wa { background: #1a73e8; color: #fff; }
.btn-wa:hover { background: #1558b0; }
/* 2026-10-21：详情页「Chat on WeChat」绿色按钮（与 WhatsApp 按钮同尺寸并排） */
.btn-wec { background: #07c160; color: #fff; }
.btn-wec:hover { background: #069a4e; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-light { background: rgba(255,255,255,.72); border-color: var(--line-2); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============================================================
 * 首页 Hero
 * ============================================================ */
.hero {
  /* 2026-10-16 修复：这里原本是 position:relative + overflow:hidden。
     overflow:hidden 会把顶部筛选条里「区域」的多选下拉面板按 hero 的底边裁掉，
     客户只看到一小截 → 看起来像"下拉只能显示一部分"。装饰层 .hero::before 用的是
     inset:0（正好铺满 hero，本来就不会溢出），所以不需要靠 overflow 来裁剪。 */
  position: relative;
  background: linear-gradient(155deg, #fefcf8 0%, #f6f1e8 50%, #f0eade 100%);
  color: var(--ink); padding: 56px 0 52px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,49,40,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,49,40,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 10%, transparent 72%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero h1 {
  font-family: var(--serif); font-size: 32px; line-height: 1.16;
  font-weight: 600; letter-spacing: -.02em; margin-bottom: 16px; max-width: 680px;
  color: var(--ink);
}
.hero p.sub {
  font-size: 15.5px; line-height: 1.7; color: var(--ink-2);
  max-width: 620px; margin-bottom: 30px;
}

/* hero 内搜索条 */
.hero-search {
  background: rgba(255,255,255,.97); border-radius: 14px; padding: 12px;
  display: grid; grid-template-columns: 1fr; gap: 10px;
  box-shadow: var(--shadow-lg); margin-bottom: 34px;
}
.hero-search .hs-field { position: relative; }
.hero-search label {
  position: absolute; left: 13px; top: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: var(--ink-4); pointer-events: none;
}
.hero-search select, .hero-search input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 13px 8px; font-size: 14.5px; background: var(--surface);
  appearance: none; cursor: pointer;
}
.hero-search input { cursor: text; }
.hero-search select:focus, .hero-search input:focus {
  outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px;
  padding-top: 26px; border-top: 1px solid rgba(58,49,40,.13);
}
.hero-stat b {
  display: block; font-family: var(--serif); font-size: 27px;
  font-weight: 600; color: var(--ink); line-height: 1;
}
.hero-stat span { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; display: block; }

/* ============================================================
 * 通用区块
 * ============================================================ */
.section { padding: 52px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 {
  font-family: var(--serif); font-size: 25px; font-weight: 600;
  letter-spacing: -.015em; display: flex; align-items: center; gap: 13px;
}
.section-head h2::before {
  content: ""; width: 4px; height: 24px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  flex-shrink: 0;
}
.section-head p.sub { color: var(--ink-3); font-size: 14.5px; margin-top: 9px; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px;
}

/* ============================================================
 * 卡片网格
 * ============================================================ */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 3/4; background: var(--surface-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 13px;
}
.card-price-flag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(14,28,44,.88); backdrop-filter: blur(6px);
  color: #fff; border-radius: 9px; padding: 6px 11px;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  display: flex; flex-direction: column;
}
.card-price-flag i { font-style: normal; font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.66); margin-top: 2px; }
.card-media-meta { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.media-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(14,28,44,.76); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
}
.play-dot {
  width: 0; height: 0; border-left: 7px solid #fff;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}

/* 卡片右上角的播放按钮 —— 有视频的房源才出现。
   这是主图上唯一的一个按钮：既是「有视频」的标识，也是点击播放的入口
   （不再另放 Video 文字角标，避免两个元素叠在同一位置打架）。 */
.card-play {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,16,10,.52);
  backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 3px 16px rgba(20,14,6,.4), inset 0 0 0 1px rgba(255,255,255,.34);
  transition: transform .18s ease, background .18s ease;
}
.card-play:hover { transform: scale(1.06); background: rgba(20,16,10,.74); }
.card-play:active { transform: scale(.96); }
/* 播放三角：白色实心，外面描一圈半透明表盘 */
.card-play .cp-ring {
  position: absolute; inset: 6px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.72);
}
.card-play .cp-tri {
  width: 0; height: 0; margin-left: 4px;
  border-left: 17px solid #fff;
  border-top: 10.5px solid transparent;
  border-bottom: 10.5px solid transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.36));
}
/* 呼吸光环：只在用户没有开启「减少动画」时播放，提示这里可以点 */
@media (prefers-reduced-motion: no-preference) {
  .card-play::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.5);
    animation: cp-pulse 2.2s ease-out infinite;
  }
  @keyframes cp-pulse {
    0%   { opacity: .75; transform: scale(.94); }
    70%  { opacity: 0;   transform: scale(1.22); }
    100% { opacity: 0;   transform: scale(1.22); }
  }
}
/* 有播放按钮时，把右下角价格标签往上抬一点，避免和按钮视觉打架 */
.card-media .card-play ~ .card-price-flag { left: 12px; }

/* ============================================================
 * 房源视频浮窗（可拖动 / 可缩放）
 * ============================================================ */
.vidwin {
  position: fixed; z-index: 9000;
  display: none; flex-direction: column;
  background: #14110c;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 22px 60px rgba(18,12,4,.42), 0 0 0 1px rgba(255,255,255,.10);
  user-select: none;
}
.vidwin.on { display: flex; }
.vidwin.dragging, .vidwin.resizing { transition: none; }

/* 标题栏（同时是拖拽把手）—— 2026-10-21 二轮加高，并常显一行操作提示 */
.vw-bar {
  display: flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 10px 0 12px; flex-shrink: 0;
  background: linear-gradient(180deg, #241f17 0%, #1a1610 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: grab; touch-action: none;
  color: #f4efe6;
}
.vidwin.dragging .vw-bar { cursor: grabbing; }
.vw-grip { display: flex; flex-shrink: 0; opacity: .55; color: #f4efe6; }
.vw-grip svg { width: 15px; height: 15px; }
.vw-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vw-title-text {
  font-size: 13px; font-weight: 650; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -.1px;
}
/* 常显提示：让人一眼知道这个窗口能拖、能拉边角（不只是靠鼠标变成十字才知道） */
.vw-sub {
  font-size: 10px; line-height: 1.2; color: rgba(244,239,230,.52);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vw-acts { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.vw-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; border: 0;
  background: transparent; color: rgba(244,239,230,.72);
  cursor: pointer; padding: 0; transition: background .15s, color .15s;
}
.vw-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.vw-btn svg { width: 14px; height: 14px; }

/* 视频舞台：宽高都由浮窗决定，视频 object-fit:contain（自由拉伸也不变形） */
.vw-stage { position: relative; width: 100%; flex: 1; min-height: 0; background: #000; }
.vw-stage iframe, .vw-stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  object-fit: contain; background: #000;
}

/* 底部提示小字（地图浮窗共用） */
.vw-hint {
  position: absolute; left: 12px; bottom: 8px; z-index: 4;
  font-size: 10.5px; color: rgba(255,255,255,.82);
  pointer-events: none; opacity: .55; transition: opacity .3s;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.vidwin:hover .vw-hint { opacity: 1; }

/* ---- 8 个缩放手柄（四边 + 四角），宽高各自独立 ---- */
.vw-h { position: absolute; z-index: 6; touch-action: none; border-radius: 4px; }
.vw-h-n, .vw-h-s { left: 16px; right: 16px; height: 10px; cursor: ns-resize; }
.vw-h-n { top: 0; }
.vw-h-s { bottom: 0; }
.vw-h-e, .vw-h-w { top: 16px; bottom: 16px; width: 10px; cursor: ew-resize; }
.vw-h-e { right: 0; }
.vw-h-w { left: 0; }
.vw-h-ne, .vw-h-nw, .vw-h-se, .vw-h-sw { width: 20px; height: 20px; }
.vw-h-ne { top: 0; right: 0; cursor: nesw-resize; }
.vw-h-nw { top: 0; left: 0; cursor: nwse-resize; }
.vw-h-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.vw-h-se { bottom: 0; right: 0; cursor: nwse-resize; }
/* 右下角画个三角，暗示这里能拉 */
.vw-h-se::after {
  content: ""; position: absolute; right: 4px; bottom: 4px;
  width: 0; height: 0; border-style: solid; border-width: 0 0 14px 14px;
  border-color: transparent transparent rgba(255,255,255,.62) transparent;
  pointer-events: none;
}
/* 悬到手柄上给一点金色高亮，比单靠光标更好发现 */
.vw-h:hover::before {
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  background: rgba(176,141,74,.5);
}

/* 手机：不再强制铺满屏（JS 也不再跳新标签页），保留拖动与缩放 */
@media (max-width: 719px) {
  .vidwin.on { border-radius: 10px; }
  .vw-sub { display: none; }
  .card-play { width: 56px; height: 56px; right: 10px; top: 10px; }
  .card-play .cp-tri { border-left-width: 19px; border-top-width: 11.5px; border-bottom-width: 11.5px; margin-left: 5px; }
}
.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: 15.5px; font-weight: 700; letter-spacing: -.2px;
  margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-loc { font-size: 13px; color: var(--ink-3); margin-bottom: 9px; }
/* 卡片上的「地铁 + 泳池/健身房/花园」一行小图标 */
.card-facts {
  display: flex; flex-wrap: wrap; gap: 5px 8px;
  margin-bottom: 10px;
}
.card-fact {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 1.4; color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-fact.fact-mrt { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; }
.tag {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 6px; background: var(--surface-2); color: var(--ink-2);
}
.tag-featured { background: var(--accent-soft); color: var(--accent-ink); }
.tag-mrt { background: var(--accent-soft); color: var(--accent-ink); }
.tag-pet { background: var(--ok-soft); color: var(--ok); }
.card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.card-foot .price { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.card-foot .price small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.card-foot .more { font-size: 12.5px; font-weight: 650; color: var(--accent-ink); }

/* 骨架屏 */
.card-skel { pointer-events: none; }
.skel-media { aspect-ratio: 4/3; background: var(--surface-3); }
.skel-body { padding: 16px; }
.skel-line { height: 11px; border-radius: 5px; background: var(--surface-3); margin-bottom: 10px; }
.skel-line.w70 { width: 70%; } .skel-line.w40 { width: 40%; } .skel-line.w55 { width: 55%; }

/* ============================================================
 * 优势卡片
 * ============================================================ */
.adv-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.adv-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.adv-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.adv-ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 15px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.adv-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* ============================================================
 * 评价
 * ============================================================ */
.rev-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rev-card {
  background: var(--surface-2); border-radius: var(--radius); padding: 22px 20px;
  border: 1px solid var(--line);
}
.rev-stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 11px; }
.rev-text { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); margin-bottom: 15px; }
.rev-who { display: flex; align-items: center; gap: 11px; }
.rev-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--accent), var(--accent-ink));
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rev-name { font-size: 13.5px; font-weight: 700; }
.rev-meta { font-size: 12px; color: var(--ink-3); }

/* ============================================================
 * CTA 区块
 * ============================================================ */
.cta-band {
  background: linear-gradient(140deg, #f6f1e8, #ede6d6);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: 34px 24px; color: var(--ink);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,130,60,.16), transparent 68%);
}
.cta-band h2 {
  position: relative; z-index: 2; font-family: var(--serif);
  font-size: 23px; font-weight: 600; margin-bottom: 11px; color: var(--ink);
}
.cta-band p { position: relative; z-index: 2; color: var(--ink-2); font-size: 14.5px; margin-bottom: 22px; max-width: 560px; line-height: 1.7; }
.cta-actions { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
 * 筛选器（列表页）
 * ============================================================ */
.listings-page { padding: 28px 0 60px; }
.list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.list-head h1 { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.list-head .count { font-size: 14px; color: var(--ink-3); font-weight: 600; }

.view-toggle { display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.view-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 650; color: var(--ink-3);
  padding: 7px 15px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
}
.view-toggle button.on { background: #2e2a24; color: #fff; }

.list-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }

.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
/* 手机上筛选器做成可折叠抽屉 */
.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.filters-head .f-chev { transition: transform .22s; }
.filters.collapsed .filters-head .f-chev { transform: rotate(-90deg); }
.filters.collapsed .filters-body { display: none; }
.filters-body { margin-top: 16px; }

.fgroup { margin-bottom: 20px; }
.fgroup:last-child { margin-bottom: 0; }
.fgroup > label.f-title {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 10px;
}
.fopts { display: flex; flex-wrap: wrap; gap: 7px; }
.fopts-v { display: block; }
.fopt {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; transition: all .16s;
}
.fopt:hover { border-color: var(--accent); color: var(--accent-ink); }
.fopt.on { background: #2e2a24; border-color: #2e2a24; color: #fff; }
.fopt input { display: none; }

.frange { display: flex; align-items: center; gap: 9px; }
.frange input[type="number"] {
  width: 100%; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 9px 12px; font-size: 14px;
}
.frange input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.frange span { color: var(--ink-4); }

.filters-foot { display: flex; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.filters-foot .btn { flex: 1; }

/* ============================================================
 * 首页 —— 房源区 + 左侧常驻筛选栏
 * 客户上滑看房时，筛选栏吸附在左侧，随时可改条件而不必回到页首
 * ============================================================ */
.home-split { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }

.home-side {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px 18px 20px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.home-side::-webkit-scrollbar { width: 6px; }
.home-side::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.home-side::-webkit-scrollbar-track { background: transparent; }
.home-side-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 13px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.home-side-head b { font-size: 15px; font-weight: 700; }
.link-btn.sm {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 12.5px; font-family: inherit; padding: 3px 4px;
}
.link-btn.sm:hover { color: var(--accent-ink); text-decoration: underline; }

/* 区域分组：大区一行，其下子区域缩进 */
.fopt-group { width: 100%; margin-bottom: 8px; }
.fopt-group:last-child { margin-bottom: 0; }
.fopt-parent { width: 100%; justify-content: flex-start; font-weight: 650; }
.fopt-kids {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 7px 0 0 10px; margin-left: 4px;
  border-left: 2px solid var(--line);
}
.fopt-kid { font-size: 12px; padding: 4px 9px; }
.fopt-wide { width: 100%; justify-content: center; }

/* 大区被整体选中时，其下子区域显示为浅色「已包含」态 */
.fopt-kid.included {
  background: var(--accent-soft); border-color: var(--accent-soft);
  color: var(--accent-ink); opacity: .85;
}
.fopt-kid.included::before { content: "✓"; font-size: 10px; margin-right: 1px; }

/* ============================================================
 * 折叠手风琴（Filter accordion）
 * ------------------------------------------------------------
 * 每个筛选组收成一行：标题 + 已选数量徽章 + 箭头。
 * 点开才展开内容，让整栏一屏放得下，客户不用一直往下滚。
 * ============================================================ */
.facc {
  border-bottom: 1px solid var(--line);
}
.facc:last-of-type { border-bottom: 0; }

.facc-head {
  width: 100%; appearance: none; border: 0; background: transparent;
  cursor: pointer; font-family: inherit; text-align: left;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 2px;
  transition: color .16s;
}
.facc-head:hover { color: var(--accent-ink); }
.facc-label {
  font-size: 13.5px; font-weight: 650; color: var(--ink-2);
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.facc-head:hover .facc-label { color: var(--accent-ink); }
.facc.open > .facc-head .facc-label { color: var(--accent-ink); }

/* 已选摘要（仅在有选择时显示）：金色药丸小字 */
.facc-badge {
  flex: 0 0 auto; max-width: 46%;
  display: inline-block;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 箭头：收起时朝下，展开时朝上 */
.facc .facc-head .f-chev {
  width: 7px; height: 7px; flex-shrink: 0;
  border-right: 1.6px solid var(--ink-4); border-bottom: 1.6px solid var(--ink-4);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .2s, border-color .16s;
}
.facc-head:hover .f-chev { border-color: var(--accent-ink); }
.facc.open > .facc-head .f-chev {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--accent-ink);
}

/* 折叠体：默认收起，展开时给一点内边距和淡入 */
.facc-body { display: none; padding: 2px 2px 14px; }
.facc.open > .facc-body { display: block; animation: faccIn .18s ease-out; }
@keyframes faccIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .facc.open > .facc-body { animation: none; }
}

/* 手风琴里最后一个控件不留多余下边距 */
.facc-body > .fgroup:last-child,
.facc-body > .fopts:last-child,
.facc-body > .frange:last-child,
.facc-body > .fopt:last-child { margin-bottom: 0; }

/* 已选里的区域小字提示 */
.facc-hint {
  font-size: 11.5px; line-height: 1.55; color: var(--ink-4);
  margin: 0 0 10px;
}

/* 该组有已选条件 → 标题和左边线标记出来，收起时也能一眼看到「筛选生效中」 */
.facc.has-sel > .facc-head .facc-label { color: var(--accent-ink); font-weight: 700; }
.facc.has-sel { position: relative; }
.facc.has-sel > .facc-head::before {
  content: ""; position: absolute; left: -2px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 2px; background: var(--accent);
}
.facc { position: relative; }

/* 整栏底部「清空全部」快捷条 */
.facc-clear-all {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%;
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--ink-3);
  padding: 11px 0 2px;
}
.facc-clear-all:hover { color: var(--accent-ink); text-decoration: underline; }

/* 区块之间的分组间距（旧结构兼容） */
.fgroup { margin-bottom: 20px; }
.fgroup:last-child { margin-bottom: 0; }

/* 说明小字 */
.f-note {
  font-size: 11.5px; line-height: 1.55; color: var(--ink-4);
  margin: 0 0 10px;
}

.home-main { min-width: 0; }
.home-count {
  font-size: 13px; color: var(--ink-3); font-weight: 600;
  margin-bottom: 14px;
}
.home-more { display: flex; justify-content: center; margin-top: 22px; }

/* 地图视图 */
.map-view { display: none; }
.map-view.on { display: block; }
.grid-view.off { display: none; }

.map-canvas {
  position: relative; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 1/1; overflow: hidden;
}
/* 手绘风区域示意 —— 不用任何地图 API */
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-zone { cursor: pointer; transition: fill .2s; }
.map-zone:hover { fill: var(--brand-dark); }
.map-pin {
  position: absolute; transform: translate(-50%, -100%);
  background: #2e2a24; color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 7px; white-space: nowrap;
  cursor: pointer; transition: transform .18s, background .18s;
  box-shadow: var(--shadow-sm); z-index: 3;
}
.map-pin:hover { background: var(--accent-ink); transform: translate(-50%, -100%) scale(1.12); z-index: 5; }
.map-pin::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #2e2a24;
}
.map-pin:hover::after { border-top-color: var(--accent-ink); }
.map-legend {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,.94); border-radius: 9px; padding: 8px 12px;
  font-size: 11.5px; color: var(--ink-3); box-shadow: var(--shadow-sm);
  max-width: 62%;
}
.map-results { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.map-row {
  display: flex; gap: 13px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px; transition: border-color .18s;
}
.map-row:hover { border-color: var(--accent-ink); }
.map-row-img { width: 78px; height: 62px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.map-row-body { min-width: 0; flex: 1; }
.map-row-body h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.map-row-body p { font-size: 12.5px; color: var(--ink-3); }
.map-row-price { font-size: 16px; font-weight: 800; white-space: nowrap; }

/* ============================================================
 * 房源详情页
 * ============================================================ */
.detail-page { padding: 22px 0 60px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent-ink); }
.crumb span.sep { color: var(--ink-4); }

/* 相册 */
.gallery { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 26px; }
.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-3);
  /* 2026-10-15：主图改为「定高 + contain」——整张图看得全（不再裁掉一部分），
   * 高度压到原来的一半左右，配合右侧信息卡，不滑动就能看完首屏。 */
  height: clamp(260px, 48vh, 440px);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-3); }

/* 主图上的「看视频」按钮（2026-10-21 二轮）：左下角深色胶囊，不挡切换箭头
   （箭头在左右居中，计数器在右下） */
.gallery-video {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border: 0; border-radius: 999px;
  background: rgba(14,20,28,.8); color: #fff; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .1px;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.gallery-video:hover { background: rgba(14,20,28,.94); transform: translateY(-1px); }
.gallery-video::before {
  content: ""; position: absolute; inset: -3px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); pointer-events: none;
}
.gv-play {
  width: 0; height: 0; border-style: solid;
  border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff;
  margin-left: 3px; flex-shrink: 0;
}
@media (max-width: 719px) {
  .gallery-video { left: 10px; bottom: 10px; font-size: 12px; padding: 8px 13px; }
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background .18s;
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-counter {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(14,28,44,.78); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumbs img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 9px; cursor: pointer; opacity: .62;
  border: 2px solid transparent; transition: opacity .18s, border-color .18s;
}
.gallery-thumbs img:hover { opacity: .88; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--accent-2); }
.gallery-placeholder {
  aspect-ratio: 4/3; border-radius: var(--radius); background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; color: var(--ink-4);
}

/* 标题区 */
.detail-head {
  display: flex; flex-direction: column; gap: 18px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.detail-head h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.detail-sub { font-size: 14.5px; color: var(--ink-3); }
.detail-price-block { display: flex; flex-direction: column; gap: 4px; }
.detail-price { font-size: 30px; font-weight: 800; letter-spacing: -.9px; line-height: 1.1; }
.detail-price small { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.detail-usd { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.detail-terms { font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.detail-terms b { font-weight: 700; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 规格表 */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
/* 房源信息区右下角：上架日期 / 刷新日期（2026-10-16 新增） */
.detail-dates { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 14px 2px 0 0; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.detail-dates span { white-space: nowrap; }
.detail-dates b { font-weight: 650; color: var(--ink-2); }
.spec-cell { background: var(--surface); padding: 15px 16px; }
.spec-cell .k { font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-4); margin-bottom: 5px; }
.spec-cell .v { font-size: 15px; font-weight: 650; }

/* 内容区块 */
.blocks { display: flex; flex-direction: column; gap: 30px; }
.block { }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.block-num {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.block-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.block-body { font-size: 15px; line-height: 1.78; color: var(--ink-2); }
.block-body p + p { margin-top: 12px; }

/* 特色列表 */
.feat-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.feat-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.6;
}
.feat-item::before {
  content: "✓"; flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* 小区设施 / 配套 chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.chip-ico { font-size: 14px; }

/* 周边配套 —— 距离列表（核心信息） */
.near-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.near-row {
  background: var(--surface); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
}
.near-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.near-body { flex: 1; min-width: 0; }
.near-body .n-name { font-size: 14.5px; font-weight: 650; }
.near-body .n-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.near-dist { text-align: right; flex-shrink: 0; }
.near-dist .d-val { font-size: 15px; font-weight: 750; color: var(--accent-ink); }
.near-dist .d-unit { font-size: 11.5px; color: var(--ink-3); }

/* 通勤卡片 */
.commute-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.commute-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.commute-ico { font-size: 22px; flex-shrink: 0; }
.commute-body { flex: 1; }
.commute-body .c-name { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.commute-time { font-size: 19px; font-weight: 800; letter-spacing: -.5px; color: var(--accent-ink); }
.commute-time small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }

/* 费用明细表 */
.cost-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cost-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.cost-row:last-child { border-bottom: none; }
.cost-row .c-label { color: var(--ink-2); }
.cost-row .c-label small { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.cost-row .c-val { font-weight: 700; white-space: nowrap; text-align: right; }
.cost-row.total { background: var(--surface-2); }
.borne {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px;
  white-space: nowrap;
}
.borne.tenant { background: var(--warn-soft); color: var(--warn); }
.borne.owner { background: var(--ok-soft); color: var(--ok); }
.borne.incl { background: var(--accent-soft); color: var(--accent-ink); }

/* 房屋规则 */
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rule-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.rule-item .r-mark {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.rule-item.yes { background: var(--ok-soft); border-color: #cfe8dd; color: var(--ok); }
.rule-item.yes .r-mark { background: var(--ok); color: #fff; }
.rule-item.no { background: var(--surface-2); color: var(--ink-3); }
.rule-item.no .r-mark { background: var(--surface-3); color: var(--ink-4); }

/* 户型图 */
.floorplan-wrap {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); cursor: zoom-in;
}
.floorplan-wrap img { width: 100%; }

/* 视频 */
.video-wrap { border-radius: var(--radius); overflow: hidden; background: #0b1420; }
.video-16x9 { position: relative; padding-top: 56.25%; }
.video-16x9 iframe, .video-16x9 video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-wrap + .video-wrap { margin-top: 14px; }

/* ============================================================
 * 询盘表单
 * ============================================================ */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
}
.form-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.form-card .f-lead { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 11px 13px; font-size: 14.5px; background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { font-size: 12px; color: var(--ink-4); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* ============================================================
 * 内容页（关于 / 指南 / 联系）
 * ============================================================ */
.page-hero {
  background: linear-gradient(150deg, #fefcf8, #f0eade);
  color: var(--ink); padding: 46px 0 42px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; color: var(--ink); }
.page-hero p { font-size: 15.5px; color: var(--ink-2); max-width: 620px; line-height: 1.72; }

.content-page { padding: 44px 0 60px; }
.prose { max-width: 780px; }
.prose h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 34px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15px; line-height: 1.8; color: var(--ink-2); margin-bottom: 14px; }

/* 服务卡片（关于页） */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.svc-card .s-num {
  font-family: var(--serif); font-size: 13px; font-weight: 700;
  color: var(--accent-ink); letter-spacing: .5px; margin-bottom: 10px;
}
.svc-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.svc-card p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* 数据统计 */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat-box { text-align: center; padding: 22px 12px; background: var(--surface-2); border-radius: var(--radius); }
.stat-box b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--accent-ink); line-height: 1; }
.stat-box span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* 流程步骤（指南页） */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 16px; padding-bottom: 24px; position: relative;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 0;
  width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #2e2a24; color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.step-body h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.step-body p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* 材料清单 */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 16px; background: var(--surface-2);
  border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-2);
  line-height: 1.6;
}
.doc-item::before {
  content: "✓"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* FAQ 手风琴 */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq-q {
  width: 100%; text-align: left; border: none; background: transparent; cursor: pointer;
  padding: 17px 19px; font-size: 15px; font-weight: 650; color: var(--ink);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  line-height: 1.5;
}
.faq-q:hover { background: var(--surface-2); }
.faq-q .f-plus {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 15px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .24s, background .24s;
}
.faq-item.open .faq-q .f-plus { transform: rotate(45deg); background: #2e2a24; color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  padding: 0 19px;
}
.faq-item.open .faq-a { max-height: 640px; padding-bottom: 19px; }
.faq-a p { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }

/* 联系卡片 */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.contact-ways { display: flex; flex-direction: column; gap: 12px; }
.cway {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.cway:hover { border-color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.cway-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.cway.wa .cway-ico { background: #e6f5ec; color: #1f8a54; }
.cway-body { flex: 1; min-width: 0; }
.cway-body .w-label { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-4); }
.cway-body .w-val { font-size: 15.5px; font-weight: 700; margin-top: 2px; word-break: break-all; }
.cway-body .w-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.qr-box {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px; background: var(--surface-2); border-radius: var(--radius);
  border: 1px dashed var(--line-2);
}
.qr-placeholder {
  width: 150px; height: 150px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 12px; text-align: center; padding: 12px;
}
.qr-box span { font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ============================================================
 * 悬浮 WhatsApp
 * ============================================================ */
.float-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  display: flex; align-items: center; gap: 9px;
  background: #1f8a54; color: #fff;
  padding: 13px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 26px rgba(31,138,84,.36);
  transition: transform .2s, box-shadow .2s;
}
.float-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(31,138,84,.44); }
.wa-ico {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: rgba(255,255,255,.22);
  position: relative;
}
.wa-ico::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%);
}
.wa-txt { display: none; }

/* ============================================================
 * 页脚
 * ============================================================ */
footer {
  background: linear-gradient(165deg, #f6f1e8, #eee8dc);
  color: var(--ink-2); margin-top: 40px;
  border-top: 1px solid var(--line-2);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 34px; }
.foot-brand b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 10px; }
.foot-brand p { font-size: 13.5px; line-height: 1.7; max-width: 320px; margin-bottom: 16px; }
.foot-social { display: flex; gap: 9px; flex-wrap: wrap; }
.foot-soc {
  font-size: 12.5px; font-weight: 650; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2); background: rgba(255,255,255,.6);
  transition: all .18s;
}
.foot-soc:hover { background: #fff; border-color: var(--accent); color: var(--accent-ink); }
.foot-col h4 {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px;
}
.foot-col a, .foot-col span {
  display: block; font-size: 13.5px; padding: 5px 0; transition: color .18s;
}
.foot-col a:hover { color: var(--accent-ink); }
.foot-soon { color: var(--ink-4) !important; font-size: 12.5px !important; }
.foot-bottom {
  border-top: 1px solid var(--line-2); padding-top: 22px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.45);
}

/* ============================================================
 * 其他
 * ============================================================ */
.empty {
  padding: 60px 20px; text-align: center; color: var(--ink-3);
  background: var(--surface-2); border-radius: var(--radius); font-size: 14.5px;
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #2e2a24; color: #fff;
  padding: 13px 22px; border-radius: 11px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .24s, transform .24s; z-index: 200;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-err { background: var(--danger); }
.skeleton { color: transparent !important; background: var(--surface-3) !important; border-radius: 6px; }

/* ============================================================
 * 响应式 —— 手机优先，逐级向上适配
 * ============================================================ */

/* ≥ 560px：表单两列 */
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-list { grid-template-columns: 1fr 1fr; }
  .commute-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
  .wa-txt { display: inline; }
  .near-row { padding: 15px 18px; }
}

/* ≥ 720px：平板 */
@media (min-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 28px; }
  .header-inner { padding: 0 28px; height: 72px; }
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .city-select { display: block; }
  .mobile-menu { display: none !important; }

  .hero { padding: 74px 0 66px; }
  .hero h1 { font-size: 44px; }
  .hero p.sub { font-size: 16.5px; }
  .hero-search { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: end; }
  .hero-search .btn { padding: 0 24px; height: 52px; }
  .hero-search select, .hero-search input { padding: 22px 14px 9px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 66px 0; }
  .section-head h2 { font-size: 29px; }
  .section-head h2::before { height: 28px; }

  .page-hero { padding: 60px 0 56px; }
  .page-hero h1 { font-size: 38px; }

  .gallery { grid-template-columns: 2fr 1fr; gap: 10px; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .gallery-main { aspect-ratio: auto; height: 100%; min-height: 380px; }

  .detail-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .detail-head h1 { font-size: 31px; }
  .spec-grid { grid-template-columns: repeat(4, 1fr); }

  .form-card { padding: 28px 26px; }
  .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 28px; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
  .qr-placeholder { width: 170px; height: 170px; }

  .float-wa { right: 24px; bottom: 24px; padding: 14px 20px; }
}

/* ≥ 1000px：桌面 */
@media (min-width: 1000px) {
  .hero h1 { font-size: 50px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(4, 1fr); }
  .rev-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }

  .list-layout { grid-template-columns: 240px 1fr; gap: 28px; }
  .filters { position: sticky; top: 92px; }
  .filters-head { cursor: default; }
  .filters .f-chev { display: none; }
  .filters.collapsed .filters-body { display: block; }

  /* 首页：左侧筛选栏变窄让位给房源区，房源网格直接上三列（更大更清晰） */
  .home-split { grid-template-columns: 248px 1fr; gap: 28px; }
  .home-side {
    position: sticky; top: 92px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 14px;
  }
  .home-main .grid { grid-template-columns: repeat(3, 1fr); }

  .map-canvas { aspect-ratio: 16/10; }
  .map-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .detail-page { padding: 30px 0 70px; }
  .gallery-main { min-height: 480px; }
}

/* ≥ 1180px */
@media (min-width: 1180px) {
  .grid { gap: 26px; }
  .hero h1 { font-size: 54px; }
  .home-split { grid-template-columns: 264px 1fr; gap: 34px; }
  .home-main .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
 * 房源详情页 · 位置地图（Google Maps 内嵌，无需 API Key）
 * ============================================================ */
/* 地图：默认只占很小一块（约原来 1/12 面积），点「放大」再开浮窗。
 * 静态页（seo-gen 生成）直接输出 .map-wrap，也会跟着变小，无需重新生成。 */
.map-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  border: 1px solid var(--line, #e8e1d4);
  background: #f4f1ea;
  box-shadow: 0 1px 2px rgba(58,49,40,.05);
}
.map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  border: 1px solid var(--line, #e8e1d4);
  background: #f4f1ea;
  /* 2026-10-15：面积约为初版的 3.6 倍（340x118 → 500x300） */
  height: 300px;
  max-width: 500px;
}
.map-box .map-wrap { border: 0; border-radius: 0; max-width: none; }
.map-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
/* 迷你地图：点击整块即放大 */
.map-box .map-wrap { cursor: zoom-in; }
.map-box .map-wrap iframe { pointer-events: none; }

/* 定位图标：地图永远以小区为中心，所以固定钉在正中间。
 * 【注意】选择器必须限定在 .map-box / .mapwin 里 —— 首页与列表页的
 * 手绘区域地图也用 .map-pin（显示租金的文字钉），不能被我改样。 */
.map-box .map-pin,
.mapwin .map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  background: none;
}
.map-box .map-pin-head,
.mapwin .map-pin-head {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  background: #d2352c;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.map-box .map-pin-head::after,
.mapwin .map-pin-head::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transform: rotate(45deg);
}
.map-box .map-pin-tag,
.mapwin .map-pin-tag {
  margin-top: 4px;
  background: rgba(14,28,44,.92);
  color: #fff; font-size: 11.5px; font-weight: 650;
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; max-width: 260px;
  overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
/* 放大按钮 */
.map-box .map-zoom {
  position: absolute; right: 8px; top: 8px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; cursor: pointer;
  background: rgba(14,28,44,.9); color: #fff;
  font-size: 11.5px; font-weight: 650;
  padding: 5px 10px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: background .15s;
}
.map-box .map-zoom:hover { background: rgba(14,28,44,1); }
.map-box .map-zoom svg { width: 12px; height: 12px; }
.map-box .map-hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  font-size: 10.5px; color: #fff; padding: 3px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  pointer-events: none;
}

/* ---------- 地图放大浮窗（可拖动 / 可自由缩放） ---------- */
.mapwin {
  position: fixed; z-index: 9500;
  display: none; flex-direction: column;
  background: #14110c; border-radius: 12px; overflow: hidden;
  box-shadow: 0 22px 60px rgba(18,12,4,.42), 0 0 0 1px rgba(255,255,255,.10);
  user-select: none;
}
.mapwin.on { display: flex; }
.mapwin.dragging, .mapwin.resizing { transition: none; }
.mapwin .vw-hint { opacity: 0; transition: opacity .3s; }
.mapwin:hover .vw-hint { opacity: 1; }
.mw-stage { position: relative; width: 100%; flex: 1; min-height: 120px; background: #e9e4d9; }
.mw-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 12px;
}
.map-link {
  font-size: 13.5px; font-weight: 600;
  color: var(--accent, #b08d4a);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 74, .35);
  padding-bottom: 1px;
}
.map-link:hover { border-bottom-color: var(--accent, #b08d4a); }
.map-note { font-size: 12px; color: var(--muted, #8a8378); line-height: 1.55; }

@media (max-width: 620px) {
  .map-wrap { height: 240px; }
  .map-box { max-width: none; }
  .map-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mapwin.on {
    left: 6px !important; top: 68px !important;
    width: calc(100vw - 12px) !important;
    height: calc(100vh - 90px) !important;
    border-radius: 10px;
  }
  .mapwin .vw-resize { display: none; }
}

/* ============================================================
 * 2026-10-14 首屏压缩 + 每行房源数选择
 * ------------------------------------------------------------
 * 目标：桌面端不滑动就能看到第一排房源卡片。
 * 做法：hero 的上下留白、标题字号、搜索条、数据条整体收紧，
 *       房源区块的上边距一起收，把第一排卡片提到首屏里。
 * ============================================================ */
.hero { padding: 24px 0 20px; }
.hero-eyebrow { margin-bottom: 9px; font-size: 11px; }
.hero h1 { font-size: 25px; line-height: 1.15; margin-bottom: 7px; max-width: 820px; }
.hero p.sub { font-size: 13.5px; line-height: 1.55; margin-bottom: 13px; max-width: 780px; }
.hero-search { padding: 10px; margin-bottom: 14px; border-radius: 12px; }
.hero-search select, .hero-search input { padding: 20px 12px 6px; font-size: 14px; }
.hero-stats { padding-top: 13px; gap: 10px 16px; }
.hero-stat b { font-size: 20px; }
.hero-stat span { font-size: 11px; margin-top: 4px; }

#homesSection { padding-top: 28px; }
#homesSection .section-head-row { margin-bottom: 14px; }
#homesSection .section-head h2 { font-size: 22px; }

@media (min-width: 720px) {
  .hero { padding: 28px 0 22px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 10px 18px; }
}

/* 「每行」选择器 */
.home-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cols-label { font-size: 12.5px; color: var(--ink-3); }
.cols-pick {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--surface);
}
.cols-pick button {
  border: 0; background: transparent; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; cursor: pointer;
  transition: background .15s, color .15s;
}
.cols-pick button + button { border-left: 1px solid var(--line); }
.cols-pick button:hover { background: var(--surface-2); }
.cols-pick button.on { background: var(--accent-soft); color: var(--accent-ink); }

/* 列数由 --home-cols 控制（3-6）；小屏仍是原来的两列/一列，不跟着放大 */
@media (min-width: 1000px) {
  .home-main .grid { grid-template-columns: repeat(var(--home-cols, 3), 1fr); }
}
@media (min-width: 1180px) {
  .home-main .grid { grid-template-columns: repeat(var(--home-cols, 3), 1fr); }
}
/* 5-6 列时卡片会变窄，媒体区改横向比例、间距收紧，免得卡片细高到看不清 */
.home-main .grid[data-cols="5"], .home-main .grid[data-cols="6"] { gap: 14px; }
.home-main .grid[data-cols="5"] .card-media,
.home-main .grid[data-cols="6"] .card-media { aspect-ratio: 4 / 3; }

/* ============================================================
 * 2026-10-15 详情页首屏重构
 * ------------------------------------------------------------
 * 目标：不滑动网页就能「看全主图 + 一眼看完关键信息」。
 * 做法：桌面端左右两栏 —— 左边主图（contain 全图可见、高度约原一半），
 *       右边一张关键信息卡（租金 / 小区 / 户型面积 / 地铁线路与距离 /
 *       商超与距离 / 押金租期），窄屏自动退回上下堆叠。
 * ============================================================ */
.detail-top { margin-bottom: 26px; }
.quick-facts {
  display: flex; flex-direction: column; gap: 13px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.quick-facts h1 {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  letter-spacing: -.02em; margin: 0; line-height: 1.25;
}
.qf-sub { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }
.qf-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.qf-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.qf-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.qf-list li b { font-weight: 700; color: var(--ink); }
.qf-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.qf-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }

@media (min-width: 1000px) {
  .detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
  }
  .detail-top .gallery { margin-bottom: 0; gap: 10px; }
  .detail-top .gallery-main { height: clamp(300px, 52vh, 470px); }
  .quick-facts {
    position: sticky; top: 84px;
    background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 22px 20px;
    border-bottom: 1px solid var(--line); margin-bottom: 0;
  }
  .quick-facts h1 { font-size: 24px; }
}
@media (min-width: 1180px) {
  .quick-facts h1 { font-size: 26px; }
}

/* ---------- 地图「无法确定小区」红色标注 ---------- */
.map-warn {
  position: absolute; left: 8px; top: 8px; right: 96px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #c62828;
  border: 1px solid #e57373; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; line-height: 1.35;
  padding: 5px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  pointer-events: none;
}
.map-box.is-unconfirmed .map-pin-tag,
.mapwin .is-unconfirmed .map-pin-tag { background: #c62828; }
.map-note.is-warn { color: #c62828; font-weight: 600; }

/* ============================================================
 * 2026-10-16 筛选器升级
 * ------------------------------------------------------------
 * ① 区域/选项前加多选小方块（可一次勾多个区域）
 * ② 预算 = 最小值 + 最大值两个输入框
 * ③ 新增「卫浴」筛选
 * ④ 首页顶部筛选条与左侧栏、列表页左栏保持一致
 * ============================================================ */

/* ---------- ① 多选小方块 ---------- */
.fopt.has-box {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
}
.fopt .fbox {
  flex: 0 0 auto; position: relative;
  width: 15px; height: 15px; border-radius: 4px;
  background: #fff; border: 1.5px solid var(--line-2);
  transition: background .15s, border-color .15s;
}
.fopt .fbox::after {
  content: ''; position: absolute; left: 4px; top: 0.5px;
  width: 4px; height: 8px;
  border: solid #2e2a24; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s;
}
.fopt.on .fbox { background: #fff; border-color: #fff; }
.fopt.on .fbox::after { transform: rotate(45deg) scale(1); }
.fopt.included .fbox { border-style: dashed; border-color: var(--accent-ink); background: var(--accent-soft); }
.fopt.has-box.included::before { content: none; }
/* 勾选框在浏览器原生 checkbox 上做无障碍兜底 */
.fopt.has-box input[type="checkbox"] { display: none; }

/* ---------- ②③④ 首页顶部筛选条 ---------- */
.hf-bar {
  background: rgba(255,255,255,.97);
  border-radius: 14px; padding: 12px;
  box-shadow: var(--shadow-lg); margin-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px;
}
.hf-f { position: relative; display: flex; flex-direction: column; gap: 5px; flex: 1 1 148px; min-width: 124px; }
.hf-f.hf-2 { flex: 1 1 216px; }
.hf-lab {
  font-size: 10px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: var(--ink-4);
}
/* 「可多选」小标：跟在 Bedrooms / Bathrooms 标签后，说明可以一次勾多个 */
.hf-multi {
  font-style: normal; font-weight: 600; font-size: 10px;
  letter-spacing: 0; text-transform: none;
  color: var(--accent-ink); opacity: .9; margin-left: 6px;
}
.hf-btn, .hf-range input {
  width: 100%; min-height: 40px; font-family: inherit; font-size: 14px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
}
.hf-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; text-align: left;
}
.hf-btn:hover { border-color: var(--line-2); }
.hf-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-btn.is-set { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.hf-caret {
  flex: 0 0 auto; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-3); transition: transform .18s;
}
.hf-btn[aria-expanded="true"] .hf-caret { transform: rotate(180deg); }
.hf-range { display: flex; align-items: center; gap: 6px; }
.hf-range input { min-width: 0; padding: 9px 9px; }
.hf-range .hf-dash { flex: 0 0 auto; color: var(--ink-4); }
.hf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 40px; }
.hf-chips .fopt { padding: 6px 11px; font-size: 13px; }
.hf-go { flex: 0 0 auto; min-height: 40px; padding: 0 24px; }
.hf-reset {
  flex: 0 0 auto; align-self: flex-end;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 12.5px; color: var(--ink-3); padding: 0 4px; min-height: 40px;
}
.hf-reset:hover { color: var(--accent-ink); text-decoration: underline; }

/* 区域多选下拉面板 */
.hf-pop {
  position: absolute; z-index: 60; left: 0; top: calc(100% + 6px);
  /* 2026-10-16：高度从固定的 348px 改成跟随视口，一屏能看全区域清单；
     配合下面子区域两列排布，基本不需要滚动就能看完。 */
  width: min(420px, calc(100vw - 36px)); max-height: min(72vh, 560px); overflow: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px;
}
.hf-pop[hidden] { display: none; }
/* 子区域两列排布：13 个选项也能一屏放下 */
.hf-pop .fopt-kids {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
}
.hf-pop .fopt-kid { width: auto; padding: 6px 8px; }
.hf-pop .fopt-parent { padding: 8px 10px; }
.hf-pop .fopt-group { margin-bottom: 11px; }
.hf-pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.hf-pop-head > span:first-child { font-size: 11.5px; line-height: 1.5; color: var(--ink-4); }
.hf-pop-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 719px) {
  .hf-f, .hf-f.hf-2 { flex: 1 1 100%; }
  .hf-go, .hf-reset { width: 100%; }
  .hf-reset { min-height: 34px; }
}

/* ---------- 详情页右侧：8 项基本信息 ---------- */
.qf-def { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qf-def li {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.qf-def li:last-child { border-bottom: 0; }
.qf-def .k {
  font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  color: var(--ink-4); padding-top: 3px;
}
.qf-def .v { font-size: 14.5px; line-height: 1.5; color: var(--ink); word-break: break-word; }
.qf-def .v b { font-weight: 700; }
.qf-def .v .sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.qf-def .v.is-off, .qf-def .v .is-off { color: var(--ink-3); font-weight: 500; }
.qf-def .v .qf-mo { font-weight: 500; color: var(--ink-3); }
@media (max-width: 420px) {
  .qf-def li { grid-template-columns: 88px minmax(0, 1fr); }
}

/* ============================================================
 * GEO 模块（2026-10-16）—— FAQ 页 / 房源清单式版式 / 对比表格
 * 目的：让内容以「问句 + 结论 + 要点/表格」的形态出现，
 * 便于 Google AI Overview 与 ChatGPT / Claude / Gemini 直接抓取引用。
 * 全部为新类名，不影响既有页面。
 * ============================================================ */
.geo-updated {
  display: inline-block; margin-top: 14px;
  background: var(--ok-soft, #eaf5f0); color: var(--ok, #17694f);
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.geo-intro { font-size: 15.5px; color: var(--ink-2); max-width: 760px; margin-bottom: 28px; }
.geo-faq-item {
  border-top: 1px solid var(--line, #e9e3d9);
  padding: 26px 0 20px;
}
.geo-faq-q {
  font-family: var(--serif, Georgia, serif);
  font-size: 21px; line-height: 1.35; color: var(--ink); margin: 0 0 10px;
}
.geo-faq-a { font-size: 15.5px; line-height: 1.75; color: var(--ink); margin: 0 0 12px; }
.geo-bullets { margin: 0 0 4px 0; padding-left: 20px; }
.geo-bullets li { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 4px; }

.geo-check { list-style: none; margin: 0; padding: 0; }
.geo-check li {
  position: relative; padding: 6px 0 6px 24px; font-size: 14.5px; line-height: 1.6;
  color: var(--ink); border-bottom: 1px dashed var(--line, #e9e3d9);
}
.geo-check li:last-child { border-bottom: 0; }
.geo-check li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--ok, #17694f); font-weight: 700;
}
.geo-check li.is-off::before { content: "—"; color: var(--ink-4, #a9a296); font-weight: 500; }
.geo-check li.is-off { color: var(--ink-3); }

.geo-cmp { overflow-x: auto; margin-top: 4px; }
.geo-cmp table {
  width: 100%; border-collapse: collapse; min-width: 560px;
  font-size: 14px; background: #fff;
}
.geo-cmp th, .geo-cmp td {
  border: 1px solid var(--line, #e9e3d9);
  padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.5;
}
.geo-cmp thead th {
  background: var(--brand-soft, #f6f1e8); color: var(--ink);
  font-weight: 600; font-size: 13.5px;
}
.geo-cmp tbody th {
  background: var(--brand-tint, #fefcf8); font-weight: 500; color: var(--ink-2);
  white-space: nowrap; width: 34%;
}
.geo-cmp td.is-this { background: var(--accent-soft, #faf6ec); font-weight: 600; }
.geo-cmp .geo-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 640px) {
  .geo-faq-q { font-size: 18.5px; }
  .geo-cmp table { min-width: 480px; }
}

/* ============================================================
 * 站点目录 / 区域分节（GEO，2026-10-16）
 * 用途一：房源总览页按区域分节（每节一个锚点，房源页面包屑跳这里）
 * 用途二：各页底部的纯文本站点目录 —— 不依赖 JS，
 *         让搜索引擎与 AI 爬虫从任意页面都能走到全部静态页
 * ============================================================ */

/* 总览页：顶部区域目录 */
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px 20px; }
.toc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.toc-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.toc-list a:hover { color: var(--accent-ink); }
.toc-list span { color: var(--ink-3); font-size: 13px; }

/* 总览页：区域分节 */
.lst-group { margin: 0 0 42px; scroll-margin-top: 88px; }
.lst-sum { color: var(--ink-3); font-size: 14px; margin: 0 0 16px; line-height: 1.6; }

/* 房源详情页：同区域其他房源 */
.sib-list { list-style: none; margin: 0; padding: 0; }
.sib-list li { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sib-list li:last-child { border-bottom: 0; }
.sib-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.sib-list a:hover { color: var(--accent-ink); }
.sib-list span { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; }

/* 各页底部：纯文本站点目录 */
.site-index { border-top: 1px solid var(--line); background: var(--surface-2); }
.site-index .si-lead { color: var(--ink-3); max-width: 780px; margin: 0 0 22px; font-size: 14.5px; line-height: 1.75; }
.si-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.si-col h3 { font-family: var(--serif, Georgia, serif); font-size: 15px; margin: 0 0 10px; color: var(--ink); }
.si-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 0; }
.si-col a:hover { color: var(--accent-ink); }
.si-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.si-areas a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.si-areas a:hover { border-color: var(--accent); color: var(--accent-ink); }
.si-links { list-style: none; margin: 0; padding: 0; }
.si-links li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.si-links li:last-child { border-bottom: 0; }
.si-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.si-links a:hover { color: var(--accent-ink); }

@media (min-width: 720px) {
  .toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .si-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
}
@media (min-width: 1024px) {
  .toc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .si-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
 * 2026-10-16 客户新增四件套
 * ============================================================ */

/* ---- ① 房源卡片右下角：上架 / 刷新日期 ---- */
.card-dates {
  display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-3); line-height: 1.4;
}
.card-dates span { white-space: nowrap; }

/* ---- ④ 右上角常驻：WhatsApp + WeChat 合并成一个绿色小徽标 ----
 * 全站每页都有；点开才出二维码面板（.chat-qr-mask）。
 * 位置：贴右上角、落在吸顶页头下方，不会盖住页头的语言切换/菜单。 */
.chat-fab {
  position: fixed; right: 14px; top: 80px; z-index: 90;
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; color: #fff;
  /* 2026-10-21：宽度收到原来的一半左右，文字折两行，只占右侧留白 */
  width: 158px; padding: 9px 10px 9px 9px; border-radius: 15px;
  background: linear-gradient(135deg, #25d366 0%, #07c160 100%);
  font-size: 11.5px; font-weight: 750; line-height: 1.28; letter-spacing: .1px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(7, 155, 80, .34);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.chat-fab:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: 0 12px 30px rgba(7, 155, 80, .44);
}
.chat-fab:active { transform: translateY(0); }
.chat-fab:focus-visible { outline: 2px solid #0b7f43; outline-offset: 2px; }
.chat-fab .cf-ico { display: inline-flex; align-items: center; flex-shrink: 0; }
.chat-fab .cf-ico svg { display: block; width: 18px; height: 18px; }
.chat-fab .cf-ico svg + svg { margin-left: -5px; }
.chat-fab .cf-txt { display: block; max-width: 100px; white-space: normal; }
/* 页头 ≥720px 时高 72px，徽标相应下移一点 */
@media (min-width: 720px) { .chat-fab { top: 86px; right: 16px; } }
/* 窄屏：再收一点，文字仍在（客户点名要文字） */
@media (max-width: 719px) {
  .chat-fab { top: 76px; right: 8px; width: 132px; padding: 8px 9px; font-size: 10.5px; border-radius: 13px; }
  .chat-fab .cf-ico svg { width: 16px; height: 16px; }
  .chat-fab .cf-txt { max-width: 82px; }
}

/* 二维码弹层 */
.chat-qr-mask {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(12, 16, 22, .55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.chat-qr-pop {
  position: relative; background: #fff; border-radius: 16px;
  max-width: 560px; width: 100%; max-height: calc(100vh - 36px); overflow: auto;
  padding: 26px 24px 22px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.qr-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: var(--surface-2, #f0f0f0);
  color: #444; font-size: 15px; cursor: pointer; line-height: 1;
}
.qr-close:hover { background: #e4e4e4; }
.qr-title { font-family: var(--serif, Georgia, serif); font-size: 20px; margin: 2px 0 6px; color: #1c2430; }
.qr-note { font-size: 13.5px; color: #5c6672; margin: 0 0 18px; line-height: 1.6; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 479px) { .qr-grid { grid-template-columns: 1fr; } }
.qr-card {
  margin: 0; padding: 14px 12px 12px; border-radius: 12px;
  border: 1px solid #e8e8e8; background: #fafafa;
}
.qr-card-wa { border-top: 3px solid #1a73e8; }
.qr-card-wec { border-top: 3px solid #07c160; }
.qr-card img {
  display: block; width: 100%; max-width: 210px; margin: 0 auto 10px;
  border-radius: 8px; background: #fff;
}
.qr-card figcaption b { display: block; font-size: 14px; color: #1c2430; }
.qr-card figcaption span { display: block; font-size: 12px; color: #7a828c; margin-top: 3px; }
.qr-wa-link {
  display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600;
  color: #1558b0; text-decoration: none; border-bottom: 1px dashed #1558b0;
}
.qr-wa-link:hover { color: #0f3f80; }

/* ---- ③ 详情页视频区：View mode + 缩略图网格 ---- */
.vid-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 15px;
}
.vid-mode {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3);
}
.vm-label { font-weight: 700; color: var(--ink-2); letter-spacing: .2px; }
.vm-unit { font-size: 11.5px; }
.vm-btn {
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.vm-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.vm-btn.on { background: var(--accent-soft, #eef4ee); border-color: var(--accent); color: var(--accent-ink); }
.vid-grid {
  display: grid; grid-template-columns: repeat(var(--vid-cols, 3), minmax(0, 1fr)); gap: 12px;
}
@media (max-width: 719px) { .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vid-thumb {
  position: relative; margin: 0; padding: 0; border: 0; cursor: pointer;
  border-radius: 10px; overflow: hidden; background: #0b1420; aspect-ratio: 16 / 10;
}
.vid-thumb img, .vid-thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.vt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10, 14, 20, .62); display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.vid-thumb:hover .vt-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(10, 14, 20, .8); }
.vt-tri {
  width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff; margin-left: 3px;
}
.vt-name {
  position: absolute; left: 8px; right: 8px; bottom: 6px;
  color: #fff; font-size: 11.5px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

/* ============================================================
 * 2026-10-21 新增：页头 City 标注 + Property type 下拉
 * ============================================================ */
.header-right { align-items: center; }
.city-label {
  font-size: 12px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--ink-3);
  margin-right: -2px; white-space: nowrap;
}
.ptype-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 8px 30px 8px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.ptype-select:focus { outline: 2px solid rgba(26, 115, 232, .35); }
@media (max-width: 719px) {
  .city-label { display: none; }
  .ptype-select { padding: 7px 26px 7px 11px; font-size: 12.5px; }
}

/* 二维码弹层：点「Chat on WhatsApp / Chat on WeChat」进来时高亮对应卡片 */
.qr-card.qr-hl {
  outline: 3px solid #25d366;
  outline-offset: 3px;
  border-radius: 14px;
}
.qr-card-wec.qr-hl { outline-color: #07c160; }

/* 商业物业页：类型切换标签 */
.cm-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.cm-tab {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: all .15s ease;
}
.cm-tab:hover { border-color: var(--ink-3); }
.cm-tab.on {
  background: var(--ink, #14202c); color: #fff; border-color: var(--ink, #14202c);
}
.muted { color: var(--ink-3, #6b7683); }

/* ============================================================
 * 2026-10-22 新增一：手机端首页筛选精简
 * 一行四个胶囊（AREA / BUDGET / BEDROOMS / SIZE），桌面端不变；
 * 平板/手机隐藏左侧常驻筛选栏（与顶部条重复）。
 * ============================================================ */
.hf-mrow { display: none; }
.hf-mi { position: relative; min-width: 0; }
.hf-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 5px;
  width: 100%; min-height: 40px; padding: 9px 10px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; text-align: left;
}
.hf-pill:hover { border-color: var(--line-2); }
.hf-pill > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-pill.is-set { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.hf-pill[aria-expanded="true"] .hf-caret { transform: rotate(180deg); }

@media (max-width: 999px) {
  /* 手机/平板：左侧常驻筛选栏与顶部筛选条重复，整体隐藏 */
  .home-side { display: none !important; }
}
@media (max-width: 719px) {
  /* 首页 hero：桌面字段全部隐藏，只显示一行四个胶囊 + Search */
  .hf-bar > .hf-f { display: none !important; }
  .hf-bar #hfReset { display: none; }
  .hf-mrow {
    display: flex; flex-wrap: nowrap; gap: 8px; width: 100%;
  }
  .hf-mi { flex: 1 1 0; }
  .hf-pill { padding: 9px 8px; justify-content: center; gap: 4px; }
  .hf-mrow .hf-pop { left: 0; width: min(420px, calc(100vw - 48px)); }
}

/* ============================================================
 * 2026-10-22 新增二：分享到微信（卡片预览 + 分享长图）
 * ============================================================ */
.wx-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 16, 10, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.wx-pop {
  position: relative; width: min(460px, 100%);
  max-height: min(86vh, 780px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  padding: 22px 20px 20px;
}
.wx-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .06); color: var(--ink-2);
  font-size: 15px; cursor: pointer; line-height: 1;
}
.wx-close:hover { background: rgba(0, 0, 0, .1); }
.wx-title { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--ink); }
.wx-sub { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }

/* 公众号/视频号风格卡片预览 */
.wx-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 10px rgba(40, 32, 20, .07);
}
.wx-card-media { position: relative; aspect-ratio: 16 / 9; background: #f4efe6; }
.wx-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-card-media .wxcp-noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #6b6357; font: 500 14px/1.4 Georgia, serif;
}
.wx-card-body { padding: 12px 14px 14px; }
.wx-card-title { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.wx-card-info { list-style: none; margin: 0; padding: 0; }
.wx-card-info li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; line-height: 1.5; padding: 3px 0;
}
.wx-card-info .k { flex: 0 0 auto; color: var(--ink-4); font-weight: 600; }
.wx-card-info .v { color: var(--ink); font-weight: 500; word-break: break-word; }

.wx-wec-tip {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: #edfbf2; color: #1a7f46; font-size: 12.5px; line-height: 1.55;
}
.wx-actions { display: flex; gap: 10px; margin-top: 16px; }
.wx-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-share {
  background: #07c160; color: #fff; border: 0;
}
.btn-share:hover { background: #06ad56; }
.wx-poster { margin-top: 16px; text-align: center; }
.wx-poster img {
  width: 100%; max-width: 340px; border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .16); display: inline-block;
}
.wx-poster-hint { margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.wx-poster-actions { margin-top: 12px; display: flex; gap: 10px; }
.wx-poster-actions .btn { flex: 1; }

/* 卡片右上角分享角标 */
.card-share {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #07c160;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .15s, background .15s;
}
.card-share:hover { transform: scale(1.08); background: #fff; }
.card-share svg { width: 16px; height: 16px; }

/* 详情页动作区第二排：分享 + 一键下载 */
.detail-extra { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.detail-extra .btn {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  /* 长英文标签（Download all photos & videos）必须能换行，
     否则会把整页撑宽 → fixed 弹层锚到更宽的布局视口、右侧被裁掉 */
  white-space: normal; text-align: center; line-height: 1.3; padding: 10px 12px;
}
@media (max-width: 719px) {
  /* 手机上两条按钮竖排，各自占满整行，不会互相挤 */
  .detail-extra { flex-direction: column; }
  .detail-extra .btn { flex: 0 0 auto; width: 100%; }
}
.btn-dl { background: var(--ink); color: #fff; border: 0; }
.btn-dl:hover { background: #3a332a; }
.btn-dl svg, .btn-share svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ============================================================
 * 2026-10-22 新增三：一键下载房源图片/视频
 * ============================================================ */
.wx-dl-list { margin-top: 14px; border-top: 1px solid var(--line); }
.wx-dl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.wx-dl-item .dl-ico { flex: 0 0 auto; font-size: 15px; }
.wx-dl-item .dl-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-dl-item .dl-st { flex: 0 0 auto; font-size: 12px; font-weight: 700; }
.wx-dl-item.is-done .dl-st { color: #1a7f46; }
.wx-dl-item.is-busy .dl-st { color: var(--accent-ink); }
.wx-dl-item.is-fail { cursor: pointer; }
.wx-dl-item.is-fail .dl-st { color: #c0392b; }
.wx-dl-bar {
  height: 6px; border-radius: 4px; background: var(--line);
  overflow: hidden; margin-top: 14px;
}
.wx-dl-bar i {
  display: block; height: 100%; width: 0;
  background: #07c160; border-radius: 4px; transition: width .25s;
}
.wx-dl-status { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.wx-dl-note { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }


/* ============================================================
 * 图片兜底（由 tools/build-static-dist.js 自动追加，勿手改）
 * 平台云存储不可达时：卡片图被移除 → .noimg 显示占位说明；
 * 详情页图 → 换成 assets/photo-placeholder.svg。
 * 平台恢复后运行 tools/localize-media.js，图片走本地 media/，
 * 这些样式自然不再命中。
 * ============================================================ */
.card-media.noimg { background: linear-gradient(135deg, #f4efe6 0%, #e4dccd 100%); }
.card-media.noimg::after {
  content: "Photos on request";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #6b6357; font: 500 14px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: .02em; text-align: center; padding: 0 12px;
}
img.is-placeholder { object-fit: cover; }
