<template>
  <div class="banner">
    <div class="banner-content">
      <p class="banner-title mywow" animate-param="fadeInUp,delay-0.2s">关于飞信云</p>
      <p class="banner-text mywow" animate-param="fadeInUp,delay-0.2s">
        飞信云短信群发平台是基于中国三大运营商直接提供的短信端口与互联网连接实现与客户指定号码进行短信批量发送和自定义发送的平台。致力于短信应用技术的开发产品销售和系统集成，为广大客户提供全方位的短信应用解决方案。
      </p>
      <div class="banner-type mywow" animate-param="fadeInUp,delay-0.2s">
        <div class="type-item">
          <p class="type-statistics">
            <span class="statistics-val">1</span><span class="statistics-tag">w+</span>
          </p>
          <p class="type-name">用户数量</p>
        </div>
        <div class="type-item">
          <p class="type-statistics">
            <span class="statistics-val">1200</span
            ><span class="statistics-tag">条/秒</span>
          </p>
          <p class="type-name">通道流速</p>
        </div>
        <div class="type-item">
          <p class="type-statistics">
            <span class="statistics-val">50</span><span class="statistics-tag">+</span>
          </p>
          <p class="type-name">用户数量</p>
        </div>
        <div class="type-item">
          <p class="type-statistics">
            <span class="statistics-val"><5</span><span class="statistics-tag">s</span>
          </p>
          <p class="type-name">直连网关通道</p>
        </div>
      </div>
    </div>
  </div>
  <div class="AboutUs bg">
    <div class="center1440 AboutUs-content">
      <div class="AboutUs-left mywow" animate-param="fadeInUp,delay-0.2s">
        <img src="../assets/icon/icon_17.png" />
      </div>
      <div class="AboutUs-right">
        <p class="headline mywow" animate-param="fadeInUp,delay-0.2s">关于我们</p>
        <p class="subhead mywow" animate-param="fadeInUp,delay-0.2s">
          我们的愿景是向客户提供业界领先的网络电信增值业务经营服务，目前用户数量已突破1w+，合作伙伴100+，如今已建立起良好的口碑，我们提供以下供客户选择：
        </p>
        <div class="type-box">
          <div class="type-list mywow" animate-param="fadeInUp,delay-0.2s">
            <div
              animate-param="fadeInUp,delay-0.2s"
              :class="[
                'type-item one-row mywow',
                activeAboutUs === index ? 'active-type-item' : '',
              ]"
              v-for="(item, index) in AboutUsList"
              @click.stop="activeAboutUs = index"
            >
              {{ item.label }}
            </div>
          </div>
        </div>

        <div class="type-content mywow" animate-param="fadeInUp,delay-0.2s">
          <div class="type-content-item" v-for="s in AboutUsList[activeAboutUs].children">
            <img :src="s.icon" />
            <p class="type-content-name one-row">{{ s.name }}</p>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="promise">
    <div class="center1440">
      <p class="headline mywow" animate-param="fadeInUp,delay-0.2s">服务承诺</p>
      <p class="subhead mywow" animate-param="fadeInUp,delay-0.2s">好的售后服务也是客户信赖的原因</p>
      <div class="promise-content mywow" animate-param="fadeInUp,delay-0.2s">
        <div class="promise-content-item" v-for="item in 4">
          <img class="icon" src="../assets/icon/icon_24.png" />
          <p class="title">准时到达</p>
          <p class="value">
            <span class="tag">一</span>
            <span class="text">安全的三网合一通道，可覆盖移动、电信、联通</span>
          </p>
          <p class="value">
            <span class="tag">一</span>
            <span class="text">106全号段</span>
          </p>
          <p class="value">
            <span class="tag">一</span>
            <span class="text">多条备用通道支持</span>
          </p>
        </div>
      </div>
    </div>
  </div>

  <!-- 资质与证书 -->
  <div class="certificate">
    <div class="center1440">
      <p class="headline mywow" animate-param="fadeInUp,delay-0.2s">资质和证书</p>
      <div class="certificate-content mywow" animate-param="fadeInUp,delay-0.2s">
        <n-carousel
          class="certificate-carousel"
          autoplay
          :interval="5000"
          :show-dots="false"
          :slides-per-view="4"
          :space-between="64"
          draggable
        >
          <div class="carousel-item" v-for="item in certificateList" :key="item">
            <img class="carousel-img" :src="item.img" />
            <p class="carousel-label">{{ item.label }}</p>
          </div>
        </n-carousel>
      </div>
    </div>
  </div>
  <!-- 联系飞信云 -->
  <div class="affiliation">
    <div class="center1440">
      <p class="headline mywow" animate-param="fadeInUp,delay-0.2s">联系飞信云</p>
      <p class="subhead mywow" animate-param="fadeInUp,delay-0.2s">欢迎通过以下方式联系我们</p>
    </div>

    <div class="affiliation-content mywow" animate-param="fadeInUp,delay-0.2s">
      <div class="affiliation-left">
        <img src="./../assets/images/map.png" />
      </div>
      <div class="affiliation-right bg">
        <p class="right-item">
          <img class="right-icon" src="./../assets/icon/icon_19.png" />
          <span class="right-text">公司官网：www.51skyton.com/</span>
        </p>
        <p class="right-item">
          <img class="right-icon" src="./../assets/icon/icon_20.png" />
          <span class="right-text">公司邮箱：pengde@flysms.cn</span>
        </p>
        <p class="right-item">
          <img class="right-icon" src="./../assets/icon/icon_21.png" />
          <span class="right-text">联系热线：027 - 63492056</span>
        </p>
        <p class="right-item">
          <img class="right-icon" src="./../assets/icon/icon_22.png" />
          <span class="right-text">公司地址：武汉市北辰光谷里A8栋2002</span>
        </p>
        <div class="right-btn">
          <img class="icon" src="./../assets/icon/icon_23.png" />
          <span class="text">导航去这里</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import {} from "vue";

