/* 行程与目的地详情：可横滑段落导览与手机咨询。 */
.detail-heading {
  padding-bottom: 28px;
}
.detail-heading h1 {
  font-size: clamp(29px, 3.3vw, 43px);
  margin-bottom: 12px;
}
.detail-heading p {
  color: #606c83;
  margin-bottom: 14px;
}
.detail-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: #606c83;
  font-size: 15px;
}
.detail-meta span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.detail-meta svg {
  width: 17px;
  height: 17px;
}
.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
}
.detail-gallery.is-single {
  grid-template-columns: 1fr;
}
.detail-gallery-main,
.detail-gallery-cell {
  position: relative;
  min-height: 0;
}
.detail-gallery-main {
  aspect-ratio: 4 / 3;
}
.detail-gallery-hit {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.detail-gallery-main .scene,
.detail-gallery-side .scene {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.detail-gallery-side {
  display: grid;
  gap: 8px;
  grid-template-rows: 1fr 1fr;
  min-height: 0;
}
.detail-gallery-side.is-one {
  grid-template-rows: 1fr;
}
.detail-gallery-side.is-grid {
  grid-template-columns: 1fr 1fr;
}
.gallery-all {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #1a2238b8;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.gallery-all .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.gallery-all:hover {
  background: #1a2238d4;
}
.detail-gallery-main .save-button {
  top: 17px;
  right: 17px;
  z-index: 2;
}
#gallery-album[open] {
  box-sizing: border-box;
  width: min(1080px, calc(100% - 32px));
  height: min(720px, 85dvh);
  min-height: min(720px, 85dvh);
  max-height: min(720px, 85dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#gallery-album .dialog-head {
  flex: 0 0 auto;
}
#gallery-album .gallery-back {
  display: none;
  margin-right: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #303644;
  min-height: 36px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
#gallery-album .gallery-back:hover {
  background: #f0f1f7;
}
#gallery-album.is-viewing #gallery-album-title {
  display: none;
}
#gallery-album.is-viewing .gallery-back {
  display: inline-flex;
  align-items: center;
}
.gallery-album-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
}
.gallery-album-grid,
.gallery-viewer {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}
#gallery-album.is-viewing .gallery-album-grid {
  visibility: hidden;
  pointer-events: none;
}
.gallery-album-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f6f7fa;
  cursor: pointer;
}
.gallery-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gallery-album-item:hover img,
.gallery-album-item:focus-visible img {
  transform: scale(1.04);
}
.gallery-viewer {
  display: none;
  flex-direction: column;
  background: #f6f7fa;
}
#gallery-album.is-viewing .gallery-viewer {
  display: flex;
}
.gallery-viewer-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 12px 0;
}
.gallery-viewer-frame {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-viewer-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.gallery-nav {
  border-radius: 999px;
  color: #303644;
  background: #ffffff;
  box-shadow: 0 2px 8px #222c4722;
}
.gallery-nav:hover {
  background: #f0f1f7;
}
#gallery-viewer-count {
  flex: 0 0 auto;
  margin: 8px 0 0;
  text-align: center;
  color: #606c83;
  font-size: 14px;
}
.gallery-viewer-thumbs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 16px;
}
.gallery-viewer-thumbs button {
  flex: 0 0 84px;
  width: 84px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #dfe3ed;
  cursor: pointer;
}
.gallery-viewer-thumbs button.is-current {
  border-color: #626e9c;
}
.gallery-viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-gallery .scene.has-img,
.day-photo .scene.has-img {
  background-image: none;
  overflow: hidden;
  position: relative;
}
.detail-gallery .scene.has-img img,
.day-photo .scene.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.day .day-copy {
  padding-left: 74px;
  color: #606c83;
  font-size: 17px;
}
.day-meta {
  list-style: none;
  margin: 12px 0 20px 74px;
  padding: 14px 16px;
  background: #f6f7fa;
  border-radius: 6px;
  display: grid;
  gap: 10px;
}
.day-meta li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.7;
}
.day-meta-label {
  color: #626e9c;
  font-weight: 650;
}
.day-meta-value {
  color: #424b66;
}
.detail-tabs {
  background: #ffffff;
  border-bottom: 1px solid #dfe3ed;
  position: sticky;
  top: 80px;
  z-index: 30;
  margin-top: 26px;
}
.detail-tabs .container {
  display: flex;
  gap: 32px;
  overflow: auto;
  scrollbar-width: none;
}
.detail-tabs a {
  padding: 18px 0;
  white-space: nowrap;
  font-size: 17px;
  border-bottom: 2px solid transparent;
}
.detail-tabs a:hover,
.detail-tabs a.is-active {
  border-bottom-color: #626e9c;
  color: #626e9c;
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 65px;
  align-items: start;
  padding-top: 44px;
}
.detail-main section {
  margin-bottom: 46px;
  scroll-margin-top: 160px;
}
.detail-main h2 {
  font-size: 34px;
}
.detail-section-deck {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.55;
  color: #424b66;
}
.detail-main > section > p {
  color: #606c83;
  font-size: 18px;
  line-height: 2;
}
.booking-card {
  position: sticky;
  top: 158px;
  border: 1px solid #dfe3ed;
  background: #f6f7fa;
  border-radius: 7px;
  padding: 25px;
}
.booking-card .price {
  font-size: 34px;
  margin-bottom: 12px;
}
.booking-card .price small {
  font-size: 15px;
}
.booking-card p {
  font-size: 15px;
  color: #606c83;
}
.booking-card ul {
  padding-left: 17px;
  font-size: 15px;
  color: #606c83;
  line-height: 2.3;
  margin-bottom: 23px;
}
.highlight-list {
  list-style: none;
  padding: 0;
}
.highlight-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  margin-bottom: 14px;
}
.highlight-list .icon {
  color: #606c83;
}
.itinerary {
  border-top: 1px solid #dfe3ed;
}
.day {
  border-bottom: 1px solid #dfe3ed;
}
.day summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
.day-number {
  width: 54px;
  font-size: 15px;
  color: #626e9c;
  flex-shrink: 0;
}
.day summary h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}
.day summary .icon {
  width: 16px;
}
.day[open] summary .icon {
  transform: rotate(180deg);
}
.day > p {
  padding-left: 74px;
  color: #606c83;
  font-size: 17px;
}
.itinerary-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
}
.expand-days {
  padding: 9px 0;
  color: #626e9c;
  font-size: 15px;
  border: 0;
  background: none;
}
.route-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 22px 0 0;
  padding: 14px 6px;
  background: #f6f7fa;
  border-radius: 8px;
}
.route-strip span {
  color: #303644;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 16px;
}
.route-strip span + span {
  border-left: 1px solid #d5dbe8;
}
.inclusions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  border: 1px solid #dfe3ed;
  border-radius: 6px;
  padding: 24px;
}
.inclusions h3 {
  font-size: 20px;
}
.inclusions ul {
  color: #606c83;
  font-size: 17px;
  padding-left: 20px;
  line-height: 2.1;
}
.destination-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 44px;
}
.destination-hero .scene {
  border-radius: 7px 60px 7px 7px;
  overflow: hidden;
  background-image: none;
}
.destination-hero .scene img,
.card-media .scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media .scene.has-img {
  overflow: hidden;
  background-image: none;
}
.destination-hero p {
  color: #606c83;
  font-size: 18px;
  line-height: 2;
}
.city-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  padding: 25px 0;
  border-block: 1px solid #dfe3ed;
  margin-bottom: 40px;
}
.city-facts small {
  display: block;
  color: #606c83;
  font-size: 14px;
}
.city-facts strong {
  font-weight: 700;
  font-size: 20px;
}
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.spot {
  border: 1px solid #dfe3ed;
  border-radius: 6px;
  padding: 25px;
}
.spot span {
  color: #626e9c;
  font-family: inherit;
  font-size: 29px;
}
.spot h3 {
  font-size: 20px;
  margin-top: 12px;
}
.spot p {
  font-size: 17px;
  color: #606c83;
}
.city-note {
  padding: 20px;
  background: #f6f7fa;
  margin-top: 25px;
  font-size: 17px;
  color: #606c83;
  border-radius: 6px;
}
@media (max-width: 1050px) {
  .detail-tabs {
    top: 70px;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  .detail-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }
  .booking-card {
    padding: 20px;
  }
  .destination-hero {
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .detail-heading h1 {
    font-size: 34px;
  }
  .detail-heading {
    padding-bottom: 22px;
  }
  .detail-heading p {
    font-size: 17px;
  }
  .detail-meta {
    gap: 12px 15px;
    font-size: 14px;
  }
  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .detail-gallery-side {
    grid-template-rows: 92px;
    grid-auto-rows: 92px;
  }
  .detail-gallery-side.is-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-album-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-viewer-stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
  .detail-tabs {
    margin-top: 10px;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  .detail-tabs .container {
    width: 100%;
    padding-inline: 18px;
    gap: 25px;
  }
  .detail-tabs a {
    font-size: 15px;
    padding: 15px 0;
  }
  .detail-content {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 0;
  }
  .detail-main h2 {
    font-size: 29px;
  }
  .detail-section-deck {
    font-size: 18px;
  }
  .detail-main section {
    margin-bottom: 35px;
  }
  .booking-card {
    position: static;
    margin-bottom: 25px;
  }
  .booking-card .price {
    font-size: 32px;
  }
  .day summary {
    gap: 12px;
  }
  .day summary h3 {
    font-size: 18px;
  }
  .day-number {
    width: 50px;
    font-size: 14px;
  }
  .day > p {
    padding-left: 62px;
  }
  .inclusions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }
  .destination-hero {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-bottom: 30px;
  }
  .destination-hero h1 {
    margin-bottom: 18px;
  }
  .destination-hero .scene {
    order: 2;
  }
  .city-facts {
    gap: 10px;
    margin-bottom: 28px;
  }
  .city-facts strong {
    font-size: 17px;
  }
  .city-facts small {
    font-size: 13px;
  }
  .spot-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .spot {
    padding: 20px;
  }
}
/* 蓝白配色、较大字级与长篇内容阅读节奏。 */
.detail-heading h1,
.destination-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  color: #303644;
}
.detail-heading p,
.detail-main > section > p,
.destination-hero p {
  font-size: 18px;
  line-height: 1.95;
}
.detail-meta {
  font-size: 16px;
}
.detail-tabs {
  background: #fff;
}
.detail-tabs a {
  font-size: 17px;
  font-weight: 700;
  border-bottom-width: 3px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.detail-main h2,
.inclusions h3,
.spot h3 {
  font-weight: 700;
  color: #303644;
}
.booking-card {
  border-radius: 10px;
  background: #f6f7fa;
}
.booking-card .price {
  color: #626e9c;
  font-size: 34px;
}
.booking-card .price small {
  font-size: 14px;
}
.booking-card p {
  font-size: 15px;
  line-height: 1.85;
}
.booking-card ul {
  font-size: 16px;
  line-height: 2.1;
}
.highlight-list li {
  align-items: flex-start;
  line-height: 1.85;
}
.highlight-list .icon {
  flex-shrink: 0;
  margin-top: 5px;
}
.day summary h3 {
  font-size: 20px;
  min-width: 0;
  line-height: 1.6;
}
.day-number {
  width: 62px;
  font-size: 14px;
  font-weight: 700;
}
.day summary .icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.day > p {
  padding-left: 82px;
  font-size: 17px;
  line-height: 1.95;
}
.expand-days {
  font-size: 16px;
}
.inclusions ul {
  font-size: 17px;
  line-height: 2;
}
.destination-hero .scene {
  border-radius: 10px;
  overflow: hidden;
}
.city-facts small {
  font-size: 14px;
  margin-bottom: 6px;
}
.city-facts strong {
  font-size: 19px;
  color: #303644;
}
.spot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.spot {
  background: #fff;
  border-radius: 8px;
}
.spot span {
  font-weight: 700;
}
.spot p {
  font-size: 17px;
  line-height: 1.85;
}
.city-note {
  font-size: 16px;
  line-height: 1.9;
}
@media (max-width: 760px) {
  .detail-heading h1,
  .destination-hero h1 {
    font-size: 34px;
  }
  .detail-heading p,
  .detail-main > section > p,
  .destination-hero p,
  .highlight-list li {
    font-size: 17px;
  }
  .detail-meta {
    font-size: 14px;
  }
  .detail-tabs a {
    font-size: 16px;
  }
  .detail-main h2 {
    font-size: 29px;
  }
  .booking-card .price {
    font-size: 32px;
  }
  .day summary h3 {
    font-size: 18px;
  }
  .day-number {
    width: 54px;
    font-size: 13px;
  }
  .day > p {
    padding-left: 0;
  }
  .city-facts strong {
    font-size: 16px;
  }
  .city-facts small {
    font-size: 13px;
  }
  .spot-grid {
    grid-template-columns: 1fr;
  }
}

/* 每日行程多图容器：原生横向滚动，也可使用箭头和键盘。 */
.day-gallery {
  margin: 0 0 24px 74px;
  min-width: 0;
}
.day-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #606c83;
}
.day-image-note {
  font-size: 12px;
}
.day-gallery-controls {
  display: flex;
  gap: 7px;
}
.day-gallery-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ccd3e2;
  background: #fff;
  border-radius: 50%;
  color: #626e9c;
}
.day-gallery-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.day-gallery-controls [data-day-scroll='-1'] .icon {
  transform: rotate(180deg);
}
.day-photos {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 10px;
}
.day-photos::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.day-photo {
  flex: 0 0 min(320px, 80%);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.day-photo-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}
