/* 全局变量统一，保持全站风格一致 */
:root {
  --primary-color: #e25303;
  --second-color: #e25303;
  --text-dark: #212121;
  --text-gray: #666;
  --text-light: #999;
  --border-color: #EFEFEF;
  --bg-light: #f9f9f9;
  --card-radius: 12px;
  --img-radius: 8px;
  --card-shadow: 0 3px 15px rgba(0,0,0,0.06);
  --card-hover-shadow: 0 8px 22px rgba(0,0,0,0.1);
  --transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.bobo-case-list.main {
  padding-top: 70px;
  padding-bottom: 70px;
}

.bobo-case-list.main.grey {
  /* background: var(--bg-light); */
}

/* 列表布局 */
.bobo-case-list .case-list ul {
  margin: -20px -12px 0;
  display: flex;
  flex-wrap: wrap;
}

.bobo-case-list .case-list ul li {
  width: 33.3333%;
  padding: 0 12px;
  margin: 20px 0 0;
  box-sizing: border-box;
  list-style: none;
}

/* 卡片主体 */
.bobo-case-list .case-list ul li .box {
  border-radius: var(--card-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

/* 标题 */
.bobo-case-list .case-list ul li h5 {
  height: 100px;
  padding: 0 20px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  margin: 0;
}

.bobo-case-list .case-list ul li h5 a {
  font-weight: 500;
  font-size: clamp(14px, 1.04vw, 20px);
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 图片区域 */
.bobo-case-list .case-list ul li .pic {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.bobo-case-list .case-list ul li .pic > img {
  width: 100%;
  transition: var(--transition);
  aspect-ratio: 466 / 287;
  object-fit: cover;
  display: block;
}

/* 悬浮文字层 */
.bobo-case-list .case-list ul li .txt {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  background: rgba(0, 0, 0, 0.75);
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
  transform: scale(0.9);
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.bobo-case-list .case-list ul li .txt p {
  width: 100%;
  font-size: 17px;
  color: #fff;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
}

.bobo-case-list .case-list ul li .txt p img {
  width: 38px;
  height: 10px;
  display: block;
  margin: 15px auto 0;
}

/* ===================== 悬浮动效（核心升级） ===================== */
.bobo-case-list .case-list ul li:hover .box {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-6px);
}

.bobo-case-list .case-list ul li:hover h5 a {
  color: var(--primary-color);
}

.bobo-case-list .case-list ul li:hover .pic img {
  transform: scale(1.08);
}

.bobo-case-list .case-list ul li:hover .txt {
  opacity: 1;
  transform: scale(1);
}

/* 标题间距 */
.bobo-case-list .rtit {
  margin-bottom: 50px;
}

/* ===================== 响应式 ===================== */
@media screen and (max-width: 1500px) {
  .bobo-case-list .case-list ul li .txt p {
    font-size: 16px;
  }
  .bobo-case-list .case-list ul li h5 {
    height:80px;
  }
}

@media screen and (max-width: 1280px) {
  .bobo-case-list .case-list ul li h5 a {
  }
}

@media screen and (max-width: 992px) {
  .bobo-case-list.main {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media screen and (max-width: 768px) {
  .bobo-case-list.main {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .bobo-case-list .case-list ul {
    margin: -15px -8px 0;
  }

  .bobo-case-list .case-list ul li {
    width: 50%;
    padding: 0 8px;
    margin: 15px 0 0;
  }

  .bobo-case-list .case-list ul li .box {
    border-radius: var(--card-radius);
  }

  .bobo-case-list .case-list ul li h5 {
    height: 70px;
    padding: 0 12px;
  }

  .bobo-case-list .case-list ul li h5 a {
    line-height: 1.4;
    overflow: hidden;
  }

  /* 移动端隐藏悬浮层，更清爽 */
  .bobo-case-list .case-list ul li .txt {
    display: none;
  }
}