/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #E6F2FF;
  color: #333;
  line-height: 1.5;
  font-size: 14px;
}

#app {
  min-height: 100vh;
  padding-bottom: 60px;
}

/* Tab导航栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  z-index: 1000;
  height: 60px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.tab-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1E90FF 0%, #4682B4 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tab-item.active::before {
  transform: scaleX(1);
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 4px;
  color: #666;
}

.tab-item.active .tab-icon {
  color: #1E90FF;
}

.tab-label {
  font-size: 12px;
  color: #666;
}

.tab-item.active .tab-label {
  color: #1E90FF;
}

/* 页面容器 */
.container {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 100vh !important;
}

/* 顶部导航栏 */
.navbar {
  position: static !important;
  background-color: #fff !important;
  padding: 10px 15px 5px 5px !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.city-selector {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, #1E90FF 0%, #4682B4 100%);
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 60px;
  cursor: pointer;
  color: white;
  box-shadow: 0 2px 6px rgba(30, 144, 255, 0.2);
}

.city-name {
  font-size: 12px;
  font-weight: 500;
  margin-right: 4px;
}

.arrow-down {
  font-size: 6px;
}

.search-box {
  flex: 1;
  margin-left: 10px;
}

.search-box input {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 15px;
  font-size: 12px;
  outline: none;
}

/* 功能分类 - 终极居中修复 */
.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 !important;
  justify-items: center !important; /* 关键：网格项水平居中 */
  align-items: center !important; /* 关键：网格项垂直居中 */
}

.feature-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* 水平居中 */
  justify-content: center !important; /* 垂直居中 */
  width: 25% !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  margin: 0 !important; /* 移除影响居中的margin */
}

.feature-icon-wrapper {
  width: 50px !important;
  height: 50px !important;
  margin-bottom: 8px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* 图标水平居中 */
  background: linear-gradient(135deg, #B0D0F0 0%, #87CEEB 100%) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  /* 强化居中效果 */
  position: relative !important;
}

.feature-icon-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
}

