/* ============================================================
   首页 B 版样式（2026-11-05）
   仅对 body.home 生效，不影响产品页/新闻页
   ============================================================ */

/* ---------- 页面容器重置 ---------- */
body.home .page-header { display: none !important; }
body.home .site-main,
body.home .page-content {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .mh-home {
  --mh-ink: #1a2a3a;
  --mh-body: #46525f;
  --mh-muted: #7b8794;
  --mh-line: #e6e9ee;
  --mh-blue: #1a4b8c;
  --mh-blue-dark: #123a6e;
  --mh-soft: #f5f6f8;
  color: var(--mh-body);
  font-size: 16px;
  line-height: 1.75;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}
body.home .mh-home *,
body.home .mh-home *::before,
body.home .mh-home *::after { box-sizing: border-box; }
body.home .mh-home img { display: block; max-width: 100%; height: auto; }
body.home .mh-home a { text-decoration: none; color: inherit; }
body.home .mh-home p { margin: 0 0 14px; }

body.home .mh-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- 页头（仅首页） ---------- */
@media (min-width: 861px) {
  body.home .site-header,
  body.home .dynamic-header {
    height: 84px !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
  }
  body.home .header-inner {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    height: 84px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px;
  }
  body.home .site-branding {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    min-width: 0;
    width: auto !important;
  }
  body.home .site-logo img { max-height: 44px; width: auto; }
  body.home .site-description {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #7b8794 !important;
    margin: 0 !important;
    max-width: 520px;
    white-space: normal;
    text-align: left;
  }
  body.home .site-navigation ul.menu { display: flex; align-items: center; gap: 26px; }
  body.home .site-navigation ul.menu > li > a {
    padding: 8px 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  body.home .site-navigation ul.menu > li > a::after {
    bottom: -2px !important;
    left: 0 !important;
    right: 0 !important;
  }
  body.home .btn-quote-nav { margin-left: 4px !important; }
}

/* ---------- 首屏 ---------- */
body.home .mh-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.home .mh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,22,40,.9) 0%, rgba(8,22,40,.72) 48%, rgba(8,22,40,.35) 100%);
}
body.home .mh-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 0;
}
body.home .mh-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.6px;
  color: #a8c6ea;
  border: 1px solid rgba(168,198,234,.45);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
body.home .mh-hero h1 {
  font-size: 46px;
  line-height: 1.26;
  color: #fff;
  font-weight: 600;
  letter-spacing: .5px;
  max-width: 780px;
  margin: 0 0 20px;
}
body.home .mh-hero-p {
  font-size: 17px;
  color: rgba(255,255,255,.82);
  max-width: 780px;
  margin: 0 0 36px;
}
body.home .mh-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }
body.home .mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
body.home .mh-btn-primary { background: var(--mh-blue); color: #fff !important; }
body.home .mh-btn-primary:hover { background: var(--mh-blue-dark); }
body.home .mh-btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.55); }
body.home .mh-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
body.home .mh-stats {
  border-top: 1px solid rgba(255,255,255,.22);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0 28px;
  max-width: 780px;
}
body.home .mh-stats b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  letter-spacing: .5px;
}
body.home .mh-stats span { font-size: 13px; color: rgba(255,255,255,.62); }

/* ---------- 通用区块 ---------- */
body.home .mh-section { padding: 96px 0; }
body.home .mh-soft { background: var(--mh-soft); }
body.home .mh-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
body.home .mh-head h2 {
  font-size: 32px;
  line-height: 1.35;
  color: var(--mh-ink);
  font-weight: 600;
  margin: 0 0 12px;
}
body.home .mh-head p { font-size: 16px; color: var(--mh-muted); margin: 0; }
body.home .mh-kicker {
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--mh-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- 六大产品线 ---------- */
body.home .mh-grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
body.home .mh-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
body.home .mh-card:hover { box-shadow: 0 12px 30px rgba(22,40,66,.1); transform: translateY(-3px); }
body.home .mh-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}
body.home .mh-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
body.home .mh-card:hover .mh-thumb img { transform: scale(1.04); }
body.home .mh-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
body.home .mh-card h3 { font-size: 19px; color: var(--mh-ink); font-weight: 600; margin: 0 0 10px; line-height: 1.5; }
body.home .mh-card p { font-size: 14px; color: var(--mh-muted); line-height: 1.78; flex: 1; margin: 0 0 16px; }
body.home .mh-more { font-size: 14px; color: var(--mh-blue); font-weight: 500; }

/* ---------- 工厂实力 ---------- */
body.home .mh-about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
body.home .mh-about-media { position: relative; }
body.home .mh-about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
body.home .mh-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(18,58,110,.92);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 4px;
  letter-spacing: .5px;
}
body.home .mh-about-text h2 {
  font-size: 30px;
  color: var(--mh-ink);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 18px;
}
body.home .mh-about-text p { font-size: 15.5px; line-height: 1.95; margin: 0 0 14px; }
body.home .mh-statrow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 32px;
  margin-top: 30px;
  border-top: 1px solid var(--mh-line);
  padding-top: 26px;
}
body.home .mh-statrow b { display: block; font-size: 26px; color: var(--mh-blue); font-weight: 600; line-height: 1.2; }
body.home .mh-statrow span { font-size: 13.5px; color: var(--mh-muted); }

