/* ============================================================
 * 栖寓租房 · 全局样式
 * 沿用模板视觉语言：品牌绿 #00AE66、价格红 #F04A4A、卡片白、浅灰底
 * ============================================================ */

:root {
  --brand: #00ae66;
  --brand-dark: #00915a;
  --brand-soft: #e6f7ef;
  --price: #f04a4a;
  --price-soft: #fff0ef;
  --orange: #ff8a3d;
  --orange-soft: #fff4ea;
  --blue: #3aa0ff;
  --blue-soft: #eaf4ff;

  --text-1: #1a1a1a;
  --text-2: #555;
  --text-3: #6f747e;
  --text-4: #9aa1ab;
  --line: #e9eaed;
  --line-2: #f1f2f4;
  --bg: #f4f5f7;
  --card: #fff;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-xl: 18px;

  --shadow-s: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-m: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-l: 0 8px 28px rgba(0, 0, 0, 0.12);

  /* 动效与焦点 */
  --ease-out: cubic-bezier(0.22, 0.8, 0.28, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-1: 0.14s;
  --dur-2: 0.22s;
  --dur-3: 0.34s;
  --press: 0.97;
  --ring: 0 0 0 3px rgba(0, 174, 102, 0.16);
  --focus: 2px solid var(--brand);

  --tab-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
  background: #e9ebef;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
input,
select {
  font-family: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------- 布局容器（全屏自适应，无设备外壳） ---------- */
#app-shell {
  height: 100%;
}

#phone {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- 状态栏 ---------- */
.statusbar {
  flex: none;
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  background: #fff;
  position: relative;
  z-index: 30;
}
.statusbar.dark {
  background: transparent;
  color: #fff;
}
.statusbar .sb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.sb-battery {
  width: 24px;
  height: 12px;
  border-radius: 3px;
  border: 1.4px solid currentColor;
  position: relative;
  opacity: 0.85;
}
.sb-battery::after {
  content: '';
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  bottom: 1.5px;
  width: 68%;
  background: currentColor;
  border-radius: 1px;
}
.sb-battery::before {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  opacity: 0.6;
}
.sb-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.sb-signal i {
  width: 3px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.85;
}
.sb-signal i:nth-child(1) {
  height: 4px;
}
.sb-signal i:nth-child(2) {
  height: 6px;
}
.sb-signal i:nth-child(3) {
  height: 8px;
}
.sb-signal i:nth-child(4) {
  height: 11px;
}

/* ---------- 页面容器 ---------- */
#view {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page::-webkit-scrollbar {
  display: none;
}
.page.has-tabbar {
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
}

/* ---------- 通用导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}
.navbar.transparent {
  background: transparent;
}
.navbar .nb-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nb-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--text-1);
}
.nb-btn svg {
  width: 22px;
  height: 22px;
}
.navbar .nb-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  min-width: 36px;
  justify-content: flex-end;
}
.navbar.on-image {
  color: #fff;
}
.navbar.on-image .nb-btn {
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 50%;
  width: 34px;
  height: 34px;
}
.navbar.on-image .nb-btn svg {
  width: 19px;
  height: 19px;
}

/* ---------- 搜索框 ---------- */
.searchbar {
  margin: 6px 12px 10px;
  height: 40px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--line-2);
}
.searchbar .sb-city {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  flex: none;
  white-space: nowrap;
}
.searchbar .sb-city svg {
  width: 12px;
  height: 12px;
  color: var(--text-3);
}
.searchbar .sb-div {
  width: 1px;
  height: 16px;
  background: var(--line);
  flex: none;
}
.searchbar .sb-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text-1);
}
.searchbar .sb-input::placeholder {
  color: var(--text-4);
}
.searchbar .sb-ico {
  width: 18px;
  height: 18px;
  color: var(--text-4);
  flex: none;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius-l);
  margin: 0 12px 10px;
  overflow: hidden;
}
.card.shadow {
  box-shadow: var(--shadow-s);
}

/* ---------- 金刚区 ---------- */
.kingkong {
  background: #fff;
  margin: 0 12px 10px;
  border-radius: var(--radius-l);
  padding: 14px 6px 10px;
  box-shadow: var(--shadow-s);
}
.kk-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 0;
}
.kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-1);
}
.kk-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kk-ico svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.kk-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}
.kk-dots i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #e2e4e8;
}
.kk-dots i.on {
  background: #b8bcc4;
}

