<template>
  <div class="home">
    <div class="header">
      <h2>电能替代分布式控制试验平台</h2>
      <router-link :to="{path:'control/manual'}" tag="div" class="back">返回后台</router-link>
    </div>
    <div class="main">
      <div class="left">
        <div class="left_top bgimg">
          <div class="title">电磁锅炉</div>
          <div class="info_box">
            <div class="dev_img">
              <img src="../../assets/images/电磁锅炉.png" alt="">
            </div>
            <div class="dev_data"></div>
          </div>
          <div class="chart_box">
            <div class="dev_chart"></div>
          </div>
        </div>
        <div class="left_bottom bgimg">
          <div class="title">蓄热锅炉</div>
          <div class="info_box">
            <div class="dev_img">
              <img src="../../assets/images/蓄热锅炉.png" alt="">
            </div>
            <div class="dev_data"></div>
          </div>
          <div class="chart_box">
            <div class="dev_chart"></div>
          </div>
        </div>
      </div>
      <div class="middle">
        <div class="middle_top">
          <div class="important_data"></div>
          <div class="my3D_img"></div>
          <div class="important_data"></div>
        </div>
        <div class="middle_bottom">
          <div class="chart_box bgimg"></div>
          <div class="wendu_box">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="right_top bgimg">
          <div class="title">空气源热泵</div>
          <div class="info_box">
            <div class="dev_img">
              <img src="../../assets/images/空气源热泵.png" alt="">
            </div>
            <div class="dev_data"></div>
          </div>
          <div class="chart_box">
            <div class="dev_chart"></div>
          </div>
        </div>
        <div class="right_bottom bgimg">
          <div class="title">发热电缆</div>
          <div class="info_box">
            <div class="dev_img">
              <img src="../../assets/images/发热电缆.png" alt="">
            </div>
            <div class="dev_data"></div>
          </div>
          <div class="chart_box">
            <div class="dev_chart"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup name="Index">



</script>

<style scoped lang="scss">
.home{
  height: 100%;
  background-image: url("../../assets/images/bg.png");
  background-size: 100% 100%;
  .header{
    position: relative;
    width: 100%;
    height: 70px;
    background-image: url("../../assets/images/headtitle.png");
    background-size: 100% 100%;
    h2{
      font-size: 36px;
      color: #AFEAFF;
      font-weight: bold;
      text-align: center;
      line-height: 70px;
    }
    .back{
      position: absolute;
      top: 5px;
      right: 20px;
      font-size: 16px;
      color: #fff;
      padding: 8px 15px;
      background-color: #2c3e50;
    }
  }
  .main{
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 20px 20px 20px;
    width: 100%;
    height: calc(100% - 70px);
    .left{
      width: 24%;
      height: 100%;
      .left_top{
        width: 100%;
        height: 49%;
        margin-bottom: 4%;
      }
      .left_bottom{
        width: 100%;
        height: 49%;
      }
    }
    .middle{
      display: flex;
      flex-direction: column;
      width: 50.5%;
      height: 100%;
      .middle_top{
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        flex: 2;
        width: 100%;
        padding-bottom: 20px;
        .important_data{
          width: 14%;
          height: 100%;
          border: 1px solid #fff;
        }
        .my3D_img{
          width: 72%;
          height: 100%;
          border: 1px solid #fff;
        }
      }
      .middle_bottom{
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        flex: 1;
        width: 100%;
        .chart_box{
          width: 49.5%;
          height: 100%;
        }
        .wendu_box{
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          width: 49%;
          height: 100%;
          .item{
            width: 24%;
            height: 48.5%;
            background-color: #1ab394;
            &:first-child{
              margin-bottom: 8px;
            }
          }
        }
      }
    }
    .right{
      width: 24%;
      height: 100%;
      .right_top{
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 49%;
        margin-bottom: 4%;
      }
      .right_bottom{
        width: 100%;
        height: 49%;
      }
    }
  }
}
.title{
  width: 45%;
  height: 30px;
  line-height: 30px;
  margin: 0 auto 20px auto;
  color: #19C3F4;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  background-image: url("../../assets/images/wrappertitle.png");
  background-size: 100% 100%;
}
.info_box{
  display: flex;
  width: 100%;
  height: 44%;
  padding: 10px;
  .dev_img{
    width: 50%;
    height: 100%;
    border: 1px solid #fff;
    img{
      width: 100%;
      height: 100%;
    }
  }
  .dev_data{
    width: 50%;
    height: 100%;
    border: 1px solid #fff;
  }
}
.chart_box{
  width: 100%;
  height: 44%;
  padding: 0 10px 10px 10px;
  .dev_chart{
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
  }
}
.bgimg{
  background-image: url("../../assets/images/wrapperbox.png");
  background-size: 100% 100%;
}
</style>

