@import url(../css/iconfont.css);
.container{
    max-width: 1190px;
    margin: 0 auto;
}
/* #region  顶部导航start*/

.topbar{
    background-color: #ececec;
}
.topbar .container{
    display: flex;
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center; /* 垂直居中 */
    padding: 1rem 2rem; /* 内边距 */
    color: #666; /* 文字颜色 */
    font-family: Arial, sans-serif; /* 字体 */
}
.topbar .container .welcome{
    font-size: 1.6rem;
    /* font-weight: bold; */
}
.topbar .container .topbar-nav{
    display: flex;
    gap: 2rem; /* 链接之间的间距 */
}
/* 导航链接样式 */
.topbar-nav a {
    text-decoration: none; /* 去掉下划线 */
    font-size: 1.4rem;
    transition: color 0.3s ease; /* 悬停效果 */
    border-right: 1px solid #666;
    padding-right: 1.5rem;
}
.topbar-nav a:first-child{
    padding-left: 0;
}
.topbar-nav a:last-child{
    border: 0;
    padding-right: 0;
}
.topbar-nav a:nth-child(7){
    padding-top: .2rem;
    /* color: blue; */
  }
/* 导航链接悬停效果 */
.topbar-nav a:hover {
    color: #ff6347; /* 悬停时文字颜色 */
}

/* #endregion 顶部导航end*/

/* #region 头部start*/
.header .container{
    display: flex;
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center; /* 垂直居中 */
    padding: 1rem 0; /* 内边距 */
   
 }
 /* 左侧 Logo */
 .header .logo{
    padding: 2rem 0;
 }
 .header .logo img {
    /*height: 40px;  设置 Logo 高度 */
    /* width: auto; 宽度自适应 */
    width: 21.9rem;
    height: auto;
  }
  .header .search form{
    /* margin-top: .5rem; */
    font-size: 0;
}
  .header .search input{
    width: 50.8rem;
    height: 3.4rem;
    border: 1px solid #DD302D;
    text-indent: 1em;
}
.header .container .search button{
    width: 8rem;
    height: 3.6rem;
    background-color: #DD302D;
    vertical-align: top;
    background-image: url('../images/serch_icon.png');
    background-repeat: no-repeat;
    background-position: 28px 6px;
    cursor: pointer;
    border: 0;

}
/* #endregion 头部end */

/* #region 主导航区start*/
.main-nav{
    height: 4.8rem;
    border-bottom: 1px solid #DD302D;
    /* background-color: skyblue; */
}
 .main-nav .container{
    display: flex;
    /*justify-content: space-between;  左右两端对齐 */
    align-items: center; /* 垂直居中 */
    /*padding: 1.5rem 0;  内边距 */
  
 }
 .main-nav .all-types{
    width: 19rem;

    background-color: #DD302D;
    padding: 1.4rem 0;  /*内边距 */
    text-align: center;
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
}
.main-nav .all-types a{
    color: #fff;
}
 .main-nav .container .main-nav-list{
    display: flex;
    /* justify-content:space-between; */
    gap: 2rem; /* 链接之间的间距 */
    padding-left: 2rem;
 }
 .main-nav .container .main-nav-list li{
    font-size: 1.6rem;
    font-weight: 600;
 }

/* #endregion 主导航区end*/

/* #region 自适应导航start*/
.header2{
    display: none;
}
.header2 .header-top{
    display: flex;
    /*  表示项目之间的间隔是相等的 */
    justify-content: space-around;
    background-color: #ececec;
    color: #666;
    height: 4rem;
    /* 垂直居中 */
    align-items: center;
}
.header2 .header-top ul{
    display: flex;
}
.header2 .header-top ul a{
    padding:0 3rem;
     font-size: 1.8rem;
}
.menu-first,.menu-link i{
    font-size: 1.8rem;
}
.menu-link i{
    border: 1px solid #666;
    border-radius: 4px;
    padding: 5px 8px;
  }
  .header-top .menu-first,
  .header-top .menu-link{
    display: block;
}
/* #endregion 自适应导航end*/

/* #region 右上角弹出菜单 start*/
/* 导航按钮样式 */
#nav-button {
    /*position: fixed;  固定在页面右上角 */
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000; /* 确保按钮在最上层 */
  }
  
  /* 导航列表样式 */
  .nav-list-button {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定在页面右上角 */
    top: 50px;
    right: 10px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999; /* 确保导航列表在按钮下方 */
  }
  
  .nav-list-button ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .nav-list-button li {
    padding: 10px 20px;
  }
  
  .nav-list-button li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }
  
  .nav-list-button li:hover {
    background-color: #f5f5f5;
  }
  @media (max-width: 480px) {
    .nav-list-button {
      /*width: 100%;  在小屏幕上占满宽度 */
      right: 0;
      top: 60px;
    }
  }
/* #endregion 右上角弹出菜单 end*/
/* #region 面包屑start */
.main-content .crumb-wrap{
    height: 4.4rem;
    line-height: 4.4rem;
    font-size: 1.4rem
  }
  .main-content .crumb-wrap a{
    margin-right: 2px;
  }
  /* #endregion 面包屑end */

/* #region 媒体查询 start*/


@media (max-width:1200px){
    .container{  
        margin: 0 auto;
    }
    
}

@media(max-width:992px){
   
    .topbar{
        display: none;
    }
    .header2,
    .top-nav
    {
        display: block;
    }
    .header,
    .main-nav,
    .banner
    {
        display: none;
    }
    .banner2{
        display: block;
    }      
}
@media(max-width:768px){ 
    

    .header2 .header-top a,
    .header2 .header-top button{
      font-size: 1.5rem;
    }
    .header2 .header-top ul a{
        padding:0 1.5rem;
         font-size: 1.5rem;
    }
   
}
/* #endregion 媒体查询 end*/