/* ---------- 行情播报 ---------- */
.market {
  margin: 0 12px 10px;
  border-radius: var(--radius-l);
  padding: 14px 14px 16px;
  background: linear-gradient(120deg, #e4f1ff 0%, #eef6ff 45%, #e7f7ef 100%);
  position: relative;
  overflow: hidden;
}
.market::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(0, 174, 102, 0.07);
}
.market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.market-head .mh-title {
  font-size: 15px;
  font-weight: 600;
}
.market-head .mh-more {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  white-space: nowrap;
}
.market-head .mh-more svg {
  width: 12px;
  height: 12px;
  flex: none;
}
.market-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
}
.mt-cell .mt-label {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 3px;
}
.mt-cell .mt-val {
  font-size: 21px;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: -0.3px;
}
.mt-cell .mt-val small {
  font-size: 12px;
  font-weight: 500;
  margin-left: 1px;
}
.mt-cell .mt-trend {
  font-size: 11px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.trend-up {
  color: var(--price);
}
.trend-down {
  color: var(--brand);
}

/* ---------- Banner ---------- */
.banner {
  margin: 0 12px 10px;
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-s);
}
.banner .bn-pic {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #d8c9b4;
}
.banner .bn-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner .bn-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(60, 40, 20, 0.72) 0%, rgba(60, 40, 20, 0.25) 60%, transparent 100%);
}
.banner .bn-body {
  position: absolute;
  left: 16px;
  top: 18px;
  right: 16px;
  color: #fff;
}
.banner .bn-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.banner .bn-tag {
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.24);
  padding: 2px 8px;
  border-radius: 10px;
}
.banner .bn-sub {
  font-size: 13px;
  margin-top: 6px;
  opacity: 0.95;
}
.banner .bn-btn {
  margin-top: 12px;
  display: inline-block;
  background: #fff;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
}
.banner .bn-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 11px;
}
.banner .bn-foot .bf-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.banner .bn-foot .bf-ico svg {
  width: 15px;
  height: 15px;
}
.banner .bn-foot .bf-b {
  min-width: 0;
  flex: 1;
}
.banner .bn-foot .bf-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.banner .bn-foot .bf-s {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Tab 切换（今日必看） ---------- */
.tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 4px 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs .tab {
  font-size: 17px;
  color: var(--text-3);
  white-space: nowrap;
  position: relative;
  padding-bottom: 6px;
  font-weight: 500;
}
.tabs .tab.on {
  color: var(--text-1);
  font-weight: 700;
  font-size: 19px;
}
.tabs .tab.on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- 横滑文章卡 ---------- */
.hscroll {
  display: flex;
  gap: 10px;
  padding: 0 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar {
  display: none;
}
.art-card {
  flex: none;
  width: 150px;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-s);
}
.art-card .ac-img {
  position: relative;
  height: 150px;
}
.art-card .ac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-card .ac-img .ac-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 55%);
}
.art-card .ac-img .ac-t {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.art-card .ac-body {
  padding: 8px 9px 10px;
}
.art-card .ac-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-card .ac-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 为你推荐 Tab ---------- */
.rec-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rec-tabs::-webkit-scrollbar {
  display: none;
}
.rec-tabs .rt {
  font-size: 16px;
  color: var(--text-3);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.rec-tabs .rt.on {
  color: var(--text-1);
  font-weight: 700;
  border-bottom-color: var(--text-1);
}

/* ---------- 房源卡片（大卡 / 双列） ---------- */
.house-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 12px;
}
.hcard {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.hcard .hc-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e8eaed;
}
.hcard .hc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hcard .hc-badge {
  position: absolute;
  left: 0;
  top: 8px;
  background: linear-gradient(90deg, #1c2b4a, #3a4d7a);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 0 4px 4px 0;
}
.hcard .hc-badge.silver {
  background: linear-gradient(90deg, #7d8a9c, #a9b4c2);
}
.hcard .hc-badge.gold {
  background: linear-gradient(90deg, #b98a2e, #e0b354);
}
.hcard .hc-loc {
  position: absolute;
  left: 6px;
  bottom: 6px;
  right: 6px;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hcard .hc-loc svg {
  width: 11px;
  height: 11px;
  flex: none;
}
.hcard .hc-body {
  padding: 9px 10px 11px;
}
.hcard .hc-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.hcard .hc-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hcard .hc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.tag {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #f3f4f6;
  color: var(--text-2);
  white-space: nowrap;
}
.tag.red {
  background: var(--price-soft);
  color: var(--price);
}
.tag.green {
  background: var(--brand-soft);
  color: var(--brand);
}
.tag.orange {
  background: var(--orange-soft);
  color: var(--orange);
}
.tag.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.hcard .hc-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.price {
  color: var(--price);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.3px;
}
.price small {
  font-size: 11px;
  font-weight: 500;
  margin-left: 1px;
}
.price-unit {
  font-size: 11px;
  color: var(--text-3);
}

/* ---------- 横向房源卡（列表页） ---------- */
.hlist {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hrow {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow-s);
}
.hrow .hr-img {
  position: relative;
  width: 132px;
  flex: none;
  background: #e8eaed;
}
.hrow .hr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hrow .hr-badge {
  position: absolute;
  left: 0;
  top: 8px;
  background: linear-gradient(90deg, #1c2b4a, #3a4d7a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 0 4px 4px 0;
}
.hrow .hr-badge.silver {
  background: linear-gradient(90deg, #7d8a9c, #a9b4c2);
}
.hrow .hr-badge.gold {
  background: linear-gradient(90deg, #b98a2e, #e0b354);
}
.hrow .hr-body {
  flex: 1;
  min-width: 0;
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
}
.hrow .hr-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hrow .hr-meta {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hrow .hr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.hrow .hr-price {
  margin-top: auto;
  padding-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

/* ---------- 筛选栏 ---------- */
.filterbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #fff;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  border-bottom: 1px solid var(--line-2);
}
.fb-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 14px;
  color: var(--text-1);
  height: 100%;
  position: relative;
}
.fb-item svg {
  width: 11px;
  height: 11px;
  color: var(--text-3);
  transition: transform 0.2s;
}
.fb-item.on {
  color: var(--brand);
  font-weight: 600;
}
.fb-item.on svg {
  color: var(--brand);
  transform: rotate(180deg);
}
.fb-item.has-val::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- 底部 TabBar ---------- */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.tabbar .tb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  color: var(--text-3);
  height: 100%;
}
.tabbar .tb-item svg {
  width: 23px;
  height: 23px;
}
.tabbar .tb-item.on {
  color: var(--text-1);
  font-weight: 600;
}
.tabbar .tb-item.on svg {
  color: var(--brand);
}

/* ---------- 弹层 / 面板 ---------- */
.mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.mask.show {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 78%;
  display: flex;
  flex-direction: column;
}
.sheet.show {
  transform: translateY(0);
}
.sheet-head {
  flex: none;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
}
.sheet-head .sh-close {
  margin-left: auto;
  color: var(--text-3);
  width: 24px;
  height: 24px;
}
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: none;
}
.sheet-body::-webkit-scrollbar {
  display: none;
}
.sheet-foot {
  flex: none;
  padding: 10px 14px calc(10px + var(--safe-b));
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.btn-reset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  color: var(--text-2);
  flex: none;
  width: 40px;
}
.btn-reset svg {
  width: 20px;
  height: 20px;
}
.btn-primary {
  flex: 1;
  height: 44px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:active {
  background: var(--brand-dark);
}
.btn-primary.ghost {
  background: #e8f6ef;
  color: var(--brand);
}
.btn-primary.disabled {
  background: #9fdcc0;
}

/* ---------- 选项网格（筛选） ---------- */
.opt-group-title {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 12px;
}
.opt-group-title:not(:first-child) {
  margin-top: 22px;
}
.opt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.opt-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.opt {
  height: 38px;
  border-radius: 5px;
  background: #f4f5f7;
  font-size: 13px;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
  line-height: 1.25;
}
.opt.on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.opt:active {
  opacity: 0.8;
}

/* ---------- 区域双栏 ---------- */
.area-pane {
  display: flex;
  flex: 1;
  min-height: 0;
}
.area-left {
  width: 96px;
  flex: none;
  background: #f6f7f9;
  overflow-y: auto;
  scrollbar-width: none;
}
.area-left::-webkit-scrollbar {
  display: none;
}
.area-left .al-item {
  height: 46px;
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-size: 14px;
  color: var(--text-2);
  position: relative;
}
.area-left .al-item.on {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
}
.area-left .al-item.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--brand);
  border-radius: 0 2px 2px 0;
}
.area-right {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.area-right::-webkit-scrollbar {
  display: none;
}
.area-right .ar-item {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 14px;
}
.area-right .ar-item.on {
  color: var(--brand);
  font-weight: 600;
}
.area-right .ar-item .ar-hot {
  font-size: 10px;
  color: var(--price);
  background: var(--price-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---------- 排序列表 ---------- */
.sort-list .sl-item {
  height: 50px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--text-1);
  border-bottom: 1px solid var(--line-2);
}
.sort-list .sl-item:last-child {
  border-bottom: 0;
}
.sort-list .sl-item.on {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Toast ---------- */
#toast {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 12px);
  z-index: 80;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s;
  max-width: 80%;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 列表通用行 ---------- */
.cell {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
  min-height: 52px;
  position: relative;
}
.cell + .cell::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-2);
}
.cell .c-label {
  font-size: 15px;
  color: var(--text-1);
  flex: none;
}
.cell .c-val {
  margin-left: auto;
  font-size: 15px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 62%;
  text-align: right;
}
.cell .c-val svg {
  width: 15px;
  height: 15px;
  color: var(--text-4);
  flex: none;
}
.cell.tap:active {
  background: #f7f8fa;
}
.cell-group {
  background: #fff;
  border-radius: var(--radius-m);
  margin: 0 12px 10px;
  overflow: hidden;
}
.cell-group .cell + .cell::before {
  left: 14px;
}

/* ---------- 分组标题 ---------- */
.sec-title {
  font-size: 17px;
  font-weight: 700;
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sec-title small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
.sec-title .st-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ---------- 空状态 ---------- */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.empty svg {
  width: 64px;
  height: 64px;
  color: #d5d8dd;
  margin: 0 auto 12px;
  display: block;
}
.empty b {
  display: block;
  color: var(--text-1);
  font-size: 15px;
  margin-bottom: 4px;
}

/* ---------- 加载更多 ---------- */
.loadmore {
  text-align: center;
  padding: 14px 0 20px;
  font-size: 12px;
  color: var(--text-4);
}

/* ---------- 通用按钮 ---------- */
.btn {
  height: 44px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.btn.green {
  background: var(--brand);
  color: #fff;
}
.btn.green.soft {
  background: #a5e3c8;
}
.btn.outline {
  border: 1px solid var(--price);
  color: var(--price);
  background: #fff;
}
.btn.red {
  background: var(--price);
  color: #fff;
}
.btn.gray {
  background: #f2f3f5;
  color: var(--text-2);
}

/* ---------- 徽标 ---------- */
.dot {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--price);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* ---------- 滚动容器通用 ---------- */
.scroll-x {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar {
  display: none;
}

/* ---------- 整租/合租 大切换 ---------- */
.mode-switch {
  margin: 0 12px 10px;
  background: #f7f3ec;
  border-radius: var(--radius-l);
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  position: relative;
}
.mode-switch.three {
  grid-template-columns: repeat(3, 1fr);
}
.mode-switch.four {
  grid-template-columns: repeat(4, 1fr);
}
.mode-switch.four .ms-item {
  font-size: 15px;
}
.mode-switch .ms-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #8c8579;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.mode-switch .ms-item.on {
  background: #fff;
  color: var(--text-1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.mode-switch .ms-item.on::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}

/* ---------- 整租页搜索面板 ---------- */
.rent-panel {
  background: #fff;
  margin: 0 12px 10px;
  border-radius: var(--radius-l);
  padding: 14px;
  box-shadow: var(--shadow-s);
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: #f4f5f7;
  font-size: 13px;
  color: var(--text-1);
  display: flex;
  align-items: center;
}
.chip.on {
  background: #fff;
  color: var(--text-1);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.2px var(--text-1);
}
.rent-search {
  margin-top: 12px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
}
.rent-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  flex: none;
}
.rent-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.rent-search input::placeholder {
  color: var(--text-4);
}
.btn-black {
  margin-top: 14px;
  width: 100%;
  height: 46px;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-black:active {
  opacity: 0.88;
}

/* ---------- 页面标题（大标题） ---------- */
.big-title {
  font-size: 24px;
  font-weight: 700;
  padding: 10px 14px 12px;
  letter-spacing: -0.2px;
}

/* ---------- 精选页 Hero ---------- */
.hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #1b2233;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.55) 0%, rgba(10, 14, 28, 0.15) 40%, rgba(10, 14, 28, 0.6) 100%);
}
.hero .hero-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 78px;
  text-align: center;
  color: #fff;
}
.hero .hero-brand {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0.95;
}
.hero .hero-brand svg {
  width: 18px;
  height: 18px;
}
.hero .hero-title {
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: 1px;
}
.hero .hero-div {
  width: 110px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  margin: 12px auto 10px;
  position: relative;
}
.hero .hero-div::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2.5px;
  transform: translateX(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background: #fff;
}
.hero .hero-sub {
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.92;
}
.hero .hero-feats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 34px;
  color: #fff;
}
.hero .hf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.hero .hf-ico {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .hf-ico svg {
  width: 22px;
  height: 22px;
}
.hero-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 0 14px;
}
.hero-tabs .ht {
  flex: 1;
  height: 46px;
  border-radius: 8px;
  background: rgba(34, 38, 48, 0.9);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-tabs .ht.on {
  background: linear-gradient(180deg, #fff8ea, #fde8c8);
  color: #2b2018;
  position: relative;
}
.hero-tabs .ht.on::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fde8c8;
}

/* ---------- 详情页 ---------- */
.detail-imgs {
  position: relative;
  height: 400px;
  background: #ddd;
}
.detail-imgs .di-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.detail-imgs .di-track::-webkit-scrollbar {
  display: none;
}
.detail-imgs .di-slide {
  flex: none;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}
.detail-imgs .di-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-imgs .di-idx {
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-imgs .di-idx b {
  font-weight: 600;
}
.detail-imgs .di-vr {
  position: absolute;
  right: 12px;
  top: 104px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-imgs .di-vr svg {
  width: 15px;
  height: 15px;
}
.di-tabs {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  overflow: hidden;
}
.di-tabs .dt {
  font-size: 12.5px;
  color: #fff;
  padding: 5px 11px;
}
.di-tabs .dt.on {
  background: #fff;
  color: var(--text-1);
  font-weight: 600;
  border-radius: 6px;
}

.detail-body {
  background: #fff;
  margin-top: -10px;
  border-radius: 12px 12px 0 0;
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
}
.must-see {
  margin: 12px 12px 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0483e, #ff6b4a);
  color: #fff;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}
.must-see svg {
  width: 20px;
  height: 20px;
}
.must-see .ms-right {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 2px;
}
.must-see .ms-right svg {
  width: 12px;
  height: 12px;
}
.d-tags {
  display: flex;
  gap: 6px;
  padding: 12px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.d-tags::-webkit-scrollbar {
  display: none;
}
.d-tags .tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  flex: none;
}
.d-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 12px 0;
}
.d-key {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 12px 0;
}
.d-key .dk {
}
.d-key .dk-v {
  font-size: 21px;
  font-weight: 700;
  color: var(--price);
  letter-spacing: -0.3px;
}
.d-key .dk-v small {
  font-size: 12px;
  font-weight: 500;
}
.d-key .dk-l {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.d-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 12px 0;
}
.d-mini {
  border-radius: 8px;
  background: #f6f7f9;
  padding: 10px 12px;
}
.d-mini .dm-1 {
  font-size: 13px;
  font-weight: 600;
}
.d-mini .dm-2 {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.d-mini .dm-2 svg {
  width: 12px;
  height: 12px;
  flex: none;
}
.d-mini .dm-1 svg {
  flex: none;
}
.d-mini.map {
  background: #eaf3ee;
  position: relative;
  overflow: hidden;
}
.d-mini.map .dm-1 {
  display: flex;
  align-items: center;
  gap: 3px;
}
.d-mini.map .dm-1 svg {
  width: 12px;
  height: 12px;
  color: var(--brand);
}
.d-mapbtn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #fff;
  border-radius: 4px;
  font-size: 10.5px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--text-2);
  box-shadow: var(--shadow-s);
}
.d-mapbtn svg {
  width: 10px;
  height: 10px;
  color: var(--brand);
}

/* 详情 tab */
.d-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 12px 0;
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.d-tabs::-webkit-scrollbar {
  display: none;
}
.d-tabs .dtab {
  font-size: 16px;
  color: var(--text-3);
  padding-bottom: 10px;
  white-space: nowrap;
  position: relative;
}
.d-tabs .dtab.on {
  color: var(--text-1);
  font-weight: 700;
}
.d-tabs .dtab.on::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.d-sec {
  padding: 14px 12px 4px;
}
.d-sec-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.d-sec-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--blue);
  border-radius: 2px;
}
.info-table {
  display: grid;
  grid-template-columns: 78px 1fr 78px 1fr;
  row-gap: 11px;
  font-size: 13.5px;
}
.info-table .it-k {
  color: var(--text-4);
}
.info-table .it-v {
  color: var(--text-1);
}
.info-table .it-v.link {
  color: var(--brand);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}
.info-table .it-v.link svg {
  width: 12px;
  height: 12px;
}
.info-table .it-v.arrow svg {
  width: 13px;
  height: 13px;
  color: var(--text-4);
}
.desc-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}
.around-list .al {
  display: flex;
  align-items: center;
  padding: 9px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-2);
}
.around-list .al:last-child {
  border-bottom: 0;
}
.around-list .al .al-n {
  color: var(--text-1);
}
.around-list .al .al-d {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12.5px;
}
.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.comment-item:last-child {
  border-bottom: 0;
}
.comment-item .ci-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.comment-item .ci-u {
  font-weight: 600;
}
.comment-item .ci-d {
  color: var(--text-4);
  font-size: 12px;
  margin-left: auto;
}
.comment-item .ci-t {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 5px;
  line-height: 1.6;
}
.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 132px;
  padding: 10px 0 0;
}
.trend-bars .tb-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.trend-bars .tb-bar {
  width: 100%;
  max-width: 30px;
  background: linear-gradient(180deg, #ffc4c0, #f04a4a);
  border-radius: 3px 3px 0 0;
  flex: none;
}
.trend-bars .tb-v {
  font-size: 10.5px;
  color: var(--text-3);
  margin-bottom: 4px;
  flex: none;
}
.trend-bars .tb-m {
  font-size: 10px;
  color: var(--text-4);
  margin-top: 4px;
  flex: none;
}

/* 详情底部操作栏 */
.detail-bar {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + var(--safe-b));
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-bar .db-ico {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  color: var(--text-2);
  width: 40px;
  flex: none;
  position: relative;
}
.detail-bar .db-ico svg {
  width: 22px;
  height: 22px;
}
.detail-bar .db-ico .fav-dot {
  position: absolute;
  right: 2px;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--price);
}
.detail-bar .db-agent {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.detail-bar .db-agent img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.detail-bar .db-agent .da-n {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.detail-bar .db-agent .da-s {
  font-size: 11px;
  color: var(--text-3);
}
.detail-bar .db-btns {
  display: flex;
  gap: 8px;
  flex: none;
}
.detail-bar .db-btns .btn {
  height: 38px;
  font-size: 14.5px;
  padding: 0 14px;
}

/* ---------- 客服聊天页 ---------- */
.chat-head {
  flex: none;
  background: #fff;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line-2);
}
.chat-head .ch-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-head .ch-name {
  font-size: 17px;
  font-weight: 700;
}
.chat-head .ch-meta {
  font-size: 12px;
  color: var(--text-3);
  padding-left: 32px;
  margin-top: 1px;
}
.chat-head .ch-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-1);
}
.chat-head .ch-right svg {
  width: 22px;
  height: 22px;
}
.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: none;
}
.chat-body::-webkit-scrollbar {
  display: none;
}
.chat-agent-bar {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.chat-agent-bar img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}
.chat-agent-bar .cab-name {
  font-size: 14px;
  font-weight: 600;
}
.chat-agent-bar .cab-tip {
  font-size: 13px;
  color: var(--price);
  font-weight: 600;
  margin-top: 2px;
}
.chat-agent-bar .cab-wx {
  margin-left: auto;
  flex: none;
  background: #fff6e9;
  color: #c98a2b;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 14px;
}
.chat-house {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 82%;
  margin-bottom: 8px;
}
.chat-house img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.chat-house .chh-b {
  padding: 10px 12px;
}
.chat-house .chh-t {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.chat-house .chh-m {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
}
.chat-house .chh-p {
  font-size: 15px;
  font-weight: 700;
  color: var(--price);
  margin-top: 4px;
}
.chat-house .chh-vr {
  border-top: 1px solid var(--line-2);
  padding: 11px 12px;
  text-align: center;
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 600;
}
.chat-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--text-3);
  background: #eef0f3;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.msg {
  display: flex;
  margin-bottom: 12px;
  gap: 8px;
}
.msg .m-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.msg .m-bubble {
  max-width: 72%;
  background: #fff;
  border-radius: 4px 10px 10px 10px;
  padding: 9px 12px;
  font-size: 14.5px;
  line-height: 1.5;
}
.msg.me {
  flex-direction: row-reverse;
}
.msg.me .m-bubble {
  background: var(--brand);
  color: #fff;
  border-radius: 10px 4px 10px 10px;
}
.msg .m-time {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-4);
  margin: 4px 0 12px;
}
.chat-quick {
  flex: none;
  background: #fff;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line-2);
}
.chat-quick .cq {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-1);
  background: #f4f5f7;
  padding: 5px 11px;
  border-radius: 14px;
}
.chat-quick .cq svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}
.chat-input {
  flex: none;
  background: #fff;
  padding: 8px 12px calc(10px + var(--safe-b));
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-input .ci-ico {
  width: 26px;
  height: 26px;
  color: var(--text-1);
  flex: none;
}
.chat-input input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 14px;
  outline: 0;
  background: #f7f8fa;
}
.chat-input input:focus {
  border-color: var(--brand);
  background: #fff;
}

