/* ==========================================================================
   国内游 / 列表页模板 —— 专属样式
   参照上海中旅国内游列表页：每个省份一个区块，区块内「省份名 + 热门目的地城市」
   + 下方 6 张线路图（三列两行）；左侧悬浮省份分类栏（滚动显示）。
   与 css/style.css 配合使用（共享变量：品牌色、文字、边框等）。
   ========================================================================== */

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 12px 15px;
  font-size: 13px;
  color: var(--text-3);
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 6px; color: var(--border); }
.breadcrumb .current { color: var(--text); }

/* ---------- 目的地区块容器（灰底，承载 21 个省份区块） ---------- */
.dest-sections {
  background: #f4f4f4;
  padding: 14px 0 6px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dest-section {
  padding: 16px 0 20px;
  border-bottom: 1px solid #e9e9e9;
}
.dest-section:last-child { border-bottom: none; }

/* 省份头部：省份名 + 热门目的地城市 */
.dest-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.dest-name {
  flex: 0 0 72px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.dest-cities {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.dest-hint { color: var(--text-3); font-size: 13px; }
.dest-cities a { color: var(--text-2); font-size: 13px; }
.dest-cities a:hover { color: var(--brand); }

/* 无子城市的区块头部（如邮轮页）：目的地名左对齐 */
.dest-head--plain .dest-name {
  text-align: left;
  flex: 0 0 auto;
}

/* ---------- 线路卡片网格（每省 6 张，3 列 × 2 行） ---------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.route-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.route-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
.route-card__pic {
  position: relative;
  display: block;
  overflow: hidden;
}
.route-card__pic img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.route-card:hover .route-card__pic img { transform: scale(1.06); }
/* 图片底部的半透明高亮条 */
.route-card__hl {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-card__body { padding: 10px 12px 12px; }
.route-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.route-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-card__title:hover { color: var(--brand); }
.route-card__price {
  flex: 0 0 auto;
  color: var(--price);
  font-size: 14px;
  white-space: nowrap;
}
.route-card__price em { font-style: normal; font-size: 20px; font-weight: 700; }
.route-card__desc {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 左侧悬浮省份分类栏 ---------- */
.cat-float-nav {
  position: fixed;
  top: 150px;
  left: calc(50% - 700px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.cat-float-nav.is-visible {
  opacity: 1;
  visibility: visible;
}
.cat-float-nav ul {
  width: 88px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-float-nav li {
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.cat-float-nav li:last-child { border-bottom: none; }
.cat-float-nav li:hover { color: var(--brand); background: var(--brand-light); }
.cat-float-nav li.is-active { background: var(--brand); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1400px) {
  .cat-float-nav { display: none; }  /* 窄屏隐藏左侧悬浮栏 */
}
@media (max-width: 992px) {
  .route-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dest-head { flex-direction: column; gap: 4px; }
  .dest-name { text-align: left; flex: none; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .route-card__pic img { height: 140px; }
}
