/* =============================================================
   创富港官网 · 全站样式
   设计基线：深蓝（品牌）+ 暖橙（转化）+ 大留白
   写法：移动优先，min-width 逐级增强（768 / 1024 / 1440）
   ============================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #0f1b2a;
  --ink-2: #3f4e60;
  --ink-3: #7b8798;
  --brand: #0e4c8a;
  --brand-dark: #08305a;
  --brand-soft: #eaf2fb;
  --cta: #e8622a;
  --cta-dark: #ce4f1b;
  --gold: #c79a4b;
  --line: #e3e9f1;
  --line-2: #cfd9e5;
  --bg: #f5f7fa;
  --white: #fff;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --sh-sm: 0 1px 2px rgba(15, 27, 42, .05);
  --sh: 0 1px 2px rgba(15, 27, 42, .04), 0 10px 28px rgba(15, 27, 42, .07);

  --max: 1200px;
  --pad: 16px;
  --hd: 60px;
  --tabbar: 60px;
}

@media (min-width: 768px) { :root { --pad: 24px; } }
@media (min-width: 1024px) { :root { --pad: 32px; --hd: 72px; } }

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* 移动端底部固定条占位 */
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0 0 .8em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. 通用区块 ---------- */
.section { padding: clamp(44px, 6.5vw, 80px) 0; }
.section--tight { padding: clamp(32px, 4.5vw, 56px) 0; }
.section--white { background: var(--white); }
.section--soft { background: var(--brand-soft); }

.sec-head { margin-bottom: clamp(20px, 3vw, 32px); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }

.sec-title { font-size: clamp(21px, 3vw, 30px); }
.sec-desc { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 56ch; }

.link-more { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.link-more::after { content: " →"; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 6px 16px rgba(232, 98, 42, .24); }
.btn--cta:hover { background: var(--cta-dark); }

.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); }

.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .12); }

.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn--lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- 5. 头部导航 ---------- */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd__in { display: flex; align-items: center; gap: 10px; height: var(--hd); }

.logo { display: flex; align-items: center; gap: 9px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -.5px;
}
.logo__txt { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.logo__sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); letter-spacing: .08em; margin-top: -2px; }

.nav { display: none; }
.hd__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hd__tel { display: none; }

.burger {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (min-width: 1024px) {
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
  .nav a { padding: 9px 14px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); font-weight: 500; }
  .nav a:hover { background: var(--brand-soft); color: var(--brand); }
  .nav a.is-on { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
  .hd__tel {
    display: flex; align-items: center; gap: 8px; padding-right: 14px; border-right: 1px solid var(--line);
    font-weight: 700; font-size: 17px; color: var(--brand); font-variant-numeric: tabular-nums;
  }
  .hd__tel small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); line-height: 1.2; }
}

/* 城市切换 */
.city-switch { position: relative; }
.city-switch__btn {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: #fff;
}
.city-switch__btn::after { content: ""; border: 4px solid transparent; border-top-color: var(--ink-3); margin-top: 3px; }
.city-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh);
  padding: 8px; min-width: 220px; display: none;
}
.city-switch.is-open .city-switch__menu { display: block; }
.city-switch__menu a { display: flex; justify-content: space-between; gap: 20px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; }
.city-switch__menu a:hover { background: var(--brand-soft); color: var(--brand); }
.city-switch__menu span { color: var(--ink-3); font-size: 12.5px; }

/* 抽屉（移动端） */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; display: none;
}
.drawer.is-open { display: block; }
.drawer__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(9, 20, 34, .45); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
  background: #fff; padding: 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__panel a.dlink {
  padding: 13px 12px; border-radius: var(--r-sm); font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line);
}
.drawer__panel a.dlink:last-of-type { border-bottom: 0; }
.drawer__foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }

