:root {
  --blue: #3d80ae;
  --ink: #111;
  --inset: 8%;
  --sans:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  /* font-weight: 400; */
  font-size: 15px;
  line-height: 1.8;
  background: #fff;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: relative;
  text-align: center;
  padding: 28px 64px 8px;
  background: #fff;
}

.site-header img {
  width: min(406px, 48vw);
  height: auto;
}

.menu-btn,
.menu-close,
.carousel-btn {
  font-family: inherit;
  cursor: pointer;
}

.menu-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-btn-bars,
.menu-btn-bars::before,
.menu-btn-bars::after {
  display: block;
  height: 2px;
  background: #111;
  border-radius: 1px;
}

.menu-btn-bars {
  position: relative;
}

.menu-btn-bars::before,
.menu-btn-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.menu-btn-bars::before {
  top: -7px;
}
.menu-btn-bars::after {
  top: 7px;
}

.site-menu:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 72px 12% 48px;
}

.site-menu a {
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: transparent;
  font-size: 16px;
}

.headline {
  margin: 0;
  padding: 36px 20px 40px;
  text-align: center;
  font-size: clamp(30px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  background: #fff;
}

.sheet {
  background: var(--blue);
  overflow: hidden;
}

.hero,
.split,
.prose-band,
.privilege,
.poster,
.carousel {
  background: var(--blue);
  color: #fff;
  margin-top: -1px;
}

.sheet > :first-child {
  margin-top: 0;
}

.hero,
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 48px var(--inset);
}

.hero img,
.split img {
  width: 100%;
  height: 504px;
  object-fit: cover;
  display: block;
}

.hero-copy,
.split-copy {
  min-width: 0;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1,
.hero-copy p {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.hero-copy h1 {
  font-size: clamp(26px, 2.4vw, 35px);
}

.hero-copy p {
  margin-top: 26px;
  font-size: clamp(22px, 2.3vw, 33px);
  font-weight: 600;
}

.carousel {
  position: relative;
  padding: 40px 3%;
}

.carousel-track {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.carousel-track img.is-active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 56%;
  transform: translateY(-50%);
  width: 27px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  color: #575757;
  font-size: 28px;
  line-height: 1;
}

.carousel-btn.prev {
  left: 41px;
}
.carousel-btn.next {
  right: 41px;
}

.prose-band {
  padding: 72px var(--inset);
}

.prose {
  max-width: 520px;
}

.prose h2,
.split-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.prose p,
.split-copy p {
  margin: 0 0 15px;
}
.prose p:last-child,
.split-copy p:last-child {
  margin-bottom: 4px;
}

.location {
  padding-top: 28px;
  padding-bottom: 36px;
}

/* .privilege {
  padding: 0px var(--inset) 0px;
} */
.privilege {
  padding: 0px 28px;
}

.privilege-card {
  max-width: 695px;
  margin: 0 auto;
  padding: 64px 28px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-align: center;
  font-weight: 700;
}

.privilege-card p {
  margin: 0;
}

/* .poster {
  padding: 28px var(--inset) 56px;
} */
.poster {
  padding: 28px 0 32px;
}

.poster img {
  width: min(380px, 85vw);
  height: auto;
  display: block;
}

.scan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
  background: #fff;
  color: #111;
}

.scan figure {
  margin: 0;
}

.scan .qr {
  width: min(240px, 100%);
  height: auto;
  background: #fff;
}

.scan figcaption {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.xhs-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.xhs-line img {
  width: 28px;
  height: 28px;
}

@media (max-width: 800px) {
  main {
    container-type: inline-size;
  }

  .site-header {
    padding: 36px 56px 4px;
  }

  .headline {
    padding: 24px 16px 10px;
    /* 13 個全形字。寬度夠時維持 30px，更窄時隨窗口縮小，避免斷行。 */
    font-size: min(30px, calc((100cqw - 36px) / 13));
    white-space: nowrap;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 28px 22px;
  }

  .hero img,
  .split img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .hero-copy h1 {
    /* 10 個全形字。寬度夠時維持 28px。 */
    font-size: min(28px, calc((100cqw - 60px) / 10));
    white-space: nowrap;
  }
  .hero-copy p {
    /* 「500」不是全形，整句約 14.8em。寬度夠時維持 25px。 */
    font-size: min(25px, calc((100cqw - 60px) / 14.8));
    white-space: nowrap;
  }

  .carousel {
    padding: 43px 28px 0px;
  }
  .carousel-track {
    height: 425px;
  }

  .prose-band {
    padding: 0px 28px;
  }
  .prose-band-1 {
    padding: 1px 28px;
  }
  .prose-band-2 {
    padding: 28px 28px 0;
  }
  .prose {
    max-width: none;
  }

  .privilege-card {
    padding: 36px 16px;
  }

  .poster {
    text-align: center;
  }
  .poster img {
    margin: 0 auto;
  }

  .scan {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 28px 16px 48px;
  }

  .scan .qr {
    width: min(185px, 100%);
  }

  .scan figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .xhs-line {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .xhs-line img {
    width: 22px;
    height: 22px;
    flex: none;
  }

  .site-menu a {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .carousel-track img {
    transition: none;
  }
}
