#navbar {
  z-index: 3;
}

.nav-link {
  font-weight: bolder;
}

#home {
  position: relative;
  z-index: 1;
  padding-top: 20rem;
}

.notes {
  background-color: rgb(0 0 0 / 50%);
  padding: 2rem;
  border-radius: 1rem;
}

.transform-image {
  transform: rotate(-90deg);
}

.object-contain {
  object-fit: contain;
}

.py-30 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* 轮播图主容器 */
.carousel {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%; /* 可根据需求修改宽度 */
  height: 950px; /* 可根据需求修改高度 */
  overflow: hidden;
  margin: 0 auto;
}

/* 图片样式 */
.carousel-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例填充 */
  opacity: 0; /* 默认隐藏 */
  transition: opacity 0.8s ease-in-out; /* 0.8秒淡入淡出过渡 */
}

/* 当前激活的图片显示 */
.carousel-images img.active {
  opacity: 1;
}

/* 左右按钮样式 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(0 0 0 / 0.1);
  color: white;
  border: none;
  padding: 36px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 1rem;
  z-index: 2;
}
.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* 底部指示点样式 */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: white;
}