/* ---------- 消息页 ---------- */
.msg-head {
  background: linear-gradient(180deg, #eaf2fb 0%, #fff 100%);
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
}
.msg-head .mh-t {
  font-size: 24px;
  font-weight: 700;
}
.msg-head .mh-ico {
  margin-left: auto;
  width: 26px;
  height: 26px;
  color: var(--text-1);
}
.msg-item {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  position: relative;
}
.msg-item + .msg-item::before {
  content: '';
  position: absolute;
  left: 62px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-2);
}
.msg-item:active {
  background: #f7f8fa;
}
.msg-item .mi-ava {
  position: relative;
  flex: none;
}
.msg-item .mi-ava img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.msg-item .mi-ava .dot {
  position: absolute;
  right: -2px;
  top: -2px;
}
.msg-item .mi-body {
  flex: 1;
  min-width: 0;
}
.msg-item .mi-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.msg-item .mi-name {
  font-size: 16px;
  font-weight: 700;
}
.msg-item .mi-shop {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-item .mi-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-4);
  flex: none;
}
.msg-item .mi-last {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 我的页面 ---------- */
.me-head {
  background: #fff;
  padding: 20px 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.me-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.me-head .m-nick {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.me-head .m-edit {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 3px;
}
.me-head > div {
  flex: 1;
  min-width: 0;
}
.me-head .m-set {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background-color var(--dur-1) linear, color var(--dur-1) linear,
    transform var(--dur-1) var(--ease-out);
}
.me-head .m-set svg {
  width: 19px;
  height: 19px;
}
.me-head .m-set:active {
  transform: scale(0.92);
}
.me-stats {
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 0 18px;
}
.me-stats .ms {
  text-align: center;
}
.me-stats .ms-v {
  font-size: 19px;
  font-weight: 700;
}
.me-stats .ms-l {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.me-block {
  background: #fff;
  margin: 10px 0 0;
  padding-bottom: 16px;
}
.me-block .mb-title {
  font-size: 17px;
  font-weight: 700;
  padding: 16px 14px 14px;
}
.follow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 8px;
}
.follow-row .fr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-1);
}
.follow-row .fr .fr-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-2) var(--ease-spring),
    background-color var(--dur-1) linear;
}
.follow-row .fr .fr-ico svg {
  width: 22px;
  height: 22px;
}
.follow-row .fr .fr-name {
  font-size: 12px;
  color: var(--text-1);
}
.follow-row .fr .fr-cnt {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.follow-row .fr:active .fr-ico {
  transform: scale(0.94);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 18px;
  padding: 0 8px;
}
.svc-grid .sv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-1);
}
.svc-grid .sv svg {
  width: 28px;
  height: 28px;
  color: #2b3a55;
}




















/* ---------- 城市选择页 ---------- */
.city-search {
  padding: 8px 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.city-search .nb-btn {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--text-1);
}
.city-search .nb-btn svg {
  width: 22px;
  height: 22px;
}
.city-search .cs-box {
  flex: 1;
  height: 38px;
  border-radius: 6px;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}
.city-search .cs-box svg {
  width: 17px;
  height: 17px;
  color: var(--text-3);
  flex: none;
}
.city-search .cs-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
}
.city-gps {
  background: #fff;
  padding: 4px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.city-gps .cg-city {
  font-weight: 600;
}
.city-gps .cg-tip {
  color: var(--text-4);
  font-size: 13px;
}
.city-gps .cg-re {
  margin-left: auto;
  color: var(--blue);
  font-size: 14px;
}
.city-hot {
  background: #f4f5f7;
  padding: 10px 14px 14px;
}
.city-hot .ch-t {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 9px;
}
.city-hot .ch-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.city-hot .ch-row .opt {
  height: 38px;
  background: #fff;
}
.city-group {
  background: #f4f5f7;
}
.city-group .cg-letter {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-3);
}
.city-group .cg-item {
  background: #fff;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
  border-bottom: 1px solid var(--line-2);
}
.city-group .cg-item.on {
  color: var(--brand);
  font-weight: 600;
}
.city-index {
  position: absolute;
  right: 4px;
  top: 110px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 10.5px;
  color: var(--text-2);
  line-height: 1.42;
  font-weight: 600;
}

/* ---------- 文章页 ---------- */
.article {
  background: #fff;
  min-height: 100%;
  padding: 14px 16px 30px;
}
.article .ar-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}
.article .ar-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
}
.article .ar-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.article .ar-author .aa-n {
  font-size: 14.5px;
  font-weight: 600;
}
.article .ar-author .aa-d {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 1px;
}
.article .ar-body p {
  font-size: 16.5px;
  line-height: 1.8;
  color: #222;
  margin-bottom: 18px;
}
.article .ar-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 20px;
}
.article .ar-houses {
  margin-top: 8px;
}

