/* ============================================================
   润禾灌溉 RUNHE IRRIGATION — 全站共享样式
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: 'Noto Sans SC';
  src: url('../fonts/NotoSansSC-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 设计变量 ---------- */
:root {
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --green-950: #072C1B;
  --green-900: #0B4A2B;
  --green-800: #0E5C36;
  --green-700: #127043;
  --green-600: #178A52;
  --green-500: #1FA564;
  --green-400: #43BE81;
  --green-200: #B5E4CB;
  --green-100: #D9F0E2;
  --green-50:  #F0F9F3;

  --blue-700: #1473B3;
  --blue-600: #1C8FD6;
  --blue-100: #DDEEFA;
  --blue-50:  #EFF7FC;

  --amber-500: #F2A93B;

  --ink-900: #14281F;
  --ink-700: #33493E;
  --ink-500: #5E7267;
  --ink-400: #84958B;
  --line: #E2EAE4;
  --bg-soft: #F5F9F6;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 52, 34, .06), 0 6px 16px rgba(16, 52, 34, .05);
  --shadow-md: 0 2px 4px rgba(16, 52, 34, .08), 0 14px 34px rgba(16, 52, 34, .09);

  --header-h: 76px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; line-height: 1.3; }
button { font-family: inherit; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #DCEBE1;
}
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- 分区标题 ---------- */
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .18em;
  color: var(--green-600); margin-bottom: 14px;
}
.sec-kicker::before { content: ""; width: 26px; height: 2px; background: var(--green-500); }
.sec-head--center .sec-kicker::after { content: ""; width: 26px; height: 2px; background: var(--green-500); }
.section--dark .sec-kicker { color: #7CDCA8; }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: .02em; }
.sec-desc { margin-top: 14px; font-size: 16px; color: var(--ink-500); }
.section--dark .sec-desc { color: #AECBB9; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 18px rgba(23, 138, 82, .32); }
.btn--primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 138, 82, .38); }
.btn--blue { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(28, 143, 214, .3); }
.btn--blue:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.btn--ghost { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn--lg { padding: 16px 36px; font-size: 16px; }

/* ---------- 顶栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 21px; font-weight: 800; color: var(--green-800); letter-spacing: .04em; }
.brand-name small { font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--ink-400); margin-top: 3px; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 16px;
  font-size: 15.5px; font-weight: 500; color: var(--ink-700);
  border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.main-nav a:hover { color: var(--green-600); background: var(--green-50); }
.main-nav a.active { color: var(--green-700); font-weight: 700; }
.main-nav a.active::after { content: ""; display: block; height: 2px; background: var(--green-500); border-radius: 2px; margin-top: 2px; }

.header-tel {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--ink-500); white-space: nowrap;
}
.header-tel strong { display: block; font-size: 17px; color: var(--green-700); font-weight: 800; letter-spacing: .02em; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink-900);
  margin: 5px auto; border-radius: 2px; transition: transform .22s ease, opacity .22s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; min-height: 86vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--green-950);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(7, 44, 27, .86) 6%, rgba(9, 62, 37, .62) 42%, rgba(7, 44, 27, .18) 74%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 110px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .2em;
  color: #A8E8C4; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4CD58E; }
.hero-title {
  font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; color: #fff;
  letter-spacing: .02em; line-height: 1.18; max-width: 660px;
}
.hero-title em { font-style: normal; color: #6FE0A5; }
.hero-desc {
  margin-top: 22px; max-width: 560px;
  font-size: 17px; line-height: 1.9; color: rgba(238, 248, 242, .88);
}
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 60px; display: flex; gap: 44px; flex-wrap: wrap;
}
.hero-meta div { display: flex; align-items: baseline; gap: 10px; }
.hero-meta b { font-size: 30px; font-weight: 800; color: #fff; }
.hero-meta b i { font-style: normal; font-size: 16px; font-weight: 600; color: #6FE0A5; }
.hero-meta span { font-size: 14px; color: rgba(238, 248, 242, .75); }

/* ---------- 统计条 ---------- */
.stats { background: var(--green-900); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 44px 0;
}
.stat-item { text-align: center; padding: 10px 18px; border-right: 1px solid rgba(255, 255, 255, .14); }
.stat-item:last-child { border-right: 0; }
.stat-num { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat-num i { font-style: normal; font-size: .55em; color: #6FE0A5; margin-left: 2px; }
.stat-label { margin-top: 8px; font-size: 14.5px; color: rgba(238, 248, 242, .78); }

/* ---------- 通用栅格 ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; }
.card-title { font-size: 18.5px; font-weight: 700; }
.card-desc { margin-top: 10px; font-size: 14.5px; color: var(--ink-500); line-height: 1.8; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 14.5px; font-weight: 600; color: var(--green-600);
}
.card-link svg { transition: transform .18s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* 功能点卡片 */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-600); margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; }
.feature-card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-500); line-height: 1.85; }

