@charset "utf-8";

/* ==========================================================
   anli_css.css
   模块：客户案例列表页 + 客户案例详情页二级Banner
   作用：
   1. 控制客户案例列表页、详情页二级Banner；
   2. 控制客户案例列表区域、案例卡片与响应式布局。
   ========================================================== */

/* ==========================================================
   客户案例列表页、详情页共用二级Banner
   PC端图片：/banner/eb2.jpg
   列表页移动端图片：/banner/eb2-mobile.jpg
   移动端设计尺寸：750 × 400px
   ========================================================== */

.case-inner-banner,
.case-detail-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 28vw, 430px);
  min-height: 280px;
  overflow: hidden;
  background: #1e3757;
}

.case-inner-banner__image,
.case-detail-banner__image {
  width: 100%;
  height: 100%;
  background-image: url("/banner/eb2.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* ==========================================================
   页面基础区域
   ========================================================== */

.case-page {
  width: 100%;
  background: #f3f3f3;
}

.case-list {
  width: 100%;
  background: #f3f3f3;
  padding: 52px 0 74px;
}

.case-list__container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ==========================================================
   案例列表三列布局
   PC端：每行3个案例
   容器宽度与专家列表保持一致
   ========================================================== */

.case-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
  width: 100%;
  max-width: 1548px;
  margin: 0 auto;
  padding: 0;
}


/* ==========================================================
   案例卡片
   ========================================================== */

.case-item {
  overflow: hidden;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.case-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 39, 122, 0.14);
}


/* ==========================================================
   第1层：项目封面图片
   图片字段：titlepic
   ========================================================== */

.case-img {
  width: 100%;
  aspect-ratio: 385 / 178;
  overflow: hidden;
  background: #e5e5e5;
}

.case-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.case-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.36s ease;
}

.case-item:hover .case-img img {
  transform: scale(1.045);
}


/* ==========================================================
   卡片文字内容区域
   ========================================================== */

.case-title,
.case-sub,
.case-line,
.case-tag-group {
  margin-left: 22px;
  margin-right: 22px;
}


/* ==========================================================
   第2层：主标题
   字段：title
   ========================================================== */

.case-title {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.case-title a {
  color: inherit;
  text-decoration: none;
}

.case-title a:hover {
  color: #003f97;
}


/* ==========================================================
   第3层：副标题
   字段：ftitle
   ========================================================== */

.case-sub {
  min-height: 24px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: #333333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


/* ==========================================================
   第4层：灰色分割横线
   CSS绘制
   ========================================================== */

.case-line {
  height: 1px;
  margin-top: 18px;
  margin-bottom: 13px;
  background: #cccccc;
}


/* ==========================================================
   第5层：多色标签组
   字段：case_tags
   说明：
   1. 后台使用逗号分隔标签，例如：国企,大型集团,世界500强企业；
   2. 逗号只作为后台分隔符，前端不显示；
   3. 标签背景色不根据文字内容判断，而是根据顺序固定；
   4. 第1个标签蓝色，第2个标签橙色，第3个标签灰色；
   5. 第4个及更多标签默认继续使用灰色。
   ========================================================== */

.case-tag-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  padding-bottom: 22px;
}

.case-tag-group span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 42px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* 第1个标签：蓝色 */
.tag-blue {
  background: #003f97;
}

/* 第2个标签：橙色 */
.tag-orange {
  background: #f4aa36;
}

/* 第3个标签及更多标签：灰色 */
.tag-gray {
  background: #b7b7b7;
}












/* ==========================================================
   响应式适配：1200px以下
   每行2列
   ========================================================== */

@media (max-width: 1200px) {
  .case-list {
    padding: 44px 0 64px;
  }

  .case-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 22px;
  }

  .case-title {
    font-size: 19px;
  }

  .case-sub {
    font-size: 15px;
  }
}


/* ==========================================================
   响应式适配：768px以下
   每行1列
   ========================================================== */

@media (max-width: 768px) {
  .case-list {
    padding: 34px 0 50px;
  }

  .case-list__container {
    padding: 0 16px;
  }

  .case-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-title,
  .case-sub,
  .case-line,
  .case-tag-group {
    margin-left: 16px;
    margin-right: 16px;
  }

  .case-title {
    margin-top: 15px;
    font-size: 18px;
  }

  .case-sub {
    font-size: 14px;
    white-space: normal;
  }

  .case-line {
    margin-top: 14px;
    margin-bottom: 12px;
  }

  .case-tag-group {
    padding-bottom: 18px;
    gap: 7px;
  }

  .case-tag-group span {
    height: 21px;
    padding: 0 8px;
    font-size: 12px;
  }


 


}


/* ==========================================================
   响应式适配：420px以下
   窄屏手机
   ========================================================== */

@media (max-width: 420px) {
  .case-list__container {
    padding: 0 14px;
  }

  .case-title {
    font-size: 17px;
  }

  .case-sub {
    font-size: 13px;
  }

  .case-tag-group span {
    height: 20px;
    min-width: 38px;
    padding: 0 7px;
    font-size: 12px;
  }


}

/* ==========================================================
   客户案例二级Banner响应式
   ========================================================== */

@media (max-width: 768px) {
  /* 客户案例列表页，详情页移动端专用Banner：750 × 400px */
   .case-inner-banner,
  .case-detail-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 750 / 400;
    overflow: hidden;
    background: #1e3757;
  }

  .case-inner-banner__image,
  .case-detail-banner__image {
    width: 100%;
    height: 100%;
    background-image: url("/banner/eb2-mobile.jpg") !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  /* 客户案例详情页暂时保留原Banner规则 */
  .case-detail-banner {
    height: 190px;
    min-height: 190px;
  }

  .case-detail-banner__image {
    background-position: center center;
  }
}

@media (max-width: 420px) {
  .case-detail-banner {
    height: 165px;
    min-height: 165px;
  }
}

