<template>
  <div class="app-container">
    <el-row :gutter="15" type="flex">
      <el-col :span="5">
        <div class="status-container">
          <h3 class="status-title">定位状态</h3>
          <div class="status-group">
            <div class="status-item">
              <span class="count online">18</span>
              <div class="label"><svg-icon icon-class="camera" />在线数量</div>
            </div>
            <div class="status-item">
              <span class="count offline">18</span>
              <div class="label"><svg-icon icon-class="camera" />离线数量</div>
            </div>
          </div>
        </div>
        <div class="status-container">
          <h3 class="status-title">视频分析任务启动状态</h3>
          <div class="status-group">
            <div class="status-item">
            </div>
          </div>
      </el-col>
      <el-col :span="13">
        <el-card
          shadow="hover"
          :body-style="{ padding: '20px', height: 'calc(100vh - 200px)' }"
        >
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card
          shadow="hover"
          :body-style="{ padding: '20px', height: 'calc(100vh - 200px)' }"
        >
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Index",
  components: {},
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.app-container {
  padding-right: 0;
  .fs30 {
    font-size: 38px;
  }
  .ac {
    text-align: center;
  }
  .status-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);

    .status-title {
      margin: 0 0 20px 0;
      font-size: 16px;
      color: #333;

      .title-icon {
        margin-right: 8px;
        font-size: 20px;
        color: #409eff;
      }
    }

    .status-group {
      display: flex;
      gap: 20px;

      .status-item {
        flex: 1;
        text-align: center;

        .count {
          font-size: 32px;
          font-weight: bold;
          display: block;
          margin-bottom: 8px;

          &.online {
            color: #67c23a;
          }
          &.offline {
            color: #f56c6c;
          }
        }

        .label {
          font-size: 14px;
          color: #666;

          .svg-icon {
            vertical-align: middle;
            margin-right: 5px;
            font-size: 18px;
          }
        }
      }
    }
  }
}
</style>
