* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "Calibri Light";
  src: url("./static/CALIBRIL.TTF") format("truetype");
}
body {
  font-family: "Calibri Light", sans-serif;
  overflow: hidden;
  touch-action: pan-y;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  /* backdrop-filter: blur(10px); */
  padding: 15px 30px;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 30px;
}

.text_logo {
  width: 70px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.active_link {
  font-size: 20px;
  font-weight: 600;
}
.nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 全屏轮播容器 */
.carousel-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide.next {
  transform: translateY(-100%);
}

.carousel-slide.prev {
  transform: translateY(100%);
}

/* 左下角文字动画 */
.bottom-text {
  position: absolute;
  bottom: 150px;
  left: 50px;
  color: white;
  font-size: 48px;

  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 100;
  width: calc(100% - 100px);
}

.text-up {
  animation: slideFromTop 2s ease-out;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-up::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -20px;
  left: 0;
  height: 1px;
  background-color: white;
  width: 150px;
}

.text-down {
  animation: slideFromBottom 2s ease-out;
  max-width: 80%;
  margin-top: 40px;
  font-size: 22px;
}

@keyframes slideFromTop {
  from {
    transform: translateY(-80px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideFromBottom {
  from {
    transform: translateY(80px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 右下角页码 */
.pagination {
  position: absolute;
  bottom: 50px;
  right: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.pagination-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.pagination-dot.active {
  background: white;
  transform: scale(1.2);
}

.pagination-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pagination-dot.active::after {
  opacity: 1;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  z-index: 100;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }

  .nav-menu.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .navbar {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
  }

  .bottom-text {
    bottom: 120px;
    left: 20px;
    font-size: 32px;
  }

  .text-down {
    font-size: 26px;
  }

  .pagination {
    bottom: 80px;
    right: 20px;
    flex-direction: row;
    gap: 10px;
  }

  .pagination-dot {
    width: 12px;
    height: 12px;
  }

  .scroll-hint {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .bottom-text {
    font-size: 24px;
    bottom: 100px;
  }

  .text-down {
    font-size: 18px;
  }

  .pagination {
    bottom: 60px;
  }
}

/* 触摸反馈 */
.carousel-slide {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 轮播视频样式 */
.carousel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* 轮播图片样式 */
.carousel-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}
