/* ============================================================
   Agricon 全站样式
   品牌色取自客户 Logo：绿色 #4eb84a、橙色 #f4783f
   手机优先：默认是手机样式，屏幕变宽后再调整布局
   ============================================================ */
:root {
  --green: #2f8f2b;        /* 主绿色（比 Logo 绿略深，白字更清楚） */
  --green-dark: #1f6b1c;
  --green-logo: #4eb84a;   /* Logo 原色 */
  --orange: #f4783f;       /* Logo 橙色，用于点缀 */
  --orange-dark: #d85f28;
  --wa: #25d366;           /* WhatsApp 绿 */
  --wa-dark: #1da851;
  --ink: #14181f;          /* 正文深色 */
  --muted: #5d6673;
  --bg: #ffffff;
  --bg-alt: #f3f6f1;       /* 浅绿灰背景 */
  --line: #e1e6dd;
  --radius: 12px;
  --max: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Montserrat", var(--font);
  --shadow: 0 6px 24px rgba(20, 24, 31, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--orange); margin-bottom: .8em; }
.eyebrow--dark { color: var(--orange-dark); }
.lead { font-size: 1.12rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 2px solid var(--green); cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn svg { flex: none; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; }

/* ---------- 顶部导航（手机：折叠菜单） ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo img { height: 46px; width: auto; }
.nav-toggle { background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: .2s; }
.nav-toggle .bar { top: 21px; }
.nav-toggle .bar::before { left: 0; top: -7px; }
.nav-toggle .bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--green); }
.lang-switch { display: flex; gap: 6px; margin: 14px 0; }
.lang-switch a { text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-nav .btn { background: var(--wa); border-color: var(--wa); }

/* ---------- 图片与占位框 ---------- */
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); }
.photo--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8b9a86; text-align: center; padding: 16px; font-size: .88rem; font-weight: 600;
  background: repeating-linear-gradient(135deg, #eef2ea 0 14px, #e6ece1 14px 28px); border: 2px dashed #c9d4c3; }

/* ---------- 首屏 ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green-dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media .photo { height: 100%; aspect-ratio: auto !important; border-radius: 0; border: 0; }
.hero-media .photo--empty { background: linear-gradient(135deg, #2a7d27, #16501a); color: rgba(255, 255, 255, .35); justify-content: flex-end; align-items: flex-end; padding: 16px 20px; }
.hero-media .photo--empty svg { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 10, .78) 0%, rgba(10, 30, 10, .45) 60%, rgba(10, 30, 10, .15) 100%); }
.hero::before { content: ""; position: absolute; right: -60px; bottom: -40px; width: 420px; height: 365px; background: url("/assets/img/agricon-icon.svg") no-repeat center / contain; opacity: .1; z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 80px; max-width: var(--max); }
.hero h1 { max-width: 760px; }
.hero .lead { max-width: 600px; opacity: .92; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- 优势条 ---------- */
.trust { background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.trust-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.trust-item:last-child { border-bottom: 0; }
.trust-num { font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: 1.1rem; line-height: 1.4; }
.trust-item h3 { font-size: 1rem; margin-bottom: .2em; }
.trust-item p { margin: 0; color: #b9c0ca; font-size: .92rem; }

/* ---------- 通用版块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.page-head { background: var(--bg-alt); padding: 48px 0 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -40px; top: -20px; width: 220px; height: 190px; background: url("/assets/img/agricon-icon.svg") no-repeat center / contain; opacity: .12; }
.page-head .lead { color: var(--muted); margin: 0; max-width: 640px; }
.grid-3, .grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.split { display: grid; gap: 32px; align-items: center; }
.prose { max-width: 760px; font-size: 1.05rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* ---------- 主推产品 ---------- */
.featured { display: grid; gap: 32px; align-items: center; }
.featured-media { position: relative; }
.featured-body p { color: var(--muted); }
.specs-title { margin-top: 1.2em; }
.specs { margin: 20px 0 0; border-top: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.specs--wide { max-width: 760px; }

/* ---------- 产品卡片 ---------- */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { position: relative; }
.product .photo { border-radius: 0; border-width: 0 0 2px; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.product-body .btn { align-self: flex-start; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.badge--new { background: var(--orange); }
.badge--stock { background: var(--green); }

/* ---------- 流程 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { position: relative; padding: 22px; border-radius: var(--radius); background: var(--bg-alt); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- 关于页价值观 ---------- */
.value-mark { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--orange); margin-bottom: 16px; }
.value p { color: var(--muted); margin: 0; }

/* ---------- 底部行动号召 ---------- */
.cta-band { background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 200px; height: 174px; background: url("/assets/img/agricon-icon.svg") no-repeat center / contain; opacity: .15; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.cta-inner p { opacity: .9; margin: 0; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; gap: 28px; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .94rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #cfd6ca; border-radius: 8px; width: 100%; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--green); border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.form .check input { width: auto; margin-top: 4px; }
.form .btn { justify-self: start; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-info p:last-child { margin: 0; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); background: var(--bg-alt); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #b9c0ca; padding: 48px 0 88px; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: .35em 0; }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { margin-bottom: 12px; }
.footer-brand strong { color: #fff; display: block; margin-bottom: 6px; }
.muted { color: #7f8894; }
.copyright { border-top: 1px solid #2a3140; margin-top: 32px; padding-top: 18px; font-size: .84rem; }

/* WhatsApp 悬浮按钮 */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 60; }

/* ---------- 平板（宽度 ≥ 640px） ---------- */
@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
/* ---------- 电脑（宽度 ≥ 980px） ---------- */
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0; padding: 28px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .featured { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .split { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 3fr 2fr; }
  .hero-inner { padding-top: 120px; padding-bottom: 130px; }
  .logo img { height: 52px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; align-items: center; gap: 22px; padding: 0; border: 0; background: none; box-shadow: none; }
  .site-nav ul { display: flex; gap: 24px; }
  .site-nav li a { border: 0; padding: 6px 0; }
  .site-nav li a:hover { color: var(--green); }
  .lang-switch { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .product, .btn { transition: none; } }