/* ---------- 地图找房 ---------- */
.map-page {
  position: relative;
  height: 100%;
  background: #e9eef2;
}
.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map-canvas .map-pins {
  position: absolute;
  left: 0;
  right: 0;
  top: 128px;
  bottom: 42%;
}
.map-grid {
  position: absolute;
  inset: -40px;
  background: #e8eef1;
}
.map-road {
  position: absolute;
  background: #fff;
}
.map-road.h {
  height: 10px;
  left: -40px;
  right: -40px;
}
.map-road.v {
  width: 10px;
  top: -40px;
  bottom: -40px;
}
.map-road.thin.h {
  height: 5px;
}
.map-road.thin.v {
  width: 5px;
}
.map-block {
  position: absolute;
  background: #dce6e2;
  border-radius: 4px;
}
.map-water {
  position: absolute;
  background: #cfe3f2;
  border-radius: 40% 60% 55% 45%;
}
.map-park {
  position: absolute;
  background: #cfe8d4;
  border-radius: 8px;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}
.map-pin .mp-b {
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 174, 102, 0.35);
  white-space: nowrap;
}
.map-pin .mp-b::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--brand);
}
.map-pin .mp-b {
  position: relative;
}
.map-pin.active .mp-b {
  background: var(--price);
  box-shadow: 0 2px 8px rgba(240, 74, 74, 0.4);
}
.map-pin.active .mp-b::after {
  background: var(--price);
}
.map-pin .mp-n {
  font-size: 10.5px;
  color: var(--text-2);
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.map-me {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(58, 160, 255, 0.2);
  transform: translate(-50%, -50%);
  z-index: 6;
}
.map-top {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  z-index: 10;
}
.map-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  max-height: 42%;
  display: flex;
  flex-direction: column;
}
.map-sheet .ms-handle {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: #e0e2e6;
  margin: 8px auto 4px;
  flex: none;
}
.map-sheet .ms-head {
  flex: none;
  padding: 2px 14px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.map-sheet .ms-head small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
.map-sheet .ms-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}
.map-sheet .ms-list::-webkit-scrollbar {
  display: none;
}
.map-sheet .ms-list .hrow {
  flex: none;
}
.map-sheet .ms-list .hrow .hr-title {
  min-height: 39px;
}

/* ---------- 预约看房弹层 ---------- */
.book-form {
  padding: 4px 2px;
}
.book-form .bf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.book-form .bf-row label {
  font-size: 14.5px;
  color: var(--text-2);
  width: 72px;
  flex: none;
}
.book-form .bf-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
}
.book-form .bf-row .bf-val {
  font-size: 15px;
  color: var(--text-1);
}
.date-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0 2px;
}
.date-chips .chip {
  background: #f4f5f7;
}
.date-chips .chip.on {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  font-weight: 600;
}

/* ---------- 房东页 ---------- */
.landlord-hero {
  background: linear-gradient(135deg, #00ae66 0%, #00c4b4 100%);
  color: #fff;
  padding: 20px 16px 24px;
}
.landlord-hero .lh-t {
  font-size: 22px;
  font-weight: 700;
}
.landlord-hero .lh-s {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 5px;
}
.lh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.lh-stats .lhs {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.lh-stats .lhs-v {
  font-size: 18px;
  font-weight: 700;
}
.lh-stats .lhs-l {
  font-size: 11.5px;
  opacity: 0.9;
  margin-top: 2px;
}
.step-list .st {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.step-list .st:last-child {
  border-bottom: 0;
}
.step-list .st-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step-list .st-t {
  font-size: 14.5px;
  font-weight: 600;
}
.step-list .st-d {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ---------- 关注/收藏页 ---------- */
.fav-page-head {
  background: #fff;
  padding: 10px 14px 0;
}
.fav-page-head .fph-tabs {
  display: flex;
  gap: 22px;
  padding-bottom: 2px;
}
.fav-page-head .fph-tabs .ft {
  font-size: 15px;
  color: var(--text-3);
  padding-bottom: 9px;
  position: relative;
  white-space: nowrap;
}
.fav-page-head .fph-tabs .ft.on {
  color: var(--text-1);
  font-weight: 700;
}
.fav-page-head .fph-tabs .ft.on::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

/* ============================================================
 * 宽屏自适应（无设备外壳后，页面按浏览器宽度铺满）
 * ============================================================ */
@media (min-width: 720px) {
  /* 页面主体限宽居中，避免内容被拉伸得过散 */
  .page {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
  }

  /* 房源列表：单列 → 多列，同行卡片等高 */
  .hlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  /* 首页推荐：两列 → 自适应多列 */
  .house-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
  }
  /* 金刚区：限宽，避免图标间距过散 */
  .kk-grid {
    max-width: 760px;
    margin: 0 auto;
  }
  /* 文章横滑区：改为自适应网格，铺满可用宽度 */
  .hscroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    overflow-x: visible;
  }
  .hscroll .art-card {
    width: auto;
  }
  /* 地图底部面板：房源卡片多列 */
  .map-sheet .ms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 10px;
    align-items: stretch;
  }
  /* 底部 TabBar / 详情操作栏：内容居中限宽 */
  .tabbar {
    padding-left: max(0px, calc(50% - 360px));
    padding-right: max(0px, calc(50% - 360px));
  }
  .detail-bar {
    padding-left: max(12px, calc(50% - 420px));
    padding-right: max(12px, calc(50% - 420px));
  }
  /* 通栏按钮限宽居中 */
  .btn-black {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  /* 聊天：气泡与房源卡限宽 */
  .msg .m-bubble {
    max-width: min(72%, 560px);
  }
  .chat-house {
    width: auto;
    max-width: 420px;
  }
  /* 文章正文：限制行宽，保证阅读体验 */
  .article {
    max-width: 820px;
    margin: 0 auto;
  }
  /* 登录/注册表单：限宽居中 */
  /* 底部弹层：居中限宽，避免超宽 */
  .sheet {
    left: 50%;
    right: auto;
    width: 560px;
    margin-left: -280px;
  }
}

@media (min-width: 1100px) {
  .hlist {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
  .house-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  .detail-imgs {
    height: 440px;
  }
}

/* ============================================================
 * 设计打磨层
 * 统一：对比度 / 焦点可见 / 动效曲线 / 按压与悬停 / 滚动条 / 细节一致性
 * ============================================================ */

/* ---------- 基础 ---------- */
::selection {
  background: rgba(0, 174, 102, 0.16);
  color: var(--text-1);
}

html {
  -webkit-text-size-adjust: 100%;
}

button,
[role='button'],
.cell.tap,
.opt,
.chip,
.tab,
.dtab {
  touch-action: manipulation;
}

button {
  -webkit-user-select: none;
  user-select: none;
}

/* 数字等宽，价格/统计不抖动 */
.price,
.mt-val,
.dk-v,
.ms-v,
.lhs-v,
.tb-v,
.info-table .it-v,
.dot {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ---------- 键盘焦点（原先全站 outline:0，键盘用户无反馈） ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* 输入类控件：品牌色光环 */
.searchbar:focus-within,
.city-search .cs-box:focus-within,


.chat-input input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--ring);
}

/* ---------- 图片：占位底色 + 渐显 ---------- */
img {
  background: #eceef1;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
img.on {
  opacity: 1;
}

/* ---------- 动效：统一过渡 ---------- */
.btn,
.btn-primary,
.btn-black,
.chip,
.opt,
.nb-btn,
.tb-item,
.kk-item,
.cell.tap,
.msg-item,
.sl-item,
.ar-item,
.al-item,
.tab,
.dtab,
.rt,
.ft,
.ms-item,
.cq,
.hcard,
.hrow,
.art-card,
.kk-ico,
.kk-dots i,
.map-pin .mp-b {
  transition: transform var(--dur-1) var(--ease-out),
    background-color var(--dur-1) linear, color var(--dur-1) linear,
    box-shadow var(--dur-2) var(--ease-out), opacity var(--dur-1) linear,
    border-color var(--dur-1) linear;
}

/* 按压反馈 */
.btn:active,
.btn-primary:active,
.btn-black:active,
.chip:active,
.opt:active,
.kk-item:active,
.ms-item:active,
.cq:active {
  transform: scale(var(--press));
}
.nb-btn:active,
.tb-item:active {
  transform: scale(0.92);
}
.hcard:active,
.hrow:active,
.art-card:active {
  transform: scale(0.985);
}

/* ---------- 路由切换入场（仅在路由变化时由 JS 加 .page-enter） ---------- */
.page.page-enter {
  animation: page-in var(--dur-3) var(--ease-out) both;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page.page-enter .tabbar .tb-item.on svg {
  animation: icon-pop 0.42s var(--ease-spring) both;
}
@keyframes icon-pop {
  0% {
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------- 滚动容器 ---------- */
.page,
.chat-body,
.sheet-body,
.area-left,
.area-right,
.map-sheet .ms-list {
  overscroll-behavior: contain;
}
.page {
  scroll-padding-top: 44px;
}

/* ---------- Toast ---------- */
#toast {
  bottom: 96px;
  padding: 10px 18px;
  border-radius: 22px;
  background: rgba(24, 26, 30, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 13.5px;
  line-height: 1.5;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-spring);
}
#toast.show {
  transform: translate(-50%, 0) scale(1);
}
/* 弹层打开时 Toast 移到顶部，避免遮挡弹层内容 */
#toast.top {
  bottom: auto;
  top: 56px;
  transform: translate(-50%, -10px) scale(0.96);
}
#toast.top.show {
  transform: translate(-50%, 0) scale(1);
}

/* ---------- 弹层 ---------- */
.mask {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity var(--dur-2) var(--ease-out);
}
.sheet {
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.32s var(--ease-spring);
}

/* ---------- 细节一致性 ---------- */
/* 徽标加白环，与头像/图标分离 */
.dot {
  box-shadow: 0 0 0 1.5px #fff;
}
/* 头像加极细描边，浅色背景下边界清晰 */
.me-head img,
.msg-item .mi-ava img,
.chat-agent-bar img,
.ar-author img,
.m-ava,
.detail-bar .db-agent img {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
/* 标签圆角统一 4px */
.tag {
  border-radius: 4px;
}
/* 详情页强调色统一为品牌绿（原蓝色与全站绿色体系冲突） */
.d-tabs .dtab.on::after,
.d-sec-title::before {
  background: var(--brand);
}
/* 整租/合租切换：移除无效的白色三角装饰 */
.mode-switch .ms-item.on::after {
  display: none;
}
/* 次要文字对比度提升（时间、键名、脚注） */
.mi-time,
.ci-d,
.it-k,
.tb-m,
.loadmore,
.msg .m-time,
.chat-tag,
.hc-meta,
.hr-meta {
  color: var(--text-3);
}
/* 底部栏加极轻投影，替代纯描边的生硬感 */
.tabbar,
.detail-bar {
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.045);
}
/* 空状态：图标加柔和底圆，层级更清晰 */
.empty {
  padding: 72px 24px 64px;
}
.empty svg {
  width: 56px;
  height: 56px;
  padding: 18px;
  box-sizing: content-box;
  border-radius: 50%;
  background: #f1f3f6;
  color: #c3c8d0;
  margin-bottom: 16px;
}
.empty b {
  font-size: 16px;
  margin-bottom: 6px;
}

/* ---------- 桌面端：悬停反馈 + 可见滚动条 ---------- */
@media (hover: hover) and (min-width: 720px) {
  .boot .b-card i {
    height: 220px;
  }
  .hcard:hover,
  .hrow:hover,
  .art-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-m);
  }
  .hc-img img,
  .hr-img img,
  .ac-img img {
    transition: transform var(--dur-3) var(--ease-out),
      opacity var(--dur-3) var(--ease-out);
  }
  .hcard:hover .hc-img img,
  .hrow:hover .hr-img img,
  .art-card:hover .ac-img img {
    transform: scale(1.04);
  }
  .kk-item:hover .kk-ico {
    transform: translateY(-2px) scale(1.06);
  }
  .fr:hover .fr-ico {
    transform: translateY(-2px);
    background: #d9f2e6;
  }
  .me-head .m-set:hover {
    background: #eceef1;
    color: var(--text-1);
  }
  .tb-item:hover,
  .tab:hover,
  .dtab:hover,
  .rt:hover,
  .ft:hover {
    color: var(--text-1);
  }
  .cell.tap:hover,
  .msg-item:hover,
  .sl-item:hover,
  .ar-item:hover,
  .al-item:hover {
    background: #f7f8fa;
  }
  .opt:hover,
  .chip:hover {
    background: #eceef1;
  }
  .opt.on:hover,
  .chip.on:hover {
    background: var(--brand-soft);
  }
  .btn.green:hover,
  .btn-primary:hover {
    background: var(--brand-dark);
  }
  .btn.outline:hover {
    background: var(--price-soft);
  }
  .btn.gray:hover {
    background: #e8eaed;
  }
  .nb-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
  }
  .navbar.on-image .nb-btn:hover {
    background: rgba(0, 0, 0, 0.42);
  }
  .filterbar .fb-item:hover {
    color: var(--brand);
  }
  .msg-item:hover .mi-name {
    color: var(--brand);
  }
  .map-pin:hover .mp-b {
    transform: scale(1.06);
  }
  .chat-quick .cq:hover {
    background: #eceef1;
  }
  .d-mini:hover {
    background: #eef0f3;
  }

  /* 桌面端恢复可见滚动条（移动端保持隐藏） */
  .page,
  .chat-body,
  .sheet-body,
  .area-left,
  .area-right,
  .map-sheet .ms-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
  }
  .page::-webkit-scrollbar,
  .chat-body::-webkit-scrollbar,
  .sheet-body::-webkit-scrollbar,
  .area-left::-webkit-scrollbar,
  .area-right::-webkit-scrollbar,
  .map-sheet .ms-list::-webkit-scrollbar {
    display: block;
    width: 8px;
    height: 8px;
  }
  .page::-webkit-scrollbar-thumb,
  .chat-body::-webkit-scrollbar-thumb,
  .sheet-body::-webkit-scrollbar-thumb,
  .area-left::-webkit-scrollbar-thumb,
  .area-right::-webkit-scrollbar-thumb,
  .map-sheet .ms-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 4px;
  }
  .page::-webkit-scrollbar-thumb:hover,
  .chat-body::-webkit-scrollbar-thumb:hover,
  .sheet-body::-webkit-scrollbar-thumb:hover,
  .area-left::-webkit-scrollbar-thumb:hover,
  .area-right::-webkit-scrollbar-thumb:hover,
  .map-sheet .ms-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
    background-clip: content-box;
  }
  .page::-webkit-scrollbar-track,
  .chat-body::-webkit-scrollbar-track,
  .sheet-body::-webkit-scrollbar-track,
  .area-left::-webkit-scrollbar-track,
  .area-right::-webkit-scrollbar-track,
  .map-sheet .ms-list::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* ---------- 启动骨架屏 ---------- */
