/* ==========================================================================
   layout：头部 + 移动端面板 + 页脚（Modernize 风）
   菜单结构是生成器给的固定类名：ul > li.menu-item > a.ct-menu-link（+ ul.sub-menu）
   ========================================================================== */

.site_slogan_box {
  width: 100%;
  padding: 6px 0;
  background: var(--mz-brand);
  color: #fff;
  text-align: center;
  font-size: 14px;
}
.site_slogan_box .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site_slogan_box .container p {
  margin-bottom: 0px;
}
.site_slogan_box .container b {
  color: #fff;
}

@media (max-width: 991px) { 
  .site_slogan_box .container {
    display: flex;
    justify-content: center;
  }
  .site_slogan_box .container p {
    display: none;
  }
}

/* ---------------- 头部 ---------------- */
.mz-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--mz-line);
}
.mz-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  /* 与 tokens 里的 --mz-header-h 对齐：全屏幻灯片按它减高度 */
  min-height: var(--mz-header-h, 76px);
}

.mz-logo { position: relative; padding-left: 56px; }
.mz-logo img { max-height: 40px; width: auto; position: absolute; left: 0px; }
.mz-logo b { display: block; clear: both; font-size: 18px; line-height: 18px; padding-bottom: 5px; padding-top: 4px; }
.mz-logo span { display: block; clear: both; font-size: 12px; line-height: 12px; text-transform: uppercase; letter-spacing: 1px; }
/* 没上传 Logo 时生成器给出的是文字标记 */
.mz-logo .zc-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--mz-r-sm);
  background: var(--mz-brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* nav 和 menu 都撑满头部高度：分栏面板靠 li 撑高来「粘住」鼠标，
   不然后面 .menu-item-mega 的 align-self:stretch 没有可用高度。 */
.mz-nav { flex: 1 1 auto; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.mz-menu {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mz-menu .menu-item { position: relative; margin: 0; }
.mz-menu .menu-item > a {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  color: var(--mz-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--mz-transition);
}
.mz-menu .menu-item > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--mz-brand);
  transition: right var(--mz-transition);
}
.mz-menu .menu-item:hover > a,
.mz-menu .current-menu-item > a { color: var(--mz-brand); }
.mz-menu .menu-item:hover > a::after,
.mz-menu .current-menu-item > a::after { right: 0; }

/* 下拉小箭头（生成器输出的是空 span 或 svg） */
.ct-toggle-dropdown-desktop { display: inline-block; width: 8px; height: 8px; position: relative; }
.ct-toggle-dropdown-desktop::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
}
.ct-toggle-dropdown-desktop svg { display: none; }

.sub-menu {
  position: absolute;
  left: 0px;
  top: 100%;
  z-index: 20;
  min-width: 210px;
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid var(--mz-line);
  border-radius: var(--mz-r-sm);
  background: #fff;
  box-shadow: var(--mz-shadow-2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--mz-transition);
}
.menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu .menu-item > a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--mz-r-xs);
  color: var(--mz-body);
  font-weight: 500;
}
.sub-menu .menu-item > a:hover { background: var(--mz-brand); color: #fff; }
.sub-menu .menu-item > a::after { display: none; }

/* ------------------------------------------------- 分栏下拉（mega menu）
   一个二级项 = 一列。分类多的站（产品按品牌/功率/行业分组）不再拉成一条
   长到屏幕外的竖列，改成并排几列，列头就是分组名。
   生成器给的类名：ul.sub-menu.sub-menu-mega > li.mega-col > span.mega-col-title
                                                     + ul.mega-col-list > li > a */
/* 定位基准换成整条导航：宽面板跟着靠右的菜单项走会直接被顶出屏幕右边。
   生成器给带分栏的 <li> 打 .menu-item-mega，这里取消它的 position:relative。
   顺手让它撑满头部高度 —— 鼠标从菜单项往下挪时不经过「空白缝」，
   不然 hover 一断面板就闪没了（分栏面板离菜单项比较远，这步是必须的）。 */
.mz-header-inner { position: relative; }
.mz-menu > .menu-item-mega {
  position: static;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.sub-menu.sub-menu-mega {
  margin-top: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  width: calc(100% - 48px);
  overflow: auto;
  padding: 20px 8px 18px;
}
.sub-menu-mega > .mega-col {
  flex: 1 1 auto;
  min-width: 176px;
  max-width: 230px;
  padding: 0 6px;
}
.sub-menu-mega > .mega-col + .mega-col {
  /* 列之间一条极淡的竖线，分栏不至于糊成一片 */
  border-left: 1px dashed var(--mz-line);
}
.mega-col-title {
  display: block;
  margin: 0 0 6px;
  padding: 0 12px 9px;
  border-bottom: 1px solid var(--mz-line-strong);
  color: var(--mz-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sub-menu-mega .mega-col-list { margin: 0; padding: 0; list-style: none; }
.sub-menu-mega .mega-col-list > .menu-item > a {
  padding: 8px 12px;
  border-bottom: 1px dashed var(--mz-line);
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
}
.sub-menu-mega .mega-col-list > .menu-item:last-child > a { border-bottom: 0; }
.sub-menu-mega .mega-col-list > .menu-item > a:hover {
  background: var(--mz-brand-soft);
  color: var(--mz-brand-dark);
}
@media (max-width: 991px) {
  /* 手机端走下方面板，桌面这套分栏不参与 */
  .sub-menu.sub-menu-mega { display: none !important; }
}

.mz-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- 语言切换 */
/* 挂在 header 的 actions 里（Get a Quote 左边）。菜单是纯 CSS hover + 一点 JS 点击态，
   手机端整个隐藏，改由移动端面板底部那排胶囊承担。 */
.mz-lang { position: relative; flex: 0 0 auto; }
/* 按钮和菜单之间有 8px 空隙，hover 到空隙会掉出 :hover → 菜单提前关。
   用一段透明桥把两截连起来（只覆盖那条缝，不影响别处点击）。 */
.mz-lang::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.mz-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--mz-line);
  border-radius: var(--mz-r-xs);
  background: #fff;
  color: var(--mz-ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  cursor: pointer;
  transition: color var(--mz-transition), border-color var(--mz-transition);
}
.mz-lang-btn:hover,
.mz-lang-btn:focus-visible,
.mz-lang.is-open .mz-lang-btn { color: var(--mz-brand); border-color: var(--mz-brand); }
.mz-lang-btn:focus-visible { outline: 2px solid var(--mz-brand); outline-offset: 2px; }
.mz-lang-cur { text-transform: uppercase; }
/* 下拉小箭头沿用导航那套 CSS 折角（.ct-toggle-dropdown-desktop），这里只放大一点点 */
.mz-lang-btn .ct-toggle-dropdown-desktop { width: 9px; height: 9px; top: -1px; }
.mz-lang-btn .ct-toggle-dropdown-desktop::before { top: 1px; width: 7px; height: 7px; }
.mz-lang-flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}
.mz-lang-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
  min-width: 186px;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid var(--mz-line);
  border-radius: var(--mz-r-sm);
  background: #fff;
  box-shadow: var(--mz-shadow-2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--mz-transition);
}
.mz-lang:hover .mz-lang-menu,
.mz-lang.is-open .mz-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mz-lang-menu li { margin: 0; }
.mz-lang-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--mz-r-xs);
  color: var(--mz-body);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
