body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #f3f4f6;
}

/* 自定义样式 */
.top-nav {
  background: linear-gradient(180deg, #cde8ff 0%, rgba(157, 214, 253, 0) 100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-col-logo {
  flex: 0 0 auto;
}

.nav-col-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-col-login {
  flex: 0 0 auto;
  text-align: right;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.hero-section {
  background: linear-gradient(135deg, #4a90e2 0%, #7bb3f0 100%);
  padding: 40px 20px;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 12px;
}

.hero-content {
  background: #ffe066;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

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

.hero-subtitle {
  background: #4a90e2;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  display: inline-block;
  font-size: 16px;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-section {
  margin: 20px 0;
}

.filter-section {
  margin: 20px 0;
}

.carousel-section {
  margin: 20px 0;
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.carousel-indicator {
  margin: 0 6px;
  pointer-events: auto;
  cursor: pointer;
}

.carousel-button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bbb;
  opacity: 0.9;
  transition: background 0.3s, opacity 0.3s;
  border: none;
  cursor: pointer;
}

.carousel-indicator.active .carousel-button {
  background: #fff;
  opacity: 1;
}

.property-section {
  margin: 40px 0;
}

.section-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}
.section-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.property-card {
  width: 386px;
  height: 482px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
}

.property-image {
  height: 280px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

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

.price-tag {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(23, 137, 251, 0.9);
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
}

.property-info {
  padding: 20px;
  height: 202px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.property-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
  height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.property-details {
  color: #999999;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.property-bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 16px;
  line-height: 1.4;
}

.property-payment {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: normal;
  line-height: 20px;
  color: #999999;
  font-family: Source Han Sans;
}
.search-bar {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-bar {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.filter-col {
  flex: 1;
}

.filter-label {
  color: #909399;
  font-size: 14px;
  cursor: not-allowed;
  background: none;
  border: none;
  padding: 0;
}

.custom-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #606266;
  background: white;
  cursor: pointer;
}

.custom-select:focus {
  outline: none;
  border-color: #409eff;
}

.custom-button {
  width: 100%;
  padding: 8px 12px;
  background: #409eff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-button:hover {
  background: #66b1ff;
}

.login-button {
  color: #666666;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
}

.login-button:hover {
  color: #409eff;
}

.property-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* 特惠公寓样式 */
.discount-property-card {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  vertical-align: top;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.discount-property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
}

.discount-property-card .property-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.discount-property-card .property-info {
  padding: 15px;
  height: 182px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.discount-property-card .property-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  height: 45px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.discount-property-card .property-details {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.discount-property-card .property-bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.discount-property-card .property-payment {
  background: #f0f9ff;
  color: #0369a1;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* 瀑布流布局 */
.waterfall-flex-row {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
}

.waterfall-flex-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pet-friendly-label {
  position: absolute;
  left: 128px;
  top: 4.67px;
  width: 64px;
  height: 24px;
  opacity: 1;
  font-family: Source Han Sans, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0px;
  font-variation-settings: "opsz" auto;
  font-feature-settings: "kern" on;
  color: #666666;
  background: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}

.pet-friendly-label.active {
  background: url("../images/traffic-bg.png") no-repeat center/cover, #fff;
  color: #666666;
  height: 24px;
  position: relative;
  z-index: 1;
}

.more-plus-label {
  width: 42px;
  height: 24px;
  opacity: 1;
  font-family: Source Han Sans, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0px;
  font-variation-settings: "opsz" auto;
  font-feature-settings: "kern" on;
  color: #999999;
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pet-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #f0f9ff;
  color: #409eff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .property-card {
    width: 100%;
    max-width: 386px;
  }

  .filter-row {
    flex-direction: column;
    gap: 10px;
  }

  .waterfall-flex-row {
    flex-direction: column;
  }
}

@media (max-width: 1200px) {
  .waterfall-flex-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .waterfall-flex-col {
    display: contents;
  }
}

@media (max-width: 900px) {
  .waterfall-flex-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .waterfall-flex-row {
    grid-template-columns: 1fr;
  }
}

/* 版权信息样式 */
.copyright-footer {
  background: #e7e7e7;
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
}

.copyright-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

.copyright-links {
  margin-bottom: 15px;
}

.copyright-links a {
  color: #666666;
  text-decoration: none;
  margin: 0 10px;
}

.copyright-links a:hover {
  color: #409eff;
}

.copyright-text {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .property-header-flex {
    flex-direction: column;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nearby-facilities {
    flex-direction: column;
  }

  .facility-tabs {
    flex-wrap: wrap;
  }

  .thumbnail-gallery-flex {
    overflow-x: auto;
  }

  .thumbnail-nav {
    display: none;
  }
}

.apartment-tab {
  display: inline-block;
  height: 30px;
  line-height: 32px;
  font-size: 16px;
  font-family: Source Han Sans, sans-serif;
  color: #666666;
  margin-right: 12px;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
}
.apartment-tab:last-child {
  margin-right: 0;
}
.apartment-tab.apartment-tab-active {
  background: url("../images/traffic-bg.png") no-repeat center/cover;
  color: #666666;
  font-weight: bold;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.payment-pet-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.property-actions {
  text-align: right;
  margin-top: 10px;
}

.property-action-btn {
  display: inline-block;
  padding: 5px 10px;
  background-color: #409eff;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  transition: background-color 0.3s;
}

.property-action-btn:hover {
  background-color: #66b1ff;
}

/* 自定义样式 */
.top-nav {
  background: linear-gradient(180deg, #cde8ff 0%, rgba(157, 214, 253, 0) 100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-col-logo {
  flex: 0 0 auto;
}

.nav-col-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-col-login {
  flex: 0 0 auto;
  text-align: right;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.custom-menu {
  display: flex;
  align-items: center;
  height: 60px;
  background: transparent;
}

.custom-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 60px;
  color: #606266;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  box-sizing: border-box;
}

.custom-menu-item.active {
  color: #409eff;
}

.custom-menu-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  background-color: #fecb33;
}

.menu-text {
  font-family: "Source Han Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-size: 18px;
  color: #000000;
  white-space: nowrap;
}

/* 轮播图媒体容器样式 */
.carousel-media {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.carousel-media img,
.carousel-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-media video {
    z-index: 1;
}
