:root {
  --green: #138847;
  --green-dark: #0d5c35;
  --green-soft: #eaf7ef;
  --ink: #24352b;
  --muted: #667268;
  --line: #e4ebe6;
  --paper: #ffffff;
  --warm: #fff9ef;
  --shadow: 0 16px 42px rgba(23, 76, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 7vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 235, 230, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green), #49ac55);
  border-radius: 50%;
}

.brand strong {
  display: block;
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1.1;
}

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

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 46px);
  color: #2f4236;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 27px 0 25px;
}

.site-nav a.active::after,
.site-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--green);
  border-radius: 999px;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  color: #fff;
  font-weight: 700;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 24px rgba(19, 136, 71, 0.22);
  transform: translateY(-1px);
}

.btn-small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-ghost {
  color: var(--green);
  background: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--green-dark);
}

.hero {
  position: relative;
  min-height: clamp(420px, 52vw, 560px);
  overflow: hidden;
  background: #dbeadb;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 252, 246, 0.93) 0%, rgba(248, 252, 246, 0.73) 38%, rgba(248, 252, 246, 0.1) 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 86vw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.12;
}

.hero-content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: #425245;
  font-size: 22px;
  line-height: 1.7;
}

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

.hero-tags span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.hero-tags span::before {
  margin-right: 6px;
  color: var(--green);
  content: "✓";
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, 92vw);
  margin: -34px auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metrics div {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
}

.metrics span {
  color: var(--muted);
}

.section {
  width: min(1180px, 92vw);
  margin: 72px auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section h2,
.advantage-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tabs button {
  min-height: 34px;
  padding: 0 16px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.tabs button.active,
.tabs button:hover {
  color: var(--green);
  border-color: var(--green);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 65, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.product-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.product-body strong {
  color: #d65033;
  font-size: 18px;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: var(--green);
  border-radius: 4px;
}

.badge.hot {
  background: #e8442e;
}

.advantage-band {
  padding: 54px 7vw 64px;
  color: #fff;
  background:
    linear-gradient(rgba(13, 92, 53, 0.88), rgba(19, 136, 71, 0.84)),
    url("../assets/hero-farm.png") center / cover;
}

.advantage-band h2 {
  color: #fff;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  width: min(1180px, 92vw);
  margin: 34px auto 0;
}

.advantage-grid div {
  text-align: center;
}

.advantage-grid span {
  display: block;
  font-size: 40px;
  line-height: 1;
}

.advantage-grid strong {
  display: block;
  margin-top: 14px;
  font-size: 17px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.about-copy h2 {
  text-align: left;
}

.about-copy p,
.about-copy li {
  color: var(--muted);
  line-height: 1.9;
}

.about-copy ul {
  padding-left: 20px;
  margin: 20px 0 28px;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: min(980px, 92vw);
  margin: 0 auto 78px;
  text-align: center;
}

.timeline div {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.timeline div::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline strong {
  display: block;
  color: var(--green);
  font-size: 18px;
}

.timeline span {
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--green);
  font-weight: 700;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-list article {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-list img {
  width: 132px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
}

.news-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.news-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.news-list time {
  color: #8d9a90;
  font-size: 13px;
  white-space: nowrap;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.contact-card,
.message-form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card h2 {
  margin-bottom: 22px;
  text-align: left;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.8;
}

.message-form {
  display: grid;
  gap: 14px;
}

.message-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
}

.message-form textarea {
  resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 136, 71, 0.1);
}

.map-image {
  width: 100%;
  height: 100%;
  min-height: 318px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  color: #d9e7dd;
  background: #0d2d33;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 48px 0 34px;
}

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

.footer-inner p,
.footer-inner a {
  display: block;
  margin-top: 12px;
  color: #b8cabf;
}

.footer-inner strong {
  color: #fff;
}

.copyright {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 18px 0;
  color: #9fb3a7;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-nav.open {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 7vw 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open a {
    padding: 16px 0;
  }

  .metrics,
  .product-grid,
  .advantage-grid,
  .timeline,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section-heading {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }

  .hero-content {
    width: calc(100% - 36px);
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 18px;
  }

  .metrics,
  .product-grid,
  .advantage-grid,
  .timeline,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .news-list article {
    grid-template-columns: 96px 1fr;
    align-items: start;
  }

  .news-list img {
    width: 96px;
    height: 72px;
  }

  .news-list time {
    grid-column: 2;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1 1 130px;
  }
}
