/* 客户案例页面样式 - 按 Figma 设计稿重构 */

/* 覆盖全局 body 底部 padding，消除 footer 下方留白 */
body {
  padding-bottom: 0;
}

.footer {
  position: relative;
}

/* 客户案例导航高亮 */
.nav>li>a[href*="customer_case"] {
  color: #2b8cff;
}

/* ===== Banner 标题区 ===== */
.case-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff url('../images/customer_case/casebg.png') no-repeat center top / 100%;
  z-index: 1;
}


/* Banner 标题文字内容 */
.case-banner-content {
  width: 100%;
  display: flex;
  height: 118px;
  padding: 40px 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.case-banner-title {
  font-size: 40px;
  font-weight: 700;
  color: #1D2129;
  text-align: center;
  margin: 0 0 10px 0;
  line-height: 1.45;
}

.case-banner-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #1D2129;
  text-align: center;
  margin: 0;
  line-height: 1.45;
}

/* ===== 主体内容区 ===== */
.case-main {
  width: 100%;
  padding: 0 0 80px;
}


/* ===== 案例列表 - 3列网格 ===== */
.case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 案例卡片 ===== */
.case-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.case-card {
  padding: 20px;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  /* 参考图：轻柔自然阴影，非蓝色调 */
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
}

/* 卡片图片区 */
.case-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.case-card:hover .case-card-img img {
  transform: scale(1.05);
}

.case-card-body {
  padding: 20px 0 18px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 仅有标题、无副标题与日期时，图片区更高 + 标题垂直居中 */
.case-card-body--title-only {
  justify-content: center;
  align-items: flex-start;
  padding: 16px 0;
}

.case-card-body--title-only .case-card-title {
  height: auto;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 贴图卡片：图片区高度加大，视觉更饱满；从顶部裁切以保留顶部文字 */
.case-card:has(.case-card-body--title-only) .case-card-img {
  height: 260px;
}

.case-card:has(.case-card-body--title-only) .case-card-img img {
  object-position: top;
}

/* tag 小标签行 */
.case-card-tag {
  display: block;
  font-size: 12px;
  color: #86909C;
  line-height: 1.5;
  margin-bottom: 6px;
}

.case-card-title {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: #1D2129;
  line-height: 1.6;
  margin: 10px 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card-desc {
  font-size: 14px;
  font-weight: 400;
  color: #C9CDD4;
  line-height: 1.6;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card-date {
  font-size: 13px;
  font-weight: 400;
  color: #86909C;
  text-align: right;
  display: block;
  line-height: 1.43;
}

/* ===== 分页器 ===== */
.case-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
  width: 310px;
  margin-left: auto;
  margin-right: auto;
}

.page-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1D2129;
  background: #F2F3F5;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.page-btn:hover {
  background: #e0e4ee;
}

.page-btn.active {
  background: #0075CF;
  color: #FFFFFF;
}

.page-btn.page-ellipsis {
  cursor: default;
  background: #F2F3F5;
  color: #1D2129;
}

.page-btn.page-ellipsis:hover {
  background: #F2F3F5;
}

/* ===== 响应式适配 ===== */
@media (max-width: 1280px) {
  .case-list {
    max-width: 960px;
    gap: 30px;
  }
}

@media (max-width: 1024px) {
  .case-banner {
    height: 320px;
  }

  .case-banner-content {
    padding-top: 50px;
  }

  .case-banner-title {
    font-size: 32px;
  }

  .case-banner-subtitle {
    font-size: 16px;
  }

  .case-main {
    margin-top: -160px;
  }

  .case-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .case-banner {
    height: 220px;
  }

  .case-banner-content {
    padding-top: 40px;
  }

  .case-banner-title {
    font-size: 24px;
  }

  .case-banner-subtitle {
    font-size: 14px;
  }

  .case-main {
    margin-top: -100px;
    padding: 0 0 50px;
  }

  .case-list {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 20px;
  }

  .case-card-img {
    height: 180px;
  }

  .case-pagination {
    width: auto;
    flex-wrap: wrap;
    padding: 0 16px;
  }


}