.equipment {
  background-color: #fff;
  padding-bottom: 5rem;
}

.equipments-container {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.equipment-row {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  justify-content: space-around;
}

.equipment-item {
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

/* 第一项占calc(50% - 20px) */
.equipment-row .equipment-item:first-child {
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
}

/* 剩余两项各占25% */
.equipment-row .equipment-item:not(:first-child) {
  flex: 0 0 calc(25% - 5px);
  max-width: calc(25% - 5px);
}

.derivatives-item {
  flex: 0 0 calc(25% - 15px) !important;
  max-width: calc(25% - 15px) !important;
}

.equipment-whole {
  width: 100%;
}

.equipment-img {
  width: calc(100% - 10px);
}

.equipment-add {
  position: absolute;
  right: 20px;
  top: 10px
}

.equipment-image-container {
  display: flex;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}

.company-image {
  position: relative;
  width: 100%;
}

.equipment-image {
  width: 100%;
  height: auto;
  display: block;
}

.derivatives-row .equipment-item:first-child {
  flex: 0 0 calc(50% - 10px) !important;
  max-width: calc(50% - 10px) !important;
}

.derivatives-row .equipment-item:last-child {
  flex: 0 0 calc(50% - 10px) !important;
  max-width: calc(50% - 10px) !important;
}

@media (min-width: 2561px) {
  .equipment-add {
    right: 20px;
    top: 25px
  }

  .equipment-add img {
    width: 28px;
  }
}

@media (max-width:2560px) {
  .equipment-add {
    right: 20px;
    top: 20px
  }

  .equipment-add img {
    width: 32px;
  }
}

@media (max-width: 1920px) {
  .equipment-add {
    right: 20px;
    top: 15px
  }

  .equipment-add img {
    width: 24px;
  }
}

@media (max-width: 1200px) {
  .equipment-add {
    right: 20px;
    top: 10px
  }

  .equipment-add img {
    width: 20px;
  }
}

@media (max-width: 1024px) {
  .equipment-add {
    right: 20px;
    top: 7px
  }

  .equipment-add img {
    width: 15px;
  }

}

/* 响应式设计 */
@media (max-width: 992px) {
  .equipment-row {
    flex-wrap: wrap;
  }

  .equipment-row .equipment-item:not(:first-child) {
    flex: 0 0 calc(50% - 10px);
    max-width: 100%;
    gap: 0px;
  }

  .equipment-row .equipment-item:first-child,
  .derivatives-row .equipment-item:last-child {
    flex: 0 0 calc(100% - 10px);
    max-width: 100% !important;
    gap: 10px;

  }

  .equipments-container {
    gap: 10px;
  }

  .derivatives-row .equipment-item:first-child,
  .derivatives-row .equipment-item:last-child {
    flex: none !important;
  }

  .equipment-img {
    width: 100%;
  }

  .equipment-add {
    right: 10px;
    top: 13px
  }

  .equipment-add img {
    width: 15px;
  }

  .derivatives-item {
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
  }

}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .equipments-container {
    gap: 10px;
  }

  /* .equipment-image {
    height: 250px;
  } */
  .equipment-row .equipment-item:first-child,
  .derivatives-row .equipment-item:last-child {
    flex: 0 0 100%;
    max-width: 100%;
    /* margin-bottom: 20px; */
  }

  .equipment-img {
    width: 100%;
  }

  .equipment-add {
    right: 10px;
    top: 13px
  }

  .equipment-add img {
    width: 15px;
  }
}

@media (max-width: 576px) {

  .equipment-row .equipment-item:first-child,
  .equipment-row .equipment-item:not(:first-child) {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .equipment-row .equipment-item:not(:first-child) {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }

  .equipment-img {
    width: 100%;
  }

  .equipment-add {
    right: 10px;
    top: 7px
  }

  .equipment-add img {
    width: 10px;
  }

}

@media (max-width: 375px) {
  .equipment-add {
    right: 5px;
    top: 5px
  }

  .equipment-add img {
    width: 10px;
  }

}