// 关于我们
import icon_18 from "./../assets/icon/icon_18.png";
const activeAboutUs = ref(0);
const AboutUsList = [
  {
    label: "云通讯产品",
    children: [
      {
        icon: icon_18,
        name: "通知短信",
      },
      {
        icon: icon_18,
        name: "验证码短信",
      },
      {
        icon: icon_18,
        name: "会员营销短信",
      },
      {
        icon: icon_18,
        name: "图片视频短信",
      },
      {
        icon: icon_18,
        name: "5G短信",
      },
      {
        icon: icon_18,
        name: "语音短信",
      },
      {
        icon: icon_18,
        name: "国际短信",
      },
    ],
  },
  {
    label: "物联网",
    children: [
      {
        icon: icon_18,
        name: "通知短信",
      },
      {
        icon: icon_18,
        name: "验证码短信",
      },
      {
        icon: icon_18,
        name: "会员营销短信",
      },
      {
        icon: icon_18,
        name: "图片视频短信",
      },
      {
        icon: icon_18,
        name: "5G短信",
      },
      {
        icon: icon_18,
        name: "语音短信",
      },
      {
        icon: icon_18,
        name: "国际短信",
      },
    ],
  },
  {
    label: "号码检测",
    children: [
      {
        icon: icon_18,
        name: "通知短信",
      },
      {
        icon: icon_18,
        name: "验证码短信",
      },
      {
        icon: icon_18,
        name: "会员营销短信",
      },
      {
        icon: icon_18,
        name: "图片视频短信",
      },
      {
        icon: icon_18,
        name: "5G短信",
      },
      {
        icon: icon_18,
        name: "语音短信",
      },
      {
        icon: icon_18,
        name: "国际短信",
      },
    ],
  },
  {
    label: "实名认证",
    children: [
      {
        icon: icon_18,
        name: "通知短信",
      },
      {
        icon: icon_18,
        name: "验证码短信",
      },
      {
        icon: icon_18,
        name: "会员营销短信",
      },
      {
        icon: icon_18,
        name: "图片视频短信",
      },
      {
        icon: icon_18,
        name: "5G短信",
      },
      {
        icon: icon_18,
        name: "语音短信",
      },
      {
        icon: icon_18,
        name: "国际短信",
      },
    ],
  },
  {
    label: "业务风控",
    children: [
      {
        icon: icon_18,
        name: "通知短信",
      },
      {
        icon: icon_18,
        name: "验证码短信",
      },
      {
        icon: icon_18,
        name: "会员营销短信",
      },
      {
        icon: icon_18,
        name: "图片视频短信",
      },
      {
        icon: icon_18,
        name: "5G短信",
      },
      {
        icon: icon_18,
        name: "语音短信",
      },
      {
        icon: icon_18,
        name: "国际短信",
      },
    ],
  },
  {
    label: "IDC",
    children: [
      {
        icon: icon_18,
        name: "通知短信",
      },
      {
        icon: icon_18,
        name: "验证码短信",
      },
      {
        icon: icon_18,
        name: "会员营销短信",
      },
      {
        icon: icon_18,
        name: "图片视频短信",
      },
      {
        icon: icon_18,
        name: "5G短信",
      },
      {
        icon: icon_18,
        name: "语音短信",
      },
      {
        icon: icon_18,
        name: "国际短信",
      },
    ],
  },
];

