/*全局去除默认样式*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /* font-size: 14px; */
}

.大背景 {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 水平居中所有子元素 */
  height: 100vh;
  position: relative;
  overflow: hidden;
  /* 避免内容溢出 */
  padding: 10px;
  /* 给容器增加内边距 */
}

.页面顶部 {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 15px;
  animation: 放大 2s ease-in-out forwards;
  /*    padding: 20px; /* 内边距避免文字贴边 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 可选：增加标题区域的分隔感 */


}


@keyframes 飞入 {
  0% {
    opacity: 0;
    top: 4%;
    left: -100px;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    top: 4%;
    left: 50%;
  }
}

@keyframes 放大 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes 飞入 {
  0% {
    opacity: 0;
    bottom: 5%;
    left: -100px;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    bottom: 5%;
    left: 50%;
  }
}

.大背景::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  /* 启用 Flexbox */
  background-image: url(../图片/地球背景.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(70%);
}

.内容容器 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  margin-top: 80px;
  /* 给顶部标题留出空间 */
}

.排序 {
  position: absolute;
  display: grid;
  width: 100%;
  /* 确保使用父容器的宽度 */
  max-width: 1200px;
  /* 防止过宽 */
  height: 90%;
  max-height: 800px;
  /* 防止过高 */
  grid-template-columns: repeat(2, 1fr);
  /* 两列布局 */
  grid-template-rows: repeat(2, 1fr);
  /* 两行布局 */
  gap: 20px;
  /* 网格间距 */
  padding: 60px;
  /* 避免内容贴边 */
  overflow: auto;
  /* 防止超出屏幕时溢出 */
  top: 5%;
}




.一个单元格 {
  position: relative;
  overflow: hidden;
  position: relative;
  max-width: 100%;
  /* 限制单元格最大宽度 */
}

/* .一个单元格 iframe {
    width: 100%;
    height: 100%;
} */

.一个单元格 img {
  width: 100%;
  /* 填充父容器 */
  height: 100%;
  object-fit: fill;
  /* 根据需求选择 fill, cover 或 contain */
}


.一个单元格 .标题 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.一个单元格 .标题:hover {
  color: skyblue;
}




.按钮小队 {
  display: flex;/* 设置为水平排列 */
  flex-wrap:nowrap;/* 允许按钮超出容器宽度时换行 */
  justify-content: center; /* 水平居中对齐 */
  padding-top: 0vh;
  max-height: 90px;
  gap: 10px;
  /* 按钮之间的间距 */
  position: absolute;
  /* 绝对定位到底部 */
  bottom: 0%;
  /* 固定在容器底部 */
  width: 100%;
  /* 按钮组宽度占满父容器 */
}

button {
  margin: 10px;
  /* 每个按钮周围的外边距，增强分隔感 */
  padding: 10px 20px;
  /* 内边距，增大点击区域 */
  font-size: 14px;
  /* 字体大小 */
  cursor: pointer;
  /* 鼠标悬停时显示手形图标 */
  background-color: #007bff;
  /* 按钮背景色 */
  color: #fff;
  /* 按钮文字颜色 */
  border: none;
  /* 移除默认边框 */
  transition: all 0.3s ease;
  /* 动态效果 */
}

 button:hover {
  background-color: #0056b3;
  /* 悬停时的背景色 */
  transform: scale(1.05);
  /* 悬停时放大按钮 */
}


.音乐按钮 {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.音乐按钮 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

audio {
  display: none;
}