<template>
  <div class="center-area-green">
    <div class="container">
      <div class="risk-score">
        <div class="vent-icon"></div>
        <div class="item-content">
          <div class="ite-label">瓦斯监测预警</div>
          <div class="ite-val">低风险</div>
        </div>
        <div class="item-content">
          <div class="ite-label">矿井瓦斯等级鉴定</div>
          <div class="ite-val">低瓦斯</div>
        </div>
      </div>
      <div class="dust-warn">
        <div class="ite-content">
          <div class="ite-label">粉尘监测预警</div>
          <div class="ite-val">低风险</div>
        </div>
      </div>
      <div class="water-warn">
        <div class="ite-content">
          <div class="ite-label">水灾</div>
          <div class="ite-val">低风险</div>
        </div>
      </div>
      <div class="vent-warn">
        <div class="ite-content">
          <div class="ite-label">通风监测预警</div>
          <div class="ite-val">低风险</div>
        </div>
      </div>
      <div class="device-warn">
        <div class="device-icon"></div>
        <div class="ite-content">
          <div class="ite-label">设备监测预警</div>
          <div class="ite-val">低风险</div>
        </div>
      </div>
      <div class="fire-warn">
        <div class="fire-icon"></div>
        <div class="ite-content">
          <div class="ite-label">火灾监测预警</div>
          <div class="ite-val">低风险</div>
        </div>
      </div>
      <div class="db-warn">
        <div class="ite-content">
          <div class="ite-label">顶板</div>
          <div class="ite-val">低风险</div>
        </div>
      </div>
      <div class="gas-warn">
        <div class="ite-content1">
          <div class="item-label">风险得分</div>
          <div class="item-val">1.45</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
</script>

<style lang="less" scoped>
.center-area-green {
  height: 100%;

  .container {
    position: relative;
    width: 60%;
    height: 70%;
    margin-top: 16%;
    margin-left: 20%;
    background: url(/src/assets/images/home-warn/6-1.png) no-repeat center;
    background-size: 100% 100%;
  }

  .risk-score {
    display: flex;
    position: absolute;
    flex-direction: row;
    justify-content: space-around;
    left: 45%;
    top: -46px;
    transform: translate(-44%, 0);
    width: 299px;
    height: 60px;
    font-size: 13px;
    color: #fff;
    background: url(/src/assets/images/home-warn/6-2.png) no-repeat;
    background-size: 100% 100%;
    .item-content {
      margin-left: 30px;
    }
  }

  .dust-warn {
    position: absolute;
    right: -26%;
    top: 197px;
    width: 217px;
    height: 64px;
    color: #fff;
    background: url(/src/assets/images/home-warn/6-3.png) no-repeat;
    background-size: 100% 100%;
  }
  .water-warn {
    position: absolute;
    right: -19%;
    bottom: 70px;
    width: 217px;
    height: 64px;
    color: #fff;
    background: url(/src/assets/images/home-warn/6-7.png) no-repeat;
    background-size: 100% 100%;
  }
  .db-warn {
    position: absolute;
    left: -20%;
    bottom: 70px;
    width: 217px;
    height: 64px;
    color: #fff;
    background: url(/src/assets/images/home-warn/6-8.png) no-repeat;
    background-size: 100% 100%;
  }
  .vent-warn {
    position: absolute;
    left: -20%;
    top: 64px;
    width: 207px;
    height: 64px;
    color: #fff;
    background: url(/src/assets/images/home-warn/6-5.png) no-repeat;
    background-size: 100% 100%;
  }
  .device-warn {
    position: absolute;
    right: -21%;
    top: 64px;
    width: 217px;
    height: 64px;
    color: #fff;
    background: url(/src/assets/images/home-warn/6-6.png) no-repeat;
    background-size: 100% 100%;
  }
  .fire-warn {
    position: absolute;
    left: -7%;
    top: 197px;
    transform: translate(-50%, 0);
    width: 217px;
    height: 64px;
    color: #fff;
    background: url(/src/assets/images/home-warn/6-4.png) no-repeat;
    background-size: 100% 100%;
  }
  .gas-warn {
    position: absolute;
    left: 51%;
    top: 65%;
    transform: translate(-50%, 0);
    width: 182px;
    height: 80px;
    text-align: center;
    line-height: 80px;
  }
  .item-content {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: 58px;
    line-height: 32px;
  }
  .ite-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    margin-left: 100px;
    line-height: 33px;
  }
  .ite-val {
    font-size: 12px;
    font-family: 'douyuFont';
    color: #bcf6fc !important;
  }
  .ite-content1 {
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .item-val {
    font-size: 22px;
    font-family: 'douyuFont';
    color: #b9f3ff !important;
    font-weight: bold;
    line-height: 88px;
  }
  .item-label {
    font-weight: bold;
    font-size: 22px;
    color: #fafafb;
  }
}
</style>