/* 绍津招租 · 设计系统（仿贝壳：绿色品牌 + 红色价格 + 卡片流） */
:root {
  --brand: #00ae57;
  --brand-dark: #00914a;
  --brand-light: #e6f7ee;
  --price: #ff4b33;
  --warn: #ff8f1f;
  --info: #2f6bff;
  --text: #222;
  --text-2: #666;
  --text-3: #999;
  --line: #ececec;
  --bg: #f5f6f7;
  --card: #fff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-up: 0 6px 20px rgba(0, 0, 0, .1);
  --tabbar-h: 54px;
  --header-h: 56px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text); font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--text-3); }
.strong { font-weight: 600; }
.price { color: var(--price); font-weight: 700; }
.price-lg { font-size: 26px; }
.tag { display: inline-block; padding: 1px 7px; margin: 0 6px 6px 0; font-size: 12px; color: var(--text-2); background: #f4f5f6; border-radius: 3px; }
.tag-green { color: var(--brand); background: var(--brand-light); }
.tag-blue { color: var(--info); background: #eaf0ff; }
.tag-warn { color: #b26500; background: #fff3e0; }
.tag-red { color: var(--price); background: #ffefec; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellip-2, .ellip-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ellip-2 { -webkit-line-clamp: 2; } .ellip-3 { -webkit-line-clamp: 3; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.gap6 { gap: 6px; } .gap12 { gap: 12px; }
.f12 { font-size: 12px; } .f13 { font-size: 13px; } .f16 { font-size: 16px; } .f18 { font-size: 18px; }
.center { text-align: center; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1200px; margin: 0 auto; height: var(--header-h); display: flex; align-items: center; gap: 18px; padding: 0 14px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-logo { font-size: 20px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
.brand-accent { color: var(--brand); }
.brand-sub { font-size: 11px; color: var(--text-3); }
.mainnav { display: none; gap: 4px; margin-left: 10px; }
.mainnav a { padding: 6px 12px; border-radius: 20px; font-size: 15px; color: var(--text-2); }
.mainnav a.on { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.city-pill { font-size: 13px; color: var(--text-2); padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; }
.role-switch { display: flex; background: #f1f2f3; border-radius: 16px; padding: 2px; }
.role-switch button { border: 0; background: transparent; padding: 4px 12px; border-radius: 14px; font-size: 13px; color: var(--text-2); }
.role-switch button.on { background: #fff; color: var(--brand-dark); font-weight: 600; box-shadow: var(--shadow); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 20px; background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.topsearch { max-width: 1200px; margin: 0 auto; padding: 0 14px 10px; display: none; }
.topsearch.on { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 18px; border: 1px solid transparent; font-size: 14px; font-weight: 500; background: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:active { background: var(--brand-dark); }
.btn-ghost { border-color: var(--brand); color: var(--brand-dark); }
.btn-gray { background: #f1f2f3; color: var(--text-2); }
.btn-danger { border-color: #ffc9c1; color: var(--price); background: #fff5f3; }
.btn-block { width: 100%; height: 44px; border-radius: 8px; font-size: 16px; }
.btn-sm { height: 28px; padding: 0 11px; font-size: 13px; border-radius: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- layout ---------- */
.view { max-width: 1200px; margin: 0 auto; padding: 12px 14px 28px; min-height: 60vh; }
.section { margin-top: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.section-head .more { font-size: 13px; color: var(--text-3); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv b { font-weight: 600; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: #fff; color: var(--text-2); padding: 7px 14px; border-radius: 16px; font-size: 14px; box-shadow: var(--shadow); }
.tabs button.on { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- hero / home ---------- */
.hero { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(120deg, #00ae57, #00c778 55%, #4fd79a); color: #fff; padding: 22px 18px; }
.hero h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: 1px; }
.hero p { margin: 0 0 16px; opacity: .92; font-size: 13px; }
.searchbox { display: flex; align-items: center; background: #fff; border-radius: 22px; padding: 4px 4px 4px 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.searchbox input { flex: 1; border: 0; outline: 0; height: 36px; font-size: 15px; color: var(--text); }
.searchbox button { border: 0; background: var(--brand); color: #fff; height: 34px; padding: 0 18px; border-radius: 17px; }
.hero-stats { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; opacity: .95; }
.hero-stats b { font-size: 17px; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat { background: #fff; border-radius: 10px; padding: 12px 4px; text-align: center; box-shadow: var(--shadow); font-size: 13px; }
.cat .dot { width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--brand); }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.entry { background: #fff; border-radius: 10px; padding: 14px 10px; box-shadow: var(--shadow); }
.entry .ic { font-size: 20px; }
.entry b { display: block; margin-top: 6px; font-size: 14px; }
.entry span { font-size: 11px; color: var(--text-3); }
.banner { position: relative; border-radius: 12px; overflow: hidden; height: 140px; box-shadow: var(--shadow); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }

/* ---------- house cards ---------- */
.houses { display: grid; gap: 12px; grid-template-columns: 1fr; }
.hcard { display: flex; gap: 12px; background: #fff; border-radius: 10px; padding: 10px; box-shadow: var(--shadow); }
.hcard .ph { position: relative; flex: none; width: 116px; height: 88px; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.hcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.hcard .badge { position: absolute; top: 6px; left: 6px; }
.hcard .badge i { font-style: normal; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; }
.hcard h3 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.hcard .meta { font-size: 12px; color: var(--text-2); }
.hcard .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 7px; }
.hcard .pnum { font-size: 18px; color: var(--price); font-weight: 700; }
.hcard .pnum small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.hv { display: block; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.hv .ph { position: relative; height: 150px; background: #f0f0f0; }
.hv .ph img { width: 100%; height: 100%; object-fit: cover; }
.hv .body { padding: 9px 11px 12px; }
.hv h3 { margin: 0 0 5px; font-size: 15px; }
.list-row { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.list-row .ph { flex: none; width: 92px; height: 70px; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.list-row .ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- filters ---------- */
.filterbar { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 8px 10px; margin-bottom: 12px; }
.filterbar .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filterbar .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; color: var(--text-2); padding: 5px 12px; border-radius: 15px; font-size: 13px; }
.chip.on { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); font-weight: 600; }
.fgroup { padding: 10px 0; border-top: 1px solid var(--line); }
.fgroup h4 { margin: 0 0 8px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.fpanel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.fpanel.on { max-height: 60vh; overflow: auto; }

/* ---------- forms ---------- */
.form { background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.fi { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fi > label { flex: none; width: 84px; font-size: 14px; color: var(--text-2); padding-top: 7px; }
.fi > label i { color: var(--price); font-style: normal; margin-right: 2px; }
.fi .ctl { flex: 1; min-width: 0; }
.fi input[type=text], .fi input[type=tel], .fi input[type=password], .fi input[type=number], .fi input[type=date], .fi select, .fi textarea {
  width: 100%; border: 0; outline: 0; background: #f7f8f9; border-radius: 6px; padding: 8px 10px; font-size: 15px;
}
.fi textarea { min-height: 84px; resize: vertical; }
.fi .hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.fi-col { flex-direction: column; }
.fi-col > label { width: auto; padding-top: 0; }
.uploader { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.uploader .uitem { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #f2f3f4; }
.uploader .uitem img { width: 100%; height: 100%; object-fit: cover; }
.uploader .uitem .del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; line-height: 1; }
.uploader .add { display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed #ccc; border-radius: 6px; color: var(--text-3); font-size: 12px; text-align: center; background: #fafbfc; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: #fff; color: var(--text-2); border-radius: 6px; padding: 6px 12px; font-size: 13px; }
.seg button.on { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--text-3); }
.steps i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #e6e7e8; color: #888; display: grid; place-items: center; }
.steps .on i { background: var(--brand); color: #fff; }
.steps s { flex: 1; height: 1px; background: var(--line); text-decoration: none; }

/* ---------- detail ---------- */
.gallery { position: relative; height: 250px; background: #111; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.gallery .nav { position: absolute; top: 0; bottom: 0; width: 38%; border: 0; background: transparent; color: #fff; font-size: 26px; opacity: .35; }
.gallery .nav.l { left: 0; } .gallery .nav.r { right: 0; }
.title-block { background: #fff; border-radius: 10px; padding: 14px; box-shadow: var(--shadow); margin-top: 12px; }
.title-block h1 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; margin-top: 12px; }
.spec { font-size: 13px; }
.spec span { display: block; color: var(--text-3); font-size: 12px; }
.map-box { height: 160px; border-radius: 10px; background: #e8ece9 center/cover; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); }
.actionbar { position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 55; display: flex; gap: 10px; align-items: center; background: #fff; padding: 8px 14px; border-top: 1px solid var(--line); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.owner-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.owner-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #f1f2f3; }
.icon-btn { border: 0; background: transparent; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--text-2); padding: 0 6px; }
.icon-btn .g { font-size: 18px; line-height: 1; }
.icon-btn.on .g { color: var(--price); }

/* ---------- misc ---------- */
.empty { padding: 46px 16px; text-align: center; color: var(--text-3); }
.empty .big { font-size: 40px; }
.empty p { margin: 8px 0 14px; }
.skeleton { background: linear-gradient(90deg, #f2f3f4 25%, #e9eaeb 37%, #f2f3f4 63%); background-size: 400% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 10px; padding: 12px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--text-3); }
.stat-green { background: linear-gradient(135deg, #00ae57, #35c37f); color: #fff; }
.stat-green span { color: rgba(255, 255, 255, .85); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-top: 10px; }
.bars div { flex: 1; background: var(--brand-light); border-radius: 3px 3px 0 0; position: relative; min-height: 3px; }
.bars div b { position: absolute; bottom: -17px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--text-3); font-weight: 400; }
.bars div i { position: absolute; top: -15px; left: 0; right: 0; text-align: center; font-size: 10px; font-style: normal; }
.bars div.hi { background: var(--brand); }
.list-item { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .arrow { color: #ccc; margin-left: auto; }
.badge-dot { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--price); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.stars { color: var(--warn); letter-spacing: 1px; font-size: 13px; }
.timeline { position: relative; padding-left: 18px; }
.timeline:before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item:before { content: ""; position: absolute; left: -17px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.notice { background: #fff8e6; color: #8a6100; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.notice-red { background: #ffefec; color: #a32b1a; }
.notice-green { background: var(--brand-light); color: var(--brand-dark); }
.contract-box { background: #fff; border-radius: 10px; padding: 16px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.9; white-space: pre-wrap; max-height: 46vh; overflow: auto; }
.chat-list { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.msg { max-width: 76%; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); word-break: break-word; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; }
.msg .who { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.msg.mine .who { color: rgba(255, 255, 255, .8); }
.chat-box { background: #f2f3f4; border-radius: 10px; min-height: 320px; max-height: 60vh; overflow: auto; }
.chat-input { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; position: sticky; bottom: 0; }
.chat-input input { flex: 1; border: 0; background: #f2f3f4; border-radius: 18px; padding: 8px 14px; outline: 0; }

/* ---------- toast / modal ---------- */
.toasts { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(0, 0, 0, .8); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 14px; max-width: 82vw; animation: tin .18s ease; }
.toast-ok { background: rgba(0, 150, 80, .93); } .toast-err { background: rgba(200, 40, 25, .93); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.modal-root, .sheet-root { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 16px; }
.sheet-root { align-items: end; padding: 0; }
.modal { background: #fff; border-radius: 12px; width: min(460px, 92vw); max-height: 84vh; overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.modal-head button { border: 0; background: transparent; font-size: 20px; color: var(--text-3); }
.modal-body { padding: 16px; }
.modal-foot { display: flex; gap: 10px; padding: 12px 16px 16px; }
.modal-foot .btn { flex: 1; height: 42px; border-radius: 8px; }
.page-loading { position: fixed; inset: 0; display: grid; place-items: center; z-index: 120; background: rgba(255, 255, 255, .25); }
.spin { width: 26px; height: 26px; border: 3px solid var(--brand-light); border-top-color: var(--brand); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- tabbar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: flex; }
.tabbar a { flex: 1; display: grid; place-items: center; gap: 1px; font-size: 11px; color: var(--text-3); position: relative; }
.tabbar a .g { font-size: 19px; line-height: 1; }
.tabbar a.on { color: var(--brand-dark); font-weight: 600; }
.tabbar a .dot { position: absolute; top: 4px; right: 26%; width: 7px; height: 7px; border-radius: 50%; background: var(--price); }
.tabbar .fab { flex: none; width: 62px; }
.tabbar .fab .g { width: 44px; height: 44px; margin-top: -16px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 12px rgba(0, 174, 87, .4); }

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 22px 14px 30px; }
.footer-cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
.footer h4 { margin: 0 0 8px; font-size: 14px; }
.footer p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.9; }
.footer a { color: var(--brand-dark); }
.footer-copy { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .houses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(5, 1fr); }
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .mainnav { display: flex; }
  .houses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { height: 380px; }
  .view { padding-top: 16px; }
  .layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
  .actionbar { position: static; border-top: 0; padding: 0; background: transparent; }
}
.split { display: grid; gap: 12px; }
@media (min-width: 960px) { .split { grid-template-columns: 260px 1fr; align-items: start; } }
.sidenav { background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; position: sticky; top: calc(var(--header-h) + 12px); }
.sidenav a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.sidenav a:last-child { border-bottom: 0; }
.sidenav a.on { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.sidenav h4 { margin: 0; padding: 13px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 13px; }

body.no-scroll{overflow:hidden}

/* ---------- SVG 图标系统 ---------- */
.icv { display: inline-block; vertical-align: -0.18em; flex: none; }
.stars { display: inline-flex; align-items: center; gap: 1px; vertical-align: -0.18em; }
.st-on { color: #ffb400; }
.st-off { color: #dcdcdc; }
.unread-dot { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--price); vertical-align: 2px; }
.gate-ic { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.tabbar a .g { display: grid; place-items: center; }
.empty .icv { color: #d3d8dd; }
.inline-ic { display: inline-flex; align-items: center; gap: 4px; vertical-align: -0.16em; }

/* ---------- 首页：贝壳式落地页 ---------- */
body.landing { background: #fff; }
body.landing .view { max-width: none; padding: 0 0 12px; min-height: 0; }
body.landing .topbar { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; }
body.landing:not(.nav-solid) .topbar { color: #fff; }
body.landing:not(.nav-solid) .brand-logo { color: #fff; }
body.landing:not(.nav-solid) .brand-accent { color: #6cf0b0; }
body.landing:not(.nav-solid) .brand-sub { color: rgba(255, 255, 255, .7); }
body.landing:not(.nav-solid) .mainnav a { color: rgba(255, 255, 255, .9); }
body.landing:not(.nav-solid) .mainnav a.on { background: rgba(255, 255, 255, .2); color: #fff; }
body.landing:not(.nav-solid) .city-pill { color: #fff; border-color: rgba(255, 255, 255, .45); }
body.landing:not(.nav-solid) .btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(0, 0, 0, .12); }
body.landing:not(.nav-solid) .btn-primary { background: #fff; color: var(--brand-dark); }
body.landing:not(.nav-solid) .role-switch { background: rgba(255, 255, 255, .22); }
body.landing:not(.nav-solid) .role-switch button { color: rgba(255, 255, 255, .9); }
body.landing:not(.nav-solid) .role-switch button.on { color: var(--brand-dark); background: #fff; }
body.landing.nav-solid .topbar { position: fixed; background: #fff; border-bottom: 1px solid var(--line); }
body.landing.nav-solid { padding-top: var(--header-h); }

.lh { position: relative; padding: calc(var(--header-h) + 28px) 14px 30px; background: #14251c url('/img/hero.svg') center right / cover no-repeat; color: #fff; overflow: hidden; }
.lh::before { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8, 22, 15, .78) 0%, rgba(8, 22, 15, .5) 42%, rgba(8, 22, 15, .1) 76%); }
.lh-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.lh-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 3px; color: rgba(255, 255, 255, .86); }
.lh-kicker::before { content: ''; width: 26px; height: 2px; background: var(--brand); }
.lh-title { margin: 12px 0 6px; font-size: 30px; line-height: 1.24; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0, 0, 0, .28); }
.lh-title em { font-style: normal; color: #7bf2b7; }
.lh-sub { margin: 0 0 24px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.lh-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lh-tabs::-webkit-scrollbar { display: none; }
.lh-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .9); font-size: 15px; }
.lh-tab.on { background: #fff; color: var(--text); font-weight: 700; }
.lh-tab.on::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.lh-search { display: flex; align-items: center; margin-top: 10px; background: #fff; border-radius: 6px; padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
.lh-search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.lh-search input::placeholder { color: #b6bcc2; }
.lh-map { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: none; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.lh-btn { flex: none; width: 66px; height: 44px; border: 0; border-radius: 4px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.lh-btn:active { background: var(--brand-dark); }
.lh-hint { margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.lh-counters { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.lh-counters b { margin: 0 3px; font-size: 19px; font-weight: 800; color: #fff; }

.lh-body { max-width: 1200px; margin: 0 auto; padding: 6px 14px 0; }
.sec-lg { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 16px; }
.sec-lg h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.sec-lg .sub { font-size: 13px; color: var(--text-3); }
.sec-lg .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--info); white-space: nowrap; }
.hv .ph .badge, .hcard .ph .badge { position: absolute; top: 0; left: 0; }
.hv .ph .badge i, .hcard .ph .badge i { display: inline-block; font-style: normal; background: var(--price); color: #fff; font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 10px 0 10px 0; }
.sec-houses .houses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lh-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lh-panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px 14px 8px; }
.lh-split { display: grid; gap: 16px; }

@media (min-width: 700px) {
  .sec-houses .houses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lh-cats { grid-template-columns: repeat(10, 1fr); }
}
@media (min-width: 960px) {
  .lh { padding: calc(var(--header-h) + 62px) 24px 62px; }
  .lh-title { font-size: 46px; letter-spacing: 2px; }
  .lh-sub { font-size: 16px; margin-bottom: 34px; }
  .sec-lg h2 { font-size: 28px; }
  .sec-houses .houses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .houses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lh-split { grid-template-columns: 1fr 340px; align-items: start; }
}
@media (min-width: 1180px) {
  .sec-houses .houses { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1240px) { .houses { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lh-cats .cat { padding: 10px 2px 12px; }
.lh-panel .entry { background: #fafbfb; box-shadow: none; border: 1px solid var(--line); text-align: center; border-radius: 8px; }
.lh-panel .entry:hover { border-color: var(--brand); background: var(--brand-light); }
.lh-panel .entry .ic { display: flex; justify-content: center; color: var(--brand); }
.lh-panel .entry span { display: block; }
.footer-cta { background: linear-gradient(100deg, #f2fbf6, #eaf7f0); border: 1px solid #dcf1e4; }
.sec-houses .houses { margin-bottom: 4px; }
.sec-houses:empty { display: none; }
.lh-body > .card .list-row { padding-left: 0; padding-right: 0; }

/* ---------- 登录页：扫码登录 ---------- */
.login-wrap { display: grid; gap: 14px; max-width: 460px; margin: 12px auto; }
.qr-card { display: none; }
@media (min-width: 960px) {
  .login-wrap { max-width: 860px; grid-template-columns: 1fr 320px; align-items: start; }
  .qr-card { display: block; }
}
.qr-box { position: relative; width: 196px; height: 196px; margin: 6px auto 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.qr-box img { display: block; }
.qr-mask { position: absolute; inset: 0; background: rgba(255, 255, 255, .94); color: var(--text); font-size: 13px; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; line-height: 1.7; }
.qr-mask[hidden] { display: none; }
.qr-tip { margin: 0 0 10px; font-size: 13px; color: var(--text-2); text-align: center; }
.qr-steps { margin: 14px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-3); line-height: 2; }
.qr-card .btn-sm { display: flex; margin: 0 auto; }
