/* ============================================================
   湖南晟邦环保科技 - 官网样式（简洁大气 · 环保工程）
   布局体系参考尚御工程模板，主题色重制为环保绿
   ============================================================ */
:root {
  --primary: #0b3d2e;
  --primary-light: #14523e;
  --accent: #1fae70;
  --accent-soft: rgba(31, 174, 112, 0.12);
  --gold: #e8a33d;
  --gold-soft: rgba(232, 163, 61, 0.16);
  --ink: #1f2937;
  --ink-2: #4b5563;
  --muted: #9ca3af;
  --bg: #f7faf8;
  --bg-white: #ffffff;
  --bg-alt: #eef5f1;
  --line: #dfe9e3;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --shadow: 0 10px 40px -10px rgba(11, 61, 46, 0.15);
  --shadow-lg: 0 25px 60px -15px rgba(11, 61, 46, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--maxw), 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-cn { font-size: 21px; font-weight: 800; letter-spacing: 1px; color: var(--primary); }
.brand-en { font-size: 9px; color: var(--muted); letter-spacing: 2.5px; }
.nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.nav-links a { font-size: 15px; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-phone { font-weight: 700; color: var(--primary); font-size: 16px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ---------- Hero（首页） ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.hero-mask { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(7,42,31,.88), rgba(7,42,31,.42)); }
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 48px 0; }
.hero-badge {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: #d8f3e6;
  border: 1px solid rgba(216, 243, 230, .45); border-radius: 999px; padding: 6px 18px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 800; line-height: 1.22; letter-spacing: 1px; white-space: pre-line; }
.hero-sub { margin: 22px 0 34px; font-size: clamp(14px, 1.8vw, 18px); color: #d9efe4; letter-spacing: .5px; max-width: 720px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 36px; border-radius: 999px; font-size: 16px; font-weight: 700;
  transition: .25s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #27c684; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  display: inline-block; border: 1.5px solid var(--accent); color: var(--accent);
  padding: 11px 28px; border-radius: 999px; font-weight: 600; transition: .25s;
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Stats strip ---------- */
.stats { background: var(--bg-white); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.stat .lab { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* ---------- Section ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 4px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; letter-spacing: 1px; color: var(--primary); }
.section-head p { color: var(--muted); margin-top: 12px; }
.more-wrap { text-align: center; margin-top: 42px; }

/* ---------- 优势卡片 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: .3s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.adv-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.adv-icon svg { width: 30px; height: 30px; }
.adv-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.adv-card p { color: var(--ink-2); font-size: 14px; }

/* ---------- 服务项目卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: .3s; display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.cat-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cat-card-body h3 { font-size: 19px; margin-bottom: 8px; color: var(--primary); }
.cat-card-body p { color: var(--ink-2); font-size: 14px; flex: 1; }
.cat-more { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 12px; }

/* ---------- 服务图文详情 ---------- */
.cat-detail { padding: 72px 0; border-top: 1px solid var(--line); }
.cat-detail-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.cat-detail.flip .cat-detail-text { order: 2; }
.cat-detail-text h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 16px; font-weight: 800; color: var(--primary); }
.cat-detail-text p { color: var(--ink-2); margin-bottom: 18px; }
.cat-detail-text .btn-ghost { margin-top: 6px; }
.cat-rich { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.cat-rich ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0 16px; }
.cat-rich h3 { color: var(--primary); margin: 14px 0 8px; font-size: 17px; }
.cat-detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-item { aspect-ratio: 4/3; border-radius: 12px; background-size: cover; background-position: center; cursor: zoom-in; transition: .25s; }
.g-item:hover { box-shadow: var(--shadow); }

/* ---------- 工程案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { border-radius: var(--radius); overflow: hidden; position: relative; display: block; }
.case-img { aspect-ratio: 4/3; background-size: cover; background-position: center; transition: transform .4s; }
.case-card:hover .case-img { transform: scale(1.06); }
.case-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(7, 42, 31, .85)); font-weight: 600; font-size: 15px;
}
.case-cap em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: #cfe8dc; margin-top: 3px; }

/* ---------- 合作流程 ---------- */
.process { background: var(--bg-white); }
.proc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.proc-step { text-align: center; padding: 0 8px; position: relative; }
.proc-step .pn {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; letter-spacing: 1px;
}
.proc-step h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.proc-step p { font-size: 13px; color: var(--ink-2); }
.proc-step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 58%; right: -10%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); opacity: .5;
}

