/* 通用样式 */
.city-content {
  padding: 60px 40px;
  background: #f9f9f9;
  font-family: "微软雅黑", Arial, sans-serif;
  color: #333;
}

.city-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* 标题 */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0;          /* 上下间隔 */
  color: #222;
  border-left: none;        /* 去掉左边的颜色柱子 */
  padding-left: 0;          /* 取消左侧内边距 */
  text-align: center;       /* 居中 */
}

.section-customized-tour p{
  font-size: 16px;
  line-height: 1.6;
  margin: 40px 0;           /* 上下间隔 */
  color: #555;
  text-align: center;       /* 居中 */
}

/* 描述文字 */
.section-description {
  font-size: 16px;
  line-height: 1.6;
  margin: 40px 0;           /* 上下间隔 */
  color: #555;
  text-align: center;       /* 居中 */
}

.section-description.short {
  font-size: 14px;
  color: #777;
  margin: 20px 0;           /* 保持上下间隔一致 */
  text-align: center;       /* 居中 */
}


/* ===== 2. 热门旅游路线 - 三列产品网格 ===== */
.product-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-card-large {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  flex: 1 1 calc(33.333% - 13.33px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative; /* 为了定位覆盖链接 */
}


.product-card-large:hover {
  transform: translateY(-6px);
}

.product-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; /* 留出底部按钮组区域，避免按钮不可点击 */
  z-index: 1;
  display: block;
}

.product-link-overlay:hover {
  cursor: pointer;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}

.product-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #222;
}

.product-subtitle {
  font-size: 14px;
  color: #f60;
  margin-bottom: 10px;
}

.product-summary {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
  margin-bottom: 12px;
}

/* 按钮组 */
.product-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-wechat {
  background-color: #1aad19;
  color: #fff;
}

.btn-wechat:hover {
  background-color: #148a13;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
}

.btn-detail {
  background-color: #f60;
  color: #fff;
}

.btn-detail:hover {
  background-color: #d05400;
}

/* ===== 3. 经典线路 - 两列产品 ===== */
.product-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.product-card-side {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  flex: 1 1 calc(50% - 12px);
  display: flex;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card-side:hover {
  transform: translateY(-5px);
}

.side-image img {
  width: 160px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
  object-position: top;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover {
  text-decoration: underline;
}

.side-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-summary {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  /* 经典线路 - 移动端按钮布局调整 */
  .section-classic-routes .product-card-side {
    flex-direction: column; /* 竖排 */
  }

  .section-classic-routes .side-image img {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    margin-bottom: 12px; /* 图片和信息间距 */
  }

  .section-classic-routes .side-info {
    padding: 0 0 16px 0;
  }

  .section-classic-routes .product-summary {
    margin-bottom: 12px;
  }

  /* 按钮组单独一行，均分宽度 */
  .section-classic-routes .product-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .section-classic-routes .product-buttons .btn {
    flex: 1 1 0;
    min-width: 0; /* 防止按钮超出 */
    padding: 10px 0;
    font-size: 14px;
  }
}


/* 按钮同上 */

/* 旅游攻略整体容器 */
.section-travel-guides {
  padding: 30px 0;
  color: #333;
}

/* 标题 */
.section-travel-guides .section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
}

/* 描述 */
.section-travel-guides .section-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* guides-top: 左大图 + 右小攻略4个 */
.guides-top {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
}

/* 左侧大图攻略 */
.guide-large {
  flex: 1.2;
  position: relative;  /* 重要：定位基准 */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: #fff;
  transition: transform 0.3s ease;
  max-height: 360px;
}

.guide-large a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  max-height: 360px;
  position: relative; /* 绝对定位标题的参考 */
}

.guide-large img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  display: block;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  object-position: top;
}

/* 大图标题覆盖在图片底部 */
.guide-large .guide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
  box-sizing: border-box;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* 悬停放大效果 */
.guide-large:hover {
  transform: scale(1.03);
}
.guide-large:hover .guide-title {
  color: #ffd54f; /* 悬停时变色 */
}

