/* 成功案例 */
.page-banner {
  background-image: url("../images/banner/banner-cases.jpg");
}

.cases-page {
  padding: 0.8rem 0;
  background: #f8fafc;
}

.cases-page > .container {
  width: calc(100% - 3.6rem);
  max-width: 16.44rem;
  margin: 0 auto;
}

.cases-page .sec-head-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  margin-bottom: 0;
}

.cases-page .sec-head-left .sec-title {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.3rem;
  line-height: 0.32rem;
  color: #1e2538;
}

.cases-page .sec-head-left .sec-rail {
  flex: none;
  width: 100%;
  height: 0;
  background: none;
  border-bottom: 1px solid #cfcfcf;
}

.cases-page .tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.12rem;
  margin: 0.3rem 0 0.45rem;
}

.cases-page .tab-btn {
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0.46rem;
  padding: 0.08rem 0.2rem;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 0.04rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.15rem;
  font-style: normal;
  line-height: 1.35;
  color: #1e2538;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

.cases-page .tab-btn:hover,
.cases-page .tab-btn.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.cases-page .case-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cases-page .list-card {
  margin-bottom: 0;
  box-sizing: border-box;
  padding: 0.28rem 0.32rem 0.24rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.08rem;
  box-shadow: 0 4px 4px 0 rgba(141, 155, 185, 0.08);
}

.cases-page .list-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.24rem;
  margin-bottom: 0.14rem;
}

.cases-page .list-card-title {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.2rem;
  font-style: normal;
  line-height: 1.4;
  color: #1e2538;
  text-align: left;
  text-transform: none;
}

.cases-page .list-card-date {
  flex-shrink: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-size: 0.14rem;
  font-style: normal;
  line-height: 0.28rem;
  color: #1e2538;
  text-align: left;
  text-transform: none;
}

.cases-page .list-card-desc {
  margin: 0 0 0.2rem;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 0.16rem;
  font-style: normal;
  line-height: 0.24rem;
  color: #626c84;
  text-align: left;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cases-page .list-card .btn,
.cases-page .list-card .btn-ghost {
  display: inline-flex;
  margin-left: auto;
  height: 0.36rem;
  padding: 0 0.2rem;
  box-sizing: border-box;
  border-radius: 0.04rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-size: 0.14rem;
  font-style: normal;
  line-height: 0.21rem;
  color: #1e2538;
  text-align: left;
  text-transform: none;
}

.cases-page .list-card-action {
  display: flex;
  justify-content: flex-end;
}

.cases-page .list-card:hover {
  border-color: #dc2626;
  border-width: 3px;
}

.cases-page .list-card:hover .btn-ghost {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.cases-page .pagination {
  margin-top: 0.44rem;
  justify-content: center;
  gap: 0.12rem;
}

.cases-page .pagination a,
.cases-page .pagination span,
.cases-page .pagination li a {
  width: 0.6rem;
  min-width: 0.6rem;
  height: 0.6rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0.08rem;
  border: 1px solid #e2e8f0;
  font-size: 0.16rem;
  color: #1e2538;
}

.cases-page .pagination a:hover,
.cases-page .pagination li a:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff;
}

.cases-page .pagination a.is-active,
.cases-page .pagination .is-active,
.cases-page .pagination .current,
.cases-page .pagination span.current,
.cases-page .pagination li.active a,
.cases-page .pagination li.active span {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #fff;
}

.cases-page .pagination .page-prev,
.cases-page .pagination .page-next,
.cases-page .pagination > li:first-child a,
.cases-page .pagination > li:last-child a {
  font-size: 0;
  color: transparent;
}

.cases-page .pagination .page-prev::before,
.cases-page .pagination .page-next::before,
.cases-page .pagination > li:first-child a::before,
.cases-page .pagination > li:last-child a::before {
  content: "";
  width: 0.12rem;
  height: 0.12rem;
  box-sizing: border-box;
  border-top: 2px solid #9ba6bc;
  border-right: 2px solid #9ba6bc;
}

.cases-page .pagination .page-prev::before,
.cases-page .pagination > li:first-child a::before {
  transform: rotate(-135deg);
}

.cases-page .pagination .page-next::before,
.cases-page .pagination > li:last-child a::before {
  transform: rotate(45deg);
}

.cases-page .pagination .page-prev:hover::before,
.cases-page .pagination .page-next:hover::before,
.cases-page .pagination > li:first-child a:hover::before,
.cases-page .pagination > li:last-child a:hover::before {
  border-color: #dc2626;
}

@media (max-width: 900px) {
  .cases-page > .container { width: calc(100% - 0.48rem); max-width: none; }
  .cases-page { padding: 0.48rem 0 0.64rem; }
  .cases-page .tabs { flex-wrap: wrap; gap: 0.12rem; }
  .cases-page .tab-btn {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0.56rem;
    padding: 0.1rem 0.2rem;
    line-height: 1.35;
    font-size: 0.2rem;
    white-space: normal;
  }
  .cases-page .sec-head-left .sec-title { font-size: 0.36rem; line-height: 1.3; }
  .cases-page .case-grid,
  .cases-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cases-page .case-grid,
  .cases-page .product-grid { grid-template-columns: 1fr; }
}
