:root {
  --ink: #1f211d;
  --muted: #686e62;
  --line: #e4dfd2;
  --paper: #fffdf7;
  --soft: #f3f7ed;
  --green: #164f35;
  --green-2: #23724e;
  --teal: #0f776f;
  --orange: #d67a20;
  --sand: #f6efe1;
  --dark: #0e3228;
  --shadow: 0 22px 60px rgba(33, 42, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-notice {
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 8px 5vw;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.top-notice a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 270px minmax(280px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 16px 5vw;
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 70px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search {
  display: grid;
  gap: 5px;
}

.search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.search input {
  min-height: 44px;
  width: 100%;
  border: 2px solid var(--green-2);
  border-radius: 4px;
  padding: 0 14px;
  background: #fff;
  font-size: 14px;
}

.mini-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.mini-links a:hover,
.category-nav a:hover {
  color: var(--orange);
}

.cart-button,
.product-card button {
  border: 0;
  border-radius: 5px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.cart-button {
  min-height: 44px;
  padding: 0 18px;
}

.cart-button strong {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
}

.category-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 5vw;
  background: var(--dark);
}

.category-nav a {
  flex: 0 0 auto;
  padding: 15px 17px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(460px, 1.28fr);
  align-items: center;
  gap: 44px;
  padding: 62px 5vw 48px;
  background:
    linear-gradient(90deg, rgba(246, 250, 241, 0.98), rgba(255, 253, 247, 0.78)),
    radial-gradient(circle at 85% 24%, rgba(214, 122, 32, 0.15), transparent 35%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.22;
}

.hero-copy > p:not(.eyebrow),
.feature-band p,
.blog-grid p,
.product-card p,
.contact-band p,
footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 5px;
  font-weight: 900;
}

.primary {
  background: var(--green-2);
  color: #fff;
}

.secondary {
  border: 1px solid rgba(22, 79, 53, 0.35);
  background: #fff;
  color: var(--green);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-cats {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  padding: 24px 5vw;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-cats a {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--sand));
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.section {
  padding: 68px 5vw;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 28px;
}

.row-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.text-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.category-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
}

.side-categories {
  position: sticky;
  top: 118px;
  align-self: start;
  display: grid;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.side-categories a {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.side-categories a:hover {
  color: var(--green);
  background: var(--soft);
}

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

.mega-card,
.product-card,
.blog-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mega-card {
  min-height: 238px;
  padding: 22px;
}

.mega-card h3 {
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green-2);
}

.mega-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.78;
}

.products-section,
.blog-section {
  background: var(--soft);
}

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

.product-card {
  min-height: 230px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 11px;
  padding: 18px;
}

.product-card span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f4ed;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.product-card strong {
  color: var(--orange);
  font-size: 18px;
}

.product-card button {
  min-height: 40px;
  background: var(--green-2);
}

.product-card.is-hidden {
  display: none;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  gap: 30px;
  align-items: center;
  background: var(--dark);
  color: #fff;
}

.feature-band .eyebrow,
.feature-band p {
  color: rgba(255, 255, 255, 0.82);
}

.feature-band ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-band li {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

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

.blog-grid article {
  padding: 22px;
}

.blog-grid a {
  color: var(--green);
  font-weight: 900;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 0 5vw;
  background: var(--green);
}

.service-strip span {
  min-height: 70px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}

.contact-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 50px 5vw;
  background: var(--sand);
}

.contact-band a:not(.primary) {
  color: var(--green);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  background: #fff;
}

footer img {
  width: 82px;
  height: 58px;
  object-fit: contain;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 250px 1fr auto;
  }

  .mini-links {
    grid-column: 1 / -1;
  }

  .hero,
  .category-layout,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .side-categories {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-cats {
    grid-template-columns: repeat(6, 1fr);
  }

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

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

@media (max-width: 760px) {
  .top-notice,
  .category-nav,
  .mini-links {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .quick-cats,
  .side-categories,
  .mega-grid,
  .product-grid,
  .feature-band ul,
  .blog-grid,
  .service-strip {
    grid-template-columns: 1fr;
  }

  .row-heading,
  .contact-band,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