/* 右侧4个攻略列表 */
.guide-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 单个攻略项 */
.guide-item {
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.guide-item a {
  color: #333;
  text-decoration: none;
  display: block;
}

/* 标题 */
.guide-item .guide-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* 摘要，限制2行溢出隐藏 */
.guide-item .guide-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 悬停阴影 */
.guide-item:hover {
  box-shadow: 0 4px 16px rgba(0,120,215,0.3);
}

/* guides-more 超过5个攻略 平铺4个 */
.guides-more {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

/* guides-more 里的单个攻略 */
.guides-more .guide-item.inline {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.guides-more .guide-item.inline a {
  display: block;
  color: #333;
  text-decoration: none;
}

/* 标题和摘要样式同上 */
.guides-more .guide-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}

.guides-more .guide-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 悬停效果 */
.guides-more .guide-item.inline:hover {
  box-shadow: 0 4px 14px rgba(0,120,215,0.25);
}

/* 响应式调整，手机或窄屏时堆叠 */
@media (max-width: 768px) {
  .guides-top {
    flex-direction: column;
  }
  .guide-large {
    margin-bottom: 20px;
    max-height: none;
  }
  .guide-large a,
  .guide-large img {
    max-height: none;
  }
  .guide-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .guides-more {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .guide-large img {
    height: 200px;
}
}

@media (max-width: 480px) {
  .guide-list {
    grid-template-columns: 1fr;
  }
  .guides-more {
    grid-template-columns: 1fr;
  }
}

/* 景點整体 */
.section-scenic {
  padding: 30px 0;
  color: #333;
}

/* 标题 */
.section-scenic .section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
}

/* 描述 */
.section-scenic .section-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* 网格容器 */
.scenic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* 单个景点卡片 */
.scenic-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scenic-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* 图片 */
.scenic-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  object-position: top;
}

/* 内容 */
.scenic-content {
  padding: 14px 16px;
}

.scenic-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.scenic-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制2行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 悬停效果 */
.scenic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,120,215,0.25);
}
.scenic-card:hover img {
  transform: scale(1.05);
}
.scenic-card:hover .scenic-title {
  color: #0078d7;
}

/* 响应式 */
@media (max-width: 768px) {
  .scenic-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .scenic-card img {
    height: 130px;
  }
}



/* ===== 5. FAQ部分 ===== */
.section-faq {
  margin-top: 40px;
}

.faq-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.faq-list {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 16px;
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  padding-right: 20px;

  /* 长文本自动换行 */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 18px;
  color: #f60;
  transition: transform 0.3s ease;
}

.faq-answer {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  display: none;

  /* 长文本自动换行 */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-item.open .faq-question::after {
  content: '−';
  color: #f60;
}

/* 答案中段落样式 */
.faq-answer p {
  margin: 8px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  
}

/* 答案中无序列表样式 */
.faq-answer ul {
  padding-left: 20px;
  margin: 8px 0;
  color: #222;
  font-size: 14px;
  line-height: 1.6;
  list-style-type: disc;
}

/* 嵌套列表样式 */
.faq-answer ul ul {
  list-style-type: circle;
  margin-top: 4px;
  margin-bottom: 4px;
}

/* 列表项间距 */
.faq-answer li {
  margin-bottom: 6px;
}

/* 答案中的链接样式 */
.faq-answer a {
  color: #f60;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: #d44b00;
  text-decoration: none;
}

/* 广告图 */
.faq-ad img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 移动端样式 */
@media (max-width: 768px) {
  /* 广告图隐藏 */
  .faq-ad img {
    display: none;
  }

  /* FAQ容器改纵向堆叠 */
  .faq-container {
    flex-direction: column;
    gap: 16px;
  }
}


/* ===== 6. 相关地区推荐 ===== */
.section-related-cities {
  margin-top: 40px;
}

.related-cities-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.related-city-link {
  display: inline-block;
  padding: 8px 14px;
  background: #f60;
  color: #fff;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.related-city-link:hover {
  background-color: #d05400;
}

/* 响应式简易适配 */
@media (max-width: 1024px) {
  .product-grid-3, .product-grid-2 {
    flex-direction: column;
  }
  .product-card-large, .product-card-side {
    flex: 1 1 100% !important;
  }
  .section-travel-guides .guides-top {
    flex-direction: column;
  }
  .guide-large, .guide-list {
    flex: 1 1 100%;
  }
  .faq-container {
    flex-direction: column;
  }
  .faq-list, .faq-ad {
    width: 100% !important;
  }
  .related-cities-links {
    justify-content: center;
  }
}

/* === 城市地图总容器样式 === */
.city-map-list-section {
  position: relative;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 40px;
  color: #333;
  text-align: center;
}

.city-map-list-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #222;
}

.city-map-list-section p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  text-align: justify;
  max-width: 1250px;
  margin: 0 auto 20px;
}

.small-title{
    text-align: center !important;
    font-size: 16px;
    margin-top: -15px;
    margin-bottom: 25px;
}

/* === 地图容器 === */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px 0;
}

.china-map-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1;
  object-fit: contain;
}

