/* 头部导航样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;  /* 设置元素之间的间距 */
}

.back-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-back {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
}

.location {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.icon-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #666;
  border-bottom: 1.5px solid #666;
  transform: rotate(45deg);
  margin-left: 5px;
  margin-top: -2px;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  align-items: center;
}

.logo {
  height: 24px;
  display: block;
}

.icon-menu {
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: #333;
  position: relative;
}

.icon-menu:before,
.icon-menu:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #333;
  left: 0;
}

.icon-menu:before {
  top: -6px;
}

.icon-menu:after {
  bottom: -6px;
}

/* 图片类型切换按钮组样式 */
.image-type-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.type-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px 5px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.type-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #2681ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.type-btn.active {
  color: #2681ff;
  font-weight: 500;
}

.type-btn.active::after {
  width: 100%;
}

.type-btn:hover {
  color: #2681ff;
}

/* 轮播图区域样式调整 */
.swiper {
  width: 100%;
  height: 400px;
  margin-top: 50px;
}

/* Swiper分页器样式 */
.swiper-pagination {
  position: absolute;
  bottom: 20px !important;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.2);
}

/* 内容容器样式 */
.content-container {
  background-color: #fff;
  padding: 15px 20px;
  margin-top: 0px;
  position: relative;
  z-index: 10;
}

/* 项目Tab导航 */
.project-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 0px 20px;
  background: #fff;
  position: sticky;
  top: 50px;
  z-index: 99;
  margin-top: 10px;
}

.project-tab {
  position: relative;
  padding: 12px 24px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
  background: none;
  border: none;
  outline: none;
  font-weight: bold;
}

.project-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2681ff;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.project-tab.active {
  color: #2681ff;
  font-weight: 500;
}

.project-tab.active::after {
  transform: scaleX(1);
}

/* Tab内容区域 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-panel {
  animation: fadeIn 0.3s ease-in-out;
}

/* 楼盘解读样式 */
.analysis-content {
  padding: 0 0 20px;
}

.analysis-section {
  margin-bottom: 24px;
}

.analysis-section:last-child {
  margin-bottom: 0;
}

.analysis-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.analysis-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: #2681ff;
  margin-right: 8px;
  border-radius: 2px;
}

.analysis-text {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

.feature-list {
  margin-top: 8px;
}

.feature-item {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2681ff;
}

/* 户型介绍样式 */
.layout-content {
  padding: 0 0 20px;
}

.layout-filter {
  display: flex;
  overflow-x: auto;
  padding: 0 0 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.filter-btn {
  padding: 6px 16px;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.filter-btn.active {
  background: #2681ff;
  color: #fff;
  border-color: #2681ff;
}

.layout-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.layout-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.layout-image {
  height: 200px;
  overflow: hidden;
}

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

.layout-info {
  padding: 15px;
}

.layout-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.layout-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}

.layout-price {
  font-size: 14px;
  color: #ff5a5f;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 点赞图标样式 */
.like-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  background: url('../image/xin.png') no-repeat center;
  background-size: contain;
}

.thumbs-up {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  background: url('../image/like.png') no-repeat center;
  background-size: contain;
  /* 使用滤镜调整图标颜色为红色（#FF5A5F） */
  filter: brightness(0) saturate(100%) invert(56%) sepia(83%) saturate(2637%) hue-rotate(325deg) brightness(99%) contrast(101%);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.thumbs-up:hover {
  opacity: 1;
}

/* 红线样式 */
.red-line {
    width: 30px;
    height: 2px;
    background-color: #ff5555;
    margin-bottom: 15px;
}

/* 楼盘现场样式 */
.site-info {

}

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

.site-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.connect-site-btn {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #2681ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.connect-site-btn:hover {
    background-color: #1e6ad4;
}

.connect-site-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../image/phone-icon.png) no-repeat center/contain;
    margin-right: 4px;
    vertical-align: middle;
}

.site-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #2681ff;
    margin-right: 8px;
    border-radius: 2px;
}

.site-content {
    padding: 0 10px;
}

.site-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 12px;
}

.site-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2681ff;
}

/* 项目标题和标签 */
.project-header {
  margin-bottom: 15px;
}

.project-title-section {
  margin-bottom: 15px;
}

.title-review-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  justify-content: space-between;
  width: 100%;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
}

.tag-blue {
  background-color: #00BCD4;
}

.tag-green {
  background-color: #9C27B0;
}

.tag-purple {
  background-color: #4CAF50;
}

.tag-orange {
  background-color: #FF9800;
}

.tag-teal {
  background-color: #3F51B5;
}

/* 价格信息 */
.price-info {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;

}

.price-item {
  flex: 1;
  text-align: left;
}

.price-value {
  font-size: 20px;
  font-weight: bold;
  color: #FF5A5F;
  margin-bottom: 5px;
}

.price-value .unit {
  font-size: 14px;
  font-weight: normal;
  margin-left: 2px;
}

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

