.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: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;
 }
.logo img {
    /*height: 40px;  设置 Logo 高度 */
    width: auto; /* 宽度自适应 */
  }
  .header .search form{
    margin-top: 3.2rem;
    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;
  position: relative;
  z-index: 1000;
}
.main-nav .container{
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.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;
  height: 100%;
  box-sizing: border-box;
}
.main-nav .all-types a{
  color: #fff;
  display: block;
  height: 100%;
  text-decoration: none;
}
.main-nav .container .main-nav-list{
  display: flex;
  gap: 2rem;
  padding-left: 2rem;
  height: 100%;
  align-items: center;
  margin: 0;
  list-style: none;
}
.main-nav .container .main-nav-list li{
  font-size: 1.6rem;
  font-weight: 600;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.main-nav .container .main-nav-list li > a {
  color: #333;
  text-decoration: none;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 5px;
  position: relative;
}
.main-nav .container .main-nav-list li > a:hover {
  color: #DD302D;
}

/* 下拉菜单样式 */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  width: 400px; /* 增加宽度以适应两列 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 15px;
  border: 1px solid #f0f0f0;
  border-top: none;
}
.dropdown-columns-container {
  display: flex; /* 使用flex布局使两列并排 */
  justify-content: space-between;
}

.dropdown-column {
  width: 48%; /* 每列占48%宽度，留2%作为间隔 */
  display: inline-block;
  vertical-align: top;
  width: 48%;
  margin-right: 4%;
}
.dropdown-column:last-child {
  margin-right: 0;
}
.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  color: #555;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap; /* 防止文字换行 */
}

.dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: #DD302D;
}

/* 鼠标悬停显示下拉菜单 */
.nav-item:hover .dropdown-menu {
  display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .main-nav {
      height: auto;
  }
  .main-nav .container {
      flex-direction: column;
  }
  .main-nav .all-types {
      width: 100%;
      padding: 1rem 0;
  }
  .main-nav .container .main-nav-list {
      flex-direction: column;
      gap: 0;
      padding-left: 0;
      width: 100%;
  }
  .main-nav-list li {
      width: 100%;
      padding: 1rem 0;
      border-bottom: 1px solid #eee;
  }
  .dropdown-menu {
      position: static;
      box-shadow: none;
      border: none;
      display: none;
      width: 100%;
      padding: 0;
  }
  .dropdown-column {
      width: 100%;
      margin-right: 0;
      padding: 0 15px;
  }
}
/* #endregion 主导航区end*/


/*  #region 首页顶部轮播图s */
.banner{
    margin: 1rem 0;
  }
  .banner-content {
    width: 100%;
    /* background-color: skyblue; */
  }
  .banner-content img{
    width: 100%;
    height: auto;
  }
  /*  #endregion  首页顶部轮播图E*/

/* #region 自适应header2 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;
  }
/* .menu-first,
.menu-link{
    display: none;
} */
.banner2{
    padding: 10px;  
    display: none;
    
}
.banner2 .m-banner-content{
    width: 100%; /* 容器宽度占满屏幕 */
    
}
.banner2 .m-banner-content img{
    width: 100%; /* 图片宽度占满容器 */
    height: auto; /* 高度自适应，保持图片比例 */
    
}
/* #endregion 自适应header2 end */

/* #region 顶部导航start*/

.top-nav {
    /*background-color: #333;  背景颜色 */
    padding: 10px;  
    display: none;
  }
  
  /* 导航列表 */
  .nav-list {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    list-style: none; /* 去掉列表符号 */
    justify-content: space-between; /* 均匀分布 */
    gap: 10px; /* 导航项之间的间距 */
  }
  
  /* 导航项 */
  .nav-list li {
    flex: 1 1 calc(25% - 10px); /* 每行显示 4 个，间距 10px */
    text-align: center; /* 文字居中 */
  }
  
  /* 导航链接 */
  .nav-list li a {
    display: block;
    padding: 10px;
    background-color: #DD302D; /* 按钮背景色为主题色 */
    color: #FFFFFF; /* 文字颜色为白色 */
    text-decoration: none; /* 去掉下划线 */
    border-radius: 5px; /* 圆角 */
    font-size: 14px; /* 字体大小 */
    transition: background-color 0.3s ease; /* 悬停效果 */
  }
  
  /* 导航链接悬停效果 */
  .nav-list li a:hover {
    background-color: #ff6347; /* 悬停时背景颜色 */
  }


/* #endregion 顶部导航end*/