/* === 城市组基础样式 === */
.city-group {
  position: absolute;
  display: flex;
  z-index: 2;
}

.city-box {
  background: rgba(255,255,255,0.95);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}

.city-title {
  font-size: 16px;
  color: #f60;
  margin-bottom: 6px;
  border-bottom: 1px dashed #f60;
  padding-bottom: 4px;
  width: 100%;
  text-align: center;
}

.city-labels {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.city-label {
  background: #f60;
  color: #fff;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 16px;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition: background-color 0.3s ease;
}

.city-label.disabled {
  color: #aaa;
  cursor: not-allowed;
  pointer-events: none;
  background: #d9d9d9;
}

.city-label:hover {
  background-color: #d05400;
}

/* === 各方向定位优化 === */

/* 华北（竖排并进入地图上方） */
.city-group-north {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.city-group-north .city-box {
  flex-direction: column;
  align-items: center;
}

/* 西北 */
.city-group-northwest {
  top: 20px;
  left: 0;
}

/* 东北 */
.city-group-northeast {
  top: 20px;
  right: 0;
}

/* 西南 */
.city-group-southwest {
  bottom: 30px;
  left: 0;
}

/* 东南 */
.city-group-southeast {
  bottom: 20px;
  right: 0;
}

/* 华东 */
.city-group-east {
  top: 45%;
  right: 0px;
  transform: translateY(-50%);
}

/* 华南（稍右偏） */
.city-group-south {
  bottom: 30px;
  right: 0px;
}

/* 华中（贴地图底部偏右） */
.city-group-midle {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

/* === 城市列表区域 === */
.city-map-list-section .city-list {
  margin-top: 100px;
  text-align: left;
}

.city-map-list-section .city-list h2 {
  font-size: 26px;
  margin-bottom: 32px;
  color: #222;
  text-align: center;
  border-bottom: 2px solid #f60;
  padding-bottom: 10px;
}

.city-map-list-section .region-list {
  list-style: none;
  padding-left: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  max-width: 1250px;
  margin: 0 auto;
}

.city-map-list-section .region-list strong {
  font-size: 16px;
  color: #f60;
}

/* 一级地区 */
.region-list > li {
  margin-bottom: 24px;
}

/* 二级：省份横排 */
.region-list > li > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 省份块 */
.region-list > li > ul > li {
  min-width: 220px;
  max-width: 300px;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 6px;
  background-color: #fafafa;
  box-sizing: border-box;
  flex: 1 1 220px;
}

/* 三级：城市横排 */
.region-list > li > ul > li > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-left: 0;
}

.region-list > li > ul > li > ul > li {
  margin-bottom: 4px;
}

/* 城市链接样式 */
.region-list a {
  display: inline-block;
  background: #f60;
  color: #fff;
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.region-list a[href="javascript:;"] {
  color: #aaa;
  cursor: not-allowed;
  text-decoration: none;
  background: #d9d9d9;
}

.region-list a:hover,
.region-list a:focus {
  background-color: #d05400;
  border-color: #c74c00;
  text-decoration: none;
}

/* 重置列表样式 */
.region-list,
.region-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* === 响应式支持 === */
@media (max-width: 768px) {

  .map-wrapper {
    margin: 20px auto;
    padding: 20px 0;
  }
  /* 清除城市块定位，转换为两列卡片 */
  .city-group {
    position: static !important;
    transform: none !important;
    width: 100%;
    box-sizing: border-box;
  }

  .china-map-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
  }

  .city-groups-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
  }

  .city-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .city-box h3,
  .city-title {
    font-size: 13px;
    color: #f60;
    margin-bottom: 6px;
    border-bottom: 1px dashed #f60;
    padding-bottom: 4px;
    text-align: center;
  }

  .city-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .city-box li {
    margin-bottom: 4px;
  }

  .city-label {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background: #f60;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
  }

  .city-label:hover {
    background-color: #d05400;
  }

  /* 城市列表区域缩放 */
  .city-map-list-section .city-list {
    margin-top: 30px;
    padding: 0 10px;
  }

  .city-map-list-section .city-list h2 {
    font-size: 20px;
    text-align: center;
  }

  .city-map-list-section .region-list {
    font-size: 14px;
    line-height: 1.5;
  }

  /* 省份改为竖排显示 */
  .region-list > li > ul {
    flex-direction: column;
    gap: 12px;
  }

  .region-list > li > ul > li {
    max-width: 100%;
  }

  .region-list > li > ul > li > ul {
    gap: 6px;
    flex-wrap: wrap;
  }

  .region-list a {
    font-size: 12px;
    padding: 4px 10px;
  }
}
