<template>
  <div>
    <div class="num-box">
      <!-- 物联网建筑数量 -->
      <div class="build-num">
        <div class="build">
          <span
            ><img src="@/assets/images/Vector (3).png" alt="" />
            <span>已接入物联网建筑数</span>
          </span>
          <span class="num">1542</span>
          <span class="build-line">栋</span>
        </div>
      </div>
      <!-- 设备数 -->

      <div class="point-num">
        <div class="build-num">
          <div class="build">
            <span
              >设备总数
              <span class="num">1276</span>
            </span>
            <span
              >在线
              <span class="online">1200</span>
            </span>
            <span
              >警告
              <span class="warning">786</span>
            </span>
          </div>
        </div>
        <div class="pressure">
          <div class="pressure-num">
            <div class="pressure-bg">2436</div>
            <ul class="pressure-list">
              <li>水压监测点位（个）</li>
              <li class="pressure-line">
                <span>在线</span>
                <img
                  class="pressure-img"
                  src="../../assets/images/Ellipse 275.png"
                  alt=""
                />
                <span class="bumer">2670 </span>
                <span class="unit">个</span>
              </li>
              <li class="pressure-line">
                <span>告警</span>
                <img
                  class="pressure-img"
                  src="../../assets/images/Ellipse 275 (1).png"
                  alt=""
                />
                <span class="bumer">3144</span>
                <span class="unit">个</span>
              </li>
            </ul>
          </div>
          <div class="pressure-num">
            <div class="pressure-bg">2436</div>
            <ul class="pressure-list">
              <li>水压监测点位（个）</li>
              <li class="pressure-line">
                <span>在线</span>
                <img
                  class="pressure-img"
                  src="../../assets/images/Ellipse 275.png"
                  alt=""
                />
                <span class="bumer">2670 </span>
                <span class="unit">个</span>
              </li>
              <li class="pressure-line">
                <span>告警</span>
                <img
                  class="pressure-img"
                  src="../../assets/images/Ellipse 275 (1).png"
                  alt=""
                />
                <span class="bumer">31</span>
                <span class="unit">个</span>
              </li>
            </ul>
          </div>
          <div class="pressure-num">
            <div class="pressure-bg">2436</div>
            <ul class="pressure-list">
              <li>水压监测点位（个）</li>
              <li class="pressure-line">
                <span>在线</span>
                <img
                  class="pressure-img"
                  src="../../assets/images/Ellipse 275.png"
                  alt=""
                />
                <span class="bumer">2670 </span>
                <span class="unit">个</span>
              </li>
              <li class="pressure-line">
                <span>告警</span>
                <img
                  class="pressure-img"
                  src="../../assets/images/Ellipse 275 (1).png"
                  alt=""
                />
                <span class="bumer">31</span>
                <span class="unit">个</span>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script></script>

<style scoped>
.num-box {
  width: 414px;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
}
.build-num {
  width: 100%;
  height: 42px;
  background: #657f91;
  border-radius: 5px;
}
.build {
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 12px;
  color: #fff;
}
.point-num {
  flex: 1;
  margin-top: 10px;
}
.num {
  font-size: 30px;
  color: #ffd74b;
  margin-left: 5px;
}
img {
  width: 20px;
  height: 19px;
}
.online {
  font-size: 30px;
  color: #00ff66;
  margin-left: 5px;
}
.warning {
  font-size: 30px;
  color: #ff4b23;
  margin-left: 5px;
}
.pressure {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.pressure-num {
  width: 30%;
  height: 150px;
  letter-spacing: 1px;
  font-size: 12px;
}
.pressure-img {
  display: inline-block !important;
  width: 8px;
  height: 8px;
  margin-left: 5px;
}
.pressure-list {
  font-size: 12px;
  color: #fff;
  line-height: 25px;
  font-family: "Abel";
}
.pressure-bg {
  width: 66px;
  height: 77px;
  background: url("@/assets/images/water.png") no-repeat;
  font-size: 24px;
  text-align: center;
  padding-left: 3px;
  padding-top: 20px;
  box-sizing: border-box;
  margin: auto;
}
.pressure-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bumer {
  width: 50px;
  font-size: 16px;
  font-family: "Abel";
  text-align: center;
  /* margin-right: 8px; */
}
.unit {
  margin-right: 12px;
}
.build-line {
  display: inline-block;
  margin-top: 6px;
}
</style>