.feature-icon-wrapper span {
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.feature-name {
  font-size: 12px !important;
  color: #FFFFFF !important;
  text-align: center !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 强制所有内容水平居中 */
.feature-item {
  margin-left: auto !important;
  margin-right: auto !important;
}

.feature-icon-wrapper,
.feature-name {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 手机模式适配 */
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* 备用方案：如果flex有问题，使用grid */
/*
.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}
.feature-item {
  width: 100% !important;
}
*/

/* 手机模式强制8个分类为2行4列 */
@media (max-width: 600px) {
  .feature-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .feature-item {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
  .feature-item {
    flex: 0 0 25% !important;
    width: 25% !important;
    padding: 8px !important;
  }
}

/* 清除可能的干扰样式 */
.feature-item {
  flex: 0 0 25% !important;
  width: 25% !important;
}

/* 针对8个分类的特殊处理 - 已移除影响居中的伪元素 */

/* 确保每个feature-item正确计算宽度 */
.feature-item:nth-child(4n+1),
.feature-item:nth-child(4n+2),
.feature-item:nth-child(4n+3),
.feature-item:nth-child(4n) {
  flex: 0 0 25% !important;
  width: 25% !important;
}

/* Banner 轮播区 */
.banner-container {
  position: relative;
  width: 100%;
  height: 160px;
  margin-bottom: 10px;
  z-index: 1;
}

.banner-swiper {
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
}

.banner-item {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.banner-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dots span.active {
  width: 16px;
  border-radius: 3px;
  background-color: #fff;
}

/* 筛选栏样式 */
/* 修复搜索条件4个框铺满宽度 - 精确匹配小程序效果 */
.filter-bar {
  background-color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid #f0f0f0 !important;
  height: 40px !important;
}

.filter-options {
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 10px !important;
  width: 100% !important;
  height: 100% !important;
}

.filter-option {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  color: #666 !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  position: relative !important;
  text-align: center !important;
  min-width: 25% !important;
}

.filter-option span {
  font-size: 14px !important;
  line-height: 1.4 !important;
  display: block !important;
}

.filter-option i {
  font-size: 12px !important;
  margin-left: 4px !important;
  display: inline-block !important;
}

/* 小程序样式参考 */
.filter-option::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #1E90FF;
  transition: all 0.3s;
}

.filter-option.active::after {
  width: 100% !important;
}

.filter-arrow {
  margin-left: 4px;
  font-size: 12px;
}

/* 筛选弹窗样式 */
.filter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.filter-popup {
  background: white;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.popup-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.popup-close {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popup-close:hover {
  background-color: #f5f5f5;
}

.popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* 价格筛选特殊样式 */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-option {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-option:hover {
  border-color: #1E90FF;
}

.quick-option.selected {
  background-color: #1E90FF;
  color: white;
  border-color: #1E90FF;
}

.custom-price {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.price-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-inputs input {
  flex: 1;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.price-inputs input:focus {
  outline: none;
  border-color: #1E90FF;
}

.price-inputs span {
  color: #999;
  font-size: 16px;
}

/* 普通筛选选项 */
.normal-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.filter-option {
  padding: 16px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-option:hover {
  border-color: #1E90FF;
}

.filter-option.selected {
  background-color: #E6F2FF;
  color: #1E90FF;
  border-color: #1E90FF;
  font-weight: 500;
}

.popup-footer {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.reset-btn, .confirm-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.reset-btn {
  background-color: #f5f5f5;
  color: #666;
}

.reset-btn:hover {
  background-color: #e0e0e0;
}

.confirm-btn {
  background: linear-gradient(135deg, #1E90FF 0%, #4682B4 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

.confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

/* 房源列表 - 精确匹配小程序效果 */
.property-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  padding: 0 10px !important;
}

.property-card {
  width: calc(50% - 10px) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* 确保父容器宽度足够 */
body, html, .container, .page-content, .property-list-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.property-list {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.property-card {
  width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 清除所有可能的宽度限制 */
#propertyListContent, .property-grid, .hot-list {
  width: 100% !important;
  max-width: 100% !important;
}

/* 手机端也保持2列 */
@media (max-width: 768px) {
  .property-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .property-card {
    width: calc(50% - 7.5px) !important;
  }
}

/* 房源卡片完整样式 - 修复显示不完整问题 */
.property-card {
  height: auto !important;
  min-height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
}

.card-image-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 160px !important;
  flex-shrink: 0 !important;
}

.card-content {
  padding: 16px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.card-title {
  font-size: 16px !important;
  font-weight: bold !important;
  color: #333 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.card-address {
  font-size: 14px !important;
  color: #666 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.card-attrs {
  font-size: 14px !important;
  color: #999 !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

.card-price-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.price-info {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.price-label {
  font-size: 14px !important;
  color: #666 !important;
}

.price-value {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #ff6b35 !important;
}

.price-separator {
  font-size: 14px !important;
  color: #999 !important;
  margin: 0 4px !important;
}

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 20px;
  cursor: pointer;
}

.load-text {
  color: #999;
  font-size: 16px;
}

/* 房源图片页面样式 */
.house-image-page {
  padding: 0;
  background-color: #f5f5f5;
}

.page-title {
  background-color: #fff;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.page-title h1 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.city-section {
  background-color: #fff;
  padding: 15px;
  margin: 0;
}

.city-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: linear-gradient(135deg, #1E90FF 0%, #4682B4 100%);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 144, 255, 0.2);
}

.city-name {
  font-size: 16px;
  color: #fff;
  font-weight: bold;
}

.city-arrow {
  font-size: 12px;
  color: #fff;
}

.city-tip {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #1E90FF;
  font-weight: 500;
}

.page-header {
  text-align: center;
  margin-bottom: 15px;
  position: relative;
}

.header-title {
  font-size: 18px;
  font-weight: bold;
  color: #1E90FF;
  display: block;
  margin-bottom: 5px;
  text-shadow: 0 1px 2px rgba(30, 144, 255, 0.2);
}

.image-list {
  margin-bottom: 20px;
}

.image-item {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(30, 144, 255, 0.1);
  border: 1px solid rgba(30, 144, 255, 0.1);
}

.image-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.image-title {
  font-size: 14px;
  font-weight: bold;
  color: #1E90FF;
}

.house-image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(30, 144, 255, 0.15);
  cursor: pointer;
}

.text-center {
  text-align: center;
  display: block;
}

.empty-state {
  text-align: center;
  padding: 50px 0;
  color: #999;
  font-size: 12px;
}

.loading {
  text-align: center;
  padding: 10px;
  color: #1E90FF;
}

.loading-full {
  text-align: center;
  padding: 50px 0;
  color: #1E90FF;
  font-size: 12px;
}

.load-more-text {
  color: #1E90FF;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  display: block;
  padding: 10px;
}

.no-more {
  text-align: center;
  padding: 15px;
}

.no-more-text {
  color: #4682B4;
  font-size: 12px;
}

/* 我的页面样式 */
.mine-page {
  padding: 0;
  background-color: #f5f5f5;
}

.user-info {
  background: linear-gradient(135deg, #1E90FF 0%, #4682B4 100%);
  padding: 40px 20px;
  margin: 0;
  text-align: center;
}

.login-section {
  text-align: center;
}

.login-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 40px;
  border-radius: 30px;
  transition: all 0.3s;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.login-btn:active {
  transform: scale(0.95);
}

.phone {
  font-size: 22px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
}

.uid {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 15px;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.stat-item:active {
  transform: scale(0.95);
}

.stat-number {
  font-size: 18px;
  font-weight: bold;
  color: #1E90FF;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

.core-features {
  margin: 15px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 15px;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.3s;
  cursor: pointer;
}

.feature-card:last-child {
  border-bottom: none;
}

.feature-card:hover {
  background-color: #fafafa;
}

.feature-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E6F2FF;
  border-radius: 50%;
  margin-right: 15px;
  font-size: 20px;
  color: #1E90FF;
}

.feature-info {
  flex: 1;
  min-width: 0;
}

.feature-title {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-desc {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-phone {
  font-size: 15px;
  color: #1E90FF;
  font-weight: bold;
  display: block;
}

.feature-arrow {
  font-size: 20px;
  color: #ccc;
}

.tools-section {
  margin: 15px;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 15px;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
}

.tools-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  padding: 10px 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

.tool-item:active {
  transform: scale(0.95);
}

.tool-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
  font-size: 24px;
  color: #fff;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-item:nth-child(1) .tool-icon {
  background: linear-gradient(135deg, #4A90E2 0%, #5DADE2 100%);
}

.tool-item:nth-child(2) .tool-icon {
  background: linear-gradient(135deg, #27AE60 0%, #58D68D 100%);
}

.tool-remote-icon {
  width: 28px;
  height: 28px;
}

.tool-label {
  font-size: 13px;
  color: #666;
  text-align: center;
  word-break: break-all;
  white-space: normal;
  font-weight: 500;
}

/* 地图找房按钮 */
.map-search-section {
  padding: 10px 15px;
  background-color: #fff;
}

.map-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  transition: all 0.3s;
}

.map-search-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
}

.map-icon {
  font-size: 18px;
  margin-right: 5px;
}

/* 热门推荐详情信息 */
.hot-detail {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.hot-area, .hot-room, .hot-time {
    white-space: nowrap;
}

.hot-area {
    flex: 1;
}

.hot-room {
    flex: 1;
    text-align: center;
}

.hot-time {
    flex: 1;
    text-align: right;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.more-link {
  font-size: 14px;
  color: #1E90FF;
  text-decoration: none;
}

.hot-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 15px !important;
  margin-top: 10px !important;
}

.hot-item {
  width: 100% !important;
  background-color: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.hot-item:hover {
  transform: translateY(-2px);
}

.hot-image-wrapper {
  position: relative;
  width: 100%;
  height: 120px;
}

.hot-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #1E90FF 0%, #4682B4 100%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(30, 144, 255, 0.3);
}

.hot-info {
  padding: 12px;
}

.hot-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hot-price {
  font-size: 16px;
  font-weight: bold;
  color: #1E90FF;
}

.hot-market-price {
  font-size: 12px;
  color: #999;
}

/* 修复hotList的2列布局 - 关键修复 */
#hotList {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  padding: 0 10px !important;
  width: 100% !important;
}

.hot-item {
  width: calc(50% - 10px) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* 针对手机端的强制2列布局 - 最终修复 */
@media (max-width: 600px) {
  #hotList {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    padding: 0 8px !important;
  }

  .hot-item {
    width: calc(50% - 7.5px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
  #hotList {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .hot-item {
    width: calc(50% - 5px) !important;
  }
}

/* 兼容性处理 */
@media (max-width: 768px) {
  .property-list {
    grid-template-columns: 1fr;
  }

  .feature-row {
    justify-content: space-around;
  }

  .feature-item {
    margin: 0 !important;
  }

  .tab-label {
    font-size: 10px;
  }

  .tab-icon {
    font-size: 18px;
  }
}

/* 兼容性处理 */
@media (max-width: 480px) {
  .property-list,
  .hot-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* 终极修复：解决.property-list宽度被限制为94px的问题 */
.property-list {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

/* 清除所有宽度限制 */
#propertyListContent, .property-list-container, .container, .page-content {
  width: 100% !important;
  max-width: none !important;
  flex: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 强制覆盖内联样式 */
div[property-list] {
  width: 100% !important;
}

/* 确保卡片真正铺满 */
.property-card {
  width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 终极方案：使用grid布局确保8个分类2行4列 */
.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 !important;
}

.feature-item {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

/* 移除之前的flex样式 */
.feature-item {
  flex: none !important;
  width: auto !important;
}

/* 手机模式适配 */
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* 终极修复：确保最外层容器宽度100% */
body, html, .container, .page-content, .feature-section, #featureGrid {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 强制功能分类区域宽度100% */
.feature-section {
  width: 100% !important;
  max-width: 100% !important;
}

/* 功能分类 - 终极居中修复（针对当前问题） */
.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 !important;
  /* 使用更可靠的居中方式 */
  justify-content: center !important;
}

/* 终极强制居中 - 优先级最高 */
#featureGrid .feature-item {
  width: calc(25% - 2.5px) !important;
  padding: 0 !important;
  margin: 0 !important;
}
.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 !important;
  justify-items: center !important;
  align-items: center !important;
}

.feature-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(25% - 2.5px) !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.feature-icon-wrapper {
  width: 50px !important;
  height: 50px !important;
  margin-bottom: 8px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #B0D0F0 0%, #87CEEB 100%) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  position: relative !important;
}

.feature-icon-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
  vertical-align: middle !important;
}

.feature-icon-wrapper span {
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.feature-name {
  font-size: 12px !important;
  color: #FFFFFF !important;
  text-align: center !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

/* H5功能分类对齐小程序 - 最终覆盖 */
#featureGrid {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}

#featureGrid .feature-item {
  flex: 0 0 25% !important;
  width: 25% !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

#featureGrid .feature-icon-wrapper {
  width: 50px !important;
  height: 50px !important;
  margin: 0 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#featureGrid .feature-icon-wrapper img {
  width: 25px !important;
  height: 25px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
}

#featureGrid .feature-icon-wrapper span {
  display: block !important;
  line-height: 1 !important;
  text-align: center !important;
}

.feature-name {
  font-size: 12px !important;
  color: #FFFFFF !important;
  text-align: center !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

/* H5功能分类对齐小程序 - 最终覆盖 */
#featureGrid {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}

#featureGrid .feature-item {
  flex: 0 0 25% !important;
  width: 25% !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

#featureGrid .feature-icon-wrapper {
  width: 50px !important;
  height: 50px !important;
  margin: 0 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#featureGrid .feature-icon-wrapper img {
  width: 25px !important;
  height: 25px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
}

#featureGrid .feature-icon-wrapper span {
  display: block !important;
  line-height: 1 !important;
  text-align: center !important;
}
