
/*2024-10-18  小费修改*/


/*电脑端 首页*/


@media only screen and (min-width:1029px) {
	.header-content {
	width:80%!important;
}
.product-carousel {
	width:80%!important;
}
.category-block {
	width:80%!important;
}
.xiaofei555 {
	width:80%!important;
}
.gray-product-page .container {
	width:80%!important;
}
.product-page .container {
	width:80%!important;
}
.links .active {
	background-color:#7d8c99!important;
}
.zhifub {
	width:100px!important;
}

.xiaofeilinks:hover {
	background-color:#7d8c99;
	color:#fff;
}
.xiaofeibut ul li {
	float:left;
	width:35%;
	margin:10px;
	padding-top:30px;
}
.xiaofeibut ul li:nth-child(1) {
	margin-left:0px;
}
.xiaofeibut ul li p {
	font-size:14px;
}
.xiaofeibut ul li p:nth-child(2) {
	font-size:10px;
}
.xiaofeibut ul li p  img {
	padding-bottom:20px
}
.clear {
	clear:both;
}
.xiaofeiico {
	width:25px;
}
#languageMenu {
	right:10%!important;
}
.mb-20 {
	margin-bottom:2rem!important;
}
.xiaofeinavtab {
	padding:0px 45px;
}


}


.product-list .info .title {
  font-weight: 300!important;
 
}


.category-block .info .title {
  font-weight: 300!important;
}

.category-block .newitem .info {

  margin-left: 0px!important;
}

/*上面的花括号 ，电脑端结束*/

.xiaofeilinks {
	display:inline-block!important;
	padding:20px;
	margin:30px auto!important;
	border:1px solid #000;
}

.xiaofeiprojectlist {
  display: block;
  margin: 5px;
}


.xiaofeinavtab {margin:30px 0px;line-height:50px;}
.xiaofeinavtab .xiaofeinavtab_l{float:left;width:8%;}


.xiaofeinavtab .xiaofeinavtab_r {float:left;width:91%;}
.xiaofeinavtab .xiaofeinavtab_r a{width:10%;}


 .xiaofeinavtab  .py-4 {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}


  .gray-product-page .container {
    width: 84% !important;
  }


.spanxiaofie{text-align:left;display: block;margin: 20px 0px;text-decoration:underline;font-size: 1.5rem;}





.cpxiaofeil{width:20%;float:left;text-decoration: underline;font-size: 1.5rem;}


.cpxiaofeir{width:80%;float:left;}




.cpxiaofeir div{border-bottom: 1px dashed rgba(0,0,0,.25);font-size: 1.1rem;display: block;line-height:3rem;}

.cpxiaofeir div span{width:20%;display: inline-block;}



.cpxiaofeirdown div{float: left;
  border-radius: 5px;
  background: #000;
  color: #fff;
  font-size: 0.8rem;
  line-height: 2.5rem;
  padding: 10px 20px;
  margin: 10px;
  width: 20%;
  text-align: center;
}

.cpxiaofeirdown div span{width:100%;}


.product-entry:hover img {
  transform: scale(1);
}

.product-entry:hover {
  background-color: #f0f0f0;
} 


 .newitem:hover {
  background-color: #f0f0f0;
}

.cpxiaofeirdown div {
  border:0px;
}
.cpxiaofeirdown div:hover {
  background-color: #f0f0f0;
  color:#555;
}


.xiaofeicolor3{text-align: center;}
.xiaofeicolor3 li{width:30%;display: inline-block;list-style:none;margin:10px;}

.xiaofeicolor3 li p{text-align:center;line-height:50px;}
.xiaofeicolor3 li div{border:0px;}


/*导航悬浮开始 10-23*/
.navtabxf{display:none;position:absolute;top:80px;width:100%;left: 0;
  background: #fff;
  padding: 20px 10%;
}

#menu-item-xf1:hover .navtabxf{display:block;}

#menu-item-xf2:hover .navtabxf{display:block;}

#header{padding:0px;height:80px!important;}
.header{height:80px!important;}

.nav li {line-height:80px;}

