/* 行程、目的地与主题目录共用。 */
.page-intro {
  background: #f6f7fa;
  padding-bottom: 40px;
}
.page-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.3vw, 44px);
}
.page-intro p {
  color: #606c83;
  margin-bottom: 0;
  max-width: 710px;
  font-size: 18px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 34px;
}
.filter-panel {
  border: 1px solid #dfe3ed;
  border-radius: 7px;
  padding: 22px;
  background: #ffffff;
  align-self: start;
  position: sticky;
  top: 100px;
}
.filter-panel h2 {
  font-family: inherit;
  font-size: 21px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.filter-group {
  border: 0;
  padding: 0;
  margin: 22px 0;
}
.filter-group legend {
  font-size: 15px;
  margin-bottom: 8px;
  color: #606c83;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  font-size: 15px;
  color: #606c83;
}
.filter-group input {
  accent-color: #626e9c;
  width: 16px;
  height: 16px;
}
.filter-group select {
  border: 1px solid #dfe3ed;
  border-radius: 4px;
  padding: 10px;
  width: 100%;
  background: white;
  color: #626e9c;
  font-size: 15px;
}
.reset-filters {
  background: transparent;
  border: 0;
  text-decoration: underline;
  font-size: 15px;
  padding: 8px 0;
  color: #626e9c;
  margin-right: 10px;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.catalog-toolbar p {
  font-size: 17px;
  color: #606c83;
  margin: 0;
}
.catalog-toolbar select {
  padding: 9px 10px;
  border: 1px solid #dfe3ed;
  border-radius: 4px;
  background: #ffffff;
  font-size: 15px;
  max-width: 150px;
}
.catalog-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 精选行程列表：三列紧凑卡片 */
.catalog-cards--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.catalog-cards--compact .tour-card-body {
  padding: 12px 14px 14px;
}
.catalog-cards--compact .tour-card h3 {
  font-size: 16px;
  line-height: 1.45;
}
.catalog-cards--compact .card-kicker,
.catalog-cards--compact .tour-card .route {
  font-size: 12px;
  margin-bottom: 8px;
}
.catalog-cards--compact .card-media .scene {
  aspect-ratio: 16 / 10;
}
.catalog-cards--compact .badge {
  top: 10px;
  left: 10px;
  font-size: 12px;
  padding: 3px 8px;
}
.catalog-cards--compact .price {
  font-size: 18px;
}
.catalog-cards--compact .price small {
  font-size: 12px;
}
.hot-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #dfe3ed;
  border-radius: 7px;
  background: #f8f9fc;
}
.hot-search__label {
  font-size: 14px;
  color: #606c83;
  flex-shrink: 0;
}
.hot-search__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hot-search__list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d3d8e5;
  border-radius: 4px;
  background: #fff;
  color: #4a5568;
  font-size: 14px;
  text-decoration: none;
}
.hot-search__list a:hover,
.hot-search__list a.is-active {
  border-color: #65729a;
  color: #65729a;
  background: #eef1f8;
}
.catalog-pager.n_page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 8px;
  line-height: 1;
  font-size: 14px;
  color: #606c83;
}
/* PC 数字分页 / 移动端滚动加载：默认显示 PC，隐藏移动端条 */
.catalog-pager--pc { display: flex; }
.catalog-load-more {
  display: none;
  margin: 22px 0 8px;
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #606c83;
}
.catalog-load-more[data-state='loading'] {
  color: #65729a;
}
.catalog-load-more[data-state='end'] {
  color: #9aa3b5;
}
.catalog-load-more[data-state='error'] {
  color: #a15b5b;
}
.catalog-pager.n_page::after {
  content: none;
  display: none;
}
.catalog-pager.n_page a,
.catalog-pager.n_page span,
.catalog-pager.n_page b {
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 !important;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dfe3ed;
  border-radius: 4px;
  background: #fff;
  color: #4a5568;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
.catalog-pager.n_page > *:first-child:not(a) {
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 0 4px 0 0;
  color: #606c83;
}
.catalog-pager.n_page a:hover {
  border-color: #65729a;
  color: #65729a;
  background: #eef1f8;
}
.catalog-pager.n_page a.curr,
.catalog-pager.n_page span.curr,
.catalog-pager.n_page .curr {
  background: #65729a;
  border-color: #65729a;
  color: #fff;
  pointer-events: none;
}
.catalog-pager.n_page a.on,
.catalog-pager.n_page .on {
  background: #fff;
  border-color: #dfe3ed;
  color: #4a5568;
}
.catalog-pager.n_page a.on:hover {
  border-color: #65729a;
  color: #65729a;
  background: #eef1f8;
}
.catalog-pager.n_page a.off,
.catalog-pager.n_page .off {
  color: #a0a8b8;
  border-color: #e8ebf2;
  background: #f7f8fb;
  pointer-events: none;
}
.catalog-pager.n_page i {
  display: none !important;
}
.filter-open,
.filter-close,
.filter-apply,
.filter-backdrop {
  display: none;
}
.filter-summary {
  font-size: 15px;
  margin-bottom: 18px;
  color: #626e9c;
}
.destination-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.region-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 27px;
}
.region-tabs button {
  border: 1px solid #dfe3ed;
  border-radius: 24px;
  padding: 9px 19px;
  background: transparent;
  min-height: 42px;
  font-size: 15px;
}
.region-tabs button[aria-pressed='true'] {
  background: #626e9c;
  color: white;
  border-color: #626e9c;
}
.destination-info {
  padding: 20px 0 12px;
}
.destination-info h2 {
  font-family: inherit;
  font-size: 25px;
  margin-bottom: 4px;
}
.destination-info p {
  font-size: 15px;
  color: #606c83;
}
.destination-entry > a {
  display: block;
  border-radius: 7px;
  overflow: hidden;
}
.destination-entry > a:hover h2 {
  color: #626e9c;
}
.destination-entry .scene.has-img {
  background-image: none;
  overflow: hidden;
  position: relative;
}
.destination-entry .scene.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.destination-meta {
  font-size: 14px;
  color: #626e9c;
}
.directory-title {
  font-size: 30px;
  margin-top: 45px;
}
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-links a {
  min-width: 110px;
  border: 1px solid #dfe3ed;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 17px;
}
.city-links a:hover {
  border-color: #606c83;
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.theme-card {
  border: 1px solid #dfe3ed;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.theme-card > div:last-child {
  padding: 28px;
}
.theme-card h2 {
  font-size: 34px;
}
.theme-card p {
  font-size: 18px;
  color: #606c83;
}
.theme-card .scene.has-img,
.card-media .scene.has-img {
  background-image: none;
  overflow: hidden;
  position: relative;
}
.card-media .scene.has-img img,
.theme-card .scene.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
  padding: 48px 0;
}
.theme-banner .scene {
  border-radius: 8px 50px 8px 8px;
}
.theme-banner p {
  color: #606c83;
  font-size: 18px;
}
.saved-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.compare-note {
  font-size: 15px;
  color: #606c83;
}
@media (max-width: 1050px) {
  .destination-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
  }
  .filter-panel {
    padding: 18px;
    top: 90px;
  }
  .catalog-cards {
    gap: 17px;
  }
  .catalog-cards--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  /* 移动端：隐藏数字分页，改用下滑加载 */
  .catalog-pager--pc {
    display: none !important;
  }
  .catalog-load-more {
    display: block;
  }
}
@media (max-width: 760px) {
  .page-intro {
    padding-bottom: 28px;
  }
  .page-intro h1 {
    font-size: 34px;
  }
  .page-intro p {
    font-size: 17px;
  }
  .catalog-layout {
    display: block;
  }
  .catalog-cards,
  .catalog-cards--compact {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    display: none;
    position: fixed;
    z-index: 110;
    inset: auto 0 0;
    max-height: 88dvh;
    overflow-y: auto;
    background: #ffffff;
    padding: 23px 24px 30px;
    border-radius: 18px 18px 0 0;
  }
  .filter-panel.open {
    display: block;
  }
  .filter-panel h2 {
    display: inline-flex;
    margin-top: 8px;
  }
  .filter-panel .filter-close {
    float: right;
    display: inline-flex;
  }
  .filter-panel .filter-group {
    margin: 18px 0;
  }
  .filter-group label {
    min-height: 43px;
  }
  .filter-group legend {
    font-size: 17px;
  }
  .filter-group label {
    font-size: 18px;
  }
  .filter-open {
    display: inline-flex;
    gap: 7px;
    min-height: 43px;
    border: 1px solid #dfe3ed;
    border-radius: 5px;
    align-items: center;
    padding: 7px 12px;
    background: #ffffff;
    font-size: 15px;
  }
  .filter-apply {
    display: flex;
    margin-top: 15px;
  }
  .filter-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #30364488;
    z-index: 100;
  }
  .catalog-toolbar {
    position: sticky;
    top: 76px;
    z-index: 40;
    flex-wrap: wrap;
    gap: 10px;
    margin-inline: -20px;
    margin-bottom: 16px;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #e4e7ee;
  }
  .catalog-toolbar select {
    max-width: 125px;
  }
  .catalog-toolbar p {
    width: 100%;
    font-size: 15px;
    order: 3;
  }
  .destination-directory {
    gap: 14px;
  }
  .destination-info h2 {
    font-size: 22px;
  }
  .destination-info p {
    font-size: 14px;
  }
  .destination-info {
    padding-top: 15px;
  }
  .region-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -18px;
    padding-right: 18px;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  .region-tabs button {
    white-space: nowrap;
    padding-inline: 17px;
  }
  .theme-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .theme-card > div:last-child {
    padding: 23px;
  }
  .theme-banner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 0 40px;
  }
  .theme-banner h1 {
    margin-bottom: 15px;
  }
}
/* 清晰的目录层级与触控尺寸。 */
.page-intro h1,
.theme-banner h1 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  color: #303644;
}
.page-intro p,
.theme-card p,
.theme-banner p {
  font-size: 18px;
  line-height: 1.9;
}
.theme-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.catalog-layout {
  grid-template-columns: 245px minmax(0, 1fr);
}
.filter-panel {
  background: #fff;
  border-radius: 10px;
  top: 110px;
}
.filter-panel h2,
.destination-info h2,
.directory-title,
.theme-card h2 {
  font-weight: 700;
  color: #303644;
}
.filter-group legend {
  font-size: 16px;
  font-weight: 700;
  color: #303644;
}
.filter-group label {
  min-height: 44px;
  font-size: 16px;
  gap: 10px;
}
.filter-group input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.filter-group select,
.catalog-toolbar select {
  font-size: 16px;
  min-height: 46px;
  color: #303644;
  background: #fff;
}
.catalog-toolbar select {
  max-width: 180px;
}
.region-tabs button {
  font-size: 16px;
  min-height: 46px;
  color: #424b66;
  background: #fff;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.region-tabs button:hover {
  border-color: #626e9c;
  color: #626e9c;
}
.region-tabs button[aria-pressed='true'] {
  color: #fff;
}
.destination-info p {
  font-size: 16px;
  line-height: 1.8;
}
.destination-meta,
.compare-note,
.filter-summary,
.reset-filters {
  font-size: 14px;
}
.city-links a {
  font-size: 16px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.city-links a:hover {
  color: #626e9c;
  border-color: #626e9c;
  background: #f6f7fa;
}
.theme-banner .scene {
  border-radius: 10px;
}
@media (max-width: 1050px) {
  .catalog-layout {
    grid-template-columns: 225px minmax(0, 1fr);
  }
  .filter-panel {
    top: 90px;
  }
}
@media (max-width: 700px) {
  /* 负边距必须等于 .container 两侧留白（此宽度为 18px），多一像素都会让页面横向溢出，手机滑动时固定底栏抖动 */
  .catalog-toolbar {
    top: 72px;
    margin-inline: -18px;
    padding-inline: 18px;
  }
}
@media (max-width: 760px) {
  .page-intro h1,
  .theme-banner h1 {
    font-size: 34px;
  }
  .page-intro p,
  .theme-card p,
  .theme-banner p {
    font-size: 17px;
  }
  .filter-panel {
    background: #fff;
    top: auto;
  }
  .filter-group label {
    min-height: 46px;
    font-size: 17px;
  }
  .filter-group legend,
  .filter-open {
    font-size: 16px;
  }
  .filter-open {
    background: #fff;
    min-height: 46px;
  }
  .catalog-toolbar select {
    max-width: 155px;
  }
  .catalog-toolbar p {
    font-size: 14px;
  }
  .destination-info h2 {
    font-size: 22px;
  }
  .destination-info p {
    font-size: 14px;
  }
  .destination-meta {
    font-size: 13px;
  }
  .theme-card h2 {
    font-size: 28px;
  }
  .saved-toolbar {
    flex-wrap: wrap;
  }
}
