<template>
  <div class="app-container home">
    <div class="banner">
      <img src="@/assets/images/banner.png" alt="">
    </div>

    <div class="block" style="margin-bottom: 76px">
      <div class="block-title">
        <div class="bg-text">RESOURCE</div>
        计算资源
      </div>
      <div class=block-sub-title>强劲、稳定、安全的云计算能力，助力企业上云</div>
      <el-row :gutter="24">
        <el-col :span="12">
          <div class="resource-item resource-item-1">
            <div class="title">天河一号</div>
            <div class="desc">
              天河一号拥有2048个计算节点，128个云服务阵列，64个可视化节点，4个胖节点。基于超级计算平台可提供科学研究、工程仿真等计算服务，开展并行算法研究与大规模并行应用软件开发。
            </div>
            <div class="link">查看详情
              <el-icon>
                <ArrowRight/>
              </el-icon>
            </div>
          </div>
        </el-col>
        <el-col :span="12">
          <div class="resource-item resource-item-2">
            <div class="title">天河新一代</div>
            <div class="desc">“天河”新一代超级计算机拥有通用算力200P Flops(FP64)人工智能算力800P
              Flops(FP16)磁盘总容量超20PB。整体性能处于世界先进水平。
            </div>
            <div class="link">查看详情
              <el-icon>
                <ArrowRight/>
              </el-icon>
            </div>
          </div>
        </el-col>
        <el-col :span="24">
          <div class="resource-item resource-item-3">
            <div class="title">CPU云</div>
            <div class="desc">
              云计算服务为您提供安全稳定及灵活扩展的云计算服务，可实现按需扩展CPU、内存、存储和网络资源，帮助企业大幅削减IT开支，优化运维流程，专注于核心业务的创新与发展。
            </div>
            <div class="link">查看详情
              <el-icon>
                <ArrowRight/>
              </el-icon>
            </div>
          </div>
        </el-col>
      </el-row>
    </div>

    <div class="block">
      <div class="block-title">
        <div class="bg-text">APPLICATION</div>
        行业应用
      </div>
      <div class=block-sub-title>
        通过ECI+ASK的弹性伸缩和快速启动特性，大大缩短扩容时间，轻松支撑突发流量并保障业务稳定性。
      </div>
      <el-row :gutter="24">
        <el-col :span="8">
          <div class="application-item application-item-1">
            <div class="title">摄影行业</div>
            <div class="desc">通过ECI+ASK的弹性伸缩和快速启动特性，大大缩短扩容时间。</div>
            <div class="link">查看详情
              <el-icon>
                <ArrowRight/>
              </el-icon>
            </div>
          </div>
        </el-col>
        <el-col :span="8">
          <div class="application-item application-item-2">
            <div class="title">土木工程</div>
            <div class="desc">通过ECI+ASK的弹性伸缩和快速启动特性，大大缩短扩容时间。</div>
            <div class="link">查看详情
              <el-icon>
                <ArrowRight/>
              </el-icon>
            </div>
          </div>
        </el-col>
        <el-col :span="8">
          <div class="application-item application-item-3">
            <div class="title">材料工程</div>
            <div class="desc">通过ECI+ASK的弹性伸缩和快速启动特性，大大缩短扩容时间。</div>
            <div class="link">查看详情
              <el-icon>
                <ArrowRight/>
              </el-icon>
            </div>
          </div>
        </el-col>
      </el-row>

      <div class="flex-justify-center" style="margin-top: 28px;margin-bottom: 76px">
        <el-button class="view-more-btn">更多行业
          <el-icon>
            <ArrowRight/>
          </el-icon>
        </el-button>
      </div>
    </div>

    <div class="partners">
      <div class="title">
        生态合作伙伴
      </div>
      <div class="desc">服务全球300万+客户，合作伙伴可绕地球3圈</div>
      <el-button class="view-more-btn">查看更多
        <el-icon>
          <ArrowRight/>
        </el-icon>
      </el-button>
    </div>

    <div class="block">
      <div class="block-title">
        <div class="bg-text">INFORMATION</div>
        活动资讯
      </div>
      <div class=block-sub-title>活动时间待定，活动内容待定，活动礼品自带</div>

      <div class="flex flex-justify-center">
        <div class="information" style="margin-right: 182px">
          <div class="information-item">
            <div class="flex">
              <div class="date">
                <div class="month-day">4/04</div>
                <div class="year">2024</div>
              </div>
              <div class="">
                <div class="title">广东横琴万象世界启动区景观设计</div>
                <div class="content">
                  2023西安设计周以“设计面向未来”为主题，展览面积4万平方米，由“城市设计”“新锐设计”“设计之帆”“潮流潮玩”4个主题展组成

                </div>
              </div>
            </div>
            <img src="@/assets/images/info-img.png" alt="">
          </div>
        </div>

        <div>
          <div class="information-item flex">
            <div class="date">
              <div class="month-day">4/04</div>
              <div class="year">2024</div>
            </div>
            <div class="">
              <div class="title">广东横琴万象世界启动区景观设计</div>
              <div class="content">
                2023西安设计周以“设计面向未来”为主题，展览面积4万平方米，由“城市设计”“新锐设计”“设计之帆”“潮流潮玩”4个主题展组成
              </div>
            </div>
          </div>
          <div class="information-item flex">
            <div class="date">
              <div class="month-day">4/04</div>
              <div class="year">2024</div>
            </div>
            <div class="">
              <div class="title">广东横琴万象世界启动区景观设计</div>
              <div class="content">
                2023西安设计周以“设计面向未来”为主题，展览面积4万平方米，由“城市设计”“新锐设计”“设计之帆”“潮流潮玩”4个主题展组成
              </div>
            </div>
          </div>
          <div class="information-item flex">
            <div class="date">
              <div class="month-day">4/04</div>
              <div class="year">2024</div>
            </div>
            <div class="">
              <div class="title">广东横琴万象世界启动区景观设计</div>
              <div class="content">
                2023西安设计周以“设计面向未来”为主题，展览面积4万平方米，由“城市设计”“新锐设计”“设计之帆”“潮流潮玩”4个主题展组成
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="flex-justify-center" style="margin-top: 40px;margin-bottom: 100px">
        <el-button class="view-more-btn">更多资讯
          <el-icon>
            <ArrowRight/>
          </el-icon>
        </el-button>
      </div>
    </div>

    <div class="footer">上海先进网络科技有限公司 沪ICP备18000749号-2</div>
  </div>