/* 优惠信息 */
.promotion-info {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.promotion-label {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.promotion-content {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.consult-link {
  color: #FF5A5F;
  text-decoration: none;
  font-size: 14px;
}

/* 开盘信息 */
.launch-info {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item {
  display: flex;
  align-items: center;
}

.info-label {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.info-value {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.remind-link {
  color: #FF5A5F;
  text-decoration: none;
  font-size: 14px;
}

/* 项目信息 */
.project-info {
  padding: 15px 0;
  border-top: none;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ccc;
  color: #fff;
  font-size: 12px;
  margin-left: 5px;
}

.location-icon {
  margin-left: 10px;
}

.location-icon img {
  width: 24px;
  height: 24px;
}

/* 底部按钮 */
.action-buttons {
  display: flex;
  gap: 10px;
  padding: 15px 0;
}

.btn {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.btn-appointment {
  background-color: #FF5A5F;
  color: #fff;
}

.btn-review {
  background-color: #fff;
  color: #ff5777;
  border: 1px solid #ff5777;
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 30px;
  line-height: 16px;
  width: auto;
  max-width: 100px;
}

.btn-review:hover {
  background-color: #e5e5e5;
}

.project-title-section .btn-review {
  height: 32px;
  line-height: 30px;
  padding: 0 15px;
}

.btn-phone {
  background-color: #ff5777;
  color: #fff;
  border: none;
}

.btn-phone:hover {
  background-color: #ff4466;
}

.btn-phone:active {
  background-color: #ff3355;
}

/* 相关楼盘样式 */
.related-projects {
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 15px;
}

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

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-item:hover {
  background-color: #f5f5f5;
  transform: translateX(5px);
}

.related-item-info {
  flex: 1;
}

.related-item-name {
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.related-item-desc {
  font-size: 12px;
  color: #999;
}

.related-item-price {
  font-size: 15px;
  color: #FF5A5F;
  font-weight: 500;
}

.related-item-price .unit {
  font-size: 12px;
  font-weight: normal;
}

/* 项目详情表格样式 */
.project-details {
  margin-top: 15px;
}

.details-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.details-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: #FF5A5F;
  margin-right: 8px;
  border-radius: 2px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.detail-full-width {
  grid-column: span 2;
}

.detail-highlight {
  color: #FF5A5F;
}

.details-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

.details-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.details-section-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.details-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background-color: #2681ff;
  margin-right: 8px;
  border-radius: 1.5px;
}

.school-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
  background-color: #2681ff;
  margin-right: 8px;
  margin-bottom: 8px;
}

.school-tag.primary {
  background-color: #4CAF50;
}

.school-tag.middle {
  background-color: #FF9800;
}

.school-tag.high {
  background-color: #9C27B0;
}

.school-tag.building {
  background-color: #607D8B;
}

.school-list {
  display: flex;
  flex-wrap: wrap;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* 服务模块样式 */
.service-module {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.module-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #ff5777;
    border-radius: 2px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    height: 24px;
    width: auto;
}

/* 给每个service-item添加不同的背景色 */
.service-item:nth-child(1) { background: linear-gradient(135deg, #FF6B6B, #FF8787); }
.service-item:nth-child(2) { background: linear-gradient(135deg, #4ECDC4, #45B7D1); }
.service-item:nth-child(3) { background: linear-gradient(135deg, #96CEB4, #A8E6CF); }
.service-item:nth-child(4) { background: linear-gradient(135deg, #FF7F50, #FF9A8B); }
.service-item:nth-child(5) { background: linear-gradient(135deg, #FFD93D, #FFE066); }
.service-item:nth-child(6) { background: linear-gradient(135deg, #6C5CE7, #8A7EF2); }
.service-item:nth-child(7) { background: linear-gradient(135deg, #A8E6CF, #DCEDC1); }
.service-item:nth-child(8) { background: linear-gradient(135deg, #FF9A9E, #FFC3A0); }

.service-item:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
}

.service-item:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(255, 87, 119, 0.1);
}

.service-buttons {
    margin-top: 20px;
}

.btn-phone {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff5777 0%, #ff3366 100%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 87, 119, 0.2);
}

.btn-phone:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 87, 119, 0.3);
}

.btn-phone:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 87, 119, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

/* 服务图标颜色 - 柔和渐变色系 */
.service-icon.price { background: linear-gradient(135deg, #FF6B6B, #FF8787); }
.service-icon.deal { background: linear-gradient(135deg, #45B7D1, #4ECDC4); }
.service-icon.analysis { background: linear-gradient(135deg, #96CEB4, #A8E6CF); }
.service-icon.compare { background: linear-gradient(135deg, #FF7F50, #FF9A8B); }
.service-icon.gift { background: linear-gradient(135deg, #FFD93D, #FFE066); }
.service-icon.car { background: linear-gradient(135deg, #6C5CE7, #8A7EF2); }
.service-icon.alert { background: linear-gradient(135deg, #A8E6CF, #DCEDC1); }
.service-icon.trend { background: linear-gradient(135deg, #FF9A9E, #FFC3A0); }

@media (max-width: 480px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .service-module {
        padding: 15px;
        margin: 15px 0;
    }
    
    .module-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .service-item {
        padding: 12px 8px;
    }
    
    .service-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .service-item span {
        font-size: 12px;
    }
    
    .btn-phone {
        padding: 10px;
        font-size: 15px;
    }
}
