/* ============ 企程院汇 · 移动端设计系统 v3（企业蓝） ============ */
:root {
  --primary: #1f6bff;
  --primary-dark: #0d4fd6;
  --primary-soft: #eaf1ff;
  --primary-ghost: #f3f7ff;
  --brand-grad: linear-gradient(135deg, #1f6bff 0%, #4b8dff 100%);
  --red: #f04438;
  --red-soft: #fef3f2;
  --orange: #f79009;
  --green: #12b76a;
  --ink: #101828;
  --text: #344054;
  --sub: #667085;
  --mute: #98a2b3;
  --line: #eaecf0;
  --line-soft: #f2f4f7;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 34px rgba(16, 24, 40, .12);
  --safe-b: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #e8ecf4;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; flex: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
input, textarea, select { outline: none; }
::selection { background: rgba(31, 107, 255, .18); }

#app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(16, 40, 90, .1);
}
.page { padding-bottom: 84px; min-height: 100vh; background: var(--card); }
.page.no-tab { padding-bottom: 0; }
.page.grey { background: var(--bg); }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: 52px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  font-size: 16px; font-weight: 600; letter-spacing: .2px; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav.transparent {
  background: transparent; color: #fff; position: absolute; left: 0; right: 0; border-bottom: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  text-shadow: 0 1px 8px rgba(8, 18, 40, .35);
}
.nav .back {
  position: absolute; left: 8px; top: 0; height: 52px; width: 36px;
  display: flex; align-items: center; justify-content: center;
}
.nav .back svg { width: 22px; height: 22px; }
.capsule {
  position: absolute; right: 10px; top: 12px; height: 28px; width: 74px;
  border: 1px solid rgba(16, 24, 40, .1); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px);
  font-size: 13px; color: #333;
}
.nav.transparent .capsule { border-color: rgba(255, 255, 255, .38); background: rgba(8, 18, 40, .28); color: #fff; }
.capsule i { width: 1px; height: 14px; background: currentColor; opacity: .18; }
.capsule b { font-size: 15px; letter-spacing: 1px; }

/* ============ 首页：顶部轮播 ============ */
.hero { position: relative; height: 292px; overflow: hidden; background: #0b1428; }
.hero.overlap { margin-top: -52px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.06);
  transition: opacity .9s ease, transform 6s linear;
}
.hero-slide.on { opacity: 1; transform: scale(1); z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 16, 38, .5) 0%, rgba(6, 16, 38, .12) 38%, rgba(6, 16, 38, .72) 100%);
}
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 62px; z-index: 4; color: #fff; }
.hero-text h1 {
  font-size: 28px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; letter-spacing: .5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; backdrop-filter: blur(8px);
  font-size: 11px; padding: 5px 11px; border-radius: 999px; letter-spacing: .4px;
}
.hero-badge span { opacity: .78; font-size: 10px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5;
  display: flex; justify-content: center; gap: 6px;
}
.hero-dots i {
  width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45);
  transition: all .3s; cursor: pointer;
}
.hero-dots i.on { width: 18px; background: #fff; }

.searchbar {
  position: relative; z-index: 6; margin: -26px 14px 0;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 16px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(16, 40, 90, .14);
  border: 1px solid rgba(31, 107, 255, .07);
}
.searchbar svg { width: 16px; height: 16px; color: var(--mute); flex: none; }
.searchbar input { flex: 1; border: 0; height: 38px; background: transparent; font-size: 13.5px; }
.searchbar input::placeholder { color: var(--mute); }
.searchbar button {
  flex: none; background: var(--brand-grad); color: #fff; height: 38px; padding: 0 22px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(31, 107, 255, .3);
}
.searchbar button:active { transform: scale(.97); }

.navgrid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 4px;
  padding: 22px 10px 8px;
}
.navgrid .ni { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.navgrid .ni .ico {
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s;
}
.navgrid .ni:active .ico { transform: scale(.92); }
.navgrid .ni .ico svg { width: 23px; height: 23px; stroke-width: 1.9; }
.navgrid .ni span { font-size: 11.5px; color: var(--text); letter-spacing: -.2px; }
/* 首页快捷入口图标底色：统一企业蓝（后台可选配色仍保留，视觉保持同一色系） */
.navgrid .ni .ico.green,
.navgrid .ni .ico.amber,
.navgrid .ni .ico.blue,
.navgrid .ni .ico.teal,
.navgrid .ni .ico.rose,
.navgrid .ni .ico.purple { background: var(--primary-soft); color: var(--primary); }
.navgrid .ni .ico.purple { background: #eef0ff; color: #5b5bd6; }
.navgrid .ni .ico.teal { background: #e9f6ff; color: #1a7fd6; }

.notice-bar {
  margin: 4px 14px 14px; background: var(--primary-ghost); border: 1px solid #e3edff;
  border-radius: 10px; padding: 8px 11px; display: flex; align-items: center; gap: 7px;
}
.notice-bar .tag-n {
  font-size: 10px; color: #fff; background: var(--primary); padding: 1px 6px; border-radius: 4px; flex: none; font-weight: 500;
}
.notice-bar .tx { font-size: 11.5px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 首页：卡片轮播 ============ */
.pswiper { margin: 0 0 4px; }
.pswiper .viewport { overflow: hidden; padding: 4px 14px; }
.pswiper .track {
  display: flex; gap: 10px;
  transition: transform .55s cubic-bezier(.22, .8, .3, 1);
  will-change: transform;
}
.promo {
  position: relative; flex: 0 0 78%; height: 132px; border-radius: 14px;
  overflow: hidden; color: #fff; background: #0b1428;
  box-shadow: 0 6px 18px rgba(16, 40, 90, .14);
}
.promo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.promo:active img { transform: scale(1.04); }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 38, .04), rgba(6, 16, 38, .68)); }
.promo .pl {
  position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: var(--primary); font-weight: 500; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.promo .pl.hot { background: #f04438; }
.promo .pt { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 15px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.promo .ps { position: absolute; left: 12px; bottom: 34px; z-index: 2; font-size: 11px; opacity: .88; }
.pdots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.pdots i { width: 5px; height: 5px; border-radius: 3px; background: #d5dbe6; transition: all .3s; }
.pdots i.on { width: 14px; background: var(--primary); }

.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 14px 10px; }
.sec-head.center { justify-content: center; padding-bottom: 4px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 700; letter-spacing: .2px; color: var(--ink); }
.sec-title::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
.sec-more { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.sec-more svg { width: 13px; height: 13px; }

.hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px 8px; }
.hcard {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.hcard:active { transform: translateY(1px) scale(.995); box-shadow: var(--shadow-lg); }
.hcard .thumb { position: relative; aspect-ratio: 4 / 3; background: #eef1f6; overflow: hidden; }
.hcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hcard .body { padding: 9px 10px 12px; }
.hcard h3 {
  font-size: 14px; font-weight: 600; margin: 0 0 7px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px;
}
.price-row { display: flex; align-items: baseline; gap: 3px; margin-bottom: 7px; }
.price-row em { font-style: normal; font-size: 11px; color: var(--sub); }
.price { color: var(--red); font-size: 19px; font-weight: 700; font-family: "DIN Alternate", -apple-system, sans-serif; letter-spacing: -.3px; }
.price small { font-size: 11px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.tag.blue { background: #e8f1ff; color: #1f6bff; }
.tag.grey { background: var(--line-soft); color: var(--sub); }
.tag.orange { background: #fff5e8; color: #e08a2a; }
.tag.green { background: #eaf1ff; color: #0d9d5c; }
.tag.red { background: var(--red-soft); color: var(--red); }

/* 状态角标 */
.badge-sold, .badge-status {
  position: absolute; top: 0; left: 0; font-size: 10.5px; padding: 4px 9px;
  color: #fff; border-bottom-right-radius: 10px; letter-spacing: .3px; z-index: 2;
  backdrop-filter: blur(2px);
}
.badge-sold { background: rgba(52, 64, 84, .9); }
.badge-status.rented { background: rgba(247, 144, 9, .95); }
.badge-status.sold { background: rgba(240, 68, 56, .95); }
.thumb .masked { filter: saturate(.55) brightness(.92); }

/* ============ 列表页 ============ */
.list-top { background: linear-gradient(180deg, #eef4ff 0%, #fff 100%); padding: 0 14px 14px; }
.list-search { display: flex; gap: 8px; padding-top: 4px; }
.list-search .box {
  flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; background: #fff;
  border-radius: 999px; padding: 0 16px; box-shadow: 0 3px 14px rgba(16, 40, 90, .08);
  border: 1px solid rgba(31, 107, 255, .06);
}
.list-search .box svg { width: 15px; height: 15px; color: var(--mute); }
.list-search .box input { border: 0; background: none; flex: 1; font-size: 13px; }
.quick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.quick3 .q { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--text); }
.quick3 .q .ico { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.quick3 .q svg { width: 20px; height: 20px; }

.gbanner {
  margin: 14px 14px 0; height: 82px; border-radius: 14px; overflow: hidden; position: relative;
  background: var(--brand-grad);
  color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  box-shadow: 0 8px 22px rgba(31, 107, 255, .28);
}
.gbanner::after {
  content: ""; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.gbanner h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .6px; position: relative; z-index: 2; }
.gbanner p { margin: 3px 0 0; font-size: 10.5px; opacity: .85; position: relative; z-index: 2; }
.gbanner .hs { display: flex; gap: 6px; align-items: flex-end; position: relative; z-index: 2; }
.gbanner .hs i { display: block; width: 22px; height: 26px; background: rgba(255, 255, 255, .92); border-radius: 3px 3px 0 0; clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%); }
.gbanner .hs i:nth-child(2) { height: 34px; opacity: .8; }
.gbanner .hs i:nth-child(3) { height: 20px; opacity: .65; }

.filters {
  position: sticky; top: 52px; z-index: 40; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; padding: 11px 12px; gap: 2px;
  border-bottom: 1px solid var(--line-soft);
}
.filters .f { flex: 1; text-align: center; font-size: 12.5px; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 3px; }
.filters .f.on { color: var(--primary); font-weight: 600; }
.filters .f .ar { font-size: 9px; opacity: .55; }
.filters .sortico { width: 34px; display: flex; justify-content: flex-end; color: var(--text); }
.filter-panel {
  position: sticky; top: 98px; z-index: 39; background: #fff; border-bottom: 1px solid var(--line-soft);
  padding: 12px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.filter-panel .fp {
  text-align: center; font-size: 12px; padding: 9px 4px; border-radius: 9px; background: var(--line-soft); color: var(--text);
}
.filter-panel .fp.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.hlist { padding: 10px 12px 0; }
.hrow {
  display: flex; gap: 11px; background: #fff; padding: 12px; border-radius: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid rgba(16, 24, 40, .03);
}
.hrow .thumb { position: relative; width: 112px; height: 88px; border-radius: 10px; overflow: hidden; flex: none; background: #eef1f6; }
.hrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hrow .thumb .no { position: absolute; left: 5px; top: 5px; background: rgba(255, 255, 255, .92); font-size: 9.5px; padding: 1px 5px; border-radius: 4px; color: var(--text); }
.hrow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hrow h3 { font-size: 14px; margin: 0 0 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.hrow .meta { font-size: 11px; color: var(--sub); margin-bottom: 4px; }
.hrow .addr { font-size: 11px; color: var(--mute); margin-bottom: 6px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.hrow .addr svg { width: 12px; height: 12px; }
.hrow .pr { color: var(--red); font-size: 16.5px; font-weight: 700; margin-top: auto; font-family: "DIN Alternate", sans-serif; }
.hrow .pr small { font-size: 10.5px; font-weight: 400; color: var(--sub); margin-left: 2px; font-family: inherit; }

/* 归档行（已租/已售） */
.hrow.archived { background: #fbfcfe; }
.hrow.archived .thumb img { filter: saturate(.6); }
.deal-line { font-size: 10.5px; color: var(--sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-line b { color: var(--ink); font-weight: 600; }
.deal-line .cd { color: var(--orange); }

/* ============ 详情页 ============ */
.gallery { position: relative; aspect-ratio: 1 / 1; background: #dfe4ea; overflow: hidden; }
.gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery .cam { position: absolute; left: 14px; bottom: 16px; display: flex; background: rgba(8, 16, 34, .42); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.gallery .cam span { color: #fff; font-size: 11.5px; padding: 4px 13px; border-radius: 999px; opacity: .78; }
.gallery .cam span.on { background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 600; opacity: 1; }
.gallery .count { position: absolute; right: 14px; bottom: 16px; color: #fff; font-size: 11.5px; background: rgba(8, 16, 34, .42); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.gallery .brandmark { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, .55); font-size: 30px; letter-spacing: 8px; font-weight: 300; }
.gallery .play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.gallery .play-badge svg { width: 24px; height: 24px; margin-left: 3px; }

.d-head { padding: 16px 14px 0; display: flex; gap: 12px; }
.d-head .t { flex: 1; }
.d-head h1 { font-size: 19px; margin: 0 0 8px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.d-acts { display: flex; gap: 16px; padding-top: 3px; }
.d-act { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--sub); }
.d-act svg { width: 19px; height: 19px; }
.d-act.on { color: var(--red); }

.d-price { display: flex; padding: 16px 10px 14px; }
.d-price .c { flex: 1; text-align: center; border-right: 1px solid var(--line-soft); }
.d-price .c:last-child { border: 0; }
.d-price .v { color: var(--red); font-size: 20px; font-weight: 700; font-family: "DIN Alternate", sans-serif; }
.d-price .v small { font-size: 11px; font-weight: 500; font-family: inherit; }
.d-price .l { font-size: 10.5px; color: var(--sub); margin-top: 3px; }

/* 成交信息条 */
.deal-bar {
  margin: 0 14px 12px; border-radius: 12px; padding: 12px 14px;
  background: linear-gradient(135deg, #fff7ed, #fffbf5); border: 1px solid #fde6c7;
}
.deal-bar.sold { background: linear-gradient(135deg, #fef3f2, #fffaf9); border-color: #fbd9d5; }
.deal-bar .dh { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #b54708; margin-bottom: 8px; }
.deal-bar.sold .dh { color: #b42318; }
.deal-bar .dh span { font-size: 10.5px; font-weight: 500; background: rgba(255, 255, 255, .8); padding: 2px 7px; border-radius: 5px; color: inherit; }
.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.deal-grid .d { font-size: 11.5px; color: var(--sub); }
.deal-grid .d b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; margin-top: 1px; }

.d-tabs { display: flex; gap: 22px; padding: 4px 14px 0; border-bottom: 1px solid var(--line-soft); }
.d-tabs span { font-size: 14px; padding: 8px 0 11px; color: var(--sub); position: relative; }
.d-tabs span.on { font-weight: 700; color: var(--ink); }
.d-tabs span.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--primary); }

.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; padding: 16px 14px; }
.spec .s { display: flex; font-size: 13px; }
.spec .s .k { color: var(--sub); width: 62px; flex: none; }
.spec .s .v { color: var(--ink); flex: 1; font-weight: 500; }
.spec .s.full { grid-column: 1 / -1; }
.spec .s.full .k { width: 62px; }

.book-btn {
  display: block; margin: 2px 14px 18px; height: 46px; line-height: 46px; text-align: center;
  border: 1px solid #cfe0ff; border-radius: 12px; color: var(--primary); font-size: 14.5px; font-weight: 600;
  background: var(--primary-ghost);
}
.block { padding: 18px 14px 0; }
.block h3 { font-size: 16px; margin: 0 0 12px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.block h3 .more { font-size: 11.5px; color: var(--sub); font-weight: 400; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }

.intro-txt { font-size: 13.5px; color: var(--text); line-height: 1.85; }
.intro-h { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; margin: 16px 0 8px; color: var(--ink); }
.intro-h::before { content: ""; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.faq .q {
  background: var(--primary-ghost); color: #35507a; font-size: 12px; padding: 11px 12px; border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.faq .q i { font-style: normal; opacity: .4; }

.agent-card { margin: 14px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.agent-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: #eef1f6; }
.agent-card .n { flex: 1; }
.agent-card .n b { font-size: 15px; display: block; color: var(--ink); }
.agent-card .n span { font-size: 11.5px; color: var(--sub); }
.agent-card .call { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); }

.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); z-index: 70;
  padding: 9px 12px calc(9px + var(--safe-b));
  display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-soft);
}
.bottom-bar .who { display: flex; align-items: center; gap: 6px; width: 76px; flex: none; overflow: hidden; }
.bottom-bar .who img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bottom-bar .who span { font-size: 10.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-bar .btn-book {
  width: 72px; flex: none; height: 42px; border-radius: 12px; background: var(--line-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; color: var(--text); gap: 1px;
}
.bottom-bar .btn-book svg { width: 16px; height: 16px; }
.bottom-bar .btn-chat { flex: 1; height: 42px; border-radius: 12px; background: #ff8a1f; color: #fff; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.bottom-bar .btn-call { flex: 1; height: 42px; border-radius: 12px; background: var(--brand-grad); color: #fff; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 4px 12px rgba(31, 107, 255, .3); }

/* ============ 表单 / 预约 ============ */
.form-card { background: #fff; padding: 6px 14px; }
.form-row { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line-soft); gap: 12px; }
.form-row:last-child { border-bottom: 0; }
.form-row .lb { width: 86px; flex: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.form-row .lb i { color: var(--red); font-style: normal; margin-left: 2px; }
.form-row input, .form-row select { flex: 1; border: 0; background: none; height: 40px; font-size: 13.5px; text-align: right; }
.form-row input::placeholder { color: var(--mute); }
.form-row .arrow { color: var(--mute); font-size: 12px; }
.form-col { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.form-col .lb { font-size: 14px; font-weight: 500; margin-bottom: 10px; display: flex; justify-content: space-between; color: var(--ink); }
.form-col textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; height: 118px; resize: none;
  font-size: 13.5px; background: #fcfdff; line-height: 1.6;
}
.form-col textarea:focus { border-color: #a9c5ff; background: #fff; }
.counter { text-align: right; font-size: 11px; color: var(--mute); margin-top: 6px; }
.book-house { display: flex; gap: 12px; padding: 14px; background: #fff; border-bottom: 8px solid var(--bg); }
.book-house img { width: 92px; height: 70px; border-radius: 10px; object-fit: cover; flex: none; }
.book-house .t { flex: 1; min-width: 0; }
.book-house h3 { font-size: 14.5px; margin: 0 0 5px; font-weight: 600; color: var(--ink); }
.book-house p { font-size: 11.5px; color: var(--sub); margin: 0 0 6px; }
.submit-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; padding: 10px 14px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line-soft); }
.btn-primary {
  width: 100%; height: 48px; border-radius: 12px; background: var(--brand-grad); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: 0 6px 18px rgba(31, 107, 255, .28);
}
.btn-primary:active { background: var(--primary-dark); }
.btn-primary[disabled] { opacity: .55; box-shadow: none; }
.btn-ghost { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--text); }
.btn-danger { width: 100%; height: 46px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 600; }

/* 上传器 */
.uploader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.up-item {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f4f6fa;
  border: 1px solid var(--line);
}
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .del {
  position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(8, 16, 34, .62); color: #fff; font-size: 12px; line-height: 20px; text-align: center;
}
.up-item .cover-tag {
  position: absolute; left: 4px; bottom: 4px; font-size: 9.5px; padding: 1px 5px;
  border-radius: 4px; background: rgba(31, 107, 255, .92); color: #fff;
}
.up-add {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed #c9d6ec; background: #fafcff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-size: 10.5px; color: var(--sub);
}
.up-add svg { width: 22px; height: 22px; color: var(--primary); }
.up-add.busy { opacity: .6; pointer-events: none; }
.video-box { position: relative; border-radius: 12px; overflow: hidden; background: #0b1428; }
.video-box video { width: 100%; display: block; max-height: 260px; }
.video-box .del {
  position: absolute; right: 8px; top: 8px; z-index: 3; background: rgba(8, 16, 34, .65); color: #fff;
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
}

/* ============ 经纪人主页 ============ */
.agent-hero {
  position: relative; padding: 22px 16px 20px; overflow: hidden;
  background: var(--brand-grad); color: #fff;
}
.agent-hero::after {
  content: ""; position: absolute; right: -50px; top: -70px; width: 190px; height: 190px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.agent-hero .row { display: flex; gap: 14px; position: relative; z-index: 2; }
.agent-hero img.big { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(255, 255, 255, .55); background: #dbe5f5; }
.agent-hero .nm { flex: 1; padding-top: 4px; }
.agent-hero .nm h2 { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.agent-hero .nm p { margin: 0 0 6px; font-size: 12px; opacity: .88; }
.agent-hero .nm .ip { font-size: 10.5px; opacity: .72; }
.agent-stats { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 2; }
.agent-stats span { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .16); font-size: 11.5px; padding: 4px 11px; border-radius: 999px; }
.panel { margin: 12px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 12px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.kv { display: flex; font-size: 13.5px; padding: 7px 0; }
.kv .k { color: var(--sub); width: 88px; flex: none; }
.kv .v { flex: 1; color: var(--ink); }
.kv .v.link { color: var(--primary); }

/* ============ 社区 ============ */
.tabs-line { display: flex; gap: 24px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line-soft); position: sticky; top: 52px; z-index: 40; }
.tabs-line span { font-size: 15px; padding: 10px 0 12px; color: var(--sub); position: relative; }
.tabs-line span.on { font-weight: 700; color: var(--ink); }
.tabs-line span.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 20px; height: 3px; border-radius: 2px; background: var(--primary); }
.art-list { padding: 10px 12px; }
.art { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); margin-bottom: 10px; }
.art .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.art h3 { font-size: 15px; margin: 2px 0 0; font-weight: 600; line-height: 1.4; color: var(--ink); }
.art .foot { margin-top: auto; font-size: 11px; color: var(--mute); }
.art img { width: 106px; height: 78px; border-radius: 10px; object-fit: cover; flex: none; }
.art-body { padding: 4px 18px 30px; font-size: 15px; line-height: 1.95; color: var(--text); }
.art-body p { margin: 0 0 18px; }
.art-hero { width: 100%; height: 210px; object-fit: cover; }

/* ============ 我的 ============ */
.mine-head {
  background: var(--brand-grad); color: #fff; padding: 20px 18px 46px;
  display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden;
}
.mine-head::after {
  content: ""; position: absolute; right: -60px; bottom: -90px; width: 210px; height: 210px;
  border-radius: 50%; background: rgba(255, 255, 255, .09);
}
.mine-head img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .28); border: 2px solid rgba(255, 255, 255, .5); position: relative; z-index: 2; }
.mine-head .nm { flex: 1; position: relative; z-index: 2; }
.mine-head .nm b { font-size: 18px; display: block; margin-bottom: 3px; }
.mine-head .nm span { font-size: 11.5px; opacity: .82; }
.mine-head .arrow { color: rgba(255, 255, 255, .7); position: relative; z-index: 2; }
.mine-wallet {
  display: flex; margin: -30px 12px 0; position: relative; z-index: 3;
  background: #fff; border-radius: 14px; padding: 14px 0; box-shadow: var(--shadow);
}
.mine-wallet .w { flex: 1; text-align: center; border-right: 1px solid var(--line-soft); }
.mine-wallet .w:last-child { border: 0; }
.mine-wallet .w b { font-size: 17px; display: block; color: var(--ink); font-family: "DIN Alternate", sans-serif; }
.mine-wallet .w span { font-size: 11px; color: var(--sub); }

.mine-card { margin: 12px; background: #fff; border-radius: 16px; padding: 14px 8px 16px; box-shadow: var(--shadow); }
.mine-card .ch { padding: 0 8px 10px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; color: var(--ink); }
.mine-card .ch::before { content: ""; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }
.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 0; }
.mine-grid .m { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--text); text-align: center; }
.mine-grid .m svg { width: 22px; height: 22px; color: #475467; }
.mine-grid .m .dot { position: relative; }
.role-card { margin: 12px; border-radius: 16px; overflow: hidden; position: relative; color: #fff; padding: 18px; display: flex; align-items: center; gap: 12px; }
.role-card.agent { background: linear-gradient(120deg, #1f6bff, #4b8dff); box-shadow: 0 8px 22px rgba(31, 107, 255, .28); }
.role-card.admin { background: linear-gradient(120deg, #1d2939, #344054); box-shadow: 0 8px 22px rgba(29, 41, 57, .28); }
.role-card .ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.role-card .tt { flex: 1; }
.role-card .tt b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.role-card .tt span { font-size: 11px; opacity: .82; }
.role-card .go { font-size: 12px; background: rgba(255, 255, 255, .94); color: var(--primary); padding: 6px 13px; border-radius: 999px; font-weight: 600; }
.role-card.admin .go { color: #344054; }

/* ============ 工作台通用 ============ */
.console-head { background: var(--brand-grad); color: #fff; padding: 18px 18px 26px; position: relative; overflow: hidden; }
.console-head::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.console-head + .stat4 { margin-top: -18px; }
.console-head h2 { margin: 0 0 3px; font-size: 19px; font-weight: 700; position: relative; z-index: 2; }
.console-head p { margin: 0; font-size: 11.5px; opacity: .84; position: relative; z-index: 2; }
.stat4 {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; margin: 12px 12px 0;
  border-radius: 14px; padding: 14px 0; box-shadow: var(--shadow); position: relative; z-index: 2;
}
.stat4 .s { text-align: center; }
.stat4 .s b { font-size: 18px; font-family: "DIN Alternate", sans-serif; color: var(--ink); }
.stat4 .s span { display: block; font-size: 10.5px; color: var(--sub); margin-top: 2px; }
.quick-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px; }
.quick-acts .qa { background: #fff; border-radius: 13px; padding: 13px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text); box-shadow: var(--shadow); }
.quick-acts .qa svg { width: 20px; height: 20px; color: var(--primary); }
.seg { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg span { flex: none; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--sub); border: 1px solid var(--line-soft); }
.seg span.on { background: var(--primary); color: #fff; font-weight: 600; border-color: var(--primary); box-shadow: 0 4px 12px rgba(31, 107, 255, .25); }
.op-row { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border-radius: 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.op-row img.thumb { width: 58px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; background: #eef1f6; }
.op-row .info { flex: 1; min-width: 0; }
.op-row .info b { font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.op-row .info span { font-size: 11px; color: var(--sub); }
.op-row .btns { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 5px; flex: none; max-width: 124px; }
.mini-btn { font-size: 11px; padding: 5px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; font-weight: 500; }
.mini-btn.grey { background: var(--line-soft); color: var(--sub); }
.mini-btn.red { background: var(--red-soft); color: var(--red); }
.mini-btn.dark { background: #eef1f5; color: #46536b; }
.mini-btn.warn { background: #fff5e8; color: #b54708; }

.role-entry { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); }
.role-entry .ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.role-entry .go { margin-left: auto; color: var(--mute); }

/* ============ Tabbar ============ */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; height: 58px; background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(16px);
  z-index: 80; display: flex; border-top: 1px solid var(--line-soft);
  padding-bottom: var(--safe-b);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--mute); transition: color .18s; }
.tabbar a svg { width: 22px; height: 22px; transition: transform .18s; }
.tabbar a.on { color: var(--primary); font-weight: 500; }
.tabbar a.on svg { transform: translateY(-1px); }

/* ============ 弹层 / Toast ============ */
.mask { position: fixed; inset: 0; background: rgba(8, 16, 34, .48); z-index: 200; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 460px; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + var(--safe-b));
  animation: up .26s cubic-bezier(.2, .9, .3, 1); max-height: 88vh; overflow-y: auto;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet h3 { margin: 0 0 14px; font-size: 16.5px; text-align: center; color: var(--ink); }
.sheet .fld { margin-bottom: 12px; }
.sheet .fld label { display: block; font-size: 11.5px; color: var(--sub); margin-bottom: 5px; }
.sheet .fld input, .sheet .fld select, .sheet .fld textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 14px; background: #fbfcfe;
}
.sheet .fld input:focus, .sheet .fld select:focus, .sheet .fld textarea:focus { border-color: #a9c5ff; background: #fff; }
.sheet .fld textarea { height: 88px; resize: none; }
.sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .acts { display: flex; gap: 10px; margin-top: 16px; }
.sheet .acts button { flex: 1; height: 46px; border-radius: 12px; font-size: 14.5px; }
.sheet .acts .cancel { background: var(--line-soft); color: var(--text); }
.sheet .acts .ok { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(31, 107, 255, .26); }
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 300;
  background: rgba(16, 24, 40, .9); color: #fff; font-size: 13px; padding: 12px 18px; border-radius: 12px;
  max-width: 78%; text-align: center; animation: fade .15s; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.empty { text-align: center; padding: 60px 20px; color: var(--mute); font-size: 13px; }
.empty svg { width: 56px; height: 56px; opacity: .3; margin: 0 auto 12px; display: block; }
.loading { text-align: center; padding: 30px; color: var(--mute); font-size: 12.5px; }

/* 骨架屏 */
.sk { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; display: flex; gap: 11px; box-shadow: var(--shadow); }
.sk-card .skt { width: 112px; height: 88px; border-radius: 10px; flex: none; }
.sk-card .skl { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-card .skl i { display: block; height: 12px; }
.sk-card .skl i:nth-child(1) { width: 70%; height: 15px; }
.sk-card .skl i:nth-child(2) { width: 45%; }
.sk-card .skl i:nth-child(3) { width: 58%; }

/* 图片灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(6, 12, 26, .96);
  display: flex; align-items: center; justify-content: center; animation: fade .18s;
}
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox .lb-close { position: absolute; right: 16px; top: 16px; color: #fff; font-size: 26px; line-height: 1; padding: 6px; }
.lightbox .lb-idx { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 12px; }

/* 登录 */
.login-wrap { padding: 40px 26px; }
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo img { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; box-shadow: 0 8px 22px rgba(31, 107, 255, .25); }
.login-logo h1 { margin: 0 0 5px; font-size: 22px; letter-spacing: 3px; color: var(--ink); }
.login-logo p { margin: 0; font-size: 12px; color: var(--sub); letter-spacing: 1px; }
.login-field { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.login-field span { width: 58px; font-size: 14px; color: var(--text); }
.login-field input { flex: 1; border: 0; font-size: 15px; background: none; }
.login-btn { width: 100%; height: 48px; margin-top: 26px; border-radius: 999px; background: var(--brand-grad); color: #fff; font-size: 15.5px; font-weight: 600; box-shadow: 0 8px 22px rgba(31, 107, 255, .28); }
.login-tip { margin-top: 22px; font-size: 11.5px; color: var(--mute); line-height: 1.8; text-align: center; }
.demo-list { margin-top: 18px; background: var(--primary-ghost); border-radius: 12px; padding: 12px 14px; }
.demo-list div { font-size: 12px; color: var(--sub); padding: 3px 0; display: flex; justify-content: space-between; }
.demo-list b { color: var(--text); font-weight: 600; }

/* 栏目管理卡片 */
.sec-item { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.sec-top { display: flex; align-items: center; gap: 10px; }
.sec-top .info { flex: 1; min-width: 0; }
.sec-top .info b { font-size: 13.5px; display: block; color: var(--ink); }
.sec-top .info span { font-size: 10.5px; color: var(--sub); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }

/* 归档页签 */
.arch-tabs { display: flex; gap: 10px; padding: 12px 14px 8px; }
.arch-tabs .t {
  flex: 1; background: #fff; border-radius: 12px; padding: 11px 12px; box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.arch-tabs .t.on { border-color: var(--primary); background: var(--primary-ghost); }
.arch-tabs .t b { font-size: 18px; font-family: "DIN Alternate", sans-serif; color: var(--ink); }
.arch-tabs .t.on b { color: var(--primary); }
.arch-tabs .t span { display: block; font-size: 11px; color: var(--sub); margin-top: 1px; }

/* 上传进度 */
.uphint { font-size: 10.5px; color: var(--mute); margin-top: 6px; }
.progress { height: 3px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--primary); transition: width .2s; }

/* 工作台房源卡片：纵向布局，按钮横排 */
.op-row.col { flex-direction: column; align-items: stretch; gap: 9px; }
.op-row.col .top { display: flex; gap: 10px; align-items: center; }
.op-row.col .btns { max-width: none; justify-content: flex-end; }
.op-row .info span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
