@import url("./normal.css");

.primary-bgc {
  background: linear-gradient(to right, #2e81fd, var(--secondary-color));
}

.ct-btn {
  cursor: pointer;
  width: fit-content;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 5px 20px;
  border-radius: 1.675rem;
}

.secondary-btn {
  cursor: pointer;
  background-color: #fff;
  border: 1.1px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 1.675rem;
  font-size: 0.875rem;
  padding: 5px 20px;
}

header {
  z-index: 19;
  position: fixed;
  top: 1.0rem;
  left: 0;
  width: 100%;
  height: var(--header-height);
}

.nav__tab-d {
  position: absolute;
  width: 100%;
  height: 400px;
  background-color: #fff;
  top: 60px;
  left: 50%;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) translateX(-50%);
  transition: transform 0.178s ease, opacity 0.3s ease;
  display: none;

  .nav__adv {
    padding: 40px 20px;
    width: 300px;
    height: 100%;
    background-image: url("/assets/imgs/menu_illus.png");
    background-repeat: no-repeat;
    background-size: contain;
    /* 按比例缩放图片，确保完整展示 */
    background-position: right bottom;
    background-color: #f7fcff;

    h1 {
      margin-bottom: 10px;
      font-size: 24px;
    }

    p {
      font-size: 14px;
      color: #666;
    }
  }

  .nav__solution {
    flex: 1;
    padding: 20px;
    height: 100%;

    .solution__title {
      padding-bottom: 10px;
      font-size: 14px;
      color: #888;
      border-bottom: 1px solid #efefef;
    }

    .nav__pd-d {
      margin-top: 20px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;

      .pd:hover {
        background-color: #f6f8ff;
      }

      .pd {
        padding: 10px 0;
        padding-left: 20px;
        position: relative;
        height: 120px;
        gap: 10px;
        border-radius: 5px;
        transition: background-color 0.178s ease-in-out;

        img {
          vertical-align: text-bottom;
          height: 14px;
        }

        .pd__title {
          display: flex;
          align-items: center;
          gap: 10px;
        }

        p {
          margin-left: 24px;
          margin-top: 10px;
          color: #000;
        }
      }
    }
  }
}

.nav__tab-show {
  transform: translateY(0) translateX(-50%);
  opacity: 1;
  display: flex;
}

.scrolled {
  padding: 10px 20px;
  background-color: #fff;
  /* background-image: radial-gradient(transparent 1px, #fff 1px);
  background-size: 5px 5px;
  backdrop-filter: saturate(50%) blur(8px); */
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.header__layout {
  position: relative;
  width: var(--skeleton-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  /* 平滑过渡效果 */
  justify-content: space-between;

  .logo {
    img {
      display: block;
    }
  }

  .sub__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 1rem;

    .tab {
      position: relative;
      padding-bottom: 4px;
      cursor: pointer;
      transition: color 1s ease;
      font-weight: 500;
      color: #000;

      a {
        text-decoration: none;
      }
    }

    .tab::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      height: 2px;
      width: 0;
      background-color: var(--primary-color);
      transition: width 0.485s ease-in-out;
    }

    .tab:hover {
      color: var(--text-color-primary);
    }

    .tab:hover::after {
      width: 100%;
    }
  }

  .btn {
    flex-basis: 8.75rem;
    padding: 0.5rem 1.875rem;
    cursor: pointer;
    display: flex;
    height: auto;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s ease;
    border-radius: 1.5625rem;
    color: #fff;
  }
}

.home__swiper {
  /* width: 100%; */
  height: 44.375rem;
  background-image: url("/assets/imgs/main_bg_banner.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;

  .sk {
    position: relative;
    margin: 0 auto;
    width: var(--skeleton-width);
    height: 100%;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 0.5rem);

    /* 容器 */
    .swiper-pagination {
      position: absolute;
      bottom: 5rem;
      left: 0rem;
      width: fit-content;
      height: 5px;
      display: flex;
      justify-content: center;
      pointer-events: auto;
    }

    .swiper-slide {
      .slide-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;

        .promo-section {
          margin-top: -20px;
        }

        .title-btn {
          border-radius: 25px;
          color: #fff;
          padding: 5px 15px;
          width: fit-content;
          font-size: 16px;
          margin-bottom: 0.875rem;
        }

        h1 {
          font-size: 60px;
          margin-bottom: 15px;
        }

        ul>li {
          /* line-height: 38px; */
          font-size: 20px;
        }

        .promo-operation {
          margin-top: 2rem;
          display: flex;
          align-items: center;
          gap: 1.275rem;

          .btn-o {
            padding: 0.575rem 1.575rem;
            color: #fff;
            border-radius: 1.875rem;
            font-size: 1rem;
          }

          .secondary-btn {
            padding: 0.575rem 1.575rem;
            font-size: 1rem;
          }
        }
      }
    }

    /* 轨道 */
    .swiper-pagination .swiper-pagination-bullet {
      position: relative;
      /* 裁剪进度条需要 */
      overflow: hidden;
      /* 裁剪超出部分 */
      width: 3rem;
      height: 5px;
      margin: 0 5px !important;
      border-radius: 15px;
      background-color: #efefef;
      /* 轨道色 */
      opacity: 1;
      /* 覆盖 Swiper 默认的透明度 */
    }

    /* 激活 bullet 的底色（可选） */
    /* .swiper-pagination .swiper-pagination-bullet-active {
      background-color: #ff6600;
    } */

    /* 进度条本体：靠左，从 0% 慢慢填充到 100% */
    .swiper-pagination .swiper-pagination-bullet-progress {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 0%;
      /* 初始 0% */
      background-color: var(--primary-color);
      /* 进度条色 */
      display: block;
      /* 确保 height 生效 */
      z-index: 1;
      /* 覆盖在底色上方 */
    }
  }
}

