/* =========================================================
   浩宇开源环保科技 - 公司官网样式
   风格：简约现代 · 白底留白 · 蓝色点缀
   ========================================================= */

:root {
  --primary: #1e5eff;
  --primary-dark: #1249c9;
  --primary-soft: #e8efff;
  --ink: #1f2937;
  --muted: #5b6b7f;
  --line: #e4e9f1;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 73, 201, 0.10);
  --shadow-sm: 0 4px 14px rgba(18, 73, 201, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 94, 255, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(31, 41, 55, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  transition: color 0.3s ease;
}
.logo-icon { width: 28px; height: 28px; color: var(--primary); }
.logo-text { letter-spacing: 1px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(30, 94, 255, 0.28);
  transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.66) 45%, rgba(255, 255, 255, 0.92) 100%),
    url("images/hero-bg.jpg") center / cover no-repeat;
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 1px;
}
.hero-title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%; bottom: 6px;
  height: 12px;
  background: rgba(30, 94, 255, 0.16);
  border-radius: 6px;
  z-index: -1;
}
.hero-sub {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 17px;
  color: var(--muted);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.35;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { margin-bottom: 18px; color: var(--muted); font-size: 16px; }
.about-text b { color: var(--ink); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.stat-item:hover { transform: translateY(-4px); }
.stat-item strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}
.stat-item strong span { font-size: 22px; margin-left: 2px; }
.stat-item > span { font-size: 14px; color: var(--muted); }

/* ---------- 产品与服务 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(30, 94, 255, 0.35);
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

.model-block { margin-top: 52px; }
.model-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--ink);
  text-align: center;
}
.model-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.model-item {
  background: #fff;
  border: 1px dashed rgba(30, 94, 255, 0.4);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.model-cap {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.model-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 核心技术 ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.tech-item {
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.tech-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tech-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(30, 94, 255, 0.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.tech-icon svg { width: 30px; height: 30px; }
.tech-item h3 { font-size: 19px; margin-bottom: 12px; }
.tech-item p { font-size: 14.5px; color: var(--muted); }
.tech-item b { color: var(--primary); }

/* ---------- 商用直饮机展示 ---------- */
.show-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.show-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.show-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.show-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
}
.show-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.show-card:hover .show-img img { transform: scale(1.05); }
.show-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px 24px 0;
}
.thumb {
  width: 64px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover, .thumb.active { border-color: var(--primary); }
.thumb:active { transform: scale(0.95); }
.show-body { padding: 18px 24px 28px; }
.show-brand {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.show-body h3 { font-size: 18px; margin-bottom: 10px; }
.show-body p { font-size: 14.5px; color: var(--muted); }
.show-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.show-specs li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.show-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 34px;
}

/* ---------- 核心优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.adv-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.adv-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.adv-icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-icon svg { width: 26px; height: 26px; }
.adv-item h3 { font-size: 17.5px; margin-bottom: 8px; }
.adv-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- 合作案例 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-num {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.case-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.5; }
.case-card p { font-size: 14px; color: var(--muted); }

.tag-block { margin-top: 48px; }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  transition: all 0.25s ease;
}
.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: start;
}
.info-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list svg {
  flex: none;
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.info-list strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.info-list span { font-size: 14px; color: var(--muted); }
.info-list .tel-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
}
.info-list .tel-link:hover { color: var(--primary-dark); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-field label i { color: #e5484d; font-style: normal; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.14);
  background: #fff;
}
.form-tip {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  display: none;
}
.form-tip.show { display: block; }
.form-tip.success { color: #12855f; }
.form-tip.error { color: #e5484d; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0e1b2c;
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 380px; }
.logo-light { color: #fff; }
.logo-light .logo-icon { color: #6ea0ff; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  text-align: center;
}
.footer-copy p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 94, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--primary-dark); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- 滚动淡入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .model-strip { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .show-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 76px 0; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 16px 30px rgba(31, 41, 55, 0.12);
    padding: 10px 0 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 6vw; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--primary-soft); }
  .nav-cta {
    margin: 12px 6vw 0;
    text-align: center;
    justify-content: center;
    display: flex;
  }
  .hero { padding: 130px 0 84px; }
  .hero-sub { font-size: 15.5px; }
  .adv-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .site-header.scrolled .main-nav { background: rgba(255,255,255,0.98); }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .model-strip { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item { padding: 20px 10px; }
  .stat-item strong { font-size: 30px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .contact-form { padding: 26px 20px; }
  .back-top { right: 16px; bottom: 16px; }
}
