* {
  margin: 0;
  padding: 0;
  border: 0;
}

@font-face {
  font-family: "AaFengKuangYuanShiRen";
  src: url("../font/AaFengKuangYuanShiRen-2.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "演示斜黑体";
  src: url("../font/演示斜黑体.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "XIANGJIAODAJIANGJUNLINGGANTI-2";
  src: url("../font/XIANGJIAODAJIANGJUNLINGGANTI-2.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ZhengQingKeLengKuTi-2";
  src: url("../font/ZhengQingKeLengKuTi-2.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  background-color: #061434;
  /* overflow: auto; */
  /* background-color: transparent;
  background: transparent; */
  transition: opacity 1s;
  overscroll-behavior-y: none; /* 禁用纵向滚动的回弹效果 */
  overscroll-behavior-x: none; /* 禁用横向滚动的回弹效果 */
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* 可选：透明背景 */
}

body.loaded {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  position: fixed;
  top: -28px;
  left: 0;
  right: 0;
  color: white;
  padding: 20px 0;
  z-index: 888;
  font-family: "演示斜黑体", "Source-KeynoteartHans";
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
}
.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px; /* 设置背景的高度，这里你可以根据需要调整 */
  background-color: #061434; /* 背景颜色 */
  z-index: -1; /* 保证背景在文字和图片后面 */
}

.left-section {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.right-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
  margin-right: 20px;
}

.nav-image {
  width: 300px;
  height: auto;
  display: block;
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  padding: 5px 10px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #00f0ff;
}

#text-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* overflow: hidden; */
  z-index: 888;
}

#threejs-container {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 100%;
  height: 100%;
  z-index: 888;
  display: none;
  /* pointer-events: none; */
}

/* 显示 slider */
#threejs-container.show {
  display: block;
}

#content-container {
  position: absolute;
  z-index: 1;
  color: white;
  width: 100%;
  top: 99%;
}

.page-content h2 {
  font-size: 50px;
  margin-bottom: 20px;
  font-family: "ZhengQingKeLengKuTi-2", "字魂飞驰标题体(商用需授权)";
  color: #00f0ff;
  perspective: 800px;
}

.page-content p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 40px;
  perspective: 800px;
}

.Contents {
  padding: 60px 20px;
  margin: 20px 0;
  position: relative;
}

.BG {
  position: absolute; /* 绝对定位 */
  top: 0; /* 让它从父容器顶部开始 */
  left: 0; /* 让它从父容器左侧开始 */
  width: 100%; /* 占据父容器的全部宽度 */
  height: 100%; /* 占据父容器的全部高度 */
  background-color: rgba(0, 0, 0, 0.5); /* 黑色背景 */
  z-index: 100; /* 确保背景层级低于 .page-content */
  border-radius: 30px;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 1);
}

.page-content {
  position: relative; /* 相对定位，以确保 z-index 生效 */
  z-index: 102; /* 层叠顺序高于 .BG，显示在前面 */
  padding: 20px;
}

#services {
  width: 100%;
}

footer {
  position: relative;
  height: 60px; /* 页脚的高度 */
  background-color: #061434;
  color: white;
  text-align: center;
  line-height: 60px; /* 垂直居中对齐文本 */
}

#text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000; /* 确保它位于其他元素之上 */
}

.text-item {
  position: fixed;
  font-size: 25px;
  white-space: nowrap; /* 确保文字不换行 */
  transition: opacity 0.5s ease-in-out;
  font-family: "XIANGJIAODAJIANGJUNLINGGANTI-2";
  pointer-events: none; /* 确保点击不会被这些元素捕捉 */
}
