body{
   margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-top: 100px;
}





/*---------↓--------- 购物车 ---↓----------------*/


/* 导航栏-购物车 */

.cart-float-daohang {
 
  

  width: 55px;
  height: 55px;
  background: #ffac27;
  border-radius: 20%;    /* 圆形 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 33px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;          /* 保证在最上层 */
}

.cart-float-daohang img {
  position: absolute;  
  width: 40px;
  height: 40px;
  left:6px;
  top: 15px;
  
}


.cart-count-daohang {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}



/* 导航栏-购物车 */

/* 购物车悬浮球 */
.cart-float {
  position: fixed;       /* 固定在屏幕 */
  bottom: 88px;          /* 距离底部 */
  left: 30px;           /* 距离右边 */
  width: 60px;
  height: 60px;
  background: #ffac27;
  border-radius: 20%;    /* 圆形 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 33px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;          /* 保证在最上层 */
}


.cart-float img {
  position: absolute;  
  width: 45px;
  height: 38px;
  left:6px;
  top: 15px;
  
}

/* 购物车数量角标 */
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}




/*---------↓--------- 信息框样式 ---↓----------------*/



.xinxi_kuang{
    position: fixed;
    display: flex;
    top: 118px;
    right: 50px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    width: auto;
    height: 25px;
    border-radius: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    background-color: rgb(220, 236, 250); /* 信息框背景保持淡蓝色 */
    transform: translateX(calc(100% + 50px));
    overflow: hidden;
    /* transform: translateX(220%); */
    transition: all 0.5s ease;
    z-index: 50;
}

.xinxi_kuang.active {
    transform: translateX(0);
}

.xinxi {
    display: flex;
    align-items: center;
}

/* 图标圆圈：背景色由 JS 的 yanse 控制 */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin-right: 10px;
    flex-shrink: 0;
}

.neirong {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

/* 进度条：颜色由 JS 的 yanse 控制 */
.xinxi_kuang .jindu{
    position: absolute;
    bottom: 0;
    left: 0; 
    height: 3px;
    width: 0; 
}

.xinxi_kuang.active .jindu {
    animation: jindu_run 3s linear forwards;
}

@keyframes jindu_run {
    0% { width: 100%; }
    100% { width: 0%; }
}


/*---------↑----- 信息框样式 -----↑------*/





button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: all 0.15s ease; 
  
  
  position: relative;
  top: 0;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}


button:active {
  top: 2px;             
  box-shadow: inset 5px 5px 8px rgba(0,0,0,0.2); 
  opacity: 0.9;           
}


/* ------------- 导航栏---------- */

.daohang{
    display: flex;
    align-items: center;
    background-color: rgb(255, 255, 255);
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    height: 100px; /* 必须加 */
    
    
}

.logo{
    width: 100px;
    height: 100px;
   
    
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 50px;
  margin-left: 580px;
  align-items: center;
 
}

.nav li a {
  text-decoration: none !important;
  font-weight: 700;
}


.nav > li {
  position: relative;
}
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  text-decoration: none
}

.sub li {
display: flex;
justify-content: center;
background-color: royalblue;
margin-top: 5px;
width: 235px;
height: 30px;



border-radius: 5px;
}  





.sub li a {
    color: white;
    text-decoration: none;
    line-height: 30px;
    text-decoration: none;
    
}   

.sub li:hover{
    transform: scale(1.2);  
}

.nav > li:hover .sub {
  display: block;
}

/* 
---------------------------------------------- */

.index_zhutu, .bpb_zhutu{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    background-color: rgb(194, 193, 193);
}


.bpb_chan_pin{
    margin: 25px auto 0 auto;
    
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 一行6等份 */
    padding: 10px;
    gap: 10px; /* 间距 */
    width: 100%;
    max-width: 1600px; /* 控制整体最大宽度 */
    
    justify-content: center; /* 核心：让网格整体居中 */
}

.chan_pin_kuang{
    position: relative; 
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: 250px;
    height: 340px;
    background-color: rgb(241, 238, 234);
    margin: 0 auto;
    border-radius: 15px; 
    overflow: hidden;   
    
}



.chan_pin_kuang:hover{
    cursor:pointer
}

.chan_pin_bj{
    display: flex;
    flex-direction: column;
   
    width: 200px;
    height: 60px;
    border-radius: 30px;
    align-items: center;
}


.chan_pin_bj label{
    
    color: rgb(111, 111, 111);
    font-size: x-large;
    font-weight: 500;
    margin-top: 5px;
}


.chan_pin_kuang img{
    
    position: absolute;
    
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 5px 23px rgba(0, 0, 0, 0.3));
    transition: opacity 0.5s ease
}






.cp_img1 {
  opacity: 1;
}

