/* ===== 页面Banner ===== */
.page-banner {
  width: 100%;
  height: 16vw;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 案例列表 ===== */
.case-list-section {
  padding: 2vw 0;
  background-color: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9vw;
}

.case-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.case-item:hover {
  transform: translateY(-0.5vw);
  box-shadow: 0 0.5vw 1.5625vw rgba(0, 0, 0, 0.15);
}

.case-img {
  width: 100%;
  height: 30vw;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-item:hover .case-img img {
  transform: scale(1.05);
}

.case-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8vw 1vw;
  text-align: left;
  background: rgba(0, 0, 0, 0.6);
}

.case-tag {
  font-size: 1.2vw;
  color: #fff;
  font-weight: 500;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75vw;
  margin-top: 3vw;
}

.pagination a {
  min-width: 2.25vw;
  height: 2.25vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375vw;
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.875vw;
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 0 0.75vw;
}

.pagination a:hover,
.pagination a.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ===== 图片弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 2vw;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 0.75vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 60vw;
  max-height: 85vh;
}

.modal-top {
  text-align: center;
  padding: 1.5vw;
  border-bottom: 0.0625vw solid #eee;
}

.modal-caption {
  font-size: 1.25vw;
  color: var(--text-dark);
  font-weight: 600;
}

.modal-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5vw;
  padding: 2vw;
  flex: 1;
  min-height: 0;
}

.modal-middle img {
  max-width: 42vw;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 0.375vw;
}

.modal-middle .modal-video {
  max-width: 42vw;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 0.375vw;
  background: #000;
}

.modal-nav {
  flex-shrink: 0;
  width: 3.5vw;
  height: 3.5vw;
  border-radius: 50%;
  background: #f2ece7;
  border: none;
  color: var(--text-dark);
  font-size: 1.5vw;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.modal-nav:hover {
  background: var(--primary-color);
  color: #fff;
}

.modal-bottom {
  text-align: center;
  padding: 1vw;
  border-top: 0.0625vw solid #eee;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 1vw;
  cursor: pointer;
  padding: 0.5vw 2vw;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-dark);
}
