:root {
  --green: #557753;
  --card: #edeef5;
  --ink: #000;
  --header-h: 186px;
  --logo-h: 129px;
  --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(--green);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  padding-top: var(--header-h);
}

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;
}

.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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  /* margin: 0 0 4px; */
}

.logo-link {
  display: block;
  line-height: 0;
  padding: 4px 0;
}

.site-header img {
  height: var(--logo-h);
  width: auto;
}

.menu-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 16px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.plus,
.plus::before,
.plus::after {
  display: block;
  background: #111;
}

.plus {
  position: relative;
  width: 18px;
  height: 1px;
  margin: 0 auto;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 1px;
}

.plus::after {
  width: 1px;
  height: 18px;
  left: 8px;
  top: -8px;
}

.plus.is-open {
  background: transparent;
}

.plus.is-open::before {
  transform: rotate(45deg);
}

.plus.is-open::after {
  left: 0;
  top: 0;
  width: 18px;
  height: 1px;
  transform: rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #fff;
}

.menu-overlay[hidden] {
  display: none;
}

.menu-overlay .menu-btn {
  display: block;
  top: calc(var(--header-h) / 2);
}

body.menu-open .site-header .menu-btn {
  visibility: hidden;
}

.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}

.col {
  width: min(500px, 42%);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.3;
  /* text-align: left; */
  text-align: center;
}

.title-block {
  padding: 0 0 230px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  column-gap: 56px;
  align-items: center;
  padding: 50px 0 64px;
}

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

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

.hero-copy h2 {
  font-size: 19.2px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-copy p {
  margin-top: 72px;
}

.copy {
  padding: 88px 0 36px;
}

.copy p + p {
  margin-top: 20px;
}

strong {
  font-weight: 700;
}

.brands {
  padding: 48px 0 12px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.brand-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery {
  position: relative;
  height: 50vh;
  min-height: 280px;
  margin: 24px 3vw 8px;
}

.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: 30px;
  height: 38px;
  border: 0;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.gallery-btn::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto;
  border-left: 2px solid #232323;
  border-bottom: 2px solid #232323;
}

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

.gallery-btn.prev::before {
  transform: rotate(45deg);
  margin-left: 6px;
}

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

.gallery-btn.next::before {
  transform: rotate(-135deg);
  margin-right: 13px;
}

.pair {
  padding: 56px 0 8px;
}

.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  align-items: start;
}

.pair-grid img {
  width: 100%;
  aspect-ratio: 544 / 320;
  object-fit: cover;
  display: block;
}

.pair-grid img:last-child {
  margin-top: 74px;
}

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

.feature img {
  width: min(594px, 52%);
  aspect-ratio: 594 / 504;
  object-fit: cover;
  display: block;
}

.copy-tight {
  padding-top: 48px;
}

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

.privilege-card {
  width: min(695px, calc(100% - 80px));
  min-height: 283px;
  margin: 0 auto;
  padding: 48px 36px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.privilege-card p {
  margin: 0;
  font-weight: 700;
}

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

.poster img {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

.scan-grid {
  position: relative;
  width: min(1100px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: center;
}

.xhs-mark {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 26px;
  height: 26px;
  transform: translateX(-50%);
}

.scan figure {
  margin: 0;
}

.scan .qr {
  width: 247px;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

.privilege-card,
.privilege-card p {
  color: #000;
}

@media (max-width: 799px) {
  :root {
    /* --header-h: 117px;
    --logo-h: 72px; */
    --header-h: 138px;
    --logo-h: 76px;
  }

  .menu-btn {
    display: block;
  }

  .wrap,
  .scan-grid,
  .privilege-card {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: 35px;
    text-align: center;
    line-height: 1.35;
  }

  .title-block {
    padding: 8px 0 33px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
    padding: 12px 9px 28px;
  }

  .hero-copy h2 {
    font-size: 18px;
  }

  .hero-copy p {
    margin-top: 18px;
  }

  .col {
    width: 100%;
  }

  .copy {
    padding: 15px 10px 0px;
  }

  .brands {
    padding: 32px 9px 0px;
  }

  .brand-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .gallery {
    height: 45vh;
    min-height: 180px;
    margin: 30px 26px 4px;
  }

  .pair {
    padding: 4px 9px 0;
  }

  .pair-grid {
    column-gap: 8px;
  }

  .pair-grid img:last-child {
    margin-top: 0;
  }

  .feature {
    padding: 102px 9px 55px;
  }

  .feature img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .privilege {
    padding: 22px 9px 18px;
  }

  .privilege-card {
    min-height: 0;
    padding: 34px 16px;
  }

  .poster {
    padding: 16px 0 34px;
    text-align: center;
  }

  .poster img {
    width: min(100%, 382px);
    margin-inline: auto;
  }

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

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

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

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

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

  .xhs-mark {
    width: 18px;
    height: 18px;
    bottom: 18px;
  }
}

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

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