@font-face {
  font-family: 'Aozorathin';         /* 定义字体名称 */
  src: url('./AozoraMincho-thin.ttf') format('truetype'); /* 指定字体文件路径和格式 */

}
:root {
  --Color_globalBlue: rgb(103, 132, 255);
  --Color_globalPurpleBlue: #6C87FF;
  --Color_globalLightBlue: rgb(148, 168, 255);
  --Color_globalLightBlue_bg:rgba(148, 168, 255, 0.1);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 0px;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(0deg, rgba(82, 114, 255, 0.2), #6c87ff4c);
    background-size: 200% 100%;
    animation: heroBackgroundAnim 8s ease infinite;
}

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


.hero h1{
  font-family: 'STSONG.ttt';
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight:10;
  opacity: 0;
  transform: translateY(20px);
  color:var(--Color_globalBlue);
}
#gradient_bg{

  background: linear-gradient(to right, var(--Color_globalBlue), var(--Color_globalBlue),var(--Color_globalLightBlue),var(--Color_globalBlue), var(--Color_globalBlue), var(--Color_globalBlue), var(--Color_globalBlue));
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: 
    fadeUp 1s forwards 0.3s,
    heroTextAnim 4s infinite linear;
}

@keyframes heroTextAnim {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.TitleBG {
  width: 100%;
  left: 0;
  position: relative;
  align-self: center;
  align-content: center;
}

.TitleBG.top {
  background: rgba(0, 76, 255, 0.288);
}

.TitleBG h1 {
  font-size: 6em;
  margin:1rem;
  font-family: "MiSans VF";
  position: relative;
  text-align: center;
  width: 100%;
  display: inline-block;
  font-weight: bold;
  background: linear-gradient(to left, var(--Color_globalBlue),rgb(97, 144, 255), rgb(0, 102, 255),rgb(35, 108, 255));
  color: transparent; 
  background-size: 300%;
  animation-name: TextAnim,WordFontWeight; 
  animation-duration: 1s; 
  animation-iteration-count: 2 ;
  animation-timing-function: cubic-bezier(.76,-0.01,.34,.99);
}

.TitleBG.sub {
  background: rgba(0, 255, 21, 0.127);
  transition: 0.5s ease;
}

.TitleBG h2 {
  position: relative;
  text-align: center;
  width: 100%;
  color: transparent; /* 使文字颜色透明，显示背景渐变 */
  animation-name: TextAnim,WordFontWeight; /* 引用动画名称 */
  animation-duration: 1s; /* 引用动画名称及设置无限循环 */
  animation-iteration-count: 2 ;
  animation-timing-function: cubic-bezier(.76,-0.01,.34,.99);
  font-size:3rem;
  margin: 0;
  display: inline-block; /* 为了使背景渐变仅作用于文字，确保元素为inline-block或block */
  font-weight: bold; /* 假设需要加粗，可根据实际需求调整 */
  background: linear-gradient(to right, var(--Color_globalLightBlue),rgb(101, 255, 98), rgb(0, 106, 255),rgb(0, 255, 13));
  background-clip: text; /* 使背景渐变应用于文字 */
  background-size: 500%;
  font-family: "MiSans VF";
  font-weight:10;
  transition: 0.5s ease;
  animation:TextAnim 5s infinite;  
}

.TitleBG.sub:hover h2{
  transform: skew(10deg,1deg);
  scale:1.1;
  font-weight:1000;
}


/* 定义动画关键帧 */
@keyframes TextAnim {
0% { background-position: 0% 0%; }
25% { background-position: 25% 0%; }
50% { background-position: 50% 100%; }
75% { background-position: 75% 100%; }
100% { background-position: 0% 50%; }
}

@keyframes WordFontWeight {
0% { font-weight: 670; }
50% { font-weight: 170; }
100% { font-weight: 670; }
}

@font-face {
  font-family: 'misans-light';         /* 定义字体名称 */
  src: url('./MiSans-Light.ttf') format('truetype'); /* 指定字体文件路径和格式 */

}

.parent_section {
  background: var(--Color_globalLightBlue_bg);
}

* {
    --Ani_fold: 0.5s cubic-bezier(.58,.01,.07,1.26);
    --Ani_bounce: 0.5s cubic-bezier(.32,.78,.49,1.13);
}


#text {
  font-family: 'miSans-light';
  width:80%;
  padding:10px;
  text-align: center;
  justify-self: center;
  color:var(--Color_globalPurpleBlue);
  background: var(--Color_globalLightBlue_bg);
  border-radius: 10px;
  transition: all var(--Ani_bounce);
}