.day-photo > img,
.day-photo .scene {
  display: block;
  width: 100%;
  height: 190px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 7px;
}
.day-photo figcaption {
  font-size: 13px;
  color: #606c83;
  line-height: 1.7;
  padding-top: 7px;
}
.day-viewer {
  width: min(1000px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
}
.day-viewer .dialog-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  gap: 15px;
}
.day-viewer .dialog-head h2 {
  font-size: 21px;
}
.day-viewer .dialog-head button {
  flex-shrink: 0;
}
.day-viewer-body {
  position: relative;
  padding: 18px;
}
.day-viewer-body img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 210px);
  object-fit: contain;
  background: #f4f6fa;
}
.day-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
}
.day-viewer-nav[data-day-viewer-prev] {
  left: 28px;
}
.day-viewer-nav[data-day-viewer-next] {
  right: 28px;
}
#day-viewer-count {
  margin: 0;
  padding: 0 18px 16px;
  text-align: center;
  font-size: 13px;
  color: #7d8796;
}
@media (max-width: 760px) {
  .day-gallery {
    margin-left: 0;
  }
  .day-photo {
    flex-basis: 82%;
  }
  .day-photo > img,
  .day-photo .scene {
    height: 175px;
  }
  .day .day-copy {
    padding-left: 0;
  }
  .day-meta {
    margin-left: 0;
  }
  .day-gallery-controls button {
    width: 44px;
    height: 44px;
  }
}
