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

body {
  font-family: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

/* 顶部导航栏 */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo {
  height: 30px;
  margin-right: 30px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #3366ff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.location {
  color: #666;
  font-size: 14px;
}

.login,
.register {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.register {
  background-color: #3366ff;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
}

/* 主要内容区域 */
.main-content {
  background-color: #fff;
  margin-top: 20px;
}

/* 房源基本信息 */
.property-header {
  display: flex;
  gap: 40px;
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.property-info {
  flex: 1;
}

.property-info h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.property-address {
  margin-bottom: 15px;
}

.property-address .address {
  font-size: 16px;
  color: #666;
  margin: 0;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-radius: 6px;
  border-left: 4px solid #3366ff;
}

.property-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: white;
}

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

.tag.blue {
  background-color: #4285f4;
}

.tag.green {
  background-color: #3366ff;
}

.property-basic {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-info {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.price {
  font-size: 36px;
  font-weight: bold;
  color: #ff5722;
}

.price small {
  font-size: 18px;
}

.unit-price {
  color: #666;
  font-size: 14px;
}

.property-details {
  display: flex;
  gap: 20px;
  font-size: 16px;
  color: #333;
}

.property-details span {
  padding: 5px 0;
}

/* 房源图片 */
.property-images {
  flex: 1;
  max-width: 500px;
}

.main-image {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
}

.main-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: auto;
}

.image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnail.active {
  border-color: #3366ff;
}

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

/* 3D Virtual Tour */
.virtual-tour-section {
  margin: 40px 0;
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.virtual-tour-section h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

.tour-description {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.tour-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* 4:3 ratio */
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.tour-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* 中介信息 */
.agent-info {
  padding: 20px 30px;
  border-bottom: 1px solid #e6e6e6;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.agent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-details h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.agent-details p {
  color: #666;
  margin-bottom: 5px;
}

.agent-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  color: #ffb400;
}

.score {
  color: #666;
  font-size: 14px;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #3366ff;
  color: white;
}

.btn-primary:hover {
  background-color: #2952cc;
}

.btn-secondary {
  background-color: transparent;
  color: #3366ff;
  border: 1px solid #3366ff;
}

.btn-secondary:hover {
  background-color: #3366ff;
  color: white;
}

/* 通用表格样式 */
.property-table,
.property-params {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.property-table h2,
.property-params h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.property-table table,
.property-params table {
  width: 100%;
  border-collapse: collapse;
}

.property-table td,
.property-params td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.property-table td:nth-child(odd),
.property-params td:nth-child(odd) {
  background-color: #f8f9fa;
  font-weight: 500;
  color: #666;
  width: 20%;
}

.property-table td:nth-child(even),
.property-params td:nth-child(even) {
  color: #333;
  width: 30%;
}

/* 房源描述 */
.property-description {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.property-description h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.description-content p {
  margin-bottom: 10px;
  line-height: 1.8;
}

.description-content strong {
  font-weight: bold;
  color: #333;
}

/* 户型图展示 */
.floorplan-section {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.floorplan-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.floorplan-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.floorplan-item {
  position: relative;
  border: 2px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fff;
}

.floorplan-item:hover {
  border-color: #3366ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 102, 255, 0.15);
}

.floorplan-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 8px;
}

.floorplan-label {
  padding: 15px;
  background-color: #fff;
  border-top: 1px solid #e6e6e6;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floor-number {
  background-color: #3366ff;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.view-icon {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.floorplan-item:hover .view-icon {
  opacity: 1;
}

/* 全景图展示 */
.panorama-section {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.panorama-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.panorama-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.panorama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.panorama-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #e6e6e6;
}

.panorama-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.panorama-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1; /* 2:1 ratio for all panoramic images */
  object-fit: cover;
}

.panorama-item.hidden {
  display: none;
}

.panorama-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px 15px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panorama-icon {
  background-color: #3366ff;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.panorama-actions {
  text-align: center;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #3366ff;
  color: #3366ff;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #3366ff;
  color: white;
}

/* 全景图模态框 */
.panorama-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover {
  color: #3366ff;
}

#modalPanoramaImage {
  width: 100%;
  height: auto;
  max-height: 60vh;
  max-width: 800px;
  object-fit: contain;
  border-radius: 8px;
}

.modal-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-controls button {
  background-color: #3366ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.modal-controls button:hover {
  background-color: #2952cc;
}

/* 房产快照展示 */
.snapshots-section {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.snapshots-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.snapshots-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.snapshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.snapshot-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #e6e6e6;
}

.snapshot-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.snapshot-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* 4:3 ratio for snapshot images */
  object-fit: cover;
}

.snapshot-item.hidden {
  display: none;
}

.snapshot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px 15px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.snapshot-icon {
  background-color: #ff7742;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.snapshots-actions {
  text-align: center;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* 快照模态框 */
.snapshots-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.snapshots-modal .modal-content {
  position: relative;
  margin: 3% auto;
  padding: 20px;
  width: 95%;
  max-width: 1000px;
  text-align: center;
}

#modalSnapshotImage {
  width: 100%;
  height: auto;
  max-height: 75vh;
  max-width: 800px;
  object-fit: contain;
  border-radius: 8px;
}

/* 户型图模态框 */
.floorplan-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.floorplan-modal .modal-content {
  position: relative;
  margin: 3% auto;
  padding: 20px;
  width: 95%;
  max-width: 1000px;
  text-align: center;
}

.floorplan-modal h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

#modalFloorplanImage {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 查看更多按钮 */
.view-more {
  text-align: center;
  margin-top: 20px;
}

.btn-view-more {
  background-color: transparent;
  border: 1px solid #3366ff;
  color: #3366ff;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-view-more:hover {
  background-color: #3366ff;
  color: white;
}

/* 小区配套 */
.community-info {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.community-info h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.community-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
}

/* 位置信息 */
.location-info {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.location-info h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.address-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #3366ff;
}

.address-info p {
  margin: 5px 0;
  font-size: 16px;
  color: #333;
}

.address-info strong {
  color: #3366ff;
}

.map-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 地图容器 */
.google-map {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3; /* 桌面端4:3比例，与VR Tour保持一致 */
  max-width: 1200px; /* 限制最大宽度 */
  margin: 0 auto;
}

.google-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Street View */
.street-view {
  width: 100%;
  margin-top: 20px;
}

.street-view h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.street-view iframe {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* 桌面端4:3比例，与VR Tour保持一致 */
  max-width: 1200px; /* 限制最大宽度 */
  margin: 0 auto;
  display: block;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #3366ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 102, 255, 0.1);
}

.feature-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f4ff;
  border-radius: 50%;
}

.feature-text {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* 相关房源推荐 */
.related-properties {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.related-properties h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.property-card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.property-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.property-card .property-info {
  padding: 15px;
}

.property-card h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.property-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.property-card .price {
  font-size: 18px;
  font-weight: bold;
  color: #ff5722;
}

/* 周边环境 */
.surrounding-environment {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.surrounding-environment h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

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

.environment-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.environment-item:hover {
  transform: scale(1.05);
}

.environment-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.env-label {
  font-size: 14px;
  color: #333;
}

/* VR看房 */
.vr-viewing {
  padding: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.vr-viewing h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

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

.vr-item {
  text-align: center;
  padding: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.vr-item:hover {
  border-color: #3366ff;
  transform: translateY(-2px);
}

.vr-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.vr-label h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.vr-label p {
  color: #666;
  font-size: 14px;
}

/* 底部信息 */
.footer {
  background-color: #2c2c2c;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-group h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 16px;
}

.link-group a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  transition: color 0.3s;
}

.link-group a:hover {
  color: #3366ff;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  margin-bottom: 5px;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .header .container {
    flex-direction: row;
    height: 60px;
    padding: 10px 15px;
    justify-content: space-between;
  }

  .nav-left {
    margin-bottom: 0;
  }

  .nav-menu {
    display: none; /* 平板上隐藏导航菜单 */
  }

  .nav-right {
    gap: 12px;
  }

  .login, .register {
    font-size: 13px;
    padding: 6px 12px;
  }

  .property-header {
    flex-direction: column;
    gap: 25px;
    padding: 20px 15px;
  }

  .property-info h1 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .property-address .address {
    font-size: 15px;
    padding: 10px;
  }

  .price {
    font-size: 32px;
  }

  .property-details {
    flex-wrap: wrap;
    gap: 15px;
    font-size: 15px;
  }

  .agent-card {
    flex-direction: row;
    text-align: left;
    padding: 20px;
  }

  .agent-avatar {
    margin-right: 15px;
    margin-bottom: 0;
  }

  .contact-buttons {
    margin-left: 0;
    margin-top: 15px;
    gap: 10px;
  }

  /* 内容区域统一内边距 */
  .main-content section {
    padding: 25px 15px;
  }

  .virtual-tour-section {
    padding: 25px 15px;
  }

  .virtual-tour-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .tour-container {
    aspect-ratio: 16 / 9; /* 平板端16:9比例 */
    max-width: 100%;
  }

  /* 表格优化 */
  .property-table {
    padding: 20px 15px;
  }

  .property-table table {
    font-size: 14px;
  }

  .property-table td {
    padding: 10px 8px;
  }

  /* 户型图网格 */
  .floorplan-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .floorplan-item {
    margin-bottom: 15px;
  }

  /* 快照模块优化 */
  .snapshots-section {
    padding: 20px 15px;
  }

  .snapshots-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .snapshots-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* 全景图网格 */
  .panorama-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .panorama-item {
    margin-bottom: 15px;
  }

  /* 快照网格 */
  .snapshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .snapshot-item {
    margin-bottom: 15px;
  }

  .panorama-actions,
  .snapshots-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .panorama-actions .btn,
  .snapshots-actions .btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .environment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 位置信息优化 */
  .location-info {
    padding: 20px 15px;
  }

  .location-features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
  }

  .feature-item {
    padding: 12px 15px;
  }

  /* 地图模块 - 平板端16:9比例 */
  .google-map {
    aspect-ratio: 16 / 9; /* 平板端16:9比例 */
    max-width: 100%;
  }

  .street-view iframe {
    aspect-ratio: 16 / 9; /* 平板端16:9比例 */
    max-width: 100%;
  }

  .street-view h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* VR看房优化 */
  .vr-viewing {
    padding: 20px 15px;
  }

  .vr-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vr-item {
    padding: 15px;
  }

  /* 模态框优化 */
  .floorplan-label {
    padding: 8px 12px;
    font-size: 13px;
  }

  .floor-number {
    padding: 4px 8px;
    font-size: 11px;
  }

  .floorplan-modal .modal-content {
    margin: 5% auto;
    width: 98%;
  }

  .floorplan-modal h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  #modalFloorplanImage {
    max-height: 60vh;
    padding: 8px;
  }

  .panorama-modal .modal-content,
  .snapshots-modal .modal-content {
    width: 98%;
    margin: 5% auto;
  }

  #modalPanoramaImage,
  #modalSnapshotImage {
    max-height: 65vh;
  }

  .modal-controls {
    padding: 15px;
  }

  .modal-controls button {
    padding: 10px 15px;
    font-size: 14px;
  }

  /* Footer优化 */
  .footer {
    padding: 25px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 25px;
    padding: 0 15px;
  }

  .footer-links {
    justify-content: center;
    gap: 25px;
  }

  .link-group {
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* 全局容器优化 */
  .container {
    padding: 0 10px;
  }

  /* 头部优化 */
  .header .container {
    padding: 8px 12px;
  }

  .logo {
    height: 26px;
  }

  .nav-right {
    gap: 8px;
  }

  .login, .register {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* 房产信息优化 */
  .property-header {
    padding: 15px 10px;
    gap: 20px;
  }

  .property-info h1 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .property-address .address {
    font-size: 14px;
    padding: 8px 10px;
  }

  .property-tags {
    gap: 8px;
    margin-bottom: 15px;
  }

  .tag {
    padding: 3px 6px;
    font-size: 11px;
  }

  .price {
    font-size: 28px;
  }

  .price small {
    font-size: 16px;
  }

  .unit-price {
    font-size: 13px;
  }

  .property-details {
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
  }

  .property-details span {
    padding: 3px 0;
  }

  /* 图片区域优化 */
  .property-images {
    max-width: 100%;
  }

  .main-image img {
    height: 220px;
  }

  .image-counter {
    font-size: 12px;
    padding: 4px 8px;
  }

  .thumbnail {
    min-width: 45px;
    height: 45px;
  }

  .thumbnail img {
    height: 45px;
  }

  /* 3D Tour优化 */
  .virtual-tour-section {
    padding: 20px 10px;
  }

  .virtual-tour-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .tour-description {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .tour-container {
    aspect-ratio: 9 / 16; /* 手机端9:16比例 */
    max-width: 100%;
  }

  /* 经纪人信息优化 */
  .agent-card {
    padding: 15px 10px;
    flex-direction: column;
    text-align: center;
  }

  .agent-avatar {
    margin-right: 0;
    margin-bottom: 10px;
    align-self: center;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  /* 内容区域优化 */
  .main-content section {
    padding: 20px 10px;
  }

  /* 快照模块手机端优化 */
  .snapshots-section {
    padding: 15px 10px;
  }

  .snapshots-section h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .snapshots-description {
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .snapshot-label {
    padding: 6px 8px;
    font-size: 12px;
  }

  .snapshot-icon {
    font-size: 11px;
    padding: 2px 4px;
  }

  /* 表格优化 */
  .property-table table {
    font-size: 13px;
  }

  .property-table td {
    padding: 8px 5px;
  }

  .btn-view-more {
    font-size: 13px;
    padding: 8px 15px;
  }

  /* 网格布局全部改为单列 */
  .floorplan-grid,
  .panorama-grid,
  .snapshots-grid,
  .properties-grid,
  .environment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .floorplan-item img {
    height: 160px;
  }

  .panorama-item img {
    height: auto;
    aspect-ratio: 2 / 1; /* 手机端也保持2:1比例 */
  }

  .snapshot-item img {
    height: auto;
    aspect-ratio: 4 / 3; /* 手机端保持4:3比例 */
  }

  .panorama-label,
  .snapshot-label {
    padding: 8px 10px;
    font-size: 13px;
  }

  .panorama-icon,
  .snapshot-icon {
    font-size: 12px;
    padding: 2px 5px;
  }

  /* 按钮优化 */
  .panorama-actions,
  .snapshots-actions {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
  }

  .panorama-actions .btn,
  .snapshots-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 18px;
    font-size: 14px;
  }

  /* 模态框优化 */
  .modal-content,
  .snapshots-modal .modal-content {
    width: 98%;
    margin: 3% auto;
    padding: 8px;
  }

  .modal-controls {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .modal-controls button {
    padding: 10px 15px;
    font-size: 13px;
    margin: 0;
    width: 100%;
  }

  #modalPanoramaImage,
  #modalSnapshotImage {
    max-height: 55vh;
  }

  #modalFloorplanImage {
    max-height: 50vh;
    padding: 5px;
  }

  .close-modal {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }

  /* 地图模块 - 手机端9:16比例 */
  .google-map {
    aspect-ratio: 9 / 16; /* 手机端9:16比例 */
    max-width: 100%;
  }

  .street-view iframe {
    aspect-ratio: 9 / 16; /* 手机端9:16比例 */
    max-width: 100%;
  }

  .street-view h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .feature-item {
    padding: 10px 12px;
    font-size: 14px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .feature-text {
    font-size: 13px;
  }

  /* VR看房优化 */
  .vr-item {
    padding: 12px;
  }

  .vr-label h4 {
    font-size: 15px;
  }

  .vr-label p {
    font-size: 12px;
  }

  /* Footer优化 */
  .footer {
    padding: 20px 0;
  }

  .footer-content {
    padding: 0 10px;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .link-group h4 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .link-group a {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .footer-info p {
    font-size: 13px;
  }
}

.vr_animation_logo {
  width: 120px;
  height: 120px;
  background-image: url(vrlogo_animation.png);
  background-size: auto 120px;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  -webkit-animation: vr_animation_logo_keyframes 3.08333333s 0s steps(74)
    infinite normal;
  -moz-animation: vr_animation_logo_keyframes 3.08333333s 0s steps(74) infinite
    normal;
  animation: vr_animation_logo_keyframes 3.08333333s 0s steps(74) infinite
    normal;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) scale(0.63);
  transform: translate(-50%, -50%) scale(0.63);
}

@-webkit-keyframes vr_animation_logo_keyframes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 0;
  }
}

@-moz-keyframes vr_animation_logo_keyframes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 0;
  }
}

@keyframes vr_animation_logo_keyframes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 0;
  }
}

/* Request Demo Modal */
.request-demo-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.demo-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-demo-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #666;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s;
}

