:root {
  --red: #cb4136;
  --ink: #111;
  --card: #edeff5;
  --sans:
    Poppins, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background: var(--red);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  font-family: inherit;
}

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

.skip:focus {
  top: 12px;
}

.site-header {
  background: #fff;
  text-align: center;
  line-height: 0;
  padding: 8px 0;
}

.logo-link {
  display: inline-block;
}

.site-header img {
  height: 80px;
  width: auto;
  margin: 7px 0;
}

@media (min-width: 768px) {
  .site-header {
    padding: 7.3vw 0 9.9vw;
  }

  .site-header img {
    height: 72px;
    margin: 0;
  }
}

.frame {
  width: min(1200px, calc(100% - 8vw));
  margin-inline: auto;
}

.col {
  width: min(520px, 46%);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 500;
  line-height: 1.4;
}

h1 {
  font-size: 19.2px;
  font-weight: 700;
}

h2 {
  font-size: 19.2px;
  margin-bottom: 2rem;
}

p + p {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

strong {
  font-weight: 700;
}

.hero {
  padding: 58px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  column-gap: 4vw;
  align-items: center;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: 594px minmax(0, 480px);
    column-gap: 70px;
    justify-content: start;
  }
}

.hero-grid > * {
  min-width: 0;
}

.hero-grid > img {
  width: 100%;
  aspect-ratio: 594 / 504;
  object-fit: cover;
  display: block;
}

.hero-copy {
  margin-bottom: 112px;
  text-align: center;
  width: 100%;
  max-width: 480px;
}

.hero-copy p {
  margin-top: 1.15rem;
}

.gallery {
  position: relative;
  height: 50vh;
  min-height: 220px;
  /* background: #8d3a32; */
  padding: 27px 27px;
}

.gallery-track {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.gallery-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

/* .gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 64px;
  border: 0;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
} */
.gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 23px;
  height: 35px;
  border: 0;
  transform: translateY(-50%);
  background: #ffffff40;
  color: #383838;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.gallery-btn.prev {
  left: 42px;
}

.gallery-btn.next {
  right: 42px;
}

.prose {
  padding: 72px 0 8px;
}

.visit-intro {
  padding-top: 56px;
  padding-bottom: 8px;
}

.place {
  padding: 36px 0 8px;
}

.place img {
  display: block;
  width: min(680px, 58%);
  margin-bottom: 22px;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
}

.place img.night {
  object-position: center 42%;
}

.place img.playground {
  object-position: center 72%;
}

.place img.lanna {
  object-position: center 40%;
}

.privilege {
  padding: 28px 28px 8px;
}

.privilege-card {
  width: min(700px, 58%);
  margin: 20px auto 0;
  padding: 34px 6%;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-align: center;
}

.poster {
  padding: 28px 0 48px;
}

.poster img {
  display: block;
  width: min(320px, 42%);
  margin-inline: auto;
}

.scan {
  background: #fff;
  color: var(--ink);
  padding: 36px 0 96px;
}

.scan-grid {
  width: min(860px, calc(100% - 8vw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 48px;
  text-align: center;
}

.scan figure {
  margin: 0;
}

.scan .qr {
  width: min(240px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

.scan figcaption {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

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

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

@media (max-width: 767px) {
  .site-header img {
    height: 80px;
    margin: 7px 0;
  }

  .frame {
    width: calc(100% - 46px);
  }

  .col,
  .privilege-card {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 18px;
  }

  .hero {
    padding: 39px 2px 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .hero-copy {
    margin-bottom: 0;
    max-width: none;
  }

  .hero-grid > img {
    aspect-ratio: 3 / 2;
  }

  .prose {
    padding: 0px 0 4px;
  }

  .visit-intro {
    padding-top: 32px;
  }

  .place {
    padding-top: 28px;
  }

  .place img {
    width: 100%;
    margin-bottom: 16px;
  }

  .privilege {
    padding-top: 20px;
  }

  .privilege-card {
    margin-top: 8px;
    padding: 30px 18px;
  }

  .poster {
    padding: 16px 8px 28px;
  }

  .poster img {
    width: 100%;
  }

  .scan {
    padding: 28px 0 48px;
  }

  .scan-grid {
    width: calc(100% - 46px);
    gap: 8px 16px;
  }

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

  .scan figcaption {
    font-size: 16px;
    line-height: 1.45;
  }
}

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

  .gallery-track img {
    transition: none;
  }
}
