/* ===================== 案例列表页 ===================== */
.cs-main {
  background: #f6f8fb;
}

.cs-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 横幅 ---------- */
.cs-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #072644;
}

.cs-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
}

.cs-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 32, 60, .78) 0%, rgba(4, 32, 60, .46) 48%, rgba(4, 32, 60, .18) 100%);
}

.cs-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.cs-hero-panel {
  padding: 96px 0 62px;
}

.cs-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 255, 255, .72);
}

.cs-crumb li {
  display: inline-flex;
  align-items: center;
}

.cs-crumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(255, 255, 255, .45);
}

.cs-crumb a {
  color: rgba(255, 255, 255, .72);
  transition: color .25s;
}

.cs-crumb a:hover {
  color: #fff;
}

.cs-hero-title {
  margin: 0;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 1px;
}

.cs-hero-sub {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .86);
}

/* ---------- 列表 ---------- */
.cs-list {
  padding: 72px 0 100px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-card-item {
  min-width: 0;
}

.cs-card {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 40, 80, .06);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .35s ease;
}

.cs-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.cs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 40, 80, .14);
}

.cs-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9eef5;
}

.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.cs-card:hover .cs-media img {
  transform: scale(1.07);
}

.cs-tit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 44px 22px 15px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 24, 46, 0) 0%, rgba(3, 24, 46, .74) 100%);
}

.cs-body {
  padding: 18px 22px 24px;
  min-height: 116px;
}

.cs-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #6b7a8d;
}

.cs-desc p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.cs-empty {
  padding: 90px 0;
  text-align: center;
  font-size: 16px;
  color: #8a97a6;
}

/* ---------- 分页 ---------- */
.cs-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
}

.cs-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dfe6ef;
  border-radius: 3px;
  background: #fff;
  font-size: 15px;
  color: #41536a;
  transition: all .25s;
}

a.cs-pager-btn:hover {
  border-color: #004EA2;
  color: #004EA2;
}

.cs-pager-btn.is-on {
  border-color: #004EA2;
  background: #004EA2;
  color: #fff;
  cursor: default;
}

.cs-pager-btn.is-disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .cs-hero {
    min-height: 360px;
  }

  .cs-hero-title {
    font-size: 36px;
  }

  .cs-hero-panel {
    padding: 72px 0 48px;
  }
}

@media (max-width: 640px) {
  .cs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .cs-hero {
    min-height: 300px;
  }

  .cs-hero-title {
    font-size: 28px;
  }

  .cs-hero-sub {
    font-size: 14px;
  }

  .cs-hero-panel {
    padding: 56px 0 38px;
  }

  .cs-list {
    padding: 44px 0 64px;
  }

  .cs-tit {
    font-size: 17px;
  }

  .cs-pager {
    margin-top: 36px;
  }

  .cs-pager-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
  }
}
