/* 重置默认的样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  height: 100vh; /* 设置视口高度为 100%，确保背景覆盖整个屏幕 */
  background: linear-gradient(135deg, blue, purple); /* 初始背景渐变 */
  background-size: 100% 100%; /* 确保背景颜色图像全屏显示 */
  animation: backgroundColorChange 9s ease-in-out infinite; /* 背景颜色循环切换 */
}

/* 动画效果：背景颜色循环切换 */
@keyframes backgroundColorChange {
  0% {
    background: linear-gradient(135deg, blue, purple); /* 蓝色到紫色 */
  }
  33% {
    background: linear-gradient(135deg, purple, cyan); /* 紫色到青色 */
  }
  66% {
    background: linear-gradient(135deg, cyan, blue); /* 青色到蓝色 */
  }
  100% {
    background: linear-gradient(135deg, blue, purple); /* 循环回到蓝色到紫色 */
  }
}




/* 导航栏 */
.nav-bar {
  position: fixed; /* 固定导航栏在页面顶部 */
  top: 10px; /* 与顶部留出一定间距 */
  left: 50%;
  transform: translateX(-50%); /* 水平居中 */
  background: white;
  padding: 25px 40px; /* 增大导航栏的内边距 */
  width: 60%; /* 导航栏不铺满全屏，左右留有间距 */
  z-index: 1000;
  display: flex;
  justify-content: space-around; /* 导航栏项目之间均匀分布 */
  font-size: 24px; /* 增大字体大小 */
  font-weight: bold; /* 字体加粗 */
  color: black; /* 默认导航栏字体颜色为黑色 */
  border-bottom: 3px solid rgba(0, 0, 0, 0.2); /* 增大导航栏边框的厚度 */
  list-style: none; /* 去掉圆点 */
}

/* 导航栏项目 */
.nav-item {
  cursor: pointer;
  padding: 5px 15px; /* 增加项目的内边距，让点击区域更大 */
  transition: all 0.3s ease-in-out; /* 添加过渡效果 */
  color: black; /* 确保每个项目字体颜色为黑色 */
  list-style: none; /* 去掉每个导航项前的圆点 */
}

/* 鼠标悬停时变成红色 */
.nav-item:hover {
  color: red; /* 悬停时字体颜色变为红色 */
  transform: translateY(-3px); /* 悬停时轻微上移，增加交互感 */
}

/* 鼠标点击时变成红色 */
.nav-item:active {
  color: red; /* 点击时字体颜色变为红色 */
  transform: translateY(1px); /* 点击时轻微下移，增加按压效果 */
}

/* 导航栏项目列表去掉圆点 */
.nav-bar ul {
  list-style-type: none; /* 去掉圆点 */
  margin: 0;
  padding: 0;
}




/* 整体容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px; /* 增加导航栏下方的间距 */
}

/* 首页内容区域 */
.home-content {
  display: flex;
  justify-content: flex-start; /* 照片和文字左对齐 */
  align-items: flex-start;  /* 确保内容顶部对齐 */
  gap: 20px; /* 照片和文字之间的间距 */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px; /* 让照片和文字与导航栏有间距 */
}

/* 左侧两张照片并排 */
.photo {
  display: flex;
  width: 50%; /* 照片区域占 46% 宽度 */
  gap: 10px; /* 照片之间的间距 */
  position: relative;
}

/* 第一张照片 */
.photo img:first-child {
  width: 100%;
  height: auto;
  object-fit: cover;

  transform: perspective(600px) rotateY(45deg); /* 第一张照片的旋转效果 */
  -webkit-transform: perspective(600px) rotateY(45deg); /* Safari 兼容 */
  box-shadow: -4px 2px 12px rgba(0, 0, 0, 0.3); /* 阴影效果 */
  position: absolute; /* 绝对定位 */
  left: 0px; /* 与导航栏最左侧对齐 */
  top: 70px; /* 顶部对齐 */
  opacity: 1;
  width: 70%; /* 照片保持不变大小，不放大 */
}

