.diysbt25 {
  text-align: center;
  padding: 20px 0;
}

.diysbt25 .b1,
.diysbt25 .b2 {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  /* 防止意外换行 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.indexbox1_gun {
  width: 100%;
  overflow: hidden;
}

.indexbox1_gun ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 0.5s ease;
}

.indexbox1_gun li {
  flex: 0 0 calc(25% - 10px);
  min-width: 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.indexbox1_gun li:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.indexbox1_gun .pic {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: block;
}

.indexbox1_gun .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.indexbox1_gun .pic:hover img {
  transform: scale(1.05);
}

.indexbox1_gun .pic i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.indexbox1_gun .pic:hover i {
  opacity: 1;
}

.indexbox1_gun .nr {
  padding: 16px;
}

.indexbox1_gun .nr .bt {
  font-size: 16px;
  color: #e74c3c;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.indexbox1_gun .nr p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  background: rgba(108, 108, 108, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
  flex-shrink: 0;
  margin: 0 10px;
}

.slider-arrow:hover {
  background: #e74c3c;
}

.slider-arrow::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

.prev-arrow::before {
  transform: rotate(-45deg);
}

.next-arrow::before {
  transform: rotate(135deg);
}

@media (max-width: 1200px) {
  .indexbox1_gun li {
    flex: 0 0 calc(33.33% - 10px);
  }
}

@media (max-width: 768px) {
    h2{font-size:16px;}
h3{font-size:14px;}

  .slider-wrapper {
    display: block;
    padding: 0 10px;
    margin-top: -20px;
  }

  .slider-arrow {
    display: none !important;
  }

  .indexbox1_gun {
    overflow: visible;
  }

  .indexbox1_gun ul {
    display: flex;
    flex-wrap: wrap;
    transition: none !important;
    transform: none !important;
  }

  .indexbox1_gun li {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 20px;
  }

  .indexbox1_gun .pic {
    height: 130px;
  }

  .indexbox1_gun li:hover,
  .indexbox1_gun .pic:hover img,
  .indexbox1_gun .pic:hover i {
    transform: none;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}