<template>
  <div class="inspection">
    <div class="title-div">
      <div class="title-icon"></div>
      <div class="title-span">智慧巡检</div>
    </div>
    <div class="interval"></div>
    <div class="content">
      <div class="content-item">
        <div class="item-icon business-template"></div>
        <div class="item-span">业务模版</div>
        <div class="item-interval">
          <div class="item-interval-content"></div>
        </div>
        <div class="item-value">
          <div class="item-value-content">137</div>
          <div class="item-value-shadow">137</div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-icon hashrate"></div>
        <div class="item-span">算力能力</div>
        <div class="item-interval">
          <div class="item-interval-content"></div>
        </div>
        <div class="item-value">
          <div class="item-value-content">325</div>
          <div class="item-value-shadow">325</div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-icon model-template"></div>
        <div class="item-span">模型模版</div>
        <div class="item-interval">
          <div class="item-interval-content"></div>
        </div>
        <div class="item-value">
          <div class="item-value-content">734</div>
          <div class="item-value-shadow">734</div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-icon analytical-report"></div>
        <div class="item-span">分析报告</div>
        <div class="item-interval">
          <div class="item-interval-content"></div>
        </div>
        <div class="item-value">
          <div class="item-value-content">923</div>
          <div class="item-value-shadow">923</div>
        </div>
      </div>
    </div>
  </div>
</template>

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

<style lang="scss" scoped>
.inspection{
  position: absolute;
  top: 41px;
  right: 32px;
  width: 328px;
  height: 368px;
  background-image: url('/public/projecthome/background.png');
  background-size: 100% 100%;
  padding-top: 19px;
  .title-div{
    padding-left: 23px;
    width: 100%;
    height: 33px;
    display: flex;
    align-items: center;
    margin-bottom: 13px;
    .title-icon{
      width: 24px;
      height: 24px;
      background-image: url('/public/projecthome/inspection_icon.png');
      background-size: 100% 100%;
      margin-right: 14px;
    }
    .title-span{
      font-family: 'PingFangSC-Medium';
      font-weight: 500;
      font-size: 22px;
      color: #FFFFFF;
      line-height: 33px;
      text-shadow: 0px 10px 30px rgba(0,0,6,0.15);
    }
  }
  .interval{
    width: 328px;
    height: 1px;
    box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
    border: 1px solid #4E5778;
    opacity: 0.2;
    margin-bottom: 22px;
  }
  .content{
    display: flex;
    flex-wrap: wrap;
    padding-left: 38px;
    gap: 16px; 
    .content-item{
      position: relative;
      width: 118px;
      height: 118px;
      background: rgb(70, 84, 129);
      box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
      border-radius: 10px;
      padding-top: 58px;
      .item-icon{
        position: absolute;
        top: -7px;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 66px;
        background-size: 100%;
      }
      .business-template{
        background-image: url('/public/projecthome/inspection_business_template.png');
      }
      .hashrate{
        background-image: url('/public/projecthome/inspection_hashrate.png');
      }
      .model-template{
        background-image: url('/public/projecthome/inspection_model_template.png');
      }
      .analytical-report{
        background-image: url('/public/projecthome/inspection_analytical_report.png');
      }
      .item-span{
        display: flex;
        justify-content: center;
        font-family: 'PingFangSC-Medium';
        font-weight: 500;
        font-size: 10px;
        color: #FFFFFF;
        line-height: 14px;
        text-shadow: 0px 10px 30px rgba(0,0,6,0.15);
        margin-bottom: 4px;
      }
      .item-interval{
        height: 1px;
        display: flex;
        justify-content: center;
        margin-bottom: 2px;
        .item-interval-content{
          width: 50px;
          height: 1px;
          border: 1px solid #4E5778;
          box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
        }
      }
      .item-value{
        position: relative;
        font-family: 'Bebas';
        font-size: 24px;
        .item-value-content{
          position: absolute;
          top: 0px;
          left: 50%;
          transform: translateX(-50%);
          color: transparent;
          background: linear-gradient(180deg, #BABEF2 0%, #FDFFF4 100%);
          -webkit-background-clip: text;
          background-clip: text;
          -webkit-text-fill-color: transparent;
          z-index: 1;

        }
        .item-value-shadow{
          position: absolute;
          top: 0px;
          left: 50%;
          transform: translateX(-50%);
          color: transparent;
          text-shadow: 0px 10px 30px rgba(0,0,6,0.15), 0px 2px 4px rgba(0,0,0,0.5);
        }
      }
    }
  }
}
</style>
