/* 首页样式 - 完整响应式 */

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, #0BA5E9 0%, #00C9FF 50%, #92FE9D 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='80' opacity='.08'>🌴</text></svg>") repeat;
  background-size: cover, cover, 200px 200px;
}

.hero__content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 0;
  color: #fff;
  text-align: center;
}

.hero__title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero__search {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero__search-tabs {
  display: flex;
  padding: 0 12px;
  gap: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.hero__search-tab {
  padding: 10px 16px;
  font-size: 14px;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  white-space: nowrap;
}

.hero__search-tab.active {
  color: #0BA5E9;
  border-bottom-color: #0BA5E9;
  font-weight: 500;
}

.hero__search-input {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.hero__search-icon {
  font-size: 18px;
  margin-right: 8px;
  color: #999;
  flex-shrink: 0;
}

.hero__search-input input {
  flex: 1;
  font-size: 15px;
  padding: 8px 0;
  background: transparent;
  min-width: 0;
}

.hero__search-input input::placeholder { color: #b0b0b0; }

.hero__search-btn {
  padding: 10px 28px;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.hero__search-btn:hover { transform: translateY(-1px); }

.hero__hot {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero__hot-label { margin-right: 8px; opacity: 0.85; }

.hero__hot a {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 4px 4px 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 12px;
  transition: background 0.2s;
}

.hero__hot a:hover { background: rgba(255, 255, 255, 0.3); }

/* ========== 快捷入口 ========== */
.quick {
  max-width: 1280px;
  margin: -32px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.quick__grid {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  text-align: center;
}

.quick__item:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.quick__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.quick__label {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}

/* ========== 房源卡片网格 ========== */
.house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.house-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.house-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.house-card__img {
  position: relative;
  width: 100%;
  padding-top: 70%;
  background: #f0f0f0;
  overflow: hidden;
}

.house-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.house-card:hover .house-card__img img { transform: scale(1.05); }

.house-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 1;
  max-width: calc(100% - 16px);
}

.house-card__tag {
  position: relative;
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 107, 107, 0.9);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.house-card__tag--video { background: rgba(0, 0, 0, 0.65); }
.house-card__tag--new { background: rgba(64, 158, 255, 0.92); }
.house-card__tag--secondary { background: rgba(78, 205, 196, 0.9); }
.house-card__tag--rent { background: rgba(255, 152, 0, 0.92); }
.house-card__tag--pt { background: rgba(58, 72, 92, 0.88); }
/* 房源亮点标签（发布页录入的 tags）：白底蓝字，与类型/业态标签区分 */
.house-card__tag--tag { background: rgba(255, 255, 255, 0.94); color: #0b6cff; }
.house-card__tag--promo {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  background: linear-gradient(90deg, #ff5a3c, #ff8c3c);
  box-shadow: 0 1px 4px rgba(255, 90, 60, 0.4);
}

.house-card__info { padding: 12px 14px; }

.house-card__title {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.house-card__meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.house-card__meta-tag {
  background: #f0f9ff;
  color: #0BA5E9;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.house-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.house-card__price-num {
  font-size: 20px;
  font-weight: 700;
  color: #FF6B6B;
}

.house-card__price-unit {
  font-size: 12px;
  color: #FF6B6B;
}

/* 新房多物业：物业｜面积区间｜均价 多行展示 */
.house-card__ml-line {
  font-size: 14px;
  font-weight: 700;
  color: #FF4014;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 小区网格 ========== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.community-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.community-card__img {
  width: 100%;
  padding-top: 65%;
  position: relative;
  background: #f0f0f0;
  overflow: hidden;
}

.community-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card__body { padding: 12px 14px; }

.community-card__name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card__addr {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card__price {
  font-size: 14px;
  color: #FF6B6B;
  font-weight: 500;
}

/* ========== 资讯列表 ========== */
.news-list {
  background: #fff;
  border-radius: 12px;
  padding: 4px 0;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.news-item:hover { background: #fafafa; }
.news-item:last-child { border-bottom: none; }

.news-item__cover {
  width: 160px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}

.news-item__cover img { width: 100%; height: 100%; object-fit: cover; }

.news-item__body { flex: 1; min-width: 0; }

.news-item__title {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.news-item__summary {
  font-size: 13px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  margin-bottom: 6px;
}

.news-item__meta {
  font-size: 12px;
  color: #b0b0b0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== About band ========== */
.about-band {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  margin-top: 32px;
  padding: 48px 24px;
}

.about-band__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-band__item {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.about-band__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.about-band__icon { font-size: 40px; margin-bottom: 12px; }

.about-band__title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.about-band__desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

/* ========== 响应式：平板 ========== */
@media (max-width: 1024px) {
  .hero { height: 340px; }
  .hero__title { font-size: 32px; }
  .hero__content { padding: 56px 16px 0; }
  .quick { padding: 0 16px; }
  .quick__grid { padding: 16px; gap: 4px; }
  .quick__item { padding: 8px 4px; }
  .quick__icon { width: 44px; height: 44px; font-size: 22px; }
  .house-grid, .community-grid { grid-template-columns: repeat(3, 1fr); }
  .about-band__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 响应式：手机 ========== */
@media (max-width: 768px) {
  .hero { height: auto; padding-bottom: 24px; }
  .hero__content { padding: 32px 16px 0; }
  .hero__title { font-size: 24px; margin-bottom: 8px; }
  .hero__subtitle { font-size: 13px; margin-bottom: 20px; }

  .hero__search { padding: 4px; border-radius: 10px; }
  .hero__search-tabs { padding: 0 8px; }
  .hero__search-tab { padding: 8px 10px; font-size: 13px; }
  .hero__search-input { padding: 6px 8px; }
  .hero__search-icon { font-size: 16px; margin-right: 4px; }
  .hero__search-input input { font-size: 14px; min-width: 0; }
  .hero__search-input input::placeholder { font-size: 12px; }
  .hero__search-btn { padding: 8px 14px; font-size: 13px; }

  .hero__hot { font-size: 12px; padding: 0 8px; text-align: center; margin-top: 16px; }
  .hero__hot-label { display: block; margin-bottom: 6px; }
  .hero__hot a { padding: 3px 8px; margin: 2px; font-size: 11px; }

  /* 快捷入口：8 改 4 列 */
  .quick { margin-top: -16px; padding: 0 12px; }
  .quick__grid { padding: 10px 8px; grid-template-columns: repeat(5, 1fr); gap: 4px; border-radius: 12px; }
  .quick__item { padding: 8px 2px; gap: 4px; }
  .quick__icon { width: 38px; height: 38px; font-size: 18px; }
  .quick__icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  .quick__label { font-size: 11px; }

  /* 房源网格：4 改 2 列 */
  .house-grid, .community-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .house-card__title { font-size: 13px; }
  .house-card__meta { font-size: 11px; }
  .house-card__price-num { font-size: 16px; }
  .house-card__info { padding: 8px 10px; }
  .community-card__name { font-size: 13px; }
  .community-card__body { padding: 8px 10px; }

  /* 资讯：缩略图改小 */
  .news-item { padding: 12px; gap: 10px; }
  .news-item__cover { width: 100px; height: 70px; }
  .news-item__title { font-size: 14px; -webkit-line-clamp: 2; }
  .news-item__summary { display: none; }
  .news-item__meta { font-size: 11px; gap: 8px; }

  /* about-band 改 2 列 */
  .about-band { padding: 24px 16px; }
  .about-band__inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .about-band__item { padding: 16px 8px; }
  .about-band__icon { font-size: 32px; margin-bottom: 8px; }
  .about-band__title { font-size: 14px; }
  .about-band__desc { font-size: 11px; }
}

/* ========== 响应式：超小屏幕 ========== */
@media (max-width: 375px) {
  .hero__title { font-size: 20px; }
  .hero__search-tab { padding: 6px 8px; font-size: 12px; }
  .house-grid, .community-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .quick__icon { width: 34px; height: 34px; font-size: 16px; }
  .news-item__cover { width: 80px; height: 60px; }
  .about-band__inner { grid-template-columns: 1fr 1fr; }
}

/* ==================== 移动端 App 版首页（<768px） ==================== */
.m-app { display: none; }

/* PC 上"我的/消息/客服"等纯移动端页面居中显示，避免 body.m-app 被隐藏导致白屏 */
@media (min-width: 769px) {
  body.m-app { display: block; max-width: 480px; margin: 0 auto; box-shadow: 0 0 24px rgba(0,0,0,.06); }
  body.m-app .m-topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; height: 48px; padding: 0 12px; background: #fff; border-bottom: 1px solid #f0f0f0; }
  body.m-app .m-topbar__back { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #333; text-decoration: none; font-size: 22px; }
  body.m-app .m-topbar__title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; color: #222; }
  body.m-app .m-topbar__action { min-width: 36px; }
  body.m-app .m-tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 480px; z-index: 150; }
}

@media (max-width: 768px) {
  /* 移动端显示，桌面端元素隐藏 */
  .m-app { display: block; }
  .top-bar, .mobile-menu-btn, .mobile-menu,
  .hero, .quick, .about-band, .footer { display: none; }

  /* ---- 顶部城市 + 搜索 ---- */
  .m-top {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    background: #0BA5E9;
    background: linear-gradient(135deg, #0BA5E9 0%, #00C9FF 100%);
  }
  .m-top__city {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 4px;
    flex-shrink: 0;
  }
  .m-top__city-icon { font-size: 14px; }
  .m-top__city-arrow { font-size: 10px; opacity: .85; }
  .m-top__search {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    min-width: 0;
  }
  .m-top__search-icon { font-size: 14px; color: #999; margin-right: 6px; flex-shrink: 0; }
  .m-top__search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    min-width: 0;
  }
  .m-top__search input::placeholder { color: #b0b0b0; }
  .m-top__scan {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 4px;
    flex-shrink: 0;
  }

  /* 搜索框右侧搜索按钮 */
  .m-top__search-btn {
    flex-shrink: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #0BA5E9;
    padding: 0 4px;
    margin-left: 4px;
    cursor: pointer;
    line-height: 1;
    min-width: 32px;
    min-height: 28px;
  }
  .m-top__search-btn:active { opacity: .6; }

  /* ---- 城市弹层 ---- */
  .m-city-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .m-city {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-height: 80vh;
    display: flex;
    flex-direction: column;
  }
  .m-city__header {
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
  }
  .m-city__list {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
  }
  .m-city__item {
    text-align: center;
    padding: 10px 4px;
    background: #f7f8fa;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
  }
  .m-city__item.active { background: #e6f6ff; color: #0BA5E9; font-weight: 600; }

  /* ---- 功能图标 10 个 ---- */
  .m-quick {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: #fff;
    padding: 12px 8px 8px;
  }
  .m-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 2px;
    text-decoration: none;
    color: #333;
    font-size: 11px;
    -webkit-tap-highlight-color: transparent;
  }
  .m-quick__item:active { opacity: .7; }
  .m-quick__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-style: normal;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
  }

  /* ---- 新房头条资讯（标题自动轮播：5 秒一条，可手动左右滑动） ---- */
  .m-news {
    margin-top: 10px;
    background: #fff;
    padding: 10px 0;
  }
  .m-news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    margin-bottom: 6px;
  }
  .m-news__title { font-size: 15px; font-weight: 600; color: #222; }
  .m-news__more { font-size: 12px; color: #999; text-decoration: none; }
  .m-news__ticker {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .m-news__ticker::-webkit-scrollbar { display: none; }
  .m-news__ticker-item {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    padding: 8px 14px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
  }
  .m-news__ticker-item:active { opacity: .7; }
  .m-news__ticker-item--empty { color: #bbb; text-align: center; font-size: 12px; }

  /* ---- 房东速卖 VIP ---- */
  .m-vip {
    margin: 10px 12px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7B2FF7 0%, #B44EF0 60%, #F05FA8 100%);
    color: #fff;
    padding: 16px 14px;
    position: relative;
    overflow: hidden;
  }
  .m-vip__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
  }
  .m-vip__badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #7B2FF7;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
  }
  .m-vip__body { flex: 1; min-width: 0; }
  .m-vip__title { font-size: 14px; font-weight: 800; margin-bottom: 3px; letter-spacing: .5px; }
  .m-vip__desc { font-size: 12px; font-weight: 500; opacity: .95; line-height: 1.5; margin-bottom: 6px; }
  .m-vip__tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .m-vip__tags span {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
  }
  .m-vip__btn {
    flex-shrink: 0;
    background: #fff;
    color: #7B2FF7;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 16px;
    white-space: nowrap;
  }

  /* ---- 分类标签栏 ---- */
  .m-cat {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 10px 8px;
    background: #fff;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #eee;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .m-cat::-webkit-scrollbar { display: none; }
  .m-cat__item {
    flex-shrink: 0;
    position: relative;
    padding: 6px 14px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-cat__item.active {
    color: #0BA5E9;
    font-weight: 600;
  }
  .m-cat__item.active::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #0BA5E9;
  }
  .m-cat__item--more { color: #999; text-decoration: none; }

  /* ---- 房源列表（移动端单列卡片） ---- */
  .m-list {
    background: #f5f6f8;
    padding: 8px 12px calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .m-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  .m-card:active { opacity: .85; }
  .m-card__img {
    position: relative;
    width: 118px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
  }
  .m-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* 视频角标：固定图片左下角 */
  .m-card__video {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    min-width: 20px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 6px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,.55);
    border-radius: 0 8px 0 0;
    box-sizing: border-box;
  }
  .m-card__tag {
    position: relative;
    display: inline-block;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 3px;
    color: #fff;
    background: rgba(255,107,107,.9);
    white-space: nowrap;
  }
  .m-card__tag--promo {
    position: absolute;
    top: 4px;
    right: 4px;
    left: auto;
    z-index: 2;
    background: linear-gradient(90deg, #ff5a3c, #ff8c3c);
    box-shadow: 0 1px 4px rgba(255, 90, 60, 0.4);
  }
  .m-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .m-card__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  /* 状态徽标：名称左侧（在售/二手/出租） */
  .m-card__status {
    flex-shrink: 0;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
  }
  .m-card__status--new { background: #4E9CF5; }
  .m-card__status--second { background: #35B5AC; }
  .m-card__status--rent { background: #FF9800; }
  /* 名称后标识标签（新房/期房，后台 houseFlag 可配） */
  .m-card__flag {
    flex-shrink: 0;
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    padding: 2px 4px;
    border: 1px solid #4E9CF5;
    color: #4E9CF5;
    border-radius: 3px;
    background: #f0f7ff;
    white-space: nowrap;
  }
  .m-card__meta-sep { color: #d5dbe2; }
  .m-card__title {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-card__meta {
    font-size: 12px;
    color: #7b8794;
    display: flex;
    gap: 8px;
    margin-top: 7px;
    overflow: hidden;
    white-space: nowrap;
  }
  .m-card__meta span { flex-shrink: 0; }
  .m-card__meta span:first-child { overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
  .m-card__price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: auto;
  }
  .m-card__price-num { font-size: 20px; font-weight: 700; color: #FF4014; }
  .m-card__price-unit { font-size: 11px; color: #FF4014; }
  /* 新房多物业：物业｜面积区间｜均价 多行展示 */
  .m-card__ml { margin-top: auto; }
  .m-card__ml-line {
    font-size: 12px;
    font-weight: 600;
    color: #FF4014;
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 底部横向灰色属性标签（住宅/洋房/别墅…） */
  .m-card__pts {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 8px;
    overflow: hidden;
    max-height: 20px;
  }
  .m-card__pt {
    display: inline-block;
    font-size: 10px;
    line-height: 1.4;
    color: #8492a6;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 3px;
    padding: 1px 6px;
    white-space: nowrap;
  }

  .m-loading, .m-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 24px 0;
  }
  .m-loadmore { text-align: center; color: #999; font-size: 12px; padding: 10px 0; }

  /* ---- 底部导航栏 ---- */
  .m-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 8px rgba(0,0,0,.04);
  }
  .m-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .m-tabbar__item.active { color: #0BA5E9; }
  .m-tabbar__icon { font-size: 20px; font-style: normal; line-height: 1.2; }
}