:root {
  --brand: #0b8a4a;
  --brand-dark: #086b3a;
  --accent: #f0b429;
  --ink: #18212b;
  --muted: #5f6b7a;
  --line: #e6ebef;
  --bg: #f6f9f7;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(22, 41, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px max(20px, calc((100vw - 1180px) / 2));
  color: #eaf7ef;
  background: var(--brand-dark);
  font-size: 14px;
}
.topbar a {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .02em;
}
.topbar a:hover { color: #ffcf5a; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 270px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.nav-links a {
  position: relative;
  padding: 10px 18px;
  color: var(--brand-dark);
  font-weight: 600;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav-links a:hover { color: var(--brand); background: #eafaf0; }
.nav-links a:hover::after { width: 22px; }
.nav-toggle, .nav-button { display: none; }

.hero { position: relative; overflow: hidden; background: #0a2b1a; }
.hero-carousel { position: relative; height: clamp(460px, 76vh, 780px); }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.hero-slide.is-active img {
  transform: scale(1.06);
  animation: heroZoom 7s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 64px;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 28, 17, .82) 0%, rgba(6, 28, 17, .5) 38%, rgba(6, 28, 17, 0) 68%),
    linear-gradient(0deg, rgba(6, 28, 17, .65) 0%, rgba(6, 28, 17, 0) 32%);
}
.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-bottom: 56px;
}
.hero-meta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 18px 0;
  color: #d7efe1;
  font-size: 14px;
  letter-spacing: .02em;
}
.hero-meta span { position: relative; padding-left: 18px; }
.hero-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #b9f6d2; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(34px, 5vw, 60px); line-height: 1.12; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
h2 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
h3 { margin-bottom: 8px; font-size: 20px; }
.hero-caption > p:not(.eyebrow) { max-width: 540px; color: #eaf6ee; font-size: 19px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-actions .btn.ghost { backdrop-filter: blur(2px); background: rgba(255,255,255,.08); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { color: #fff; background: var(--brand); }
.btn.ghost { color: #fff; border: 1px solid rgba(255,255,255,.65); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -58px;
  position: relative;
  z-index: 2;
}
.stats div {
  padding: 28px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.stats strong { display: block; color: var(--brand); font-size: 34px; line-height: 1.1; }
.stats span { color: var(--muted); }

.section { padding: 92px 0; }
.section-title { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-title p:last-child { color: var(--muted); }
.advantage-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage-grid article, .product-card, .news-card, .contact-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 38, 28, 0.06);
  overflow: hidden;
}
.advantage-grid img { width: 100%; height: 190px; object-fit: contain; padding: 20px; background: #f7fbf8; }
.advantage-grid article { padding-bottom: 8px; }
.advantage-grid h3, .advantage-grid p { padding: 0 24px; }
.advantage-grid p, .product-card p, .news-list time, .contact-list, .about p { color: var(--muted); }

.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-media img { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.about-media img:last-child { margin-top: 44px; }

.category-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.category-tabs .tab {
  padding: 10px 20px;
  color: var(--brand-dark);
  border: 1px solid #bee5ce;
  border-radius: 999px;
  background: #f0fbf4;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.category-tabs .tab:hover { background: #e1f6e9; }
.category-tabs .tab.active { color: #fff; background: var(--brand); border-color: var(--brand); }

.product-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bee5ce; }
.product-thumb { position: relative; }
.product-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f7f7f7; }
.product-body { position: relative; padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: #eafaf0;
  border-radius: 999px;
}
.product-card h3 { margin-bottom: 6px; }
.product-card p { color: var(--muted); flex: 1; }
.card-link { margin-top: 12px; color: var(--brand); font-weight: 700; }
.card-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: #fff7e3;
  border-radius: 999px;
}

/* 产品详情页 */
.product-detail { padding: 36px 0 80px; }
.breadcrumb { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.breadcrumb a { color: var(--brand-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.detail-gallery {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 38, 28, 0.06);
}
.detail-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail-info h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 16px; }
.detail-abstract { font-size: 18px; color: var(--muted); }
.detail-meta { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.detail-meta li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-meta span { width: 96px; color: var(--muted); flex: none; }
.detail-meta b { color: var(--ink); }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.detail-actions .btn.primary { color: #fff; }
.detail-actions .btn.ghost { color: var(--brand-dark); border: 1px solid #bee5ce; }
.param-block { margin-top: 64px; }
.param-block h2 { text-align: center; margin-bottom: 26px; }
.param-image {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 38, 28, 0.06);
  text-align: center;
}
.param-image img { width: 100%; max-width: 760px; height: auto; }
.prev-next { display: flex; justify-content: space-between; gap: 18px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.pn-link { color: var(--brand-dark); font-weight: 600; }
.pn-link:hover { color: var(--brand); }

.join { background: linear-gradient(135deg, #0b6f3f, #0e9b56); color: #fff; }
.join .eyebrow { color: #bff8d6; }
.join-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.join-card p:not(.eyebrow) { max-width: 760px; color: #e7f8ee; }

.news-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bee5ce; }
.news-cat {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: #eafaf0;
  border-radius: 999px;
}
.news-card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.45; }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; }
.news-card time { margin-top: 14px; color: #97a3ad; font-size: 13px; }

.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 38px; align-items: center; }
.contact-list { display: grid; gap: 14px; margin: 24px 0 0; }
.contact-list div { padding: 18px 20px; border-left: 4px solid var(--brand); background: #fff; border-radius: 12px; }
.contact-list dt { font-weight: 700; color: var(--ink); }
.contact-list dd { margin: 4px 0 0; }
.contact-panel { padding: 30px; text-align: center; }
.contact-panel img { margin: 0 auto 18px; max-height: 230px; object-fit: contain; }
.contact-panel p { margin-bottom: 4px; color: var(--muted); }
.contact-panel strong { color: var(--brand); font-size: 30px; }

.footer { padding: 36px 0; color: #d7e8dd; background: #24613d; border-top: 1px solid #1d5031; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer img { display: block; width: 150px; margin-bottom: 12px; padding: 12px 16px; background: #fff; border-radius: 12px; }
.footer p { margin: 0; }
.footer > .container > div > p { color: #fff; font-weight: 600; }
.footer a { color: var(--accent); font-weight: 600; }
.footer a:hover { color: #ffcf5a; }

@media (max-width: 960px) {
  .topbar { display: none; }
  .nav { min-height: 72px; }
  .brand img { width: 210px; }
  .nav-button { display: grid; gap: 5px; cursor: pointer; }
  .nav-button span { display: block; width: 26px; height: 2px; background: var(--ink); }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    padding: 12px 20px 22px;
    background: #fff;
    box-shadow: 0 14px 24px rgba(0,0,0,.08);
  }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links a::after { display: none; }
  .nav-toggle:checked ~ .nav-links { display: block; }
  .hero-img { height: clamp(420px, 64vh, 620px); }
  .stats, .advantage-grid, .product-grid, .news-list, .about-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .stats { margin-top: 24px; }
  .detail-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 64px 0; }
  .hero-img { height: 460px; }
  .hero-meta { display: none; }
  .stats, .advantage-grid, .product-grid, .news-list, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { grid-template-columns: 1fr; }
  .about-media img, .about-media img:last-child { height: 260px; margin-top: 0; }
  .join-card, .footer-grid, .topbar { align-items: flex-start; flex-direction: column; }
  .prev-next { flex-direction: column; }
}