#text:hover {
  width:70%;
  padding:20px;
  transform: scale(1.03);
  box-shadow: var(--Color_globalPurpleBlue) 0 20px 40px;
  background: var(--Color_globalLightBlue_bg);
  color:var(--Color_globalPurpleBlue);
}

/* 新版翻转卡片效果 */


@keyframes a_arrow {
  0%{
    transform: translateX(0px);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0px);
  }
}

a::before {
  content:'>';
  display: inline-flex;
  animation: a_arrow 1s infinite var(--Ani_fold);
  margin-right: 10px;
  color: white;
}

#folds {
  padding:0.1rem 0;
}

#flips {
  padding: 1rem; 
}

.foldcard {
    display: flex;
    flex-direction: row;
    justify-self: left;
    max-width: 100%;
    perspective: 400px;
    margin: 1rem;
    margin-left: 5rem;
    transform-style: preserve-3d;
}

.foldleft {
    border-radius: 10px 0px 0px 10px;
    background-color: #b1d1ff;
    transition: all var(--Ani_fold);
    transform-origin: 100% 0%;
    padding: 10px;
}

.foldcard img {
    border-radius: 10px;
    display: inline-block;
    height: 300px;
    align-self: center;
    justify-self: center;
}

.foldcard .foldright {
    margin: 0rem;
    padding:22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: center;
    align-self: center;
    height:280px;
    border-radius: 0px 10px 10px 0px;
    background-color: #b1d1ff;
    transform: rotateY(100deg);
    transition: all var(--Ani_fold);
    transform-origin: 0% 50%;
}

.foldcard .foldright h1 {
    display: block;
    position: relative;
    margin-top: 0;
    line-height: 100%;
    font-family: 'MiSans';
    font-size: 2.5rem;
    transition: all 1s ease;
}
.foldcard .foldright h2 {
    display: block;
    position: relative;
    font-family: 'MiSans';
    font-weight: 400;
    line-height: 110%;
    margin-top: 0;
    transition: all 1s ease;
}

.foldcard .foldright a {
  color:var(--Color_globalBlue);
  display: block;
  text-align: center;
  overflow: hidden;
  text-decoration: none;
  font-family: 'MiSans';
  font-size: 1.5rem;
  font-weight: 800;
  position: absolute;
  bottom: 2rem;
  transition: all var(--Ani_fold);
}

.foldcard .foldright a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #acffa8;
    transform: scaleX(0); /* 初始缩放为0 */
    transform-origin: left;
    transition: var(--Ani_fold);
    z-index: -1;
}

.foldcard .foldright a:hover::after {
    transform: scaleX(1); /* 鼠标悬停时缩放为1 */
}

.foldcard .foldright a:hover {
  transform: scale(1.2);
  margin-left: 40px;
}

.foldcard:hover .foldright {
    transform: rotateY(0deg);
}
.foldcard:hover .foldleft {
    transform: rotateY(-20deg);
}

.flipcard {
  display: flex;
  perspective: 600px;
  width:240px;
  height:240px;
  justify-self: center;
  margin:10px;
  height:fit-content;
}

.flip-front {
  position: absolute;
  transform: rotateY(0deg);
  transition: all 0.5s;
  z-index: 99;
  overflow: hidden;
  width:100%;
  height:100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flipcard:hover .flip-front {
  transform: rotateY(180deg);
  z-index: -99;
}

.flip-front img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: all var(--Ani_fold);
}

.flipcard:hover .flip-front img {
  border:0;
  filter:blur(40px);
  border-radius: 10px;
}

