<template>
  <section class="card-container">
    <!-- <NuxtImg class="card-bg-img" src="/images/products/sdk-bg2.jpg" alt="背景图" /> -->
    <div class="card-box">
      <div v-mouse-glow class="card-item card1">
        <div class="card-title">
          <div class="title-wrapper">
            <img src="~/assets/svg/products/sdk/lock.svg" alt="加密锁" />
            <h3>全链加密</h3>
          </div>
          <div class="stat-text">
            SDK自身高强度加密，且可以实时动态更新，安全可靠，无惧MITM Attack。
          </div>
        </div>
        <div>
          <div class="stat-number">超过90%</div>
          <div class="stat-text">应对超过 90% 数据在云端流转的时代，用全
            链加密构筑端到端零泄露的安全底座</div>
        </div>
        <div>
          <div class="stat-number">超1,000亿次</div>
          <div class="stat-text">面对年均超 1,000 亿次云端调用，全链加密确
            保数据全路径安全无死角</div>
        </div>
      </div>
      <div v-mouse-glow class="card-item card2">
        <div class="card-title">
          <div class="title-wrapper">
            <img src="~/assets/svg/products/sdk/security.svg" alt="防护" />
            <h3>DDoS 防护</h3>
          </div>
          <div class="stat-text">
           分布式的抗D节点，同时基于SDK端流量数据的灵活调度策略，智能隔离清洗攻击流量。
          </div>
        </div>
      </div>
      <div v-mouse-glow class="card-item card3">
        <div class="card-title">
          <div class="title-wrapper">
            <img src="~/assets/svg/products/sdk/acceleration.svg" alt="加速" />
            <h3>智能加速</h3>
          </div>
          <div class="stat-text">
            基于用户IP识别，智能网络传输线路选择，静态动态Edge分发，即时游戏无延迟。
          </div>
        </div>
      </div>
      <div v-mouse-glow class="card-item card4">
        <div class="card4-content">
          <h2>用户友好的加密调度中心</h2>
          <p>用于替代DNS的一个加密调度中心，能够实现细化到单个客户端，级别的秒级调度，兼容性稳定可靠!提供完整SDK中文文档，轻松集成!</p>
          <div class="card4-btn"><span>立即咨询</span>
            <Icon name="line-md:chevron-right" />
          </div>
        </div>
        <div class="card4-img">
          <NuxtImg width="198" height="198" src="/images/products/security.png" alt="云安全" />
          <div class="img-btn">Unlimited Scaling</div>
          <div class="img-btn">Advanced Security</div>
          <div class="img-btn">Advanced Security</div>
        </div>
      </div>
    </div>
  </section>
</template>
<script setup>
</script>
<style lang="scss" scoped>
.card-container {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  position: relative;
  margin: 0 auto;

  .card-bg-img {
    position: absolute;
    bottom: -174px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    opacity: 0.5;
  }
}

.card-box {
  position: relative;
  z-index: 1;
  display: grid;
  justify-content: center;
  margin-top: 40px;
  grid-template-areas:
    "card1 card2 card3"
    "card1 card4 card4";
  grid-template-columns: 388px 388px 388px;
  grid-template-rows: 192px 308px;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
}

.card-item {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.10);
  transition: transform .3s ease;

  &:hover {
    border: 1px solid #B864FF;
    background: linear-gradient(180deg, rgba(184, 100, 255, 0.20) 0%, rgba(137, 64, 254, 0.20) 100%);
    transform: translateY(-5px);
  }
}

.card-title {
  .title-wrapper {
    display: flex;
    align-items: center;
  }

  img {
    width: 45px;
    height: 45px;
  }

  h3 {
    color: #ffffff;
    padding-left: 10px;
    font-size: 24px;
    font-weight: 700;
  }
}

.stat-text {
  margin-top: 12px;
  width: 320px;
  color: rgba(255, 255, 255, 0.60);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.card1 {
  grid-area: card1;
  padding: 37px 24px;
  display: flex;
  flex-direction: column;
  gap: 42px;

  .stat-number {
    color: #FFF;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
  }


}


.card2 {
  grid-area: card2;
  padding: 40px 24px;
}

.card3 {
  grid-area: card3;
  padding: 40px 24px;
}

.card4 {
  grid-area: card4;
  padding: 42px 30px 28px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.card4-content {
  width: 490px;
  color: #fff;

  h2 {
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
  }

  p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
  }

  .card4-btn {
    margin-top: 45px;
    display: flex;
    width: 140px;
    height: 45px;
    padding: 7px 21px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: linear-gradient(104deg, #C46DFF 13.04%, #6B29FF 117.2%);
    font-size: 16px;
    cursor: pointer;
  }
}

.card4-img {
  position: relative;

  .img-btn {
    position: absolute;
    display: flex;
    width: 140px;
    height: 36px;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    border: 1px solid #FFF;
    background: linear-gradient(263deg, rgba(203, 125, 255, 0.40) -0.77%, rgba(117, 39, 255, 0.40) 57.75%, rgba(203, 125, 255, 0.40) 107.92%);
    backdrop-filter: blur(4.5px);
    font-size: 14px;
    color: #fff;

    &:nth-of-type(1) {
      top: -26px;
      left: 20px;
    }

    &:nth-of-type(2) {
      top: 78px;
      right: -44px;
    }

    &:nth-of-type(3) {
      bottom: 36px;
      left: -66px;
    }
  }
}
</style>