.boot {
  padding-bottom: 24px;
}
.boot .b-bar {
  height: 40px;
  margin: 10px 12px 12px;
  border-radius: 20px;
}
.boot .b-kk {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 0;
  margin: 0 12px 12px;
  padding: 16px 6px 14px;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.boot .b-kk i {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin: 0 auto 8px;
}
.boot .b-kk span {
  display: block;
  width: 34px;
  height: 10px;
  border-radius: 5px;
  margin: 0 auto;
}
.boot .b-block {
  margin: 0 12px 12px;
  border-radius: var(--radius-l);
}
.boot .b-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}
.boot .b-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.boot .b-card i {
  display: block;
  height: 180px;
}
.boot .b-card div {
  padding: 10px;
}
.boot .b-card b,
.boot .b-card em {
  display: block;
  height: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.boot .b-card em {
  width: 58%;
  margin-bottom: 0;
}
.sk {
  background: linear-gradient(100deg, #eceef1 30%, #f6f7f9 50%, #eceef1 70%);
  background-size: 200% 100%;
  animation: sk-shine 1.2s linear infinite;
}
@keyframes sk-shine {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* ---------- 更换头像弹层 ---------- */
.av-picker {
  text-align: center;
  padding: 4px 0 2px;
}
.av-prev {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line), var(--shadow-m);
}
.av-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.av-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 22px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out),
    background-color var(--dur-1) linear;
}
.av-upload svg {
  width: 18px;
  height: 18px;
}
.av-upload:active {
  transform: scale(0.97);
  background: #d6f1e5;
}
.av-tip {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 10px;
}
.av-or {
  position: relative;
  margin: 18px 0 2px;
  font-size: 12px;
  color: var(--text-4);
}
.av-or::before,
.av-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 64px);
  height: 1px;
  background: var(--line);
}
.av-or::before {
  left: 0;
}
.av-or::after {
  right: 0;
}
.av-err {
  display: none;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--price);
}
.av-err.on {
  display: block;
}

/* ---------- 实名认证弹层 ---------- */
.vf-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-3);
}
.vf-msg.err {
  color: var(--price);
}
.vf-msg.ok {
  color: var(--brand);
}
.vf-tip {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-4);
}
.vf-ok {
  text-align: center;
  padding: 8px 0 4px;
}
.vf-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.vf-badge svg {
  width: 28px;
  height: 28px;
}
.vf-t {
  font-size: 16px;
  font-weight: 700;
}
.vf-s {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.6;
}
.cell .c-val.strong {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- 尊重系统「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
 * 表单输入行重做：标签与输入文字不再贴边，改为灰底圆角块 + 聚焦光环
 * 覆盖昵称 / 城市 / 实名认证 / 预约看房 / 发布房源等所有 .book-form
 * ============================================================ */
.book-form {
  padding: 2px 0;
}
.book-form .bf-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 14px;
  margin-bottom: 10px;
  background: #f6f7f9;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background-color var(--dur-1) linear,
    border-color var(--dur-1) linear, box-shadow var(--dur-2) var(--ease-out);
}
.book-form .bf-row:last-child {
  margin-bottom: 0;
}
.book-form .bf-row label {
  width: auto;
  min-width: 4.5em;
  flex: none;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}
