@import "@/styles/mixins.scss";
@import "@/styles/variables.scss";

@mixin link() {
  color: $B3 !important;
  &:hover {
    color: #fff !important;
  }
}

.section {
  background: $white;
  padding: $hl-2 0;

  h1 {
    text-align: center;
    color: $black;
    margin-bottom: $hl-4;
  }
}

@media screen and (max-width: $wide) {
  .section [data-role="list-content"] {
    margin-top: -3rem;
  }

  .section [data-role="list-loop"] {
    margin-top: $hl-5;
  }
}

.listWrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;

  & > div {
    max-width: 100% !important;
  }
  @media screen and (max-width: $desktop) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media screen and (max-width: $min-width) {
    grid-template-columns: 1fr;
  }
}

.inner {
  background-color: #fff;
  border-radius: 0.625rem;
  h4 {
    margin: $hl-8 0 $hl-9 0;
    @include h4();
  }

  p {
    color: $font-color-8;
    @include p1;
    @include multi-line-ellipsis(3);
  }
}

.imgContent {
  border-radius: $radius;
}

.contact {
  position: relative;
  background: url("/tidb-enabling-china-enterprise-go-global/contact-bg-left.png")
    top right no-repeat #2526a0;
  .bg {
    position: absolute;
    bottom: 0;
    left: 0;
    background: url("/tidb-enabling-china-enterprise-go-global/contact-bg-right.png")
      left bottom no-repeat;
    background-size: contain;
    width: 60rem;
    height: 25rem;
  }
  .text {
    padding-bottom: $hl-6;
  }
  h1,
  p {
    color: $white;
  }
  .formWrapper {
    background-color: $white;
    padding: 2rem;
    border-radius: $radius;
  }
}

.solutions {
  .imgContent {
    img {
      width: auto;
    }
  }
  ul {
    margin: 1rem 0;
    list-style: disc;
    margin-left: 1rem;
    min-height: 14rem;
    li {
      color: $black;
      opacity: 0.6;
    }
  }
}

.cases {
  background-color: $grey-light;
  .videoContainer {
    color: #fff;
    font-size: 18px;
    max-width: calc(#{$max-wide} - 2rem);
    margin: 0 auto;
    > div {
      padding: 6rem 0 10rem;
    }
    h1 {
      color: #fff;
      margin-bottom: 1rem;
      padding: 0 1rem;
      font-weight: 600;
    }
  }

  .playIcon {
    color: #fff;
    cursor: pointer;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    i {
      font-size: 5.5rem;
    }
  }
  .listWrapper {
    max-width: $max-wide;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    @media screen and (max-width: $min-width) {
      grid-template-columns: 1fr;
    }
    img {
      margin-bottom: 1.5rem;
      width: auto;
      height: 108px;
    }
  }
  .inner {
    padding: 3rem;
    text-align: center;
    height: 100%;
    p {
      text-align: left;
    }
  }

  p {
    color: $black;
    opacity: 0.6;
    display: block;
  }
  p + p {
    margin-top: 1.5rem;
  }
  a {
    margin-top: 3rem;
  }

  .logo {
    img {
      height: 5rem;
    }
    div {
      text-align: center;
    }
  }
}

.freeExperience {
  background: url("/tidb-enabling-china-enterprise-go-global/subbanner-bg.svg")
    no-repeat center center;
  background-size: cover;

  .content {
    padding: 4.25rem 0;
  }

  h1 {
    @include h1;
    color: $white;
    text-align: center;
  }

  .buttonGroup {
    text-align: center;
    width: 18.25rem;

    .button {
      color: $B1;
    }
  }
}

@media screen and (max-width: $max-desktop) {
  .content {
    flex-direction: column;
  }

  .buttonGroup {
    padding-top: 1.5rem;
  }
}

.removePaddingTop {
  padding-top: 0;
}

.removePaddingBottom {
  padding-bottom: 0;
}
