/* ================================================
   sm-wholesale 新站 · 增量样式
   原则：桌面端不改动原站任何观感，只补原站缺失的
   页脚类名与购物车元素；仅在 ≤780px 时做移动端重排
   ================================================ */

/* 页脚（与原站内联样式完全一致） */
.ftr{
  width:760px; height:120px; margin:0 auto;
  border-top:2px solid #CCCCCC; text-align:center;
  font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; line-height:1.8;
}
.ftr a{ color:#333; }

/* 购物车数量提示 */
.cart-float{
  position:fixed; right:14px; bottom:14px; z-index:999;
  background:#FF6600; color:#fff; font:12px Verdana,Arial;
  padding:8px 12px; border-radius:3px; text-decoration:none; display:none;
}
.cart-float:hover{ background:#E05500; }

/* 加购成功提示 */
#cart-toast{
  position:fixed; right:14px; top:80px; z-index:1000;
  background:#4CAF50; color:#fff; font:12px Verdana,Arial;
  padding:10px 16px; border-radius:3px; display:none;
}

/* ================= 移动端（≤780px） =================
   桌面端完全不受影响；手机上单列重排，图片自适应       */
@media screen and (max-width: 780px){
  html, body{ overflow-x:hidden; }
  body{ -webkit-text-size-adjust:100%; }

  /* 760px 固定容器全部铺满 */
  table[width="760"], table[width="720"], .ftr, #demo, .tablelayout{
    width:100% !important;
    max-width:100% !important;
    height:auto;
  }
  .ftr{ height:auto; padding:12px 0; }

  /* 顶部：logo 与菜单紧凑排列，不再逐行铺满 */
  table.hdr{ width:100% !important; table-layout:auto; }
  table.hdr > tbody > tr > td{
    display:inline-block !important;
    width:auto !important;
    height:auto !important;
    vertical-align:middle;
    padding:2px 3px;
  }
  table.hdr td img{ max-height:46px; width:auto; }
  table.hdr > tbody > tr:nth-child(2) > td{
    background:#4C7BB0 !important;
    min-width:54px;
    text-align:center;
  }
  table.hdr td a.Menu{ font-size:10px; color:#333; }
  table.hdr td a.A_Menu{ font-size:10px; color:#fff !important; }

  /* 搜索条紧凑 */
  #Keyword{ width:112px !important; }
  #FieldList{ max-width:92px; font-size:10px; }
  td[width="142"]{ display:none !important; }

  /* 内容区左右栏改为上下堆叠 */
  td[width]{ width:auto !important; }
  table[width="760"] > tbody > tr > td,
  table[width="585"] > tbody > tr > td,
  table[width="600"] > tbody > tr > td{
    display:block !important;
    width:auto !important;
  }

  /* 商品网格：185px 固定宽改两列自适应 */
  #pis_piclist .pic{
    width:50% !important; height:auto; box-sizing:border-box;
    margin:4px 0; padding:0;
  }
  #pis_piclist .pic img{
    width:120px !important; height:120px !important;
    max-width:80%;
  }
  /* 热销：三列固定宽度，避免百分比依赖一个被撑开的父容器 */
  #pis_piclist_hot{ width:100% !important; max-width:100% !important; overflow:hidden; text-align:left; }
  #pis_piclist_hot .pic{
    float:left !important; display:block !important;
    width:96px !important; height:auto !important;
    margin:4px 3px !important; box-sizing:border-box;
  }
  #pis_piclist_hot .pic img{
    width:75px !important; height:75px !important;
    display:inline-block !important; visibility:visible !important;
  }
  #pis_piclist_hot .pic .title{ width:96px !important; font-size:11px; }

  /* 新品滚动条在手机上改为换行平铺 */
  #demo{ overflow-x:auto !important; }
  #pis_piclist_new{ width:auto !important; }
  #pis_piclist_new .pic{ width:116px !important; height:116px !important; }

  /* 详情页图区与参数区堆叠 */
  #pis_detail .info > .left,
  #pis_detail .info > .right{
    display:block !important; float:none !important;
    width:100% !important; border-right:none !important;
  }
  #pis_detail .left .pic{ float:left; width:33% !important; height:auto; margin:2px 0 !important; }

  /* 描述内的大图自适应 */
  .description img, #pis_detail .description img{ max-width:100% !important; height:auto !important; }

  /* 分类浮动菜单在手机上不再浮动 */
  .win.winHomeA{ position:static !important; }

  table[width="100%"]{ font-size:11px; }
}

@media screen and (max-width: 480px){
  #pis_piclist .pic img{ width:96px !important; height:96px !important; }
  .description img{ max-width:100% !important; }
}

/* 详情页图片区：4 张图换到第二行时，不让下方描述盖住第 4 张 */
#pis_detail .info{ overflow:hidden; }
#pis_detail .left .pics{ overflow:hidden; }
