@import "@styles/theme.scss";
@import "@styles/mixins.scss";

.page {
  width: 100vw;
  // height: 100vh;
  background: #fff;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-box{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 5%;
  left: 0;
  padding: 0 60px;
  .location {
    @extend .flex;
    justify-content: center;
    padding: 0 12px;
    background:rgba(0,0,0,0.2);
    border-radius:12px;
    height: 60px;
    line-height: 60px;
    
    &-text {
      font-size: 25px;
      padding-left: 13px;
      color: #fff;
      @include text-ellipsis; 
      width: 100px;
      text-align: center;
    }
  
    &-icon {
      width: 14px;
      height: 20px;
      animation: bigger 1s ease 3 both;
    }
  }
  
  .search {

    height: 60px;
    line-height: 60px;
    background:rgba(0,0,0,0.2);
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    border-radius: 12px;
    @extend .flex;
    justify-content: flex-start;
    width: 440px;
  
    &-icon {
    width: 26px;
    height: 26px;
    margin: 0 16px 0 20px ;
    }
    &-input {
      font-size: 24px;
      color: #fff;
    }

  }
}






.section {
  background: white;
  padding: 30px;

  &-head {
    @extend .flex;

    &__title {
      font-size: 40px;
      font-weight: bold;
      // font-family: PingFangSC;
    }

    &__more {
      font-size: 26px;
      color: $text-color-lighter;

      .iconfont {
        font-size: 26px;
        color: $text-color-lighter;
      }
    }
  }
}

.section-top {
  position: relative;
  padding: 0 0px;
  box-shadow:0px 2px 12px 2px rgba(29,29,29,0.09);
}

.sectionn-news-list {
  width: 100%;

  .test-h {
    height: 40px;
  }
}

.sectionn-news {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  margin-top: 0;
  padding: 30px 25px;

  &_img {
    width: 12%;

  }

  &_txt {
    color: #8a95ac;
    font-size: 30px;
    font-weight: 400;
    padding: 0 50px 0 30px;
    @include text-ellipsis;
  }
}

.sectionn-customer {
  margin-top: 0;
  
  .section-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:rgba(248,240,237,1);
    box-shadow:0px 2px 4px 0px rgba(187,156,121,0.22);
    border-radius:12px;
    width:690px;
height:172px;
    // padding: 0px 20px;

    .section-content_img{
      width: 124px;
      height: 138px;
      margin-right: 20px;
    }
    .logo_img{
      width:130px;
      height:106px;
      margin-left: 20px;
    }
    &_title {
      display: flex;
      flex-direction: column;
      margin: 0 10px;

      Text:nth-of-type(1) {
        font-weight: bold;
        font-size: 30px;
        color: #DF760A;
        margin: 6px 0 14px 0;

      }

      Text:nth-of-type(2) {
        color: #999;
        font-size: 22px;
      }
    }
  }
}

.home {
  width: 100%;
}

.news {
  .section-content {
    @extend .flex;
    align-items: flex-start;
  }

  &-item {
    width: 320px;

    &__pic {
      width: 100%;
      height: 250px;
      border-radius: 10px;
      display: block;
    }

    &__title {
      width: 100%;
      margin-top: 20px;
      font-size: $font-size-title;
      @include text-ellipsis;
    }
  }
}

.mask-banner {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .content {
    width: 500px;
    height: 600px;
    position: absolute;
    left: 50%;
    top: 40%;
    margin-left: -250px;
    transform: translateY(-50%);
    text-align: center;

    .img {
      width: 100%;
      height: 600px;
      border-radius: 30px;
    }

    .close {
      font-size: 48px;
      color: white;
    }
  }
}

.tools {
  margin: 120px 35px 0px;
  // @extend .flex;
  border-bottom: 1px solid rgba(151, 151, 151, 0.1);

  &-item {
    @extend .flex;
    justify-content: center;
    width: 48%;
    padding: 30px 0;
    font-size: 32px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;

    &__img {
      position: absolute;
      width: 80px;
      height: 20px;
      left: 0%;
      bottom: 0;
    }
  }

  .item1 {
    color: #fb6256;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 121, 110, 0.4) 100%);

    .tools-item__img {
      bottom: -12px;
    }
  }

  .item2 {
    color: #5e9be6;
    background: linear-gradient(90deg, rgba(208, 227, 253, 0) 0%, rgba(95, 165, 250, 0.4) 100%);

    .tools-item__img {
      bottom: -4px;
    }
  }

  // 3.0
  .section-head {
    justify-content: flex-start;
    margin-top:20px;

    &__title {
      margin-right: 30px;
      font-size: 36px;
    }
  }

  .tools-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 30px;

    .tools-item {
      display: flex;
      flex-direction: column;

      &-img {
        width: 53px;
        height: 53px;
        margin-bottom: 25px;
        transform: scale(1.4);
      }

      &-txt {
        font-weight: bold;
        font-size: 26px;
      }
    }
  }
}

.info {
  @extend .flex;
  margin-top: 60px;
  padding-bottom: 30px;

  &-title {
    font-size: 28px;
    font-weight: bold;
    width: 100px;
    text-align: center;

    .block {
      position: relative;
      margin-top: 5px;

      .bg {
        background: #f9565a;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 6px;
        top: 0;
        transform: skewX(-10deg);
      }

      .text {
        color: white;
        position: relative;
        z-index: 11;
      }
    }
  }

  &-content {
    margin-left: 36px;
    height: 78px;
    overflow: hidden;
    width: 90%;

    .list {
      animation: moveY 8s linear infinite both;

      .item {
        margin-bottom: 20px;
        color: $text-color;
      }
    }
  }
}

.activity {
  margin-top: 0;

  .section-content {
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 2px 10px #eaeaea;
    overflow: hidden;
  }
}

.houses {
  box-shadow:0px 2px 12px 2px rgba(29,29,29,0.09);
  background: white;
  padding: 30px 30px 20px 30px;
  // .section-content{
  //   .item:last-of-type{
  //     border:none;
  //     padding-bottom: 20px;
  //   }
  // }
  
  .map-img{
    width: 28px;
    height: 28px;
    margin: 0 8px 0 38px;
  }
  .map-txt{
    color: $primary-color;
    font-size: 28px;
  }
}
.advertisement{
  width: 90%;
  height:200px;
  border-radius: 20px;
  margin: 30px 5% 0 5%; 
}
.last-text{
  font-size: 28px;
  color: #dcdcdc;
  text-align: center;
  margin-bottom: 60px;
  margin-top: 40px;
}
@keyframes moveY {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes bigger {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}