<template>
  <div class="result">
    <div class="title-div">
      <div class="title-icon"></div>
      <div class="title-span">成果动态</div>
    </div>
    <div class="search-div">
      <a-input class="search-input" placeholder="Basic usage">
        <template #suffix>
            <div class="search-icon"></div>
        </template>
      </a-input>
    </div>
    <div class="interval"></div>
    <div class="list">
      <div>
        <div class="project-list-item">
          <div class="list-item-icon"></div>
          <div class="list-item-content">临沂市兰山区某某某项目部</div>
          <div class="list-item-date">2025-09-26</div>
          <div class="active-icon"></div>
        </div>
        <div class="item-bottom-interval"></div>
      </div>
      <div>
        <div class="project-list-item active">
          <div class="list-item-icon"></div>
          <div class="list-item-content">临沂市兰山区某某某项目部</div>
          <div class="list-item-date">2025-09-26</div>
          <div class="active-icon"></div>
        </div>
        <div class="item-bottom-interval"></div>
      </div>
      <div>
        <div class="project-list-item">
          <div class="list-item-icon"></div>
          <div class="list-item-content">临沂市兰山区某某某项目部</div>
          <div class="list-item-date">2025-09-26</div>
          <div class="active-icon"></div>
        </div>
        <div class="item-bottom-interval"></div>
      </div>
    </div>
  </div>
</template>

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

<style lang="scss" scoped>
.result{
  position: absolute;
  top: 426px;
  right: 32px;
  width: 328px;
  height: 434px;
  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: 2px;
    .title-icon{
      width: 24px;
      height: 24px;
      background-image: url('/public/projecthome/result_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);
    }
  }
  .search-div{
    padding: 0px 22px;
    height: 30px;
    margin-bottom: 10px;
    .search-input{
      :deep(.ant-input){
        background: #17181F;
        color: #FFFFFF;
      }
      background: #17181F;
      box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15), 0px 0px 4px 0px rgba(58,87,232,0.48);
      border-radius: 2px;
      border: 1px solid #3A57E8;
      color: #FFFFFF;
      .search-icon{
        width: 18px;
        height: 18px;
        background-image: url('/public/projecthome/result_search_icon.png');
        background-size: 100% 100%;
        cursor: pointer;
      }
    }
  }
  .interval{
    width: 328px;
    height: 1px;
    box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
    border: 1px solid #4E5778;
    opacity: 0.2;
  }
  .list{
    .project-list-item{
      position: relative;
      padding-left: 21px;
      width: 100%;
      height: 36px;
      display: flex;
      align-items: center;
      opacity: 0.7;
      .list-item-icon{
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #FFFFFF;
        box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
        margin-right: 12px;
      }
      .list-item-content{
        width: 196px;
        font-family: 'PingFangSC-Regular';
        font-weight: 400;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 33px;
        text-shadow: 0px 10px 30px rgba(0,0,6,0.15);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; 
        margin-right: 20px;
      }
      .list-item-date{
        font-family: 'Bebas';
        font-size: 12px;
        color: #FFFFFF;
        line-height: 33px;
        text-shadow: 0px 10px 30px rgba(0,0,6,0.15);
      }
    }
    .active{
      background: linear-gradient( 270deg, rgba(108,144,245,0) 0%, #3A57E8 100%);
      box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15), inset 0px 1px 3px 0px rgba(0,0,0,0.28);
      opacity: 1;
      .active-icon{
        position: absolute;
        top: 0px;
        left: 0px;
        width: 4px;
        height: 35px;
        background: #607AFF;
        box-shadow: 0px 10px 30px 0px rgba(0,0,6,0.15);
      }
    }
    .item-bottom-interval{
      margin-left: 25px;
      height: 2px;
      width: calc(100% - 25px);
      box-shadow: 0px 10px 30px 0px rgba(0, 0, 6, 0.15);
      background: #4E5778;
      opacity: 0.3;
    }
  }
}
</style>