/* ---------- 图文横排 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-body h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; }
.split-body .lead { margin-top: 18px; font-size: 16px; line-height: 2; color: var(--ink-500); }
.ticks { margin-top: 26px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-700); }
.ticks .tick-ico {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
}
.ticks strong { color: var(--ink-900); }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-600); color: #fff;
  font-size: 18px; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 17.5px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--ink-500); line-height: 1.8; }
.step::after {
  content: ""; position: absolute; top: 47px; left: calc(100% - 6px);
  width: 26px; height: 2px; background: var(--green-200);
}
.step:last-child::after { display: none; }

/* ---------- 时间轴 ---------- */
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 118px 28px 1fr; column-gap: 18px; }
.timeline-time { padding-top: 4px; text-align: right; }
.timeline-year { font-size: 22px; font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.timeline-time small { display: block; font-size: 12.5px; color: var(--ink-400); margin-top: 2px; }
.timeline-axis { position: relative; width: 2px; background: var(--green-200); justify-self: center; }
.timeline-item:last-child .timeline-axis { background: linear-gradient(var(--green-200), rgba(181, 228, 203, 0)); }
.timeline-axis::before {
  content: ""; position: absolute; top: 6px; left: calc(50% - 5px);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-600); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--green-200);
}
.timeline-content { padding-bottom: 42px; }
.timeline-content h3 { font-size: 18px; }
.timeline-content p { margin-top: 8px; font-size: 14.5px; color: var(--ink-500); line-height: 1.85; max-width: 640px; }

/* ---------- 内页横幅 ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  padding: 84px 0 92px; background: var(--green-950);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(80deg, rgba(7, 44, 27, .9) 10%, rgba(9, 62, 37, .68) 52%, rgba(7, 44, 27, .35) 100%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff; letter-spacing: .02em; }
.page-hero p { margin-top: 14px; max-width: 640px; font-size: 16.5px; line-height: 1.9; color: rgba(238, 248, 242, .86); }
.crumb { margin-top: 22px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(238, 248, 242, .7); }
.crumb a:hover { color: #fff; }
.crumb span { color: #9BE7BC; }

/* ---------- 产品页筛选 ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 42px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  cursor: pointer; transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--green-400); color: var(--green-700); }
.filter-btn.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.product-card { display: flex; flex-direction: column; }
.product-card .card-body { flex: 1; display: flex; flex-direction: column; }
.product-specs { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 7px; }
.product-specs li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-500); }
.product-specs li b { font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.product-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(7, 44, 27, .78); color: #fff;
  font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- 解决方案 ---------- */
.solution-card { display: flex; flex-direction: column; }
.solution-card .card-media { aspect-ratio: 16 / 9; }
.solution-card .card-body { flex: 1; display: flex; flex-direction: column; }
.solution-feats { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.solution-feats span {
  font-size: 13px; color: var(--green-700); background: var(--green-50);
  border: 1px solid var(--green-100); padding: 4px 12px; border-radius: 999px;
}

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-ico {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-600);
}
.contact-card h3 { font-size: 17.5px; }
.contact-card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-500); line-height: 1.9; }
.contact-card .contact-val { display: block; margin-top: 6px; font-size: 16.5px; font-weight: 700; color: var(--ink-900); }
.contact-card .contact-val a:hover { color: var(--green-600); }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  border-radius: var(--r-lg); padding: 64px 56px;
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.cta-band p { margin-top: 10px; color: rgba(238, 248, 242, .85); font-size: 15.5px; }
.cta-band .btn { position: relative; z-index: 2; }

/* ---------- 页脚 ---------- */
.footer { background: var(--green-950); color: #A9C6B6; }
.footer .brand-name strong { color: #fff; }
.footer .brand-name small { color: #8FB3A0; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px; padding: 66px 0 50px;
}
.footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-brand .brand-logo { width: 50px; height: 50px; }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.9; color: #93B3A2; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; color: #A9C6B6; transition: color .15s ease; }
.footer-links a:hover { color: #6FE0A5; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; line-height: 1.9; margin-bottom: 12px; color: #A9C6B6; }
.footer-contact svg { flex: none; margin-top: 5px; color: #5FB58A; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7FA090;
}

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .split { gap: 40px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .header-tel { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  body.nav-open .main-nav { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 5vw 22px; }
  .main-nav a { padding: 13px 16px; font-size: 16.5px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--green-50); }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 70px 0 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 20px; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .timeline-item { grid-template-columns: 84px 20px 1fr; column-gap: 12px; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .grid--2, .grid--3, .grid--4, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .hero-meta { gap: 26px; }
  .cta-band { padding: 44px 30px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .timeline-item { grid-template-columns: 72px 16px 1fr; column-gap: 10px; }
  .timeline-year { font-size: 19px; }
  .sec-head { margin-bottom: 38px; }
}
