/* ============================================================
   cases.html 应用案例页 独立样式文件
   存放位置：css 文件夹
   说明：本文件仅包含应用案例页主体内容样式
   ============================================================ */
.cs_main_box {
  display: flex;
  gap: 40px;
}
/* ---------- 分类标签（居中，选中项蓝色文字 + 蓝色下划线） ---------- */
.cs_tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}
.cs_tab_item {
  width: 305px;
  height: 48px;
  position: relative;
  padding-left: 36px;
  padding-right: 24px;
  background: none;
  border: none;
  color: #333333;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 400;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs_tab_item:hover {
  border-radius: 24px;
  color: var(--text-active-color);
  background-color: #fff;
}
.cs_tab_item.active {
  border-radius: 24px;
  color: var(--text-active-color);
  background-color: #fff;
  font-weight: 500;
}
/* .cs_tab_item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  border-radius: 2px;
  background: var(--text-active-color);
} */

/* ---------- 案例列表（3 列网格） ---------- */
.cs_grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs_card {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 卡片图片 */
.cs_card_img {
  /* 不能写固定 315px：3 列网格在 1360 以下每张卡不足 315，图会溢出被裁角 */
  width: auto;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
  border-radius: 20px;
  background-color: #e5e5e5;
}
.cs_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 卡片文字（参考图样式：居中排版） */
.cs_card_body {
  text-align: center;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.cs_card_cat {
  font-size: 12px;
  color: #fff;
  background: var(--text-active-color);
  border: 1px solid var(--text-active-color);
  border-radius: 15px;
  padding: 0 14px;
  margin-bottom: 16px;
  display: inline-block;
  letter-spacing: 1px;
  height: 20px;
}
.cs_card_title {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #000000;
  font-weight: 600;
  margin-bottom: 24px;
}
.cs_card_sub {
  margin: 6px 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #7a94ad;
}
.cs_card_desc {
  margin: 6px 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #999999;
  line-height: 1.7;
}

/* ---------- 响应式 ---------- */
/* 992 以下：侧边分类改为顶部横向滚动胶囊，列表在下 */
@media (max-width: 992px) {
  .cs_main_box {
    flex-direction: column;
    gap: 20px;
  }
  .cs_tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .cs_tabs::-webkit-scrollbar {
    display: none;
  }
  .cs_tab_item {
    flex: 0 0 auto;
    width: auto;
    height: 40px;
    gap: 6px;
    padding: 0 16px;
    border-radius: 20px;
    background: #fff;
    font-size: 15px;
    white-space: nowrap;
  }
  .cs_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cs_grid {
    grid-template-columns: 1fr;
  }
  .cs_card_title {
    font-size: 16px;
    margin-bottom: 16px;
  }
}
@media (max-width: 540px) {
  .cs_tab_item {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }
}
