.content-part4{
  width: 100%;
  height: auto;
  /* border: 10px solid red; */
  display: flex;
  flex-direction: column;
  gap: 80px;
  background-color: rgb(246, 246, 246);
  padding-block: var(--main-block-padding);
}

.content-part4-main{
  display: flex;
  justify-content: space-between;
  height: 100%;
  /* border: 2px solid green; */
}

.content-part4-main>div{
  width: 45%;
  height: 100%;
  /* border: 10px solid blue; */
}

.part4-main-container{
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.part4-main-container-card{
  width: 100%;
  /* height: 560px; */
  aspect-ratio: 5/6;
  /* border: 2px solid red; */
  overflow: hidden;
  font-size: 3rem;
  position: relative;
  display: flex;
  justify-content: flex-end;
  background-color: rgb(230, 230, 230);
  border-radius: 10px;
  z-index: 0;
}

.part4-main-container-card > div{
  position: absolute;
}

.part4-main-container-card > div:first-child{
  left: 50px;
  top: 30px;
}

.part4-main-container-card > div:nth-child(2){
  bottom: 50px;
  left: 50px;
}

.part4-main-container-card > img {
  /* border: 4px solid green; */
  flex-shrink: 0;
  width: 100%;
  object-fit: cover;
  object-position: top;
  position: relative;
  right: -60px;
  top: 30px;
  z-index: -1;
}

.container-card-top-text{
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.container-card-top-text > span:first-child{
  width: 50px;
  height: 50px;
  background-color: rgb(149, 242, 242);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
}
.container-card-top-text > span:first-child::after{
  content: "company";
  position: absolute;
  left: 30%;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.container-card-top-text > span:last-child{
  white-space: pre-line;
  font-size: 2rem;
}

.container-card-bottom-text{
  width: 240px;
  height: 70px;
  background-color: white;
  z-index: 2;
  border-radius: 100px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  padding-right: 30px;
  transition: all 0.3s ease;
}
.container-card-bottom-text > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.container-card-bottom-text > div > div:first-child{
  height: 52px;
  width: 52px;
  border-radius: 50%;
  border: 1px solid rgb(208, 208, 208);
  padding: 12px;
}
.container-card-bottom-text > div > div:last-child{
  display: flex;
  flex-direction: column;
}

.container-card-bottom-text > div > div:last-child > span:first-child{
  font-weight: 600;
}
.container-card-bottom-text > div > div:last-child > span:last-child{
  font-size: 0.8rem;
}

.container-card-bottom-text > span:last-child{
  font-size: 1.4rem;
  color: rgb(72, 71, 71);
}

.part4-main-container-bottom{
  display: flex;
  gap: 20px;
  align-items: center;
}


.part4-container-bottom-logos{
  display: flex;
  /* border: 4px solid red; */
}

.part4-container-bottom-logos > div{
  width: 50px;
  height: 50px;
  background-color: aqua;
  border-radius: 50%;
  background-size: cover;
  filter: grayscale(100%);
  border: 2px solid white;
}
.part4-container-bottom-logos > div:nth-child(1){
  background-image: url('../imgs/part4/small/logos/logo1.jpg');
}
.part4-container-bottom-logos > div:nth-child(2){
  background-image: url('../imgs/part4/small/logos/logo2.png');
  margin-left: -20px;
}
.part4-container-bottom-logos > div:nth-child(3){
  background-image: url('../imgs/part4/small/logos/logo3.png');
  margin-left: -30px;
  /* transform: translate(-20px); */
}

.part4-container-bottom-text > span:first-child{
  font-weight: 600;
}
.part4-container-bottom-text > span:last-child{
  color: rgb(81, 80, 80);
}


/* 调整右边的卡片 */
.part4-main-container-card.right-card{
  background-color: rgb(189, 149, 149);
}
.container-card-top-text.right-card{
  color: white;
}
.container-card-top-text.right-card > span:first-child{
  background-color: rgb(232, 162, 101);
}
.container-card-top-text.right-card > span:first-child::after{
  content: "Employee";
}


img.right-card{
  top: 0px;
  right: -80px;
}

.part4-container-bottom-logos.right-card > div:nth-child(1){
  background-image: url('../imgs/part4/small/avatars/person1.jpg');
}
.part4-container-bottom-logos.right-card > div:nth-child(2){
  background-image: url('../imgs/part4/small/avatars/person2.png');
  margin-left: -20px;
}
.part4-container-bottom-logos.right-card > div:nth-child(3){
  background-image: url('../imgs/part4/small/avatars/person3.png');
  margin-left: -30px;
  /* transform: translate(-20px); */
}



/* 按钮变化 */
@media (hover:hover){
  .part4-main-container-card:hover  .container-card-bottom-text > span:last-child{
    color: rgb(230, 230, 230);
  }
  
  .part4-main-container-card:hover .container-card-bottom-text > div > div:first-child{
    border: 1px solid rgb(63, 63, 63);
  }
  .part4-main-container-card:hover .container-card-bottom-text{
    background-color: black;
    color: rgb(230, 230, 230);
  }
}

@media screen and (max-width: 1024px) {
  .part4-main-container-card > img{
    right: -100px;
    top: 100px;
  }
  img.right-card{
    top: 0;
  }
}

@media screen and (max-width: 768px) {
  .container-card-top-text > span:last-child{
    font-size: 1.6rem;

  }
  .part4-main-container-card > div:nth-child(2){
    bottom: 20px;
    left: 20px;
  }
  .part4-main-container-card > div:first-child{
    left: 30px;
    top: 30px;
  }


  .container-card-bottom-text{
    width: 200px;
    height: 50px;
    font-size: 0.8rem;
  }

  .container-card-bottom-text > div > div:first-child{
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .container-card-bottom-text > span:last-child{
    font-size: 1.2rem;
  }

  .container-card-top-text > span:last-child{
    font-size: 4vw;
    line-height: 1;
  }
}

@media screen and (max-width: 550px){
  .content-part4-main{
    flex-direction: column;
    gap: 60px;
  }
  .content-part4-main>div{
    width: 100%;
  }
  .part4-main-container-card{
    aspect-ratio: 1/1;
  }
  .container-card-top-text > span:last-child{
    font-size: 8vw;
    line-height: 1.2;
  }

  .container-card-bottom-text{
    width: 240px;
    height: 70px;
    font-size: 1rem;
  }

  .container-card-bottom-text > div > div:first-child{
    width: 52px;
    height: 52px;
    padding: 12px;
  }

}

@media screen and (max-width: 400px){
  .container-card-bottom-text{
    width: 200px;
    height: 50px;
    font-size: 0.8rem;
  }

  .container-card-bottom-text > div > div:first-child{
    width: 32px;
    height: 32px;
    padding: 6px;
  }

}