/* ---------- 6. 首屏 ---------- */
.hero { position: relative; background: var(--brand-dark); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(100deg, rgba(4, 24, 46, .93) 0%, rgba(6, 36, 68, .84) 40%, rgba(9, 54, 100, .52) 72%, rgba(12, 66, 120, .3) 100%),
    linear-gradient(0deg, rgba(4, 22, 42, .55) 0%, rgba(4, 22, 42, 0) 62%);
}
.hero__in { position: relative; padding: clamp(44px, 8vw, 92px) var(--pad) clamp(28px, 5vw, 56px); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .1em;
  color: #ffd9a3; border: 1px solid rgba(255, 217, 163, .45); border-radius: 999px; padding: 5px 14px;
}
.hero h1 {
  margin: 18px 0 0; font-size: clamp(28px, 6.2vw, 52px); line-height: 1.16; font-weight: 800; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: #ffc98a; }
.hero__desc { margin: 16px 0 0; max-width: 44ch; color: rgba(255, 255, 255, .8); font-size: clamp(14px, 1.7vw, 17px); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.hero__tags li { display: flex; align-items: center; gap: 6px; }
.hero__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* 找房搜索条 */
.searchbar {
  position: relative; margin-top: 26px; background: #fff; border-radius: var(--r-lg);
  padding: 10px; box-shadow: 0 18px 40px rgba(4, 24, 46, .28);
  display: grid; gap: 8px;
}
.searchbar__field { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: #f7f9fc; }
.searchbar__field label { font-size: 11.5px; color: var(--ink-3); display: block; line-height: 1.3; }
.searchbar__field select, .searchbar__field input {
  width: 100%; border: 0; background: transparent; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 0; outline: none; appearance: none;
}
.searchbar__field input::placeholder { font-weight: 400; color: var(--ink-3); }
.searchbar .btn { height: 48px; }

@media (min-width: 768px) {
  .searchbar { grid-template-columns: 1fr 1fr 1fr auto; align-items: center; padding: 12px; }
}
@media (min-width: 1024px) {
  .hero__in { padding: 110px 0 72px; }
  .searchbar { max-width: 900px; }
}

/* ---------- 7. 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.stats li { background: #fff; padding: 18px 16px; }
.stats b { display: block; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 8. 房源卡片 ---------- */
.pgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1440px) { .pgrid--wide { grid-template-columns: repeat(4, 1fr); } }

.pcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: .2s ease;
}
.pcard:hover { border-color: transparent; box-shadow: var(--sh); transform: translateY(-3px); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: #eef2f7; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badge {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 6px;
  background: rgba(232, 98, 42, .95); color: #fff; font-size: 11.5px; font-weight: 600;
}
.pcard__badge--blue { background: rgba(14, 76, 138, .92); }
.pcard__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__name { font-size: 16px; font-weight: 700; }
.pcard__loc { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.price { color: var(--cta); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price em { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.pcard__more { font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------- 9. 标签 ---------- */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 500;
}
.tag--gold { background: #fdf5e6; color: #9a7421; }
.tag--gray { background: #f2f4f8; color: var(--ink-2); }

/* ---------- 10. 房型入口 ---------- */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); transition: .2s ease;
}
.type:hover { border-color: var(--brand); box-shadow: var(--sh); }
.type b { font-size: 15.5px; }
.type span { font-size: 12.5px; color: var(--ink-3); }
.type i { font-style: normal; font-size: 12px; color: var(--cta); font-weight: 700; }
@media (min-width: 768px) { .types { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 11. 优势宫格 ---------- */
.feats { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.feat { background: #fff; padding: 20px 18px; display: flex; gap: 12px; }
.feat__icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.feat b { display: block; font-size: 15px; margin-bottom: 4px; }
.feat p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
@media (min-width: 768px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 12. 城市卡片 ---------- */
.cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1024px) { .cities { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.citycard { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; }
.citycard img { width: 100%; height: 100%; object-fit: cover; }
.citycard::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(8, 48, 90, .1) 30%, rgba(8, 30, 52, .82) 100%);
}
.citycard__txt { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.citycard__txt b { font-size: 17px; }
.citycard__txt span { display: block; font-size: 12px; opacity: .78; }

/* ---------- 13. 客户评价 ---------- */
.quotes { display: grid; gap: 14px; }
@media (min-width: 1024px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.quote__mark { font-size: 30px; line-height: 1; color: var(--gold); font-family: Georgia, serif; }
.quote p { font-size: 14px; color: var(--ink-2); margin: 6px 0 16px; }
.quote__who { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.quote__who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.quote__who b { display: block; font-size: 13.5px; }
.quote__who span { font-size: 12px; color: var(--ink-3); }

/* ---------- 14. FAQ 折叠 ---------- */
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qa + .qa { margin-top: 10px; }
.qa summary {
  display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px; cursor: pointer;
  font-size: 15px; font-weight: 600; list-style: none; position: relative; padding-right: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 16px; top: 13px; width: 22px; height: 22px;
  display: grid; place-items: center; color: var(--brand); font-size: 19px; font-weight: 400;
  border: 1px solid var(--line); border-radius: 50%; transition: .2s;
}
.qa[open] summary::after { content: "−"; background: var(--brand); color: #fff; border-color: var(--brand); }
.qa[open] summary { color: var(--brand); }
.qa__a { padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); }
.qa__a p:last-child { margin-bottom: 0; }
.qa__a ul { list-style: disc; padding-left: 1.2em; }
.qa__a li { margin: 4px 0; }

/* ---------- 15. 文章卡片 ---------- */
.agrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .agrid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .agrid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.acard:hover { box-shadow: var(--sh); border-color: transparent; }
.acard__media { aspect-ratio: 16 / 9; background: #eef2f7; overflow: hidden; }
.acard__media img { width: 100%; height: 100%; object-fit: cover; }
.acard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acard__meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.acard h3 { font-size: 16px; line-height: 1.45; }
.acard p { font-size: 13px; color: var(--ink-3); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 16. 底部转化条 ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--brand-dark); }
.cta-band img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta-band__in { position: relative; padding: clamp(36px, 6vw, 64px) 0; display: grid; gap: 24px; }
.cta-band h2 { font-size: clamp(21px, 3.2vw, 30px); }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 8px 0 0; font-size: 14.5px; }
.cta-band__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-band__qr { display: flex; align-items: center; gap: 12px; }
.cta-band__qr img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; }
.cta-band__qr span { font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
@media (min-width: 1024px) {
  .cta-band__in { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- 17. 页脚 ---------- */
.ft { background: #0a1b2e; color: rgba(255, 255, 255, .66); font-size: 13.5px; }
.ft__in { padding: 40px 0 24px; display: grid; gap: 28px; }
.ft__brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 18px; font-weight: 800; }
.ft__brand .logo__mark { background: rgba(255, 255, 255, .14); }
.ft h4 { color: #fff; font-size: 13px; letter-spacing: .06em; margin-bottom: 12px; font-weight: 600; }
.ft a { display: block; padding: 4px 0; }
.ft a:hover { color: #fff; }
.ft__qr { background: #fff; padding: 6px; border-radius: 8px; width: 96px; }
.ft__qr img { width: 100%; height: auto; }
.ft__tel { color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ft__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding: 16px 0 24px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: rgba(255, 255, 255, .45);
}
@media (min-width: 768px) { .ft__in { grid-template-columns: repeat(4, 1fr); gap: 24px; } .ft__in > :first-child { grid-column: span 2; } }
@media (min-width: 1024px) { .ft__in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ft__in > :first-child { grid-column: auto; } }

/* ---------- 18. 悬浮工具条（桌面） ---------- */
.rail { display: none; }
@media (min-width: 1024px) {
  .rail {
    position: fixed; right: 18px; bottom: 28px; z-index: 55; display: flex; flex-direction: column; gap: 8px;
  }
  .rail button, .rail a {
    width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 10.5px; color: var(--ink-2); transition: .18s;
  }
  .rail button:hover, .rail a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
  .rail .is-cta { background: var(--cta); border-color: var(--cta); color: #fff; }
  .rail .is-cta:hover { background: var(--cta-dark); }
  .rail svg { width: 19px; height: 19px; }
}

/* ---------- 19. 移动端底部固定条 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(8px);
}
.tabbar a, .tabbar button {
  height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--ink-2); border-right: 1px solid var(--line);
}
.tabbar a:last-child { border-right: 0; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .is-cta { background: var(--cta); color: #fff; font-weight: 600; }
.tabbar .is-cta svg { width: 21px; height: 21px; }
@media (min-width: 1024px) { .tabbar { display: none; } }

/* ---------- 20. 二维码弹层 ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: none; }
.modal.is-open { display: grid; place-items: center; }
.modal__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(9, 20, 34, .55); }
.modal__box {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 26px 24px 22px;
  width: min(88vw, 320px); text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; font-size: 20px; color: var(--ink-3); line-height: 1; }
.modal__box img { width: 190px; height: 190px; margin: 12px auto; border: 1px solid var(--line); border-radius: 10px; }
.modal__box b { display: block; font-size: 16px; margin-bottom: 4px; }
.modal__box p { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.6; }

/* ---------- 21. 面包屑 / 页头 ---------- */
.crumbs { padding: 14px 0 0; font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--brand); }
.crumbs span.sep { opacity: .5; }

.pagehead { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.pagehead h1 { font-size: clamp(22px, 3.4vw, 32px); }
.pagehead p { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; }

/* ---------- 22. 筛选栏 ---------- */
.filterbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0; position: sticky; top: var(--hd); z-index: 40; }
.filterbar__top { display: flex; align-items: center; gap: 10px; }
.filterbar__toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600;
}
.filterbar__body { display: none; margin-top: 12px; }
.filterbar.is-open .filterbar__body { display: grid; gap: 12px; }
.filterbar__count { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.fgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fgroup > b { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-right: 2px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); background: #fff; display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip--sel { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
@media (min-width: 1024px) {
  .filterbar__toggle { display: none; }
  .filterbar__body { display: grid !important; gap: 12px; margin-top: 0; }
  .filterbar__top { display: none; }
  .filterbar { position: static; }
}

/* ---------- 23. 房源详情 ---------- */
.pd { display: grid; gap: 22px; padding-bottom: 40px; }
.pd__main { min-width: 0; grid-row: 2; }
.pd__side { grid-row: 1; }
@media (min-width: 1024px) {
  .pd { grid-template-columns: minmax(0, 1fr) 368px; gap: 32px; align-items: start; }
  .pd__main { grid-column: 1; grid-row: 1; }
  .pd__side { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hd) + 16px); }
}

/* 图集 */
.gal { display: grid; gap: 8px; }
.gal__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #eef2f7; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__count {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(9, 20, 34, .6); color: #fff; font-size: 12px;
}
.gal__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gal__thumbs button { flex: 0 0 26%; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; }
.gal__thumbs button.is-on { border-color: var(--brand); }
.gal__thumbs img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .gal { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .gal__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; }
  .gal__thumbs button { flex: none; }
  .gal__thumbs button:first-child { display: none; }
}

/* 报价卡 */
.pricebox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm); }
.pricebox__price { display: flex; align-items: baseline; gap: 6px; color: var(--cta); }
.pricebox__price b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pricebox__price span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.pricebox__sub { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 16px; }
.pricebox__phone {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 10px;
  background: var(--cta); color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.pricebox__phone small { font-size: 11px; font-weight: 500; opacity: .85; }
.pricebox__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pricebox__note { font-size: 12px; color: var(--ink-3); margin-top: 12px; display: flex; gap: 6px; align-items: flex-start; }
.pricebox__note svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--gold); }

/* 详情内容块 */
.card-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }
.card-block > h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-block > h2::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--brand); }

.pd__title { margin: 4px 0 0; font-size: clamp(21px, 3.2vw, 28px); }
.pd__loc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.pd__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.spec { display: grid; gap: 0; grid-template-columns: 1fr; }
.spec > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--ink-3); flex: 0 0 96px; }
.spec dd { margin: 0; font-weight: 500; }
@media (min-width: 768px) {
  .spec { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .spec > div:nth-last-child(2) { border-bottom: 0; }
}

.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amenities li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.amenities li::before {
  content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; display: grid; place-items: center; margin-top: 2px;
}
@media (min-width: 768px) { .amenities { grid-template-columns: repeat(3, 1fr); } }

.mapbox { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 2 / 1; }
.mapbox img { width: 100%; height: 100%; object-fit: cover; }

.timeline { display: grid; gap: 12px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.timeline i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-style: normal; font-weight: 700;
}
.timeline b { display: block; font-size: 14px; }
.timeline span { font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(4, 1fr); gap: 16px; } .timeline li { flex-direction: column; } .timeline li:not(:last-child) { position: relative; } }

.note-list { font-size: 13.5px; color: var(--ink-2); }
.note-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 20px; }
.note-list li:last-child { border-bottom: 0; }
.note-list span:last-child { color: var(--ink); font-weight: 600; }

/* ---------- 24. 表单 ---------- */
.form { display: grid; gap: 12px; }
.form__row { display: grid; gap: 12px; }
@media (min-width: 768px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; outline: none; transition: .15s;
}
.field textarea { height: 96px; padding-top: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 76, 138, .1); }
.field__hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.form__agree { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }
.form__agree input { width: 14px; height: 14px; margin-top: 2px; }

/* ---------- 25. 其他 ---------- */
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty b { display: block; font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--ink-3); font-size: 13.5px; }

