@charset "UTF-8";
/* ============================================================
   浙江佳实智能科技 · 全站公共样式
   版本 v2.0 / 2026-11
   说明：本文件替代各页面内嵌的“全站公共样式”，页面级样式仍在其后覆盖。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --tech-blue: #165DFF;
  --dark-gray: #22262b;
  --light-gray: #f4f7f3;
  --white: #ffffff;
  --main-color: #208800;
  --main-dark: #176b00;
  --main-light: #eaf5e6;
  /* 兼容旧模板页面内的 var(--main) 写法 */
  --main: #208800;
  --dark-green: #176b00;
  --ink: #1d2127;
  --ink-2: #4a5158;
  --muted: #7b838c;
  --line: #e6ebe4;
  --header-h: 80px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 15, .06);
  --shadow-md: 0 8px 26px rgba(20, 40, 15, .10);
  --shadow-lg: 0 18px 46px rgba(20, 40, 15, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  color: var(--dark-gray);
  line-height: 1.65;
  padding-top: var(--header-h);
  padding-bottom: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 40px;
  position: relative;
  color: var(--ink);
  letter-spacing: .5px;
}
.section-title::after {
  content: "";
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--main-color), #4fc21f);
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: -22px 0 38px;
  line-height: 1.7;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  transition: all .28s var(--ease);
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}
.btn-blue { background: var(--main-color); color: #fff; box-shadow: 0 6px 16px rgba(32, 136, 0, .22); }
.btn-blue:hover { background: var(--main-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(32, 136, 0, .28); }
.btn-outline { border-color: rgba(32, 136, 0, .45); color: var(--main-color); background: #fff; }
.btn-outline:hover { background: var(--main-color); border-color: var(--main-color); color: #fff; }

/* ---------- 滚动渐入（默认可见，不遮挡内容） ---------- */
.fade-up { opacity: 1; transform: none; }
.fade-up.in { animation: fadeUpIn .7s var(--ease) both; }
@keyframes fadeUpIn {
  from { opacity: .01; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up.in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   顶部导航
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, .975);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  z-index: 1000;
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: 0 6px 24px rgba(20, 40, 15, .1); }
.header .container { max-width: 1440px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo a { display: block; }
.logo img { height: 52px; width: auto; max-width: none; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--main-color); }
.logo-desc { font-size: 12px; color: var(--muted); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 26px);
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 clamp(6px, .7vw, 12px);
  height: var(--header-h);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .22s var(--ease);
  position: relative;
}
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--main-color);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .28s var(--ease);
}
.nav-item > a:hover,
.nav-item > a.active { color: var(--main-color); }
.nav-item > a:hover::after,
.nav-item > a.active::after { width: 22px; }
.nav-item.has-mega > a::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 6px; height: 6px;
  margin-top: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) scale(.8);
  opacity: .5;
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-item.has-mega:hover > a::before { transform: rotate(-135deg) scale(.8); opacity: 1; }

.nav-btns { display: none; }
.menu-bar {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  transition: background .2s;
}
.menu-bar:hover { background: var(--main-light); }

/* ---------- 全屏 Mega 下拉：左右贴边、通栏到底 ---------- */
.mega {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-h);
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  z-index: 998;
  pointer-events: none;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.mega-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 20px 32px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}
/* 左侧：图片 + 标题 */
.mega-visual {
  position: relative;
  display: block;
  min-height: 236px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1a0c;
  isolation: isolate;
}
.mega-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.mega-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 4, .12) 0%, rgba(8, 24, 4, .55) 55%, rgba(8, 24, 4, .9) 100%);
}
.mega-visual:hover img { transform: scale(1.06); }
.mega-visual-txt {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 22px 22px;
  z-index: 2;
  color: #fff;
}
.mega-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b9e7a8;
  margin-bottom: 6px;
}
.mega-visual-txt h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.mega-visual-txt p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}

/* 右侧：栏目 */
.mega-body { display: flex; flex-direction: column; min-width: 0; }
.mega-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.mega-head strong { font-size: 16px; color: var(--ink); font-weight: 700; }
.mega-head span { font-size: 13px; color: var(--muted); }
.mega-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
  align-content: start;
}
.mega-links.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-links.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s, color .2s, transform .2s;
  line-height: 1.4;
}
.mega-link i {
  flex: 0 0 auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #c9d6c3;
  transition: background .2s;
}
.mega-link em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.mega-link:hover { background: var(--main-light); color: var(--main-dark); transform: translateX(2px); }
.mega-link:hover i { background: var(--main-color); }

