/* Shared material selector used by the home and process pages. */
:is(.material, .standard) {
  --material-blue: #2c52ff;
  --material-ink: #1d2e55;
  --material-paper: #f5f7ff;
  --material-cut: 28px;
  display: flex;
  width: 100%;
  padding: var(--process-module-space, 60px) 0;
  background: var(--material-paper);
}

:is(.material, .standard) > .inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0;
  width: 82%;
  margin: 0 auto;
  align-items: stretch;
}

:is(.material, .standard) > .inner > .content {
  display: flex;
  min-height: 520px;
  width: 39%;
  padding: 60px 48px;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, var(--material-ink) 76.67%, var(--material-blue) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--material-cut) 100%, 0 calc(100% - var(--material-cut)));
  border-radius: 8px 0 0 8px;
}

:is(.material, .standard) > .inner > .content > .title p {
  color: rgba(255, 255, 255, 1);
  font-family: OPPOSans, sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 53px;
}

:is(.material, .standard) > .inner > .content > .list {
  display: flex;
  width: 100%;
  margin-top: 32px;
  flex-direction: column;
  gap: 22px;
}

:is(.material, .standard) > .inner > .content > .list > .item {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: gap .25s ease;
}

:is(.material, .standard) > .inner > .content > .list > .item > .line {
  display: block;
  width: 0;
  height: 2px;
  flex: 0 0 0;
  background: rgba(255, 255, 255, 1);
  transition: width .25s ease, flex-basis .25s ease;
}

:is(.material, .standard) > .inner > .content > .list > .item > .text {
  min-width: 0;
}

:is(.material, .standard) > .inner > .content > .list > .item > .text > p {
  opacity: .3;
  color: rgba(255, 255, 255, 1);
  font-family: OPPOSans, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  transition: opacity .25s ease, font-size .25s ease, line-height .25s ease;
}

:is(.material, .standard) > .inner > .content > .list > .item:hover > .text > p,
:is(.material, .standard) > .inner > .content > .list > .item:focus-visible > .text > p,
:is(.material, .standard) > .inner > .content > .list > .item.item-active > .text > p {
  opacity: 1;
}

:is(.material, .standard) > .inner > .content > .list > .item.item-active {
  gap: 10px;
}

:is(.material, .standard) > .inner > .content > .list > .item.item-active > .line {
  width: 18px;
  flex-basis: 18px;
}

:is(.material, .standard) > .inner > .content > .list > .item.item-active > .text > p {
  font-size: 22px;
  line-height: 29px;
}

:is(.material, .standard) > .inner > .img {
  position: relative;
  display: flex;
  width: 60%;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--material-cut)) 0, 100% var(--material-cut), 100% 100%, 0 100%);
  border-radius: 0 8px 8px 0;
  background: var(--material-ink);
}

.standard > .inner > .content {
  order: 2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--material-cut)), calc(100% - var(--material-cut)) 100%, 0 100%);
  border-radius: 0 8px 8px 0;
}

.standard > .inner > .img {
  order: 1;
  clip-path: polygon(var(--material-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--material-cut));
  border-radius: 8px 0 0 8px;
}

:is(.material, .standard) > .inner > .img > .swiper,
:is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper,
:is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide {
  width: 100%;
  height: 100%;
}

:is(.material, .standard) > .inner > .img > .swiper {
  min-height: 520px;
}

:is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper {
  display: flex;
}

:is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--material-ink);
}

.standard > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide:first-child::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(269.95deg, rgba(44, 82, 255, 0.15) -0.39%, rgba(44, 82, 255, 0.36) 154.73%);
  content: "";
  pointer-events: none;
  z-index: 1;
}

.material > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide:not(:first-child)::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(269.95deg, rgba(44, 82, 255, 0.25) -0.39%, rgba(44, 82, 255, 0.6) 154.73%);
  content: "";
  pointer-events: none;
  z-index: 1;
}

:is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

:is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide:hover > img {
  transform: scale(1.04);
}

:is(.material, .standard) .swiper-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  max-height: 78%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 38px);
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

:is(.material, .standard) .swiper-content .text1 p {
  color: rgba(255, 255, 255, 1);
  font-family: OPPOSans, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}

