.text-bold {
  font-weight: bold;
}
.text-normal {
  font-weight: normal;
}
.color-blue {
  color: #2979ff;
}
.slider-custom-button {
  width: 15px;
  height: 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url(images/home/trail-back@2x.png);
}
.van-slider--disabled {
  opacity: 1 !important;
}
.battle-warp {
  height: 100%;
  .van-checkbox {
    position: absolute;
    top: 50px;
    right: 5px;
    font-size: 14px;
    background-color: #fff;
    z-index: 1000;
    padding: 8px 15px;
    border-radius: 4px;
    color: #333333;
    font-weight: bold;
    box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.13);
  }
  .van-tabbar {
    z-index: 10;
    .van-tabbar-item {
      display: flex;
      flex-direction: row;
      color: #333333;
      font-size: 14px;
      font-weight: bold;
      .van-tabbar-item__icon {
        margin-bottom: 0;
      }
      .van-tabbar-item__text {
        padding-left: 5px;
      }
      &.van-tabbar-item--active {
        color: #ffffff;
        background-color: #2765E2;
      }
    }
  }
  .map-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    .search-bar {
      flex: 9;
      display: flex;
      justify-content: flex-start;
      background-color: #ffffff;
      img {
        height: 32px;
        width: 32px;
        padding: 5px;
      }
      .van-dropdown-menu {
        flex: 3;
      }
    }
    .search-icon {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #ffffff;
    }
  }
  .bmap-info-window-hide {
    visibility: hidden;
  }
  .bmap-info-window-custom {
    .van-popup-gas-info {
      padding: 10px;
    }
    .bm-bottom {
      padding: 5px 0 10px;
      text-align: right;
      margin-bottom: 10px;
      border-bottom: 1px solid #ededed;
    }
    .bm-header {
      display: flex;
      text-align: left;
      align-items: center;
      justify-content: flex-start;
      & > div:last-child {
        flex: 1;
        padding-left: 5px;
      }
      .title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        .item-tag {
          font-size: 14px;
          color: #666666;
          white-space: nowrap;
        }
        .item-name {
          max-width: 180px;
          color: #333333;
          font-size: 16px;
          font-weight: bold;
        }
      }
      .address {
        color: #999999;
        font-size: 12px;
        padding-top: 5px;
      }
    }
    .bm-content {
      &__price {
        padding: 10px;
        margin: 10px 0;
        background-color: #F7F7F7;
        display: flex;
        align-items: center;
        justify-content: space-around;
        &-item {
          text-align: center;
          .name {
            color: #666666;
            font-size: 12px;
            padding-bottom: 5px;
            .timer {
              font-size: 10px;
              display: inline-block;
            }
          }
          .price {
            color: #333333;
            font-size: 12px;
          }
        }
      }
    }
    .bm-charts {
      height: 190px;
      margin-bottom: 10px;
      &__title {
        color: #333333;
        height: 13px;
        line-height: 13px;
        padding-left: 18px;
        position: absolute;
        margin-top: 6px;
        font-size: 13px;
        background-repeat: no-repeat;
        background-size: contain;
      }
    }
  }
  .map-control-warp {
    .title {
      font-weight: bold;
    }
    .map-card {
      width: 100%;
      background-color: rgba(255, 255, 255, 1);

      .card-input {
        display: flex;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #EDEDED;
        white-space: nowrap;
        align-items: center;
        justify-content: space-between;
        .btn-echarts {
          width: 30px;
          height: 30px;
          cursor: pointer;
          border-radius: 5px;
          background-size: 60% 60%;
          background-repeat: no-repeat;
          background-position: center;
          border: 2px solid #5B8FF9;
          &.no {
            background-color: #5B8FF9;
          }
          &.ok {
            background-color: #ffffff;
          }
        }
      }
      .card-control {
        .van-search {
          .van-search__content {
            background-color: #f3f4f5 !important;
          }
        }
        .map-list-pagination {
          display: none;
          padding: 0;
          padding-top: 10px;
          font-size: 12px;
          font-weight: bold;
          color: #333333;
        }
        .card-list {
          margin: 0 10px;
          overflow: hidden;
          overflow-y: auto;
          height: 100%;
          padding-inline-start: 0;
        }
        .card-list li {
          cursor: pointer;
          padding: 10px 5px 10px 35px;
          list-style: none;
          background-size: 22px 29px;
          background-repeat: no-repeat;
          background-position: 3px 15px;
          border-bottom: 1px solid #ededed;
          .title, .title > div {
            display: flex;
            align-items: center;
          }
          .title {
            padding-top: 3px;
            justify-content: space-between;
            span {
              font-size: 14px;
              font-weight: normal;
            }
            .item-tag {
              color: #666666;
              white-space: nowrap;
            }
            .item-name {
              text-align: left;
              max-width: 170px;
              color: #333333;
              font-size: 16px;
              font-weight: bold;
            }
            .item-type {
              height: 15px;
              line-height: 15px;
              padding: 0 1.5px;
              font-size: 9px;
              border-radius: 2px;
              background-color: #22BA55;
              color: #ffffff;
            }
          }
          .address {
            padding-top: 8px;
            font-size: 12px;
            text-align: left;
            color: #999999;
          }
          .content {
            padding-top: 10px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            & > span {
              &:first-child {
                padding-right: 15px;
              }
            }
            .time {
              font-size: 11px;
              color: #999999;
            }
          }
        }
      }
    }
  }
  .map-control-opt {
    top: 0;
    right: 0;
    z-index: 6;
    padding: 15px;
    position: absolute;
    label {
      padding: 5.5px;
      margin-right: 10px;
      background-color: #ffffff;
    }
    button {
      width: 80px;
      color: #2765E2;
      margin-left: 10px;
    }
  }
  .marker-label-tag {
    padding: 4px 8px;
    .title {
      font-size: 13px;
      font-weight: bold;
      padding-bottom: 8px;
    }
    .detail {
      font-size: 10px;
      color: #6E7A8F;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      .number {
        padding-right: 10px;
      }
    }
  }
  .text-bold-number {
    color: #333333 !important;
    font-weight: bold !important;
  }
  .anchorBL > img {
    display: none;
  }
  .text-overflow-ellipsis {
    display: -webkit-box;
    /*作为弹性伸缩盒子模型显示*/
    -webkit-line-clamp: 1;
    /*显示的行数；如果要设置2行加...则设置为2*/
    overflow: hidden;
    /*超出的文本隐藏*/
    text-overflow: ellipsis;
    /* 溢出用省略号*/
    -webkit-box-orient: vertical;
    /*伸缩盒子的子元素排列：从上到下*/
  }
  .map-card-wrap {
    width: 100%;
    &.map {
      position: absolute;
      z-index: 10000;
      top: 0;
      left: 0;
    }
    &__info {
      margin: 0;
      border-radius: unset;
      background-color: #ffffff;
      box-shadow: 0px 0px 9px 1px rgba(14, 14, 16, 0.16);
      &.map {
        margin: 12px;
        border-radius: 6px;
      }
      &-box, &-search {
        padding: 15px 10px;
      }
      &-box {
        .item {
          .name {
            font-size: 12px;
            color: #606574;
            padding-bottom: 10px;
          }
          .value {
            font-size: 16px;
            color: #1C1D21;
            .unit {
              font-size: 12px;
              color: #868B9A;
            }
          }
        }
      }
      &-search {
        padding: 0 10px;
        border-top: 1px solid #ededed;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .van-dropdown-menu {
          width: 70%;
          .van-dropdown-menu__item {
            justify-content: flex-start;
          }
        }
      }
    }
  }
  .list-icon {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 10000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0px 0px 9px 1px rgba(14, 14, 16, 0.16);

    background-repeat: no-repeat;
    background-position: center 10px;
    background-size: 45%;
    &.list {
      background-image: url(images/home/list-checkbox@2x.png);
    }
    &.map {
      background-image: url(images/home/map-draw@2x.png);
    }
  }
  .item-info .item-info__user, .item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-wrap {
    height: 45px;
    width: 260px;
    position: absolute;
    bottom: 30px;
    border-radius: 25px;
    background-color: #ffffff;
    left: 50%;
    margin-left: -130px;
    z-index: 10000;
    box-shadow: 0px 0px 5px 1px rgba(28, 29, 33, 0.16);

    display: flex;
    align-items: center;
    justify-content: space-around;
    .phone, .stopwatch {
      width: 50%;
      height: 25px;
      line-height: 25px;
      padding-left: 30px;
      background-size: 21px 21px;
      background-repeat: no-repeat;
      color: #2979FF;
    }
    .phone {
      border-right: 1px solid #dfdfdf;
      background-position: 18px center;
      background-image: url(images/home/phone@2x.png);
    }
    .stopwatch {
      background-position: 25px center;
      background-image: url(images/home/stopwatch@2x.png);
    }
  }
  .footer-trail-wrap {
    width: 350px;
    position: absolute;
    bottom: 12px;
    left: 50%;
    margin-left: -175px;
    z-index: 10000;
    text-align: left;

    .back-time-list {
      padding: 10px 0;
      .van-tag {
        margin-right: 10px;
      }
    }
    .back-info-wrap {
      padding: 12px;
      border-radius: 4px;
      background-color: #ffffff;
      box-shadow: 0px 0px 5px 1px rgba(28, 29, 33, 0.16);
      .data-info {
        display: flex;
        font-size: 12px;
        padding: 8px 15px;
        border-radius: 2px;
        background-color: #ededed;
        justify-content: space-between;
      }
      .back-time {
        display: flex;
        padding: 10px 0;
        align-items: center;
        justify-content: space-between;
      }
    }
  }
  .item-header {
    height: 36px;
    margin-bottom: 5px;
    border-bottom: 1px solid #efeff4;
  }
  .driver-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
    overflow-x: auto;
    .driver-list {
      padding: 4px 8px;
      background-color: #2979FF;
      border-radius: 2px;
      margin-right: 8px;
      color: #ffffff;
      white-space: nowrap;
      &:last-child {
        margin-right: 0;
      }
    }
  }
  .list-wrap {
    color: #1c1d21;
    padding: 10px 15px;
    .list-404 {
      /*背景图*/
      height: 50%;
      width: 100%;
      background-size: 50% auto;
      background-position: center 200px;
      background-repeat: no-repeat;
      background-image: url(images/home/404@2x.png);
      /*文字位置控制*/
      color: #868B9A;
      display: flex;
      justify-content: center;
      align-items: flex-end;
    }

    &__item {
      padding: 12px;
      text-align: left;
      border-radius: 4px;
      margin-bottom: 10px;
      background-color: #ffffff;
      box-shadow: 0px 0px 10px 1px rgba(28, 29, 33, 0.02);

      &.truck {
        padding: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        .volume {
          flex: 1;
          height: 50px;
          line-height: 50px;
          padding-left: 40px;
          background-size: 32px 32px;
          background-repeat: no-repeat;
          background-position: left center;
          background-image: url(images/home/red@2x.png);
        }
      }
      .item-info .label {
        padding: 5px 0;
        background-repeat: no-repeat;
        background-position: left center;
        background-size: contain;
        padding-left: 28px;
        margin-bottom: 5px;
        &.user {
          background-image: url(images/home/user@2x.png);
        }
        &.speed {
          background-image: url(images/home/speed@2x.png);
        }
        &.local {
          background-image: url(images/home/local@2x.png);
        }
        &:last-child {
          margin-bottom: 0;
        }
        .status {
          font-size: 10px;
          border-radius: 2px;
          padding: 2px 8px;
          &__0 {
            color: rgba(69, 199, 151, 1);
            background-color: rgba(69, 199, 151, .1);
          }
          &__1 {
            color: rgba(41, 121, 255, 1);
            background-color: rgba(41, 121, 255, .1);
          }
          &__2 {
            color: rgba(28, 29, 33, 1);
            background-color: rgba(28, 29, 33, .1);
          }
        }
      }
    }
  }
}
