<template>
  <div class="info">
    <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-div">
          <div class="item-icon drone-airport"></div>
        </div>
        <div class="item-info-div">
          <div class="item-info-content">
            <div class="info-title">无人值守机场</div>
            <div class="info-interval"></div>
            <div class="info-value">
              <div class="info-value-span">1</div>
              <div class="info-value-shadow">1</div>
            </div>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-icon-div">
          <div class="item-icon other-equipment"></div>
        </div>
        <div class="item-info-div">
          <div class="item-info-content">
            <div class="info-title">其他巡飞设备</div>
            <div class="info-interval"></div>
            <div class="info-value">
              <div class="info-value-span">1</div>
              <div class="info-value-shadow">1</div>
            </div>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-icon-div">
          <div class="item-icon pilot"></div>
        </div>
        <div class="item-info-div">
          <div class="item-info-content">
            <div class="info-title">飞行员</div>
            <div class="info-interval"></div>
            <div class="info-value">
              <div class="info-value-span">1</div>
              <div class="info-value-shadow">1</div>
            </div>
          </div>
        </div>
      </div>
      <div class="content-item">
        <div class="item-icon-div">
          <div class="item-icon flight-plan"></div>
        </div>
        <div class="item-info-div">
          <div class="item-info-content">
            <div class="info-title">飞行计划</div>
            <div class="info-interval"></div>
            <div class="info-value">
              <div class="info-value-span">456</div>
              <div class="info-value-shadow">456</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

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

<style lang="scss" scoped>
.info{
  position: absolute;
  top: 550px;
  left: 27px;
  width: 328px;
  height: 320px;
  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/info_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: 12px;
    gap: 12px; 
    .content-item{
      width: 146px;
      height: 83px;
      background: #465481;
      box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
      border-radius: 10px;
      display: flex;
      .item-icon-div{
        padding-top: 4px;
        padding-left: 7px;
        margin-right: 8px;
        .item-icon{
          width: 58px;
          height: 70px;
          background-size: 100% 100%;
        }
        .drone-airport{
          background-image: url('/public/projecthome/info_drone_airport.png');
        }
        .other-equipment{
          background-image: url('/public/projecthome/info_other_equipment.png');
        }
        .pilot{
          background-image: url('/public/projecthome/info_pilot.png');
        }
        .flight-plan{
          background-image: url('/public/projecthome/info_flight_plan.png');
        }
      }
      .item-info-div{
        display: flex;
        align-items: center;
        .item-info-content{
          .info-title{
            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;
          }
          .info-interval{
            width: 50px;
            height: 1px;
            box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
            border: 1px solid #4E5778;
            margin-bottom: 2px;
          }
          .info-value{
            position: relative;
            font-family: 'Bebas';
            font-size: 24px;
            height: 32px;
            .info-value-span{
              position: absolute;
              top: 0px;
              left: 0px;
              color: transparent;
              line-height: 32px;
              background: linear-gradient(180deg, #E6C65E 0%, #FDFFF4 100%);
              -webkit-background-clip: text;
              background-clip: text;
              -webkit-text-fill-color: transparent;
              z-index: 1;
            }
            .info-value-shadow{
              position: absolute;
              top: 0px;
              left: 0px;
              color: transparent;
              text-shadow: 0px 10px 30px rgba(0,0,6,0.15), 0px 2px 4px rgba(0,0,0,0.5);
            }
          }
        }
      }
    }
  }
}
</style>
