/* 初始化网页 */
body {
  font-family: "微软雅黑", sans-serif, "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  margin: 0;
  padding: 0;
  color: #545454;
  /* overflow: hidden; */

}
html, body {
    overflow-x: hidden;
    width: 100%;

}
li{
    list-style: none;
}

* {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: #000;
}
/* 顶部导航栏 */
header {
  background-image: url(../images/head.png);
  width: 100vw;
  height: 150px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.head-container {
  width: 1350px;
}
.logo {
  height: 90px;
  float: left;
  margin-top: 30px;
}
.logo img {
  height: 90px;
}
.lianjie {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* 根据需要调整间距 */
  margin-top: 30px;
  color: #fff;
}
.lianjie a {
  position: relative;
  text-decoration: none;
  color: #fff;
  margin: 0 10px; /* 左右各10px的边距 */
}

.lianjie a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -10px; /* 根据需要调整间距 */
  color: #fff;
}

.search-container {
  text-align: center; /* 使搜索框居中对齐 */
  padding-top: 10px; /* 根据需要调整间距 */
}

.search-container form {
  display: inline-block;
  position: relative;
}

.search-container input[type="text"] {
  padding: 5px 40px 5px 5px; /* 为按钮留出空间 */
  font-size: 14px;
  box-sizing: border-box;
  border-radius: 15px; /* 圆角15度 */
  border: 2px solid #fff; /* 白色边框 */
  color: #000; /* 输入文字颜色 */
  background-color: #fff; /* 背景白色 */
}

.search-container button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
}

.search-container button img {
  width: 18px; /* 根据需要调整图片大小 */
  height: 18px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.nav {
    background-color: #d6353e; /* 一级导航背景颜色 */
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100vw;
    display: flex;
    justify-content: center; /* 使.nav-menu居中 */
}

.nav-menu {
    width: 1350px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-menu > ul {
    display: flex;
    justify-content: center; /* 一级菜单文字居中对齐 */
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.nav-menu > ul > li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15%; /* 设置一级导航li宽度为自动 */
}

.nav-menu > ul > li > a {
    display: block;
    padding: 15px 20px;
    color: #fff; /* 一级导航字体颜色 */
    text-decoration: none;
    text-align: center; /* 一级菜单文字居中对齐 */
    font-weight: 500; /* 一级导航字体加粗 */
    font-size: 20px; /* 一级导航字体大小 */
}

.nav-menu > ul > li:hover,
.nav-menu > ul > li:focus ,
.nav-menu > ul > li.active {
    background-color: #9b0d14; /* 一级导航鼠标指向颜色 */
}

.nav-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7); /* 二级下拉菜单颜色 */
    list-style: none;
    padding: 0;
    margin: 0;
    /* white-space: nowrap; 防止文字换行 */
    width: 100%; /* 设置二级导航宽度与一级导航一致 */
    z-index: 2;
}

.nav-menu ul ul li {
    position: relative;
    width: 100%; /* 设置二级导航li宽度为100% */
}

.nav-menu ul ul li a {
    display: block;
    padding: 10px 15px;
    color: #000; /* 二级菜单字体颜色 */
    text-decoration: none;
    text-align: center; /* 二级菜单文字居中对齐 */
    font-weight: 500; /* 二级菜单字体加粗 */
    font-size: 16px;
}

.nav-menu ul ul li:hover,
.nav-menu ul ul li:focus {
    background-color: #9b0d14; /* 二级菜单鼠标指向颜色 */
    color: #fff; /* 二级菜单鼠标指向字体颜色 */
    border-left: 6px solid #e95704; /* 左边增加2px的边框线 */
    box-sizing: border-box; /* 确保边框不会超出宽度 */
}

.nav-menu > ul > li:hover > ul {
    display: block; /* 显示二级菜单 */
}