.loadmore { display: grid; place-items: center; margin-top: 26px; gap: 8px; }
.loadmore small { color: var(--ink-3); font-size: 12px; }

.prose { max-width: 720px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.prose h2 { font-size: 20px; color: var(--ink); margin: 32px 0 12px; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 24px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose blockquote {
  margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: #fdfaf3;
  color: var(--ink-2); border-radius: 0 8px 8px 0;
}
.prose img { border-radius: var(--r); margin: 20px 0; }
.prose figure { margin: 20px 0; }
.prose figcaption { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 8px; }

.art-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: #eef2f7; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }

.divider { height: 1px; background: var(--line); margin: 26px 0; border: 0; }

.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.stack-8 { display: grid; gap: 8px; }
.stack-12 { display: grid; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- 26. 工具类 ---------- */
[hidden] { display: none !important; }

#filter-body { display: grid; gap: 10px; }

.searchbar__field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%237b8798' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
}

.hide-sm { display: none !important; }
@media (min-width: 1024px) { .hide-sm { display: inline-flex !important; } }

@media (min-width: 768px) {
  .gal__thumbs { height: 100%; grid-auto-rows: 1fr; }
  .gal__thumbs button { aspect-ratio: auto; height: 100%; }
  .gal__thumbs button:nth-child(n + 6) { display: none; }
  .gal__thumbs img { height: 100%; aspect-ratio: auto; }
}