/* ---------- 企业动态 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .3s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-img { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.news-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.news-body h3 { font-size: 17px; color: var(--primary); margin: 8px 0; line-height: 1.5; }
.news-body p { color: var(--ink-2); font-size: 14px; flex: 1; }

/* ---------- 合作客户 ---------- */
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.client-item {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; padding: 18px; transition: .3s;
}
.client-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.client-item img { max-height: 68px; object-fit: contain; }

/* ---------- 页头横幅（子页） ---------- */
.page-hero {
  position: relative; min-height: 320px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.page-hero-mask { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(7, 42, 31, .88), rgba(7, 42, 31, .55)); }
.page-hero-content { position: relative; z-index: 2; padding: 40px 0; }
.page-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: 1px; }
.page-hero p { margin-top: 10px; color: #d9efe4; font-size: 15px; letter-spacing: 1px; }

/* ---------- 公司介绍页 ---------- */
.about-article { max-width: 960px; }
.about-lead h2 { font-size: clamp(24px, 3vw, 34px); color: var(--primary); margin: 8px 0 22px; font-weight: 800; }
.about-lead p { color: var(--ink-2); margin-bottom: 16px; text-align: justify; }
.honors { margin-top: 36px; background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.honors h3 { color: var(--primary); margin-bottom: 14px; font-size: 18px; }
.honors ul { padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }

/* ---------- 文章/案例详情 ---------- */
.article-wrap { max-width: 900px; }
.article-head { margin-bottom: 26px; }
.article-head h1 { font-size: clamp(24px, 3.4vw, 36px); color: var(--primary); font-weight: 800; line-height: 1.4; margin-top: 8px; }
.article-meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.article-body, .case-body-detail { color: var(--ink-2); font-size: 15.5px; }
.article-body h3, .case-body-detail h3 { color: var(--primary); margin: 22px 0 10px; font-size: 18px; }
.article-body p, .case-body-detail p { margin-bottom: 14px; text-align: justify; }
.article-body ul, .case-body-detail ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0 16px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.pn-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.pn-link { color: var(--accent); font-size: 14px; font-weight: 600; }
.pn-link:hover { text-decoration: underline; }

/* ---------- 技术参考 ---------- */
.chip-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-white); color: var(--ink-2);
  border-radius: 999px; padding: 8px 20px; font-size: 14px; transition: .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.mini { padding: 2px 12px; font-size: 12px; border-radius: 999px; background: var(--accent-soft); color: var(--primary); border: none; }
.tech-list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.tech-item {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; transition: .3s; display: block;
}
.tech-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tech-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.tech-item h3 { color: var(--primary); font-size: 18px; margin-bottom: 6px; }
.tech-item p { color: var(--ink-2); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; text-align: center; padding: 70px 0; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; }
.cta-band p { color: #cfe8dc; margin: 14px 0 28px; }
.cta-band .btn-primary { background: var(--gold); color: var(--primary); }
.cta-band .btn-primary:hover { background: #f4b95e; box-shadow: none; }

/* ---------- 联系我们 ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 12px; font-weight: 800; color: var(--primary); }
.contact-info p { color: var(--ink-2); margin-bottom: 20px; }
.contact-info ul { list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.form-tip { font-size: 14px; color: var(--primary); min-height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #07271d; color: #94a3b8; padding: 56px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner .brand-cn { color: #fff; font-size: 20px; letter-spacing: 1px; }
.footer-inner p { margin-top: 8px; color: #6b8a7d; font-size: 14px; }
.footer-contact { line-height: 1.9; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 20px;
  border-top: 1px solid #14402f; font-size: 13px; color: #6b8a7d; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 999; background: rgba(7, 39, 29, .94);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-cap { color: #e2efe9; margin-top: 16px; font-size: 15px; letter-spacing: 1px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 44px; cursor: pointer; user-select: none; padding: 0 18px; opacity: .65; }
.lightbox .lb-nav:hover { opacity: 1; }
.lightbox .lb-prev { left: 0; }
.lightbox .lb-next { right: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cat-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .proc-step:nth-child(odd)::after { display: none; }
  .cat-detail-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .cat-detail.flip .cat-detail-text { order: 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 16px 4%; gap: 14px; border-bottom: 1px solid var(--line);
  }
  .cat-grid, .case-grid, .news-grid, .adv-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step::after { display: none !important; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .section { padding: 60px 0; }
  .hero { min-height: 72vh; }
}
