<template>
  <!-- 人员预警信息 -->
  <div class="main" style="width: 930px; height: 636px">
    <div class="mian-contain">
      <div class="top">
        <div class="top-tit">
          <img src="../../../assets/arrow.png" alt="" />
          <span>人员预警信息</span>
        </div>
        <div class="top-line">
          <img src="../../../assets/top-line.png" alt="" />
        </div>
      </div>
      <div class="container3">
        <div class="item" v-for="item in 8" :key="item">
          <div class="item-top">
            <div>浙A12345</div>
            <div>停车场P1 A口</div>
          </div>
          <div class="item-main">
            <img
              src="https://img1.baidu.com/it/u=777135039,665587772&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1720544400&t=388d1dcf489dac3d931018ce930274ed"
              alt=""
            />
            <div class="item-info">
              <span>张琪</span>
              <span>331004198502060356</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.main {
  width: 455px;
  height: 308px;
  border-radius: 8px;
  //   background: rgba(26, 52, 125, 0.95);
  padding: 10px;
}
.top {
  height: 45px;
  .top-tit {
    font-size: 18px;
    font-weight: 600;
    line-height: 23.4px;
    text-align: left;
    color: #ffffff;
    img {
      margin-right: 10px;
    }
  }
  .top-line {
    margin-top: -7px;
  }
}
.mian-contain {
  border-radius: 8px;
  padding: 10px;
  background: rgba(29, 65, 171);
  // overflow: hidden;
  height: 100%;
}
.container3 {
  display: flex;
  align-items: center;
  // justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 15px;
  // width: 100%;
  .item {
    width: calc((100% - 60px) / 4);
    height: 214px;
    background: url("../../../assets/ryyjxx-bg.png");
    background-size: cover; /* 背景图片尺寸自适应 */
    background-repeat: no-repeat; /* 不重复显示背景图片 */
    margin-right: 20px;
    margin-bottom: 17px;
    padding: 10px 20px;
    &:nth-child(4n) {
      margin-right: 0;
    }
    .item-top {
      height: 41px;
      font-size: 14px;
      font-weight: 400;
      line-height: 20px;
      text-align: left;
      color: #e3e8ff;
    }
    .item-main {
      position: relative;
      margin: 5px auto;
      width: 150px;
      height: 150px;
      border-radius: 6px;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .item-info {
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 0;
        border-radius: 6px;
        background-color: #ff453a80;
        text-align: center;
        span {
          font-size: 17px;
          font-weight: 500;
          line-height: 25.5px;
          color: #fff;
          &:last-child {
            font-size: 14px;
            line-height: 21px;
          }
        }
      }
    }
  }
}
</style>