.book-form .bf-row input,
.book-form .bf-row select,
.book-form .bf-row textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  padding: 13px 0;
  line-height: 1.4;
}
.book-form .bf-row textarea {
  resize: vertical;
  min-height: 76px;
}
.book-form .bf-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%239aa1ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px 16px;
  padding-right: 22px;
}
.book-form .bf-row input::placeholder,
.book-form .bf-row textarea::placeholder {
  color: var(--text-4);
}
.book-form .bf-row:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.book-form .bf-row .bf-val {
  font-size: 15px;
  color: var(--text-1);
  padding: 13px 0;
  text-align: right;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
/* 分组小标题（发布房源等长表单） */
.form-sec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  margin: 16px 2px 8px;
}
.form-sec::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--brand);
}
.form-sec:first-child {
  margin-top: 2px;
}
/* 多选标签组（房源特色） */
.tag-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 6px;
}
.tag-pick .tp {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: #f4f5f7;
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  transition: background-color var(--dur-1) linear, color var(--dur-1) linear,
    box-shadow var(--dur-1) linear, transform var(--dur-1) var(--ease-out);
}
.tag-pick .tp.on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.tag-pick .tp:active {
  transform: scale(0.96);
}
/* 图片上传网格 */
.up-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.up-grid .up-item,
.up-grid .up-add {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f5f7;
}
.up-grid .up-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.up-grid .up-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.up-grid .up-item button svg {
  width: 12px;
  height: 12px;
}
.up-grid .up-add {
  border: 1px dashed #cfd5de;
  background: #fafbfc;
  color: var(--text-3);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.up-grid .up-add svg {
  width: 20px;
  height: 20px;
}
.up-grid .up-add:active {
  background: #f0f2f5;
}

/* ---------- 城市选择弹层（复用城市页样式） ---------- */
.city-sheet .city-search {
  padding: 0 0 10px;
}
.city-sheet .city-body {
  max-height: 52vh;
  overflow-y: auto;
  margin: 0 -14px;
  padding: 0 14px;
  scrollbar-width: none;
}
.city-sheet .city-body::-webkit-scrollbar {
  display: none;
}
.city-sheet .city-hot {
  background: transparent;
  padding: 4px 0 10px;
}
.city-sheet .city-hot .ch-row {
  grid-template-columns: repeat(4, 1fr);
}
.city-sheet .city-group .cg-item.on {
  color: var(--brand);
  font-weight: 600;
}

/* ============================================================
 * 扩展页面：找房卡 / 我的点评 / 优惠券 / 钱包 / 专属服务
 * ============================================================ */
.btn-mini {
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: #f4f5f7;
  color: var(--text-2);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--dur-1) linear, transform var(--dur-1) var(--ease-out);
}
.btn-mini.primary {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.btn-mini:active {
  transform: scale(0.96);
}

/* ---------- 找房卡 ---------- */
.card-list {
  padding: 12px 12px 4px;
}
.fcard {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 14px 14px 12px;
  margin-bottom: 12px;
}
.fcard .fc-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.fcard .fc-t {
  font-size: 16px;
  font-weight: 700;
}
.fcard .fc-tag {
  font-size: 11.5px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 10px;
}
.fcard .fc-rows {
  border-top: 1px solid var(--line-2);
  padding-top: 8px;
}
.fcard .fc-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  font-size: 13.5px;
}
.fcard .fc-row label {
  width: 3em;
  flex: none;
  color: var(--text-3);
}
.fcard .fc-row span {
  color: var(--text-1);
  word-break: break-all;
}
.fcard .fc-f {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.fcard .fc-time {
  font-size: 11.5px;
  color: var(--text-4);
}
.fcard .fc-ops {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ---------- 我的点评 ---------- */
.stars .st {
  color: #dfe2e7;
  font-size: 13px;
  letter-spacing: 1px;
}
.stars .st.on {
  color: #ffb400;
}
.cm-list {
  padding: 12px 12px 4px;
}
.cm-item {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.cm-item .cm-house {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.cm-item .cm-house img,
.cm-item .cm-noimg {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: #f1f3f6;
}
.cm-item .cm-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
}
.cm-item .cm-noimg svg {
  width: 20px;
  height: 20px;
}
.cm-item .cm-hb {
  flex: 1;
  min-width: 0;
}
.cm-item .cm-ht {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-item .cm-hm {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cm-item .cm-hm .price {
  font-size: 14px;
}
.cm-item .cm-house > svg {
  width: 15px;
  height: 15px;
  color: var(--text-4);
  flex: none;
}
.cm-item .cm-body {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.cm-item .cm-time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-4);
}
.cm-item .cm-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  word-break: break-word;
}
.cm-item .cm-ops {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ---------- 优惠券 ---------- */
.cp-tabs {
  display: flex;
  background: #fff;
  padding: 0 8px;
  border-bottom: 1px solid var(--line-2);
}
.cp-tab {
  flex: 1;
  height: 44px;
  font-size: 14.5px;
  color: var(--text-3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: color var(--dur-1) linear;
}
.cp-tab i {
  font-style: normal;
  font-size: 11px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f0f2f5;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.cp-tab.on {
  color: var(--text-1);
  font-weight: 600;
}
.cp-tab.on i {
  background: var(--brand-soft);
  color: var(--brand);
}
.cp-tab.on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: var(--brand);
}
.cp-list,
.cp-center {
  padding: 12px 12px 4px;
}
.cp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 12px 14px 12px 0;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}
.cp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}
.cp-item.used::before,
.cp-item.expired::before {
  background: #d5d8dd;
}
.cp-item .cp-amt {
  width: 92px;
  flex: none;
  text-align: center;
  color: var(--price);
  line-height: 1.2;
}
.cp-item .cp-amt b {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cp-item .cp-amt small {
  font-size: 12px;
  margin-left: 1px;
}
.cp-item .cp-amt span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.cp-item.used .cp-amt,
.cp-item.expired .cp-amt {
  color: #b8bcc4;
}
.cp-item .cp-info {
  flex: 1;
  min-width: 0;
  border-left: 1px dashed var(--line);
  padding-left: 12px;
}
.cp-item .cp-t {
  font-size: 14.5px;
  font-weight: 600;
}
.cp-item .cp-s {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}
.cp-item .cp-d {
  font-size: 11.5px;
  color: var(--text-4);
  margin-top: 3px;
}
.cp-item .cp-btn {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--price);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1) linear;
}
.cp-item .cp-btn:active {
  transform: scale(0.96);
}
.cp-item .cp-btn:disabled {
  opacity: 0.5;
}
.cp-item .cp-state {
  flex: none;
  font-size: 12px;
  color: var(--text-4);
  padding-right: 2px;
}

/* ---------- 钱包 ---------- */
.wl-hero {
  margin: 12px;
  border-radius: var(--radius-xl);
  padding: 20px 18px 18px;
  color: #fff;
  background: linear-gradient(135deg, #00ae66 0%, #00c4b4 100%);
  box-shadow: 0 8px 22px rgba(0, 174, 102, 0.22);
}
.wl-hero .wl-label {
  font-size: 13px;
  opacity: 0.92;
}
.wl-hero .wl-balance {
  font-size: 34px;
  font-weight: 700;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.wl-hero .wl-tip {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 6px;
}
.wl-hero .wl-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.wl-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--dur-1) var(--ease-out);
}
.wl-btn.ghost {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.wl-btn:active {
  transform: scale(0.97);
}
.wl-logs {
  background: #fff;
  margin: 0 12px 12px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.wl-log {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  position: relative;
}
.wl-log + .wl-log::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-2);
}
.wl-log .wl-l {
  flex: 1;
  min-width: 0;
}
.wl-log .wl-lt {
  font-size: 14.5px;
  font-weight: 600;
}
.wl-log .wl-ls {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-log .wl-r {
  text-align: right;
  flex: none;
}
.wl-log .wl-amt {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wl-log .wl-amt.in {
  color: var(--brand);
}
.wl-log .wl-amt.out {
  color: var(--text-1);
}
.wl-log .wl-bal {
  font-size: 11.5px;
  color: var(--text-4);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.quick-amt {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 4px;
}
.quick-amt .qa {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: #f4f5f7;
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-1) linear, color var(--dur-1) linear,
    box-shadow var(--dur-1) linear;
}
.quick-amt .qa.on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.pay-ways {
  display: flex;
  gap: 10px;
}
.pay-way {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  background: #f6f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--dur-1) linear, border-color var(--dur-1) linear;
}
.pay-way input {
  accent-color: var(--brand);
}
.pay-way.on {
  background: #fff;
  border-color: var(--brand);
  color: var(--text-1);
  font-weight: 600;
}

/* ---------- 专属服务 ---------- */
.vip-hero {
  margin: 12px;
  border-radius: var(--radius-xl);
  padding: 22px 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #2b3a55 0%, #1b2330 100%);
  box-shadow: 0 10px 26px rgba(27, 35, 48, 0.25);
  position: relative;
  overflow: hidden;
}
.vip-hero.on {
  background: linear-gradient(135deg, #c79a3c 0%, #8a6420 100%);
}
.vip-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.vip-hero .vh-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vip-hero .vh-badge svg {
  width: 22px;
  height: 22px;
}
.vip-hero .vh-t {
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
}
.vip-hero .vh-s {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}
.vip-hero .vh-price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.vip-hero .vh-price b {
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vip-hero .vh-price span {
  font-size: 13px;
  opacity: 0.85;
}
.vip-rights {
  background: #fff;
  margin: 0 12px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 4px 14px;
}
.vip-rights .vr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  position: relative;
}
.vip-rights .vr + .vr::before {
  content: '';
  position: absolute;
  left: 44px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-2);
}
.vip-rights .vr-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.vip-rights .vr-ico svg {
  width: 18px;
  height: 18px;
}
.vip-rights .vr-b {
  flex: 1;
  min-width: 0;
}
.vip-rights .vr-t {
  font-size: 14.5px;
  font-weight: 600;
}
.vip-rights .vr-d {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.vip-rights .vr-ok {
  color: var(--brand);
  flex: none;
}
.vip-rights .vr-ok svg {
  width: 18px;
  height: 18px;
}
.vip-foot {
  padding: 18px 12px 8px;
}
.vip-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 10px;
}

/* ============================================================
 * 租房订单：签约单 / 我的订单 / 订单详情
 * ============================================================ */
/* 我的页 · 我的订单入口 */
.me-order {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  margin: 10px 0 0;
  padding: 14px 14px;
  cursor: pointer;
  transition: background-color var(--dur-1) linear;
}
.me-order:active {
  background: #f7f8fa;
}
.me-order .mo-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.me-order .mo-ico svg {
  width: 19px;
  height: 19px;
}
.me-order .mo-b {
  flex: 1;
  min-width: 0;
}
.me-order .mo-t {
  font-size: 15px;
  font-weight: 600;
}
.me-order .mo-s {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.me-order .mo-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--price);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.me-order > svg {
  width: 15px;
  height: 15px;
  color: var(--text-4);
  flex: none;
}

/* 签约单 */
.od-sec {
  background: #fff;
  margin-top: 10px;
  padding: 14px 14px 6px;
}
.od-sec .form-sec {
  margin-top: 0;
}
.od-house {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
}
.od-house img {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.od-house .od-hb {
  flex: 1;
  min-width: 0;
}
.od-house .od-ht {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.od-house .od-hm {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.od-house .od-hp {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.od-house .od-pay {
  font-size: 11.5px;
  color: var(--text-3);
}
.oc-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--brand);
  padding: 2px 2px 10px;
}
.oc-verified.warn {
  color: var(--orange);
}
.oc-verified svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.oc-clauses {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0 4px;
}
.oc-clause {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.oc-clause input {
  accent-color: var(--brand);
  margin-top: 2px;
  flex: none;
}
.od-fee {
  padding: 2px 0 12px;
}
.od-fee .of-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--text-2);
}
.od-fee .of-row b {
  font-weight: 500;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.od-fee .of-row.minus b {
  color: var(--price);
}
.od-fee .of-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
}
.od-fee .of-total b {
  font-size: 20px;
  color: var(--price);
  font-variant-numeric: tabular-nums;
}
.od-fee .of-note {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 8px;
  line-height: 1.6;
}
.od-bar {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: auto;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.045);
  padding: 9px 12px calc(9px + var(--safe-b));
  display: flex;
  align-items: center;
  gap: 10px;
}
.od-bar .od-bar-l {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  color: var(--text-2);
}
.od-bar .od-bar-l b {
  font-size: 22px;
  color: var(--price);
  font-variant-numeric: tabular-nums;
}
.od-bar .od-bar-tip {
  flex: 1;
  text-align: right;
  font-size: 12.5px;
  color: var(--text-3);
}

/* 支付弹层 */
.pay-amount {
  text-align: center;
  padding: 6px 0 16px;
}
.pay-amount span {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}
.pay-amount b {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.pay-ways.col {
  flex-direction: column;
}
.pay-ways.col .pay-way {
  justify-content: flex-start;
  padding: 0 14px;
}
.pay-ways.col .pay-way em {
  margin-left: auto;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.pay-way.disabled {
  opacity: 0.55;
}

/* 订单列表 */
.od-list {
  padding: 12px 12px 4px;
}
.od-item {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.od-item .od-ihead {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.od-item .od-no {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.od-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f0f2f5;
  color: var(--text-2);
}
.od-status.orange {
  background: var(--orange-soft);
  color: #d97b00;
}
.od-status.blue {
  background: var(--blue-soft);
  color: #1c7fd6;
}
.od-status.green {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.od-status.red {
  background: var(--price-soft);
  color: var(--price);
}
.od-status.gray {
  background: #f0f2f5;
  color: var(--text-3);
}
.od-item .od-ibody {
  display: flex;
  gap: 12px;
  padding: 12px 0 10px;
}
.od-item .od-ibody img {
  width: 84px;
  height: 63px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}
.od-item .od-ib {
  flex: 1;
  min-width: 0;
}
.od-item .od-it {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-item .od-im {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}
.od-item .od-id {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}
.od-item .od-ifoot {
  display: flex;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.od-item .od-iamt {
  font-size: 13px;
  color: var(--text-2);
}
.od-item .od-iamt b {
  color: var(--price);
  font-variant-numeric: tabular-nums;
}
.od-item .od-itime {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-4);
}

/* 订单详情 */
.od-head {
  background: #fff;
  padding: 16px 14px 12px;
}
.od-head .od-hstatus {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 11px;
  background: #f0f2f5;
  color: var(--text-2);
}
.od-head .od-hstatus.orange {
  background: var(--orange-soft);
  color: #d97b00;
}
.od-head .od-hstatus.blue {
  background: var(--blue-soft);
  color: #1c7fd6;
}
.od-head .od-hstatus.green {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.od-head .od-hstatus.red {
  background: var(--price-soft);
  color: var(--price);
}
.od-head .od-hno {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.od-head .od-hreason {
  font-size: 12.5px;
  color: var(--price);
  margin-top: 6px;
  line-height: 1.6;
}
.od-steps {
  display: flex;
  background: #fff;
  padding: 6px 14px 16px;
  border-top: 1px solid var(--line-2);
}
.od-steps .ods {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 11.5px;
  color: var(--text-4);
}
.od-steps .ods::before {
  content: '';
  position: absolute;
  left: -50%;
  top: 11px;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.od-steps .ods:first-child::before {
  display: none;
}
.od-steps .ods.on::before {
  background: var(--brand);
}
.od-steps .ods-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f2f5;
  color: var(--text-4);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.od-steps .ods-dot svg {
  width: 13px;
  height: 13px;
}
.od-steps .ods.on .ods-dot {
  background: var(--brand);
  color: #fff;
}
.od-steps .ods.on .ods-t {
  color: var(--text-1);
  font-weight: 600;
}
.od-steps.failed .ods-dot {
  background: #f0f2f5;
  color: var(--text-4);
}
.od-card {
  background: #fff;
  margin-top: 10px;
  padding: 14px;
}
.od-card .od-ct-h {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}
.od-card .od-ct-h b {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.od-kv {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  padding: 5px 0;
}
.od-kv label {
  width: 4.5em;
  flex: none;
  color: var(--text-3);
}
.od-kv span {
  color: var(--text-1);
  word-break: break-all;
}
.od-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}
.od-link svg {
  width: 15px;
  height: 15px;
  color: var(--text-4);
}
.od-link:disabled {
  opacity: 0.5;
}
.od-note {
  font-size: 12px;
  color: var(--text-4);
  padding: 4px 0;
}
.od-trace {
  padding: 4px 0 2px;
}
.od-trace .otr {
  display: flex;
  gap: 10px;
  padding: 6px 0 6px 4px;
  position: relative;
}
.od-trace .otr::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
}
.od-trace .otr:last-child::before {
  display: none;
}
.od-trace .otr-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5d8dd;
  margin-top: 5px;
  flex: none;
  position: relative;
  z-index: 1;
}
.od-trace .otr.on .otr-dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.od-trace .otr-d {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.od-trace .otr.on .otr-d {
  color: var(--text-1);
  font-weight: 600;
}
.od-trace .otr-t {
  font-size: 11.5px;
  color: var(--text-4);
  margin-top: 2px;
}

/* 合同纸张 */
.ct-paper {
  background: #fffdf8;
  border: 1px solid #efe6d2;
  border-radius: 8px;
  padding: 18px 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #2b2b2b;
}
.ct-paper .ct h2 {
  text-align: center;
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: 2px;
}
.ct-paper .ct-no {
  text-align: center;
  font-size: 11.5px;
  color: #8a8a8a;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.ct-paper .ct h3 {
  font-size: 14px;
  margin: 14px 0 4px;
  color: #1a1a1a;
}
.ct-paper .ct p {
  margin: 2px 0;
}
.ct-paper .ct ul {
  margin: 4px 0;
  padding-left: 18px;
}
.ct-paper .ct li {
  margin: 2px 0;
}
.ct-paper .ct-sign {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 13px;
}
.ct-paper .ct-date {
  margin-top: 10px;
  font-size: 12px;
  color: #8a8a8a;
}

/* ============================================================
 * 登录页（全新设计：品牌头 + 卡片表单 + 演示登录）
 * ============================================================ */
.lg-page {
  background: linear-gradient(180deg, #e8f7ef 0%, #f4f5f7 42%);
}
.lg-hero {
  padding: 8px 16px 18px;
  position: relative;
}
.lg-back {
  color: var(--text-1);
}
.lg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.lg-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 174, 102, 0.28);
}
.lg-logo svg {
  width: 28px;
  height: 28px;
}
.lg-bname {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.lg-bslogan {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 3px;
}
.lg-card {
  margin: 0 14px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-m);
  padding: 20px 18px 18px;
}
.lg-sub {
  font-size: 13px;
  color: var(--text-3);
}
.lg-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  margin-top: 14px;
  padding: 0 14px;
  background: #f6f7f9;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background-color var(--dur-1) linear, border-color var(--dur-1) linear,
    box-shadow var(--dur-2) var(--ease-out);
}
.lg-field:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.lg-prefix {
  font-size: 15px;
  color: var(--text-2);
  padding-right: 10px;
  border-right: 1px solid var(--line);
  flex: none;
}
.lg-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text-1);
}
.lg-field input::placeholder {
  color: var(--text-4);
}
.lg-code {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  padding-left: 10px;
}
.lg-code:disabled {
  color: var(--text-4);
}
.lg-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
  cursor: pointer;
}
.lg-agree .la-radio {
  margin-top: 1px;
}
.lg-agree a {
  color: var(--brand);
  font-weight: 500;
}
.lg-go {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border-radius: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 174, 102, 0.28);
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) linear,
    opacity var(--dur-1) linear;
}
.lg-go:active {
  transform: scale(0.98);
}
.lg-go:disabled,
.lg-go.disabled {
  background: #a5e3c8;
  box-shadow: none;
}
.lg-demo {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  border-radius: 19px;
  background: transparent;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 500;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) linear;
}
.lg-demo:active {
  transform: scale(0.98);
  background: var(--brand-soft);
}
.lg-demo:disabled {
  opacity: 0.6;
}
.lg-ways {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  text-align: center;
}
.lg-ways .lw-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: #f6f7f9;
  font-size: 14px;
  color: var(--text-2);
  transition: background-color var(--dur-1) linear, transform var(--dur-1) var(--ease-out);
}
.lg-ways .lw-ico svg {
  width: 20px;
  height: 20px;
  color: #07c160;
}
.lg-ways .lw-ico:active {
  background: #eceef2;
  transform: scale(0.98);
}

/* ---------- 协议页 ---------- */
.ag-page {
  background: #fff;
  padding: 16px 18px 30px;
}
.ag-meta {
  font-size: 12px;
  color: var(--text-4);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.ag-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}
.ag-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 20px 0 6px;
}
.ag-body p {
  margin: 6px 0;
}
.ag-body ul {
  margin: 6px 0;
  padding-left: 18px;
}
.ag-body li {
  margin: 4px 0;
}
.ag-body b {
  color: var(--text-1);
  font-weight: 600;
}

/* ---------- 聊天：发送按钮 + 加号九宫格 ---------- */
.chat-input .ci-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-1);
  flex: none;
  transition: background-color var(--dur-1) linear, transform var(--dur-1) var(--ease-out);
}
.chat-input .ci-ico svg {
  width: 22px;
  height: 22px;
}
.chat-input .ci-ico:active {
  background: #f0f2f5;
  transform: scale(0.92);
}
.chat-input .ci-ico.on {
  background: var(--brand-soft);
  color: var(--brand);
}
.chat-input .ci-send {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) linear;
}
.chat-input .ci-send:active {
  transform: scale(0.96);
  background: var(--brand-dark);
}
.chat-panel {
  flex: none;
  background: #f7f8fa;
  border-top: 1px solid var(--line-2);
  padding: 14px 10px calc(14px + var(--safe-b));
  animation: panel-up var(--dur-2) var(--ease-out) both;
}
@keyframes panel-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 0;
}
.cp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.cp-cell .cp-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  color: #2b3a55;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-s);
  transition: transform var(--dur-1) var(--ease-out);
}
.cp-cell .cp-ico svg {
  width: 24px;
  height: 24px;
}
.cp-cell:active .cp-ico {
  transform: scale(0.94);
}
/* 富媒体消息 */
.msg .m-img {
  max-width: 62%;
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-s);
}
.msg .m-card {
  width: 210px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.msg .m-card .mc-map {
  height: 72px;
  background: linear-gradient(135deg, #e4f1ff, #e7f7ef);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg .m-card .mc-map svg {
  width: 26px;
  height: 26px;
}
.msg .m-card .mc-b,
.msg .m-card.order {
  padding: 9px 11px 11px;
}
.msg .m-card .mc-tag {
  display: inline-block;
  font-size: 10.5px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 1px 6px;
  border-radius: 8px;
  margin-bottom: 5px;
}
.msg .m-card .mc-t {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg .m-card .mc-s {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg .m-card .mc-p {
  display: flex;
  align-items: baseline;
  margin-top: 6px;
}
.msg .m-card .mc-p .price {
  font-size: 16px;
}
.msg .m-card .mc-st {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-3);
}
.od-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.od-pick-item {
  text-align: left;
  background: #f6f7f9;
  border-radius: 10px;
  padding: 12px 14px;
}
.od-pick-item .opi-t {
  font-size: 14.5px;
  font-weight: 600;
}
.od-pick-item .opi-s {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}
.od-pick-item .opi-p {
  font-size: 13px;
  color: var(--price);
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- 个人信息页（视觉重做） ---------- */
.pf-page {
  background: #f4f5f7;
}
.pf-nav {
  background: transparent;
}
.pf-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 12px 12px;
  padding: 18px 16px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #00ae66 0%, #00c4b4 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 174, 102, 0.2);
}
.pf-hero .pf-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
  flex: none;
  background: #fff;
}
.pf-hero .pf-hb {
  flex: 1;
  min-width: 0;
}
.pf-hero .pf-name {
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-hero .pf-phone {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.pf-hero .pf-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.pf-hero .pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pf-hero .pf-badge svg {
  width: 12px;
  height: 12px;
}
.pf-hero .pf-badge.vip {
  background: rgba(255, 214, 102, 0.9);
  color: #6b4a00;
}
.pf-group {
  background: #fff;
  margin: 0 12px 12px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.pf-group .pf-gt {
  font-size: 12.5px;
  color: var(--text-3);
  padding: 12px 14px 4px;
}
.pf-cell {
  padding: 0 14px;
  min-height: 54px;
  gap: 10px;
}
.pf-cell .pf-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f4f5f7;
  color: #2b3a55;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pf-cell .pf-ico svg {
  width: 16px;
  height: 16px;
}
.pf-cell .c-label {
  font-size: 15px;
}
.pf-cell + .pf-cell::before {
  left: 52px;
}
.pf-logout {
  margin: 4px 12px 0;
}
.pf-logout button {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-l);
  background: #fff;
  color: var(--price);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-s);
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) linear;
}
.pf-logout button svg {
  width: 18px;
  height: 18px;
}
.pf-logout button:active {
  transform: scale(0.98);
  background: var(--price-soft);
}
.pf-foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-4);
  padding: 18px 0 24px;
}
/* 手机号提示弹层 */
.pf-tip {
  text-align: center;
  padding: 8px 6px 4px;
}
.pf-tip .pf-tip-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.pf-tip .pf-tip-ico svg {
  width: 24px;
  height: 24px;
}
.pf-tip .pf-tip-t {
  font-size: 16px;
  font-weight: 700;
}
.pf-tip .pf-tip-s {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: 6px;
}

