/* 产品中心二级 mega 菜单（原站内联样式） */
.header-nav-content-product-content {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  width: 75%;
  margin: auto;
}
.header-nav-product-mega .header-nav-content-product {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  min-height: 36rem;
}
.header-nav-product-mega .pro-mega-left {
  width: 24%;
  flex-shrink: 0;
  background: #f5f6f7;
  padding: 1.5rem 0;
}
.header-nav-product-mega .pro-mega-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav-product-mega .pro-mega-cat {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav-product-mega .pro-mega-cat a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.4rem;
  color: #0e1f23;
  text-decoration: none;
  transition: all .25s;
}
.header-nav-product-mega .pro-mega-cat a span {
  flex: 1;
  font-weight: 500;
}
.header-nav-product-mega .pro-mega-arrow {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-left: 1rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .7;
}
.header-nav-product-mega .pro-mega-cat:hover a,
.header-nav-product-mega .pro-mega-cat.active a {
  background: #fff;
  color: #009bb4;
}
.header-nav-product-mega .pro-mega-cat:hover .pro-mega-arrow,
.header-nav-product-mega .pro-mega-cat.active .pro-mega-arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009bb4' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  opacity: 1;
}
.header-nav-product-mega .pro-mega-right {
  flex: 1;
  padding: 2.4rem 0 3.5rem 3rem;
  background: #fff;
  min-width: 0;
}
.header-nav-product-mega .pro-mega-label {
  color: #999;
  margin-bottom: 2rem;
  font-weight: 500;
}
.header-nav-product-mega .pro-mega-panel {
  display: none;
}
.header-nav-product-mega .pro-mega-panel.active {
  display: block;
}
.header-nav-product-mega .pro-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.header-nav-product-mega .pro-mega-list li {
  list-style: none;
  width: 25%;
  padding: 0 1.5rem 2.5rem;
  box-sizing: border-box;
}
.header-nav-product-mega .pro-mega-list li a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #0e1f23;
  transition: color .25s;
}
.header-nav-product-mega .pro-mega-pic {
  width: 100%;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  overflow: hidden;
  position: relative;
}
.header-nav-product-mega .pro-mega-pic img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.header-nav-product-mega .pro-mega-name {
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-nav-product-mega .pro-mega-list li a:hover {
  color: #009bb4;
}
.header-nav-product-mega .pro-mega-list li a:hover .pro-mega-pic img {
  transform: scale(1.06);
}
@media screen and (max-width: 1440px) {
  .header-nav-content-product-content {
    width: 80%;
  }
}
@media (max-width: 1200px) {
  .header-nav-product-mega .pro-mega-list li {
    width: 33.33%;
  }
}

/* ==========================================================================
   Swiper 未初始化期间的静态兜底布局
   --------------------------------------------------------------------------
   轮播由 site.client.ts 在水合完成后才初始化（app:mounted + 延时；弱网/冷缓存
   下还要先等 jQuery/Swiper 库加载）。在此之前 .swiper-slide 没有宽度约束：
   双卡轮播会渲染成整宽大卡（工程案例/相关案例卡片被撑爆、图片溢出），
   单卡 fade 轮播会把所有 slide 纵向堆叠（首屏被拉长数倍）——
   即「首次进入页面排版错乱，刷新后恢复正常」的来源。
   这里按初始化后的最终布局给 slide 预置宽度/显隐；Swiper 初始化时写入的
   内联样式优先级更高会自然覆盖，:not(.swiper-container-initialized)
   保证初始化之后这些规则完全退出、互不影响。
   ========================================================================== */

/* 双卡轮播（工程案例 / 首页解决方案 / 方案相关案例）：桌面两等分，≤640px 单卡 */
.index-our-clients-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide,
.index-solution-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide,
.other-cases-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide {
  width: calc(50% - 10px);
}
@media screen and (max-width: 640px) {
  .index-our-clients-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide,
  .index-solution-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide,
  .other-cases-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide {
    width: 100%;
  }
}

/* 单卡 fade 轮播（首页 banner / 新闻头条 / 案例主图）：
   未初始化时只保留第一张，避免整页被 slide 纵向堆满 */
.index-banner-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide,
.news-information-headlines-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide,
.cases-big-pic-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide {
  width: 100%;
}
.index-banner-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide:not(:first-child),
.news-information-headlines-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide:not(:first-child),
.cases-big-pic-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide:not(:first-child) {
  display: none;
}

/* 关于我们：资质与荣誉 5 卡一行（≤640px 两卡） */
.qualifications-and-honors-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide {
  width: calc(20% - 16px);
}
@media screen and (max-width: 640px) {
  .qualifications-and-honors-swiper:not(.swiper-container-initialized) > .swiper-wrapper > .swiper-slide {
    width: calc(50% - 10px);
  }
}
