<template>
  <!-- 今日人员/车辆行为预警情况 -->
  <div class="main">
    <div class="mian-contain">
      <div class="top">
        <div class="top-tit">
          <img src="../../../assets/arrow.png" alt="" />
          <i>今日人员/车辆行为预警情况</i>
        </div>
        <div class="top-line">
          <img src="../../../assets/top-line.png" alt="" />
        </div>
      </div>
      <div class="container10">
        <div class="item-main">
          <div class="trapezoid">
            <div class="text">10</div>
          </div>
          <div
            class="trapezoid"
            style="width: 272px; border-top: 32px solid #43bec64d"
          >
            <div class="text">7</div>
          </div>
          <div
            class="trapezoid"
            style="width: 224px; border-top: 32px solid #3d65f04d"
          >
            <div class="text">7</div>
          </div>
          <div
            class="trapezoid"
            style="width: 177px; border-top: 32px solid #5e97cc4d"
          >
            <div class="text">79</div>
          </div>
        </div>
        <div class="item-lengent">
          <div class="item-lengent-text">
            <div class="item-lengent-text-icon"></div>
            <span>人员闸口预警数</span>
          </div>
          <div class="item-lengent-text">
            <div
              class="item-lengent-text-icon"
              style="background: #2be7e7"
            ></div>
            <span>人员摄像头抓拍预警数</span>
          </div>
          <div class="item-lengent-text">
            <div
              class="item-lengent-text-icon"
              style="background: #3d65f0"
            ></div>
            <span>人员进出港预警数</span>
          </div>
          <div class="item-lengent-text">
            <div
              class="item-lengent-text-icon"
              style="background: #6e8de1"
            ></div>
            <span>车辆卡口预警数</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.main {
  width: 455px;
  height: 308px;
  border-radius: 8px;
  // background: rgba(26, 52, 125, 0.95);
  padding: 10px;
}
.top {
  height: 45px;
  .top-tit {
    font-size: 18px;
    font-weight: 600;
    line-height: 23.4px;
    text-align: left;
    color: #ffffff;
    img {
      margin-right: 10px;
    }
  }
  .top-line {
    margin-top: -7px;
  }
}
.mian-contain {
  border-radius: 8px;
  padding: 10px;
  background: rgba(29, 65, 171);
  // overflow: hidden;
  height: 100%;
}
.container10 {
  padding: 15px 40px 10px;
  .item-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    .trapezoid {
      position: relative; /* 相对定位 */
      width: 320px;
      height: 0;
      border-top: 32px solid #a23a2b4d;
      border-right: 15px solid transparent;
      border-left: 15px solid transparent;
      margin-bottom: 10px;
      // background: #A23A2B4D;
      // border: 1.5px solid #ff8c85;
    }
    .text {
      position: absolute;
      top: -15px;
      // top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 15px;
      font-weight: 700;
      // line-height: 30px;
      color: white;
    }
  }
  .item-lengent {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
    &-text {
      width: 45%;
      display: flex;
      align-items: center;
      &-icon {
        width: 12px;
        height: 12px;
        background: #ff8c85;
        margin-right: 8px;
      }
      span {
        font-size: 13px;
        font-weight: 400;
        line-height: 24px;
        text-align: left;
        color: #ebefffcc;
      }
    }
  }
}
</style>