</template>

<script setup name="Index">

</script>

<style scoped lang="scss">
.app-container {
  padding: 0;
}

.home {

}

.banner {
  margin-bottom: 64px;

  img {
    display: block;
    width: 100%;
  }
}

.block {
  width: 1280px;
  margin: 0 auto;
}

.block-title {
  font-weight: bold;
  font-size: 40px;
  color: #303233;
  line-height: 60px;
  text-align: center;
  position: relative;

  .bg-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: DIN, system-ui;
    font-weight: bold;
    font-size: 90px;
    color: rgba(0, 0, 0, 0.02);
  }
}

.block-sub-title {
  font-weight: 400;
  font-size: 14px;
  color: #949899;
  line-height: 22px;
  text-align: center;
  margin-bottom: 48px;
}

.view-more-btn {
  border: 1px solid #C8CBCC;
  border-radius: 2px;
  height: 40px;
}

.resource-item {
  height: 434px;
  padding: 60px 60px 0 60px;
  margin-bottom: 24px;

  &.resource-item-1 {
    background: url("@/assets/images/resource-1.png") no-repeat center center / cover;
  }

  &.resource-item-2 {
    background: url("@/assets/images/resource-2.png") no-repeat center center / cover;
  }

  &.resource-item-3 {
    .desc {
      width: 35%;
    }

    background: url("@/assets/images/resource-3.png") no-repeat center center / cover;
  }
}

.resource-item, .application-item {
  .title {
    font-weight: bold;
    font-size: 34px;
    color: #303233;
    margin-bottom: 28px;
  }

  .desc {
    font-weight: 400;
    font-size: 14px;
    color: #7e8080;
    margin-bottom: 20px;
    line-height: 1.8;
  }

  .link {
    display: flex;
    align-items: center;
    color: #7e8080;
    font-size: 14px;
  }
}

.application-item {
  height: 436px;
  padding: 64px;

  .desc {
    color: #444444;
  }

  .link {
    color: #444444;
    justify-content: center;
  }

  &.application-item-1 {
    background: url("@/assets/images/application-1.png") no-repeat center center / cover;
  }

  &.application-item-2 {
    background: url("@/assets/images/application-2.png") no-repeat center center / cover;
  }

  &.application-item-3 {
    background: url("@/assets/images/application-3.png") no-repeat center center / cover;
  }

  .title {
    text-align: center;
  }

  .desc {
    text-align: center;
    width: 300px;
  }
}

.partners {
  height: 434px;
  margin-bottom: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("@/assets/images/partners.png") no-repeat center center / cover;

  .title {
    font-weight: bold;
    font-size: 34px;
    color: #303233;
    margin-bottom: 20px;
  }

  .desc {
    font-weight: 400;
    font-size: 14px;
    color: #7e8080;
    margin-bottom: 40px;
    line-height: 1.8;
  }

  .view-more-btn {
    border: none;
    color: #ffffff;
  }
}

.information-item {
  width: 470px;

  &:hover {
    cursor: pointer;
    .date {
      color: #2E77E3;
    }
    .title {
      color: #2E77E3;
    }

    .content {
      color: #2E77E3;
    }
  }

  &:not(:last-child) {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 2px solid #D6D7D8;
  }

  img {
    margin-top: 25px;
  }

  .date {
    font-family: DIN, system-ui;
    color: #949899;
  }

  .month-day {
    margin-bottom: 14px;
    margin-right: 15px;
    font-size: 24px;
  }

  .year {
    font-size: 20px;
  }

  .title {
    font-weight: bold;
    font-size: 24px;
    color: #303233;
    margin-bottom: 10px;
    padding-right: 45px;
  }

  .content {
    font-weight: 400;
    font-size: 14px;
    color: #626566;
    padding-right: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}

.footer {
  text-align: center;
  padding: 12px 0;
  color: #7C7D7E;
  font-weight: 400;
  font-size: 14px;
  background-color: #303233;
}
</style>

