@font-face {
  font-family: lxxn;
  src: url(../font/lxxn.woff2);
  font-display: swap;
}

@font-face {
  font-family: yf;
  src: url(../font/yf.woff2);
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  border-radius: 6px;
  margin: 0;
  padding: 0;
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 头部 */
.top {
  background-color: rgb(0, 0, 0);
  padding: 0;
  width: 100vw;
  height: 100vh;
  background-attachment: fixed;
  /*fixed表示背景图像将随着页面的滚动而保持固定位置；
  scroll表示背景图像会随着页面的滚动而移动。*/
  background-size: cover;
  background-repeat: no-repeat;
  animation: fadeIn 2s;
  /* position: relative; */
}

.xhlogo {
  width: 3vw;
  height: 6vh;
  margin-top: 3vh;
  margin-left: 3vh;
}

.container {
  position: relative; /* 设置容器为相对定位 */
  border-top: 1px solid transparent; /* 防止 margin 折叠 */
}

.ty {
  position: absolute; /* 设置图片为绝对定位 */
  top: -6vh;
  right: 0; /* 使图片与容器的右侧对齐 */
  width: 6vw;
  height: 10vh;
  margin-right: 6vh; /* 图片右侧外边距 */
  /* margin-top: 3vh;  */
  /* 图片顶部外边距 */
  transition: all 1s; /* 过渡效果 */
}

.ty:hover {
  width: 10vw;
  height: 18vh;
}

.tooltip {
  opacity: 0;
  position: absolute;
  top: 20px; /* 调整top以定位到右上角 */
  right: 12%;
  /* background-color: rgba(60, 60, 60, 0.8); */
  color: rgb(238, 236, 106);
  padding: 10px 15px; /* 增加内边距，使内容更舒适 */
  border-radius: 5px; /* 更大的圆角，使提示框更柔和 */
  font-size: 2em; /* 适中的字体大小 */
  font-family: lxxn;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
  transition: opacity 0.5s, transform 0.5s; /* 添加变换过渡效果 */
  transform: translateY(10px); /* 初始位置偏移 */
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0); /* 恢复原位 */
}

.lxxn {
  width: 7vw;
  height: 8vh;
  margin-top: 3vh;
  margin-left: 6vh;
  margin-bottom: 6vh;
  font-size: 20vh;
  color: #ffffff;
  font-family: lxxn;
  font-weight: 900;
  transition: all 1s;
}

.yun {
  width: 6vw;
  height: 10vh;
  margin-top: 1vh;
  margin-left: 83vh;
  transition: all 1s;
}

/* 易烊千玺小网站视频 */
.xiqianyangyi {
  padding: 0;
}

.xiqianyangyi .img {
  width: 20vw;
  height: 36vh;
  margin-top: 20vh;
  margin-left: 13vh;
  float: left;
  transition: all 1s;
}

.xiqianyangyi .img:hover {
  width: 25vw;
  height: 46vh;
}
.xiqianyangyi .img1 {
  width: 42vw;
  height: 53vh;
  margin-top: 2vh;
  float: right;
  margin-right: 16vh;
  border-radius: 12px;
}

.xiqianyangyi .img-che {
  width: 15vw;
  height: 13vh;
  float: left;
  margin-top: 46vh;
  transition: all 1s;
}

.xiqianyangyi .img-che:hover {
  width: 18vw;
  height: 16vh;
}

/* 自由 */
.zy {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #000000;
}

.zy a {
  text-decoration: none;
}

.zy span {
  color: #ffffff;
  font-size: 80px;
  font-family: yf;
}

/* 日常 */
.rc {
  width: 100%;
  height: 100%;
  background-color: #000000;
  /* padding-top: 8vh; */
  /* padding-bottom: 0; */
}

.banner {
  margin: 0 auto;
  position: relative;
  width: 800px;
  height: 530px;
  display: flex;
  overflow: hidden;
  padding-left: 6vh;
}

.banner img {
  width: 800px;
  height: 530px;
  border-radius: 12px;
  vertical-align: middle;
}

.banner ul {
  display: flex;
  list-style: none;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.banner li {
  list-style: none;
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1.5s ease; /* 过渡时间为 1.5 秒 */
}

.banner li.active {
  opacity: 1;
}

/* 小风车 */
.xfc .img-1 {
  width: 359px;
  height: 580px;
  float: left;
  transition: all 1s;
}

.xfc .img-1:hover {
  width: 390px;
  height: 600px;
}

.xfc .img-2 {
  width: 93px;
  height: 81px;
  float: right;
  margin-top: 48vh;
  margin-bottom: 3vh;
  margin-right: 8vh;
}
/* 气球 */
.qq {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #000000;
}
.qq a img {
  transition: transform 0.3s ease-in-out;
}
.qq a img:hover {
  transform: scale(1.1);
}
/* 页面 */
.ym {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
}

#ym-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 70vh;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.5s ease-in-out;
}