/* 第二张照片，旋转角度与第一张一致，稍微漏出第一张上方的边角 */
.photo img:nth-child(2) {
  width: 100%;
  height: auto;
  object-fit: cover; 

  transform: perspective(600px) rotateY(45deg); /* 第二张照片的旋转角度与第一张相同 */
  -webkit-transform: perspective(600px) rotateY(45deg); /* Safari 兼容 */
  box-shadow: -4px 2px 12px rgba(0, 0, 0, 0.3); /* 阴影效果 */
  position: absolute;
    position: absolute;
    z-index: 99;
    left: 110px;
    top: 110px;
      width: 70%; /* 照片保持不变大小，不放大 */
      /* 第二张照片，旋转角度与第一张一致，稍微漏出第一张上方的边角 */
}
.photo img:nth-child(3) {
  width: 100%;
  height: auto;
  object-fit: cover;

  transform: perspective(600px) rotateY(45deg); /* 第二张照片的旋转角度与第一张相同 */
  -webkit-transform: perspective(600px) rotateY(45deg); /* Safari 兼容 */
  box-shadow: -4px 2px 12px rgba(0, 0, 0, 0.3); /* 阴影效果 */
  position: absolute;
    position: absolute;
    z-index: 99;
    left: 220px;
    top: 150px;
      width: 70%; /* 照片保持不变大小，不放大 */
}

/* 右侧标题和文字 */
.title-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 确保标题和文字之间有适当间距，填满空间 */
  align-items: flex-start; /* 文字对齐左侧 */
  width: 50%; /* 文字区域占 54% */
  height: 100%; /* 确保容器高度填满右侧区域 */
  padding-top: 30px; /* 在顶部和底部保持适当的间距 */
   
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px; /* 给标题和文字之间添加间距 */
   
}

/* 首页内容文字 */
.content-text {
  font-size: 24px;
  color: white;
  line-height: 1.6;
  margin-bottom: 20px; /* 为文字部分底部添加间距 */
    left: 260px;
}


/* 跳转链接 */
.link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border: 3px solid red; /* 为跳转链接添加红色加粗边框 */
  padding: 10px 20px; /* 添加内边距，使边框显得更大 */
  border-radius: 5px; /* 为边框添加圆角效果 */
  align-items: center; /* 垂直居中对齐内容 */
    background-color: red; /* 背景颜色 */
}

/* 跳转链接中的下载箭头图标 */
.download-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px; /* 保证箭头与文字之间有间距 */

}

//* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, blue, purple); /* 网站背景渐变 */
  animation: backgroundColorChange 5s ease-in-out infinite; /* 背景颜色循环切换 */
  padding: 20px; /* 为全局添加一些内边距 */
}

/* 动画效果：背景颜色循环 */
@keyframes backgroundColorChange {
  0% { background: blue; }
  50% { background: purple; }
  100% { background: blue; }
}

/* 详情模板样式 */
.detail-template {
  background-color: white;
  padding: 20px 30px;
  margin: 30px auto;
  width: 90%; /* 与导航栏一致 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column; /* 使用 flexbox 布局 */
  justify-content: space-between; /* 保证内容和尾部分布，尾部固定在最底部 */
  min-height: 500px; /* 最小高度，确保尾部信息可见 */
}

/* 标题样式 */
h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* 内容部分样式 */
.content {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-left: 15px; /* 左边距 */
  margin-right: 15px; /* 右边距 */
  text-align: left; /* 文字左对齐 */
  word-wrap: break-word; /* 自动换行 */
}

.content h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.content p {
  margin-bottom: 15px;
  text-indent: 2em; /* 首行缩进 */
}
 
.content.img {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;    /* 垂直居中（如果容器高度固定） */
    height: 200px;          /* 固定容器高度（可选） */
    overflow: hidden;       /* 防止图片溢出 */
    margin: 20px 0;         /* 图片上下间距 */
    border: 1px solid #ccc; /* 可选：添加边框 */
}
 
.content img {
    max-width: 100%;        /* 图片最大宽度为容器宽度 */
    max-height: 100%;       /* 图片最大高度为容器高度 */
    object-fit: cover;      /* 图片保持比例填充容器 */
}


/* 底部信息首页样式*/
.footer {
  position: absolute;

  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: linear-gradient(135deg, blue, purple); /* 底部跟随网站背景渐变 */
  color: white;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  z-index: 999;
  margin-top: 20px;
}

/* 底部信息详情页样式 */
.footer1 {
  margin-top: 20px; /* 为尾部信息添加与内容的间距 */
  color: white;
  font-size: 14px;
  text-align: center;
}
