/* 全局css */

html {
  overflow-x: hidden;

  --active-color: #EA0029;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* OPPO Sans 4.0 字体声明 */
@font-face {
  font-family: 'OPPO Sans 4.0';
  font-weight: normal;
  font-style: normal;

  font-display: swap;
  src: url('assets/font/OPPO Sans 4.0.ttf') format('truetype');
}

body {
  font-family: 'OPPO Sans 4.0', sans-serif !important;
}

.container {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.section {
  width: 100%;
  max-width: 1480px;

  margin-inline: auto;
}

.hidden {
  display: none;
}

img, .yg-video {
  width: 100%;
  height: auto;
}

.yg-section-media {
  width: 100%;
}

video-media[data-media-type="youtube"] {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

video-media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.flex {
  display: flex;
}

h2,
.h2 {
  font-size: 48px;
  line-height: 1.2;
}

h3,
.h3 {
  font-size: 36px;
  line-height: 1.4;
}

h4,
.h4 {
  font-size: 32px;
  line-height: 1.2;
}

h5,
.h5 {
  font-size: 28px;
  line-height: 1.4;
}

.text-normal {
  font-size: 16px;
}

.text-xs {
  font-size: 12px;
}

.text-md {
  font-size: 14px;
}

.text-xl {
  font-size: 18px;
}

.semibold {
  font-weight: 600;
}

.bold {
  font-weight: 700;
}


.text-center {
  text-align: center;
}

a {
  transition: all 0.3s ease;
}

body a:hover {
  color: var(--active-color);
}

.yg-section-media * {
  width: 100%;
}

.animate-item {
  transition: opacity 0.5s ease,
  transform 0.5s ease;
  transform: translateY(20px);
  opacity: 0;
}

.animate-item.animate-active {
  transform: translateY(0);
  opacity: 1;
}

.yg-button {
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: space-between;
  max-width: max-content;
  padding: 8px 8px 8px 20px;
  transition: all 0.3s ease-in-out;
  border-radius: 90px;
}

.yg-button-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 3px 12px;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;

  aspect-ratio: 3 / 2;
  backdrop-filter: blur(10px);
}

.yg-button-arrow svg {
  width: 24px;
  height: 24px;
}

.yg-button:hover {
  border: 1px solid #d70101;
}

.yg-button:hover .yg-button-arrow {
  color: #d70101;
}

.yg-link {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease-in-out;
  color: #4e515a;
}

.yg-link svg {
  width: 7px;
  height: 14px;
}

.yg-link:hover {
  color: var(--active-color);
}

.yg-hover-image img {
  transition: all 0.5s ease-in-out;
}

.yg-hover-image:hover img {
  transform: scale(1.1);
}

.banner-content-wrapper {
  padding-block: 64px;
  margin-block: auto 0;
}

.yg-pagination {
  z-index: 1;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 40px;
  padding: 8.5px 18px 7.5px 18px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  transform: translateY(-50%);
  opacity: 0;
  border-radius: 30px;
  background: #2d2f33;
}

.yg-pagination-prev {
  left: -26px;
}

.yg-pagination-next {
  right: -26px;
}

.yg-slide:hover .yg-pagination {
  opacity: 1;
}

.yg-pagination:hover {
  background: var(--active-color);
}

.yg-slide:hover .yg-pagination.swiper-button-disabled,
.yg-pagination.swiper-button-disabled:hover {
  opacity: 0.4;
  cursor: no-drop;
}

.yg-architecture {
  position: relative;
  width: 66px;
  height: 66px;
  cursor: pointer;
}

.yg-architecture img {
  position: absolute;
}

/* 主图标 */
.yg-architecture img:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 小图标组 */
.yg-architecture img:nth-child(2),
.yg-architecture img:nth-child(3) {
  width: 9px;
  height: 9px;
}

.yg-architecture img:nth-child(2) {
  top: 12px;
  left: 14px;
}

.yg-architecture img:nth-child(3) {
  top: 12px;
  left: 44px;
}

/* 大图标组 */
.yg-architecture img:nth-child(4),
.yg-architecture img:nth-child(5),
.yg-architecture img:nth-child(6),
.yg-architecture img:nth-child(7) {
  width: 13px;
  height: 13px;
}

.yg-architecture img:nth-child(4) {
  top: 24px;
  left: 2px;
}

.yg-architecture img:nth-child(5) {
  top: 24px;
  left: 53px;
}

.yg-architecture img:nth-child(6) {
  top: 40px;
  left: 16px;
}

.yg-architecture img:nth-child(7) {
  top: 40px;
  left: 39px;
}

@keyframes turn {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(40deg);
  }

  50% {
    transform: rotate(80deg);
  }

  75% {
    transform: rotate(120deg);
  }

  100% {
    transform: rotate(160deg);
  }
}

@media (max-width: 1680px) {

  h2,
  .h2 {
    font-size: 40px;
  }

  h4,
  .h4 {
    font-size: 28px;
  }

  h5,
  .h5 {
    font-size: 24px;
  }

  .text-normal {
    font-size: 14px;
  }
}

@media (max-width: 1560px) {
  .section {
    padding-inline: 8%;
  }
}

@media (max-width: 1480px) {
  .section {
    padding-inline: 7%;
  }
}

@media (max-width: 1149px) {
  .section {
    padding-inline: 40px;
  }

  h2,
  .h2 {
    font-size: 32px;
  }

  h3, .h3 {
    font-size: 32px;
  }

  .text-xl {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .banner-content-wrapper {
    padding-block: 48px;
  }

  h2,
  .h2 {
    font-size: 28px;
  }
}

@media (min-width: 768px) {
  .hide-pc {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .show-desktop {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }

  h3,
  .h3 {
    font-size: 24px;
  }

  h4,
  .h4 {
    font-size: 20px;
  }

  h5, .h5 {
    font-size: 18px;
  }

  .section {
    padding-inline: 20px;
  }

  .yg-button {
    padding: 7px 7px 7px 16px;
    gap: 49px;
  }

  .yg-button-arrow {
    min-width: 48px;
    height: 32px;
  }

  .yg-button-arrow svg {
    width: 20px;
    height: 20px;
  }
}
