body {
  background: #fff;
}

.cases-page {
  background: #fff;
  padding: 36px 0 64px 52px;
}

.cases-hero {
  text-align: center;
  margin-bottom: 28px;
}

.cases-hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: #222;
}

.cases-hero p {
  margin-top: 8px;
  color: #888;
  font-size: 16px;
}

.cases-body {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
}

.cases-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 24px;
  border-right: 1px solid #e5e5e5;
}

.cat-item {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  min-height: 118px;
  padding: 8px 10px;
}

.cat-item.active {
  color: var(--blue);
}

.cat-item.active::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--blue);
}

.cat-ico {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.cases-main {
  min-width: 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 700;
}

.pager[hidden] {
  display: none !important;
}

.pager button {
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  font: inherit;
  padding: 0 2px;
  line-height: 1;
}

.pager button.active {
  color: var(--blue);
}

.pager button:disabled {
  color: #c8c8c8;
  cursor: default;
}

.pager .pager-prev,
.pager .pager-next {
  font-weight: 400;
  font-size: 20px;
  color: #bdbdbd;
}

.pager .pager-prev:not(:disabled),
.pager .pager-next:not(:disabled) {
  color: #999;
}

.case-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.case-card[hidden] {
  display: none !important;
}

.case-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.case-card h3 {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  padding: 14px 10px 16px;
  color: #444;
  line-height: 1.45;
}



@media (max-width: 1100px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .cases-page {
    padding-left: 0;
  }

  .cases-body {
    grid-template-columns: 1fr;
  }

  .cases-cats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
    gap: 0;
  }

  .cat-item {
    width: auto;
    min-width: 72px;
    min-height: 96px;
  }

  .cat-item.active::after {
    top: auto;
    bottom: -1px;
    right: 18%;
    left: 18%;
    width: auto;
    height: 2px;
  }

  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .consult-float {
    display: none;
  }
}

/* 站内「欢迎咨询」已弃用，改由快商通承接 */
.consult-float { display: none !important; }
.consult-chat { display: none !important; }
