:root {
  --ink: #12384a;
  --ink-deep: #082f49;
  --blue: #0878b9;
  --blue-dark: #075985;
  --sky: #dff3f8;
  --sky-soft: #f0f9fc;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --orange: #c14f16;
  --line: rgba(8, 89, 133, 0.18);
  --muted: #58717d;
  --serif: "Iowan Old Style", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
  --shadow: 0 20px 60px rgba(9, 53, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #f29b66;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--ink-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.service-bar {
  color: #eaf7fb;
  background: var(--ink-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.service-bar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-bar p {
  margin: 0;
}

.service-bar__links {
  display: flex;
  gap: 24px;
}

.service-bar a {
  transition: color 180ms ease;
}

.service-bar a:hover {
  color: #83d5ef;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(9, 53, 74, 0.08);
}

.nav-wrap {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.brand span {
  display: grid;
}

.brand strong {
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.primary-nav > a:not(.nav-cta) {
  position: relative;
  padding-block: 12px;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 44px;
  padding: 8px 20px;
  color: white;
  background: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink-deep);
  transition: transform 200ms ease, opacity 200ms ease;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(680px, 78vh, 860px);
  background: #dbeef3;
}

.hero__slides,
.hero__slide,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 760ms ease-in-out;
}

.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0, rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0.12) 68%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: clamp(680px, 78vh, 860px);
  align-items: flex-end;
  padding-block: 72px 118px;
}

.hero__copy {
  width: min(760px, 100%);
  padding: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.eyebrow--light {
  color: #9ce1f1;
}

.hero h1,
.section-heading h2,
.custom h2,
.trip-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.16;
  text-wrap: balance;
}

.hero h1 {
  color: white;
  font-size: clamp(42px, 4.7vw, 68px);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.hero h1 > span {
  display: block;
  margin-bottom: 16px;
  color: #69cdf5;
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.hero__lead {
  max-width: 560px;
  margin: 28px 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

.hero__copy .eyebrow {
  color: #b8eaff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero__audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.hero__audiences li {
  padding: 8px 12px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active,
.nav-cta:active,
.trip-card__actions button:active,
.qr-card button:active,
.trip-card__poster:active {
  transform: scale(0.98);
}

.button--primary {
  color: white;
  background: var(--blue-dark);
}

.button--primary:hover {
  background: var(--blue);
}

.button--text {
  min-height: 44px;
  padding-inline: 4px;
  color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
}

.button--text span {
  margin-left: 10px;
  font-size: 18px;
}

.hero .button--text {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.82);
}

.hero .button--text:hover {
  color: #b8eaff;
  border-bottom-color: #b8eaff;
}

.button--cream {
  color: var(--ink-deep);
  background: var(--cream);
}

.button--cream:hover {
  background: white;
}

.hero__controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.hero__arrow,
.hero__toggle,
.hero__dots button {
  border: 1px solid rgba(255, 255, 255, 0.74);
  cursor: pointer;
  color: white;
  background: rgba(3, 47, 70, 0.72);
  backdrop-filter: blur(8px);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero__arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  font-size: 19px;
}

.hero__toggle {
  min-height: 46px;
  padding-inline: 15px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.hero__dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
}

.hero__arrow:hover,
.hero__toggle:hover,
.hero__dots button:hover,
.hero__dots button[aria-current="true"] {
  color: var(--blue-dark);
  border-color: white;
  background: white;
}

.mini-links {
  padding-block: 80px;
  background:
    linear-gradient(rgba(8, 89, 133, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 89, 133, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
}

.mini-links__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 76px;
}

.mini-links .section-heading > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.mini-links__steps {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--blue-dark);
  list-style: none;
}

.mini-links__steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.mini-links__steps li > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mini-links__steps h3 {
  margin: 0 0 6px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 21px;
}

.mini-links__steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.marquee {
  overflow: hidden;
  color: #d8eef5;
  background: var(--blue-dark);
  white-space: nowrap;
}

.marquee__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  padding: 17px 28px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.14em;
}

.marquee i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7dd3e8;
}

.section {
  padding-block: 116px;
}

.section:not(.about) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section-heading h2,
.custom h2 {
  color: var(--ink-deep);
  font-size: clamp(42px, 5vw, 64px);
}

.about {
  background: var(--paper);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 90px;
}

.about__intro {
  max-width: 680px;
  margin: 8px 0 52px;
  color: #2d5363;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.75;
}

.about__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.about__points article {
  padding: 28px 24px 0 0;
}

.about__points span {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 13px;
}

.about__points h3 {
  margin: 13px 0 9px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 22px;
}

.about__points p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.trips {
  background:
    linear-gradient(rgba(8, 89, 133, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 89, 133, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 38px 38px;
}

.section-top {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 56px;
}

.section-top > p,
.contact__head > p,
.rules__heading > p {
  margin: 0 0 8px;
  color: var(--muted);
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}

.trip-card {
  overflow: hidden;
  border: 1px solid rgba(8, 89, 133, 0.13);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(9, 53, 74, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.trip-card:hover {
  box-shadow: 0 22px 50px rgba(9, 53, 74, 0.12);
  transform: translateY(-6px);
}

.trip-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.32 / 1;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #d9edf2;
}

.trip-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 450ms ease;
}

.trip-card__poster picture {
  display: block;
  width: 100%;
  height: 100%;
}

.trip-card:hover .trip-card__poster img {
  transform: scale(1.025);
}

.trip-card__body {
  padding: 24px 24px 26px;
}

.trip-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.trip-card h3 {
  min-height: 66px;
  margin: 12px 0 10px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.35;
}

.trip-card__route {
  min-height: 47px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.trip-card__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trip-card__price {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.trip-card__price small {
  margin-right: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.trip-card__price-note {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.trip-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.trip-card__actions button {
  min-height: 46px;
  border: 1px solid var(--blue-dark);
  cursor: pointer;
  color: var(--blue-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.trip-card__actions button:first-child {
  color: white;
  background: var(--blue-dark);
}

.trip-card__actions button:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.custom {
  padding-block: 0;
  background: var(--cream);
}

.custom__panel {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 80px;
  padding: 94px 90px;
  color: #e6f5f8;
  background:
    radial-gradient(circle at 90% 20%, rgba(115, 205, 228, 0.2), transparent 30%),
    linear-gradient(135deg, #0a4f72, #08364e);
}

.custom__panel::after {
  position: absolute;
  right: -120px;
  bottom: -230px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(155, 224, 240, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(155, 224, 240, 0.045);
}

.custom h2 {
  color: white;
}

.custom__copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 24px 0 30px;
  color: #c9e6ed;
}

.custom__steps {
  position: relative;
  z-index: 2;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom__steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(215, 241, 247, 0.18);
}

.custom__steps li:first-child {
  padding-top: 0;
}

.custom__steps li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(215, 241, 247, 0.4);
  border-radius: 50%;
  color: #9ce1f1;
  font-family: var(--serif);
}

.custom__steps h3 {
  margin: 0 0 4px;
  color: white;
  font-family: var(--serif);
  font-size: 21px;
}

.custom__steps p {
  margin: 0;
  color: #b9d9e2;
  font-size: 13px;
}

.rules {
  background: var(--paper);
}

.rules__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 100px;
}

.rules__heading {
  position: sticky;
  top: 130px;
  align-self: start;
}

.rules__heading > p {
  margin-top: 24px;
}

.rule-list {
  border-top: 1px solid var(--line);
}

.rule-list details {
  border-bottom: 1px solid var(--line);
}

.rule-list summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  list-style: none;
}

.rule-list summary::-webkit-details-marker {
  display: none;
}

.rule-list summary::after {
  margin-left: auto;
  content: "+";
  color: var(--blue);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 300;
}

.rule-list details[open] summary::after {
  content: "−";
}

.rule-list summary span {
  color: var(--orange);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.rule-content {
  padding: 0 40px 28px;
  color: var(--muted);
  font-size: 14px;
}

.rule-content p {
  margin: 0 0 10px;
}

.documents {
  background:
    linear-gradient(rgba(8, 89, 133, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 89, 133, 0.03) 1px, transparent 1px),
    var(--cream);
  background-size: 38px 38px;
}

.documents__head {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 52px;
}

.documents__head > div:last-child > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.document-card {
  padding: 34px;
  border: 1px solid rgba(8, 89, 133, 0.15);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(9, 53, 74, 0.06);
}

.document-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--blue-dark);
}

.document-card__type {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.document-card h3 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.25;
}

.document-card__days {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: white;
  background: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.document-card__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  border-block: 1px solid var(--line);
}

.document-card__facts div {
  display: grid;
  align-content: start;
  padding: 16px 13px;
  border-right: 1px solid var(--line);
}

.document-card__facts div:last-child {
  border: 0;
}

.document-card__facts span {
  color: var(--muted);
  font-size: 10px;
}

.document-card__facts strong {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
}

.document-card__notice {
  margin-bottom: 18px;
  padding: 15px 17px;
  border-left: 3px solid var(--orange);
  background: var(--sky-soft);
}

.document-card__notice--spaced {
  margin-top: 22px;
}

.document-card__notice strong {
  color: var(--ink-deep);
  font-family: var(--serif);
}

.document-card__notice p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.document-card details {
  border-bottom: 1px solid var(--line);
}

.document-card summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  cursor: pointer;
  color: var(--ink-deep);
  font-weight: 700;
  list-style: none;
}

.document-card summary::-webkit-details-marker {
  display: none;
}

.document-card summary::after {
  margin-left: auto;
  content: "+";
  color: var(--blue);
  font-size: 20px;
  font-weight: 300;
}

.document-card details[open] summary::after {
  content: "−";
}

.document-card details > ul,
.document-card details > p {
  margin: 0;
  padding: 0 0 18px 22px;
  color: var(--muted);
  font-size: 13px;
}

.document-card details > p {
  padding-left: 0;
}

.document-card li {
  margin-bottom: 6px;
}

.documents__footnote {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.contact {
  background:
    radial-gradient(circle at 5% 0, rgba(118, 204, 225, 0.22), transparent 28%),
    var(--sky-soft);
}

.contact__head {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}

.contact__layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 70px;
}

.contact__details {
  border-top: 2px solid var(--blue-dark);
}

.contact-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item > span,
.footer__label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-item a,
.contact-item p {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 18px;
}

.contact-item div {
  display: grid;
  gap: 4px;
}

.contact-item a:hover {
  color: var(--blue);
}

.contact-note {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 253, 248, 0.76);
}

.contact-note strong {
  color: var(--ink-deep);
  font-family: var(--serif);
}

.contact-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.qr-area {
  display: grid;
  align-content: start;
  gap: 28px;
}

.qr-group {
  min-width: 0;
}

.qr-group__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.qr-group__head h3,
.qr-group__head p {
  margin: 0;
}

.qr-group__head h3 {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 20px;
}

.qr-group__head p {
  color: var(--muted);
  font-size: 11px;
}

.qr-grid {
  display: grid;
  gap: 12px;
}

.qr-grid--wechat {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.qr-grid--line {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.qr-card {
  align-self: start;
  padding: 15px;
  border: 1px solid var(--line);
  background: white;
}

.qr-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.qr-card__head span {
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.qr-card__head small {
  color: var(--muted);
  font-size: 10px;
}

.qr-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: white;
}

.qr-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.site-footer {
  padding: 66px 0 26px;
  color: #cde7ee;
  background: #062f45;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 70px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer__brand img {
  border-radius: 50%;
}

.footer__brand div,
.footer__grid > div:not(.footer__brand) {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer__brand strong {
  color: white;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.footer__brand span,
.footer__grid a,
.footer__grid p {
  margin: 0;
  font-size: 13px;
}

.footer__grid a:hover {
  color: white;
}

.footer__label {
  margin-bottom: 8px;
  color: #7bd2e6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(205, 231, 238, 0.15);
  color: #89abb6;
  font-size: 11px;
}

.footer__bottom p {
  margin: 0;
}

.footer__credits {
  margin-top: 12px;
  color: #6f99a6;
  font-size: 9px;
  line-height: 1.7;
}

.footer__credits a {
  color: #9bbdc6;
  text-decoration: underline;
  text-decoration-color: rgba(155, 189, 198, 0.45);
  text-underline-offset: 2px;
}

.footer__credits a:hover {
  color: white;
}

.mobile-call {
  display: none;
}

.trip-dialog,
.poster-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(3, 29, 42, 0.32);
}

.trip-dialog::backdrop,
.poster-dialog::backdrop {
  background: rgba(3, 29, 42, 0.76);
  backdrop-filter: blur(5px);
}

.dialog__top {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 38px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
}

.dialog__top > div {
  flex: 1 1 auto;
  min-width: 0;
}

.trip-dialog h2 {
  max-width: none;
  overflow: hidden;
  font-size: clamp(27px, 4vw, 42px);
  text-overflow: clip;
  white-space: nowrap;
}

.share-toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 17px;
  pointer-events: none;
  opacity: 0;
  color: white;
  background: var(--blue-dark);
  box-shadow: 0 16px 42px rgba(3, 29, 42, 0.28);
  font-size: 13px;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: none;
}

.dialog__close {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink-deep);
  background: transparent;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease;
}

.dialog__close:hover {
  color: white;
  background: var(--blue-dark);
}

.dialog__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 38px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.dialog__meta div {
  padding-inline: 16px;
  border-right: 1px solid var(--line);
}

.dialog__meta div:first-child {
  padding-left: 0;
}

.dialog__meta div:last-child {
  border: 0;
}

.dialog__meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.dialog__meta strong {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 19px;
}

.dialog__body {
  padding: 30px 38px 12px;
}

.dialog__poster {
  margin: 0 0 38px;
}

.dialog__poster img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #edf5f7;
}

.dialog__section-title {
  margin: 0 0 24px;
  padding-bottom: 12px;
  color: var(--ink-deep);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
}

.itinerary-day {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 0 0 30px;
}

.itinerary-day__number {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.itinerary-day h3 {
  margin: 0 0 8px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 21px;
}

.itinerary-day p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.itinerary-day dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 20px;
  margin: 0;
  padding: 11px 14px;
  background: var(--sky-soft);
  font-size: 12px;
}

.itinerary-day dl div {
  display: flex;
  gap: 8px;
}

.itinerary-day dt {
  color: var(--blue);
  font-weight: 700;
}

.itinerary-day dd {
  margin: 0;
}

.dialog__notice {
  margin: 2px 0 22px 94px;
  padding: 18px 20px;
  color: var(--muted);
  border-left: 3px solid var(--orange);
  background: var(--cream);
  font-size: 13px;
}

.dialog__notice h3 {
  margin: 0 0 6px;
  color: var(--ink-deep);
  font-family: var(--serif);
}

.dialog__notice p {
  margin: 3px 0;
}

.refinement-flow {
  margin: 46px 0 22px 94px;
}

.refinement-flow__intro {
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.refinement-flow figure {
  margin: 0;
}

.refinement-flow img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: #edf5f7;
}

.dialog__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 38px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.97);
}

.dialog__footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.poster-dialog {
  width: min(860px, calc(100vw - 28px));
  background: #eaf4f7;
}

.poster-dialog__close {
  position: fixed;
  z-index: 3;
  top: 22px;
  right: 22px;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(8, 47, 73, 0.82);
}

.poster-dialog img {
  width: 100%;
  height: auto;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 1280px) {
  .hero__content,
  .hero__controls {
    width: min(1600px, calc(100vw - 96px));
  }
}

@media (max-width: 1050px) {
  .hero h1 {
    font-size: 58px;
  }

  .trip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom__panel {
    gap: 50px;
    padding: 78px 58px;
  }

  .qr-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 36px, 720px);
  }

  .service-bar {
    display: none;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(9, 53, 74, 0.11);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    min-height: 48px;
    padding: 12px 8px;
  }

  .nav-cta {
    margin-top: 7px;
    justify-content: center;
  }

  .hero__copy {
    max-width: 680px;
  }

  .section {
    padding-block: 88px;
  }

  .about__grid,
  .mini-links__grid,
  .section-top,
  .rules__grid,
  .documents__head,
  .contact__head,
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about__content {
    max-width: none;
  }

  .section-top,
  .contact__head {
    margin-bottom: 44px;
  }

  .custom__panel {
    grid-template-columns: 1fr;
  }

  .rules__heading {
    position: static;
  }

  .contact__layout {
    gap: 50px;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 28px);
  }

  body {
    padding-bottom: 62px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 8px;
  }

  .hero,
  .hero__content {
    min-height: 590px;
  }

  .hero {
    min-height: 740px;
    background: var(--paper);
  }

  .hero__slides,
  .hero__shade {
    height: 590px;
    bottom: auto;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0, rgba(0, 0, 0, 0.52) 40%, rgba(0, 0, 0, 0.14) 76%, transparent 100%);
  }

  .hero__content {
    align-items: flex-end;
    padding-block: 32px 38px;
  }

  .hero__copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 40px);
  }

  .hero h1 > span {
    margin-bottom: 10px;
    font-size: clamp(22px, 6.8vw, 29px);
  }

  .hero__lead {
    max-width: 100%;
    margin-block: 16px 18px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero__actions {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
  }

  .hero__actions .button {
    width: auto;
    min-height: 48px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero .button--text {
    color: var(--blue-dark);
    border: 1px solid var(--blue-dark);
    background: white;
  }

  .hero .button--text:hover {
    color: white;
    border-color: var(--blue);
    background: var(--blue);
  }

  .hero__controls {
    bottom: 18px;
    justify-content: center;
    gap: 8px;
  }

  .hero__arrow {
    width: 40px;
    height: 40px;
  }

  .hero__toggle {
    min-height: 40px;
    padding-inline: 10px;
  }

  .hero__dots {
    gap: 5px;
    padding-inline: 2px;
  }

  .hero__dots button {
    width: 8px;
    height: 8px;
  }

  .hero__arrow,
  .hero__toggle,
  .hero__dots button {
    color: var(--blue-dark);
    border-color: rgba(8, 89, 133, 0.36);
    background: white;
    backdrop-filter: none;
  }

  .hero__arrow:hover,
  .hero__toggle:hover,
  .hero__dots button:hover,
  .hero__dots button[aria-current="true"] {
    color: white;
    border-color: var(--blue-dark);
    background: var(--blue-dark);
  }

  .marquee__track {
    justify-content: flex-start;
    font-size: 14px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading h2,
  .custom h2 {
    font-size: 39px;
  }

  .about__grid {
    gap: 36px;
  }

  .mini-links__grid {
    gap: 34px;
  }

  .mini-links__steps li {
    grid-template-columns: 40px 1fr;
  }

  .about__intro {
    margin-bottom: 38px;
    font-size: 21px;
  }

  .about__points {
    grid-template-columns: 1fr;
  }

  .about__points article {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .trip-grid {
    grid-template-columns: 1fr;
  }

  .trip-card h3,
  .trip-card__route {
    min-height: 0;
  }

  .custom__panel {
    width: 100%;
    padding: 64px 24px;
  }

  .custom__steps {
    margin-top: 8px;
  }

  .rule-list summary {
    min-height: 70px;
    font-size: 19px;
  }

  .rule-content {
    padding: 0 0 24px 38px;
  }

  .documents__head {
    gap: 28px;
  }

  .document-card {
    padding: 24px 20px;
  }

  .document-card__facts {
    grid-template-columns: 1fr 1fr;
  }

  .document-card__facts div:nth-child(2) {
    border-right: 0;
  }

  .document-card__facts div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .contact__head {
    gap: 28px;
  }

  .contact-item {
    grid-template-columns: 70px 1fr;
  }

  .contact-item a,
  .contact-item p {
    overflow-wrap: anywhere;
    font-size: 16px;
  }

  .qr-grid--wechat,
  .qr-grid--line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-card {
    padding: 12px;
  }

  .qr-card img {
    max-width: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    display: grid;
    margin-top: 38px;
  }

  .mobile-call {
    position: fixed;
    z-index: 99;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--orange);
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 -10px 28px rgba(9, 53, 74, 0.16);
  }

  .trip-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .dialog__top {
    padding: 24px 20px 20px;
  }

  .dialog__close {
    width: 42px;
    height: 42px;
  }

  .dialog__meta {
    grid-template-columns: 1fr 1fr;
    margin-inline: 20px;
  }

  .dialog__meta div {
    padding: 10px;
    border-bottom: 1px solid var(--line);
  }

  .dialog__meta div:nth-child(2) {
    border-right: 0;
  }

  .dialog__body {
    padding: 24px 20px 6px;
  }

  .itinerary-day {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .itinerary-day__number {
    width: 46px;
    height: 46px;
    font-size: 10px;
  }

  .itinerary-day dl {
    grid-template-columns: 1fr;
  }

  .dialog__notice {
    margin-left: 62px;
  }

  .refinement-flow {
    margin-left: 0;
  }

  .dialog__footer {
    display: grid;
    padding: 14px 20px;
  }

  .share-toast {
    right: 16px;
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__slide {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