// 资质与证书
import certificate_01 from "./../assets/images/certificate_01.png";
import certificate_02 from "./../assets/images/certificate_02.png";
import certificate_03 from "./../assets/images/certificate_03.png";
import certificate_04 from "./../assets/images/certificate_04.png";

const certificateList = ref([
  {
    label: "隐私信息管理体系认证证书",
    img: certificate_01,
  },
  {
    label: "质量管理体系认证证书",
    img: certificate_02,
  },
  {
    label: "中华人民共和国电信网码号资源使用证书",
    img: certificate_03,
  },
  {
    label: "中华人民共和国增值电信业务经营许可证",
    img: certificate_04,
  },
]);
</script>

<style scoped lang="scss">
.banner {
  width: 100%;
  min-height: 560px;
  font-family: var(--family-01);
  font-weight: var(--weight-400);
  background-image: url("../assets/images/bg_02.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  .banner-content {
    width: 1284px;
    margin: 0 auto;
    padding: var(--size-68);
    .banner-title {
      font-size: var(--size-48);
      color: var(--color-01);
    }
    .banner-text {
      padding-top: var(--size-30);
      font-size: var(--size-20);
      color: var(--color-02);
      line-height: var(--size-37);
    }
    .banner-type {
      display: flex;
      align-items: stretch;
      padding-top: var(--size-52);
      .type-item {
        padding-right: var(--size-53);
        .type-statistics {
          color: var(--color-01);
          font-weight: var(--weight-600);
          .statistics-val {
            font-size: var(--size-50);
            font-family: var(--family-02);
          }
          .statistics-tag {
            font-family: var(--family-01);
            font-size: var(--size-24);
          }
        }
        .type-name {
          font-size: var(--size-16);
          color: var(--color-02);
          padding-top: var(--size-12);
          //   line-height: 37px;
        }
      }
    }
  }
}

.AboutUs {
  width: 100%;
  min-height: 791px;
  background-image: url("../assets/images/bg_04.png");
  display: flex;
  align-items: center;
  padding: var(--size-122) 0;
  .AboutUs-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .AboutUs-left {
      flex-shrink: 0;
      width: 531px;
      height: 547px;
      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
    .AboutUs-right {
      padding-left: var(--size-100);
      flex: 1;
      .headline {
        font-size: var(--size-48);
        padding-bottom: var(--size-30);
      }
      .subhead {
        font-size: var(--size-20);
        color: var(--color-02);
        line-height: 1.3;
      }
      .type-box {
        width: 100%;
        .type-list {
          width: 100%;
          display: flex;
          padding-top: var(--size-62);
          .type-item {
            flex: 1;
            flex-shrink: 0;
            margin-right: var(--size-6);
            height: var(--size-40);
            line-height: var(--size-40);
            background: var(--color-06);
            border-radius: var(--size-4);
            font-size: var(--size-18);
            padding: 0 var(--size-10);
            text-align: center;
            cursor: pointer;
            &:last-child {
              margin-right: 0;
            }
          }
          .active-type-item {
            background-color: var(--color-04);
            color: #fff;
          }
        }
      }

      .type-content {
        padding-top: 46px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .type-content-item {
          flex-shrink: 0;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          padding: 0 10px;
          img {
            width: 42px;
            height: 42px;
            object-fit: contain;
          }
          .type-content-name {
            font-size: var(--size-16);
            text-align: center;
            color: var(--color-02);
            padding-top: var(--size-14);
          }
        }
      }
    }
  }
}

