/* 分类图标容器 - 图标本体不画背景，由外层 wrap 承载 */
.cat-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.cat-icon-wrap .cat-fa-icon,
.cat-icon-wrap .cat-auto-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.cat-icon-wrap .cat-fa-icon::before {
  display: block;
  line-height: 1;
}

.cat-icon-wrap .cat-icon-img {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* 顶部横条 - 蓝色圆角方块 + 白色图标 */
.pro_lllll ul li a {
  line-height: 1.4;
}

.pro_lllll ul li a p {
  margin: 8px 0 0;
  padding: 0;
  line-height: 1.4;
  font-size: 15px;
}

.pro_lllll .cat-icon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: linear-gradient(180deg, #0078cc 0%, #0068B6 100%);
  box-shadow: 0 0 10px 0 #cecece;
  transition: background 0.25s ease;
}

.pro_lllll .cat-icon-wrap .cat-fa-icon,
.pro_lllll .cat-icon-wrap .cat-auto-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.pro_lllll .cat-icon-wrap .cat-fa-icon {
  font-weight: normal;
  font-size: 26px;
}

.pro_lllll .cat-icon-wrap .cat-fa-icon::before {
  display: block;
  line-height: 1;
}

.pro_lllll .cat-icon-wrap .cat-icon-img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.pro_lllll ul li a:hover .cat-icon-wrap,
.pro_lllll ul .on a .cat-icon-wrap {
  background: #00AA49;
}

/* 左侧分类列表 — 纯 CSS 双列网格（不用 Swiper 位移） */
.product .gallery-thumbs2 .swiper-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100% !important;
  margin-top: 50px;
  transform: none !important;
  flex-wrap: unset;
  height: auto !important;
  overflow: visible;
}

.product .gallery-thumbs2 {
  overflow: visible !important;
}

.product .gallery-thumbs2 .swiper-slide {
  width: 100% !important;
  height: 70px !important;
  margin: 0 !important;
  box-sizing: border-box;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  overflow: visible;
}

.product .gallery-thumbs2 .swiper-slide:hover {
  z-index: 100;
}

.product .gallery-thumbs2 .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  position: relative;
}

.pro-nav .swiper-container .swiper-slide p {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 12px !important;
  margin: 0 !important;
  height: 70px !important;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.pro-nav .swiper-container .swiper-slide span.cat-icon-wrap,
.pro-nav .swiper-container .swiper-slide .cat-icon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  margin: 0 10px 0 0 !important;
  border-radius: 10px;
  background: #eef4fa;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
  z-index: 2;
  vertical-align: middle;
}

.pro-nav .swiper-container .swiper-slide .cat-icon-wrap .cat-fa-icon,
.pro-nav .swiper-container .swiper-slide .cat-icon-wrap .cat-auto-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #0068B6;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.pro-nav .swiper-container .swiper-slide .cat-icon-wrap .cat-fa-icon {
  font-weight: normal;
  font-size: 20px;
}

.pro-nav .swiper-container .swiper-slide .cat-icon-wrap .cat-fa-icon::before {
  display: block;
  line-height: 1;
}

.pro-nav .swiper-container .swiper-slide .cat-icon-wrap .cat-icon-img {
  display: block;
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
  margin: 0 auto;
  filter: none;
}

.pro-nav .swiper-container .swiper-slide:hover .cat-icon-wrap,
.product .gallery-thumbs2 .swiper-slide-thumb-active .cat-icon-wrap {
  background: rgba(255, 255, 255, 0.18);
}

.pro-nav .swiper-container .swiper-slide:hover .cat-icon-wrap .cat-fa-icon,
.pro-nav .swiper-container .swiper-slide:hover .cat-icon-wrap .cat-auto-icon,
.product .gallery-thumbs2 .swiper-slide-thumb-active .cat-icon-wrap .cat-fa-icon,
.product .gallery-thumbs2 .swiper-slide-thumb-active .cat-icon-wrap .cat-auto-icon {
  color: #fff;
}

.pro-nav .swiper-container .swiper-slide:hover .cat-icon-wrap .cat-icon-img,
.product .gallery-thumbs2 .swiper-slide-thumb-active .cat-icon-wrap .cat-icon-img {
  filter: brightness(0) invert(1);
}

.pro-nav .swiper-container .swiper-slide span.cat-label {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2 !important;
  text-align: left;
  align-self: center;
}

.pro-nav .swiper-container .swiper-slide:hover span.cat-label,
.product .gallery-thumbs2 .swiper-slide-thumb-active span.cat-label {
  color: #fff;
}

.product .gallery-thumbs2 .swiper-slide:hover span {
  border-right: none;
}

/* 二级分类 — 悬停时在分类项右侧弹出 */
.product .gallery-thumbs2 .swiper-slide ul.sub {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 160px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #999;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product .gallery-thumbs2 .swiper-slide ul.sub li {
  margin: 0;
  padding: 0;
  height: auto;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.product .gallery-thumbs2 .swiper-slide ul.sub li:last-child {
  border-bottom: none;
}

.product .gallery-thumbs2 .swiper-slide ul.sub li a {
  display: block;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product .gallery-thumbs2 .swiper-slide ul.sub li a:hover {
  background: #31B25F;
  color: #fff;
}

.product .gallery-thumbs2 .swiper-slide:hover ul.sub,
.product .gallery-thumbs2 .swiper-slide ul.sub:hover {
  display: block !important;
}
