:root {
  --ink: #15211d;
  --muted-ink: #5e6b65;
  --line: #dfe6df;
  --paper: #fffdf8;
  --soft: #f4f7f1;
  --leaf: #2f6f51;
  --leaf-dark: #1e543b;
  --chili: #bf3e2e;
  --gold: #d99b2b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(30, 54, 45, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  color: var(--white);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(21, 33, 29, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-weight: 800;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: rgba(47, 111, 81, 0.22);
  background: #edf6ed;
  color: var(--leaf);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 10px;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 122px clamp(20px, 7vw, 92px) 64px;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 31, 25, 0.88) 0%, rgba(23, 42, 34, 0.72) 38%, rgba(18, 31, 26, 0.2) 72%),
    linear-gradient(0deg, rgba(15, 25, 22, 0.5), rgba(15, 25, 22, 0));
}

.hero-content {
  position: relative;
  width: min(700px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--chili);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(191, 62, 46, 0.28);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section {
  padding: clamp(68px, 9vw, 116px) clamp(20px, 6vw, 80px);
}

.muted {
  background: var(--soft);
}

.split,
.section-heading,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(280px, 0.97fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.section h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section p {
  margin: 16px 0 0;
  color: var(--muted-ink);
}

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

.stat-card,
.product-card,
.quality-grid article,
.news-card,
.message-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(30, 54, 45, 0.06);
}

.stat-card {
  min-height: 132px;
  padding: 24px;
}

.stat-card strong {
  display: block;
  color: var(--leaf);
  font-size: 34px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted-ink);
  font-weight: 700;
}

.product-grid,
.quality-grid,
.news-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 18px;
}

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

.product-card {
  min-height: 236px;
  padding: 26px;
}

.product-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #edf6ed;
  color: var(--leaf);
  font-weight: 900;
}

.product-card h3,
.quality-grid h3,
.news-card h3 {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.35;
}

.application-list {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.application-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.application-item b {
  color: var(--leaf-dark);
  font-size: 21px;
}

.application-item span {
  color: var(--muted-ink);
}

.research-section {
  background:
    linear-gradient(90deg, rgba(21, 33, 29, 0.86), rgba(21, 33, 29, 0.65)),
    url("assets/hero-lab-seasoning.png") center/cover;
  color: var(--white);
}

.research-panel {
  max-width: 920px;
  margin: 0 auto;
}

.research-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.process span {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.quality-grid,
.news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quality-grid article,
.news-card {
  padding: 24px;
}

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

.news-card time {
  color: var(--chili);
  font-weight: 800;
}

.contact-section {
  align-items: stretch;
}

.contact-copy {
  padding: 8px 0;
}

.contact-list {
  margin: 28px 0 0;
}

.contact-list div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted-ink);
  font-size: 13px;
  font-weight: 800;
}

.contact-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.message-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 111, 81, 0.12);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--leaf-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 80px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 112px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(16, 31, 25, 0.92), rgba(18, 31, 26, 0.56));
  }

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

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

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

@media (max-width: 640px) {
  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .stat-grid,
  .product-grid,
  .quality-grid,
  .news-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .application-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