.promise {
  width: 100%;
  min-height: 791px;
  font-family: var(--family-01);
  font-weight: var(--weight-400);
  background-image: url("../assets/images/home_bg_02.png");
  p {
    text-align: center;
  }
  .headline {
    font-size: var(--size-34);
    font-family: var(--family-01);
    font-weight: var(--weight-700);
    color: var(--color-01);
    padding-top: var(--size-93);
  }
  .subhead {
    padding-top: var(--size-17);
    font-size: var(--size-18);
    font-family: var(--family-01);
    font-weight: var(--weight-400);
    color: var(--color-03);
  }
  .promise-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding-top: var(--size-60);
    border-bottom: 2px solid var(--color-04);
    .promise-content-item {
      min-height: 384px;
      flex: 1;
      flex-shrink: 0;
      background-color: #fff;
      box-shadow: var(--shadow-01);
      border-radius: 8px;
      padding: var(--size-52);
      display: flex;
      flex-direction: column;
      //   transform: scale(1.1);
      transition: flex 0.2s;
      cursor: pointer;
      &:hover {
        flex: 1.2;
      }
      p {
        text-align: left;
      }
      .icon {
        width: 95px;
        height: 75px;
        object-fit: contain;
      }
      .title {
        font-size: 24px;
        padding-top: var(--size-25);
        line-height: 1;
      }
      .value {
        font-size: 16px;
        color: #666666;
        display: flex;
        padding-top: var(--size-15);
        line-height: 1.2;
        &:first-child {
          padding-top: var(--size-30);
        }
        .tag {
          flex-shrink: 0;
          font-weight: var(--weight-700);
          padding-right: 7px;
        }
      }
    }
  }
}

.certificate {
  width: 100%;
  min-height: 744px;
  font-family: var(--family-01);
  font-weight: var(--weight-400);
  background-image: url("../assets/images/home_bg_04.png");
  .headline {
    text-align: center;
    font-size: var(--size-48);
    padding: var(--size-90) 0 var(--size-40);
  }
  .certificate-content {
    width: 100%;
    .certificate-carousel {
      width: 100%;
      .carousel-item {
        .carousel-img {
          width: 100%;
          height: 420px;
          object-fit: contain;
        }
        .carousel-label {
          font-size: var(--size-18);
          text-align: center;
          padding: 0 var(--size-20);
        }
      }
    }
  }
}

.affiliation {
  .headline {
    font-size: var(--size-48);
    text-align: center;
    padding-top: var(--size-92);
  }
  .subhead {
    font-size: var(--size-18);
    text-align: center;
    color: var(--color-03);
    padding-top: var(--size-21);
  }
  .affiliation-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-top: var(--size-41);
    .affiliation-left {
      flex-shrink: 0;
      width: 50%;
      height: 420px;
      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
    .affiliation-right {
      flex-shrink: 0;
      width: 50%;
      height: 420px;
      background-image: url("../assets/images/bg_05.png");
      padding: 0 var(--size-100);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      position: relative;
      &::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(-80%, -50%);
        width: 0;
        height: 0;
        border: var(--size-35) solid;
        border-left-width: 0;
        border-color: transparent var(--color-07) transparent transparent;
      }
      .right-item {
        display: flex;
        align-items: center;
        padding-bottom: var(--size-20);
        .right-icon {
          width: var(--size-30);
          height: var(--size-30);
          object-fit: contain;
        }
        .right-text {
          padding-left: var(--size-10);
          font-size: var(--size-24);
          color: #ffffff;
        }
      }
      .right-btn {
        width: 228px;
        height: 60px;
        border-radius: 6px;
        background-color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        .icon {
          width: 25px;
          height: 27px;
          object-fit: contain;
        }
        .text {
          padding-left: var(--size-8);
          font-size: var(--size-24);
          color: var(--color-07);
        }
      }
    }
  }
}
</style>