.section-2 {
  width: var(--skeleton-width);
  margin: 0 auto;
  padding-bottom: 2.5rem;
  margin-top: 80px;

  .section-2-swiper {
    margin-top: 20px;
    display: flex;
    gap: 0.875rem;

    .section-2-swiper-slide {
      flex: 1;
      position: relative;
      border-radius: 25px;
      padding: 25px;
      background-image: linear-gradient(1deg, #e8eaff, #bfd6ff);
      transition: flex 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      height: 420px;
      overflow: hidden;

      .slide-desc {
        padding: 25px;
      }

      h1 {
        font-size: 1.275rem;
      }

      ul {
        opacity: 0;
        transform: translateX(20px);
      }

      .slide-sub-title {
        margin: 20px 0;

        span {
          display: block;
        }
      }

      .slide-bgc {
        position: absolute;
        bottom: 0;
        right: 0;
        height: 220px;

        /* 0.9266 */
        img {
          width: 100%;
          height: 100%;
          display: block;
          object-fit: cover;
          object-position: left center;
        }
      }
    }

    .section-2-swiper-side-active {
      flex: 4;
      background: linear-gradient(1deg, #f5f6ff, #e6efff);

      ul {
        animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        transform: translateX(0);
      }

      .visible-block {
        animation: fadeIn 1.78s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        transform: translateX(0);
      }

      .slide-sub-title {
        p {
          display: inline;
        }
      }
    }
  }
}

@keyframes fadeIn {
  from {
    transform: translateX(80px);
    opacity: 0;
  }

  to {
    transform: translateX(0px);
    opacity: 1;
  }
}

.section-3 {
  width: var(--skeleton-width);
  margin: 0 auto;
  height: 430px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #dde7ff, #f5f8ff);
  padding: 20px;
  margin-top: 20px;
  border-radius: 20px;
  gap: 40px;

  .brand-intro {
    padding-left: 10px;
    line-height: 1.6rem;

    h1 {
      font-size: 1.675rem;
      color: #333;
      margin-bottom: 20px;
    }

    .intro {
      margin-bottom: 20px;

      /* line-height: 22px; */
      h4 {
        font-size: 1rem;
        margin-bottom: 5px;
      }

      span {
        color: #666;
      }
    }
  }
}

.section-4 {
  width: var(--skeleton-width);
  margin: 0 auto;
  padding-bottom: 20px;
  margin-top: 80px;

  .section-4-grid-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    .grid-item {
      background: #f7f8fa;
      border-radius: 1rem;
      height: 22.875rem;
      display: flex;
      flex-direction: column;
      transition: all 0.3s ease;
      cursor: pointer;
      box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
      position: relative;
      overflow: hidden;
      background-repeat: no-repeat;
      background-size: cover;

      .popover {
        transition: all 0.3s ease;
        transform: translateY(70%);
        height: 100%;
        background-color: rgba(241, 246, 253, 0.8);
        padding: 20px;

        h1 {
          font-size: 1.25rem;
          margin-bottom: 5px;
        }

        .ct-btn {
          margin-top: 20px;
        }
      }
    }

    .grid-item-active {
      /* background-size: 105% 105%; */
      background-position: center;

      .popover {
        transform: translateY(50%);
      }

      .ct-btn {
        margin-top: 20px;
      }
    }

    .grid-item:nth-child(1) {
      background-image: url("/assets/imgs/main_prod_01.png");
    }

    .grid-item:nth-child(2) {
      background-image: url("/assets/imgs/main_prod_02.png");
    }

    .grid-item:nth-child(3) {
      background-image: url("/assets/imgs/main_prod_03.png");
    }

    .grid-item:nth-child(4) {
      background-image: url("/assets/imgs/main_prod_04.png");
    }

    .grid-item:nth-child(5) {
      background-image: url("/assets/imgs/main_prod_05.png");
    }

    .grid-item:nth-child(6) {
      background-image: url("/assets/imgs/main_prod_06.png");
    }
  }
}

.section-5 {
  height: 300px;
  background-image: url("/assets/imgs/main_bg_bottom_top.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;

  .section-5-box {
    margin-top: 20px;
    padding-top: 3rem;
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .ct-btn {
    padding: 0.575rem 1.575rem;
    font-size: 1rem;
  }

  .secondary-btn {
    padding: 0.575rem 1.575rem;
    font-size: 1rem;
  }

  div {
    display: flex;
    gap: 20px;
  }
}

.site-footer {
  color: var(--footer-text);
  background: linear-gradient(180deg,
      var(--footer-bg-start) 0%,
      var(--footer-bg-end) 100%);
  font-size: 14px;

  .site-footer a {
    color: var(--footer-text);
    text-decoration: none;
  }

  .site-footer a:hover {
    text-decoration: underline;
  }

  .site-footer__container {
    max-width: var(--skeleton-width);
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
  }

  /* 顶部布局：左侧品牌块 + 右侧导航栅格 */
  .site-footer__top {
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }

  /* 品牌与联系方式 */
  .site-footer__brand .site-footer__logo img {
    width: auto;
    display: block;
    margin-bottom: var(--space-5);
  }

  .contact-list {
    font-style: normal;
    list-style: none !important;
    padding: 0;
    margin: 0 0 var(--space-5);
  }

  .contact-list__item+.contact-list__item {
    margin-top: var(--space-2);
  }

  .contact-list__link {
    color: var(--footer-muted);
    font-size: 16px;
  }

  .contact-list__link:hover {
    color: var(--footer-text);
  }

  .contact-list__meta {
    color: var(--footer-muted);
  }

  /* 二维码栅格 */
  .site-footer__qr-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: var(--space-4);
  }

  .qr {
    margin: 0;
    text-align: center;
  }

  .qr__image {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2);
    background: #fff;
  }

  .qr__caption {
    margin-top: var(--space-2);
    color: var(--footer-muted);
  }

  /* 导航分组 */
  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: var(--space-5);
  }

  .site-footer__nav-title {
    margin: 0 0 var(--space-3);
    font-size: 18px;
    font-weight: 700;
  }

  .site-footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .site-footer__nav-item+.site-footer__nav-item {
    margin-top: var(--space-3);
  }

  .site-footer__nav-item a {
    color: var(--footer-muted);
  }

  .site-footer__nav-item a:hover {
    color: var(--footer-text);
  }

  /* 分隔线与底部 */
  .site-footer__divider {
    border: 0;
    border-top: 1px solid var(--footer-line);
    margin: var(--space-6) 0 var(--space-4);
  }

  .site-footer__bottom {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--footer-muted);
  }

  .site-footer__compliance a {
    color: var(--footer-muted);
  }

  .site-footer__compliance a:hover {
    color: var(--footer-text);
  }

  .site-footer__compliance .sep {
    margin: 0 var(--space-2);
    color: var(--footer-line);
  }

  .visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
  }

  .site-footer__qr-images {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* 响应式 */
@media (max-width: 1024px) {
  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: var(--space-4);
  }
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__qr-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;

  h1 {
    font-size: 2.5rem;
    color: #333;
  }

  .section-heading__accent {
    flex: 1;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
  }

  .section-heading__accent::before {
    content: "";
    display: inline-block;
    position: absolute;
    right: 0px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-image: url("/assets/imgs/triangle.png");
  }
}

.section-sub-heading {
  margin-top: 10px;
  margin-bottom: 30px;

  p {
    font-size: 1rem;
    color: #999;
  }
}

.is-before-circle>li {
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(0, 0, 0, 0.6);
}

.is-before-circle>li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #000;
}

.section-nav {
  background-color: #f2f3f5;

  .section-nav__container {
    margin: 0 auto;
    padding: 10px 0;
    width: var(--skeleton-width);

    .section-nav__list {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .section-nav__item {
      position: relative;

      a {
        color: #666;
      }
    }

    .section-nav__item:last-child {
      a {
        color: #333;
      }
    }

    .section-nav__item:not(:last-child)::after {
      content: ">";
      display: inline-block;
      position: absolute;
      right: -15px;
      top: 50%;
      transform: translateY(-55%);
    }
  }
}

.sub-page-adv {
  width: 100%;
  height: 300px;
  background-image: url("/assets/brand/banner_about.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  line-height: 300px;
  text-align: center;
  font-size: 48px;
  color: #fff;
}