/* szccm 产品列表 / 产品详情页适配补丁
   ------------------------------------------------------------------
   1) 主题色：原版 --theme 是台群红(#d0121b)，按用户要求换成舜佳首页同款深蓝
      #135f9d（取自 hjmtc 原版 85078c75*.css 的 --mrColor / --c / --primary）。
   2) hero 右侧产品轮播：产品主图 + 正文「产品实拍」图片，用原版已加载的
      Swiper 库承载，DOM 是 Swiper 8 标准结构，原版 CSS 一个字节没改。
   3) 详情页顶部：浅色 hero 上给白色导航文字加一层深蓝渐变衬底，保证可读。
   ------------------------------------------------------------------ */

:root {
  --theme: #135f9d;
}

/* szccm 全局给 a 设了深色字，首页头部的一级导航要继承菜单文字颜色（白字），
   与首页保持一致；二级菜单沿用原版 #666。 */
#c_navigation_006_P_2497-17114405842551 .p_level1Item a {
  color: inherit;
}

/* 面包屑（用户称“坐标”）原版是 60% 黑，截图里偏灰；改成纯黑提高可读性 */
.common-bread .link {
  color: #111111;
  font-weight: 500;
}
.common-bread .link:hover {
  color: var(--theme);
}

/* ---------------- hero 产品轮播 ---------------- */
.common-detail-banner .pic {
  position: relative;
}

.ne-hero-swiper {
  position: absolute;
  right: 3%;
  top: 6%;
  width: 47%;
  height: 88%;
  z-index: 2;
  overflow: hidden;
}

.ne-hero-swiper .swiper-wrapper {
  height: 100%;
}

.ne-hero-swiper .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ne-hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 所有产品图都已统一抠成透明底 800x800 PNG：
   禁止白底卡片、圆角、内边距和原实拍图的灰底，只保留极轻的落地阴影。 */
.ne-hero-swiper .ne-slide-cutout img {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  filter: drop-shadow(0 18px 22px rgba(20, 48, 92, .24));
}

.ne-hero-swiper .swiper-pagination {
  bottom: 6px;
  z-index: 3;
}

.ne-hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ffffff;
  opacity: .45;
}

.ne-hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #ffffff;
}

/* 产品图左右翻页箭头：仅 hero 轮播内部生效，不影响全站其它 Swiper */
.ne-hero-swiper .ne-hero-arrow {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 12px rgba(15, 76, 138, .2);
  z-index: 5;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.ne-hero-swiper .ne-hero-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #0f4c8a;
  border-right: 2px solid #0f4c8a;
}
.ne-hero-swiper .ne-hero-prev { left: 8px; }
.ne-hero-swiper .ne-hero-next { right: 8px; }
.ne-hero-swiper .ne-hero-prev::after { transform: translate(-40%, -50%) rotate(-135deg); }
.ne-hero-swiper .ne-hero-next::after { transform: translate(-60%, -50%) rotate(45deg); }
.ne-hero-swiper .ne-hero-arrow:hover {
  background: #0f4c8a;
  transform: scale(1.08);
}
.ne-hero-swiper .ne-hero-arrow:hover::after { border-color: #ffffff; }
.ne-hero-swiper .ne-hero-arrow.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

@media (max-width: 992px) {
  .ne-hero-swiper {
    right: 2%;
    top: 4%;
    width: 52%;
    height: 92%;
  }
}

@media (max-width: 576px) {
  .ne-hero-swiper {
    right: 0;
    top: 2%;
    width: 62%;
    height: 96%;
  }
  .ne-hero-swiper .ne-slide-cutout img {
    padding: 0 !important;
  }
  .ne-hero-swiper .ne-hero-arrow {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }
  .ne-hero-swiper .ne-hero-prev { left: 4px; }
  .ne-hero-swiper .ne-hero-next { right: 4px; }
  .ne-hero-swiper .ne-hero-arrow::after {
    width: 7px;
    height: 7px;
    border-width: 2px;
  }
}

/* ---------------- 浅色 hero 上的导航文字衬底 ---------------- */
.product-detail-page .common-detail-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(16, 48, 92, .55), rgba(16, 48, 92, 0));
  z-index: 1;
  pointer-events: none;
}