a.mz-lang-link:hover { background: var(--mz-soft); color: var(--mz-brand-dark); }
.mz-lang-menu .is-current .mz-lang-link { color: var(--mz-ink); font-weight: 700; }
/* 当前语言右边那个对勾（字体图标，见 runtime/iconfont） */
.mz-lang-ok { margin-left: auto; font-size: 13px; color: var(--mz-brand); }

/* 移动端面板底部的语言胶囊 */
.mz-mlang { padding: 14px 4px 0; }
.mz-mlang-h {
  display: block;
  margin-bottom: 8px;
  color: var(--mz-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mz-mlang-list { display: flex; flex-wrap: wrap; gap: 8px; }
/* 覆盖 .mz-mobile-panel a 的整行块级样式（这里是胶囊，不是列表项） */
.mz-mobile-panel .mz-mlang-item,
.mz-mlang .mz-mlang-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 7px 12px;
  border: 1px solid var(--mz-line);
  border-radius: 999px;
  color: var(--mz-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.mz-mlang .mz-mlang-item.is-current { border-color: var(--mz-brand); color: var(--mz-brand); background: var(--mz-soft); }

/* 汉堡按钮（移动端） */
.mz-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border: 1px solid var(--mz-line);
  border-radius: var(--mz-r-xs);
  background: #fff;
  cursor: pointer;
}
.mz-burger span {
  display: block;
  height: 2px;
  margin: 0 0 5px;
  border-radius: 2px;
  background: var(--mz-ink);
  transition: transform var(--mz-transition);
}
.mz-burger span:last-child { margin-bottom: 0; }
body.mz-menu-open .mz-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mz-menu-open .mz-burger span:nth-child(2) { opacity: 0; }
body.mz-menu-open .mz-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端面板 */
.mz-mobile-panel {
  display: none;
  padding: 8px 0 18px;
  border-top: 1px solid var(--mz-line);
  background: #fff;
  /* 滚到尽头别把滚动传给 body（iOS / 安卓都会「滚动链」传导到页面） */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.mz-menu-open .mz-mobile-panel { display: block; }
.mz-mobile-panel a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--mz-line);
  color: var(--mz-ink);
  font-weight: 600;
}
.mz-mobile-panel a:hover { color: var(--mz-brand); }
.mz-mobile-panel a.zc-mobile-sub { padding-left: 18px; color: var(--mz-muted); font-weight: 500; }

/* ---- 二级折叠（原生 <details>，模板里不能加 JS） ---- */
.mz-mnav-group { border-bottom: 1px solid var(--mz-line); }
.mz-mnav-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  color: var(--mz-ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;               /* 去掉默认三角 */
}
.mz-mnav-sum::-webkit-details-marker { display: none; }
.mz-mnav-sum::marker { content: ''; }
.mz-mnav-caret {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--mz-muted);
  transition: transform var(--mz-transition, 0.2s ease);
}
.mz-mnav-group[open] > .mz-mnav-sum .mz-mnav-caret { transform: rotate(180deg); }
.mz-mnav-group[open] > .mz-mnav-sum { color: var(--mz-brand); }
.mz-mnav-sub { padding-bottom: 4px; }
.mz-mnav-sub a { border-bottom: 0; }
.mz-mnav-sub a + a { border-top: 1px solid var(--mz-line); }
.mz-mnav-sub a.zc-mobile-sub { padding: 11px 4px 11px 18px; }

