/* ==========================================================
   合肥博创智能 —— 前台样式
   主题色通过后台「站点设置 → 品牌色」注入 CSS 变量 --brand
   ========================================================== */

:root {
  --brand: #26A59A;
  --brand-dark: #1E867D;
  --brand-light: #E6F6F4;
  --ink: #1F2328;
  --ink-2: #4A5157;
  --ink-3: #8A9299;
  --line: #E6E9EB;
  --bg: #FFFFFF;
  --bg-soft: #F6F8F9;
  --radius: 8px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.7 "Microsoft YaHei", "PingFang SC", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; transition: color .18s; }
img { max-width: 100%; display: block; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 500; line-height: 1.4; }
p { margin: 0 0 14px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 顶部 ---------- */
.topbar { background: var(--brand-dark); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a:hover { color: #fff; opacity: .85; }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 999; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { height: 44px; width: auto; }
.logo-txt strong { display: block; font-size: 18px; letter-spacing: .5px; }
.logo-txt span { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 16px; font-size: 18.5px; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav > li:hover > a, .nav > li.active > a { color: var(--brand); border-bottom-color: var(--brand); }
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 168px; z-index: 1000;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.06); padding: 6px 0;
}
.nav > li:hover .sub { display: block; }
.nav .sub a { display: block; padding: 8px 18px; font-size: 14px; color: var(--ink-2); }
.nav .sub a:hover { background: var(--brand-light); color: var(--brand); }

.btn-global {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; line-height: 1;
  background: transparent; color: var(--brand, #26A59A) !important;
  border: 0;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: .18s;
}
.btn-global:hover { color: var(--brand-dark, #1c857c) !important; opacity: .85; }

/* ---------- 头部右侧：社媒 + 跳转 ---------- */
.header-right { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.social { display: flex; align-items: center; gap: 8px; }
.soc { position: relative; display: inline-flex; }
.soc-btn {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand); font-size: 15px; cursor: pointer; transition: .18s;
}
.soc-btn:hover { background: var(--brand); color: #fff; }
.soc-qr {
  position: absolute; top: calc(100% + 10px); right: 50%; transform: translateX(50%);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; width: 130px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12); display: none; z-index: 60; text-align: center;
}
.soc-qr::before {
  content: ''; position: absolute; bottom: 100%; right: 50%; transform: translateX(50%);
  border: 6px solid transparent; border-bottom-color: #fff;
}
.soc-qr img { width: 110px; height: 110px; object-fit: contain; }
.soc-qr em { display: block; font-style: normal; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.soc:hover .soc-qr { display: block; }

/* ---------- 产品中心 mega-menu（悬停显示分类缩略图） ---------- */
.caret { display: none; }
.has-mega > a { display: flex; align-items: center; gap: 4px; }
.mega {
  display: none; position: absolute; top: 100%; left: 0; z-index: 1000;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.10); padding: 18px; width: 720px; max-width: 92vw;
}
.has-mega:hover .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mega-item { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .18s; background: var(--bg-soft); }
.mega-item:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.mega-thumb { display: block; height: 92px; background: #fff; overflow: hidden; }
.mega-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mega-ph { display: flex; align-items: center; justify-content: center; height: 100%; background: linear-gradient(135deg, var(--brand), #1c8077); color: #fff; font-size: 30px; font-weight: 600; }
.mega-name { display: block; padding: 8px 10px; font-size: 13px; color: var(--ink); text-align: center; }
.mega-all .mega-all-box { display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 14px; font-weight: 500; }
.mega-all .mega-name { color: var(--brand); }

/* ---------- 页脚合作伙伴条 ---------- */
.partner-strip { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; flex-wrap: wrap; }
.ps-label { color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.ps-logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ps-logos a, .ps-logos span { display: inline-flex; align-items: center; height: 46px; }
.ps-logos img { max-height: 46px; max-width: 130px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .82; transition: .18s; }
.ps-logos a:hover img, .ps-logos span:hover img { opacity: 1; filter: none; }

.menu-toggle { display: none; font-size: 24px; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ---------- 首屏 ---------- */
/* ---------- 首页首屏轮播（gcltech 风格：全宽自动翻页 + 底部圆点） ---------- */
.hero { position: relative; background: #0F2F2C; overflow: hidden; height: clamp(420px, 78vh, 640px); }
.hero-slides { position: absolute; inset: 0; }
/* 首屏图片用 <img> 承载（不用 background-image），Ken Burns 缩放只作用在图片元素上。
   · 为什么不用背景图：background-image + transform:scale() 在软件光栅化路径（Firefox 关硬件加速、
     部分国产浏览器）下会逐帧重算 background-size:cover 的整图栅格 → 常态抖动；
     <img> 只需对已解码位图做一次图层缩放，Chromium 与 Gecko 都能走 GPU 合成。
   · 为什么缩放只挂在 .is-active 的 img 上：交叉淡入期间只有「进来的一张」在缩放，出去的那张静止淡出，
     不会出现两张图反向放大/缩小的重影。
   · 为什么复位延迟 .9s：切走时先渐隐 .9s，等完全透明后才瞬时回到 scale(1)，肉眼看不到「跳回」。 */
.hero-slide {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1);
  transition: transform 0s linear .9s;    /* 只在「切走」时生效：延迟到渐隐结束再瞬时复位 */
}
.hero-slide.is-active img {
  transform: scale(1.06) translateZ(0);   /* 进来后 7s 缓慢推进 */
  transition: transform 7s linear;
  will-change: transform;                 /* 只提升当前这一张，避免 5 张全屏图层同时吃显存 */
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { transform: none; transition: none; }
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,32,29,.32) 0%, rgba(8,32,29,.58) 100%);
}
.hero--plain { background: linear-gradient(135deg, #0F2F2C 0%, #143b36 60%, #1c4a44 100%); }
.hero-txt {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px;
}
.hero-txt h1 { font-size: 38px; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-txt p { font-size: 17px; opacity: .92; margin-bottom: 24px; }
.hero .btn {
  padding: 12px 34px; background: var(--brand); color: #fff; border-radius: 4px; font-size: 16px;
}
.hero .btn:hover { background: var(--brand-dark); }
.hero-inner { max-width: 820px; }
/* 首屏标签（HEFEI BOCHUANG · 智能包装装备）：暂时隐藏。
   恢复方法：把下面的 display: none 改成 inline-block 即可，其余样式均未改动。 */
.hero-tag { display: none; font-size: 13px; letter-spacing: 2px; color: var(--brand); background: var(--brand-light); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.hero .btn.ghost { background: transparent; border: 1px solid #fff; color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
/* 翻页圆点 */
.hero-dots { position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: .3s;
}
.hero-dots .dot.is-active { width: 30px; background: #fff; }
/* 左右箭头 */
.hero-arrow {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; cursor: pointer; border-radius: 50%;
  background: rgba(0,0,0,.25); color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.hero-arrow:hover { background: rgba(0,0,0,.45); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

/* 首页统计带（gcltech 风格大数字） */
.stats-band { background: var(--brand); color: #fff; }
.stats-band .stats { grid-template-columns: repeat(4, 1fr); }
.stats-band .stat .num { font-size: 40px; color: #fff; font-weight: 600; }
.stats-band .stat .lbl { color: rgba(255,255,255,.85); font-size: 15px; margin-top: 4px; }
.stats-band .stat { text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.stats-band .stat:last-child { border-right: 0; }

/* 底部 CTA 带 */
.cta-band { background: linear-gradient(135deg, #0F2F2C 0%, #143b36 100%); color: #fff; text-align: center; }
.cta-band h2 { font-size: 26px; margin-bottom: 12px; color: #fff; }
.cta-band p { opacity: .9; margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: var(--brand); }
.cta-band .btn:hover { background: #eaf6f4; }
.cta-band .btn.ghost { background: transparent; border: 1px solid #fff; color: #fff; }

/* 关于页 ESG 板块 */
.esg-block { margin-top: 40px; background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.esg-block h3 { font-size: 20px; margin-bottom: 10px; color: var(--brand); }
.esg-block p { color: var(--ink-2); max-width: 760px; margin-bottom: 16px; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: 28px; margin-bottom: 10px; }
.sec-head .en { font-size: 13px; color: var(--ink-3); letter-spacing: 2px; text-transform: uppercase; }
.sec-head::after {
  content: ''; display: block; width: 48px; height: 3px; background: var(--brand);
  margin: 14px auto 0;
}

/* ---------- 数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stats .num { font-size: 34px; color: var(--brand); font-weight: 500; }
.stats .lbl { font-size: 14px; color: var(--ink-2); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.card .thumb { position: relative; padding-top: 72%; background: var(--bg-soft); overflow: hidden; }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), #1c8077); color: #fff; font-size: 36px; font-weight: 600; }
/* 产品缩略图：完整显示，不裁剪(填充)、不拉伸、居中、四周留白 */
.card .thumb.thumb-product { background: #fff; }
.card .thumb.thumb-product img { object-fit: contain; }
.card .body { padding: 16px 18px 20px; }
.card .model { font-size: 12px; color: var(--brand); letter-spacing: .5px; }
.card h3 { font-size: 16px; margin: 6px 0 8px; }
.card p { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.6; }

/* ---------- 新闻列表 ---------- */
.news-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-date {
  flex: 0 0 76px; text-align: center; background: var(--brand-light); color: var(--brand);
  border-radius: var(--radius); padding: 10px 0; align-self: flex-start;
}
.news-date strong { display: block; font-size: 24px; font-weight: 500; }
.news-date span { font-size: 12px; }
.news-body h3 { font-size: 17px; margin-bottom: 6px; }
.news-body h3 a:hover { color: var(--brand); }
.news-body p { font-size: 14px; color: var(--ink-3); margin: 0; }
.news-thumb { flex: 0 0 180px; width: 180px; height: 120px; border-radius: var(--radius); overflow: hidden; align-self: flex-start; background: var(--brand-light); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-thumb:hover img { transform: scale(1.04); }
.news-thumb--empty { display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 34px; font-weight: 600; }

/* 首页新闻 2×4 网格 + 常见问题 */
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; margin-bottom: 34px; }
.sec-head--row::after { display: none; }
.sec-head--row .en { margin-top: 8px; }
.sec-head--row .more { color: var(--brand); font-size: 15px; text-decoration: none; white-space: nowrap; }
.sec-head--row .more:hover { text-decoration: underline; }

.news-grid { gap: 18px 24px; }
.news-grid .news-item {
  display: flex; gap: 18px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.news-grid .news-item:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-2px); }
.news-grid .news-item h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.news-grid .news-item:hover h3 { color: var(--brand); }
.news-grid .news-item p { margin: 0; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-size: 16px; color: var(--ink); list-style: none; position: relative; padding-right: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--brand); font-size: 20px; line-height: 1.2; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { font-size: 14px; color: var(--ink-2); padding-top: 10px; line-height: 1.8; }

/* ---------- 面包屑 ---------- */
.crumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.crumb .wrap { padding: 14px 20px; }
.crumb a:hover { color: var(--brand); }

/* ---------- 分类条 ---------- */
.catbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.catbar a { padding: 7px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.catbar a:hover { border-color: var(--brand); color: var(--brand); }
.catbar a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 产品详情 ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.detail .gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.detail h1 { font-size: 26px; margin-bottom: 8px; }
.detail .sub { color: var(--ink-2); margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; text-align: left; }
.spec-table th { background: var(--bg-soft); width: 32%; font-weight: 500; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 40px 0 24px; }
.tabs button {
  padding: 10px 24px; background: none; border: 0; font-size: 16px; cursor: pointer;
  color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit;
}
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.content-html { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.content-html img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 4px; }
/* 公司简介：配图显示在正文段落右侧 */
.content-html.with-figure { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.content-html.with-figure .content-body { flex: 1 1 420px; min-width: 0; }
.content-html.with-figure .content-figure { flex: 0 0 360px; margin: 0; }
.content-html.with-figure .content-figure img { width: 100%; height: auto; margin: 0; border-radius: 8px; }
@media (max-width: 768px) {
  .content-html.with-figure { gap: 20px; }
  .content-html.with-figure .content-figure { flex: 1 1 100%; }
}

/* 荣誉资质图片墙（honor 单页） */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.honor-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.honor-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.honor-item img { display: block; width: 100%; height: 220px; object-fit: contain; background: #fff; }
.honor-item figcaption { padding: 10px 12px; font-size: 13px; color: var(--ink-2); text-align: center; border-top: 1px solid var(--line); }
@media (max-width: 900px){ .honor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px){ .honor-grid { grid-template-columns: repeat(2, 1fr); } .honor-item img { height: 160px; } }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 0; border-color: var(--brand);
}
.btn {
  display: inline-block; padding: 11px 32px; background: var(--brand); color: #fff;
  border: 0; border-radius: 4px; font-size: 15px; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-light); }

.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert.success { background: #EDF9F7; color: #0F6E56; border: 1px solid #B7E4DD; }
.alert.error   { background: #FDF0EF; color: #A32D2D; border: 1px solid #F3C9C5; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0 0; }
.pagination a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; color: var(--ink-2); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #1F2A2A; color: #A9B4B3; padding: 48px 0 0; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--brand); }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* 移动端隐藏标题（保 SEO 但不上屏），桌面端正常显示 */
@media (max-width: 768px) {
  .sr-only-mobile {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .stats-band .stats { grid-template-columns: repeat(2, 1fr); }
  /* 平板：导航 7 项收窄间距，避免溢出 */
  .header .wrap { gap: 12px; }
  .nav { gap: 0; }
  .nav > li > a { padding: 10px 11px; font-size: 14px; }
  .mega { width: 640px; }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .header-right { gap: 10px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header .wrap { height: 64px; gap: 10px; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line);
    padding: 6px 0; box-shadow: 0 8px 20px rgba(0,0,0,.06);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > li { position: static; }
  .nav > li > a { padding: 13px 20px; border-bottom: 1px solid #f1f3f4; font-size: 18.5px; }
  .nav > li:hover > a, .nav > li.active > a { color: var(--brand); border-bottom-color: var(--brand); }
  /* 移动端：子菜单 / 产品分类默认折叠（点击 caret 才展开），避免菜单一打开就铺开占用空间 */
  .nav .sub, .has-mega .mega {
    position: static; display: none; width: auto; box-shadow: none; border: 0;
    padding: 0; background: var(--bg-soft);
  }
  .nav li.has-sub.sub-open > .sub,
  .nav li.has-mega.mega-open > .mega { display: block; }
  .nav .caret { cursor: pointer; padding: 0 8px; pointer-events: auto; }
  .nav .sub a { padding: 11px 34px; font-size: 14px; }
  .mega { padding: 10px; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mega-item { background: #fff; }
  .mega-thumb { height: 64px; }
  .mega-all .mega-all-box { height: 64px; }
  .header-right { gap: 10px; margin-left: 0; }
  .social { display: none; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 16px; gap: 8px; }
  .hero-dots .dot { width: 8px; height: 8px; }
  .hero-dots .dot.is-active { width: 22px; }
  .hero-txt h1 { font-size: 24px; }
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 40px 0; }
  .news-item { flex-direction: column; gap: 10px; }  .news-date { flex: 0 0 auto; width: 90px; }
  .news-thumb { flex: none; width: 100%; height: 180px; }
  .footer .cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   页面级样式
   以下规则原先分别写在各页面 body 内的 <style> 块里（文档顺序位于本文件之后）。
   2026-10-09 统一并入本文件末尾。
   ⚠️ 必须保持在本文件末尾：这些规则与上面的规则存在同权重冲突时依赖「后者胜」，
      一旦上移，前面的规则会反过来覆盖它们（首页整屏布局、导航白字、页脚白字等会错乱）。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) 首页整屏滚动（原 views/site/home.php 内联，99 行）
   -------------------------------------------------------------------------- */
/* ===== 整屏滚动 ===== */
.fp-swiper-wrap{position:relative}
.fp-swiper{width:100%;height:100vh;height:100dvh}
/* ⚠️ 层级守卫（勿删）：本页的 swiper-bundle.min.css 由 home.php 在 body 内引入，
   文档顺序排在 main.css 之后，而它的 .swiper-slide{display:block} 与本文件同为 (0,1,0) 权重。
   页级规则必须在「权重」上胜过它，不能依赖加载顺序。
   因此下面 4 条 slide 根规则统一加上 .fp-swiper 前缀 → (0,2,0)。
   背景：2026-10-09 把各页内联 <style> 并入本文件后，内联块原本「排在本文件之后」的顺序消失，
   导致屏1/屏4 的 display:flex 被 swiper.css 的 display:block 覆盖 → 屏1 底部露白、屏4 内容上移。 */
.fp-swiper .fp-slide{overflow:hidden;height:100%}
/* 屏1：轮播图(占满) + 统计带(底部) */
.fp-swiper .fp-slide--hero{display:flex;flex-direction:column;height:100%}
.fp-slide--hero .hero{flex:1 1 0;min-height:0}
.fp-slide--hero .stats-band{padding:20px 0;flex:0 0 auto}
/* 屏2/3/4 面板居中（顶部留白避开固定导航） */
.fp-swiper .fp-slide--panel{display:flex;align-items:center;justify-content:center;background:#fff;color:#222}
.fp-panel{width:100%;max-width:1200px;padding:90px 20px 48px;box-sizing:border-box}
.fp-panel .sec-head{margin-bottom:30px}
/* 导航栏：固定覆盖（不占布局高度 → 修复统计带被裁 / 第三屏露边）+ 透明 + 正常字体色 */
.fp-home .topbar{position:fixed;top:0;left:0;right:0;z-index:1000}
.fp-home .header{position:fixed;top:36px;left:0;right:0;z-index:999;background:transparent;border-bottom:0;box-shadow:none}
body.fp-hide-topbar .topbar{display:none}
body.fp-hide-topbar .header{top:0}
/* ===== 方案C：屏1/屏4（深色背景）顶部渐隐黑遮罩 + 白色导航 =====
   屏2/屏3 是白底，不加遮罩、文字自动恢复深色（由 body.fp-nav-dark 开关切换） */
.fp-nav-veil{
  position:fixed;top:0;left:0;right:0;height:170px;z-index:998;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.58) 0%,rgba(0,0,0,.40) 45%,rgba(0,0,0,0) 100%);
  opacity:0;transition:opacity .45s ease;
}
body.fp-nav-dark .fp-nav-veil{opacity:1}
body.fp-nav-dark .nav > li > a{color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.6)}
body.fp-nav-dark .nav > li:hover > a,
body.fp-nav-dark .nav > li.active > a{color:#fff;border-bottom-color:#fff}
body.fp-nav-dark .logo-txt strong{color:#fff}
body.fp-nav-dark .logo-txt span{color:rgba(255,255,255,.78)}
body.fp-nav-dark .menu-toggle{color:#fff}
body.fp-nav-dark .soc-btn{background:rgba(255,255,255,.16);color:#fff}
body.fp-nav-dark .soc-btn:hover{background:#fff;color:var(--brand)}
body.fp-nav-dark .btn-global{color:#fff !important}
body.fp-nav-dark .btn-global:hover{color:#eaf6f4 !important}
/* 第四屏：CTA + 页脚（与首三屏等高、可上传背景图；页脚融入屏内） */
.fp-swiper .fp-slide--cta{position:relative;display:flex;flex-direction:column;color:#fff;background:linear-gradient(135deg,#0F2F2C 0%,#143b36 100%);overflow:hidden}
.fp-slide--cta .cta-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.fp-slide--cta .cta-bg::after{content:'';position:absolute;inset:0;background:rgba(8,32,29,.55)}
.fp-slide--cta .fp-cta-body{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.fp-slide--cta .fp-cta-inner{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;z-index:2;text-align:center;max-width:760px;width:100%;margin:0 auto;padding:90px 20px 24px;box-sizing:border-box}
.fp-slide--cta h2{font-size:30px;margin-bottom:14px;color:#fff}
.fp-slide--cta p{opacity:.92;margin-bottom:26px;font-size:17px}
.fp-slide--cta .btn{background:#fff;color:var(--brand);padding:12px 34px;border-radius:4px;font-size:16px;display:inline-block;margin:6px}
.fp-slide--cta .btn:hover{background:#eaf6f4}
.fp-slide--cta .btn.ghost{background:transparent;border:1px solid #fff;color:#fff}
.fp-slide--cta .btn.ghost:hover{background:rgba(255,255,255,.12)}
/* 页脚融入第四屏（透明底 + 白字，位于 CTA 下方） */
.fp-slide--cta .footer{flex:0 0 auto;position:relative;z-index:2;background:transparent;border-top:1px solid rgba(255,255,255,.16);color:#fff;padding:22px 0 0}
.fp-slide--cta .footer h4{color:#fff}
.fp-slide--cta .footer a{color:rgba(255,255,255,.82)}
.fp-slide--cta .footer a:hover{color:#fff}
.fp-slide--cta .footer .cols{gap:24px;padding-bottom:18px}
.fp-slide--cta .footer .bottom{border-top-color:rgba(255,255,255,.12)}
/* 屏3 新闻标题 PC 端居中（与屏2 产品中心一致）；隐藏"查看全部"，加同款青色横线 */
.fp-slide--panel .sec-head--row{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px}
.fp-slide--panel .sec-head--row .more{display:none}
.fp-slide--panel .sec-head--row::after{display:block;content:'';width:48px;height:3px;background:var(--brand);margin:14px auto 0}
/* ===== 移动端（≤768px）首页整屏优化 ===== */
@media(max-width:768px){
  /* 屏1 统计带缩小约 1/3：2×2 紧凑排布 + 字号缩小，避免挤出整屏 */
  .fp-slide--hero .stats-band{padding:12px 0;flex:0 0 auto}
  .fp-slide--hero .stats-band .stats{grid-template-columns:repeat(2,1fr);gap:8px 0}
  .fp-slide--hero .stats-band .stat{border-right:0}
  .fp-slide--hero .stats-band .stat .num{font-size:26px}
  .fp-slide--hero .stats-band .stat .lbl{font-size:11px;margin-top:2px}
  /* 面板顶部留白收窄（避开固定导航） */
  .fp-panel{padding:84px 16px 32px}
  /* 屏2/屏3 区块标题：移动端中英文居中（屏3 由 row 左对齐改为居中，与屏2 一致） */
  .fp-slide--panel .sec-head{text-align:center}
  .fp-slide--panel .sec-head--row{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px}
  /* 屏2 产品中心：2×2（仅显示前 4 个，避免溢出整屏） */
  .fp-slide--panel .grid.c4{grid-template-columns:repeat(2,1fr);gap:14px}
  .fp-slide--panel .grid.c4 .card:nth-child(n+5){display:none}
  /* 屏3 新闻资讯：1 列 3 排（仅显示前 3 条）；日期戳居摘要左侧（撤销全局移动端 column 排版） */
  .fp-slide--panel .grid.c2.news-grid{grid-template-columns:repeat(1,1fr);gap:12px}
  .fp-slide--panel .news-item{flex-direction:row;gap:14px;align-items:flex-start}
  .fp-slide--panel .news-grid .news-item:nth-child(n+4){display:none}
  .fp-slide--panel .news-grid .news-item h3{font-size:15px}
  .fp-slide--panel .news-grid .news-item p{font-size:13px}
  /* 屏4 CTA + 页脚：隐藏页脚导航，仅保留底部名称/备案号一行 */
  .fp-slide--cta h2{font-size:22px}
  .fp-slide--cta p{font-size:14px;margin-bottom:18px}
  .fp-slide--cta .fp-cta-inner{padding:80px 16px 18px}
  .fp-slide--cta .footer{padding-top:14px}
  .fp-slide--cta .footer .cols{display:none}
  .fp-slide--cta .footer .bottom{border-top:1px solid rgba(255,255,255,.12);flex-wrap:wrap;justify-content:center;text-align:center;gap:8px;font-size:11px;padding-top:12px}
  /* 仅保留「名称 + 备案号」一行：隐藏底部的 隐私条款 | 工作时间 */
  .fp-slide--cta .footer .bottom > span:last-child{display:none}
  /* 方案C 移动端适配：遮罩变矮（顶条 36 + 导航 64 ≈ 100px） */
  .fp-nav-veil{height:120px}
  /* 移动端展开的菜单面板仍是白底 → 强制恢复深色文字，避免白字看不见 */
  body.fp-nav-dark .nav > li > a{color:var(--ink);text-shadow:none}
  body.fp-nav-dark .nav > li:hover > a,
  body.fp-nav-dark .nav > li.active > a{color:var(--brand);border-bottom-color:var(--brand)}
  body.fp-nav-dark .btn-global{color:var(--brand) !important}
}

/* --------------------------------------------------------------------------
   2) 客户案例图库 + 灯箱弹框（原 views/site/case-index.php 内联，36 行）
   -------------------------------------------------------------------------- */
.case-card { cursor: zoom-in; }
.case-more { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px; }

/* 一排 4 个之后卡片变窄，文字随之收紧，避免标题/摘要把卡片撑得过高 */
.case-grid .card .body { padding: 13px 15px 15px; }
.case-grid .card h3 { font-size: 15px; margin: 3px 0 6px; }
.case-grid .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.casebox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.casebox.open { display: flex; }
.casebox-mask { position: absolute; inset: 0; background: rgba(8,12,14,.88); }
.casebox-stage { position: relative; margin: 0; max-width: min(1200px, 94vw); display: flex; flex-direction: column; align-items: center; }
.casebox-stage img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.casebox-stage figcaption { margin-top: 12px; color: #fff; font-size: 14px; line-height: 1.6; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.casebox-idx { opacity: .72; margin-left: 10px; font-size: 13px; }

.casebox-close { position: absolute; top: 18px; right: 22px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s; }
.casebox-close:hover { background: rgba(255,255,255,.28); }
.casebox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.casebox-nav:hover { background: rgba(255,255,255,.28); }
.casebox-nav.prev { left: 18px; }
.casebox-nav.next { right: 18px; }

@media (max-width: 768px) {
  .casebox { padding: 12px; }
  .casebox-stage img { max-height: 72vh; }
  .casebox-nav { width: 42px; height: 42px; font-size: 24px; }
  .casebox-nav.prev { left: 4px; }
  .casebox-nav.next { right: 4px; }
  .casebox-close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 22px; }
  .casebox-stage figcaption { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   3) 合作伙伴（原 views/site/partner.php 内联，10 行）
   -------------------------------------------------------------------------- */
.partner-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.partner-cell { display:flex; align-items:center; justify-content:center; height:140px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; transition:.2s; }
.partner-cell:hover { border-color:var(--brand); box-shadow:0 8px 22px rgba(0,0,0,.06); transform:translateY(-3px); }
.partner-cell img { max-width:100%; max-height:100px; object-fit:contain; }
.partner-name { font-size:15px; color:var(--ink-2); text-align:center; }
@media (max-width:1200px){ .partner-grid{grid-template-columns:repeat(4,1fr);} }
@media (max-width:820px){ .partner-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:560px){ .partner-grid{grid-template-columns:repeat(2,1fr);} }

/* --------------------------------------------------------------------------
   4) 联系我们 · 地图（原 views/site/contact.php 内联，5 行）
   -------------------------------------------------------------------------- */
.map-box { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map-box iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-fallback { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 8px; padding: 40px 24px; text-align: center; }
