<template>
  <div>
    <div class="fire-list">
    <!-- 火灾总数 -->
    <div class="fire">
      <div>
        <div>
          <span class="fire-num">456</span>
          <span>起</span>
        </div>
        <div>火灾总数</div>
      </div>
      <div>
        <img src="../../../assets/images/Vector (1).png" alt="" />
        <span class="num">15%</span>
      </div>
    </div>
    <!--亡人  -->
    <div class="fire">
      <div>
        <div>
          <span class="fire-num">8</span>
          <span>人</span>
        </div>
        <div>亡人</div>
      </div>
      <div>
        <img src="../../../assets/images/Vector (2).png" alt="" />
        <span class="num">15%</span>
      </div>
    </div>
    <!-- 伤人 -->
    <div class="fire">
      <div>
        <div>
          <span class="fire-num">46</span>
          <span>人</span>
        </div>
        <div>伤人</div>
      </div>
      <div>
        <img src="../../../assets/images/Vector (1).png" alt="" />
        <span class="num">10%</span>
      </div>
    </div>
    <!-- 直接经济损失 -->
    <div class="fire">
      <div>
        <div>
          <span class="fire-num">6</span>
          <span class="money">万元</span>
          <img src="../../../assets/images/Vector (1).png" alt="" />
          <span class="num">15%</span>
        </div>
        <div class="manoue">直接经济损失</div>
      </div>
      <!-- <div>
        <img src="../../../assets/images/Vector (1).png" alt="">
        <span class="num">15%</span>
      </div> -->
    </div>
    </div>
    <div class="charts">
      <div>
        <ul class="options">
          <li class="item">火宅总数</li>
          <li class="item">亡人</li>
          <li class="item active">伤人</li>
          <li class="item">直接经济损失</li>
          <li class="item">起火原因</li>
        </ul>
      </div>
      <div>
        <Chart />
      </div>
    </div>
  </div>
</template>

<script>
import Chart from './Chart.vue'
export default {
  name: 'FireIndex',
  components: {
    Chart
  }
}
</script>

<style lang="less" scoped>
.charts {
  .options {
    list-style: none;
    display: flex;
    gap: 13px;
    padding: 2px 4px;
    justify-content: end;
    .item {
      color: #828a93;
      font-size: 12px;
    }
    .active {
      color: #00E0FF;
    }
  }
}
.fire-list {
  display: flex;
  justify-content: space-around;
  margin: 14px 2px 10px 5px;
  letter-spacing: 1px;
}
// 渐变
.fire {
  width: 105px;
  height: 40px;
  background: #2b3739;
  font-size: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 3px 0;
  border-radius: 2px;
  .fire-num {
    color: #ffbf1a;
    font-size: 20px;
  }
  .num {
    color: #fb3636;
    font-size: 16px;
  }
}
img {
  display: inline-block;
  width: 10px;
  height: 20px;
}
.manoue {
  font-size: 12px !important;
  margin-right: 10px;
}
.money {
  margin-right: 5px;
}
</style>
