:root {
  --ink: #183027;
  --muted: #63746d;
  --line: #e3ece5;
  --surface: #ffffff;
  --paper: #f7faf6;
  --brand: #0a8f52;
  --brand-dark: #076d3e;
  --brand-soft: #e8f6ec;
  --coral: #ff936f;
  --sun: #f8c955;
  --shadow: 0 18px 55px rgba(22, 58, 40, .12);
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 92% 2%, rgba(215, 238, 186, .58), transparent 27rem),
    linear-gradient(180deg, #fbfdf9 0, var(--paper) 48rem);
  color: var(--ink);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: .75rem;
  left: 50%;
  padding: .7rem 1rem;
  transform: translate(-50%, -200%);
  border-radius: .6rem;
  color: #fff;
  background: var(--brand-dark);
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(220, 233, 223, .8);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 2.5rem));
  min-height: 4.75rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: 46% 46% 50% 50%;
  background: var(--coral);
  box-shadow: inset 0 -.2rem 0 rgba(205, 82, 55, .15);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  display: block;
  content: "";
  border-radius: 100% 0;
  background: #70bb67;
}

.brand-mark::before { width: .7rem; height: 1rem; top: -.52rem; left: 1.05rem; transform: rotate(33deg); }
.brand-mark::after { width: .6rem; height: .85rem; top: -.28rem; left: .53rem; transform: rotate(-39deg); background: #a7d579; }
.brand-mark span { width: .14rem; height: .5rem; top: -.33rem; left: .97rem; border-radius: 1rem; background: #528d46; }

.brand strong, .brand small { display: block; line-height: 1.12; }
.brand strong { font-size: 1rem; letter-spacing: .035em; }
.brand small { margin-top: .17rem; color: var(--muted); font-size: .63rem; letter-spacing: .12em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin-left: auto;
}

.primary-nav a {
  color: #42564c;
  font-size: .9rem;
  text-decoration: none;
  transition: color .18s ease;
}

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

.header-buy,
.button {
  border: 0;
  border-radius: .75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-buy {
  padding: .75rem 1rem;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 7px 18px rgba(10, 143, 82, .2);
}

.header-buy:hover, .header-buy:focus-visible, .button-primary:hover, .button-primary:focus-visible {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(10, 102, 59, .2);
  transform: translateY(-1px);
}

.hero-section { width: min(1180px, calc(100% - 2.5rem)); margin: 1.5rem auto 0; }

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 45%);
  min-height: 25rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #d7e3d7;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-shell::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 44, 29, .8) 0%, rgba(8, 44, 29, .48) 48%, rgba(8, 44, 29, .04) 100%);
}

.hero-copy {
  z-index: 2;
  align-self: center;
  max-width: 35rem;
  padding: clamp(2rem, 5vw, 4.25rem);
  color: #fff;
}

.eyebrow { margin: 0 0 .65rem; color: var(--brand-dark); font-weight: 750; font-size: .78rem; letter-spacing: .13em; }
.hero-copy .eyebrow { color: #d4f0b4; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 8ch; margin-bottom: .8rem; font-size: clamp(2.65rem, 5.3vw, 5rem); line-height: 1.02; letter-spacing: -.06em; }
.hero-copy > p:not(.eyebrow) { max-width: 20rem; margin-bottom: 1.55rem; color: rgba(255,255,255,.88); line-height: 1.7; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .9rem 1.2rem; }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 7px 18px rgba(10, 102, 59, .17); }
.button-secondary { border: 1px solid rgba(255, 255, 255, .62); color: #fff; background: rgba(255,255,255,.08); }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255,255,255,.18); }

.hero-visual { position: absolute; z-index: -2; inset: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.image-placeholder { width: 100%; height: 100%; background: linear-gradient(120deg, #7ba080, #d7e3d7 44%, #a5c693); }

.hero-dots { position: absolute; z-index: 3; right: 2rem; bottom: 1.7rem; display: flex; gap: .5rem; }
.hero-dot { width: .55rem; height: .55rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.hero-dot[aria-current="true"] { width: 1.6rem; border-radius: 1rem; background: #fff; }

.section { width: min(1180px, calc(100% - 2.5rem)); margin: 5.25rem auto 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.section-heading h2, .promise-copy h2, .buy-card h2 { margin-bottom: 0; font-size: clamp(1.65rem, 3.1vw, 2.55rem); letter-spacing: -.045em; line-height: 1.1; }
.compact-heading p:last-child { margin: 0 0 .1rem; color: var(--muted); font-size: .92rem; }

.category-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.category-card {
  display: grid;
  min-height: 8.2rem;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.category-card:hover, .category-card:focus-visible { border-color: #a5d9b5; box-shadow: 0 12px 24px rgba(15, 88, 48, .08); transform: translateY(-2px); }
.category-icon { display: grid; width: 2.5rem; height: 2.5rem; margin-bottom: auto; border-radius: .8rem; place-items: center; color: var(--brand-dark); background: var(--brand-soft); font-size: 1.2rem; }
.category-card strong { display: block; margin-top: .7rem; }
.category-card small { display: block; margin-top: .3rem; color: var(--muted); font-size: .76rem; }

.search-box { display: flex; align-items: center; gap: .5rem; min-width: min(18rem, 100%); padding: .72rem .9rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; color: var(--muted); }
.search-box:focus-within { border-color: #63b98a; box-shadow: 0 0 0 3px rgba(45, 172, 94, .12); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .9rem; }

.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1rem; }
.filter-chip { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 99px; color: #53645c; background: #fff; font-size: .83rem; }
.filter-chip[aria-pressed="true"], .filter-chip:hover, .filter-chip:focus-visible { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.loading-note { min-height: 1.35rem; margin: .8rem 0; color: var(--muted); font-size: .88rem; }
.loading-note:empty { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; box-shadow: 0 1px 0 rgba(22, 58, 40, .03); }
.product-picture { position: relative; aspect-ratio: 1 / .87; overflow: hidden; background: #e8efea; }
.product-picture img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-picture img { transform: scale(1.04); }
.product-tag { position: absolute; top: .7rem; left: .7rem; max-width: calc(100% - 1.4rem); padding: .34rem .55rem; overflow: hidden; border-radius: 99px; color: #15613d; background: rgba(234, 249, 237, .94); font-size: .72rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.product-origin { min-height: 1rem; margin: 0 0 .35rem; color: var(--brand-dark); font-size: .75rem; font-weight: 700; }
.product-name { display: -webkit-box; min-height: 2.9rem; margin: 0; overflow: hidden; color: var(--ink); font-size: 1rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-description { display: -webkit-box; min-height: 2.6rem; margin: .55rem 0 0; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.product-price { color: #e3643e; font-weight: 850; font-size: 1.25rem; letter-spacing: -.03em; }
.product-price small { margin-right: .12rem; font-size: .74rem; }
.product-sold { color: var(--muted); font-size: .73rem; white-space: nowrap; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: .55rem; margin-top: .9rem; }
.card-button { min-height: 2.35rem; padding: .45rem .6rem; border: 1px solid #bfe0ca; border-radius: .62rem; color: var(--brand-dark); background: #f4fbf6; font-size: .8rem; font-weight: 750; }
.card-button.buy { border-color: var(--brand); color: #fff; background: var(--brand); }
.card-button:hover, .card-button:focus-visible { filter: brightness(.96); }
.empty-state { grid-column: 1 / -1; padding: 2.5rem 1rem; border: 1px dashed #c3d3c7; border-radius: 1rem; color: var(--muted); background: rgba(255,255,255,.6); text-align: center; }

.story-section { padding: 3rem; border-radius: 1.5rem; background: #173c2d; color: #fff; }
.story-section .eyebrow { color: #c2e78c; }
.story-section .section-heading h2 { color: #fff; }
.text-action { padding: 0; border: 0; color: #e2f6d8; background: transparent; font-weight: 750; }
.text-action span { margin-left: .35rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.story-card { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 17rem; overflow: hidden; border-radius: 1rem; background: #325a46; color: #fff; }
.story-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(15, 55, 35, .03), rgba(15, 55, 35, .92)); }
.story-card > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.story-card-content { position: relative; z-index: 1; padding: 1.25rem; }
.story-card h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.story-card p { display: -webkit-box; min-height: 3.75rem; margin-bottom: 0; overflow: hidden; color: rgba(255,255,255,.84); font-size: .85rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.story-card button { align-self: flex-start; margin-top: .9rem; padding: .45rem 0; border: 0; color: #e8f7d6; background: transparent; font-size: .8rem; font-weight: 800; }

.promise-section { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 1.5rem; background: #eff9e6; }
.promise-copy > p:not(.eyebrow) { max-width: 35rem; margin: 1rem 0 1.45rem; color: #4a5f53; line-height: 1.75; }
.promise-list { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.promise-list li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .85rem; align-items: center; padding: 1rem; border-radius: .9rem; background: rgba(255,255,255,.75); }
.promise-list span { grid-row: span 2; color: #8bb560; font-size: 1.32rem; font-weight: 850; }
.promise-list strong { color: var(--ink); }
.promise-list p { margin: .25rem 0 0; color: var(--muted); font-size: .83rem; line-height: 1.5; }

.buy-section { margin-bottom: 5.25rem; }
.buy-card { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2.2rem; border: 1px solid #dfeadf; border-radius: 1.2rem; background: #fff; box-shadow: 0 14px 38px rgba(21, 72, 43, .06); }
.buy-card > div > p:not(.eyebrow) { max-width: 36rem; margin: .9rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.buy-card ol { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.buy-card li { display: flex; align-items: center; gap: .55rem; color: #41554a; font-size: .82rem; white-space: nowrap; }
.buy-card li b { display: grid; width: 1.4rem; height: 1.4rem; border-radius: 50%; place-items: center; color: var(--brand-dark); background: var(--brand-soft); font-size: .72rem; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 2.2rem max(1.25rem, calc((100% - 1180px) / 2)); color: #6d7d75; background: #153b2b; font-size: .82rem; }
.site-footer strong { color: #fff; }
.site-footer span { color: #c9e6bc; }
.site-footer p { flex: 1 1 20rem; margin: 0; line-height: 1.6; text-align: center; }
.site-footer a { color: #d7ecba; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }

.modal { width: min(31rem, calc(100% - 2rem)); padding: 0; border: 0; border-radius: 1.2rem; color: var(--ink); background: transparent; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(8, 33, 22, .66); backdrop-filter: blur(4px); }
.modal-card { position: relative; padding: clamp(1.5rem, 5vw, 2.3rem); border-radius: 1.2rem; background: #fff; }
.modal-close { position: absolute; top: .85rem; right: .85rem; display: grid; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; place-items: center; color: #516258; background: #eef4ef; font-size: 1.35rem; line-height: 1; }
.mini-program-card { text-align: center; }
.mini-program-card h2 { margin-bottom: .75rem; font-size: 1.65rem; letter-spacing: -.04em; }
.mini-program-card > p:not(.eyebrow) { margin: 0 auto; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.qr-shell { display: grid; min-height: 15rem; margin: 1.25rem auto; place-items: center; }
.qr-shell img { width: 13.45rem; height: 13.45rem; padding: .55rem; border: 1px solid #e0eae1; border-radius: .9rem; background: #fff; image-rendering: auto; }
.qr-shell p { max-width: 17rem; color: #9a4e33; font-size: .88rem; line-height: 1.6; }
.qr-steps { display: grid; gap: .35rem; margin: 0; padding: 0; color: #586a60; font-size: .83rem; list-style-position: inside; line-height: 1.7; }

.product-detail-card { min-height: 20rem; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 1.5rem; }
.product-detail-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: .9rem; background: #e5eee7; }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-copy { padding: .3rem 1.6rem .3rem 0; }
.product-detail-copy .product-origin { margin-bottom: .65rem; }
.product-detail-copy h2 { margin-bottom: .85rem; font-size: 1.55rem; line-height: 1.32; letter-spacing: -.035em; }
.product-detail-copy .detail-description { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.spec-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.spec-list span { padding: .42rem .56rem; border-radius: .5rem; color: #4b6155; background: #eff5ef; font-size: .76rem; }
.detail-price { margin: 1.1rem 0; color: #e3643e; font-size: 1.55rem; font-weight: 850; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0 0 1rem; color: var(--muted); font-size: .78rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { position: fixed; z-index: 40; right: 1rem; bottom: 1rem; max-width: 21rem; padding: 1rem; border-radius: .75rem; color: #54251a; background: #ffeadf; box-shadow: var(--shadow); }

@media (max-width: 880px) {
  .header-inner { gap: 1rem; width: min(100% - 2rem, 1180px); }
  .primary-nav { display: none; }
  .header-buy { margin-left: auto; }
  .hero-shell { grid-template-columns: 1fr; min-height: 28rem; }
  .hero-shell::after { background: linear-gradient(90deg, rgba(8, 44, 29, .82), rgba(8, 44, 29, .31)); }
  .category-list { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-section { padding: 2rem; }
  .buy-card { grid-template-columns: 1fr auto; }
  .buy-card ol { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); }
  .buy-card .button { grid-column: 2; grid-row: 1; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 4.1rem; }
  .brand small { display: none; }
  .header-buy { padding: .65rem .72rem; font-size: .77rem; }
  .hero-section, .section { width: min(100% - 1.25rem, 1180px); }
  .hero-section { margin-top: .65rem; }
  .hero-shell { min-height: 26.5rem; border-radius: 1.1rem; }
  .hero-copy { align-self: end; padding: 1.55rem; }
  h1 { font-size: 3rem; }
  .hero-actions .button { min-height: 2.55rem; padding: .75rem .85rem; font-size: .84rem; }
  .hero-dots { right: 1.3rem; bottom: 1.1rem; }
  .section { margin-top: 3.4rem; }
  .section-heading { display: block; margin-bottom: 1.15rem; }
  .section-heading > * + * { margin-top: .9rem; }
  .compact-heading p:last-child { line-height: 1.6; }
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 7.4rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product-body { padding: .75rem; }
  .product-name { font-size: .88rem; }
  .product-description { display: none; }
  .product-price { font-size: 1.05rem; }
  .product-actions { grid-template-columns: 1fr; }
  .card-button { font-size: .74rem; }
  .story-section { width: 100%; padding: 2.25rem 1.25rem; border-radius: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 14rem; }
  .promise-section { display: block; width: 100%; padding: 2.4rem 1.25rem; border-radius: 0; }
  .promise-list { margin-top: 1.6rem; }
  .buy-section { margin-bottom: 3.4rem; }
  .buy-card { display: block; padding: 1.4rem; }
  .buy-card ol { display: grid; grid-template-columns: 1fr; margin: 1.25rem 0; }
  .buy-card .button { width: 100%; }
  .site-footer { display: block; padding: 1.7rem 1.25rem; text-align: center; }
  .site-footer p { margin: .7rem 0; }
  .product-detail-layout { display: block; }
  .product-detail-copy { padding: 1.15rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
