/* ===== 主内容区域布局宽度控制 ===== */
.main-content {
  padding: 32px 24px;
  width: 100%;
  background: #fafbfc;
  box-sizing: border-box;
}

.main-inner {
  max-width: 1250px;
  margin: 0 auto;
}



/* 地区介绍：横向布局，图在右，文字在左 */
.region-intro {
  display: flex;
  flex-wrap: nowrap; /* 关键点！阻止折行 */
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.region-intro .region-text {
  flex: 1 1 60%;
  max-width: 60%;
}

.region-intro .region-text h1 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #222;
}

.region-intro .region-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.region-intro .region-image {
  flex: 1 1 40%;
  max-width: 40%;
  text-align: right;
}

.region-intro .region-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ===============================
   2. 地区旅游定制产品展示区域样式
   布局：左 60%（定制产品），右 40%（普通产品滚动）
================================== */

/* 地区旅游定制产品展示样式优化 */
.custom-products {
  margin-bottom: 40px;
}

.custom-products-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* 左侧置顶产品：占60% */
.featured-product {
  flex: 0 0 60%;
  transition: box-shadow 0.2s ease;
  /* 可调节 */
  max-height: 540px;
  position: relative;
  background: #eee;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.featured-product:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.custom-products h2 {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 24px 0 20px 12px;
  letter-spacing: 0.03em;
}

.featured-product a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.featured-product img {
  width: 100%;
  height: 415px; /* 你可根据页面调整这个高度 */
  object-fit: cover;
  object-position: top;
  display: block;
}

.featured-info {
  padding: 16px 20px;
}

.featured-info h3 {
  font-size: 16px;
  color: #222;
  margin-bottom: 8px;
}

.featured-info h4 {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.featured-info p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* 右侧产品列表：占40%，最多高360px，滚动 */
.product-list {
  flex: 1;
  max-width: 40%;
  max-height: 540px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px; /* 避免滚动条遮住内容 */
}

/* 单个产品条目 */
.product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.product-item:hover {
  background-color: #eef3f7;
}

.product-item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.product-item div h3 {
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #222;
}

.product-item div p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* 滚动条优化（可选） */
.product-list::-webkit-scrollbar {
  width: 6px;
}
.product-list::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}

/* ========== 响应式处理（768px 以下） ========== */
@media (max-width: 768px) {
  /* 主容器布局改为上下堆叠 */
  .custom-products-top {
    flex-direction: column;
    gap: 16px;
    overflow: visible;
  }

  /* 置顶产品样式 */
  .featured-product {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  .featured-product img {
    width: 100%;
    height: 220px; /* 限高防长图撑屏 */
    object-fit: cover;
    object-position: top;
    display: block;
  }

  .featured-info {
    padding: 14px 16px;
  }

  .featured-info h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .featured-info h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  .featured-info p {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
  }

  /* 横向滚动产品列表 */
  .product-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 8px 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-item {
    flex: 0 0 72%;
    min-width: 240px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 12px;
    scroll-snap-align: start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
  }

  .product-item img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .product-item h3 {
    font-size: 14px;
    margin: 0 0 4px;
  }

  .product-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
  }

  /* 可选隐藏横向滚动条 */
  .product-list::-webkit-scrollbar {
    display: none;
  }
}


/* ===== 3. 跟团产品展示 改进版 ===== */
.group-products {
  margin-bottom: 48px;
  padding: 0 12px;
  background: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.group-products h2 {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 24px 0 20px 12px;
  letter-spacing: 0.03em;
}

.group-product-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.group-product-item {
  background: #fff;
  flex: 1 1 320px;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.group-product-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-6px);
}

.group-product-item a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 20px 20px 24px 20px;
  height: 100%;
  gap: 20px;
}

.group-product-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.group-product-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #111;
  line-height: 1.2;
}

.group-product-item ul {
  list-style: disc inside;
  padding-left: 18px;
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.group-product-item ul li {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .group-product-item a {
    flex-direction: column;
    height: auto; /* 取消高度限制 */
    align-items: flex-start;
  }
  .group-product-item img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    margin-bottom: 12px;
    box-shadow: none;
  }
  .group-product-item div {
    max-height: none;
  }
  .group-product-item h3, .group-product-item ul {
    white-space: normal;
    text-overflow: unset;
  }
  .group-product-item ul li {
    display: inline-block;
    white-space: nowrap;       /* 不换行 */
    overflow: hidden;          /* 超出隐藏 */
    text-overflow: ellipsis;   /* 用省略号表示 */
    max-width: 100%;           /* 最大宽度撑满容器 */
    vertical-align: middle;
    margin-bottom: 4px;
  }
}



