:root {
  --forest: #173d2b;
  --forest-deep: #102c21;
  --sage: #6f7f6f;
  --olive: #a57d32;
  --gold-soft: #c7a45d;
  --ink: #17231d;
  --muted: #657267;
  --paper: #f7f8f3;
  --paper-warm: #fbfaf5;
  --white: #ffffff;
  --line: rgba(23, 61, 43, 0.14);
  --shadow: 0 24px 64px rgba(20, 44, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 61, 43, 0.1);
  background: rgba(247, 248, 243, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner,
.section,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--forest);
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo {
  width: 114px;
  height: 87px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 33px;
  line-height: 1.12;
}

.brand-en {
  display: block;
  margin-top: 5px;
  color: rgba(23, 61, 43, 0.58);
  font-size: 15px;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  color: #263b30;
  font-size: 15px;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  min-height: 104px;
  display: inline-flex;
  align-items: center;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav .active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 44px;
  margin: 0 auto;
  padding: 54px 0 66px;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 14px 34px rgba(23, 61, 43, 0.22);
}

.button.secondary {
  border: 1px solid rgba(23, 61, 43, 0.18);
  color: var(--forest);
  background: rgba(255, 255, 255, 0.72);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #eef1e9;
}

.hero-slider-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 520ms ease;
  will-change: transform;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  min-width: 0;
  display: block;
  object-fit: cover;
}

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 44, 33, 0.54);
  box-shadow: 0 10px 26px rgba(16, 44, 33, 0.22);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.slider-control:hover,
.slider-control:focus-visible {
  background: rgba(16, 44, 33, 0.76);
  transform: translateY(-50%) scale(1.04);
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition:
    width 160ms ease,
    background 160ms ease;
}

.slider-dots button.active {
  width: 26px;
  background: #fff;
}


.strength-grid article,
.contact-panel,
.category-panel,
.product-gallery figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(24, 50, 38, 0.07);
}

.section {
  padding: 68px 0;
}

.section-divider {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px auto 0;
  color: var(--olive);
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(165, 125, 50, 0.38), transparent);
}

.section-divider span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(165, 125, 50, 0.58);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 6px rgba(165, 125, 50, 0.06);
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading p,
.section-heading h2,
.section-heading span {
  display: block;
  margin: 0;
}

.section-heading p {
  color: var(--olive);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.section-heading h2 {
  margin-top: 7px;
  color: var(--forest-deep);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

.section-heading span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.product-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.category-nav label {
  padding: 12px 18px;
  border: 1px solid rgba(23, 61, 43, 0.16);
  border-radius: 8px;
  color: #244d39;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 20px rgba(24, 50, 38, 0.05);
  font-weight: 900;
  cursor: pointer;
}

#cat-ejiao:checked ~ .category-nav label[for="cat-ejiao"],
#cat-liquid:checked ~ .category-nav label[for="cat-liquid"],
#cat-solid:checked ~ .category-nav label[for="cat-solid"],
#cat-ready:checked ~ .category-nav label[for="cat-ready"],
#cat-drink:checked ~ .category-nav label[for="cat-drink"],
#cat-powder:checked ~ .category-nav label[for="cat-powder"],
#cat-pill:checked ~ .category-nav label[for="cat-pill"],
#cat-diet:checked ~ .category-nav label[for="cat-diet"] {
  color: #fff;
  background: var(--forest);
}

.category-panel {
  display: none;
  grid-template-columns: 0.88fr 1.45fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

#cat-ejiao:checked ~ .category-panels .panel-ejiao,
#cat-liquid:checked ~ .category-panels .panel-liquid,
#cat-solid:checked ~ .category-panels .panel-solid,
#cat-ready:checked ~ .category-panels .panel-ready,
#cat-drink:checked ~ .category-panels .panel-drink,
#cat-powder:checked ~ .category-panels .panel-powder,
#cat-pill:checked ~ .category-panels .panel-pill,
#cat-diet:checked ~ .category-panels .panel-diet {
  display: grid;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.panel-copy h3 {
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(30px, 3vw, 42px);
}

.panel-copy p:not(.panel-kicker) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.product-gallery figure {
  overflow: hidden;
  margin: 0;
}

.product-gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-gallery figcaption {
  padding: 13px 14px;
  color: var(--forest);
  font-weight: 900;
}

.strength-section {
  width: 100%;
  margin-top: 10px;
  padding-top: 50px;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: var(--paper-warm);
}

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

.strength-grid article {
  padding: 28px;
}

.strength-grid strong {
  display: block;
  color: var(--forest);
  font-size: 22px;
}

.strength-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 42px;
  align-items: center;
}

.about-copy h2 {
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
}

.about-copy p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.about-section img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-section {
  padding-top: 18px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 34px;
  padding: 34px;
}

.contact-panel h2 {
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(30px, 3.5vw, 44px);
}

.contact-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-info {
  display: grid;
  gap: 14px;
  margin: 0;
  font-style: normal;
}

.contact-info p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-info p:last-child {
  border-bottom: 0;
}

.contact-info strong {
  color: var(--forest);
}

.contact-info span {
  color: #2e4136;
  line-height: 1.55;
}

.site-footer {
  margin-top: 34px;
  padding: 46px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--forest-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.72fr 1.08fr 0.72fr;
  align-items: start;
  gap: 34px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-logo {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.site-footer .brand-en {
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand {
  cursor: default;
}

.footer-brand-block p {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.8;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.footer-column a,
.footer-column p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.7;
}

.footer-column a:hover {
  color: #fff;
}

.footer-column p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
}

.footer-column strong {
  color: rgba(255, 255, 255, 0.92);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 61, 43, 0.88);
  box-shadow: 0 14px 34px rgba(16, 44, 33, 0.24);
  font-size: 22px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    background 160ms ease,
    opacity 180ms ease,
    transform 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--forest-deep);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    gap: 26px;
  }

  .main-nav a {
    min-height: 48px;
  }

  .main-nav a::after {
    bottom: 6px;
  }

  .hero,
  .category-panel,
  .about-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section,
  .footer-inner,
  .hero {
    width: min(100% - 28px, 1180px);
  }

  .brand-logo {
    width: 86px;
    height: 66px;
  }

  .brand-name {
    font-size: 25px;
  }

  .brand-en {
    font-size: 11px;
  }

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

  .hero-slider,
  .about-section img {
    height: 300px;
  }

  .slider-control {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .section-divider {
    width: min(100% - 28px, 1180px);
    margin-top: 4px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .strength-grid,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .category-panel {
    padding: 18px;
  }

  .contact-info p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
