/*
 * 首页 Hero（Figma node 35:326）
 * 全宽 banner 400px + 左栏分类 207×394 浮于内容区左侧
 * 数据：$banner（hc_banner）/ $category（hc_category 三级树）
 */

.index-hero-wrap {
  position: relative;
  z-index: 2;
  height: 25rem;
  overflow: visible;
  background-color: #f2f5f8;
  margin-top: -1px;
}

/* ============ 全宽轮播 ============ */
.index-hero-wrap .index-hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  background-color: #e8eef5;
}

.index-hero-wrap .index-hero-banner .banner-list {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.index-hero-wrap .index-hero-banner .swiper-wrapper {
  height: 100%;
}

.index-hero-wrap .index-hero-banner .swiper-slide,
.index-hero-wrap .index-hero-banner .banner-item {
  width: 100%;
  height: 100%;
  position: relative;
  padding-bottom: 0;
}

.index-hero-wrap .index-hero-banner .banner-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.index-hero-wrap .index-hero-banner .banner-item-placeholder .banner-placeholder-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #639ef7 0%, #327fdb 55%, #1c5fa8 100%);
}

/* ============ 分类浮层（对齐 header 全部产品分类 207px） ============ */
.index-hero-wrap .index-hero-overlay {
  position: relative;
  z-index: 3;
  height: 25rem;
  pointer-events: none;
  overflow: visible;
}

.index-hero-wrap .index-aside-cate {
  position: absolute;
  top: 0.125rem;
  bottom: 0;
  left: 0;
  width: 207px;
  height: auto;
  margin-top: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  background-color: rgba(13, 35, 62, 0.8);
  border-radius: 0 0 0 7px;
  overflow: visible;
}

.index-hero-wrap .index-aside-cate .aside-cate-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.875rem 0 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.index-hero-wrap .index-aside-cate .aside-cate-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.index-hero-wrap .index-aside-cate .aside-cate-list .aside-item {
  direction: ltr;
}

.index-hero-wrap .index-aside-cate .aside-item {
  position: relative;
  background-color: transparent;
}

.index-hero-wrap .index-aside-cate .aside-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 8px;
  bottom: 9px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
}

.index-hero-wrap .index-aside-cate .aside-item .sub-menu-text {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 2.4375rem;
  padding: 0 0.1875rem 0 1.125rem;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3125rem;
  color: #ffffff;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.15s linear, color 0.15s linear;
}

.index-hero-wrap .index-aside-cate .aside-item .sub-menu-text .sub-menu-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-top: 0;
  line-height: 1.3125rem;
}

.index-hero-wrap .index-aside-cate .aside-item .sub-menu-text i {
  flex-shrink: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 0.25rem;
  margin-top: 0.1875rem;
}

.index-hero-wrap .index-aside-cate .aside-item .sub-menu-text i.hasNo {
  visibility: hidden;
}

.index-hero-wrap .index-aside-cate .aside-item:hover .sub-menu-text,
.index-hero-wrap .index-aside-cate .aside-item.is-hover .sub-menu-text {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.index-hero-wrap .index-aside-cate .aside-item:hover .sub-menu-text i,
.index-hero-wrap .index-aside-cate .aside-item.is-hover .sub-menu-text i {
  color: rgba(255, 255, 255, 0.9);
}

/* 二/三级面板容器：与左栏并列，不参与文档流撑高 */
.index-hero-wrap .index-aside-panels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 4;
}

/* ============ 二/三级 hover 面板（固定挂在 .index-aside-panels，不搬移 DOM） ============ */
.index-hero-wrap .index-aside-panels > .sub-sub-menu {
  position: absolute;
  top: 0;
  left: 207px;
  width: calc(100% - 207px);
  min-height: 0;
  max-height: 24.875rem;
  background-color: rgba(13, 35, 62, 0.8);
  box-shadow: none;
  padding: 0 1rem 0.75rem 0;
  z-index: 30;
  margin: 0;
  list-style: none;
  pointer-events: auto;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu::-webkit-scrollbar {
  width: 4px;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu::before {
  content: '';
  position: absolute;
  top: var(--hover-bridge-top, 0);
  left: -207px;
  width: 207px;
  height: 2.4375rem;
  background: transparent;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li {
  display: flex;
  align-items: flex-start;
  padding: 0 0.25rem;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li:first-child {
  min-height: 2.4375rem;
  box-sizing: border-box;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li + li {
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li .sub-sub-menu-text {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 7.5rem;
  flex-shrink: 0;
  text-align: left;
  color: #ffffff;
  line-height: 1.3125rem;
  font-size: 0.875rem;
  font-weight: bold;
  text-decoration: none;
  padding-top: 0.1875rem;
  box-sizing: border-box;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li .sub-sub-menu-text span {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li:hover .sub-sub-menu-text {
  color: #afc9e8;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li .sub-sub-menu-text i {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li .sub-sub-menu-text i.hasNo {
  visibility: hidden;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li .pop-menu {
  flex: 1;
  min-width: 0;
  padding: 0 0.5rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  line-height: 1.3125rem;
  gap: 0 0.75rem;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li:first-child .pop-menu {
  padding-top: 0.1875rem;
  box-sizing: border-box;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li .pop-menu a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 0;
  white-space: normal;
  word-break: break-word;
  font-size: 0.875rem;
  text-decoration: none;
}

.index-hero-wrap .index-aside-panels > .sub-sub-menu > li .pop-menu a:hover {
  color: #ffffff;
}

@media screen and (max-width: 1200px) {
  .index-hero-wrap {
    height: 20rem;
  }

  .index-hero-wrap .index-hero-overlay {
    height: 20rem;
  }

  .index-hero-wrap .index-aside-cate {
    top: 0.125rem;
    bottom: 0;
    height: auto;
  }

  .index-hero-wrap .index-aside-panels > .sub-sub-menu {
    max-height: 19.875rem;
    width: calc(100% - 207px);
  }
}