#ym-image:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
/* 页面2 */

/* 页面 */
.ym-a {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
}

#ym-a-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 70vh;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.5s ease-in-out;
}
/* 鼠标悬停效果 */
.ym-a:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* 鼠标点击效果 */
.ym-a:active {
  transform: scale(0.6);
}

/* 远方 */
.yf {
  width: 100%;
  height: 100%;
  background-color: #000000;
}

.yuanfan {
  color: #ffffff;
  font-size: 80px;
  font-family: yf;
  margin-left: 16vh;
}

#banner-yf {
  float: right;
  right: 36vh;
  top: 13vh;
  /* padding-left: 6vh; */
}

/* 模态框样式 */
.modal {
  display: none; /* 默认隐藏 */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* 半透明黑色背景 */
  animation: fadeIn 0.5s; /* 添加淡入动画 */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation: zoomIn 0.5s; /* 添加缩放动画 */
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.close,
.prev,
.next {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  border-radius: 50%; /* 圆形背景 */
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* 添加阴影 */
}

.close {
  top: 15px;
  right: 35px;
  width: 40px; /* 缩小关闭按钮尺寸 */
  height: 40px;
  line-height: 40px;
  font-size: 25px; /* 调整关闭按钮字体大小 */
}

.prev {
  left: 20px;
  transform: translate(0, -50%);
}

.next {
  right: 20px;
  transform: translate(0, -50%);
}

.close:hover,
.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.3); /* 悬停时背景颜色变化 */
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); /* 悬停时阴影变化 */
}

