.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: 3.2rem; */
    /* 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 首页顶部轮播图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: .5rem;
  }
  /* 文章列表 */
  .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 底部城市列表s*/
/* 城市列表主容器 */
.city_list {
  width: 100%;
  background-color: #f8f9fa;
  margin-top: 2rem;
  padding: 2rem 0;
  
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 内容容器 */
.city_list .container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 15px;
}

/* 列表内容区域 */
.city_list .content {
  background-color: #fff;
  /* border-radius: 8px; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  padding: 25px;
}

/* 城市列表样式 */
.city_list ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: .5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 列表项样式 */
.city_list li {
  transition: all 0.3s ease;
}

/* 城市链接样式 */
.city_list a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  text-align: center;
  background-color: #f1f3f5;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid #e9ecef;
}

/* 悬停效果 */
.city_list a:hover {
  background-color: #e9ecef;
  color: #1a73e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* #endregion 城市列表e*/

/*  #region 底部文章列表s */
/* 文章列表样式 */
.article-section {
  background-color: #f9f9f9;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.article-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e1e1;
  flex-wrap: nowrap; /* 确保不换行 */
}

.section-title {
  font-size: 20px;
  color: #333;
  margin: 0;
  white-space: nowrap; /* 防止标题换行 */
  margin-right: 15px; /* 添加右边距 */
}

.view-more {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap; /* 防止链接换行 */
}

.view-more:hover {
  color: #c81623;
}

.article-list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
  display: block;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-list a:hover {
  color: #e4393c;
  background-color: #f5f5f5;
}

/* 手机端响应式 */
@media (max-width: 768px) {
  .article-list ul {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header {
      flex-wrap: nowrap; /* 确保不换行 */
      overflow: hidden; /* 防止溢出 */
  }
  
  .section-title {
      font-size: 18px;
      margin-right: 10px;
      text-overflow: ellipsis;
      overflow: hidden;
  }
  
  .view-more {
      font-size: 13px;
      flex-shrink: 0; /* 防止链接被压缩 */
  }
  
  .article-list a {
      font-size: 13px;
  }
}

@media (max-width: 480px) {
  .article-list ul {
      grid-template-columns: 1fr;
  }
  
  .article-section {
      padding: 15px 0;
  }
  
  .section-header {
      padding-bottom: 8px;
  }
  
  .section-title {
      font-size: 16px;
      max-width: 60%; /* 限制标题宽度 */
  }
  
  .view-more {
      font-size: 12px;
  }
}
/*  #endregion 底部文章列表e */

/* #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;
    }

    .city_list ul {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .city_list a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

  @media (max-width: 480px) {
    .city_list ul {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .city_list .content {
        padding: 15px;
    }
  }
/* #endregion 媒体查询 end*/




