/*
 * @kanway-css-index
 * 文件: css/solutions/solutions-zsolu.css
 * 层级: 单页
 * 引用页面: index.html（#home-brand .home-brand__slider）
 * 依赖: header.css, contact.css
 * 修改指引: Tab 切换 .zsolu-slider；方案卡片
 * 索引: css/00-样式文件索引.css
 */
/* Solutions page — zSolu tabbed hero (migrated from 组件集合 zj_a1) */

.solutions-zsolu-page {
  padding-bottom: 120px;
}

.solutions-zsolu-page .zSolu {
  padding: 0;
}

/*
 * 版心条带：与 .container / .navUl 内容区左右对齐（1450 外框 − 两侧各 20px 内边距）
 * 算法 = 版心外框 inset + kh-shell-pad-x，避免 Tab 条比导航/页脚各宽出 20px
 */
.zSolu {
  --zsolu-hero-height: 720px;
  --zsolu-strip-inset: max(
    var(--kh-shell-pad-x),
    calc(50vw - var(--kh-shell-max) / 2 + var(--kh-shell-pad-x))
  );
}

.zSolu .solu {
  height: var(--zsolu-hero-height);
  margin-top: 30px;
  position: relative;
}

.zSolu .solu .bd {
  position: relative;
  z-index: 10;
  height: var(--zsolu-hero-height);
}

.zSolu .solu .bd .showDiv {
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 1;
}

.zSolu .solu .bd .showDiv.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.zSolu .solu .bd .showDiv .tp {
  display: block;
  width: 100%;
  height: var(--zsolu-hero-height);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.zSolu .solu .bd .showDiv .tp--image {
  object-fit: cover;
}

.zSolu .solu .bd .showDiv .tp--video {
  object-fit: cover;
  object-position: center center;
  background: #0f2744;
}

.zSolu .solu .bd .showDiv .wz {
  text-align: center;
  position: absolute;
  left: var(--zsolu-strip-inset);
  right: var(--zsolu-strip-inset);
  width: auto;
  top: 0;
  box-sizing: border-box;
  z-index: 9;
  opacity: 0;
  padding-top: 0;
  margin: 0;
  transition: opacity 0.35s ease, padding-top 0.35s ease;
}

.zSolu .solu .bd .showDiv.is-active .wz {
  opacity: 1;
  padding-top: 140px;
}

/* 首页首屏：文案垂直居中，不用 solutions 页的顶部留白 */
#home-brand .zSolu .solu .bd .showDiv .wz,
#home-brand .zSolu .solu .bd .showDiv.is-active .wz {
  padding-top: 0;
}

.zSolu .solu .bd .showDiv .wz h5 {
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
}

.zSolu .solu .bd .showDiv .wz .w {
  font-size: 15px;
  color: #fff;
  padding-top: 20px;
  line-height: 1.65;
}

.zSolu .solu .bd .showDiv .wz .mo {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1d5198;
  color: #fff;
  line-height: 1;
  font-size: 28px;
  margin: 30px auto 0;
  transition: transform 0.35s ease, background 0.35s ease;
}

.zSolu .solu .bd .showDiv .wz .mo:hover {
  background: #fc6b00;
  color: #fff;
  transform: translateY(-6px);
}

.zSolu .solu .bd .showDiv .bg {
  background: rgba(0, 0, 0, 0.35);
  width: 100%;
  height: var(--zsolu-hero-height);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  pointer-events: none;
}

.zSolu .solu .hd {
  border-bottom: 1px solid #1d5198;
  left: var(--zsolu-strip-inset);
  right: var(--zsolu-strip-inset);
  width: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 160px;
  background: #fff;
  position: absolute;
  bottom: -80px;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.zSolu .solu .hd ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.zSolu .solu .hd li {
  flex: 1;
  min-width: 0;
  height: 160px;
  line-height: 1.35;
  border-left: 1px solid #eaeaea;
  color: #333;
  background: #fff;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 8px 0;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.zSolu .solu .hd li:first-child {
  border-left: none;
}

.zSolu .solu .hd li .zsolu-tab-icon {
  display: block;
  font-family: boxicons !important;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  color: #718096;
  transition: color 0.25s ease;
}

.zSolu .solu .hd li.on {
  color: #1d5198;
  height: 158px;
  border-bottom: 2px solid #1d5198;
}

.zSolu .solu .hd li.on .zsolu-tab-icon {
  color: #1d5198;
}

.zSolu .solu .hd li:focus-visible {
  outline: 2px solid #1d5198;
  outline-offset: -2px;
}

@media (max-width: 992px) {
  .zSolu {
    --zsolu-hero-height: 576px;
  }

  .zSolu .solu .bd .showDiv .wz {
    left: var(--kh-shell-pad-x);
    right: var(--kh-shell-pad-x);
  }

  .zSolu .solu .bd .showDiv .wz h5 {
    font-size: 26px;
  }

  .zSolu .solu .hd {
    left: var(--kh-shell-pad-x);
    right: var(--kh-shell-pad-x);
    height: auto;
    bottom: -60px;
  }

  .zSolu .solu .hd ul {
    flex-wrap: wrap;
  }

  .zSolu .solu .hd li {
    flex: 1 1 33.333%;
    height: 120px;
    font-size: 12px;
    padding-top: 16px;
  }

  .zSolu .solu .hd li .zsolu-tab-icon {
    font-size: 40px;
    margin-bottom: 8px;
  }
}

@media (max-width: 576px) {
  .zSolu .solu .hd li {
    flex: 1 1 50%;
  }
}
