@background-color-gray: #f7f8fa;
@background-color-white: #ffffff;
@background-color-blue: #1989fa;
@background-color-cs: bisque;

@border-color: #eeeeee;
@border-color-black: #000000;

@text-color-blue: #1989fa;
@text-color-black: #323233;
@text-color-white: #ffffff;

* {
  box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

html, body, #app, .main-content-con {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: @text-color-black;
}

.main-layout-cont {
  width: 100%;
  height: calc(100% - 46px);
  overflow: hidden;
  background: @background-color-gray;

  > div {
    width: 100%;
    height: 100%;
  }
}

.main-layout-cont-hide-navbar {
  width: 100%;
  height: 100%;
}

//主要内容 不包括navbar searchbar
.layout-cont{
  width: 100%;
  height: 100%;
  overflow: auto;
}
//底部导航
.layout-cont-tab {
  width: 100%;
  height: calc(100% - 50px);
  overflow: auto;
}

//有底部按钮
.layout-cont-btn {
  width: 100%;
  height: calc(100% - 44px);
  overflow: auto;
}

//有search 54
.layout-cont-s {
  width: 100%;
  height: calc(100% - 54px);
  overflow: auto;
}

//有search 54  底部按钮 44
.layout-cont-s-btn {
  width: 100%;
  height: calc(100% - 54px - 44px);
  margin-top: 54px;
  overflow: auto;
}

//有search 54、高级搜索 31
.layout-cont-sh {
  width: 100%;
  height: calc(100% - 54px - 31px);
  margin-top: 85px;
  overflow: auto;
}

//有search  54、高级搜索31 还有底部按钮 44
.layout-cont-sh-btn {
  height: calc(100% - 54px - 31px - 44px);
}

.home-cont {
  padding: 10px 0;
}

.bottom-btn {
  width: 100%;
  height: 44px;
  display: flex;
  flex: 1;
}


.personal-cont {
  .personal-top-img {
    width: 100%;
    height: 150px;
    background: url("../assets/banner.png") no-repeat;
    background-size: 100% 100%;

    margin-bottom: 10px;
    text-align: center;

    img {
      width: 65px;
      height: 65px;
      border-radius: 50%;
      margin-top: 60px;
    }
  }
}

.login-cont {
  background: url("../assets/background.png") no-repeat;
  background-size: 100% 100%;

  .login-main {
    width: 80%;
    height: 280px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -180px; //居中是height/2=140px
    margin-left: -40%;

    > h1 {
      text-align: center;
      letter-spacing: 5px;
      margin-bottom: 20px;
      color: @text-color-white;
    }

    .field-input {
      background: #ffffff;
      border-radius: 5px;
      padding: 0 5px;

      .van-cell {
        padding-left: 5px;
        padding-right: 5px;
      }
    }

    .field-input + .field-input {
      margin-top: 20px;
    }

    .forget-text {
      padding: 10px 0;
      text-align: right;
      font-size: 12px;
      color: @text-color-white;
      display: flex;
      justify-content: space-around;

      > div {
        width: 50%;
      }
    }

    .btn-box {
      margin: 10px 0;
    }

    .van-checkbox__icon {
      background: @background-color-white;
    }

    .van-checkbox__label {
      color: @text-color-white;
    }
  }

  .login-main-forget {
    height: 420px;
    margin-top: -240px;

    .logo-text {
      text-align: center;
      margin-bottom: 20px;
    }
  }
}

.result-item {
  width: 100%;
  height: auto;
  background: @background-color-white;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid @border-color;
  border-bottom: 1px solid @border-color;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;

  > div {
    width: 50%;
    padding: 0 10px;
    line-height: 24px;
  }
}

.swipe-cell-btn {
  height: 100%;
}

.popup-cont-btn {
  width: 100%;
  height: calc(100% - 44px);
}

.popup-shelves {
  > div {
    width: 100%;
    padding: 10px;

    &:first-child {
      p {
        margin-bottom: 10px;
      }
    }

    &:last-child {
      width: 100%;
      height: calc(100% - 90px);
    }
  }

}

/*search-bar begin */
.search-bar-box {
  position: relative !important;
  top: 0px !important;
}

.search-bar-box-fixed-top {
  position: fixed;
  width: 100%;
  top: 45px;
  z-index: 1;
}

.high-search-text {
  border-top: 1px solid @border-color;
  border-bottom: 1px solid @border-color;
  text-align: center;
  color: @text-color-blue;
  background: @background-color-white;
  line-height: 30px;
}

.high-search-cont {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background: @background-color-gray;

  .btn-box {
    margin: 10px 20px;
  }
}

/*search-bar end*/


.van-nav-bar {
  background: @background-color-blue;

  .van-icon-arrow-left::before, .van-nav-bar__title, .van-nav-bar__text {
    color: @text-color-white;
  }
}
