:root {
  color-scheme: light;
  --paper: #fffaf5;
  --paper-soft: #f7eee6;
  --ink: #3e2921;
  --muted: #755f55;
  --line: #e7d7ca;
  --accent: #c96f4d;
  --accent-dark: #9b4e36;
  --sage: #75815a;
  --white: #ffffff;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.site-header {
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(231, 215, 202, 0.8);
  background: rgba(255, 250, 245, 0.96);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand__zh {
  font-size: 22px;
  font-weight: 800;
}

.brand__en {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 104px));
  padding: clamp(56px, 9vw, 112px) clamp(22px, 7vw, 108px) 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(37, 22, 17, 0.78) 0%, rgba(37, 22, 17, 0.48) 45%, rgba(37, 22, 17, 0.08) 76%),
    url("https://boocibooci-assets-1478458918.cos.ap-guangzhou.myqcloud.com/home/hero/hero-product-v1.jpg");
  background-position: center 62%;
  background-size: cover;
}

.hero__content {
  width: min(640px, 100%);
  color: var(--white);
}

.hero__eyebrow,
.section__eyebrow {
  margin: 0 0 10px;
  color: #f2cbb6;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1;
  letter-spacing: 0;
}

.hero__headline {
  margin: 18px 0 8px;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.25;
}

.hero__intro {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero__action {
  display: inline-flex;
  min-height: 46px;
  margin-top: 28px;
  padding: 10px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.hero__action:hover,
.hero__action:focus-visible {
  background: var(--white);
}

.hero__caption {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 88px);
}

.section__heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section__eyebrow {
  color: var(--accent-dark);
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: 0;
}

.section__heading > p:last-child,
.miniprogram__copy > p,
.store p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 18px;
  object-fit: contain;
  background: #f6f1ed;
}

.product-card h3 {
  margin: 18px 18px 4px;
  font-size: 20px;
}

.product-card p {
  min-height: 48px;
  margin: 0 18px 20px;
  color: var(--muted);
  font-size: 14px;
}

.miniprogram {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(36px, 8vw, 112px);
  background: #efe0d4;
}

.steps {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.steps span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 13px;
}

.miniprogram__placeholder {
  min-height: 310px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(155, 78, 54, 0.28);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.miniprogram__code {
  width: min(220px, 100%);
  height: 220px;
  flex: none;
  aspect-ratio: 1;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f8f8;
}

.miniprogram__code img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.miniprogram__placeholder strong {
  color: var(--muted);
  font-size: 14px;
}

.miniprogram__placeholder b {
  font-size: 28px;
}

.store {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.store__note {
  max-width: 430px;
  margin: 0;
  text-align: right;
}

.site-footer {
  min-height: 80px;
  padding: 22px clamp(20px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid var(--line);
  color: #89746a;
  font-size: 13px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .miniprogram__placeholder {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand__zh {
    font-size: 20px;
  }

  .brand__en {
    display: none;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .site-nav a:last-child {
    display: none;
  }

  .hero {
    min-height: 68svh;
    padding-top: 70px;
    background-image:
      linear-gradient(180deg, rgba(37, 22, 17, 0.42) 0%, rgba(37, 22, 17, 0.76) 72%, rgba(37, 22, 17, 0.84) 100%),
      url("https://boocibooci-assets-1478458918.cos.ap-guangzhou.myqcloud.com/home/hero/hero-product-v1.jpg");
    background-position: center 56%;
  }

  .hero__caption {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card img {
    padding: 10px;
  }

  .product-card h3 {
    margin: 14px 12px 2px;
    font-size: 17px;
  }

  .product-card p {
    min-height: 66px;
    margin: 0 12px 14px;
    font-size: 12px;
  }

  .store {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .store__note {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .site-nav a:first-child {
    display: none;
  }

  .hero h1 {
    font-size: 48px;
  }
}

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