<template>
  <section class="mb-about-flow">
    <div class="mb-flow-title">
      <div class="mb-flow-title-text">
        全线产品自主研发
      </div>
      <div class="mb-flow-title-subtext">
        全线产品自主研发，从高防IP、CDN到游戏盾SDK，核心技术完全自控，安全能力不受制于人，防护效果快人一步。
      </div>
    </div>
    <div class="mb-flow-content">
      <div class="mb-flow-content-left">
        <div class="mb-left-user">
          <NuxtImg class="mb-flow-icon" src="/images/about/icon-user.png" alt="icon" />
          <div class="mb-flow-text">用户</div>
        </div>
        <div class="mb-left-sdk">
          <NuxtImg class="mb-flow-icon" src="/images/about/icon-sdk.png" alt="icon" />
          <div class="mb-flow-text">终端设备/SDK</div>
        </div>
      </div>
      <div class="mb-flow-content-con">
        <div class="mb-con-item">高仿IP</div>
        <div class="mb-con-item">CDN</div>
        <div class="mb-con-item">游戏盾</div>
      </div>
      <div class="mb-flow-content-right">
        <div class="mb-right-item">硬扛攻击，业务稳赢</div>
        <div class="mb-right-item">就近分发<br />访问快人一步</div>
        <div class="mb-right-item">端上智能调度+<br />加密隧道/大陆加速</div>
      </div>
    </div>
    <div class="mb-flow-bottom">
      <div class="mb-btm-left">高防服务器</div>
      <div class="mb-btm-con">
        <span>互联网基础设施</span><span>高防DNSSSL节点池</span>
      </div>
      <div class="mb-btm-right">源站服务器</div>
    </div>
  </section>
</template>
<script setup>
</script>
<style lang="scss" scoped>
.mb-about-flow {
  width: 100%;
  margin: 25px auto 0;
  box-sizing: border-box;

  .mb-flow-title {
    position: relative;
    border-radius: 4px;
    border: 1px solid #8B74FF;
    background: rgba(63, 51, 125, 0.30);
    color: #FFF;

    .mb-flow-title-text {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 20px;
      font-size: 12px;
      font-weight: 400;
      background: rgba(128, 119, 255, .5);
    }

    .mb-flow-title-subtext {
      padding: 4px 10px;
      font-size: 10px;
      font-weight: 400;
    }

    &::before {
      content: '';
      position: absolute;
      bottom: -16px;
      left: 50%;
      transform: translateX(-50%);
      width: 1px;
      height: 16px;
      background: #8B74FF;
    }

    &::after {
      content: '';
      position: absolute;
      bottom: -16px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 4px solid #8B74FF;
    }
  }


  .mb-flow-content {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;

    .mb-flow-content-left {
      display: flex;
      gap: 10px;
    }

    .mb-flow-icon {
      width: 24px;
      height: 24px;
    }

    .mb-left-user,
    .mb-left-sdk {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #FFF;

      .mb-flow-text {
        position: relative;
        box-sizing: border-box;
        width: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 2px;
        border: 1px solid #A39DFF;
        background: #3F337D;
        font-size: 10px;

        &::before {
          content: '';
          position: absolute;
          right: -10px;
          top: 50%;
          transform: translateY(-50%);
          width: 8px;
          height: 1px;
          background: #8B74FF;
        }

        &::after {
          content: '';
          position: absolute;
          right: -10px;
          top: 50%;
          transform: translateY(-50%);
          width: 0;
          height: 0;
          border-top: 4px solid transparent;
          border-bottom: 4px solid transparent;
          border-left: 4px solid #8B74FF;
        }
      }

    }

    .mb-left-sdk {
      .mb-flow-text {
        width: 70px;
        height: 20px;
        text-align: center;

        &::before {
          right: -12px;
          width: 12px;

        }

        &::after {
          right: -12px;
        }
      }
    }

    .mb-flow-content-con {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 106px;
      height: 98px;
      box-sizing: border-box;
      border-radius: 10px;
      border: 1px solid #8B74FF;
      margin: 16px 18px 16px 12px;
      background: rgba(63, 51, 125, 0.30);

      &::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -16px;
        transform: translateX(-50%);
        width: 1px;
        height: 16px;
        background: #8B74FF;
      }

      &::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -16px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid #8B74FF;
      }

      .mb-con-item {
        color: #FFF;
        font-size: 10px;
        font-weight: 400;
        display: flex;
        height: 20px;
        width: 62px;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        border: 1px solid #A39DFF;
        background: #3F337D;
      }
    }

    .mb-flow-content-right {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: center;

      .mb-right-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 102px;
        border-radius: 4px;
        padding: 0 4px;
        border: 1px solid #A39DFF;
        background: #3F337D;
        color: #FFF;
        font-size: 10px;
        font-weight: 400;

        &:nth-of-type(1) {
          height: 25px;
        }

        &:nth-of-type(2) {
          height: 32px;
        }

        &:nth-of-type(3) {
          height: 32px;
        }

        &::before {
          content: '';
          position: absolute;
          left: -14px;
          top: 50%;
          transform: translateY(-50%);
          width: 14px;
          height: 1px;
          background: #8B74FF;
        }

        &::after {
          content: '';
          position: absolute;
          left: -14px;
          top: 50%;
          transform: translateY(-50%);
          width: 0;
          height: 0;
          border-top: 4px solid transparent;
          border-bottom: 4px solid transparent;
          border-right: 4px solid #8B74FF;
        }
      }
    }
  }

  .mb-flow-bottom {
    display: flex;
    gap: 22px;
    color: #FFF;
    align-items: center;
    font-size: 10px;

    .mb-btm-left,
    .mb-btm-con,
    .mb-btm-right {
      border: 1px solid #A39DFF;
      background: #3F337D;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-radius: 4px;

    }

    .mb-btm-left {
      position: relative;
      margin-left: 26px;
      width: 70px;
      height: 25px;

      &::before {
        content: '';
        position: absolute;
        right: -24px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 1px;
        background: #8B74FF;
      }

      &::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-right: 4px solid #8B74FF;
      }
    }

    .mb-btm-con {
      width: 108px;
      height: 40px;
      gap: 4px;
    }

    .mb-btm-right {
      position: relative;
      width: 94px;
      height: 25px;

      &::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 1px;
        background: #8B74FF;
      }

      &::after {
        content: '';
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 4px solid #8B74FF;
      }
    }
  }
}
</style>