/* ==========================================================================
   青禾温室 · 全站样式
   ========================================================================== */
:root {
  --green-950: #0A2819;
  --green-900: #0F3523;
  --green-800: #15502F;
  --green-700: #1B6B3E;
  --green-600: #23854D;
  --green-500: #2E9E5F;
  --green-100: #E2EFE6;
  --green-50: #F1F7F2;
  --amber: #E8A33D;
  --amber-deep: #CE7F16;
  --ink: #1F2C25;
  --muted: #5C6B62;
  --line: #E0E7E0;
  --paper: #FAF9F4;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(15, 53, 35, .08);
  --shadow-md: 0 12px 32px rgba(15, 53, 35, .12);
  --radius: 10px;
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--green-700); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--green-700); font-weight: 700; font-size: .86rem; letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--amber); border-radius: 2px; }
.eyebrow.on-dark { color: var(--amber); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.35; margin: 14px 0 16px; }
.section-lead { color: var(--muted); font-size: 1.02rem; }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-50); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--green-800); border-color: #fff; }
.btn-outline-dark { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline-dark:hover { background: var(--green-50); }
.btn-sm { padding: 9px 18px; font-size: .88rem; border-radius: 7px; }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: transparent; color: #fff; transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(15, 53, 35, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { display: block; font-size: 1.24rem; font-weight: 700; letter-spacing: .05em; line-height: 1.1; }
.brand-en { display: block; font-size: .64rem; letter-spacing: .3em; color: rgba(255, 255, 255, .7); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative; padding: 8px 0; color: rgba(255, 255, 255, .82);
  text-decoration: none; font-size: .98rem; font-weight: 400; transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 1px; height: 2px;
  background: var(--amber); transition: right .25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  padding: 12px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  padding: calc(var(--header-h) + 72px) 0 84px; color: #fff;
  background: linear-gradient(105deg, rgba(10, 40, 25, .9) 0%, rgba(10, 40, 25, .58) 46%, rgba(10, 40, 25, .12) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.24; margin: 18px 0 22px; }
.hero .lead { font-size: 1.12rem; line-height: 1.85; color: rgba(255, 255, 255, .86); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 52px; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-stat .num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.1; }
.hero-stat .num em { font-style: normal; color: var(--amber); font-size: .72em; margin-left: 2px; }
.hero-stat .lbl { font-size: .88rem; color: rgba(255, 255, 255, .72); margin-top: 4px; }

/* ---------- 页头横幅（内页） ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--green-900) 0%, var(--green-700) 100%);
  color: #fff; padding: calc(var(--header-h) + 62px) 0 62px;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin: 14px 0 14px; }
.page-hero .crumb { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.page-hero .crumb a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--amber); }
.page-hero .page-lead { max-width: 680px; color: rgba(255, 255, 255, .82); font-size: 1.03rem; }

/* ---------- 服务卡片 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-500); }
.icon-wrap {
  width: 54px; height: 54px; border-radius: 12px; background: var(--green-50);
  color: var(--green-700); display: grid; place-items: center; margin-bottom: 20px;
}
.icon-wrap svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: .92rem; color: var(--muted); line-height: 1.75; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .88rem; font-weight: 700; color: var(--green-700); text-decoration: none; }
.service-card .more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-card .more:hover svg { transform: translateX(4px); }

/* ---------- 优势 ---------- */
.adv-card { display: grid; grid-template-columns: 86px 1fr; gap: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.adv-num { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--green-100); -webkit-text-stroke: 1px var(--green-600); text-align: center; align-self: start; padding-top: 4px; }
.adv-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.adv-card p { font-size: .92rem; color: var(--muted); }
.adv-card ul { margin-top: 12px; display: grid; gap: 7px; }
.adv-card li { font-size: .88rem; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.adv-card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); transform: translateY(-2px); }

/* ---------- 案例卡片 ---------- */
.case-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-card.hide { display: none; }
.case-card .thumb { position: relative; overflow: hidden; }
.case-card .thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .45s ease; }
.case-card:hover .thumb img { transform: scale(1.04); }
.case-tag {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  background: rgba(15, 53, 35, .86); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .04em;
}
.case-body { padding: 22px 24px 24px; }
.case-title { font-size: 1.13rem; font-weight: 700; margin-bottom: 8px; }
.case-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.case-meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted);
}
.case-meta b { font-weight: 600; color: var(--ink); }