/* ============================================================
 * 我的页面（视觉升级：品牌渐变头部 + 卡片化分区）
 * ============================================================ */
.me-page {
  background: #f4f5f7;
}
.me-head {
  margin: 0 12px 12px;
  padding: 18px 16px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #00ae66 0%, #00c4b4 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 174, 102, 0.2);
  align-items: flex-start;
}
.me-head img {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  flex: none;
}
.me-head .m-nick {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
}
.me-head .m-edit {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.me-head .m-edit::after {
  content: '›';
  font-size: 14px;
  line-height: 1;
}
.me-head .me-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.me-head .me-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
}
.me-head .me-badge svg {
  width: 12px;
  height: 12px;
}
.me-head .me-badge.on {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
}
.me-head .me-badge.vip {
  background: rgba(255, 214, 102, 0.92);
  color: #6b4a00;
}
.me-head .m-set {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 34px;
  height: 34px;
}
.me-head .m-set:hover {
  background: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.me-stats {
  margin: 0 12px 12px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 14px 0 12px;
}
.me-stats .ms-v {
  font-size: 21px;
}
.me-stats .ms-l {
  margin-top: 3px;
}
.me-order {
  margin: 0 12px 12px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 14px;
}
.me-block {
  margin: 0 12px 12px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding-bottom: 16px;
}
.me-block .mb-title {
  padding: 15px 14px 12px;
  font-size: 16px;
}
.svc-grid {
  grid-template-columns: repeat(3, 1fr);
  row-gap: 20px;
  padding: 0 6px;
}
.svc-grid .sv {
  gap: 8px;
}
.svc-grid .sv svg {
  width: 26px;
  height: 26px;
}
.loadmore {
  padding: 6px 0 20px;
}

/* ============================================================
 * 我的记录（看房预约 / 我的合同）卡片
 * ============================================================ */
.rc-list {
  padding: 12px 12px 4px;
}
.rc-item {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 13px 14px;
  margin-bottom: 12px;
}
.rc-item[data-go] {
  cursor: pointer;
}
.rc-item .rc-h {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rc-item .rc-img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.rc-item .rc-b {
  flex: 1;
  min-width: 0;
}
.rc-item .rc-t {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-item .rc-m {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-item .rc-m .price {
  font-size: 14px;
}
.rc-item .rc-st {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 11px;
  white-space: nowrap;
}
.rc-item .rc-remark {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  background: #f7f8fa;
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-word;
}
.rc-item .rc-f {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
}
.rc-item .rc-when {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.rc-item .rc-when .rc-ico {
  color: var(--brand);
  display: flex;
}
.rc-item .rc-when .rc-ico svg {
  width: 15px;
  height: 15px;
}
.rc-item .rc-when b {
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}
.rc-item .rc-who {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
  word-break: break-all;
}
.rc-item .rc-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rc-item .rc-ops .btn-mini {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  white-space: nowrap;
  flex: none;
}
.rc-item .rc-ops .btn-mini svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}
.btn-mini.danger {
  background: var(--price-soft);
  color: var(--price);
}
.rc-item .rc-m.wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* 协议勾选框（登录页） */
.la-radio {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.4px solid #c5c8ce;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-1) linear, border-color var(--dur-1) linear;
}
.la-radio.on {
  border-color: var(--brand);
  background: var(--brand);
}
.la-radio.on::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ============================================================
 * 聊天：拨号按钮 + 更多操作菜单 + 管家资料卡
 * ============================================================ */
.chat-head .ch-right .ch-call {
  text-decoration: none;
  color: var(--text-1);
}
.more-menu {
  padding: 2px 0 6px;
}
.more-menu .mm-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--text-1);
  text-align: left;
  position: relative;
  transition: background-color var(--dur-1) linear;
}
.more-menu .mm-item + .mm-item::before {
  content: '';
  position: absolute;
  left: 36px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-2);
}
.more-menu .mm-item:active {
  background: #f7f8fa;
}
.more-menu .mm-item > svg:first-child {
  width: 20px;
  height: 20px;
  color: #2b3a55;
  flex: none;
}
.more-menu .mm-item span {
  flex: 1;
  min-width: 0;
}
.more-menu .mm-item em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.more-menu .mm-item .mm-arrow {
  width: 15px;
  height: 15px;
  color: var(--text-4);
  flex: none;
}
.more-menu .mm-item.danger {
  color: var(--price);
}
.more-menu .mm-item.danger > svg:first-child {
  color: var(--price);
}
/* 管家资料卡 */
.ag-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 2px 14px;
}
.ag-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #f1f3f6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.ag-card .ag-b {
  min-width: 0;
  flex: 1;
}
.ag-card .ag-n {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ag-card .ag-off {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 7px;
  border-radius: 9px;
}
.ag-card .ag-s {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 3px;
}
.ag-rows {
  background: #f6f7f9;
  border-radius: 12px;
  padding: 4px 14px;
}
.ag-rows .ag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  position: relative;
}
.ag-rows .ag-row + .ag-row::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}
.ag-rows .ag-row label {
  width: 5em;
  flex: none;
  color: var(--text-3);
}
.ag-rows .ag-row span {
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ============================================================
 * 列表页导航栏：搜索框可收缩，避免右侧图标被挤出视口
 * ============================================================ */
.navbar .nav-search {
  flex: 1 1 0%;
  min-width: 0;
  margin: 0 0 0 6px;
  height: 36px;
  padding: 0 12px;
  background: #f4f5f7;
  box-shadow: none;
  border-color: transparent;
}
.navbar .nav-search .sb-input {
  font-size: 13.5px;
}

/* ============================================================
 * 聊天页视觉精修：头部 / 管家条 / 气泡 / 房源卡 / 快捷语 / 输入栏
 * ============================================================ */
/* 头部：姓名与副标题对齐，右侧按钮等距 */
.chat-head {
  padding: 10px 12px 11px;
  box-shadow: 0 1px 0 var(--line-2);
  border-bottom: 0;
}
.chat-head .ch-top {
  gap: 4px;
}
.chat-head .ch-name {
  font-size: 17px;
  letter-spacing: 0.2px;
  margin-left: 2px;
}
.chat-head .ch-meta {
  font-size: 11.5px;
  color: var(--text-3);
  padding-left: 40px;
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.chat-head .ch-right {
  gap: 6px;
}
.chat-head .ch-right .nb-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: background-color var(--dur-1) linear;
}
.chat-head .ch-right .nb-btn:active {
  background: #f2f4f7;
}
.chat-head .ch-right .nb-btn svg {
  width: 21px;
  height: 21px;
}

/* 管家信息条：白卡 + 认证徽标 + 绿色胶囊按钮 */
.chat-body {
  padding: 12px 12px 16px;
}
.chat-agent-bar {
  padding: 12px 13px;
  border-radius: 12px;
  box-shadow: var(--shadow-s);
  gap: 11px;
  margin-bottom: 16px;
}
.chat-agent-bar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.chat-agent-bar .cab-b {
  min-width: 0;
  flex: 1;
}
.chat-agent-bar .cab-name {
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.chat-agent-bar .cab-ok {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 1px 6px 1px 4px;
  border-radius: 8px;
}
.chat-agent-bar .cab-ok svg {
  width: 10px;
  height: 10px;
}
.chat-agent-bar .cab-tip {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 3px;
}
.chat-agent-bar .cab-wx {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 16px;
  flex: none;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) linear;
}
.chat-agent-bar .cab-wx svg {
  width: 13px;
  height: 13px;
}
.chat-agent-bar .cab-wx:active {
  transform: scale(0.96);
  background: #d6f5e6;
}

/* 消息气泡：更柔和的圆角与间距 */
#chat-msgs .msg {
  margin-bottom: 14px;
  gap: 9px;
  align-items: flex-start;
}
#chat-msgs .msg .m-ava {
  width: 36px;
  height: 36px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