.product-detail-page .common-detail-banner .text {
  z-index: 3;
  /* 文字层铺满整个 banner，会盖住右侧轮播箭头的点击；让点击/拖拽穿透到轮播。
     视觉层级不变，文字仍显示在最上层。 */
  pointer-events: none;
}

/* ---------------- hero 标题 / 副标题 / 要点：改成黑字 ----------------
   浅蓝 hero 背景上原版是白字，对比度不足（用户截图反馈）。
   改成深灰黑字，并用极淡的白色描边保证压在浅蓝渐变上仍清晰。
   只覆盖 .ne-hero-text 内的文字，不动原版其它版式。 */
.product-detail-page .ne-hero-text .text-title {
  color: #10151c !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .75);
}

.product-detail-page .ne-hero-text .text-desc {
  color: #1d2733 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .7);
}

.product-detail-page .ne-hero-text .text-features {
  color: #1d2733 !important;
}

.product-detail-page .ne-hero-text .text-features li {
  color: #1d2733 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .7);
}

.product-detail-page .ne-hero-text .text-features li::before {
  background: #1d2733;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
}

/* ---------------- 移动端（≤768px）产品详情 hero：改为上下分布 ----------------
   原版是「左文字 + 右产品图」的左右布局（.text 绝对定位、图片浮在右侧 47%），
   移动端窄屏里文字被固定导航遮住、图文挤在一起 → 这里改成：
   产品图在上、标题/描述/要点在下，正常文档流，不再被 header 遮挡。 */
@media screen and (max-width: 768px) {
  .product-detail-page .common-detail-banner {
    display: flex;
    flex-direction: column;
    margin-top: var(--header-height);
    background: #ffffff;
  }

  .product-detail-page .common-detail-banner::before {
    display: none;
  }

  /* 背景大图移动端隐藏，避免与文字重叠 */
  .product-detail-page .common-detail-banner .pic > img {
    display: none;
  }

  .product-detail-page .common-detail-banner .pic {
    order: 1;
    width: 100%;
  }

  .product-detail-page .ne-hero-swiper {
    position: static;
    order: 2;
    width: 100%;
    height: 300px;
    margin: 0;
    overflow: visible;
  }

  .product-detail-page .ne-hero-swiper .swiper-pagination {
    bottom: 0;
  }

  .product-detail-page .common-detail-banner .ne-hero-text {
    position: static;
    order: 3;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 14px 18px 26px;
    z-index: auto;
  }

  .product-detail-page .ne-hero-text .text-title {
    width: 100%;
    font-size: 19px;
    text-shadow: none;
  }

  .product-detail-page .ne-hero-text .text-desc {
    width: 100%;
    font-size: 14px;
    margin-top: 10px;
    text-shadow: none;
  }

  .product-detail-page .ne-hero-text .text-features {
    margin-top: 12px;
    width: 100%;
    max-width: none;
  }

  .product-detail-page .ne-hero-text .text-features li {
    font-size: 13px;
    text-shadow: none;
  }
}

/* ---------------- 产品卡（列表页）：强调色由红改为站点主题蓝 ----------------
   原版 common.css 里 hover/选中态是红框 + 红标题，描述也是红色 18px；
   统一改成主题蓝 #135f9d，并把描述字号收到 13px（标题 16px 加粗，层级更清楚）。 */
.product-list .product-item:hover {
  border-color: #135f9d;
}

.product-list .product-item:hover .text .text-title {
  color: #135f9d;
}

.product-list .product-item .text .text-desc {
  color: #135f9d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

@media screen and (max-width: 768px) {
  .product-list .product-item .text .text-title {
    color: #135f9d;
  }

  .product-list .product-item .text .text-desc {
    color: #135f9d;
    font-size: 12px;
  }
}

/* 产品中心 / 产品详情 banner 分类栏：去掉「全部产品」后，
   原版固定 130px 宽度改为按文字自适应，长分类名不再挤成两行。 */
.product-list-page .common-banner .text .cate-list .cate-item,
.product-detail-page .common-banner .text .cate-list .cate-item {
  width: auto;
  min-width: 96px;
  padding-left: 20px;
  padding-right: 20px;
  white-space: nowrap;
}