/* ---------- 应用行业 ---------- */
body.home .mh-industry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
body.home .mh-icard {
  position: relative;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0f1b2a;
}
body.home .mh-icard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
body.home .mh-icard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,20,34,.92) 0%, rgba(8,20,34,.5) 45%, rgba(8,20,34,.08) 100%);
}
body.home .mh-icard:hover img { transform: scale(1.06); }
body.home .mh-ibody { position: relative; z-index: 2; padding: 22px; color: #fff; }
body.home .mh-ibody h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: #fff; }
body.home .mh-ibody p { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.7; margin: 0; }

/* ---------- 为什么选我们 ---------- */
body.home .mh-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
body.home .mh-feature {
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
body.home .mh-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #eaf1fb;
  color: var(--mh-blue);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
body.home .mh-feature h3 { font-size: 19px; color: var(--mh-ink); font-weight: 600; margin: 0 0 12px; line-height: 1.5; }
body.home .mh-feature p { font-size: 14.5px; line-height: 1.9; margin: 0; }

/* ---------- CTA ---------- */
body.home .mh-cta {
  background: linear-gradient(120deg, #123a6e 0%, #1a4b8c 58%, #1f5aa6 100%);
  padding: 84px 0;
  text-align: center;
  color: #fff;
}
body.home .mh-cta h2 { font-size: 34px; font-weight: 600; margin: 0 0 14px; line-height: 1.4; color: #fff; }
body.home .mh-cta p { font-size: 16px; color: rgba(255,255,255,.8); margin: 0 0 32px; }
body.home .mh-cta .mh-btn { background: #fff; color: var(--mh-blue) !important; font-weight: 600; height: 50px; padding: 0 38px; }
body.home .mh-cta .mh-btn:hover { background: #eaf1fb; }

/* ---------- 满屏页脚（首页） ---------- */
body.home .site-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 96px;
}
body.home .mh-footer-lead {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 64px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
body.home .mh-footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
body.home .mh-footer-brand img { width: 52px; height: 52px; object-fit: contain; filter: brightness(0) invert(1) opacity(.92); }
body.home .mh-footer-brand span { font-size: 22px; color: #fff; font-weight: 600; letter-spacing: .5px; }
body.home .mh-footer-lead h2 {
  font-size: 44px;
  line-height: 1.3;
  color: #fff;
  font-weight: 600;
  max-width: 860px;
  margin: 0;
  letter-spacing: .5px;
}
body.home .mh-footer-lead h2 em { font-style: normal; color: #7fa9dc; }
body.home .site-footer-inner {
  max-width: 1200px !important;
  width: 100%;
  margin: 0 auto !important;
  padding: 64px 24px !important;
  grid-template-columns: 1.4fr .8fr .8fr 1.2fr;
  gap: 48px;
}
body.home .footer-bottom {
  max-width: 1200px !important;
  width: 100%;
  margin: 0 auto !important;
  padding: 26px 24px 34px !important;
  text-align: left !important;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
body.home .footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,.42); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  body.home .mh-grid6 { grid-template-columns: repeat(2, 1fr); }
  body.home .mh-industry { grid-template-columns: repeat(2, 1fr); }
  body.home .mh-about { gap: 40px; }
}
@media (max-width: 860px) {
  /* 手机端页头：一行放下 logo + 汉堡按钮 */
  body.home .site-header,
  body.home .dynamic-header {
    height: 64px !important;
    padding: 0 !important;
    display: block !important;
  }
  body.home .header-inner {
    height: 64px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px;
  }
  body.home .site-branding {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
  }
  body.home .site-logo img { max-height: 36px; width: auto; }
  body.home .site-description { display: none !important; }
  body.home .site-navigation-toggle-holder { flex: 0 0 auto; margin: 0 !important; }

  body.home .mh-hero { min-height: 520px; }
  body.home .mh-hero-inner { padding-top: 64px; }
  body.home .mh-hero h1 { font-size: 30px; }
  body.home .mh-hero-p { font-size: 15px; }
  body.home .mh-btns { margin-bottom: 44px; }
  body.home .mh-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 24px; }
  body.home .mh-about { grid-template-columns: 1fr; gap: 28px; }
  body.home .mh-grid3 { grid-template-columns: 1fr; gap: 20px; }
  body.home .mh-section { padding: 64px 0; }
  body.home .site-footer { min-height: auto; padding-top: 64px; }
  body.home .mh-footer-lead h2 { font-size: 30px; }
  body.home .site-footer-inner { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}
@media (max-width: 620px) {
  body.home .mh-grid6 { grid-template-columns: 1fr; }
  body.home .mh-industry { grid-template-columns: 1fr; }
  body.home .mh-hero h1 { font-size: 26px; }
  body.home .site-footer-inner { grid-template-columns: 1fr !important; }
}
