@font-face {
      font-family: 'Alibaba';
      src: url('../src/fonts/alibaba.ttf') format('truetype');
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Alibaba', Arial, sans-serif;
      /* background-color: #f9f9f9; */
      color: #333;
      padding-top: 80px;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      flex-direction: column;
      /* background-color: #232529; */
    }
    .body-class1 {
      background-color: #232529;
      background-image: url('../src/images/background/curve1.png');
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: center center;
    }
    .body-class2 {
      background-color: #232529;
      background-image: url('../src/images/background/curve2.png');
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: center center;
    }
    .body-class3 {
      background-color: #232529;
      background-image: url('../src/images/background/curve3.png');
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: center center;
    }
    .body-class4 {
      background-color: #f9f9f9;
      background-image: url('../src/images/background/curve1.png');
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: center center;
    }
    .body-class5 {
      background-color: #f9f9f9;
      background-image: url('../src/images/background/curve2.png');
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: center center;
    }
    .body-class6 {
      background-color: #f9f9f9;
      background-image: url('../src/images/background/curve3.png');
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: center center;
    }



    .general-page-container {
      max-width: 1600px;
      width: 80%;
      padding: 2.5rem;
      background-color: #f9f9f9bc;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
      border-radius: 12px;
      margin: 20px auto;
    }

    .general-page-container h1 {
      font-family: 'Alibaba', sans-serif;
      font-weight: 300;
      letter-spacing: 2px;
      font-size: 48px;
      text-align: center;
      margin-bottom: 2rem;
    }

    .general-page-container h2 {
      font-family: 'Alibaba', Arial, sans-serif;
      font-weight: 300;
      letter-spacing: 1px;
      font-size: 32px;
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    .general-page-container p {
      font-family: 'Alibaba', Arial, Helvetica, sans-serif;
      letter-spacing: 1px;
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }

    .general-page-container a {
      color: #000000;
      text-decoration: none;
      font-weight: bold;
      font-family: 'Alibaba', Arial, sans-serif;
      font-size: 18px;
      transition: color 0.3s ease;
      &:hover {
        color: #303131;
      }
    }

    .general-page-container .under-image-text {
      display: block;
      margin: 0.5rem auto;
      text-align: center;
      font-size: 14px;
      color: #666;
      max-width: 80%;
      font-family: 'Alibaba', Arial, sans-serif;
      font-weight: 500;
    }

    /* 为Teaching页面设置 */
    .center-page-container {
      display: block;
      margin: 0 auto;
      max-width: 850px;
    }

    .list-container {
      padding-left: 1.5rem;
      font-size: 18px;
      line-height: 1.8;
      font-family: 'Alibaba', Arial, sans-serif;
    }

    .list-container > li {
      padding-left: 10px;
      margin-bottom: 1rem;
    }

    .general-big-image {
      width: 100%;
      max-width: 1200px;
      height: auto;
      display: block;
      margin: 2rem auto;
      border-radius: 12px;
      object-fit: cover;
      background-position: center;
    }
    .general-middle-image {
      width: 70%;
      max-width: 800px;
      height: auto;
      display: block;
      margin: 1.5rem auto;
      border-radius: 12px;
      object-fit: cover;
      background-position: center;
    }
    .general-small-image {
      width: 50%;
      max-width: 600px;
      height: auto;
      display: block;
      margin: 1.2rem auto;
      border-radius: 12px;
      object-fit: cover;
      background-position: center;
    }
    
    .small-image-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
      text-align: center;
    }

    .general-small-image {
      max-width: 420px;
      border-radius: 12px;
      height: auto;
      min-width: 300px;
    }

    @media (min-width: 1200px) {
      .small-image-container {
        flex-wrap: nowrap;
      }
    }
    @media (max-width:1200px) {
      .general-small-image {
        max-width: 350px;
      }
    }


    @media (max-width: 768px) {
      .general-page-container {
        width: 95%;
        padding: 1.5rem;
      }
      .general-page-container h1 {
        font-size: 36px;
      }

      .general-page-container h2 {
        font-size: 24px;
      }

      .general-page-container {
        padding: 1rem;
      }

      .list-container {
        font-size: 15px;
      }

      .general-page-container p {
        font-size: 15px;
      }
      .general-page-container a {
        font-size: 15px;
      }
    }




.footer {
  margin-top: 50px;
  position: relative;
  text-align: center;
  background-color: transparent;
  color: white;
}
.waves {
  position:relative;
  width: 100%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:100px;
  max-height:150px;
}
/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height:40px;
    min-height:40px;
  }
}


.pi-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}
.pi-life-photo {
  height: 400px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(215, 219, 232, 0.3);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.pi-life-photo:hover {
  transform: scale(1.00);
  /* cursor: pointer; */
}
@media (max-width: 768px) {
  .pi-block {
    flex-direction: column;
    text-align: center;
  }

  .pi-life-photo {
    width: 80%;
  }

}

@media (max-width: 1200px) {
  #pi-block-2 > .pi-life-photo {
    order: -1;
  }
}

.list-content {
  text-align: left;
}


.pi-experience {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pi-experience table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem;
}

.pi-experience td {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  font-family: 'Alibaba', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.pi-experience th {
  padding: 0.5rem;
  background-color: #e0e0e0;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  font-family: 'Alibaba', Arial, sans-serif;
}

.pi-text {
  font-family: 'Alibaba', Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.6;
  margin: 2rem auto;
  text-align: center;
  width: 85%;
}

@media (max-width: 1000px) {
  .pi-experience td,
  .pi-experience th {
    font-size: 14px;
  }
  .pi-text {
    font-size: 18px;
    width: 90%;
  }
}

/* video style */
.video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;    /* 容器最大宽度 */
  aspect-ratio: 16 / 9; /* 高度按比例自动算 */
  background-color: #000;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: 20px auto;
}

.video-iframe {
  width: 100% !important;   /* 强制宽度跟随容器 */
  height: 100% !important;  /* 强制高度跟随容器 */
  display: block;
  object-fit: contain;        /* 填充容器，保持比例（可能裁切） */
  border: none;
}
