<template>
  <div class="main-container-box">
    <div class="nav-header">安防综合管理平台</div>
    <div class="panel-box">
      <div class="panel sbgk">
        <div class="panel-tit">设备工况</div>
        <div class="pie-box">
          <div class="pie-item">
            <pie-sounder></pie-sounder>
          </div>

          <div class="pie-item">
            <pie-camera></pie-camera>
          </div>
        </div>

        <div class="num-analysis">
          <div>
            <ul>
              <li>
                <p class="num-tit">设备总数</p>
                <p class="num-no">260</p>
              </li>
              <li>
                <p class="num-tit">异常数量</p>
                <p class="num-no" style="color: #f84803">15</p>
              </li>
            </ul>
          </div>
          <div>
            <ul>
              <li>
                <p class="num-tit">设备总数</p>
                <p class="num-no" style="color: #00acff">500</p>
              </li>
              <li>
                <p class="num-tit">异常数量</p>
                <p class="num-no" style="color: #fec400">100</p>
              </li>
            </ul>
          </div>
        </div>

        <div class="panel-footer"></div>
      </div>
      <div class="panel monitor">
        <div class="panel-tit">视频监控</div>
        <ul class="monitor-list">
          <li>
            <img src="@/assets/monitor.png" alt="" />
            <p class="monitor-tit">摄像头1</p>
          </li>
          <li>
            <img src="@/assets/monitor.png" alt="" />
            <p class="monitor-tit">摄像头2</p>
          </li>
          <li>
            <img src="@/assets/monitor.png" alt="" />
            <p class="monitor-tit">摄像头3</p>
          </li>
          <li>
            <img src="@/assets/monitor.png" alt="" />
            <p class="monitor-tit">摄像头4</p>
          </li>
          <li>
            <img src="@/assets/monitor.png" alt="" />
            <p class="monitor-tit">摄像头5</p>
          </li>
          <li>
            <img src="@/assets/monitor.png" alt="" />
            <p class="monitor-tit">摄像头6</p>
          </li>
        </ul>
        <div class="panel-footer"></div>
      </div>
    </div>
  </div>
</template>

<script>
import pieSounder from "./components/pieSounder";
import PieCamera from "./components/pieCamera";
// import { flexible } from "@/utils";

export default {
  components: { pieSounder, PieCamera },
  data() {
    return {};
  },
};
</script>

<style lang="scss">
/* 修复input 背景不协调 和光标变色 */
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */

$bg: #283443;
$light_gray: #fff;
$cursor: #fff;

@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
  .main-container-box .el-input input {
    color: $cursor;
  }
}
</style>

<style lang="scss" scoped>
// @import "../../styles/mixin.scss";

.main-container-box {
  min-width: 1280px;
  min-height: 100%;
  width: 100%;
  height: 100vh;
  background-color: #000;
  overflow: hidden;
  color: #fff;
}

// 头部导航样式
.nav-header {
   min-width: 1280px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  font-size: 4rem;
  line-height: 8rem;
  background: url(../../assets/nav-header-bg.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

// @media (max-width: 1440px) {
//   .nav-header {
//     font-size: 30px;
//     line-height: 60px;
//   }
// }

.panel-box {
  margin-top: 8rem;
  position: relative;
  height: calc(100vh - 8rem);
  min-width: 1280px;
}

.panel {
  width: 41rem;

  min-width: 260px;
  position: relative;
  background: #021132;
  border: 1px solid #3486da;

  .panel-tit {
    background: linear-gradient(
      to right,
      #021132 0%,
      #3053af 50%,
      #021132 100%
    );
    padding: 1.2rem;
    color: #fff;
    text-align: center;
    font-size: 1.6rem;
    font-family: "impact";
  }
  .pie-item {
    width: 50%;
    height: 24rem;
    display: inline-block;
    vertical-align: top;
  }
}

.panel::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #02a6b5;
  border-left: 2px solid #02a6b5;
}
.panel::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #02a6b5;
  border-right: 2px solid #02a6b5;
}
.panel .panel-footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.panel .panel-footer::before {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #02a6b5;
  border-left: 2px solid #02a6b5;
}
.panel .panel-footer::after {
  position: absolute;
  bottom: 0;
  right: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #02a6b5;
  border-right: 2px solid #02a6b5;
}

.panel.sbgk {
  position: absolute;
  left: 2rem;
  top: 2rem;
  z-index: 2;
}


.num-analysis {
  margin: 1rem;
}
.num-analysis > div {
  width: 48.7%;
  border: 1px solid #3486da;
  display: inline-block;
  background: #074198;
}
.num-analysis > div:first-child {
  margin-right: 1rem;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

li,
p {
  padding: 0;
  margin: 0;
  list-style: none;
}
img {
  display: block;
}
.num-analysis ul li {
  padding: 0 1rem;
  margin: 10px 0;
  float: left;
  width: 50%;

  text-align: center;
  position: relative;
}

.num-analysis ul li:first-child {
  border-right: 1px dashed #42a4ff;
}
.num-tit {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.num-no {
  font-size: 1.8rem;
  color: #04f9ab;
  font-family: "impact";
}

/* 约束屏幕尺寸 */
@media screen and (max-width: 1024px) {
  html {
    font-size: 80px !important;
  }
}
@media screen and (min-width: 1920px) {
  html {
    font-size: 192px !important;
  }
}





.panel.monitor {
  height: auto;
  position: absolute;
  bottom: 3rem;
  right: 1rem;

  z-index: 3;
}

.monitor-list {
  padding: 1.2rem;
  overflow: hidden;
}
.monitor-list li {
  width: 50%;
  position: relative;
  display: block;
  float: left;
}
.monitor-list li img {
  width: 100%;
}
.monitor-tit {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  font-size: 1.2rem;
  line-height: 3rem;
  text-indent: 1rem;
  // display:none;

  background: rgba(0, 0, 0, 0.7);
}
</style>
