.list-page {
  max-width: 1280px;
  margin: 16px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

.list-page__filter {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 80px;
}

.filter-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-block__label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.filter-block__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-block__items a {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  background: #f5f6f8;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-block__items a:hover,
.filter-block__items a.active {
  background: #f0f9ff;
  color: #0BA5E9;
  font-weight: 500;
}

/* 三级联动 */
.filter-region {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-region label {
  width: 50px;
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}

.filter-region input,
.filter-region select {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  outline: none;
  min-width: 0;
  transition: border-color 0.2s;
}

.filter-region input:focus,
.filter-region select:focus { border-color: #0BA5E9; }
.filter-region input:disabled { background: #f5f6f8; color: #999; }

.filter-region__apply {
  width: 100%;
  margin-top: 8px;
  padding: 7px 0;
  background: linear-gradient(135deg, #0BA5E9, #00C9FF);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}

.filter-region__apply:hover { transform: translateY(-1px); }

.list-page__main { min-width: 0; }

.list-page__header {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.list-page__keyword {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.list-page__sort {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.list-page__sort a {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.list-page__sort a:hover,
.list-page__sort a.active {
  background: #f0f9ff;
  color: #0BA5E9;
}

.list-page__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.list-page__pager {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.list-page__pager button {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 36px;
}

.list-page__pager button:hover {
  border-color: #0BA5E9;
  color: #0BA5E9;
}

.list-page__pager button.active {
  background: #0BA5E9;
  color: #fff;
  border-color: #0BA5E9;
}

.list-page__pager button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== 响应式：平板 ========== */
@media (max-width: 1024px) {
  .list-page { grid-template-columns: 220px 1fr; gap: 12px; }
  .list-page__results { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 响应式：手机 ========== */
@media (max-width: 768px) {
  .list-page {
    grid-template-columns: 1fr;
    padding: 0 12px;
    margin: 8px auto;
  }

  /* 筛选器改横向滚动条 + 默认隐藏可点开 */
  .list-page__filter {
    position: static;
    padding: 10px 12px;
  }

  .filter-block {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .filter-block__label { font-size: 13px; }

  .filter-block__items {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-block__items a {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 10px;
  }

  .filter-region { gap: 6px; margin-bottom: 6px; }
  .filter-region label { width: 40px; font-size: 11px; }
  .filter-region input, .filter-region select { font-size: 13px; padding: 6px 8px; }
  .filter-region__apply { padding: 8px 0; font-size: 13px; }

  .list-page__header { padding: 8px 12px; flex-wrap: wrap; }
  .list-page__keyword { font-size: 12px; width: 100%; margin-bottom: 4px; }
  .list-page__sort { width: 100%; overflow-x: auto; }
  .list-page__sort a { font-size: 12px; padding: 3px 8px; }

  .list-page__results { grid-template-columns: 1fr; gap: 10px; }
  .list-page__pager button { padding: 6px 10px; font-size: 12px; min-width: 32px; }
}

@media (max-width: 375px) {
  .list-page { padding: 0 8px; }
  .list-page__results { grid-template-columns: 1fr; }
}

/* ========== 房源卡片角标（业态/视频/推广标签） ==========
   分类列表页（新房/二手/租赁/社区）只加载 common.css + list.css，
   此处补齐卡片左上角标签所需的容器与基础样式（与 css/index.css 首页卡片同值同构）。 */
.house-card__img { position: relative; }

/* ========== 移动端：与首页 Tab 新房共用的 m-card 卡片组件（common.js window.mHouseCardHtml） ========== */
@media (max-width: 768px) {
  .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; }
  .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;
  }
}

/* 新房多物业：物业｜面积区间｜均价 多行展示 */
.house-card__ml-line {
  font-size: 14px;
  font-weight: 700;
  color: #FF4014;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.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); }
.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);
}