:is(.material, .standard) .swiper-content .text2 p {
  color: rgba(255, 255, 255, 1);
  font-family: OPPOSans, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
}

:is(.material, .standard) .swiper-content .text2 span {
  font-weight: 600;
}

:is(.material, .standard) .swiper-slide[aria-hidden="true"] {
  visibility: hidden;
}

:is(.material, .standard) .swiper-slide.swiper-slide-active {
  visibility: visible;
}

@media (max-width: 1280px) {
  :is(.material, .standard) > .inner { width: 90%; }
  :is(.material, .standard) > .inner > .content,
  :is(.material, .standard) > .inner > .img { min-height: 440px; }
  :is(.material, .standard) > .inner > .content { padding: 50px; }
  :is(.material, .standard) > .inner > .img > .swiper { min-height: 440px; }
  :is(.material, .standard) > .inner > .content > .title p { font-size: 36px; line-height: 47px; }
  :is(.material, .standard) > .inner > .content > .list > .item.item-active > .text > p { font-size: 19px; line-height: 25px; }
  :is(.material, .standard) .swiper-content .text1 p { font-size: 16px; }
  :is(.material, .standard) .swiper-content .text2 p { font-size: 15px; }
}

@media (max-width: 768px) {
  :is(.material, .standard) { --material-cut: 18px; }
  :is(.material, .standard) > .inner {
    display: flex;
    width: 82%;
    flex-direction: column;
    gap: 0;
  }
  :is(.material, .standard) > .inner > .img {
    min-height: 0;
    aspect-ratio: 2 / 1;
    order: 2;
    width: 100%;
    border-radius: 0 0 8px 8px;
  }
  :is(.material, .standard) > .inner > .content {
    min-height: 0;
    order: 1;
    width: 100%;
    padding: 30px;
    border-radius: 8px 8px 0 0;
  }
  :is(.material, .standard) > .inner { width: 94%; }
  /* Stack the selector with the same outer-corner direction as its process group. */
  .material > .inner > .content {
    clip-path: polygon(0 0, calc(100% - var(--material-cut)) 0, 100% var(--material-cut), 100% 100%, 0 100%);
  }
  .material > .inner > .img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--material-cut) 100%, 0 calc(100% - var(--material-cut)));
  }
  .standard > .inner > .content {
    clip-path: polygon(var(--material-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--material-cut));
  }
  .standard > .inner > .img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--material-cut)), calc(100% - var(--material-cut)) 100%, 0 100%);
  }
  :is(.material, .standard) > .inner > .img > .swiper { min-height: 0; }
  :is(.material, .standard) > .inner > .content > .title p { font-size: 30px; line-height: 40px; }
  :is(.material, .standard) > .inner > .img { aspect-ratio: auto; }
  :is(.material, .standard) > .inner > .img > .swiper,
  :is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper,
  :is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide { height: auto; }
  :is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper { align-items: stretch; }
  :is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide { min-height: 0; }
  :is(.material, .standard) > .inner > .img > .swiper > .swiper-wrapper > .swiper-slide > img {
    position: absolute;
    inset: 0;
  }
  :is(.material, .standard) .swiper-content {
    position: relative;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  :is(.material, .standard) > .inner > .content { padding: 26px 20px 30px; }
  :is(.material, .standard) > .inner > .content > .title p { font-size: 26px; line-height: 34px; }
  :is(.material, .standard) > .inner > .content > .list { margin-top: 20px; gap: 11px; }
  :is(.material, .standard) > .inner > .content > .list > .item.item-active > .text > p { font-size: 16px; line-height: 22px; }
  :is(.material, .standard) .swiper-content { max-height: none; overflow: visible; padding: 16px 12px 14px; gap: 5px; }
  :is(.material, .standard) .swiper-content .text1 p { font-size: 18px; line-height: 1.5; }
  :is(.material, .standard) .swiper-content .text2 p { font-size: 16px; line-height: 1.5; }
}

@media (max-width: 414px) {
  :is(.material, .standard) > .inner > .content { padding: 24px 16px 28px; }
  :is(.material, .standard) > .inner > .content > .title p { font-size: 20px; line-height: 26px; }
}

@media (max-width: 375px) {
  :is(.material, .standard) > .inner > .content > .title p { font-size: 24px; line-height: 32px; }
}

