/* 案例中心页面 */
.cases-page {
  padding-bottom: 0;
}

.cases-hero {
  position: relative;
  overflow: hidden;
  /* 缩短首屏 banner，便于首屏露出首条案例卡片 */
  min-height: clamp(330px, 20vw, 330px);
}

.cases-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.cases-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0052d6 0%, rgba(106, 106, 210, 0.5) 50%, rgba(0, 82, 214, 0) 100%);
  z-index: 1;
}

.cases-hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.cases-hero-title {
  margin-bottom: 16px;
  font-size: 48px;
  font-weight: 600;
  line-height: 72px;
}

.cases-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 36px;
  color: rgba(255, 255, 255, 0.85);
}

.cases-hero-stat strong {
  font-weight: 600;
}

.cases-hero-split {
  color: rgba(255, 255, 255, 0.78);
}

.cases-hero-desc {
  font-size: 24px;
  line-height: 36px;
  color: rgba(255, 255, 255, 0.85);
}

.cases-toolbar,
.section-cases {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  /* padding-left: 24px;
  padding-right: 24px; */
}

.cases-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.cases-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.cases-tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.92);
  background: #f5f7fa;
  border-radius: 4px;
}

.cases-tabs .tab.active {
  color: #fff;
  font-weight: 600;
  background: #0052d6;
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cases-search {
  display: flex;
  align-items: center;
  flex: 0 1 480px;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
}

.cases-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.92);
  font-size: 16px;
}

.cases-search input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.cases-search-icon {
  color: #6b7280;
  font-size: 20px;
}

.section-cases {
  padding-bottom: 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.cases-empty {
  margin: 24px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary, #6b7280);
}

.case-card {
  display: grid;
  grid-template-columns: 48% 52%;
  border: 0.5px solid #f5f6ff;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.case-cover {
  position: relative;
  height: 100%;
  min-height: 376px;
  overflow: hidden;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.case-cover-tags {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cover-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.26);
}

.cover-tag-main {
  border: 0;
  background: #e97218;
}

.cover-tag-soft {
  border: 0;
  background: rgba(255, 255, 255, 0.25);
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.case-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  color: #f26200;
  background: rgba(255, 150, 71, 0.15);
}

.case-head h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.92);
}

.case-summary {
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.76);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7e8eb;
  color: rgba(0, 0, 0, 0.92);
  font-size: 14px;
  line-height: 22px;
}

.case-meta .case-location,
.case-meta .case-date,
.case-meta .case-area {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-meta .case-location img,
.case-meta .case-date img,
.case-meta .case-area img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.case-highlights h4 {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.92);
}

.case-highlights li {
  position: relative;
  margin-bottom: 4px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 22px;
  color: #535d6d;
}

.case-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background: url("../../static/cases/cases-light-icon.png") center/contain no-repeat;
}

.case-result {
  padding: 4px 12px;
  border-radius: 4px;
  background: #f5f9ff;
}

.case-result span {
  display: block;
  font-size: 12px;
  line-height: 20px;
  color: #535d6d;
}

.case-result p {
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.92);
}

.cases-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
}

.cases-cta {
  position: relative;
  margin-top: 48px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 232px;
  overflow: hidden;
}

.cases-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.cases-cta-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(21, 93, 209, 0.72) 0%, rgba(21, 93, 209, 0.3) 100%);
  pointer-events: none;
}

.cases-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 232px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}

.cases-cta-content h2 {
  font-size: 36px;
  line-height: 48px;
  color: #fff;
  font-weight: 600;
}

.cases-cta-content p {
  font-size: 18px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.92);
}

.cases-cta-content .cases-cta-phones {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.5;
  font-weight: 600;
  color: #fff;
}

.cases-cta-content .cases-cta-phones a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.cases-cta-content .cases-cta-phones a:hover {
  text-decoration: underline;
}

.cases-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 44px;
  padding: 0 24px;
  border-radius: 4px;
  background: #fff;
  color: #155dd1;
  font-size: 16px;
  font-weight: 600;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  color: #666;
  background: #fff;
}

.page-btn.active {
  border-color: #155dd1;
  color: #fff;
  background: #155dd1;
}

@media (max-width: 1200px) {
  .cases-toolbar,
  .section-cases {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 900px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-cover {
    min-height: 280px;
  }

  .cases-hero-title {
    font-size: 36px;
    line-height: 52px;
  }

  .cases-hero-stats,
  .cases-hero-desc {
    font-size: 18px;
    line-height: 28px;
  }

  .cases-cta-content h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .cases-cta-content p {
    font-size: 16px;
    line-height: 26px;
  }
}

@media (max-width: 768px) {
  .cases-hero {
    min-height: clamp(150px, 36vw, 240px);
  }

  .cases-hero-content {
    gap: 8px;
  }

  .cases-hero-title {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1.35;
  }

  .cases-hero-stats {
    gap: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.6;
  }

  .cases-hero-split {
    display: none;
  }

  .cases-hero-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .cases-cta-content .cases-cta-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .cases-cta-content .cases-cta-phones span[aria-hidden="true"] {
    display: none;
  }
}
