/* =====================================================================
   通用 CSS（全站共用） — Sandy® 仙笛音响 企业官网
   命名规范：BEM（block / block__element / block--modifier）
   设计令牌（Design Tokens）沿用深海军蓝体系 #1B3A6B
   ===================================================================== */

:root {
  --c-primary: #1752a1;        /* 深海军蓝（主色 / 标题 / 强调） */
  --c-white: #fff;                /* 白色（背景 / 文字 / 图标） */
  --c-primary-light: #2E5FAC;  /* 中间蓝（交互态 / 图标） */
  --c-footer: #03479c;         /* 页脚皇家蓝 */
  --c-footer-bottom: #16357a;  /* 页脚底部更深的蓝 */
  --c-text: #333333;
  --c-muted: #888888;
  --c-bg: #f5f7fa;             /* 浅灰背景 */
  --c-border: #e3e8ef;
  --c-accent: #f4c430;         /* 金色点缀（激活 / 悬停） */
  --header-h: 72px;
  --font-title: "Helvetica Neue", Helvetica, Arial, sans-serif;  /* 统一标题字族 */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.content img{
  max-width: 100% !important;
  height: auto;

}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 通用文字辅助（跨页面复用） ---------- */
.text-en {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9aa6b4;
}
.text-primary { color: var(--c-primary) !important; }

/* =====================================================================
   BLOCK: site-header 站点头部 / 导航
   透明覆盖于主视觉之上，滚动后变为实色（JS 切换 --solid / --open）
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header--solid {
  background: #03479c;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header__logo img {
  height: 34px;
  filter: brightness(0) invert(1);          /* 透明态：白字 logo */
  transition: filter .3s ease;
}
.site-header--solid .site-header__logo img,
.site-header--open .site-header__logo img { filter: none; }  /* 实色态：深蓝 logo */

