/* ============================================================
   来得好 · 官方网站全局样式（响应式：电脑 / 手机自动适配）
   主色 #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; }

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  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: 4px; flex: 1; }
.main-nav a {
  padding: 7px 14px; border-radius: 20px; color: var(--text); font-size: 15px; white-space: nowrap;
}
.main-nav a:hover { background: #eef5f5; color: var(--primary); }
.main-nav a.active { background: var(--primary); color: #fff; }
.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; }

/* ===================== 布局骨架（列表/详情双栏） ===================== */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; margin: 20px 0 40px; }
.side-panel { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.panel h3 { font-size: 16px; margin-bottom: 12px; color: var(--primary); }
.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; }
.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 .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; }

/* ================= 双行吸顶容器：图标导航 + 筛选/页签行 一起固定在页头下 ================= */
.sticky-head { position: sticky; top: 60px; z-index: 80; background: var(--bg); }
.sticky-head .filter-bar { margin: 10px 0 0; border-radius: 0 0 16px 16px; }
.sticky-head .filter-bar + *, .sticky-head::after { content: ""; display: block; height: 10px; }
/* 只有页签（无筛选控件）的行：其他页面通用的 最新/租房/买房 */
.filter-tabs-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