.close-demo-modal:hover {
  color: #3366ff;
}

.demo-modal-header {
  background: linear-gradient(135deg, #3366ff, #4d79ff);
  color: white;
  padding: 30px 25px 25px;
  border-radius: 16px 16px 0 0;
  text-align: center;
}

.demo-modal-header h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
}

.demo-modal-header p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.demo-modal-body {
  padding: 30px 25px;
}

.demo-features {
  margin-bottom: 30px;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
}

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

.demo-icon {
  font-size: 20px;
  width: 35px;
  text-align: center;
}

.demo-cta {
  text-align: center;
}

.demo-cta p {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.demo-email-btn {
  background: linear-gradient(135deg, #3366ff, #4d79ff);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(51, 102, 255, 0.3);
  margin-bottom: 20px;
}

.demo-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 102, 255, 0.4);
  background: linear-gradient(135deg, #2952cc, #4066e6);
}

.demo-contact-info {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.demo-contact-info strong {
  color: #3366ff;
  font-weight: 600;
}

/* Mobile responsiveness for demo modal */
@media (max-width: 768px) {
  .demo-modal-content {
    width: 95%;
    margin: 15px auto;
    max-width: 450px;
  }
  
  .demo-modal-header {
    padding: 25px 20px 20px;
  }
  
  .demo-modal-header h2 {
    font-size: 20px;
  }
  
  .demo-modal-header p {
    font-size: 15px;
  }
  
  .demo-modal-body {
    padding: 25px 20px;
  }
  
  .demo-feature {
    font-size: 15px;
    padding: 10px 0;
  }
  
  .demo-icon {
    font-size: 18px;
    width: 32px;
  }
  
  .demo-cta p {
    font-size: 16px;
  }
  
  .demo-email-btn {
    padding: 12px 25px;
    font-size: 15px;
  }
  
  .demo-contact-info {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .demo-modal-content {
    width: 98%;
    margin: 10px auto;
    max-width: none;
  }
  
  .demo-modal-header {
    padding: 20px 15px 18px;
  }
  
  .demo-modal-header h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .demo-modal-header p {
    font-size: 14px;
  }
  
  .demo-modal-body {
    padding: 20px 15px;
  }
  
  .demo-features {
    margin-bottom: 25px;
  }
  
  .demo-feature {
    font-size: 14px;
    padding: 8px 0;
    gap: 12px;
  }
  
  .demo-icon {
    font-size: 16px;
    width: 28px;
  }
  
  .demo-cta p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  
  .demo-email-btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .demo-contact-info {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .close-demo-modal {
    font-size: 24px;
    top: 12px;
    right: 15px;
  }
}