/* ---------- 筛选 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.filter-btn {
  padding: 10px 22px; border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  font: inherit; font-size: .9rem; font-weight: 400; color: var(--muted); cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--green-500); color: var(--green-700); }
.filter-btn.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- 流程步骤 ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.steps::before { content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 2px; background: var(--green-100); }
.step { position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; margin-bottom: 16px;
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper);
}
.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* ---------- 数据带 ---------- */
.stat-band { background: linear-gradient(120deg, var(--green-900), var(--green-800)); color: #fff; padding: 84px 0; }
.stat-band .section-title { color: #fff; }
.stat-band .section-lead { color: rgba(255, 255, 255, .78); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.stat-item { border-left: 1px solid rgba(255, 255, 255, .24); padding-left: 26px; }
.stat-item .num { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.1; }
.stat-item .num em { font-style: normal; color: var(--amber); font-size: .6em; margin-left: 3px; }
.stat-item .lbl { color: rgba(255, 255, 255, .72); font-size: .92rem; margin-top: 6px; }

/* ---------- 时间轴 ---------- */
.timeline {
  --tl-year: 100px; --tl-gap: 16px; --tl-dot: 36px;
  display: grid; grid-template-columns: var(--tl-year) var(--tl-dot) 1fr;
  column-gap: var(--tl-gap); row-gap: 36px; position: relative; max-width: 860px;
}
.timeline::before {
  content: ""; position: absolute;
  left: calc(var(--tl-year) + var(--tl-gap) + var(--tl-dot) / 2 - 1px);
  top: 6px; bottom: 6px; width: 2px; background: var(--green-100);
}
.tl-year { text-align: right; padding-top: 5px; font-weight: 700; color: var(--green-700); font-size: 1.05rem; }
.tl-dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--amber);
  border: 4px solid var(--green-100); justify-self: center; margin-top: 9px; position: relative; z-index: 1;
}
.tl-item h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.tl-item p { font-size: .92rem; color: var(--muted); max-width: 560px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
thead th {
  background: var(--green-900); color: #fff; font-weight: 700; font-size: .92rem;
  padding: 15px 18px; text-align: left; white-space: nowrap;
}
tbody td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
tbody tr:nth-child(even) { background: var(--green-50); }
tbody td strong { color: var(--green-700); }

/* ---------- 图表 ---------- */
.chart-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px 12px; }
.chart-box h3 { font-size: 1.05rem; font-weight: 700; padding: 0 8px; }
.chart-box .note { font-size: .82rem; color: var(--muted); padding: 0 8px 6px; }
#growthChart { width: 100%; height: 380px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; padding: 74px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 10px; }
.cta-inner p { color: rgba(255, 255, 255, .8); max-width: 640px; }

/* ---------- 联系我们 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.info-card .icon-wrap { margin-bottom: 16px; }
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: .92rem; color: var(--muted); line-height: 1.8; }
.info-card a { color: var(--green-700); text-decoration: none; font-weight: 700; }
.info-card a:hover { text-decoration: underline; }
.region-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.region-tag { padding: 8px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--ink); }

/* ---------- 图文区块 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-body h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.4; margin: 14px 0 18px; }
.split-body p { color: var(--muted); margin-bottom: 16px; }
.split-body ul { display: grid; gap: 10px; margin: 18px 0 26px; }
.split-body li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.split-body li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .76); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.3fr; gap: 44px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-en { color: rgba(255, 255, 255, .5); }
.footer-brand p { font-size: .9rem; line-height: 1.85; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--amber); }
.footer-col li { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; }
.footer-col li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); transform: translateY(-2px); }
.footer-contact li { font-size: .9rem; display: flex; gap: 10px; }
.footer-contact svg { width: 17px; height: 17px; flex: none; color: var(--amber); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 60px; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255, 255, 255, .5);
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: var(--green-700); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--green-800); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- 渐显动画 ---------- */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .case-card .thumb img, .service-card, .btn { transition: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(15, 53, 35, .98); flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 24px; max-height: 0; overflow: hidden;
    transition: max-height .35s ease; box-shadow: 0 20px 40px rgba(0, 0, 0, .22);
  }
  .site-nav.open { max-height: 480px; }
  .nav-link { display: block; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 1rem; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .footer-col a { display: inline-block; padding: 9px 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2, .split { grid-template-columns: 1fr; gap: 34px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { --tl-year: 72px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .grid-4, .info-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
  .step-num { margin-bottom: 0; }
  .step h3 { padding-top: 8px; }
  .step p { grid-column: 2; margin-top: -8px; }
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 22px 32px; }
  .stat-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .24); padding: 18px 0 0; }
  .adv-card { grid-template-columns: 60px 1fr; gap: 16px; }
  .adv-num { font-size: 2rem; }
  .timeline { --tl-year: 52px; --tl-gap: 10px; --tl-dot: 28px; }
  .tl-year { font-size: .92rem; }
  .cta-inner .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .to-top { right: 16px; bottom: 16px; }
}
