/* ============================================================
   来得好 · 官方网站全局样式（响应式：电脑 / 手机自动适配）
   主色 #0d5050 · 强调 #4CAF50 · 租房 #4F46E5 · 买房 #10B981
   ============================================================ */
:root {
  --primary: #0d5050;
  --primary-light: #117a7a;
  --accent: #4CAF50;
  --rent: #4F46E5;
  --sale: #10B981;
  --danger: #e5484d;
  --bg: #f5f8f8;
  --card: #ffffff;
  --text: #22313a;
  --muted: #7a8a92;
  --border: #e6ecee;
  --shadow: 0 2px 10px rgba(13, 80, 80, .07);
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hide { display: none !important; }

/* ===================== 顶部导航 ===================== */
/* 页头外壳承担粘性定位（内部元素出不了矮父容器，粘性必须挂在外壳上） */
#page-header { position: sticky; top: 0; z-index: 100; }
.site-header {
  position: relative;
  background: var(--card); box-shadow: var(--shadow);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px; height: 60px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.logo svg { width: 30px; height: 30px; }
/* 页头导航：图标+文字，样式与轮播图下的图标导航条一致 */
.main-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.main-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 12px; border-radius: 10px; color: var(--text); font-size: 12px;
  white-space: nowrap; line-height: 1.25;
}
.main-nav a .qn-ic { width: 24px; height: 24px; display: inline-flex; }
.main-nav a .qn-ic svg { width: 100%; height: 100%; }
.main-nav a:hover { background: #eef5f5; color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 700; background: transparent; }
.main-nav a.pub { color: #e5484d; font-weight: 700; }
.main-nav a .pub-ic { background: #e5484d; border-radius: 50%; padding: 3px; box-shadow: 0 3px 8px rgba(229,72,77,.35); }
.header-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login { background: var(--primary); color: #fff; border: none; padding: 7px 18px; border-radius: 20px; font-size: 14px; }
.btn-login:hover { background: var(--primary-light); }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-chip img, .user-chip .avatar-ph {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #dfe9e9;
}
.user-chip .avatar-ph { display: flex; align-items: center; justify-content: center; color: #8aa; font-size: 15px; }
.user-chip span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* ===================== 手机底部 TabBar ===================== */
.mobile-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-tabbar .items { display: flex; }
.mobile-tabbar a {
  flex: 1; text-align: center; padding: 6px 0 7px; font-size: 11px; color: var(--muted);
  position: relative;
}
.mobile-tabbar a svg { width: 24px; height: 24px; margin: 0 auto 1px; display: block; }
.mobile-tabbar a.active { color: var(--primary); font-weight: 600; }
.mobile-tabbar a.pub svg { width: 40px; height: 40px; margin-top: -14px; }

/* ===================== 轮播 / 搜索区 ===================== */
.hero { position: relative; overflow: hidden; background: #0d3d3d; }
.hero-banner { position: relative; height: 340px; }
.hero-banner .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background-size: cover; background-position: center;
}
.hero-banner .slide.on { opacity: 1; }
.hero-banner .slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 6% 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 20px; font-weight: 600;
}
.hero-dots { position: absolute; right: 6%; bottom: 22px; display: flex; gap: 6px; z-index: 5; }
.hero-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots i.on { background: #fff; }
.hero-search {
  position: absolute; left: 0; right: 0; bottom: 60px; z-index: 6;
  display: flex; justify-content: center;
}
.hero-search form { display: flex; width: min(620px, 92%); background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.hero-search input { flex: 1; border: none; outline: none; padding: 13px 22px; font-size: 15px; }
.hero-search button { border: none; background: var(--accent); color: #fff; padding: 0 30px; font-size: 15px; }

/* ===================== 租售切换 ===================== */
.seg { display: inline-flex; background: #e8f0f0; border-radius: 24px; padding: 4px; gap: 2px; }
.seg button { border: none; background: transparent; padding: 8px 30px; border-radius: 20px; font-size: 15px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--primary); font-weight: 700; box-shadow: var(--shadow); }
.seg button.on.rent-on { color: var(--rent); }
.seg button.on.sale-on { color: var(--sale); }

/* ===================== 筛选条 ===================== */
.filter-bar {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0;
}
.filter-bar select {
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--text); outline: none; max-width: 160px;
}
.filter-bar .fgroup { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.filter-bar .fgroup input { width: 76px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; outline: none; }

/* ===================== 房源卡片 ===================== */
.house-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 30px; }
.house-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.house-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(13,80,80,.13); }
.house-card .pic { position: relative; aspect-ratio: 4 / 3; background: #e3ecec; overflow: hidden; }
.house-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.house-card .pic .tag-deal {
  position: absolute; left: 10px; top: 10px; color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px;
}
.tag-rent { background: var(--rent); } .tag-sale { background: var(--sale); }
.house-card .pic .no-pic { display: flex; align-items: center; justify-content: center; height: 100%; color: #9db4b4; font-size: 30px; }
.house-card .info { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.house-card .t { font-weight: 600; font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.house-card .meta { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.house-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.house-card .tags i { font-style: normal; font-size: 12px; color: var(--primary); background: #eaf3f3; padding: 2px 8px; border-radius: 4px; }
.house-card .foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.house-card .price { color: #e5641e; font-weight: 700; font-size: 19px; }
.house-card .price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.house-card .views { color: var(--muted); font-size: 12px; }

/* ===== 2026-10-02：房源卡片「等比缩放」 =====
   列数保持不变（电脑 3 列 / 平板 2 列 / 手机 2 列），
   只让卡片内部（内边距、字号、标签、价格、图片比例）随屏幕宽度等比伸缩，不溢出、不扭曲。 */
.house-card { min-width: 0; }
.house-card .info { padding: clamp(9px, 1vw, 14px) clamp(10px, 1.1vw, 14px) clamp(11px, 1.2vw, 14px); }
.house-card .t { font-size: clamp(13px, 1.2vw, 16px); }
.house-card .meta { font-size: clamp(11px, 1vw, 13px); }
.house-card .tags i { font-size: clamp(10px, 0.9vw, 12px); padding: 2px clamp(5px, 0.6vw, 8px); }
.house-card .price { font-size: clamp(16px, 1.5vw, 19px); }
.house-card .price small { font-size: clamp(10px, 0.9vw, 12px); }
.house-card .views { font-size: clamp(10px, 0.9vw, 12px); }
/* 图片区始终按 4:3 等比自适应（高度随宽度自动伸缩，不变形不裁切） */
.house-card .pic { aspect-ratio: 4 / 3; }
.house-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-card .tags { overflow: hidden; }

@media (max-width: 640px) {
  .house-grid { gap: 12px; }
  .house-card .info { padding: 10px 11px 12px; gap: 5px; }
  .house-card .t { font-size: 14px; min-height: 2.6em; }
  .house-card .meta { font-size: 12px; }
  .house-card .tags i { font-size: 11px; padding: 2px 6px; }
  .house-card .price { font-size: 17px; }
  .house-card .price small { font-size: 11px; }
  .house-card .views { font-size: 11px; }
}
@media (max-width: 400px) {
  .house-grid { gap: 10px; }
  .house-card .info { padding: 8px 9px 10px; gap: 4px; }
  .house-card .t { font-size: 13px; }
  .house-card .meta { font-size: 11px; }
  .house-card .tags i { font-size: 10px; padding: 1px 5px; }
  .house-card .price { font-size: 16px; }
  .house-card .price small { font-size: 10px; }
}

/* ===================== 布局骨架（列表/详情双栏） ===================== */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; margin: 20px 0 40px; }
.layout > div { min-width: 0; }
.side-panel { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.panel h2, .panel h3 { font-size: 16px; margin-bottom: 12px; color: var(--primary); }
/* 全站统一 H1（页面主标题，每页仅 1 个） */
.seo-h1 { font-size: 20px; font-weight: 700; color: var(--text, #1A1A1A); margin: 16px 0 10px; line-height: 1.4; }
.side-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.side-link:last-child { border-bottom: none; }
.side-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link em { font-style: normal; color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* ===================== 分页 ===================== */
.pager { display: flex; justify-content: center; gap: 8px; margin: 26px 0 40px; }
.pager button { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 14px; font-size: 14px; color: var(--text); }
.pager button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ===================== 详情页 ===================== */
.crumbs { color: var(--muted); font-size: 13px; margin: 14px 0 10px; }
.crumbs a { color: var(--primary); }
.gallery { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gallery .main { position: relative; aspect-ratio: 16 / 10; background: #0e2a2a; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.35); color: #fff; font-size: 18px; }
.gallery .main .nav.prev { left: 12px; } .gallery .main .nav.next { right: 12px; }
.gallery .main .idx { position: absolute; right: 14px; bottom: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.gallery .thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery .thumbs img { width: 86px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.gallery .thumbs img.on { border-color: var(--accent); }
.detail-head { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 16px; }
.detail-head h1 { font-size: 22px; line-height: 1.45; }
.detail-head .price-line { display: flex; align-items: baseline; gap: 14px; margin: 12px 0 4px; }
.detail-head .price-line .p { color: #e5641e; font-size: 30px; font-weight: 700; }
.detail-head .price-line .p small { font-size: 14px; font-weight: 400; }
.detail-head .price-line .unit-tip { color: var(--muted); font-size: 13px; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.info-grid .cell { background: #f5f9f9; border-radius: 10px; padding: 12px; }
.info-grid .cell b { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.info-grid .cell span { font-size: 15px; font-weight: 600; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail-tags i { font-style: normal; font-size: 13px; color: var(--primary); background: #eaf3f3; padding: 4px 12px; border-radius: 6px; }
.detail-sec { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 16px; }
.detail-sec h2 { font-size: 18px; margin-bottom: 14px; color: var(--primary); }
.detail-sec .desc { white-space: pre-wrap; color: #3a4a52; }
.faclist { display: flex; flex-wrap: wrap; gap: 10px; }
.faclist i { font-style: normal; font-size: 14px; background: #f2f8f8; border: 1px solid var(--border); padding: 6px 14px; border-radius: 18px; }
.faclist i.no { color: #b0bdbd; text-decoration: line-through; }

/* 联系卡 */
.contact-card { text-align: center; }
.contact-card .price { color: #e5641e; font-size: 26px; font-weight: 700; }
.contact-card .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.contact-card .who { margin: 10px 0 2px; font-weight: 600; }
.contact-card .community { color: var(--muted); font-size: 13px; }
.contact-card .btns { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.btn { border: none; border-radius: 10px; padding: 12px; font-size: 15px; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-danger-ghost { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn-rent { background: var(--rent); color: #fff; }
.btn-mini { padding: 5px 12px; font-size: 13px; width: auto; border-radius: 8px; }
.phone-show { font-size: 20px; font-weight: 700; color: var(--primary); padding: 8px 0; }

/* 评论 */
.comment-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-item img, .comment-item .avatar-ph { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #dfe9e9; flex-shrink: 0; }
.comment-item .avatar-ph { display: flex; align-items: center; justify-content: center; color: #8aa; }
.comment-item .body { flex: 1; }
.comment-item .name { font-size: 13px; color: var(--primary); font-weight: 600; }
.comment-item .time { font-size: 12px; color: var(--muted); margin-left: 8px; }
.comment-item .txt { margin-top: 3px; font-size: 14px; }
.comment-item .del { color: var(--muted); font-size: 12px; cursor: pointer; margin-left: 8px; }
.comment-item .del:hover { color: var(--danger); }
.comment-form { display: flex; gap: 10px; margin-top: 14px; }
.comment-form textarea { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; resize: vertical; min-height: 64px; outline: none; }
.comment-form button { align-self: flex-end; width: auto; padding: 10px 24px; }

/* ===================== 表单（发布/资料/预约） ===================== */
.form-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 20px 0 40px; }
.form-panel h1 { font-size: 20px; margin-bottom: 18px; color: var(--primary); }
.frow { display: grid; grid-template-columns: 190px 1fr; gap: 10px 16px; margin-bottom: 14px; align-items: start; }
.frow label { color: var(--muted); font-size: 14px; text-align: right; padding-top: 9px; }
.frow label em { color: var(--danger); font-style: normal; margin-right: 2px; }
.frow input[type=text], .frow input[type=number], .frow input[type=tel], .frow input[type=date], .frow input[type=time], .frow input[type=url], .frow select, .frow textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; outline: none; background: #fff;
}
.frow textarea { min-height: 110px; resize: vertical; }
.frow input:focus, .frow select:focus, .frow textarea:focus { border-color: var(--primary-light); }
.frow .radios { display: flex; gap: 18px; padding-top: 9px; }
.frow .radios label { padding: 0; color: var(--text); }
.frow .hint { grid-column: 2; color: var(--muted); font-size: 12px; margin-top: -8px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 5px; }
.check-chips label { display: flex; align-items: center; gap: 5px; font-size: 14px; background: #f2f8f8; border: 1px solid var(--border); padding: 6px 12px; border-radius: 18px; cursor: pointer; color: var(--text); }
.check-chips input { accent-color: var(--primary); }
.form-actions { text-align: center; margin-top: 22px; }
.form-actions .btn { width: auto; padding: 12px 60px; }

/* 图片上传 */
.up-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.up-item { position: relative; width: 108px; height: 108px; border-radius: 10px; overflow: hidden; background: #eef4f4; }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .rm { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 1; }
.up-item .cover-mark { position: absolute; left: 0; bottom: 0; right: 0; background: rgba(13,80,80,.8); color: #fff; font-size: 11px; text-align: center; padding: 2px 0; }
.up-add {
  width: 108px; height: 108px; border: 1px dashed #b9cccc; border-radius: 10px; background: #f7fbfb;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7fa0a0; font-size: 13px; cursor: pointer;
}
.up-add span { font-size: 26px; line-height: 1.1; }

/* ===================== 个人中心 ===================== */
.profile-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 22px; margin: 20px 0 40px; align-items: start; }
.me-card { text-align: center; }
.me-card img, .me-card .avatar-ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 10px auto; background: #dfe9e9; }
.me-card .avatar-ph { display: flex; align-items: center; justify-content: center; color: #8aa; font-size: 28px; }
.me-card .stats { display: flex; justify-content: space-around; margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 14px; }
.me-card .stats b { font-size: 19px; color: var(--primary); }
.me-card .stats span { display: block; font-size: 12px; color: var(--muted); }
.me-menu { margin-top: 12px; text-align: left; }
.me-menu a, .me-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 11px 6px; font-size: 15px; border-bottom: 1px dashed var(--border); color: var(--text); border-radius: 0; }
.me-menu a:hover, .me-menu button:hover { color: var(--primary); }
.me-menu button:last-child { border-bottom: none; color: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: none; background: none; padding: 10px 16px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.my-house-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.my-house-item .pic { width: 150px; height: 100px; border-radius: 8px; overflow: hidden; background: #e3ecec; flex-shrink: 0; }
.my-house-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.my-house-item .info { flex: 1; min-width: 0; }
.my-house-item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-house-item .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.my-house-item .ops { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.st-badge { font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.st-1 { background: #e5f6eb; color: var(--sale); } .st-0 { background: #fff6e5; color: #c07f00; }
.st-2 { background: #f0f1f3; color: #8a95a3; } .st-3 { background: #fdeaea; color: var(--danger); }

/* ===================== 合同 ===================== */
.contract-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0 30px; }
.contract-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; }
.contract-card .cov { width: 84px; height: 112px; border-radius: 6px; background: #e8f1f8; object-fit: cover; flex-shrink: 0; }
.contract-card .info { flex: 1; min-width: 0; }
.contract-card .t { font-weight: 700; font-size: 16px; }
.contract-card .d { color: var(--muted); font-size: 13px; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.contract-card .price { color: #e5641e; font-weight: 700; }
.contract-card .price.free { color: var(--sale); }

/* ===================== 弹窗 / 提示 ===================== */
.modal-mask { position: fixed; inset: 0; background: rgba(10,30,30,.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(440px, 100%); max-height: 86vh; overflow: auto; padding: 22px; }
.modal h3 { margin-bottom: 14px; color: var(--primary); }
.modal .close-x { float: right; border: none; background: none; font-size: 20px; color: var(--muted); }
#toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); background: rgba(20,40,40,.92); color: #fff; padding: 11px 22px; border-radius: 10px; font-size: 14px; z-index: 999; display: none; max-width: 80vw; text-align: center; }
.empty-tip { text-align: center; color: var(--muted); padding: 50px 0; font-size: 14px; }
.loading-tip { text-align: center; color: var(--muted); padding: 26px 0; font-size: 14px; }

/* ===================== 登录页 ===================== */
.login-box { max-width: 430px; margin: 60px auto; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 34px 30px; text-align: center; }
.login-box h1 { color: var(--primary); font-size: 22px; margin-bottom: 8px; }
.login-box .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.wxqr-tip { background: #f2f8f8; border-radius: 10px; padding: 14px; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ===================== 页脚 ===================== */
.site-footer { background: var(--primary); color: #cfe3e3; margin-top: 30px; padding: 26px 0 30px; font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #fff; }
.footer-qr { display: flex; align-items: center; gap: 10px; }
.footer-qr img { width: 74px; height: 74px; border-radius: 8px; background: #fff; }

/* ===================== 地图页 ===================== */
.map-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin: 16px 0 30px; }
.map-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 640px; }
.map-box #map { width: 100%; height: 100%; }
.map-side { height: 640px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.map-side .house-card { box-shadow: none; border: 1px solid var(--border); cursor: pointer; }
.map-side .house-card .pic { aspect-ratio: auto; height: 110px; }
.map-count { font-size: 13px; color: var(--muted); margin: 8px 0; }

/* ===================== 响应式：手机（<=860px） ===================== */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-tabbar { display: block; }
  body { padding-bottom: 58px; }
  .hero-banner { height: 230px; }
  .hero-search { bottom: 40px; }
  .house-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .house-card .t { font-size: 14px; }
  .layout, .profile-wrap, .map-layout { grid-template-columns: 1fr; }
  .side-panel { order: 2; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .contract-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .frow label { text-align: left; padding-top: 0; }
  .frow .hint { grid-column: 1; }
  .map-box, .map-side { height: auto; }
  .map-box { height: 60vw; min-height: 320px; }
  .my-house-item .pic { width: 110px; height: 76px; }
  .user-chip span { display: none; }
}
@media (max-width: 400px) {
  .house-grid { grid-template-columns: 1fr 1fr; }
  .hero-banner { height: 190px; }
}

/* ================= 顶部图标导航（复刻小程序底部 tab，置于吸顶容器内） ================= */
.quick-nav {
  display: flex; justify-content: space-between; align-items: flex-start;
  background: var(--card); border-radius: 16px 16px 0 0; padding: 10px 10px 8px; margin-bottom: 0;
  box-shadow: var(--shadow); overflow-x: auto; }
/* 滚动后由 JS 加上的固定态：一直贴在页头下方，直到页面底部 */
.quick-nav.qn-fixed {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); border-radius: 0 0 16px 16px; z-index: 90; }
.quick-nav a { display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none; color: #555; font-size: 12px; flex: 1 0 auto; padding: 0 4px; white-space: nowrap; }
.quick-nav a.active { color: var(--primary, #17b2a3); font-weight: 700; }
.quick-nav .qn-ic { width: 26px; height: 26px; display: inline-flex; }
.quick-nav .qn-ic svg { width: 100%; height: 100%; }
.quick-nav a.pub { color: #e5484d; font-weight: 700; }
.quick-nav .pub-ic { background: #e5484d; border-radius: 50%; padding: 3px; box-shadow: 0 3px 8px rgba(229,72,77,.35); }

/* ================= 房源卡片距离角标 ================= */
.house-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.house-card .meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.house-card .dist { flex: none; color: #17b2a3; font-size: 12px; background: rgba(23,178,163,.1);
  border-radius: 10px; padding: 1px 8px; }

/* ================= 定位提示 ================= */
.loc-tip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted);
  background: #eef6f6; border-radius: 14px; padding: 4px 12px; cursor: pointer; user-select: none; }
.loc-tip.ok { color: #0d8f83; }
.loc-tip.fail { color: #b0680a; background: #f7efe2; }

/* ================= 图标导航行容器：不再整体吸顶，下滑时只有 .quick-nav 一行固定 ================= */
.sticky-head { background: var(--bg); }
.sticky-head .filter-bar { margin: 10px 0 0; border-radius: 0 0 16px 16px; }
.sticky-head::after { content: ""; display: block; height: 10px; }
/* 只有页签（无筛选控件）的行：其他页面通用的 最新/租房/买房 */
.filter-tabs-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ================= 登录/注册（账号密码） ================= */
.top-tabs { display: flex; justify-content: center; gap: 10px; margin: 18px 0 4px; }
.top-tabs button { border: none; border-radius: 20px; padding: 9px 28px; font-size: 15px; background: #e8f0f0; color: var(--muted); }
.top-tabs button.on-ct { background: var(--primary); color: #fff; font-weight: 600; }
.auth-form { margin-top: 18px; text-align: left; }
.auth-form .fld { margin-bottom: 14px; }
.auth-form .fld label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.auth-form .fld input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; background: #fff; }
.auth-form .fld input:focus { border-color: var(--primary-light); }
.auth-switch { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--primary); cursor: pointer; font-weight: 600; }

/* ================= 合同页三栏页签：合同 / 帮助 / 公众号 ================= */
.c-top-tabs { display: flex; justify-content: center; gap: 12px; margin: 6px 0 16px; }
.c-top-tabs button { border: none; border-radius: 22px; padding: 10px 32px; font-size: 15px; background: #e8f0f0; color: var(--muted); }
.c-top-tabs button.on-contract { background: var(--primary); color: #fff; font-weight: 600; }
.c-top-tabs button.on-help { background: var(--accent); color: #fff; font-weight: 600; }
.c-top-tabs button.on-official { background: #4f46e5; color: #fff; font-weight: 600; }

/* 帮助区块 */
.help-sec { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.help-sec h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; }
.help-sec .qa { margin-bottom: 12px; }
.help-sec .qa:last-child { margin-bottom: 0; }
.help-sec .qa .q { font-weight: 600; font-size: 14px; }
.help-sec .qa .a { color: var(--muted); font-size: 13px; margin-top: 3px; }
.help-sec .about { color: #3a4a52; font-size: 14px; }

/* 公众号区块 */
.of-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 16px; }
.of-banner .of-name { font-weight: 700; font-size: 16px; }
.of-banner .of-tip { color: var(--muted); font-size: 13px; margin-top: 4px; }
.of-banner img { width: 88px; height: 88px; border-radius: 8px; background: #fff; object-fit: cover; flex-shrink: 0; }
.article-item { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px; color: var(--text); }
.article-item img.cover { width: 76px; height: 54px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #e3ecec; }
.article-item .a-info { flex: 1; min-width: 0; }
.article-item .a-t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-item .a-s { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-item .a-time { color: #b0bdbd; font-size: 12px; margin-top: 2px; }
.article-item .arrow { color: #b0bdbd; font-size: 20px; flex-shrink: 0; }

/* =====================================================================
 * 讨论区（信息流 / 详情 / 发帖）—— 对齐小程序讨论区视觉
 * ===================================================================== */
.discuss-wrap { padding-bottom: 30px; }

.back-link { display: inline-block; color: var(--primary); font-size: 14px; margin: 14px 0 4px; cursor: pointer; }

/* ---------- 顶部轮播（作用于讨论页 .discuss-wrap 内，避免与首页 .hero 冲突） ---------- */
.discuss-wrap .hero {
  position: relative;
  margin: 10px 0 0;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #edeff2;
}
.discuss-wrap .hero-track { display: flex; height: 100%; transition: transform .35s ease; }
.discuss-wrap .hero-slide { position: relative; min-width: 100%; height: 100%; }
.discuss-wrap .hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.discuss-wrap .hero-title {
  position: absolute; bottom: 12px; left: 12px; max-width: 70%;
  padding: 6px 14px; background: rgba(0,0,0,.45); color: #fff;
  font-size: 14px; font-weight: 500; line-height: 1.3; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.discuss-wrap .hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; line-height: 36px; text-align: center;
  border-radius: 50%; background: rgba(0,0,0,.3); color: #fff; font-size: 28px; cursor: pointer; user-select: none;
}
.discuss-wrap .hero-prev { left: 10px; }
.discuss-wrap .hero-next { right: 10px; }
.discuss-wrap .hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.discuss-wrap .hero-dot { width: 12px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.discuss-wrap .hero-dot.on { width: 24px; background: #fff; }

/* ---------- 分类胶囊：最新 / 闲聊 / 政策 / 装修 ---------- */
.capsule-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 16px; margin-top: 14px;
}
.capsule {
  flex-shrink: 0; padding: 7px 22px; font-size: 14px; color: #666;
  background: #f2f3f5; border-radius: 999px; cursor: pointer; user-select: none;
}
.capsule.on { color: #fff; background: var(--primary); font-weight: 600; }

/* ---------- 信息流 ---------- */
.feed { padding: 14px 0; }
.post-card {
  position: relative; display: block; background: #f5f6f8;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; color: var(--text); text-decoration: none;
}
.top-badge {
  position: absolute; top: 0; right: 0; background: var(--primary); color: #fff;
  font-size: 12px; padding: 3px 12px; border-radius: 0 14px 0 14px;
}
.post-row { display: flex; align-items: flex-start; gap: 14px; }
.post-left { flex: 1; min-width: 0; }
.post-titlerow { display: flex; align-items: center; flex-wrap: nowrap; }
.post-title {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: #1a1a1a;
  line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-title.big { font-size: 19px; margin: 0 0 10px; white-space: normal; }
.hot-tag {
  flex-shrink: 0; background: #ffe9d6; color: #ff6b00; font-size: 12px; font-weight: 600;
  line-height: 1; padding: 4px 8px; border-radius: 6px; margin-right: 8px;
}
.post-meta-row { display: flex; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.post-nick { flex-shrink: 1; min-width: 0; max-width: 220px; font-size: 13px; color: #999; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.meta-sep { flex-shrink: 0; margin: 0 8px; font-size: 12px; color: #c8c8c8; }
.post-meta { flex-shrink: 0; font-size: 13px; color: #999; }
.post-cover { width: 130px; height: 84px; border-radius: 10px; flex-shrink: 0; background: #edeff2; object-fit: cover; }
.post-cover-empty { background: linear-gradient(135deg,#e3ecec,#cfdede); }

/* ---------- 发帖 FAB ---------- */
.fab {
  position: fixed; right: 22px; bottom: 90px; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: #FF4444; color: #fff;
  box-shadow: 0 8px 20px rgba(255,68,68,.35); text-decoration: none;
}
.fab-plus { font-size: 26px; line-height: 1; font-weight: 300; }
.fab-text { font-size: 12px; margin-top: 1px; }

/* ---------- 帖子详情 ---------- */
.detail-card { background: var(--card); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e3ecec; flex-shrink: 0; }
.avatar.sm { width: 34px; height: 34px; }
.avatar-text { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 18px; font-weight: 600; }
.avatar.sm.avatar-text { font-size: 15px; }
.head-right { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nickname { font-size: 14px; font-weight: 600; color: #333; }
.time { font-size: 12px; color: #999; margin-top: 2px; }
.del-btn { color: #e5484d; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.post-body { font-size: 15px; line-height: 1.7; color: #2a2a2a; word-break: break-word; }
.post-body p { margin: 0 0 10px; }
.post-content { white-space: pre-wrap; }
.post-block-img { max-width: 100%; border-radius: 10px; margin: 6px 0; display: block; }
.post-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.post-grid-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; background: #e3ecec; cursor: pointer; }
.post-video { position: relative; display: inline-block; margin: 6px 0; cursor: pointer; }
.post-video-cover { width: 220px; max-width: 100%; border-radius: 10px; display: block; }
.post-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.post-actions { display: flex; gap: 24px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.act-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #666; cursor: pointer; user-select: none; }
.act-item.liked { color: #e5484d; }
.act-ic { font-size: 17px; }

.reply-head { font-size: 15px; font-weight: 600; color: #333; margin: 18px 0 10px; }
.reply-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.reply-body { flex: 1; min-width: 0; }
.reply-name { font-size: 13px; font-weight: 600; color: #444; margin-right: 8px; }
.reply-content { font-size: 14px; color: #333; white-space: pre-wrap; word-break: break-word; }
.reply-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.reply-grid-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; background: #e3ecec; cursor: pointer; }
.reply-time { display: block; font-size: 12px; color: #aaa; margin-top: 4px; }
.reply-empty { text-align: center; color: #999; padding: 30px 0; font-size: 14px; }

/* 回帖输入区 */
.reply-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 16px; }
.img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #e3ecec; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb-del { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; line-height: 18px; text-align: center; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; font-size: 13px; cursor: pointer; }
.thumb-add { display: flex; align-items: center; justify-content: center; border: 1px dashed #bbb; background: #fafafa; }
.thumb-add-ic { font-size: 24px; color: #aaa; }
.input-row { display: flex; align-items: flex-end; gap: 10px; }
.img-btn { flex-shrink: 0; padding: 9px 12px; background: #f2f3f5; color: #555; border-radius: 10px; font-size: 13px; cursor: pointer; }
.reply-input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; resize: none; font-family: inherit; }
.reply-input:focus { border-color: var(--primary-light); }
.send-btn { flex-shrink: 0; padding: 9px 18px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 14px; cursor: pointer; }
.send-btn:active { opacity: .85; }

/* ---------- 发帖表单 ---------- */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-top: 8px; }
.title-input { width: 100%; border: none; border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 18px; font-weight: 600; outline: none; }
.cat-bar { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.cat-cap { padding: 6px 18px; font-size: 13px; color: #666; background: #f2f3f5; border-radius: 999px; cursor: pointer; user-select: none; }
.cat-cap.on { color: #fff; background: var(--primary); font-weight: 600; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tb-btn { min-width: 38px; height: 34px; padding: 0 10px; border: 1px solid var(--border); background: #fff; border-radius: 8px; font-size: 14px; color: #444; cursor: pointer; }
.tb-btn:active { background: #f0f0f0; }
.editor {
  min-height: 220px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; line-height: 1.7; color: #2a2a2a; outline: none; word-break: break-word;
}
.editor:empty:before { content: attr(data-placeholder); color: #aaa; }
.editor img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.submit-bar { display: flex; gap: 12px; margin: 16px 0; }
.preview-btn, .submit-btn { flex: 1; padding: 13px 0; border: none; border-radius: 12px; font-size: 16px; cursor: pointer; }
.preview-btn { background: #e8f0f0; color: var(--primary); font-weight: 600; }
.submit-btn { background: var(--primary); color: #fff; font-weight: 600; }
.submit-btn:active { opacity: .85; }

/* 预览浮层内容 */
.pv-card { background: #fff; border-radius: 12px; padding: 16px 18px; max-height: 80vh; overflow: auto; }
.pv-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pv-card .post-body { font-size: 15px; line-height: 1.7; }

/* 弹层内的图片 / 视频 */
.modal-img img { max-width: 90vw; max-height: 82vh; border-radius: 10px; }
.modal-video video { max-width: 92vw; max-height: 82vh; border-radius: 10px; background: #000; }

/* =====================================================================
 * 首页（对齐小程序 pages/index 视觉）：白色圆角 hero 卡 + 胶囊筛选 + 双列瀑布流
 * ===================================================================== */

/* ---------- Hero 卡片：轮播 + 悬浮搜索 + 地图入口 ---------- */
.hp-hero { margin: 16px 0 0; }

.hp-banner {
  position: relative;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #0d3d3d;
  box-shadow: var(--shadow);
}
.hp-banner .hp-slides { position: absolute; inset: 0; }
.hp-banner .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s; background-size: cover; background-position: center;
}
.hp-banner .slide.on { opacity: 1; }
.hp-banner .slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 6% 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; font-size: 18px; font-weight: 600;
}

/* 轮播指示点（位于搜索框上方） */
.hp-dots { position: absolute; right: 18px; bottom: 64px; display: flex; gap: 6px; z-index: 7; }
.hp-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.hp-dots i.on { background: #fff; }

/* 悬浮搜索框（叠加在轮播图底部） */
.hp-search { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 8; display: flex; justify-content: center; }
.hp-search .search-box {
  display: flex; width: min(640px, 92%);
  background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.hp-search .search-input-wrap { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.hp-search .search-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a92' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
}
.hp-search .search-input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 13px 0; font-size: 15px; color: var(--text);
}
.hp-search .search-btn {
  border: none; background: var(--primary); color: #fff;
  padding: 0 28px; font-size: 15px;
}
.hp-search .search-btn:hover { background: var(--primary-light); }

/* 地图找房入口 */
.hp-map-tile {
  position: relative; display: flex; align-items: center; gap: 8px;
  margin-top: 12px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; font-size: 15px; color: var(--text);
}
.hp-map-tile:hover { box-shadow: 0 6px 18px rgba(13,80,80,.13); }
.hp-map-tile .map-ic { font-size: 18px; }
.hp-map-tile .arrow { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }

/* ---------- 筛选卡片：租/售切换 + 筛选胶囊 ---------- */
.hp-filter {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; margin: 16px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.hp-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hp-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 20px; padding: 8px 16px; font-size: 14px; cursor: pointer;
}
a.hp-pill:hover { border-color: var(--primary-light); color: var(--primary); }
select.hp-pill {
  appearance: none; -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
.hp-pill.more-filter { color: var(--primary); border-color: var(--primary-light); }

/* ---------- 双列瀑布流房源（对齐小程序首页 waterfall） ---------- */
.hp-waterfall { column-count: 2; column-gap: 16px; margin: 18px 0 30px; }
.hp-waterfall > .house-card {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: inline-block; width: 100%; margin-bottom: 16px;
}

/* ---------- 首页响应式 ---------- */
@media (max-width: 860px) {
  .hp-banner { height: 220px; }
  .hp-banner .slide .cap { font-size: 16px; }
  .hp-search .search-btn { padding: 0 20px; }
  .hp-waterfall { column-count: 2; }
  /* 卡片随视口收缩：窄屏下缩小内边距与字号 */
  .hp-waterfall > .house-card .info { padding: 10px 12px 12px; }
  .hp-waterfall > .house-card .t { font-size: 14px; min-height: 2.8em; }
  .hp-waterfall > .house-card .price { font-size: 17px; }
  .hp-waterfall > .house-card .tags i { font-size: 11px; padding: 2px 6px; }
}
/* 窄屏（手机 / 窄窗口）：瀑布流降为单列，卡片满宽自适应 */
@media (max-width: 640px) {
  .hp-waterfall { column-count: 1; }
}
@media (max-width: 480px) {
  .hp-banner { height: 190px; }
  .hp-dots { bottom: 70px; }
  .hp-search .search-box { width: 94%; }
  .hp-search .search-input-wrap { padding: 0 14px; }
  .hp-search .search-btn { padding: 0 16px; }
  .hp-waterfall { column-gap: 12px; }
  .hp-waterfall > .house-card { margin-bottom: 12px; }
  .panel { padding: 14px; }
  .hp-pills { gap: 8px; }
  .hp-pill { padding: 7px 12px; font-size: 13px; }
}