.mega-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.mega-foot b { color: var(--ink); font-weight: 700; }
.mega-foot a.go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--main-color);
  font-weight: 600;
}
.mega-foot a.go::after { content: "→"; transition: transform .2s; }
.mega-foot a.go:hover::after { transform: translateX(4px); }

/* ============================================================
   手机端抽屉菜单
   ============================================================ */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 6, .48);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 1001;
}
.drawer-mask.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(86vw, 380px);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  z-index: 1002;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head img { height: 34px; width: auto; }
.drawer-close {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1;
}
.drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 24px; }
.drawer-item { border-bottom: 1px solid #f1f4ef; }
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.drawer-link.active { color: var(--main-color); }
.drawer-arrow {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--ink-2);
  font-size: 13px;
  transition: transform .25s, background .25s, color .25s;
}
.drawer-item.open .drawer-arrow { transform: rotate(180deg); background: var(--main-color); color: #fff; }
.drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
  background: #fafbf9;
}
.drawer-item.open .drawer-sub { max-height: 640px; }
.drawer-sub a {
  display: block;
  padding: 12px 18px 12px 34px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-top: 1px dashed #eef1ec;
}
.drawer-sub a:active { background: var(--main-light); }
.drawer-foot { padding: 16px 18px 22px; background: #fff; border-top: 1px solid var(--line); }
.drawer-foot .tel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--main-color);
  color: #fff;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  justify-content: center;
}
.drawer-foot .sub { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* 兼容旧版 .mobile-menu（保留类名，避免残留页面异常） */
.mobile-menu { display: none !important; }

/* ============================================================
   首页 Banner
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  background: #0e1a0a;
  overflow: hidden;
  aspect-ratio: 1920 / 688;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide a { display: block; width: 100%; height: 100%; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 3;
}
.hero-dot {
  width: 28px; height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .25s;
}
.hero-dot.active { background: #fff; }
.hero-arrow {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity .25s, background .25s;
  border: 0;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(32, 136, 0, .85); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

/* 首页通栏数据条（含 h1） */
.hero-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf4 100%);
  border-bottom: 1px solid var(--line);
}
.hero-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.hero-bar h1 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.hero-bar p { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.hero-stat strong {
  display: block;
  font-size: 20px;
  color: var(--main-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero-stat span { font-size: 12px; color: var(--muted); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: #14180f;
  color: #98a08f;
  padding: 54px 0 0;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(300px, 360px);
  gap: 26px;
  padding-bottom: 36px;
  padding-right: 36px;
  align-items: start;
}
.footer-col h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  position: relative;
  padding-left: 12px;
}
.footer-col h3::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 14px;
  margin-top: -7px;
  border-radius: 2px;
  background: var(--main-color);
}
.footer-col ul li { margin-bottom: 9px; line-height: 1.6; }
.footer-col ul li a { transition: color .2s; }
.footer-col ul li a:hover, .footer-col ul li:hover { color: #7ed957; }
.footer-bottom {
  text-align: center;
  padding: 18px 0 22px;
  border-top: 1px solid #262b1e;
  font-size: 13px;
  color: #6f7767;
}
.footer-bottom a { color: #8d9584; }
.footer-bottom a:hover { color: #7ed957; }
.wx-footer { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.wx-icon {
  padding: 7px 12px;
  background: rgba(32, 136, 0, .16);
  border: 1px solid rgba(32, 136, 0, .3);
  border-radius: 6px;
  font-size: 12px;
  color: #9ed98a;
  cursor: pointer;
}
.wx-icon:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }

/* 页脚二维码（自媒体矩阵） */
.footer-qr {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.footer-qr-item { text-align: center; }
.footer-qr-item img {
  width: 100%;
  max-width: 66px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  display: block;
  margin: 0 auto 6px;
}
.footer-qr-item span { font-size: 11px; color: #8d9584; line-height: 1.2; }
.footer-col:last-child ul li { color: #a9b19f; }
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .footer-qr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   浮动客服 / 弹窗
   ============================================================ */
.float-service {
  position: fixed;
  right: 16px;
  bottom: 110px;
  top: auto;
  transform: none;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-item {
  width: 48px; height: 48px;
  background: #fff;
  color: var(--main-color);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 19px;
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
  transition: .24s var(--ease);
}
.float-item:hover { background: var(--main-color); color: #fff; transform: translateY(-2px); }
.float-item.tel { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.float-item.tel:hover { background: var(--main-dark); }

.modal {
  position: fixed; inset: 0;
  background: rgba(12, 18, 8, .68);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
  background: #fff;
  padding: 26px 22px;
  border-radius: 14px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-img { width: 190px; margin: 0 auto 16px; border-radius: 8px; }
.copy-btn {
  background: var(--main-color);
  color: #fff;
  padding: 10px 20px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
  width: 100%;
}

/* 面包屑 / 分页 兼容增强 */
.position, .news-position {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   手机底部导航
   ============================================================ */
.mobile-footer-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 58px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .06);
  display: none;
  z-index: 950;
}
.mobile-nav-wrap { display: flex; height: 58px; }
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: #6b7280;
}
.mobile-nav-item i { font-style: normal; font-size: 19px; line-height: 1; }
.mobile-nav-item.active { color: var(--main-color); font-weight: 600; }

/* ============================================================
   顶部偏移修正
   所有旧模板的 banner 上边距统一改为 0，由 body padding 承担
   ============================================================ */
.banner, .news-banner, .page-banner, .solution-banner, .about-banner, .contact-banner {
  margin-top: 0 !important;
}

/* 通用卡片/图片防抖动 + 统一视觉（按原图比例裁切，不切掉图上文字） */
.product-img, .case-img, .solution-img { width: 100%; height: auto; object-fit: cover; display: block; }
.product-img { aspect-ratio: 1 / 1; }
.case-img { aspect-ratio: 1 / 1; }
.solution-img { aspect-ratio: 407 / 258; }
.news-big-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.partner-item img { max-height: 54px; }
.honor-item img { height: 150px; width: 100%; object-fit: contain; background: #fff; }

/* 卡片等高：标题区撑开，按钮贴底 */
.product-card { display: flex; flex-direction: column; }
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; min-height: 0;
}
.product-info .btn { margin-top: auto; }
.case-card, .solution-item { display: flex; flex-direction: column; }
.case-info, .solution-info { flex: 1; }

.product-card, .case-card, .solution-item, .advantage-item, .news-item {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover, .case-card:hover, .solution-item:hover, .advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card:hover .product-img, .case-card:hover .case-img, .solution-item:hover .solution-img {
  transform: scale(1.03);
}
.product-img, .case-img, .solution-img { transition: transform .5s var(--ease); }
.product-name, .case-name, .solution-title { color: var(--ink); }
.product-name { line-height: 1.45; }
.product-desc, .solution-desc, .case-scene { color: var(--ink-2); }

/* 卡片统一圆角与描边 */
.product-card, .case-card, .solution-item, .advantage-item {
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef1ec;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 产品分类 Tab */
.product-tabs { gap: 10px; }
.tab-btn {
  padding: 9px 20px;
  background: #f2f5f0;
  border: 1px solid #e9eee5;
  border-radius: 40px;
  font-size: 14px;
  color: var(--ink-2);
  transition: .24s var(--ease);
}
.tab-btn:hover { border-color: var(--main-color); color: var(--main-color); }
.tab-btn.active { background: var(--main-color); border-color: var(--main-color); color: #fff; box-shadow: 0 6px 14px rgba(32, 136, 0, .2); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  :root { --header-h: 72px; }
  .logo img { height: 46px; }
  .nav-item > a { font-size: 15px; }
  .mega-inner { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .mega-visual { min-height: 210px; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  .nav-menu { display: none !important; }
  .menu-bar { display: flex; }
  .mobile-footer-nav { display: block; }
  .float-service { display: none !important; }
  .mega { display: none; }
  .section { padding: 56px 0; }
  .section-title { font-size: 24px; margin-bottom: 34px; }
  .section-subtitle { margin: -18px 0 30px; }
  .hero-bar-inner { grid-template-columns: 1fr; gap: 20px; padding: 22px 20px 26px; }
  .hero-bar h1 { font-size: 18px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .hero-stat { padding: 10px 6px; }
  .hero-stat strong { font-size: 16px; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; }
  body { padding-bottom: 58px; }
  .container { padding: 0 14px; }
  .logo img { height: 34px; }
  .nav { gap: 10px; }

  .hero { aspect-ratio: 750 / 533; }
  .hero-dots { bottom: 12px; gap: 6px; }
  .hero-dot { width: 18px; height: 3px; }
  .hero-arrow { display: none; }

  .hero-bar h1 { font-size: 17px; line-height: 1.5; }
  .hero-bar p { font-size: 13px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 42px 0; }
  .section-title { font-size: 21px; letter-spacing: .2px; margin-bottom: 30px; }
  .section-title::after { width: 40px; height: 2px; bottom: -12px; }
  .section-subtitle { font-size: 13px; margin: -14px 0 24px; }

  .btn { padding: 11px 22px; font-size: 14px; }

  .footer { padding-top: 36px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; padding-bottom: 24px; }
  .footer-col h3 { font-size: 14px; margin-bottom: 12px; }
  .footer-col ul li { font-size: 13px; }
  .footer-bottom { font-size: 12px; }

  /* 子页面 banner 在手机上改为自适应高度，避免文字被裁 */
  .banner, .news-banner, .page-banner, .solution-banner, .about-banner, .contact-banner {
    min-height: 0 !important;
    height: auto !important;
    padding: 46px 0 42px !important;
    background-attachment: scroll !important;
  }
  .banner-title { font-size: 24px !important; line-height: 1.4; }
  .banner-desc, .news-banner p { font-size: 14px !important; line-height: 1.7; }
}

@media (max-width: 420px) {
  .hero-stats { gap: 8px; }
  .hero-stat strong { font-size: 15px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   v2.1 修复：旧模板兼容 / 手机端防溢出 / 图标统一
   ============================================================ */

/* 旧模板栏目标题条（方案页、产品页常见） */
.solution-nav-item.active a,
.solution-nav-item:hover a { color: #fff; }
.solution-mobile-head { font-weight: 600; }
.solution-mobile-head span { font-size: 13px; opacity: .85; }

/* 底部导航 / 浮动客服：把 emoji 换成统一的线性图标 */
.mobile-nav-item i { display: none; }
.mobile-nav-item::before {
  content: "";
  width: 22px; height: 22px;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / 22px 22px no-repeat;
  mask: var(--ico) center / 22px 22px no-repeat;
}
.mobile-nav-item:nth-child(1) {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
}
.mobile-nav-item:nth-child(2) {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3l9 5v8l-9 5-9-5V8z'/%3E%3Cpath d='M3 8l9 5 9-5'/%3E%3C/svg%3E");
}
.mobile-nav-item:nth-child(3) {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M4 18l5-5 4 4 3-3 4 4'/%3E%3C/svg%3E");
}
.mobile-nav-item:nth-child(4) {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5z'/%3E%3C/svg%3E");
}
.mobile-nav-item span { display: block; }

.float-item { font-size: 0; line-height: 0; }
.float-item::before {
  content: "";
  width: 22px; height: 22px;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / 22px 22px no-repeat;
  mask: var(--ico) center / 22px 22px no-repeat;
}
.float-item:nth-child(1) {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 3h3l2 5-2.5 2.5c1.2 2.6 3.4 4.8 6 6L18 14l5 2v3c0 1-1 2-2 2C10 21 3 14 3 4c0-1 1-2 2-2z'/%3E%3C/svg%3E");
}
.float-item:nth-child(2) {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5z'/%3E%3Ccircle cx='9' cy='10.5' r='1'/%3E%3Ccircle cx='12.5' cy='10.5' r='1'/%3E%3Ccircle cx='16' cy='10.5' r='1'/%3E%3C/svg%3E");
}
.float-item:nth-child(3) {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M5 11l7-7 7 7'/%3E%3C/svg%3E");
}

/* 手机端：内容图片、表格不撑破屏幕（旧 CMS 富文本图片常带大宽度） */
@media (max-width: 768px) {
  .solution-content img, .article-content img, .news-content img,
  .detail-content img, .content img, .about-content img, .case-content img,
  .page-content img, .text-content img, .product-detail img { max-width: 100% !important; height: auto !important; }
  img { max-width: 100%; }
  table { width: 100% !important; max-width: 100% !important; height: auto !important; }
  table td, table th { word-break: break-word; }
  .solution-content table, .article-content table, .detail-content table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .solution-content > div, .article-content > div { max-width: 100% !important; }
  /* 旧 CMS 的"背景图 + 超大左右 padding"图文块，手机端改为整块文字卡 */
  .solution-content > div[style*="background:url"],
  .article-content > div[style*="background:url"] {
    height: auto !important;
    padding: 16px 14px !important;
    background-image: none !important;
    background-color: #f7faf4 !important;
    border-left: 3px solid var(--main-color);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.85;
  }
  .solution-content-box { padding: 24px 14px !important; }
  .solution-section { padding: 22px 0 30px !important; }
  .product-desc { -webkit-line-clamp: 2; }
}

@media print {
  .header, .float-service, .mobile-footer-nav, .drawer, .drawer-mask { display: none !important; }
  body { padding-top: 0; }
}

/* ============================================================
   v2.2 子页手机端细节修复：banner 文字贴边、详情页留白过大、
   面包屑挤压、分类折叠卡过高
   ============================================================ */
@media (max-width: 768px) {
  .banner-content {
    margin-left: 0 !important;
    max-width: none !important;
    padding: 0 18px !important;
    box-sizing: border-box;
  }
  .banner-title { font-size: 25px !important; margin-bottom: 12px !important; }
  .banner-divider { width: 54px !important; height: 2px !important; margin-bottom: 12px !important; }
  .banner-desc { font-size: 14px !important; line-height: 1.75 !important; margin-bottom: 16px !important; }
  .banner-desc br { display: none !important; }
  .banner .btn, .banner-content .btn { padding: 10px 18px !important; font-size: 15px !important; }
  .banner { padding-bottom: 30px !important; }

  .product-section, .news-section, .case-section { padding: 22px 0 28px !important; }
  .product-category, .news-category, .case-category {
    padding: 14px 16px !important;
    border-radius: 10px;
  }
  .category-title { font-size: 17px !important; padding-bottom: 10px !important; margin-bottom: 8px !important; }

  .product-detail, .news-detail, .case-detail, .detail-page, .page-main { padding: 26px 0 !important; }
  .detail-wrap { gap: 14px !important; }
  .detail-category { padding: 14px 16px !important; margin-bottom: 0 !important; border-radius: 10px; }
  .cate-title { font-size: 17px !important; padding-bottom: 10px !important; margin-bottom: 8px !important; }

  .position, .news-position {
    font-size: 13px;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
    line-height: 1.6;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
  }
  .position a, .news-position a { display: inline; }
}

/* 面包屑末级（当前页）统一为正文色，不再当链接 */
.crumb-now { color: #666; }

/* ============================================================
   v3.0  灯箱 / 子页 banner / 详情页标题
   ============================================================ */
/* 图片放大灯箱 */
.zoom-layer {
  position: fixed; inset: 0; z-index: 9999; background: rgba(8, 12, 10, .9);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  animation: zoomFade .2s ease;
  cursor: zoom-out;
}
@keyframes zoomFade { from { opacity: 0 } to { opacity: 1 } }
.zoom-layer img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff;
  cursor: default;
}
.zoom-close {
  position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 40px;
  text-align: center; cursor: pointer; transition: .25s; user-select: none;
}
.zoom-close:hover { background: #208800; transform: rotate(90deg); }
.zoom-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: .04em;
}
[data-zoom] { cursor: zoom-in; }

/* 子页 banner：高度自适应，图片不裁掉主体 */
.banner, .page-banner, .news-banner, .solution-banner, .about-banner {
  background-size: cover; background-position: center center;
}
@media (max-width: 768px) {
  .contact-banner { height: 300px !important; }
  .contact-banner h1 { font-size: 26px; }
  .contact-banner p { font-size: 14px; padding: 0 16px; }
}

/* 详情页 H1 长标题自适应 */
.banner-title, .banner h1 { word-break: break-word; }
.detail-h1 { max-width: 1000px; margin: 0 auto; font-size: 30px; line-height: 1.4; }
.detail-h1-sub { margin-top: 12px; font-size: 14px; letter-spacing: .12em; opacity: .8; text-transform: uppercase; }
@media (max-width: 768px) { .detail-h1 { font-size: 20px; line-height: 1.45; } }


/* ============================================================
   v3.1 子页 banner：绿色遮罩兜底 + 标题文字阴影
   ============================================================ */
.banner h1, .page-banner h1, .news-banner h1, .solution-banner h1,
.about-banner h1, .contact-banner h1, .banner-title, .detail-h1 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .38);
}
.banner p, .page-banner p, .news-banner p, .banner-desc, .detail-h1-sub {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .32);
}
.banner, .page-banner, .news-banner, .solution-banner, .about-banner, .contact-banner {
  position: relative;
}