.flipcard::before {
  left:-1px;
  border: solid 2px #000000;
  content: '';
  position: absolute;
  transform-origin: 50% 50%;
  justify-self: center;
  align-self:center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.flipcard:hover::before {
  animation: pulse_border 0.5s ease-in-out;
}
@keyframes pulse_border{
  0% {
    scale: 100%;
  }
  50% {
    scale: 130%;
  }
  100% {
    scale: 100%;
    transform: rotateY(-180deg);
  }
}
.flip-back {
  transform: rotateY(180deg);
  transition: all 0.5s;
  z-index: -99;
  background-color: rgba(169, 185, 255, 0.5);
  padding: 10px;
  width: 100%;
  height: calc(100%px);
  border-radius: 10px;
  filter:blur(10px);
  box-sizing: border-box;
}



.flipcard:hover .flip-back {
  transform: rotateY(360deg);
  z-index: 99;
  filter:blur(0);
}

.flip-back h1 {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 1.5rem;
    font-family: 'MiSans';
    font-weight: 1000;
    line-height: 100%;
}

.flip-back p {
  font-size: 1.2rem;
  font-family: 'MiSans';
  line-height: 100%;
}

.flip-back a {
  color: var(--Color_globalBlue);
  display: block;
  line-height: 100%;
  bottom: 10px;
  position: absolute;
  text-align: center;
  text-decoration: none;
  transition: all var(--Ani_fold);
  font-size: 1.2rem;
}

.flip-back a:hover {
  color: #b4ffbe;
  font-weight: 1000;
  font-size: 1.3rem;
}
         

.contact {
  background: linear-gradient(to right, rgba(51, 105, 255, 0.749),#676fff);
  color:#ffffff;
  box-sizing: border-box;
  text-align: center;
  padding: 20px 20px;
  height: auto;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
  line-height: 100%;
}

.contact h3 {
  font-size: 1.2rem;
  font-weight: 100;
  line-height: 00%;
}

.fade-up-animation {
    animation: fadeUp 1s forwards 1.1s;
}
/* 动画 */
@keyframes fadeUp {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 移动端适配 */
@media screen and (max-width: 768px) , screen and (hover: none), screen and (pointer: coarse){
  /* 调整标题字体大小 */
  .hero h1 {
    font-size: 2rem;
  }
  
  .TitleBG h1 {
    font-size: 3rem;
  }
  
  .TitleBG h2 {
    font-size: 1.8rem;
  }
  
  /* 调整文本内容字体大小 */
  #text {
    font-size: 1.1rem;
    width: 90%;
  }
  
  /* 折叠卡片在移动端的样式 */
  #folds {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .foldcard {
    flex-direction: column;
    width: 90% !important;
    max-width: 90%;
    margin: 1rem auto;
  }
  
  .foldleft {
    border-radius: 10px 10px 0 0;
    transform-origin: 50% 100%;
  }

  .foldleft img {
    height: auto;
    max-width: 100%;
  }
  
  .foldcard .foldright {
    border-radius: 0 0 10px 10px;
    transform: rotateX(-100deg);
    transform-origin: 50% 0%;
    height: auto;
    min-height: 300px;
  }
  
  .foldcard:hover .foldleft {
    transform: rotateX(50deg);
  }
  
  .foldcard:hover .foldright {
    transform: rotateX(0deg);
  }
  
  /* 翻转卡片在移动端的样式 */
  #flips {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .flipcard {
    width: 90% !important;
    margin: 1rem auto;
    aspect-ratio: 1;
  }

  .flip-back {
    height:calc(100%-20px);
  }
  /* 联系方式区域调整 */
  .contact h2 {
    font-size: 1.5rem;
  }
  
  .contact h3 {
    font-size: 1rem;
  }
}


/* 针对触摸设备的优化 */
@media (pointer: coarse) {
  .flipcard {
    transition: none;
  }
  
  .flipcard:hover .flip-front {
    transform: rotateY(180deg);
  }
  
  .flipcard:hover .flip-back {
    transform: rotateY(360deg);
  }
  
  .foldcard:hover .foldright {
    transform: rotateX(0deg);
  }
  
  .foldcard:hover .foldleft {
    transform: rotateX(50deg);
  }
}

/* 针对鼠标设备 */
@media (pointer: fine) {
  .flipcard {
    cursor: pointer;
  }
}