/* 汉堡菜单 */
        /* 重置默认样式 */
        .hanbao-nav ul {
          margin: 0;
          padding: 0;
          list-style: none;
        }

        /* 汉堡菜单图标样式 */
        .hamburger-menu {
          position: absolute;
          top: 25px;
          right: 5px;
          z-index: 10;
          cursor: pointer;
          padding: 10px;
          display: none; /* 默认隐藏 */
        }

        .hamburger-menu span {
          display: block;
          width: 25px;
          height: 3px;
          background: #fff;
          margin: 5px 0;
          transition: 0.3s;
        }

        /* 导航菜单容器 */
        .nav-menu-hanbao {
          position: fixed;
          top: 0; /* 初始顶部位置 */
          right: -300px; /* 默认隐藏 */
          width: 300px;
          height: 100vh;
          background: #d6353e;
          transition: right 0.3s, top 0.3s, height 0.3s; /* 添加位置和高度的过渡 */
          z-index: 1000;
          overflow-y: auto;
        }

        /* 显示菜单时的状态 */
        .nav-menu-hanbao.active {
          right: 0;
          top: 100px; /* 下移 100px */
          height: calc(100vh - 100px); /* 调整高度以适应下移 */
        }

        /* 一级菜单样式 */
        .nav-menu-hanbao > ul > li {
          border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        /* 使用 Flexbox 对齐菜单头部 */
        .menu-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
        }

        .menu-header > a {
          display: block;
          padding: 15px 20px;
          color: white;
          font-size: 16px;
          text-decoration: none;
          flex-grow: 1;
        }

        .menu-toggle {
          padding: 0 20px;
          color: white;
          font-size: 12px;
          cursor: pointer;
          transition: transform 0.3s;
          user-select: none; /* 防止选中文本 */
        }

        /* 二级菜单样式 */
        .nav-menu-hanbao ul ul {
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease;
          background: white;
          padding: 0;
        }

        .nav-menu-hanbao ul ul a {
          display: block;
          padding: 12px 30px;
          font-size: 14px;
          color: #333;
          text-decoration: none;
          transition: background 0.3s;
        }

        .nav-menu-hanbao ul ul a:hover {
          background: #f5f5f5;
        }

        /* 展开二级菜单 */
        .nav-menu-hanbao > ul > li.expanded > ul {
          max-height: 500px; /* 足够大的值以容纳内容 */
        }

        /* 汉堡菜单动画 */
        .hamburger-menu.active span:first-child {
          transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger-menu.active span:nth-child(2) {
          opacity: 0;
        }

        .hamburger-menu.active span:last-child {
          transform: rotate(-45deg) translate(7px, -6px);
        }

        /* 二级菜单项的悬停效果 */
        .nav-menu-hanbao ul ul li {
          border-bottom: 1px solid rgba(0,0,0,0.1);
        }

/* 移动端优化 */
@media (max-width: 768px) {
  /* 确保菜单适应移动端 */
  .nav-menu-hanbao {
    300px;
  }
  .hamburger-menu {

    display: block; /* 显示汉堡菜单 */
  }
}


/* 底部 */
.footer{
    display: flex;
    width: 100vw;
    justify-content: center;
    background:  url(../images/footer1.png) no-repeat center center;
    background-size: cover;
    height: 280px;
}
.footer-nr{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 1350px;
    margin: 0 auto;
    padding: 20px 0;
}
.footer-lxwm h1{
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}
.footer-lxwm p{
    color: #fff;
    line-height: 30px;
    font-size: 16px;
}
.footer-erweima {
    display: flex;
    padding-left: 200px;
    gap: 20px; /* 设置两个图片元素之间的间隔 */
}

.footer-erweima-img {
    width: 100px;
    height: 100px;
    text-align: center; /* 将p标签居中于图片标签 */
}

.footer-erweima-img img {
    width: 100px;
    height: 100px;
}

.footer-erweima-img p {
    color: #fff;
    font-size: 14px;
    margin-top: 10px; /* 根据需要调整间距 */
}

@media (max-width: 1350px){
    .head-container {
        width: 1000px;
    }
    .nav-menu > ul > li {
        width: 11%;
    }
    .nav-menu > ul > li > a {
        font-size: 16px;
    }
    .nav-menu ul ul li a {
        font-size: 12px;
    }
    .main-top{
        width: 95vw;
    }
    .footer-nr{
      width: 90vw
    }
}


@media (max-width: 1180px) {
  .footer-logo img{
    width: 300px;
  }
  .nav{
    height: 46px;
  }
  .nav-menu > ul > li{
    width: 12%;
  }

}

@media (max-width: 768px){
  .nav{
    display: none;
  }
  .header-right{
    display: none;
  }
  header{height: 100px;}
  .head-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
  }
  .logo {
    height: 55px;
        width: 300px;
  }
  .logo img{
        height: 55px;
        width: 300px;
  }
  .footer{
    flex-direction: column; 
    height: auto;
    justify-content: normal
}
.footer-nr{
    flex-direction: column; 
}
.footer-erweima {
    display: flex
;
    padding-left: 0;
    gap: 20px;
    flex-direction: row;}
    .footer-nr{
      margin-bottom: 30px;
    }
.footer-logo img {
        width: 300px;
        height: 55px;
    }
}