body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: auto;
  font-family: "Noto Sans SC", Arial, sans-serif;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 600%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.slider-indicators {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: rgba(255, 255, 255, 0.5);
}

.main-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.animated-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  animation: breathe 3s infinite ease-in-out;
  transition: transform 0.3s ease-in-out;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.animated-circle:hover {
  animation-play-state: paused;
  transform: scale(1.4);
}

.nav-items {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.nav-item {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.main-nav.active .nav-items {
  max-height: 100px;
  opacity: 1;
}

.main-nav.active .nav-item {
  opacity: 1;
  transform: translateY(0);
}

.personality-text {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  z-index: 1000;
}

.beian-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  z-index: 1000;
}

.beian-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.beian-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Animation curve explanation:
 * We use 'ease-in-out' for the animation timing function.
 * This creates a smooth acceleration at the start and deceleration at the end of the animation.
 * The animation curve is symmetrical, starting slow, speeding up in the middle, and slowing down at the end.
 * This gives a more natural and pleasing visual effect compared to a linear rotation or transition.
 */

#shader-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.about-content {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/9;
  max-height: 90vh;
  max-width: 1000px;
  width: 100%;
}

.designer-photo-container {
  position: relative; /* 相对定位 */
  height: 100%;
  overflow: visible; /* 确保内容不会溢出 */
  display: flex; /* 使用flex布局 */
  justify-content: center; /* 水平居中 */
  padding: 60px 0; /* 添加顶部填充 */
}

.designer-photo {
  position: relative;
  width: 60% !important; /* 缩小图片宽度 */
  height: auto !important;
  max-width: 256px; /* 限制最大宽度 */
  margin: 0 auto; /* 水平居中 */
  object-fit: contain;
  aspect-ratio: 1/1; /* 保持圆形比例 */
}

/* 关于页面的文字样式 */
.about-text {
  padding: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column; /* 改为垂直方向布局 */
  justify-content: center; /* 垂直居中 */
  align-items: center; /* 水平居中 */
  height: 100%;
  min-height: 400px; /* 添加最小高度保证居中效果 */
  text-align: center;
}

.back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  z-index: 10;
}

.text-wrapper {
  max-width: 600px; /* 控制文字最大宽度 */
  width: 100%;
}

[role="separator"] {
  height: 1px;
  background: #ddd;
  margin: 20px auto;
  width: 80%;
}

.about-text h2 {
  margin-bottom: 15px;
  font-size: 2.2em;
}

.about-text h3 {
  margin-bottom: 25px;
  font-size: 1.4em;
  font-weight: normal;
}

.about-text p {
  margin: 10px 0;
  line-height: 1.8;
}

@media (max-width: 991px) {
  .about-container {
    padding: 40px 20px;
  }
  .about-content {
    max-width: 600px;
  }
  .designer-photo-container {
    height: auto !important; /* 高度自适应 */
    padding-top: 56.25%; /* 16:9比例占位 */
    position: relative;
    overflow: visible;
    width: 100% !important;
  }
  .designer-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%); /* 适当下移 */
    width: 40% !important; /* 适当缩小图片 */
    height: auto !important;
    max-width: 256px;
    border-radius: 50%; /* 圆形裁剪 */
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .about-text {
    padding: 20px;
    min-height: 300px; /* 中屏最小高度 */
  }
}

/* 修改移动端样式 */
@media (max-width: 767px) {
  .row.g-0 {
    flex-direction: column; /* 改为垂直布局 */
  }

  .designer-photo-container {
    height: auto !important; /* 高度自适应 */
    padding-top: 56.25%; /* 16:9比例占位 */
    position: relative;
    overflow: visible;
    width: 100% !important;
  }

  .designer-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%); /* 适当下移 */
    width: 40% !important; /* 适当缩小图片 */
    height: auto !important;
    max-width: 256px;
    border-radius: 50%; /* 圆形裁剪 */
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .about-text {
    padding: 30px 20px !important;
    font-size: 14px !important; /* 恢复合理字号 */
    min-height: unset;
  }

  .text-wrapper {
    padding-top: 20px;
  }

  [role="separator"] {
    margin: 15px auto;
    width: 60%;
  }

  .about-content {
    aspect-ratio: unset; /* 取消固定比例 */
    max-height: 90vh;
    overflow-y: auto;
  }

  .about-text h2 {
    font-size: 1.8em !important;
    margin-bottom: 12px;
  }

  .about-text h3 {
    font-size: 1.2em !important;
    margin-bottom: 20px;
  }

  .about-text p {
    line-height: 1.6;
    margin: 8px 0;
  }
}

