body{
    margin: 0;
    padding: 0;
    font-size: 0.8vw;
}

/*导航栏*/
nav {
    position: fixed;
    top: 80px;
    left: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 102;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    display: block;
    color: #000000; /* 修改文字颜色为黑色 */
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/*标题*/
#biaoti{
    position: fixed;
            top: 0; /* 从页面顶部开始显示 */
            left: 0; /* 从页面左侧开始显示 */
            width: 100%; /* 宽度占满页面 */
            height: 100px; /* 设置合适的高度，可按需调整 */
            object-fit: cover; /* 让图片覆盖整个容器 */
            z-index: 101; /* 确保标题在导航栏之上 */
}
/*图1设置*/
#tuh1{
  position: relative;    /*设置相对定位*/
}
#tuh1 img{
    display: block;
    width: 100%;
}
#tuh1 h5{
    color: #ffffff;
    position: absolute; /* 设置为绝对定位 */
    top: 81%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%); /* 精确居中 */
    margin: 0; /* 去除默认外边距 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
#tuh1 h2{
    color: #ffffff;
    position: absolute; /* 设置为绝对定位 */
    top: 85%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 精确居中 */
    margin: 0; /* 去除默认外边距 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
.view-more-btn{
    position: absolute;
    top: 88%; /* 垂直位置，可根据需求调整 */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    padding: 10px 20px;
    text-decoration: none;  
    
}
/*图2*/
#tuh2{
    position: relative;    /*设置相对定位*/
  }
  #tuh2 img{
      display: block;
      width: 100%;
  }
  #tuh2 h5{
      color: #ffffff;
      position: absolute; /* 设置为绝对定位 */
      top: 80%; /* 垂直居中 */
      left: 50%; /* 水平居中 */
      transform: translate(-50%); /* 精确居中 */
      margin: 0; /* 去除默认外边距 */
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  }
  #tuh2 h2{
      color: #ffffff;
      position: absolute; /* 设置为绝对定位 */
      top: 85%; /* 垂直居中 */
      left: 50%; /* 水平居中 */
      transform: translate(-50%, -50%); /* 精确居中 */
      margin: 0; /* 去除默认外边距 */
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  }
/*图3*/
#tuh3{
    position: relative;    /*设置相对定位*/
  }
  #tuh3 img{
      display: block;
      width: 100%;
  }
  #tuh3 h5{
      color: #ffffff;
      position: absolute; /* 设置为绝对定位 */
      top: 80%; /* 垂直居中 */
      left: 50%; /* 水平居中 */
      transform: translate(-50%); /* 精确居中 */
      margin: 0; /* 去除默认外边距 */
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  }
  #tuh3 h2{
      color: #ffffff;
      position: absolute; /* 设置为绝对定位 */
      top: 85%; /* 垂直居中 */
      left: 50%; /* 水平居中 */
      transform: translate(-50%, -50%); /* 精确居中 */
      margin: 0; /* 去除默认外边距 */
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  }
/* 媒体查询：小屏幕设备（如手机） */
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px; /* 减小字体大小 */
    }

    nav {
        top: 60px; /* 调整导航栏位置 */
    }

    nav ul {
       
        align-items: center;
    }

    nav ul li {
        margin: 5px 0; /* 调整导航项间距 */
    }

    #biaoti {
        height: 60px; /* 减小标题高度 */
    }

    #tuh1 h5, #tuh2 h5, #tuh3 h5 {
        font-size: 1em; /* 调整小标题字体大小 */
    }

    #tuh1 h2, #tuh2 h2, #tuh3 h2 {
        font-size: 1.5em; /* 调整大标题字体大小 */
    }

    .view-more-btn {
        padding: 8px 16px; /* 调整按钮大小 */
    }
}