@tailwind base;
@tailwind components;
@tailwind utilities;
#app {
  transition: opacity 0.4s;
}

[v-cloak] {
  /* display: none; */
  opacity: 0;
}

/* @font-face {
    font-family: HarmonyOS_Sans_SC_Medium;
    font-style: normal;
    font-display: swap;
    src: url('/static/fonts/HarmonyOS_Sans_SC_Regular.ttf'),

} */

html {
  font-family: HarmonyOS_Sans_SC_Medium, Microsoft Yahei, PingFang, sans-serif;
}

* {
  font-family: HarmonyOS_Sans_SC_Medium, Microsoft Yahei, PingFang, sans-serif;
}
body {
  background: white;
}

code,
kbd,
pre,
samp {
  font-family: inherit;
}

img {
  width: 100%;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  border-radius: 10px;
  /* 滚动条宽度 */
  width: 10px;
  /* 滚动条圆角 */
  height: 10px;
}

* {
  scrollbar-color: auto !important;
}

/* 自定义滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  /* 滚动条圆角 */
  background: #c1c1c1;
  /* 滚动条颜色 */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  /* 滚动条悬停颜色 */
}

/* 滑块悬停时的样式 */
/* 自定义滚动条轨道的可滚动部分 */
::-webkit-scrollbar-track-piece {
  border-radius: 10px;
  background-color: #f1f1f1;
  /* 设置轨道背景颜色 */
}

/* 自定义滚动条轨道 */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* 设置轨道背景颜色 */
  border-radius: 10px;
  /* 设置轨道圆角 */
}

.absolute-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.home .animated-gradient {
  background: linear-gradient(90deg, #065691, #2e8ead, #40ae93, #31a34f);
  background-size: 400% 400%;
  animation: gradientAnimation 3s ease infinite;
}

.home .solutionBtn:hover {
  background: linear-gradient(90deg, #67c4dd, #3ad7ac);
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

header[data-color="light"] {
  /* 当 data-color 为 light 时的样式 */
  background-color: #fff;
  color: #333;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

header[data-color="dark"] {
  /* 当 data-color 为 default 时的样式 */
  color: #fff;
}

.nav-b.on {
  opacity: 100 !important;
}

.about .sect:nth-child(2n) {
  flex-direction: row-reverse;
}

@media (max-width: 1024px) {
  .text-\[72rem\] {
    font-size: 34rem !important;
  }
  .text-\[48rem\] {
    font-size: 30rem !important;
  }

  .text-\[46rem\] {
    font-size: 30rem !important;
  }

  .text-\[44rem\] {
    font-size: 30rem !important;
  }

  .text-\[42rem\] {
    font-size: 30rem !important;
  }

  .text-\[40rem\] {
    font-size: 30rem !important;
  }

  .text-\[38rem\] {
    font-size: 28rem !important;
  }

  .text-\[36rem\] {
    font-size: 28rem !important;
  }

  .text-\[34rem\] {
    font-size: 24rem !important;
  }

  .text-\[32rem\] {
    font-size: 24rem !important;
  }

  .text-\[30rem\] {
    font-size: 24rem !important;
  }

  .text-\[26rem\] {
    font-size: 23rem !important;
  }
}