.mz-main { display: block; min-height: 40vh; }

@media (max-width: 991px) {
  .mz-nav, .mz-header-cta, .mz-lang { display: none; }
  .mz-burger { display: block; }
  .mz-header-inner { width: 100%; justify-content: space-between; min-height: 66px; }

  /* 菜单打开时：页面彻底不滚，头部变一列，面板 flex 吃掉剩余高度自己滚。
     不用写死 header 像素高——手机上地址栏一收一放，视口高度是变的。
     ⚠️ 这里必须是 height 不能是 max-height：header 高度本来就是内容撑的，
        写成 max-height 时 flex 容器没有「确定高度」，面板 flex:1 分不到空间 → 塌成 0 高。 */
  body.mz-menu-open { overflow: hidden; }
  /* 页面真正的滚动容器是 <html>，只锁 body 白搭 */
  html:has(body.mz-menu-open) { overflow: hidden; }
  /* ⚠️ 必须 fixed 从视口顶开始：页头上面还有一条 slogan，
     拿着 sticky 的「当前位置」再加 100dvh，面板底部会越过屏幕 30 多像素。 */
  body.mz-menu-open .mz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }
  body.mz-menu-open .mz-header-inner { flex: 0 0 auto; }
  body.mz-menu-open .mz-mobile-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* 手机菜单打开时收起浮动工具条：它固定在右下角，会压住二级菜单的文字 */
  body.mz-menu-open .zc-fb { display: none; }
}

/* ---------------- 页脚 ---------------- */
.mz-footer {
  margin-top: 0;
  padding: var(--mz-sec-y) 0 28px;
  background: var(--mz-dark);
  color: var(--mz-on-dark);
}
.mz-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mz-footer-col { min-width: 0; }
.mz-footer-brand {
  padding-right: 20px;
}
.mz-footer-brand .mz-footer-logo { display: inline-block; margin-bottom: 18px; position: relative; padding-left: 56px; }
.mz-footer-logo img { max-height: 40px; width: auto; position: absolute; left: 0px; }
.mz-footer-logo b { display: block; color: #fff; clear: both; font-size: 18px; line-height: 18px; padding-bottom: 5px; padding-top: 4px; }
.mz-footer-logo span { display: block; color: #fff; clear: both; font-size: 12px; line-height: 12px; text-transform: uppercase; letter-spacing: 1px; }
.mz-footer-slogan {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
}
.mz-footer-desc { color: rgba(234, 239, 244, 0.7); font-size: 0.9375rem; max-width: 380px; }

.zc-fill { font-size: 0.9rem; color: rgba(234, 239, 244, 0.72); }

.mz-footer-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.mz-footer-list, .mz-footer-contact { margin: 0; padding: 0; list-style: none; }
.mz-footer-list li { margin-bottom: 10px; }
.mz-footer-list a {
  color: rgba(234, 239, 244, 0.72);
  font-size: 0.9375rem;
  transition: color var(--mz-transition);
}
.mz-footer-list a:hover { color: #fff; }

.mz-footer-contact li {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  font-size: 0.9375rem;
}
.mz-footer-contact span {
  color: rgba(234, 239, 244, 0.45);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mz-footer-contact em { color: rgba(234, 239, 244, 0.85); font-style: normal; }

.mz-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.mz-footer-copy { margin: 0; color: rgba(234, 239, 244, 0.6); font-size: 0.875rem; }
/* 页脚备案（c56）：生成器只输出 <a class="mz-footer-filing">，不包任何 span / div。
   颜色与字号直接写在 <a> 上，不再依赖外层容器；两个备案号之间用 margin 拉开间距。 */
.mz-footer-filing { display: inline-block; margin: 10px 7px 0; color: rgba(234, 239, 244, 0.6); font-size: 0.875rem; text-decoration: none; }
.mz-footer-filing:hover { text-decoration: underline; }
/* fdjczu 把备案放在版权 <p> 内，保持与版权文字同一行 */
.mz-footer-copy .mz-footer-filing { display: inline; margin: 0 7px; }
.mz-footer-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.mz-footer-tags span {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mz-r-pill);
  color: rgba(234, 239, 244, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
}
.mz-footer-tags a {
  color: #fff;
}
.mz-footer-tags a:hover {
  color: var(--mz-brand-dark);
}

@media (max-width: 991px) {
  .mz-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 575px) {
  .mz-footer-top { grid-template-columns: 1fr; }
}