/* ===== 4. 景点信息展示 ===== */
.scenic-info {
  margin-bottom: 36px;
}

.scenic-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #222;
}

.scenic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

/* PC端 4个一排，容器宽度按比例，间隙自动扣除 */
.scenic-item {
  flex: 0 0 calc((100% - 3 * 16px) / 4); /* 4列，扣除3个间隙 */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* 防止内容溢出 */
}

.scenic-item:hover {
  background-color: #f0f5fb;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.scenic-item img {
  width: 80%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.scenic-item span {
  font-size: 17px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;       /* 单行显示 */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

/* 移动端 2个一排 */
@media (max-width: 768px) {
  .scenic-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列 */
    gap: 12px;
  }

  .scenic-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s ease;
    box-sizing: border-box; /* 防止padding撑破容器 */
  }

  .scenic-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形 */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .scenic-item span {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ===== 攻略信息展示 ===== */
.strategy-info {
  margin-bottom: 36px;
}

.strategy-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #222;
}

.strategy-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC端 3列 */
  gap: 16px;
  padding: 0;
  margin: 0;
}

.strategy-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* 上对齐 */
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
  list-style: none;
  min-height: 80px;
  gap: 12px;
}

.strategy-list li:hover {
  background: #f5f7fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.strategy-list a {
  flex: 1;
  font-size: 15px;
  color: #1a73e8;
  text-decoration: none;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;            /* 最多两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3em;
}

.strategy-list span {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .strategy-list {
    grid-template-columns: 1fr; /* 移动端 1 列展示 */
    gap: 12px;
  }

  .strategy-list li {
    padding: 14px 16px;
    min-height: auto;
  }

  .strategy-list a {
    font-size: 15px;
    -webkit-line-clamp: 2;
    max-height: 3em;
  }

  .strategy-list span {
    font-size: 12px;
  }
}


/* ===== 6. FAQ 折叠式展示 ===== */
.faq-section {
  margin-bottom: 36px;
  font-family: Arial, sans-serif;
}

.faq-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #222;
  font-weight: 600;
}

/* 容器左右分栏 */
.faq-container {
  display: flex;
  gap: 24px;
}

/* FAQ内容占70% */
.faq-content {
  flex: 0 0 70%;
}

/* FAQ列表 */
.faq-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  padding: 12px 0;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: block;
  padding: 16px 24px;
  font-size: 16px;
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f0f5fb;
}

.faq-answer {
  padding: 0 32px 16px 32px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  display: none;
}

/* 右侧广告占30% */
.faq-ad {
  flex: 0 0 30%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.faq-ad a {
  display: block; /* 让a撑满父容器 */
  width: 100%;
  height: 100%;
  text-decoration: none; /* 去除下划线 */
}

.faq-ad img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* 保持圆角，和aside统一 */
}

/* 移动端调整 */
@media (max-width: 768px) {
  .faq-container {
    flex-direction: column;
  }
  .faq-content {
    flex: 1 0 100%;
  }
  .faq-ad {
    display: none;
  }
  .faq-section h2 {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .faq-question {
    padding: 12px 16px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 16px 12px 16px;
    font-size: 13px;
  }
}

/* ===== 7. 相关地区（友链）展示 ===== */
.related-regions {
  margin-bottom: 16px;
}
.related-regions h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.region-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.region-links a {
  display: inline-block;
  background: #f5f7fa;
  color: #1a73e8;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 15px;
  transition: background 0.2s;
}
.region-links a:hover {
  background: #e3eafc;
}

/* ===== 响应式优化 ===== */
@media (max-width: 900px) {
  .region-intro {
    flex-direction: column;
    gap: 16px;
  }
  .custom-products-top {
    grid-template-columns: 1fr;
  }
  .group-product-list {
    flex-direction: column;
    gap: 16px;
  }
  .scenic-list {
    flex-direction: column;
    gap: 12px;
  }
  .region-links {
    flex-direction: column;
    gap: 10px;
  }
  .strategy-list {
    grid-template-columns: 1fr;
  }
}
/* 响应式处理：小屏下变竖排 */
@media (max-width: 768px) {
  .region-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .region-intro .region-text,
  .region-intro .region-image {
    max-width: 100%;
    flex: unset;
  }

  .region-intro .region-image {
    text-align: center;
    margin-top: 16px;
  }
}

/* 响应式：小屏上下堆叠 */
@media (max-width: 768px) {
  .region-products {
    flex-direction: column;
  }

  .featured-product,
  .product-list {
    max-width: 100%;
    flex: none;
  }

  .product-list {
    max-height: 400px; /* 小屏可稍微高些 */
  }
}
