* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden; /* 防止滚动条出现 */
  position: relative;
}

/* 背景容器 */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 确保背景在文字后面 */
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: 100vh;
  object-fit: cover; /* 图片拉伸以填满容器 */
  animation: moveBg 50s linear infinite alternate; /* 横向滑动动画 */
}

@keyframes moveBg {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-70%);
        /* 根据图片长度调整移动距离 */
    }
}


/* 中间文字内容 */
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #333;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  z-index: 1;
  padding: 40px 50px;
  width: 60%;
  max-height: 80vh;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  line-height: 1.6;
}

.content h1 {
  font-size: 2.8em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.content p {
  font-size: 1.2em;
  margin-bottom: 18px;
  text-align: justify;
}

.content ul {
  margin: 20px 0 25px 30px;
}

.content li {
  font-size: 1.1em;
  margin-bottom: 8px;
  padding-left: 5px;
}

.content li:last-child {
  margin-bottom: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .content {
    width: 85%;
    padding: 30px 25px;
  }

  .content h1 {
    font-size: 2.2em;
  }

  .content p,
  .content li {
    font-size: 1em;
  }
}

/* 隐藏滚动条 */
.content::-webkit-scrollbar {
  display: none;
}

.content {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* 返回首页链接 */
.back-home {
  position: absolute;
  top: 20px;
  left: 30px;
  color: #494949;
  text-decoration: none;
  font-size: 1em;
  padding: 6px 8px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.back-home:hover {
  background-color: #e1e1e1;
}