.weilan-engineer-process-section {
  padding-bottom: 3.125rem;
  position: relative;
}

.weilan-engineer-process-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  z-index: 1;
}

.weilan-engineer-process-bg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: top;
}

.weilan-engineer-process-section > .container {
  /* padding-bottom: 20px; */
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.weilan-engineer-process_title {
  text-align: center;
  margin-bottom: 4.1875rem;
}

.weilan-engineer-process_container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
}

.weilan-engineer-process_container .weilan-engineer-process-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* justify-content: center; */
}

.weilan-engineer-process-list--e {
  flex-direction: row-reverse;
  /* padding-left: 6.25rem; */
}

.weilan-line-list_item {
  position: relative;
  /* display: flex; */
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: center;
}

.weilan-line-list_item .row-line {
  order: 2;
}

.weilan-line-list_item .row-line .line,
.weilan-line-list_item .row-line-e .line {
  width: 10rem;
  height: 10rem;
}

.weilan-line-list_item .img-content {
  position: relative;
  order: 1;
  position: relative;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.weilan-line-list_item .img-content .weilan-line-list_item-img {
  aspect-ratio: 380 / 240;
  height: 15rem;
  width: 23.75rem;
  object-fit: cover;
}

.weilan-line-list_item .img-content .left-top-icon {
  position: absolute;
  width: max(6.875rem, 64px);
  height: max(6.875rem, 64px);
  left: 0px;
  top: 0px;
}

.weilan-line-list_item .img-content .left-top-text {
  position: absolute;
  font-size: var(--font-size-xl);
  font-family: var(--font-family);
  left: 5px;
  top: 1px;
  color: var(--text-color-light);
  z-index: 2;
  line-height: 150%;
}

/* 奇数行排列位置 */
.weilan-line-list_item .weilan-line-list_item-title {
  grid-column: 1;
  grid-row: 2;
}

.weilan-line-list_item.weilan-line-list_item-e .row-line {
  /* flex-direction: row-reverse; */
  grid-column: 1;
  grid-row: 1;
  /* width: 10rem; */
  /* height: 10rem; */
}

.weilan-line-list_item.weilan-line-list_item-e .weilan-line-list_item-content {
  grid-column: 2;
  grid-row: 1;
}

/* 偶数行排列位置 */
.weilan-line-list_item.weilan-line-list_item-e .weilan-line-list_item-title {
  grid-column: 2;
  grid-row: 2;
}

/* 每行最后一个 线段定位 */
.weilan-line-list_item .row-line-last {
  position: relative;
}

.weilan-line-list_item .row-line-last .line {
  width: 13.5rem;
  height: 21.125rem;
}

.weilan-line-list_item .row-line-last .line {
  position: absolute;
  top: 50%;
  transform: translate(0px, -2px);
  z-index: 0;
}

.weilan-engineer-process-list .row-line-last .down {
  position: absolute;
  top: 0px;
  width: 2.0625rem;
  height: 2.375rem;
  transform: translate(calc(13.625rem - 1.2rem), calc(10.6875rem - 1.1875rem));
  z-index: 0;
}

.weilan-engineer-process-list--e .row-line-last .line {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translate(0px, -2px);
  z-index: 0;
}

.weilan-engineer-process-list--e .row-line-last .down {
  position: absolute;
  top: 50%;
  right: 0px;
  width: 2.0625rem;
  height: 2.375rem;
  transform: translate(calc(-13.625rem + 1.2rem), calc(10.6875rem - 1.1875rem));
  z-index: 0;
}

.weilan-line-list_item-title {
  order: 3;
  padding-top: 0.75rem;
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: var(--font-size-xl);
  font-weight: 500;
  line-height: 150%;
  text-transform: capitalize;
  text-align: center;
}

@media screen and (max-width: 1440px) {
  .weilan-engineer-process-section > .container {
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media screen and (max-width: 1100px) {
  .weilan-engineer-process-section > .container {
    padding-left: var(--container-spacing);
    padding-right: var(--container-spacing);
  }
  .weilan-line-list_item .row-line,
  .weilan-line-list_item .row-line-e {
    display: none;
  }
  .weilan-engineer-process-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    width: 100%;
  }
  .weilan-line-list_item {
    min-width: 0px;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .weilan-line-list_item.weilan-line-list_item-e .weilan-line-list_item-content,
  .weilan-line-list_item.weilan-line-list_item-e .weilan-line-list_item-title {
    grid-column: 1;
  }

  .weilan-line-list_item .img-content .weilan-line-list_item-img {
    width: 100%;
  }
}

@media (max-width: 992px) {
}

@media screen and (max-width: 768px) {
  .weilan-engineer-process-list {
    gap: 1.5rem;
    width: 100%;
  }
}

@media (max-width: 552px) {
  .weilan-engineer-process-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile - 2 items per group */
.weilan-engineer-process_container--mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  position: relative;
}

@media screen and (max-width: 768px) {
  .weilan-engineer-process_container {
    display: none !important;
  }

  .weilan-engineer-process_container--mobile {
    display: flex;
    gap: 15px;
  }

  .weilan-engineer-process_container--mobile .weilan-engineer-process-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .weilan-engineer-process_container--mobile .weilan-line-list_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
  }

  .weilan-engineer-process_container--mobile .weilan-line-list_item .weilan-line-list_item-content {
    width: 100%;
  }

  .weilan-engineer-process_container--mobile .weilan-line-list_item .img-content .weilan-line-list_item-img {
    width: 100%;
    height: auto;
    aspect-ratio: 380 / 240;
  }

  .weilan-engineer-process_container--mobile .weilan-line-list_item .img-content .left-top-icon {
    width: max(4rem, 48px);
    height: max(4rem, 48px);
  }

  .weilan-engineer-process_container--mobile .weilan-line-list_item .img-content .left-top-text {
    font-size: var(--font-size-md);
  }

  .weilan-engineer-process_container--mobile .weilan-line-list_item-title {
    padding-top: 0.5rem;
    font-size: var(--font-size-md);
    text-align: center;
  }

}