.site-nav__list {
  display: flex;
  gap: 30px;
}
.site-nav__link {
  position: relative;
  color: #fff;
  font-size: 15px;
  padding: 8px 0;
  transition: color .2s ease;
}
.site-header--solid .site-nav__link,
.site-header--open .site-nav__link { color: var(--c-white); }
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.site-nav__link:hover { color: var(--c-accent); }
.site-header--solid .site-nav__link:hover,
.site-header--open .site-nav__link:hover { color: var(--c-accent); }
.site-nav__link:hover::after,
.site-nav__link--active::after { transform: scaleX(1); }
.site-nav__link--active { color: var(--c-accent); }
.site-header--solid .site-nav__link--active,
.site-header--open .site-nav__link--active { color: var(--c-white); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-header__icon {
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: color .2s ease;
}
.site-header--solid .site-header__icon,
.site-header--open .site-header__icon { color: var(--c-white); }
.site-header__icon:hover { color: var(--c-accent); }
.site-header__lang{color: #fff;}
.site-header__lang a { color: #fff; font-size: 14px; }
.site-header--solid .site-header__lang a,
.site-header--open .site-header__lang a { color: var(--c-white); }
.site-header__lang a:hover { color: var(--c-accent); }
.site-header__lang .is-on { font-weight: 700; }

.site-header__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.site-header--solid .site-header__toggle,
.site-header--open .site-header__toggle { color: var(--c-white); }

/* =====================================================================
   BLOCK: 二级导航下拉（通用）
   常规下拉 .site-nav__dropdown + 产品中心 Mega Menu .nav-mega
   下拉面板作为 <li> 子元素，hover 父级即展开；.site-nav__item 仅做定位
   ===================================================================== */
.site-nav__list li,   
.site-nav__item { position: relative; line-height: 40px;}
.site-nav__caret {
  font-size: 11px;
  margin-left: 3px;
  display: inline-block;
  transition: transform .2s ease;
}
.site-nav__item--has-dropdown:hover .site-nav__caret,
.site-nav__item--mega:hover .site-nav__caret { transform: rotate(180deg); }

/* 常规下拉面板 */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1040;
}
  
.left-auto{
  width: max-content;
  left: initial !important;
  right: initial !important;
}
/* 透明桥接：覆盖 li 与下拉之间的空隙，避免 hover 中断 */
.site-nav__dropdown::before {
  content: "";
  position: absolute;
  top: -22px; left: 0; right: 0;
  height: 22px;
}
.site-nav__item--has-dropdown:hover .site-nav__dropdown,
.site-nav__item--has-dropdown:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__dropdown-link {
  display: block;
  padding: 3px 24px;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
  transition: color .2s ease, padding-left .2s ease, background .2s ease;
}
.site-nav__dropdown-link:hover {
  background: var(--c-bg);
  color: var(--c-primary);
  padding-left: 28px;
}

/* 产品中心 Mega Menu（品牌分列 + 右侧产品展示） */
.site-nav__item--mega { position: static; }
.site-nav__item--mega .nav-mega {
  position: absolute;
  top: 100%;  
  left: -400%;
  background: #fff
    repeating-linear-gradient(135deg, rgba(27, 58, 107, .03) 0 2px, transparent 2px 9px);
  border-top: 3px solid var(--c-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
  padding: 28px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1040;
}
.site-nav__item--mega:hover .nav-mega,
.site-nav__item--mega:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-mega__grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 1000px;
}
.nav-mega__col {
  flex: 1;
  min-width: 0;
  padding: 0 26px;
  border-right: 1px solid var(--c-border);
}
.nav-mega__col:last-of-type { border-right: none; }
.nav-mega__brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.nav-mega__brand-cn { font-size: 13px; font-weight: 600; color: #8a93a3; }
.nav-mega__brand--gray { color: #8a93a3; }
.nav-mega__brand--green { color: #1aa86a; }
/* 第一列：深蓝品牌块 */
.nav-mega__col--dark {
  flex: 0 0 200px;
  background: #f1f5fb;
  padding: 0;
  border-right: 1px solid var(--c-border);
}
.nav-mega__brand--dark {
  background: var(--c-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 16px 22px;
  margin-bottom: 6px;
}
.nav-mega__col--dark .nav-mega__link { padding: 10px 22px; }
.nav-mega__link {
  display: block;
  padding: 9px 0;
  line-height: 100%;
  font-size: 14px;
  color: #555;
  transition: color .2s ease, padding-left .2s ease;
}
.nav-mega__link:hover { color: var(--c-primary); padding-left: 6px; }
.nav-mega__col--dark .nav-mega__link:hover {
  background: #e2eaf6;
  padding-left: 22px;
}
/* 右侧产品展示 */
.nav-mega__showcase {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 26px;
}
.nav-mega__show-img {
  width: 420px;
  border-radius: 2px;
  overflow: hidden;
}
.nav-mega__show-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-mega__showcase a{
  text-align: center;
  font-size: 14px;
  color: var(--c-primary);
  transition: color .2s ease;
  display: block;
}

/* =====================================================================
   BLOCK: page-hero 页面主视觉
   ===================================================================== */
.page-hero {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero--lg { height: 860px; }
.page-hero--sm { height: 320px; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 14, 38, .45) 0%,
    rgba(8, 14, 38, .20) 42%,
    rgba(8, 14, 38, .55) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.page-hero__logo {
  height: 58px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}
.page-hero__title {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 6px;
  margin: 0;
}
.page-hero__subtitle {
  font-size:15px;
  letter-spacing: 3px;
  opacity: .85;
  margin-top: 8px;
}
@media (max-width:767px) {
  .page-hero{
    height: 180px;
  }
}
/* =====================================================================
   BLOCK: site-breadcrumb 面包屑（命名空间避免与 Bootstrap .breadcrumb 冲突）
   ===================================================================== */
.site-breadcrumb {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.site-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--c-muted);
}
.site-breadcrumb__link { color: #666; }
.site-breadcrumb__link:hover { color: var(--c-primary); }
.site-breadcrumb__sep { color: #c2cad6; }
.site-breadcrumb__current { color: var(--c-primary); }

/* =====================================================================
   BLOCK: subnav 子导航 / Tabs
   ===================================================================== */
.subnav {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.subnav__list {
  display: flex;
  gap: 38px;
  flex-wrap: nowrap;                       /* 强制单行，超出则横向滚动 */
  overflow-x: auto;                        /* 容器横向滚动 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;                   /* Firefox 隐藏滚动条 */
}
.subnav__list::-webkit-scrollbar { display: none; }   /* WebKit 隐藏滚动条 */
.subnav__list > li { flex: 0 0 auto; }     /* 子项不收缩，保持原宽 */
.subnav__link {
  position: relative;
  display: inline-block;
  white-space: nowrap;                     /* 文本不换行，避免折行 */
  padding: 18px 0;
  font-size: 16px;
  color: #555;
  transition: color .2s ease;
}
/* 下划线：从中间向两面渐进展开（transform-origin:center + scaleX） */
.subnav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.subnav__link:hover { color: var(--c-primary); }
.subnav__link--active {
  color: var(--c-primary);
  font-weight: 600;
}
.subnav__link:hover::after,
.subnav__link--active::after { transform: scaleX(1); }
/* 修饰符：分隔线变体（产品中心品牌筛选：居中 + 竖向分隔） */
.subnav--divided .subnav__list { justify-content: center; }
.subnav--divided .subnav__link {
  border-bottom: none;
  padding: 16px 30px;
  border-right: 1px solid var(--c-border);
}
.subnav--divided .subnav__link:last-child { border-right: none; }
.subnav--divided .subnav__link--active { border-bottom: none; color: var(--c-primary); }

/* =====================================================================
   BLOCK: section 内容区块
   ===================================================================== */
.section { padding: 64px 0; }
.section--gray { background: var(--c-bg); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0;
}
.section__title-en {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9aa6b4;
  margin-top: 6px;
}
.section__lead {
  font-size: 15px;
  color: var(--c-muted);
  max-width: 640px;
  margin: 10px auto 0;
  line-height: 1.9;
}

/* =====================================================================
   BLOCK: block-title 区块标题（带左侧竖条 + 英文副标，详情页复用）
   ===================================================================== */
.block-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 34px;
}
.block-title--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.block-title__text {
  position: relative;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0;
  padding-left: 16px;
}
.block-title__text::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--c-primary);
}
.block-title--center .block-title__text { padding-left: 0; }
.block-title--center .block-title__text::before { display: none; }
.block-title__en {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9aa6b4;
}

/* =====================================================================
   BLOCK: ui-btn 按钮（独立命名，避免与 Bootstrap .btn 冲突）
   ===================================================================== */
.ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s ease;
}
.ui-btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.ui-btn--outline:hover { background: var(--c-primary); color: #fff; }
.ui-btn--light { border-color: #fff; color: #fff; }
.ui-btn--light:hover { background: #fff; color: var(--c-primary); }
.ui-btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.ui-btn--primary:hover { background: var(--c-primary-light); border-color: var(--c-primary-light); }
.ui-btn--green { background: #2e9e4f; border-color: #2e9e4f; color: #fff; }
.ui-btn--green:hover { background: #258a43; border-color: #258a43; }

/* =====================================================================
   BLOCK: media-ph 媒体占位（渐变 + 居中图标，供卡片缩略图复用）
   差异仅在于色相，使用修饰符
   ===================================================================== */
.media-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .9);
  font-size: 40px;
  background: linear-gradient(135deg, #2E5FAC, #1B3A6B);
}
.media-ph--purple { background: linear-gradient(135deg, #7b3ff2, #3a1d6e); }
.media-ph--green  { background: linear-gradient(135deg, #1fd07a, #0c5a3a); }
.media-ph--teal   { background: linear-gradient(135deg, #2bb6c4, #14586b); }
.media-ph--amber  { background: linear-gradient(135deg, #f4b740, #b9791a); }
.media-ph--rose   { background: linear-gradient(135deg, #ff6fae, #a12569); }
.media-ph--slate  { background: linear-gradient(135deg, #5b6b85, #2a3346); }
.media-ph--blue   { background: linear-gradient(135deg, #3563c7, #1B3A6B); }
/* 占位块内承载真实图片时，铺满并裁切（不影响纯图标占位） */
.media-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =====================================================================
   BLOCK: news-card 新闻动态卡片
   ===================================================================== */
.news-card {
  background: #fff;
  border: 1px solid var(--c-border);
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 58, 107, .12);
}
.news-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.news-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card__img { transform: scale(1.06); }
.news-card__date {
  position: absolute;
  top: 0; left: 0;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
}
.news-card__body { padding: 16px 18px; }
.news-card__title { font-size: 16px; font-weight: 600; color: #222; margin: 0 0 6px; }
.news-card__caption { font-size: 13px; color: var(--c-muted); margin: 0; }

/* =====================================================================
   BLOCK: brand-card 品牌展示卡片
   ===================================================================== */
.brand-card {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 38px 24px;
  text-align: center;
  height: 100%;
  transition: all .25s ease;
}
.brand-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: 0 10px 26px rgba(27, 58, 107, .1);
}
.brand-card__logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.brand-card__logo--muted { color: #8a93a3; }
.brand-card__logo--green { color: #1aa86a; }
.brand-card__name { font-size: 15px; color: #555; }

/* =====================================================================
   BLOCK: cat-card 案例分类卡片（暗色覆盖 + 居中标题）
   ===================================================================== */
.cat-card {
  display: block;
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 2px;
}
.cat-card__media { position: absolute; inset: 0; transition: transform .4s ease; }
.cat-card:hover .cat-card__media { transform: scale(1.06); }
.cat-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .6));
  transition: background .3s ease;
}
.cat-card:hover .cat-card__overlay {
  background: linear-gradient(180deg, rgba(27, 58, 107, .5), rgba(27, 58, 107, .85));
}
.cat-card__title { font-size: 25px; font-weight: 600; }
.cat-card__title-en {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: .85;
  margin-top: 4px;
}

/* =====================================================================
   BLOCK: video-card 视频卡片
   ===================================================================== */
.video-card {
  background: #fff;
  border: 1px solid var(--c-border);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .25s ease;
}
.video-card:hover { box-shadow: 0 10px 26px rgba(27, 58, 107, .12); }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card__play i {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(27, 58, 107, .85);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card__body { padding: 14px 16px; }
.video-card__title { font-size: 15px; font-weight: 600; color: #222; margin: 0 0 6px; }
.video-card__keywords { font-size: 13px; color: var(--c-muted); }
.video-card__keywords a { color: var(--c-primary-light); }

/* =====================================================================
   BLOCK: contact-card 联系信息卡片
   ===================================================================== */
.contact-card {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 30px 24px;
  text-align: center;
  height: 100%;
}
.contact-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #eaf0fa;
  color: var(--c-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.contact-card__title { font-size: 15px; font-weight: 600; color: var(--c-primary); margin: 0 0 8px; }
.contact-card__text { font-size: 14px; color: #555; line-height: 1.8; margin: 0; }

/* =====================================================================
   BLOCK: stat 数据指标（关于我们右侧面板）
   ===================================================================== */
.stat-panel { background: var(--c-bg); padding: 30px 28px; }
.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
}
.stat:last-child { border-bottom: none; }
.stat__num {
  font-size: 34px;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
}
.stat__num span { font-size: 18px; font-weight: 600; }
.stat__label { font-size: 14px; color: #666; margin-top: 6px; }
.stat__icon { font-size: 26px; color: var(--c-primary-light); }

/* =====================================================================
   BLOCK: feature 首页产品特性区块（图文左右交替）
   ===================================================================== */
.feature {
  display: flex;
  align-items: center;
  gap: 56px;
}
.feature--reverse { flex-direction: row-reverse; }
.feature__media {
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
}
.feature__body { flex: 1; }
.feature__title { font-size: 28px; font-weight: 700; color: var(--c-primary); margin: 0 0 14px; }
.feature__desc { font-size: 15px; color: #555; line-height: 1.9; margin: 0 0 22px; }

/* =====================================================================
   BLOCK: pagination 分页（ul.pagination > li > a）
   ===================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.pagination li { display: inline-flex; }
.pagination li a {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s ease;
}
.pagination li a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.pagination li.active a {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  cursor: default;
}

/* =====================================================================
   BLOCK: search-overlay 全站搜索弹窗（居中 + 页面变暗）
   ===================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1020;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22vh 16px 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-panel {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 6px;
  padding: 24px 24px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  transform: translateY(-14px);
  transition: transform .25s ease;
}
.search-overlay.is-open .search-panel { transform: translateY(0); }
.search-panel__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font-size: 16px;
  color: #333;
  background: #f4f6f8;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  outline: none;
}
.search-panel__input:focus { border-color: var(--c-primary); background: #fff; }
.search-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
.search-panel__btn {
  min-width: 92px;
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border: 1px solid #cfd6e0;
  border-radius: 4px;
  background: #eef1f5;
  color: #555;
  cursor: pointer;
  transition: all .2s ease;
}
.search-panel__btn:hover { background: #e2e7ee; }
.search-panel__btn--primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.search-panel__btn--primary:hover { background: var(--c-primary-light); }

/* =====================================================================
   BLOCK: site-footer 页脚
   ===================================================================== */
.site-footer { background: var(--c-footer); color: #cdd8ee; }
.site-footer__top { padding: 50px 0 0; }
.site-footer__logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.site-footer__about {
  font-size: 13px;
  line-height: 1.8;
  color: #aebde0;
  max-width: 260px;
}
 
.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 13px 3px; /* 上下间距、左右间距 */
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.site-footer__nav ul li {
}
.site-footer__nav .linkA {
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  display: block;
}
.site-footer__nav .linkA:hover {
  opacity: 0.8;
}
/* 移动端适配：改成一列 */
@media(max-width:768px){
  .site-footer__nav ul { 
    text-align: center;
    align-items: center; /* 垂直居中对齐 */
    justify-items: center; /* 水平单元格内居中 */ 
  }
  .site-footer__nav .linkA {
    font-size: 15px;
  }
}



.site-footer__contact { font-size: 13px; line-height: 1.9; }
.site-footer__contact-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.site-footer__qr {
  width: 96px; height: 96px;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
}
.site-footer__bottom {
  background: var(--c-footer-bottom);
  padding: 16px 0;
  font-size: 12px;
  color: #9fb0d6;
  text-align: center;
}

/* =====================================================================
   BLOCK: chat-fab 悬浮客服按钮（全站浮动）
   ===================================================================== */
.chat-fab {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(27, 58, 107, .4);
  z-index: 1040;
  cursor: pointer;
  border: none;
  transition: background .2s ease;
}
.chat-fab:hover { background: var(--c-primary-light); }

/* =====================================================================
   BLOCK: map-ph 地图占位（联系我们页）
   ===================================================================== */
.map-ph { 
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b4;
  font-size: 14px;
}

/* =====================================================================
   BLOCK: prod-card 产品网格卡片（产品列表页复用）
   差异仅在于占位色相，沿用 .media-ph 修饰符
   ===================================================================== */
.prod-card {
  background: #fff;
  border: 1px solid var(--c-border);
  overflow: hidden;
  height: 100%;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 58, 107, .12);
}
.prod-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.prod-card__body { padding: 16px 18px 0; }
.prod-card__name { font-size: 16px; font-weight: 600; color: #222; margin: 0; }
.prod-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--c-border);
  color: var(--c-primary);
  font-size: 14px;
  transition: color .2s ease, gap .2s ease;
}
.prod-card__link i { font-size: 12px; transition: transform .2s ease; }
.prod-card__link:hover { color: var(--c-primary-light); gap: 10px; }
.prod-card__link:hover i { transform: translateX(3px); }

/* =====================================================================
   BLOCK: side-menu 侧边分类菜单（产品列表页复用）
   三层分类树：item(一级) > sub(二级) > sub2(三级)，手风琴展开
   ===================================================================== */
.side-menu { background: #fff; border: 1px solid var(--c-border); overflow: hidden; }
.side-menu__head {
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px;
}
/* 通用：可展开项的箭头 */
.side-menu__caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #a7b0bd;
  transition: transform .25s ease, color .2s ease;
}

/* ---- 第 1 层：item ---- */
.side-menu__tree { list-style: none; margin: 0; padding: 0; }
.side-menu__item { border-bottom: 1px solid var(--c-border); }
.side-menu__item:last-child { border-bottom: none; }
.side-menu__link {
  position: relative;
  display: block;
  padding: 14px 38px 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  transition: all .2s ease;
}
.side-menu__link:hover { background: var(--c-bg); color: var(--c-primary); }
.side-menu__item--open > .side-menu__link .side-menu__caret {
  transform: translateY(-50%) rotate(90deg);
  color: var(--c-primary);
}
.side-menu__link--active {
  background: var(--c-bg);
  color: var(--c-primary);
  border-left: 3px solid var(--c-primary);
  padding-left: 17px;
}

/* ---- 第 2 层：sub ---- */
.side-menu__sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fafbfc;
  border-top: 1px solid var(--c-border);
  animation: sideMenuFade .25s ease;
}
.side-menu__item--open > .side-menu__sub { display: block; }
.side-menu__subitem { border-bottom: 1px solid #eef1f5; }
.side-menu__subitem:last-child { border-bottom: none; }
.side-menu__sublink {
  position: relative;
  display: block;
  padding: 11px 38px 11px 36px;
  font-size: 14px;
  color: #555;
  transition: all .2s ease;
}
.side-menu__sublink:hover { background: #f0f4f9; color: var(--c-primary); }
.side-menu__subitem--open > .side-menu__sublink .side-menu__caret {
  transform: translateY(-50%) rotate(90deg);
  color: var(--c-primary);
}
.side-menu__sublink--active {
  color: var(--c-primary);
  font-weight: 600;
  background: #eef3fa;
}

/* ---- 第 3 层：sub2 ---- */
.side-menu__sub2 {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f3f5f8;
  animation: sideMenuFade .25s ease;
}
.side-menu__subitem--open > .side-menu__sub2 { display: block; }
.side-menu__sub2link {
  display: block;
  padding: 9px 20px 9px 52px;
  font-size: 13px;
  color: #667;
  border-bottom: 1px dashed #e3e8ef;
  transition: all .2s ease;
}
.side-menu__sub2link:hover { background: #e8eef6; color: var(--c-primary); }
.side-menu__sub2link--active {
  color: var(--c-primary);
  font-weight: 600;
  background: #e3ebf5;
}

/* ---- 默认折叠：仅“当前栏目所在分支”自动展开，其余点击展开（桌面与移动端一致） ----
   说明：模板只为当前分支的 <li> 加 --active（不再硬编码 --open），
   因此整棵树默认收起；当“当前栏目或其子栏目为当前”时，对应分支自动展开。*/
.side-menu__item--active > .side-menu__sub { display: block; }
.side-menu__item--active > .side-menu__link .side-menu__caret {
  transform: translateY(-50%) rotate(90deg);
  color: var(--c-primary);
}

/* ---- 展开动画（用于 sub/sub2 展开时淡入） ---- */
@keyframes sideMenuFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   BLOCK: pager-nav 上/下篇导航（详情页复用）
   ===================================================================== */
.pager-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--c-border);
  padding-top: 26px;
  margin-top: 44px;
}
.pager-nav__item { flex: 1; min-width: 0; }
.pager-nav__item--next { text-align: right; }
.pager-nav__label { font-size: 13px; color: var(--c-muted); margin-bottom: 4px; }
.pager-nav__title {
  font-size: 15px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pager-nav__item:hover .pager-nav__title { color: var(--c-primary); }

/* =====================================================================
   BLOCK: form-ui 通用表单（联系页 / 详情页询价复用）
   容器宽度由各自页面命名空间控制，此处仅定义表单字段样式
   ===================================================================== */
.form-ui__row { margin-bottom: 18px; }
.form-ui__label {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}
.form-ui__input,
.form-ui__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d6dde7;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-ui__textarea { resize: vertical; min-height: 130px; }
.form-ui__input:focus,
.form-ui__textarea:focus {
  outline: none;
  border-color: var(--c-primary-light);
  box-shadow: 0 0 0 3px rgba(46, 95, 172, .12);
}
.form-ui__actions { margin-top: 6px; }

/* =====================================================================
   响应式：导航折叠（移动端）
   ===================================================================== */
@media (max-width: 991.98px) {
  .site-header__toggle { display: block; }
  .site-header__actions { gap: 12px; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  }
  .site-header--open .site-nav { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; padding: 6px 0; }
  .site-nav__link::after { display: none; }
  .site-nav__link--active { background: var(--c-bg); }

  /* —— 移动端手风琴导航：默认收起，点击展开（与桌面 hover 互不干扰）—— */
  .site-nav__item { height: auto; }            /* 解除桌面固定高度，允许内容展开 */
  .site-nav__item--has-dropdown .site-nav__dropdown,
  .site-nav__item--mega .nav-mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;                             /* 默认收起 */
    padding: 0;
  }
  .site-header--open .site-nav__item--open > .site-nav__dropdown,
  .site-header--open .site-nav__item--open > .nav-mega {
    display: block;
    animation: navAccordion .25s ease;
  }
  @keyframes navAccordion { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }


  /* 主类行：左右布局，文字居左，caret 作为展开按钮居右 */
  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--c-primary) !important;
    padding: 14px 22px;
  }
  .site-nav__caret {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    color: var(--c-primary-light);
    transition: transform .25s ease;
  }
  .site-nav__item--open > .site-nav__link .site-nav__caret { transform: rotate(180deg); }

  /* 子类：缩进表示层级，分隔线区分 */
  .site-nav__dropdown-link {
    display: block;
    padding: 12px 22px 12px 42px;
    font-size: 14px;
    color: #555;
    background: #fafbfc;
    border-top: 1px solid #eef2f7;
  }
  .site-nav__dropdown-link:hover { color: var(--c-primary); background: var(--c-bg); }

  /* —— Mega 移动端：品牌列折叠（3 级：产品中心 → 品牌 → 具体分类）—— */
  .nav-mega__grid { flex-direction: column; }
  .nav-mega__col {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 0;
    background: #fafbfc;
  }
  .nav-mega__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    font-weight: 700;
    color: var(--c-primary);
    cursor: pointer;
  }
  .nav-mega__brand::after {                     /* 右侧折叠箭头（CSS 三角形，不依赖图标字体） */
    content: "";
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--c-primary-light);
    transition: transform .25s ease;
  }
  .nav-mega__col--open > .nav-mega__brand::after { transform: rotate(180deg); }
  .nav-mega__col .nav-mega__link {
    display: none;
    padding: 10px 22px 10px 42px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #eef2f7;
  }
  .nav-mega__col--open .nav-mega__link { display: block; }
  .nav-mega__col--dark { flex: none; background: #fafbfc; }
  .nav-mega__brand--dark { background: none; color: var(--c-primary); padding: 12px 22px; }
  .nav-mega__col--dark .nav-mega__link { display: none; padding: 9px 22px 9px 42px; }
  .nav-mega__col--dark.nav-mega__col--open .nav-mega__link { display: block; }
  .nav-mega__showcase { display: none; }        /* 移动端隐藏展示图，保持简洁 */

  .subnav__list { gap: 22px; overflow-x: auto; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feature, .feature--reverse { flex-direction: column; gap: 24px; }
  .page-hero__title { font-size: 30px; letter-spacing: 3px; }
}

@media (max-width: 575.98px) {
  .section { padding: 44px 0; }
  .site-footer__nav { gap: 28px; flex-wrap: wrap; }
}

/* Persistent quick-contact rail rendered by the shared footer. */
.quick-contact {
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    right: 20px;
    z-index: 1050;
}

.quick-contact-panel {
    background: #fff;
    border: 1px solid #dce3e8;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(8, 41, 64, .18);
    overflow: hidden;
    transition: max-height .25s ease, opacity .2s ease, transform .25s ease;
}

.quick-contact-item,
.quick-contact-toggle {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e3e8ec;
    color: #3e474d;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: 12px;
    gap: 4px;
    height: 66px;
    justify-content: center;
    line-height: 1.2;
    padding: 0;
    text-decoration: none;
    width: 72px;
}

.quick-contact-item:hover,
.quick-contact-toggle:hover {
    background: #f1f8fb;
    color: var(--blue);
}

.quick-contact-item .iconfont,
.quick-contact-toggle .iconfont {
    font-size: 21px;
    line-height: 1;
}

.quick-contact-toggle {
    border-bottom: 0;
    height: 56px;
}

.quick-contact-grid-icon {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(2, 7px);
}

.quick-contact-grid-icon i {
    border: 1.5px solid currentColor;
    border-radius: 2px;
    display: block;
    height: 7px;
    width: 7px;
}

.quick-contact-chat {
    align-items: center;
    background: #4a90e2;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 13px rgba(8, 41, 64, .22);
    color: #fff;
    display: flex;
    height: 62px;
    justify-content: center;
    margin: 0 auto;
    text-decoration: none;
    width: 62px;
}

.quick-contact-chat .iconfont { font-size: 29px; line-height: 1; }
.quick-contact-chat:hover { background: #0789cc; color: #fff; }

.wechat-support-modal[hidden] { display: none; }
.wechat-support-modal { align-items: center; display: flex; inset: 0; justify-content: center; position: fixed; z-index: 1200; }
.wechat-support-backdrop { background: rgba(3, 23, 39, .62); inset: 0; position: absolute; }
.wechat-support-dialog { background: #fff; border-radius: 10px; box-shadow: 0 22px 60px rgba(0, 0, 0, .28); color: #35414a; max-width: 630px; padding: 29px 44px 34px; position: relative; width: min(90vw, 630px); z-index: 1; }
.wechat-support-close { background: transparent; border: 0; color: #4c5962; cursor: pointer; font-size: 25px; line-height: 1; padding: 8px; position: absolute; right: 15px; top: 12px; }
.wechat-support-close:hover { color: var(--blue); }
.wechat-support-dialog h2 { color: #264c36; font-size: 25px; font-weight: 500; margin: 0 0 17px; }
.wechat-support-content { align-items: center; display: grid; gap: 32px; grid-template-columns: 190px minmax(0, 1fr); }
.wechat-support-content p { color: #4b545b; font-size: 16px; line-height: 1.55; margin: 0; }
.wechat-support-content p a { color: #0789cc; text-decoration: none; }
.wechat-support-content p a:hover { text-decoration: underline; }
.wechat-qr-image { display: block; height: 190px; object-fit: contain; width: 190px; }

.quick-contact.is-collapsed .quick-contact-panel {
    overflow: visible;
}

.quick-contact.is-collapsed .quick-contact-item {
    display: none;
}

.quick-contact.is-collapsed .quick-contact-toggle {
    border: 1px solid #dce3e8;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(8, 41, 64, .18);
}

.visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