/* #region 爆款推荐区s*/
.hot-sale{
  margin-top: 2rem;
}
.hot-sale h2{
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.hot-sale .hot-sale-list{
  border: 1px solid #eee;
  padding: 1rem;
}
.hot-sale .hot-sale-list ul{
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 1rem; /* 商品之间的间距 */
}
.hot-sale .hot-sale-list ul li{
  flex: 0 1 19.3%;
  padding: 1rem;
  box-sizing: border-box;
  border: 1px solid #eee;
  border-radius: 0.4rem;
  transition: all  .5s ease;
}
.hot-sale .hot-sale-list ul li:hover{
  /* 2d转换放大或者缩小 scale(1.2)放大1.2倍*/
  transform:scale(1.05)
}
.hot-sale .hot-sale-list ul li img{
  max-width: 100%;
  height: auto;
  border-radius: .4rem;
}
.hot-sale .hot-sale-list ul li .name,
.hot-sale .hot-sale-list ul li .price{
  padding-top: .5rem;
  text-align: center;
}
.hot-sale .hot-sale-list ul li .name a{
  color: #737373;
  font-size: 1.6rem;
}
.hot-sale .hot-sale-list ul li .price{
  color: #DD302D;
  font-weight: bold;
  font-size: 1.8rem;
}

/* #endregion 爆款推荐区e*/

/* #region 楼层s*/
.loveflower{
    margin-top: 1.5rem;
  }
  .loveflower-nav{
    display: flex;
    justify-content: space-between;
    height: 4rem;
    line-height: 4rem;
    border-bottom: 1px solid #000;
  }
  .loveflower-name{
    font-size: 2rem;
  }
  .loveflower-nav-list a{
    font-size: 1.8rem;
  }
  .loveflower-info{
    /* margin-top: 2rem; */
    border: 1px solid #eee;
    padding: 1rem 1rem;
  }
  .loveflower-info ul{
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 1rem; /* 商品之间的间距 */
  }
  .loveflower-info ul li{
    flex: 0 1 19.3%;
    /*max-width: 22.5rem;  (1190 - 40) ÷ 5 = 230px，40px是商品间总间距 */
    padding: 1rem;
    box-sizing: border-box;
    border: 1px solid #eee;
    border-radius: 0.4rem;
    transition: all  .5s ease;
  }
  .loveflower-info ul li:hover{
    /* 2d转换放大或者缩小 scale(1.2)放大1.2倍*/
    transform:scale(1.05)
  }
  .loveflower-info ul li img{
    max-width: 100%;
    height: auto;
    border-radius: .4rem;
  }
  .loveflower-info ul li .name,
  .loveflower-info ul li .price
  {
    padding-top: .5rem;
    text-align: center;
  }
  .loveflower-info ul li .name a{
    color: #737373;
    font-size: 1.6rem;
  }
  .loveflower-info ul li .price{
    color: #DD302D;
    font-weight: bold;
    font-size: 1.8rem;
  }
/* #endregion 楼层e*/

/* #region 尾部s*/
 .f-server{
    margin: 1rem 0;
    background-color: #F7F9FA;
    
  }
 .f-server .bd{
    padding-top: 3rem;
  }
  /* 文章列表 */
  .f-server .articles{
    background-color: #fff;
  }

  .f-server .articles .article-hd{
    display: flex;
    justify-content: space-between;
    height: 5.3rem;
    padding: 0 3rem;
    border-bottom: 1px solid #E9ECF0;
  }

  .f-server .articles .article-hd h4{
    
    font-size: 2rem;
    line-height: 5.2rem;
    font-weight: 500;
    color:#232628 ;
  }
  .f-server .articles .article-hd a{
   
    font-size: 1.4rem;
    line-height: 5.2rem;
    color:#71797F ;
  }
  .f-server .articles .article-bd{
    padding: 1rem 0;
    /* background-color: green; */
  }
  .f-server .articles .article-bd .article-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .f-server .articles .article-bd .article-list .article-item{
    flex: 0 1 29%;
    position: relative;
    width: 38rem;
    font-size: 1.3rem;
    line-height: 2.8rem;
    padding-left: 4.2rem
  }
  .f-server .articles .article-bd .article-list .article-item a{
    color: #232628;
  }
  .f-server .articles .article-bd .article-list .article-item::before{
    position:absolute;
    content: "";
    left: 3.2rem;
    top: 1.2rem;
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background-color: #B4BABF;
  }
  .f-server .server-list{
    padding: 3rem 1.5rem;
    border-bottom: 1px solid #E9ECF0;
    /* background-color: gray; */
  }
  .f-server .server-list .t1{
    /* font-weight: bold; */
    font-size: 1.6rem;
    line-height: 2.5rem;
    margin: 1rem 0;
  }
  .f-server .server-list .t2{
    font-weight: bold;
  }
    /* 帮助中心 */
  .f-server .help-content{
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;
    /* background-color: skyblue; */
  }
  .f-server .help-content .list{
    padding: 20px 10px;
  }
  .f-server .help-content .list ul li:first-child{
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    height: 30px;
  }
  .f-server  .copyright{
    border-top: 1px solid #E9ECF0;
    text-align: center;
    padding: 20px 0;
  }
  

/* #endregion 尾部e*/

/* #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 漂浮窗口样式S*/
 /* 漂浮窗口样式 */
 .float-window {
    position: fixed;
    right: 20px;
    bottom: 100px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
  }
  /* 返回顶部按钮样式 */
  .back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: none; /* 默认隐藏 */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
  }
  /* 弹窗样式 */
  .modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
  }
  
  /*  #endregion 漂浮窗口样式e */

/* #region */
/* #endregion */

/* #region 媒体查询 start*/
@media (max-width:1200px){
    .container{  
        margin: 0 auto;
    }
    .hot-sale .hot-sale-list ul li{
      flex: 0 1 48%;
  }
  .loveflower .loveflower-info ul li{
      flex: 0 1 48%;
  }
    .f-server .articles .article-bd .article-list .article-item{
        flex: 0 1 45%;
    }
}

@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){
  
    .loveflower-info ul,
    .hot-sale .hot-sale-list ul{
        justify-content: center;
    }
    /* .loveflower .loveflower-info ul li,
    .hot-sale .hot-sale-list ul li{
        flex: 0 1 48%;
    } */
    .f-server .articles .article-bd .article-list .article-item{
        flex: 0 1 80%;
    }
    .hot-sale .hot{
        padding-left: 1rem;
    }
    .hot-sale .hot-sale-list li{
        border: 0;
    }
    .loveflower-name,
    .container .hot
    {
      font-weight: normal;
        padding-left: 1rem;
        font-size: 1.3rem;
    }
    .loveflower-nav-list a{
        font-size: 1.3rem;
    }
    .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;
    }
   
    .f-server .help-content .item4,
    .f-server .help-content .item5{
        display: none;
    }
}
/* #endregion 媒体查询 end*/