.navtabli{line-height:20px!important;float:left;width:13%;height:150px;margin-left:2.5rem;margin-right:0rem!important;}
.navtabli p{color:#666;line-height:23px;}





#menu-primary-menu{margin-right:0.4rem;}


.navtabli p:nth-child(1){color:#000;font-weight:bold;}

.navtabli:nth-child(1){height:auto;margin-right:1rem;}

#menu-item-xf2  .navtabli p{text-align:center;line-height: 40px;} 


.xiaofeinone {
        display: none;
    }

    .on {
        display: contents;
        background: #7d8c99;
    }


.on222{background: #7d8c99;color:#fff!important;}


.buycart:hover{background: #fff;
  color: #000;
  border: 1PX solid;}


.btnxfdz{font-size:0.6rem;}


.recommended-products li:hover span{border-bottom:2px solid #000;display: -webkit-inline-box;
}
.spanxiaofieL{float:left;}

.spanxiaofieR{float:right;}





/*产品板块  电脑和手机*/



.carousel2 {
    position: relative;
    margin: auto;
}

.carousel2.banner-carousel {
    width: 100%;
    margin-bottom: 40px;
}

.carousel2.product-carousel {
    width: 45%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.carousel-inner {
    display: flex;
    overflow: hidden;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.carousel-item img {
    width: 100%;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 0;
    text-align: center;
}

.carousel-indicators {
    text-align: center;
    position: relative;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.carousel-indicators .dot {
    display: inline-block;
    height: 5px;
    width: 5px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-indicators .dot.active {
    background-color: #000;
}

.carousel-control {
    position: absolute;
    color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: unset;
    font-family: Arial;
}

.carousel-control.prev {
    left: 5%;
    margin-top: -13%;
}

.carousel-control.next {
    right: 5%;
    margin-top: -13%;
}

.carousel-item span {
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
    text-align: left;
}

.carousel-item p {
    margin-top: 10px;
    font-size: 0.8rem;
    text-align: left;
}

.product-carousel {
    width: 65%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.product-carousel .carousel-item {
    display: flex;
    justify-content: space-around;
    height: auto;
}

.product-carousel .product {
    width: 43%;
    padding: 10px;
    text-align: center;
}

.product-carousel h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    transform: scaleY(1.3); /* 垂直方向拉伸 1.5 倍 */
    margin-bottom: 50px;
}

#pick-up-item .product {
    flex: 1 0 50% !important; /* 每行显示两个产品 */
    box-sizing: border-box !important;
    padding: 10px !important
}

#pick-up-item .carousel-item {
    display: flex;
    flex-wrap: wrap;
    flex: 1 0 100%;
    text-align: left;
    padding: 10px;
}

#pick-up-item .carousel-control.prev,
#pick-up-item .carousel-control.next {
    margin-top: -20%;
}

.category-block {
    padding-top: 30px;
    width: 65%;
    margin: 0 auto;
    text-align: center;
}

.category-block h2 {
    font-size: 2.8rem;
     transform: scaleY(1); /* 垂直方向拉伸 1.5 倍 */
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.category-block .links {
    display: flex;
    border: 1px solid #000;
    justify-content: center;
    margin-bottom: 20px;
}

.category-block .links a {
    padding: 10px 20px;
    width:25%;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s;
}

.category-block .links a:hover {
    background-color: #7d8c99;
    color: #fff;
}

.category-block .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.category-block .active,
.category-block .active a {
    background: #7d8c99;
    color: #fff !important;
}

.category-block .product {
    width: 23%;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.category-block .product img {
    width: 100px;
    height: 100px;
    margin-right: 10px; /* 保持图片与文字之间的间距 */
    background: #f0f0f0;
}

.category-block .product .info {
    display: flex;
    flex-direction: column; /* 使文字部分垂直排列 */
    justify-content: center; /* 文字垂直居中 */
    flex-grow: 1; /* 占据剩余的空间 */
    text-align: left;
    margin-left: 15px;
}

.category-block .product .info span {
    margin-bottom: 5px; /* 控制标题和价格之间的间距 */
}

.category-block .price {
    font-weight: bold;
    color: #f00; /* 红色显示价格 */
}

.category-block .product:hover {
    background-color: #f0f0f0;
}

.category-block .newitems {
    display: flex;
    flex-wrap: wrap; /* 允许内容换行 */
    justify-content: flex-start; /* 从左边对齐 */
    gap: 15px; /* 控制项目之间的间距 */
}

.category-block .newitem {
    width: calc(20% - 15px); /* 每行5个项目，考虑间距 */
    box-sizing: border-box;
    margin-bottom: 15px;
    text-align: center;
    transition: background-color 0.3s;
}

.category-block .newitem img {
    width: 100%; /* 设置图片宽度 */
    height: auto;
    margin-bottom: 10px; /* 图片与文字之间的间距 */
    background: #f0f0f0;
}

.category-block .newitem .info {
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    align-items: center; /* 使内容居中对齐 */
    margin-left: 5px;
}

.category-block .newitem .info span {
    margin-bottom: 5px; /* 增加span之间的间距 */
}

.category-block .info .title {
    font-weight: bold;
}
.category-block .info .sortname{
    font-size: 0.8rem;
    color: #ccc;
}

/* 媒体查询：适应手机屏幕，每行1个 */
@media (max-width: 768px) {
    .category-block .newitem {
        width: 100%; /* 手机屏幕上每行一个项目 */
    }
}
.new-item-section {
    text-align: center;
    padding: 20px;
}

.new-item-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.new-item-section .product-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.new-item-section .product {
    width: 150px;
    height: 200px;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.new-item-section .product img {
    width: 100%;
    height: auto;
}

.new-item-section .product span {
    font-size: 14px;
    margin-bottom: 5px;
    color: #888;
}

.new-item-section .product .price {
    font-size: 16px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-control.prev, .carousel-control.next {
        display: none;
    }

    .product-carousel, .category-block {
        width: 100%;
        padding: 0 10px;
    }

    .product-carousel .carousel-item {
        flex-direction: column;
        align-items: center;
    }

    .product-carousel .product {
        width: 100% !important; /* 手机下100% 一行一个 */
    }

    .category-block .product {
        width: 100%;
    }

    .new-item-section .product-row {
        flex-wrap: wrap;
    }

    .new-item-section .product {
        width: 100% !important;
        height: auto;
    }
    #pick-up-item .product{
        flex:1 0 20% !important
    }
}







