:root {
  --ivory: #f5f7f2;
  --linen: #e4ece2;
  --sand: #d8c991;
  --walnut: #0f5f58;
  --espresso: #17211f;
  --moss: #697a66;
  --sage: #d8e5d5;
  --ink: #17211f;
  --muted: #64706b;
  --white: #fffdfa;
  --line: rgba(15, 95, 88, 0.18);
  --shadow: 0 22px 60px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.announcement {
  padding: 8px 18px;
  background: var(--espresso);
  color: var(--ivory);
  text-align: center;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(18px);
}

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

.logo span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--walnut);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 22px;
}

.logo strong {
  font-size: 15px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

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

.main-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions button,
.menu-button,
.hero-arrow {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.header-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.sample-link,
.hero-buttons a,
.featured-copy a,
.sample-form button,
.guide-section a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--walnut);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 112px);
  overflow: hidden;
  background: var(--espresso);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 900ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 7vw, 104px);
  bottom: clamp(82px, 14vh, 160px);
  width: min(650px, calc(100% - 44px));
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.hero-copy p,
.eyebrow {
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--sand) 80%, white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 5px;
  font-size: 19px;
}

.hero-copy span {
  display: block;
  max-width: 560px;
  margin-bottom: 26px;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-buttons .secondary {
  border: 1px solid rgba(255, 250, 244, 0.7);
  background: rgba(255, 250, 244, 0.12);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.72);
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: clamp(22px, 7vw, 104px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 42px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--white);
}

.section,
.featured,
.sample-section,
.guide-section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 86px 0;
  scroll-margin-top: 92px;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.intro > p,
.section-head p,
.featured-copy p,
.sample-section p,
.guide-section p,
.review-card p,
.site-footer p {
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head.compact {
  display: block;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(33, 26, 22, 0.06);
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 350ms ease;
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card h3,
.category-card p,
.category-card a {
  margin-left: 18px;
  margin-right: 18px;
}

.category-card h3 {
  margin-top: 18px;
}

.category-card p {
  color: var(--muted);
}

.category-card a {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--walnut);
  font-weight: 800;
  text-decoration: none;
}

.value-section {
  padding-top: 40px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.value-grid div,
.product-list article,
.steps div,
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.value-grid div {
  min-height: 180px;
  padding: 20px;
}

.value-grid strong,
.value-grid span,
.product-list strong,
.product-list small {
  display: block;
}

.value-grid strong {
  margin-bottom: 12px;
  font-size: 18px;
}

.value-grid span {
  color: var(--muted);
  font-size: 14px;
}

.featured {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 38px;
  border-radius: 8px;
  background: var(--sage);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-copy a {
  align-self: flex-start;
  margin-top: 10px;
}

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

.product-list article {
  padding: 22px;
}

.product-list span {
  color: var(--moss);
  font-weight: 900;
}

.product-list small {
  margin-top: 6px;
  color: var(--muted);
}

.sample-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 0;
  overflow: hidden;
  margin-top: 86px;
  border-radius: 8px;
  background: var(--espresso);
  color: var(--white);
}

.sample-section img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.sample-section > div {
  align-self: center;
  padding: clamp(28px, 5vw, 58px);
}

.sample-section p {
  color: color-mix(in srgb, var(--white) 78%, transparent);
}

.sample-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.sample-form input,
.sample-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 250, 244, 0.2);
  border-radius: 4px;
  background: rgba(255, 250, 244, 0.08);
  color: var(--white);
  padding: 0 13px;
  font: inherit;
}

.sample-form input::placeholder {
  color: rgba(255, 250, 244, 0.7);
}

.sample-form option {
  color: var(--ink);
}

.sample-form button {
  border: 0;
  background: var(--sand);
  color: var(--espresso);
  cursor: pointer;
}

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

.steps div {
  min-height: 220px;
  padding: 22px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--walnut);
  color: var(--white);
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.steps p {
  color: var(--muted);
}

.masonry {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 260px);
  gap: 14px;
}

.masonry img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.masonry img:first-child {
  grid-row: span 2;
}

.guide-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: 8px;
  background: var(--linen);
}

.guide-section p {
  max-width: 680px;
  margin-bottom: 0;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  padding: 24px;
}

.review-card strong {
  color: var(--walnut);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-logo {
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.open .main-nav,
  .site-header.open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .intro,
  .section-head,
  .featured,
  .sample-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .value-grid,
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: 720px;
  }

  .hero-copy {
    bottom: 92px;
  }

  .hero-arrow {
    top: auto;
    bottom: 26px;
    transform: none;
  }

  .hero-dots {
    bottom: 82px;
  }

  .category-grid,
  .value-grid,
  .product-list,
  .steps,
  .reviews {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .featured,
  .guide-section {
    padding: 24px;
  }

  .sample-section img {
    min-height: 320px;
  }

  .masonry {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .masonry img,
  .masonry img:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}