/* 响应式设计 */
@media screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }

  .close {
    font-size: 20px;
    right: 20px;
    top: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .prev,
  .next {
    font-size: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}

.yj {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #000000;
}
/*  */
.container-a {
  width: 100%;
  background-color: #000000;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.box-a {
  background-color: #000;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 90vh;
  max-width: 1000px;
}

.frame {
  border: 10px solid #fff; /* 白色相框 */
  padding: 5px; /* 相框和内容之间的空隙 */
  background-color: #fff; /* 相框内的背景颜色 */
  display: inline-block; /* 使相框和图片居中 */
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.content-a {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.content-a .image-container {
  min-width: 100%;
  box-sizing: border-box;
}

.content-a img {
  max-width: 100%; /* 图片的最大宽度设置为100% */
  max-height: 100%; /* 图片的最大高度设置为100% */
  height: auto; /* 自动调整高度以保持原始宽高比 */
  display: block;
  width: 100%;
}

.arrow-left,
.arrow-right {
  position: absolute;
  top: 50%;
  font-size: 2em;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
  z-index: 100;
  transform: translateY(-50%);
}

.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}

.arrow-left:hover,
.arrow-right:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* 模态框样式 */
.modal-a {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-a {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close-a {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-a:hover,
.close-a:focus {
  color: #f2f2f2;
  text-decoration: none;
  cursor: pointer;
}

/* 诗和远方 */
.shiyf {
  width: 100%;
  height: 100%;
  background-color: #000000;
}
.banner-shiyf-a {
  margin: 0 auto;
  position: relative;
  width: 800px;
  height: 530px;
  display: flex;
  overflow: hidden;
  padding-left: 6vh;
}

.banner-shiyf-a img {
  width: 800px;
  height: 530px;
  border-radius: 12px;
  vertical-align: middle;
}

.banner-shiyf-a ul {
  display: flex;
  list-style: none;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.banner-shiyf-a li {
  list-style: none;
  position: absolute;
  width: 100%;
  opacity: 1;
  transition: opacity 1.5s ease; /* 过渡时间为 1.5 秒 */
}

.banner-shiyfli.active-shiyf {
  opacity: 1;
}
#banner-shiyf {
  margin: 0;
  top: 10vh;
  left: 10vh;
}

.shiheyf1 {
  position: relative;
}

.shiheyf {
  position: absolute;
  top: 10vh;
  right: 10vh;
  text-align: right;
  display: flex;
  justify-content: right;
  color: #ffffff;
  font-size: 80px;
  font-family: yf;
}

/* 光 */
.guang {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #000000;
}

.guang a {
  text-decoration: none;
}

.guang span {
  color: #ffffff;
  font-size: 80px;
  font-family: yf;
}
/* 光图片 */
.guang-tp {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000000;
  margin: 0;
}
.image-guang {
  display: flex;
  gap: 20px;
}
.image-guang img {
  width: 36vh;
  height: auto;
  /* 
    在CSS中设置height为auto时，元素的高度将自动根据内容调整，以适应内容的大小。
  */
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}
.image-guang img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 机器人 */
/* .jqr-a {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
} */
/* .jqr {
  display: flex;
  gap: 6vh;
  animation: fadeIn 1s forwards;
} */
/* .jqr img {
  width: 30vh;
  height: auto;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
} */
/* .jqr img:hover {
  transform: scale(1.1);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} */

/* 垃圾桶 */
.ljt {
  width: 100%;
  height: 100%;
  background-color: #000000;
}
.ljt-a {
  top: 6vh;
  margin-right: 6vh;
}

/* 嵌入网页 */
.iframe-container {
  width: 100%;
  height: 100vh;
  overflow: hidden; /* 确保 iframe 内容不会溢出容器 */
  opacity: 0; /* 初始时设置透明度为0，使其隐藏 */
  transition: opacity 0.5s ease; /* 添加过渡效果 */
}
.iframe-container.loaded {
  opacity: 1; /* 当加载完成后，设置透明度为1，显示iframe */
}
.iframe-container iframe {
  border: none; /* 取消 iframe 的边框 */
  width: 100%;
  height: 100%;
}

/* 课本 */
.book {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000000;
}
.book-container {
  position: relative;
}
.book-container img {
  width: 30vh;
  height: 26vh;
  /* position: absolute; */
  top: 50%;
  left: 50%;
  transition: transform 0.5s ease;
}
.book-container img:hover {
  transform: scale(1.1);
}

/* 爱心 */
.love {
  width: 100%;
  height: 100%;
  background-color: #000000;
}

.love1 {
  padding-top: 6vh;
  padding-left: 2vh;
}

.love2 {
  width: 200px;
  height: 210px;
  float: right;
  padding-right: 12vh;
  padding-top: 60vh;
  padding-bottom: 3vh;
}

/* 测试 */
.cs {
  background-color: #000000;
}
/* 项目 */
.xm {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
}

.container-xm {
  display: flex;
  flex-wrap: wrap; /* 允许换行 */
  justify-content: center;
  align-items: center;
  max-width: 80%; /* 根据需要调整容器宽度 */
}

.image-container-xm {
  position: relative;
  margin: 20px;
  cursor: pointer;
  flex: 1 1 calc(33.333% - 40px); /* 每行三个，减去 margin */
  box-sizing: border-box;
}

.image-info-xm {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  padding: 10px;
  border-radius: 5px;
  width: 38vh; /* 修改宽度 */
  opacity: 0; /* 默认隐藏 */
  transition: opacity 0.5s ease; /* 添加过渡效果 */
  text-align: center; /* 居中 */
  font-size: 2vh;
}

.image-container-xm:hover .image-info-xm {
  opacity: 1; /* 悬停时显示 */
}

.image-container-xm img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.image-container-xm img:hover {
  transform: scale(1.1);
}

.click-here {
  display: block;
  font-size: 12px;
  color: #000000; /* 点击跳转文字颜色 */
}

.image-container-xm a {
  color: #000000; /* 设置为继承父元素的颜色 */
  text-decoration: none; /* 取消下划线 */
}
.image-info-xm p {
  color: rgb(0, 0, 0);
}
.image-info-xm span {
  color: rgb(0, 179, 255);
}
.click-here:hover {
  color: rgba(255, 0, 0, 0.5);
}

/* 无法访问此处 */
.wffw {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}
.image-container-wffw {
  position: absolute;
  bottom: 30vh;
  right: 20vh;
  animation: bounce 2s infinite;
}
.image-container-wffw img {
  width: 180px;
  height: auto;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

/*底部 备案号 版权*/
.db {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
  background-image: url(https://file.lxxno.cn/image/footage/xue.gif);
}

/* 
.fj {
  width: 180px;
  height: 100px;
  padding-bottom: 36%;
  padding-left: 13vh;
  padding-top: 3vh;
} */
.xx {
  width: 36vh;
  height: 38vh;
  transition: all 1s;
  float: right;
  margin-right: 16vh;
  margin-top: 8vh;
}

.xx:hover {
  width: 46vh;
  height: 48vh;
}

.beian {
  position: absolute;
  bottom: 3vh;
  left: 0;
  right: 0;
  text-align: center;
  transition: transform 1.3s ease;
}

.beian:hover {
  transform: translateY(-16px);
}

.bottom {
  /* font-family: 空海心经简繁; */
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 530;
  letter-spacing: 2px;
  line-height: 160%;
}

.bottom a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
}

.icp {
  padding-bottom: 0;
}

.ga {
  margin-right: 3vh;
  margin-top: 0;
}

.ga img {
  margin-top: 0;
  margin-bottom: 0;
}

/*  鼠标指针悬停时 */
.bottom a:hover {
  color: #ffffff;
  /*   鼠标停留字体颜色  */
}
/* 鼠标指针悬停时改变颜色 */
.bottom svg:hover path {
  fill: #ffffff; /* 鼠标悬停时图标颜色 */
}