.cp_img2 {
  opacity: 0;
}

.chan_pin_kuang:hover .cp_img1 {
  opacity: 0;
}
.chan_pin_kuang:hover .cp_img2 {
  opacity: 1;
}



.cp_biao_ti{
    margin-top: 80px;
    font-size: 40px;
    color: rgb(103, 103, 103);
    margin-left: 320px;
}

/* ---------------↓--------产品页面----------↓---------------------- */



.cp_ge_ceng{
    width: 100%;
    height: 50px;
    background-color: rgb(194, 193, 193);
}


.cp_zhan_shi{
    display: flex;
   
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 1000px;
    background-color: rgb(243, 203, 150);
}


.p_zhan_shi_1{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 1000px;
    background-color: rgb(243, 203, 150);
}


   /* -------------------------------------------------------- */

.cp_id label{
    font-size: 30px;
    font-weight: bold;
    color: rgb(6, 6, 6);
}   
.p_zhan_shi_1_zuo{   /* <====产品页面右边部分 */
    position: relative;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    padding: 10px;
    width: 800px;
    height: 800px;
    /* background-color: rgb(147, 229, 163); */
    
}


.p_zhan_shi_1_zuo_img{
     
    width: 600px;
    height: 600px;
    border-radius: 15px;
   overflow: hidden;
    
}

.p_zhan_shi_1_zuo_img img {
   
    width: 100%;     
    height: 100%;    
    object-fit: cover; /* 保持比例，不变形 */
    display: block;
}


.p_zhan_shi_1_zuo_img_xuantu{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;  
    bottom: 0;           
    left: 0;
    width: 100%;         
    height: 200px;
    /* background-color: rgb(3, 95, 21); */
    
}

.p_zhan_shi_1_zuo_img_xuantu img{
    width: 150px;
    height: 150px;
    margin-left: 5px;
}

   /* -------------------------------------------------------- */



.p_zhan_shi_1_you{    /* <====产品页面右边部分 */
    
    position: relative;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    padding: 10px;
    width: 800px;
    height: auto;  
    min-height: 850px; 
    /* background-color: rgb(23, 125, 43); */
    
}


