/* 首页页面 */
@media (min-width: 768px) {
  .work-row {
    height: 100vh;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .row-two-col {
    height: 50%;
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .work-row-col {
    height: 100%;
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .col-two-row {
    height: 100%;
  }
}

.col-one-img {
  overflow: hidden;
  height: 100%;
  position: relative;
}

.col-one-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .row-two-col {
    height: 300px;
    overflow: hidden;
    position: relative;
  }
}

.col-title {
  transition: all ease 1s;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  opacity: 0;
  display: inline-block;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 4, 4, 0);
  text-decoration: none;
}

.col-title-p {
  font-weight: 700;
  color: #fff;
  position: absolute;
  width: 100%;
  bottom: -10px;
  left: 0;
  transition: all ease 1s;
  display: flex;
  justify-content: space-between;
  padding: 0 0.8rem;
  /* transform: translate(-50%, -50%); */
}


.col-title a {
  transition: all ease 1s;
  position: absolute;
  top: 60%;
  display: inline-block;
  text-align: center;
  width: 100%;
  transform: translateY(-50%);
  color: var(--bs-body-bg);
  text-decoration: none;
  font-weight: bold;
}

.col-one-img img {
  transform: scale(1);
  transition: all ease 1s;
}

.col-img {
  height: 100%;
}

.col-one-img:hover .col-img img {
  transform: scale(1.1);
  transition: all ease 1s;
}

.col-one-img:hover .col-title {
  opacity: 100;
  transition: all ease 1s;
  /* 关闭背景 */
  background-color: rgba(4, 4, 4, 0.3);
}

.col-one-img:hover .col-title a {
  top: 50%;
  transition: all ease 1s;
}

.col-one-img:hover .col-title-p {
  bottom: .3rem;
  transition: all ease 1s;
}

/* 案例页面 */
.work-img-box {
  overflow: hidden;
}

.work-col-box {
  /* height: 300px; */
  overflow: hidden;
}

.work-img-box img {
  object-fit: cover;
  left: 50%;
  transform: translateX(-50%) scale(1);
  transition: all ease 1s;
}

.work-col-title {
  bottom: -20px;
  padding: 0 .5rem;
  /* transform: translateY(-50%); */
  transition: all ease 1s;
}

.work-col-title-box {
  background-color: rgba(4, 4, 4, 0.5);
  z-index: 9999;
  transition: all ease 1s;
  opacity: 0;
}

.work-col-box:hover .work-img-box img {
  left: 50%;
  transform: translateX(-50%) scale(1.1);
  transition: all ease 1s;
}

.work-col-box:hover .work-col-title {
  bottom: 0;
  transition: all ease 1s;
}

.work-col-box:hover .work-col-title-box {
  opacity: 1;
  transition: all ease 1s;
}

@media (min-width: 100px) {
  .work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .col-title-p {
    font-size: 1rem;
  }
  .work-col-title{
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .work-row {
    height: 100vh;
    box-sizing: border-box;
  }

  .work-one-col {
    height: 100%;
    width: 50%;
  }

  .work-two-col {
    height: 50%;
    width: 50%;
  }

  .col-title-p {
    font-size: 1.2rem;
  }
  .work-col-title{
    font-size: 1.2rem;
  }
}

@media (min-width: 1440px) {
  .work-row {
    height: 100vh;
    box-sizing: border-box;
  }

  .work-one-col {
    height: 100%;
    width: 50%;
  }

  .work-two-col {
    height: 50%;
    width: 50%;
  }

  .col-title-p {
    font-size: 1.8rem;
  }

  .work-col-title{
    font-size: 1.8rem;
  }
}


.col-one-img {
  overflow: hidden;
  height: 100%;
  position: relative;
}