/* 案例页面 - 客户案例 */

/* 案例页面 Banner */
.cases-banner {
  position: relative;
  width: 100%;
  height: 440px;
  background-color: #fff;
  background: url('../../images/ui/cases/banner.webp') center center / cover no-repeat, #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cases-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}
.cases-banner h1 {
  position: relative;
  z-index: 1;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 4px;
}
.wj-title{
    margin-top: 50px;
}

/* 案例主体布局 */
.cases-main {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* 左侧分类导航：PC 端固定在头部下方 20px */
.cases-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--wj-header-height, 70px) + 30px);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cases-sidebar:hover {
  box-shadow: 0 6px 20px rgba(26, 100, 228, .14);
}
.cases-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cases-sidebar-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.cases-sidebar-nav li:hover,
.cases-sidebar-nav li.active {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 500;
}
.cases-sidebar-nav li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 右侧内容区 */
.cases-content {
  flex: 1;
  min-width: 0;
}

/* 分类锚点：滚动吸附时预留吸顶导航 + 公共头部高度 */
.cases-category {
  scroll-margin-top: 140px;
}

/* 分类大标题 */
.cases-category-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 24px;
  padding: 8px 20px;
  background: #f5f7fa;
  border-radius: 4px;
  width: 100%;
}
.cases-category-title img {
  width: 22px;
  height: 22px;
}

/* 单个案例卡片 */
.case-item {
  display: flex;
  gap: 30px;
  padding: 28px;
  box-shadow: 0px 0px 28px 0px rgba(26,100,228,0.16);
  border-radius: 8px;
  border: 2px solid #FFFFFF;
  margin-bottom: 30px;
  background: #fff;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* 悬浮动画：卡片浮起 + 阴影加深 + 边框高亮 */
.case-item:hover {
  cursor: pointer;
  transform: translateY(-6px);
  box-shadow: 0px 16px 36px 0px rgba(26,100,228,0.28);
  border-color: #e0ebff;
}
.case-item-info {
  flex: 1;
  min-width: 0;
}
.case-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  transition: color .3s ease;
}
.case-item:hover .case-item-title {
  color: #1a64e4;
}
.case-item-body {
  display: flex;
  gap: 30px;
  align-items: center;
}
.case-item-desc {
  flex: 1;
}
.case-desc-block {
  margin-bottom: 14px;
}
.case-desc-block h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
  margin-bottom: 8px;
}
.case-desc-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.case-desc-block ul li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}
.case-desc-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  transform: translateY(-45%);
  width: 9px;
  height: 15px;
  background: url('../../images/ui/product/cadre/zhLi.png') no-repeat center / contain;
}
.case-item-image {
  width: 280px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.case-item-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #eee;
  object-fit: cover;
  transition: transform .5s ease;
}
/* 悬浮动画：图片缓慢放大 */
.case-item:hover .case-item-image img {
  transform: scale(1.05);
}

/* type=3 纯图片案例：图片铺满整行 */
.case-item-image-only .case-item-image {
  width: 100%;
  margin-top: 18px;
}

/* type=3 图片画廊：同行 3 列展示，图片与说明上下布局 */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 0.5fr);
  gap: 132px;
  margin-top: 24px;
}

.case-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.case-gallery-image {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f8fc;
}

.case-gallery-image img {
  width: 100%;
  max-width: 320px;
  max-height: 162px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform .35s ease;
}

.case-gallery-item:hover .case-gallery-image img {
  transform: scale(1.05);
}

.case-gallery-desc {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

/* 富文本 strong 高亮（数字等） */
.case-desc-block ul li strong,
.case-gallery-desc strong {
  color: var(--wj-blue);
  font-weight: 700;
}

/* 响应式 */
@media (max-width: 992px) {
  .cases-main {
    display: block; /* 取消 flex，让 sticky 子元素正常吸顶 */
  }
  .cases-sidebar {
    width: 100%;
    position: sticky;
    top: var(--wj-header-height, 70px); /* 留出公共头部区域，避免遮挡 */
    transform: none;
    z-index: 30;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 0 0 rgba(26, 100, 228, 0);
    transition: box-shadow .35s ease;
  }
  .cases-sidebar.is-stuck {
    box-shadow: 0 4px 16px rgba(26, 100, 228, .16);
  }
  .cases-sidebar-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cases-sidebar-nav li {
    flex: 1;
    justify-content: center;
    margin-bottom: 0;
    white-space: nowrap;
  }
  .case-item {
    flex-direction: column;
  }
  .case-item-image {
    width: 100%;
  }
  .case-item-body {
    flex-direction: column;
  }
  .case-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 手机端：公共头部高度 62px，导航吸顶时留出头部区域 */
@media (max-width: 820px) {
  .cases-sidebar {
    top: 62px;
  }
  .cases-category {
    scroll-margin-top: 130px; /* 62 头部 + 60 吸顶导航 + 间距 */
  }
}

/* 手机端：案例 banner 高度与其他页面（关于我们/下载中心）一致 */
@media (max-width: 600px) {
  .cases-banner {
    height: 230px;
  }
}


