.product-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3.5rem;
}
.product-page-link {
  display: inline-flex;
  min-width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0 .8rem;
  border: 1px solid #e5e7eb;
  color: #555;
  background: #fff;
  font-size: .9rem;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.product-page-link:hover,
.product-page-link:focus-visible {
  border-color: #C00000;
  color: #C00000;
}
.product-page-link.is-current {
  border-color: #C00000;
  color: #fff;
  background: #C00000;
}
.product-page-link.is-disabled {
  color: #a8abb0;
  background: #f9fafb;
  cursor: not-allowed;
}
.product-page-link.is-disabled:hover { border-color: #e5e7eb; }
@media (prefers-reduced-motion: reduce) {
  .product-category-link,
  .product-category-link::before,
  .product-card,
  .product-card-image,
  .product-quick-view {
    transition: none;
  }

  .product-page-link {
    transition: none;
  }
}

.case-inner-banner {
  height: 28rem;
  background: linear-gradient(90deg, rgba(7, 17, 37, .64), rgba(7, 17, 37, .03) 68%), url('./工程案例.png') center / cover no-repeat;
}
@media (max-width: 768px){.case-inner-banner { height: 18rem; }}


.case-layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.case-sidebar, .case-content { min-width: 0; }
.case-category-title {
  border-left: 4px solid #C00000;
  padding: .9rem 1rem;
  background: #1b2537;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}
.case-category-link {
  position: relative;
  display: block;
  padding: .9rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  background: #fff;
  transition: color .25s ease, background-color .25s ease, padding-left .25s ease;
}
.case-category-link::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #C00000;
  transform: scaleY(0);
  transition: transform .25s ease;
}
.case-category-link:hover,
.case-category-link:focus-visible,
.case-category-link.is-active {
  padding-left: 1.25rem;
  color: #C00000;
  background: #f2f2f2;
}
.case-category-link:hover::before,
.case-category-link:focus-visible::before,
.case-category-link.is-active::before { transform: scaleY(1); }
.case-category-link:focus-visible { outline: 2px solid #C00000; outline-offset: 3px; }
.case-empty { padding: 5rem 1rem; background: #f9fafb; color: #6b7280; text-align: center; }
#caseGrid[hidden], .case-pagination[hidden], .case-empty[hidden] { display: none !important; }
@media (max-width: 1000px){.case-layout { grid-template-columns: 14rem minmax(0, 1fr); }}
@media (max-width: 768px){.case-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }}
@media (max-width: 768px){.case-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 480px){.case-sidebar nav { grid-template-columns: minmax(0, 1fr); }}
.case-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  background: #fff;
  box-shadow: 0 .4rem 1.3rem rgba(15, 23, 42, .05);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.case-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f5f6;
}
.case-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s ease;
}
.case-card h3 {
  padding: 1rem 1.15rem;
  color: #282828;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: color .25s ease;
}
.case-card:hover {
  border-color: rgba(192, 0, 0, .28);
  box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, .11);
  transform: translateY(-.35rem);
}
.case-card:hover img {
  transform: scale(1.05);
}
.case-card:hover h3 {
  color: #C00000;
}
.case-card[hidden] {
  display: none !important;
}
.case-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3.5rem;
}
.case-page-link {
  display: inline-flex;
  min-width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0 .8rem;
  border: 1px solid #e5e7eb;
  color: #555;
  background: #fff;
  font-size: .9rem;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.case-page-link:hover,
.case-page-link:focus-visible {
  border-color: #C00000;
  color: #C00000;
}
.case-page-link.is-current {
  border-color: #C00000;
  color: #fff;
  background: #C00000;
}
.case-page-link.is-disabled {
  color: #a8abb0;
  background: #f9fafb;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce){.case-card, .case-image-box img, .case-card h3 { transition: none; }}