#chat-msgs .msg .m-bubble {
  max-width: 74%;
  padding: 10px 13px;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 1px 2px rgba(20, 24, 30, 0.05);
}
#chat-msgs .msg.me .m-bubble {
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 174, 102, 0.22);
}
#chat-msgs .msg:last-child {
  margin-bottom: 4px;
}

/* 聊天房源卡 */
.chat-house {
  width: 78%;
  border-radius: 12px;
  box-shadow: var(--shadow-s);
  margin-bottom: 0;
}
.chat-house img {
  height: 148px;
}
.chat-house .chh-b {
  padding: 11px 13px 12px;
}
.chat-house .chh-t {
  font-size: 14.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-house .chh-m {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 5px;
}
.chat-house .chh-p {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.chat-house .chh-p .price {
  font-size: 17px;
  font-weight: 700;
}
.chat-house .chh-p small {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
}
.chat-house .chh-vr {
  border-top: 1px solid var(--line-2);
  padding: 11px 13px;
  text-align: center;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #fbfdfc;
}
.chat-house .chh-vr:active {
  background: var(--brand-soft);
}

/* 快捷语：横向可滚动、不换行挤压 */
.chat-quick {
  padding: 9px 12px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line-2);
}
.chat-quick::-webkit-scrollbar {
  display: none;
}
.chat-quick .cq {
  flex: none;
  white-space: nowrap;
  background: #f4f5f7;
  color: var(--text-2);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 15px;
  transition: background-color var(--dur-1) linear, transform var(--dur-1) var(--ease-out);
}
.chat-quick .cq:active {
  background: #e9ecf1;
  transform: scale(0.97);
}
.chat-quick .cq svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

/* 输入栏 */
.chat-input {
  padding: 8px 12px calc(10px + var(--safe-b));
  gap: 8px;
  border-top: 1px solid var(--line-2);
}
.chat-input input {
  height: 38px;
  border-radius: 19px;
  border: 1px solid transparent;
  background: #f4f5f7;
  padding: 0 14px;
  font-size: 14.5px;
  transition: background-color var(--dur-1) linear, border-color var(--dur-1) linear,
    box-shadow var(--dur-2) var(--ease-out);
}
.chat-input input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--ring);
}