.p_zhan_shi_1_you_info{
    margin: 10px;
    /* background-color: rgb(3, 95, 21); */
    width: 95%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.p_zhan_shi_1_you_info h2 {
    margin: 0; /* 去掉默认间距 */
}
.p_zhan_shi_1_you_info p {
    margin: 2px 0; /* 上下间距只有 2px，非常紧凑 */
}


.p_zhan_shi_1_you_color{
    /* background-color: royalblue; */
    width: 95%;
    height: 200px;
}


.p_zhan_shi_1_you_color_label{
    margin: 5px;
}


.p_zhan_shi_1_you_color_xz{
    margin: 10px;
    display: flex;
    width: 95%;
   
    justify-content: center;
    flex-wrap: wrap;/* <===自动换行 */
}




.p_zhan_shi_1_you_size{
    margin: 10px;
    /* background-color: royalblue; */
    width: 95%;
    height: auto;
    min-height: unset;

}



.p_zhan_shi_1_you_color_xz img{
    width: 70px;
    margin: 5px; ;
    height: 70px;
    object-fit: cover;
    
    border-radius: 10px;
    border: 3px solid transparent; /* 透明占位，不晃动 */
    transition: all 0.2s ease;
    cursor: pointer;
    
}

.p_zhan_shi_1_you_color_xz img:hover {
  border-color: rgb(232, 113, 10); /* 边框颜色 */
}


.p_zhan_shi_1_you_color_xz img:active {
  transform: scale(0.93); /* 缩小 = 凹陷 */
  opacity: 0.8;
  border-color: rgb(196, 88, 0); /* 按下变深色 */
}


.p_zhan_shi_1_you_size_btn{
    margin: 10px;
    display: flex;
    width: 95%;
    
    justify-content: center;
    flex-wrap: wrap;/* <===自动换行 */
}




.p_zhan_shi_1_you_size_btn button{
    margin: 5px;
    width: 100px;
    height: 40px;
    font-size: larger;
    /* background-color: rgb(3, 95, 21); */
    color: rgb(232, 113, 10);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.p_zhan_shi_1_you_jiesuan{
    justify-content: center;
    
    /* flex-direction: column; */
    gap: 10px;
    /* background-color: rgb(3, 66, 95); */
    width: 95%;
    height: auto;
    
    display: flex;
    align-items: center;
    padding: 10px;
    /* margin-top: auto; */
    
}

.add_to_cart_btn{
    width: 200px;
    height: 50px;
    background-color: rgb(168, 168, 168);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    margin-left: 50px;
}


.quantity_input{
    width: 88px;
    height: 30px;
    text-align: center;
    font-size: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top:5px ;
}


.quantity_input_jian , .quantity_input_jia{
    width: 40px;
    height:40px;
    border-radius: 50%;
    background-color: rgb(168, 168, 168);
    color: white;
    font-size: 20px;    
    border: none;

}

.xuan_ding{
    display: flex;
    background-color: rgb(185, 185, 185);
    width: 100%;
    height: 68px;
    font-size: 25px;
    color: rgb(43, 43, 43);
    align-items: center;
    justify-content: space-around;
    margin: 10px;
    border-radius: 15px;

}

/* ---------------↑--------产品页面----------↑---------------------- */





/* ---------------↓--------购物车结算----------↓---------------------- */

.gwc_ge_ceng{
    width: 100%;
    height: 50px;
    background-color: rgb(194, 193, 193);
}


.gwc_zhu_chuang{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    min-height: 888px;
    background-color: rgb(243, 203, 150);
    margin: 20px auto;
}


.gwc_zhu_01{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 98%;
    min-height: 800px;
    
    background-color: rgb(70, 185, 7);
}

/*  购物车结算页面左右两部分，左边是商品信息，右边是结算信息 */
.gwc_zhu01_zuo{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start; 
    row-gap: 10px;        
    width: 60%;
    min-height: 666px;
    background-color: rgb(161, 250, 66);
    padding: 20px; /* 让卡片和绿色背景边缘保持一点呼吸感 */
    box-sizing: border-box; /* 确保 padding 不会把 60% 的宽度撑爆 */
}



.gwc_chan_pin{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 100px;
    background-color: rgb(176, 140, 93);
    margin: 10px auto;
    border-radius: 15px;
    
}

.gwc_chan_pin_tu{
    justify-content: center; /* 水平居中图片 */
    align-items: center;
    display: flex;
    width: 98px;
    height: 98px;
    border-radius: 10px;
    overflow: hidden; /* 强制切掉超出部分 */
    box-shadow: inset 2px 2px 8px rgba(0,0,0,0.5);
}


.gwc_chan_pin img{
    width: 95%;  /* 图片占盒子的 90%，剩下的就是间隙 */
    height: 95%; 
    object-fit: cover; /* 保证图片比例不缩放变形 */
    border-radius: 10px;
    
}


.gwc_chan_pin_xinxi{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 78%;
    height: 90%;
    background-color: wheat;
    gap: 10px;
   
     
    
}

.gwc_chan_pin_xinxi_Nu{
    display: flex;
    /* justify-content: center;  */
    
    align-items: center;
    height: 38px;
    width: auto;
    color: white;
    gap: 15px;
    font-size: large; 
    background-color: rgb(58, 8, 210);
    padding: 0 10px;
    
}


.gwc_chan_pin_xinxi_shu{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    width: auto;
    gap: 20px;  
    font-size: large; 
   
}


.gwc_chan_pin_xinxi_shu button{
    width: 30px;
    height: 30px;
    border-radius: 25%;
    background-color: rgb(168, 168, 168);
    color: white;
    font-size: 20px;    
    border: none;
    cursor: pointer;
}

.gwc_chan_pin_xinxi_jiesuan{
    display: flex;
    /* justify-content: center; */
    align-items: center;
    flex-direction: column;
    
    background-color: rgb(51, 137, 158);
    height: 100%;
    width: 168px;
}


.gwc_xinxi_jiesuan{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 53px;
    /* background-color: rgb(70, 185, 7); */
}

.gwc_xinxi_jiesuan p{
    color: white;
    font-size: large;
    font-weight: bold;
}


.gwc_chan_pin_xinxi_jiesuan button{
    width:88px;
    height: 30px;
    background-color: rgb(168, 168, 168);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

/* ---------------↑--------购物车结算左边----------↑---------------------- */


/* ---------------↓--------购物车结算-- 右边--------↓---------------------- */




.gwc_zhu01_you{
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: 40%;
    min-height: 666px;
    background-color: rgb(237, 41, 230); 
}


.gwc_zhu01_you_info{
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: auto;
    
    
    background-color: rgb(229, 218, 3);
    font-size: x-large;
    font-weight: 700;
}

.gwc_zhu01_you_info p {
    margin: 0;
}

.gwc_zhu01_you_kehu{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* justify-content: center; */
    /* align-items: center; */
    width: 95%;
    /* height: 438px; */
    min-height: 300px;
    background-color: rgb(69, 155, 195);
    font-size: xX-large;
    font-weight: 700;
    padding: 15px;
   
}


.gwc_zhu01_you_jiesuan{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 100px;
    background-color: rgb(3, 66, 95);
    font-size: xX-large;
    font-weight: 700;
}



/* ---------------↑--------购物车结算-- 右边--------↑---------------------- */
