*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{width:100%;overflow-x:hidden}
body{font-family:"PingFang SC","Microsoft YaHei",sans-serif;background:#f5f6fa;color:#333;font-size:14px;padding-bottom:80px;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
li{list-style:none}
input,button,textarea{font-family:inherit;outline:none}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 15px;width:100%}

/* 顶栏 */
.header_top{background:#2c2c2c;color:#ccc;font-size:12px;height:34px;line-height:34px}
.header_top_menu{display:flex;justify-content:flex-end;align-items:center}
.header_top_menu_item{padding:0 10px;cursor:pointer}
.header_top_menu_item:hover{color:#486DF1}
.header_top_menu_icon{color:#555}

/* 主头部 */
.header_center{background:#fff;padding:18px 0}
.header_center_content{display:flex;align-items:center;justify-content:space-between}
.header_center_logo{display:flex;align-items:center;gap:10px}
.logo-img{width:48px;height:48px;border-radius:8px;object-fit:cover}
.logo-text{font-size:22px;font-weight:bold;color:#486DF1}
.header_center_search{flex:1;max-width:560px;margin:0 30px}
.search_wrapper{display:flex;border:2px solid #486DF1;border-radius:4px;overflow:hidden}
.search_input{flex:1;border:none;padding:9px 14px;font-size:14px;min-width:0;width:100%}
.search_btn{background:#486DF1;width:60px;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;flex-shrink:0}
.header_center_class{background:#486DF1;color:#fff;padding:9px 18px;border-radius:4px;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}

/* 主导航 */
.header_bottom{background:#486DF1;position:relative}
.header_bottom_menu{height:46px;display:flex;align-items:center;gap:4px}
.header_bottom_menu_item{color:#fff;padding:0 22px;height:100%;display:flex;align-items:center;cursor:pointer;position:relative;font-size:14px;white-space:nowrap}
.header_bottom_menu_item:hover,.header_bottom_menu_active{background:rgba(0,0,0,.15)}

/* 分类下拉 */
.category_wrap{position:relative}
.category_dropdown{display:none;position:absolute;top:100%;left:15px;width:760px;background:#fff;color:#333;box-shadow:0 8px 24px rgba(0,0,0,.15);border-radius:0 0 8px 8px;padding:14px;z-index:200;max-height:520px;overflow-y:auto}
.category_dropdown.show{display:block}
.category_dropdown_grid{display:flex;flex-wrap:wrap;gap:8px}
.category_dropdown_item{padding:8px 14px;background:#f7f9ff;border-radius:20px;color:#486DF1;cursor:pointer;font-size:13px;transition:all .15s}
.category_dropdown_item:hover{background:#486DF1;color:#fff}

/* 右侧悬浮 */
.bar{position:fixed;right:16px;bottom:120px;z-index:99}
.bar_im{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#486DF1;color:#fff;width:58px;height:74px;border-radius:6px;cursor:pointer;gap:4px}
.bar_im_text{font-size:12px}
.bar_other{background:#fff;border-radius:6px;margin-top:10px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden}
.bar_other_item{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 0;width:58px;cursor:pointer;gap:4px;border-bottom:1px solid #f0f0f0}
.bar_other_item:last-child{border:none}
.bar_other_item_text{font-size:12px;color:#486DF1}
.bar_top{display:none;justify-content:center;align-items:center;background:#fff;width:58px;height:44px;border-radius:6px;margin-top:10px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.08)}

/* 主体 */
.bg{background:linear-gradient(180deg,#eaf0ff 0%,#f5f6fa 260px);padding:22px 0 30px}
.top{display:flex;align-items:stretch;gap:16px;margin-bottom:26px}
.carousel{flex:1;height:320px;background:linear-gradient(135deg,#6a8cff,#486DF1);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;position:relative;overflow:hidden}
.carousel::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.25),transparent 50%)}
.user{width:300px;background:#fff;border-radius:10px;padding:20px;box-shadow:0 2px 10px rgba(72,109,241,.06)}
.user_top{display:flex;justify-content:center}
.user_top_img{width:70px;height:70px;border-radius:50%;border:3px solid #eaf0ff}
.user_top_name{text-align:center;margin-top:10px;font-size:15px;color:#486DF1;font-weight:500}
.user_login_btns{display:flex;gap:10px;margin:15px 0}
.user_login_btns a{flex:1;text-align:center;padding:8px;border-radius:6px;font-size:13px;cursor:pointer}
.user_login_btns .btn_login{background:#486DF1;color:#fff}
.user_login_btns .btn_reg{background:#eaf0ff;color:#486DF1}
.user_site_list{display:flex;gap:10px;margin:15px 0}
.user_site_item{flex:1;background:linear-gradient(135deg,#ffcf7d,#ff9a3d);color:#fff;padding:12px;border-radius:6px;cursor:pointer;display:block}
.user_site_item:nth-child(2){background:linear-gradient(135deg,#ff7d9d,#ff4d6d)}
.user_site_item_title{font-size:14px;font-weight:bold}
.user_site_item_desc{font-size:12px;margin-top:4px;opacity:.9}
.user_other{display:flex;justify-content:space-around;padding-top:14px;border-top:1px solid #f0f0f0}
.user_other_item{display:flex;flex-direction:column;align-items:center;gap:4px;color:#666;cursor:pointer}
.user_other_item_name{font-size:12px}

.title{text-align:center;margin:36px 0 20px}
.title_top{font-size:24px;font-weight:bold;color:#333}
.title_bottom{font-size:12px;color:#999;letter-spacing:2px;margin-top:4px}

/* 分类tab折叠 */
.nav_tabs_wrap{position:relative;background:#fff;border-radius:8px;margin-bottom:18px;padding:6px 96px 6px 12px;min-height:46px}
.nav_tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;max-height:34px;overflow:hidden;transition:max-height .3s}
.nav_tabs_wrap.expanded .nav_tabs{max-height:400px;overflow-y:auto}
.nav_tabs li{padding:6px 14px;cursor:pointer;border-radius:20px;font-size:13px;color:#555;transition:all .15s;white-space:nowrap;line-height:1}
.nav_tabs li:hover{color:#486DF1}
.nav_tabs .nav_active{background:#486DF1;color:#fff}
.nav_toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);padding:5px 12px;background:#eaf0ff;color:#486DF1;border-radius:14px;cursor:pointer;font-size:12px;user-select:none;white-space:nowrap}
.nav_toggle:hover{background:#486DF1;color:#fff}
.nav_toggle .arrow{display:inline-block;transition:transform .3s;margin-left:2px}
.nav_tabs_wrap.expanded .nav_toggle .arrow{transform:rotate(180deg)}

/* 商品网格 */
.goods{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.goods_item{width:calc((100% - 48px) / 5)}
.goods2{background:#fff;border-radius:8px;overflow:hidden;transition:transform .2s,box-shadow .2s;cursor:pointer;height:100%;display:flex;flex-direction:column;border:2px solid transparent}
.goods2:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(72,109,241,.15)}
.goods2.active{border-color:#486DF1;box-shadow:0 6px 16px rgba(72,109,241,.25)}
.goods2_pic{background:#eaf0ff;display:flex;align-items:center;justify-content:center;height:150px;color:#486DF1;font-size:14px;overflow:hidden}
.goods2_pic_img{width:100%;height:150px;object-fit:cover;display:block;transition:transform .3s}
.goods2:hover .goods2_pic_img{transform:scale(1.05)}
.goods2_tags{padding:8px 10px 0}
.goods2_tag{background:#ffe8d6;color:#ff6b1a;font-size:11px;padding:2px 6px;border-radius:3px}
.goods2_tag.stock{background:#e6f7ee;color:#0db26a;margin-left:6px}
.goods2_tag.off{background:#f0f0f0;color:#999;margin-left:6px}
.goods2_name{padding:6px 10px;min-height:42px}
.goods2_name_text{font-size:13px;color:#333;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.goods2_price{padding:4px 10px 12px}
.goods2_price_new{color:#ff4d4d;font-size:16px;font-weight:bold}
.goods_empty{width:100%;text-align:center;padding:50px 0;color:#999}

/* 下单面板 */
.buy_panel{background:#fff;border-radius:10px;padding:24px;margin-top:22px;box-shadow:0 2px 10px rgba(0,0,0,.04);display:none}
.buy_panel.show{display:block}
.buy_panel h3{font-size:16px;color:#333;margin-bottom:12px;padding-left:10px;border-left:3px solid #486DF1}
.buy_desc{background:#f7f9ff;padding:14px;border-radius:6px;color:#666;line-height:1.7;margin-bottom:20px;word-break:break-all}
.buy_form_row{margin-bottom:16px}
.buy_form_label{font-size:13px;color:#666;margin-bottom:6px}
.buy_form_label b{color:#ff4d4d;margin-right:3px}
.buy_form_input{width:100%;padding:10px 14px;border:1px solid #e0e0e0;border-radius:4px;font-size:14px}
.buy_form_input:focus{border-color:#486DF1}
.buy_form_msg{font-size:12px;color:#999;margin-top:6px}
.pay_types{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.pay_type{border:1px solid #e0e0e0;border-radius:6px;padding:10px 16px;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:14px;transition:all .15s}
.pay_type:hover{border-color:#486DF1}
.pay_type.active{border-color:#486DF1;background:#eaf0ff;color:#486DF1}
.pay_type img{width:20px;height:20px}

/* 底部支付栏 */
.pay_bar{position:fixed;left:0;right:0;bottom:0;background:#fff;box-shadow:0 -2px 12px rgba(0,0,0,.08);z-index:50;padding:12px 0}
.pay_bar_inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.pay_bar_name{flex:1;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pay_bar_num{display:flex;align-items:center;gap:10px}
.num_btn{width:28px;height:28px;background:#f0f0f0;border:none;border-radius:4px;cursor:pointer;font-size:16px;color:#666}
.num_input{width:60px;text-align:center;border:1px solid #e0e0e0;border-radius:4px;padding:5px}
.pay_bar_price{font-size:14px;color:#666;white-space:nowrap}
.pay_bar_price b{color:#ff4d4d;font-size:20px;margin-left:6px}
.pay_bar_btn{background:linear-gradient(135deg,#486DF1,#2848d0);color:#fff;border:none;padding:11px 34px;border-radius:22px;font-size:15px;cursor:pointer;font-weight:500;white-space:nowrap;flex-shrink:0}
.pay_bar_btn:hover{opacity:.9}

/* 订单查询弹窗 */
.q_wrap{padding:18px 20px}
.q_row{display:flex;gap:8px;margin-bottom:14px}
.q_row input{flex:1;padding:10px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:14px;min-width:0}
.q_row button{padding:10px 20px;background:#486DF1;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;white-space:nowrap}
.q_row button:hover{background:#2848d0}
.q_tip{color:#999;font-size:12px;margin-bottom:12px;line-height:1.6}
.q_list_box{max-height:400px;overflow-y:auto}
.q_item{border:1px solid #eee;border-radius:6px;padding:12px;margin-bottom:10px;cursor:pointer;transition:.15s}
.q_item:hover{border-color:#486DF1;background:#f7f9ff}
.q_item_top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.q_oid{background:#3369ff;color:#fff;padding:2px 10px;border-radius:4px;font-size:12px}
.q_status{padding:2px 10px;border-radius:12px;font-size:12px;color:#fff}
.qs-1{background:#0db26a} .qs-2{background:#3369ff} .qs-3{background:#fd6060} .qs-4{background:#b7b7b7} .qs-0{background:#f26c2a}
.q_name{color:#333;font-size:14px;font-weight:500}
.q_time{color:#999;font-size:12px;margin-top:4px}
.q_empty{text-align:center;color:#999;padding:30px 0}

.feature{background:#fff;padding:26px 30px;border-radius:10px;margin:30px auto;display:flex;justify-content:space-around;flex-wrap:wrap;gap:12px}
.feature_item{display:flex;align-items:center;gap:12px}
.feature_icon{width:44px;height:44px;border-radius:50%;background:#eaf0ff;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.feature_item_desc{color:#333;font-size:14px}

.footer{padding:26px 0;color:#999;font-size:12px;text-align:center;line-height:1.9;background:#fff;margin-top:20px}


/* ============================================================ */
/* =====   移动端·彻底重构（≤768px 完全手机化）           ==== */
/* ============================================================ */
@media (max-width:768px){
  body{padding-bottom:70px !important;font-size:13px !important}
  .container{padding:0 10px !important;max-width:100% !important}

  /* 顶栏隐藏 */
  .header_top{display:none !important}

  /* 主头部 */
  .header_center{padding:10px 0 !important;position:sticky;top:0;z-index:100;box-shadow:0 1px 6px rgba(0,0,0,.05)}
  .header_center_content{flex-wrap:nowrap !important;gap:8px !important;align-items:center !important}
  .header_center_logo{flex-shrink:0 !important;gap:6px !important}
  .logo-img{width:34px !important;height:34px !important;border-radius:6px !important}
  .logo-text{font-size:15px !important;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .header_center_search{flex:1 !important;margin:0 !important;max-width:none !important;min-width:0}
  .search_wrapper{border-width:1px !important;border-radius:20px !important}
  .search_input{padding:7px 12px !important;font-size:12px !important;background:#f5f6fa}
  .search_btn{width:40px !important}
  .search_btn svg{width:16px !important;height:16px !important}
  .header_center_class{display:none !important}

  /* 主导航：横向滚动,不再裁剪下拉 */
  .header_bottom{overflow:visible !important}
  .header_bottom_menu{height:42px !important;flex-wrap:nowrap !important;padding:0 4px;gap:0 !important;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;min-width:100%}
  .header_bottom_menu::-webkit-scrollbar{display:none}
  .header_bottom_menu_item{padding:0 14px !important;font-size:13px !important;flex-shrink:0}
  .header_bottom_menu_item[style*="margin-left:auto"]{margin-left:0 !important}

  /* 分类下拉:fixed 全屏 modal 形式 */
  .category_wrap{position:static !important}
  .category_wrap .category_dropdown{
    position:fixed !important;
    left:10px !important;
    right:10px !important;
    top:auto !important;
    bottom:auto !important;
    width:auto !important;
    max-width:none !important;
    max-height:70vh !important;
    border-radius:10px !important;
    padding:14px !important;
    z-index:99999 !important;
    box-shadow:0 8px 32px rgba(0,0,0,.25) !important;
  }
  /* 用 transform 从顶部下沉到屏幕合适位置 */
  .category_wrap .category_dropdown.show{
    top:calc(50vh - 30vh) !important;
  }
  .category_dropdown_item{padding:8px 14px !important;font-size:13px !important}

  /* 分类下拉打开时加个背景遮罩 */
  body.cat-open::before{
    content:"";position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99998;
  }

  /* 悬浮栏隐藏 */
  .bar{display:none !important}

  /* 主体 */
  .bg{padding:12px 0 20px !important;background:linear-gradient(180deg,#eaf0ff 0%,#f5f6fa 160px) !important}

  /* 顶部展示区 */
  .top{flex-direction:column !important;gap:10px !important;margin-bottom:16px !important;align-items:stretch !important}
  .carousel{height:120px !important;border-radius:10px !important;padding:16px !important;font-size:14px !important}
  .carousel > div{width:100%}
  .carousel > div > div:first-child{font-size:18px !important;line-height:1.3 !important;font-weight:bold}
  .carousel > div > div:last-child{font-size:11px !important;margin-top:6px !important;opacity:.85 !important}

  .user{width:100% !important;padding:14px !important;border-radius:10px !important}
  .user_top_img{width:52px !important;height:52px !important;border-width:2px !important}
  .user_top_name{font-size:13px !important;margin-top:6px !important}
  .user_login_btns{gap:8px !important;margin:10px 0 !important}
  .user_login_btns a{padding:9px !important;font-size:12px !important;border-radius:20px !important}
  .user_site_list{gap:8px !important;margin:10px 0 !important}
  .user_site_item{padding:10px !important;border-radius:8px !important}
  .user_site_item_title{font-size:12px !important}
  .user_site_item_desc{font-size:10px !important;margin-top:2px !important}
  .user_other{padding-top:10px !important}
  .user_other_item svg{width:18px !important;height:18px !important}
  .user_other_item_name{font-size:11px !important}

  /* 标题 */
  .title{margin:20px 0 12px !important}
  .title_top{font-size:17px !important}
  .title_bottom{font-size:10px !important;letter-spacing:1px !important;margin-top:2px !important}

  /* 分类tab */
  .nav_tabs_wrap{padding:5px 68px 5px 8px !important;margin-bottom:10px !important;min-height:38px !important;border-radius:6px !important}
  .nav_tabs{gap:4px !important;max-height:30px !important}
  .nav_tabs li{padding:5px 10px !important;font-size:12px !important;border-radius:14px !important}
  .nav_toggle{right:6px !important;padding:4px 8px !important;font-size:11px !important;border-radius:12px !important}

  /* 商品网格 */
  .goods{gap:8px !important}
  .goods_item{width:calc((100% - 8px) / 2) !important}
  .goods2{border-radius:8px !important;border-width:1px !important}
  .goods2:hover{transform:none !important;box-shadow:none !important}
  .goods2_pic{height:120px !important}
  .goods2_pic_img{height:120px !important}
  .goods2:hover .goods2_pic_img{transform:none !important}
  .goods2_tags{padding:6px 8px 0 !important}
  .goods2_tag{font-size:10px !important;padding:1px 5px !important;border-radius:2px !important}
  .goods2_tag.stock,.goods2_tag.off{margin-left:4px !important}
  .goods2_name{padding:5px 8px !important;min-height:36px !important}
  .goods2_name_text{font-size:12px !important;line-height:1.4 !important}
  .goods2_price{padding:2px 8px 10px !important}
  .goods2_price_new{font-size:14px !important}

  /* 下单面板 */
  .buy_panel{padding:14px 12px !important;margin-top:14px !important;border-radius:8px !important}
  .buy_panel h3{font-size:14px !important;padding-left:8px !important;margin-bottom:8px !important;border-left-width:3px !important}
  .buy_desc{padding:10px 12px !important;font-size:12px !important;line-height:1.6 !important;margin-bottom:14px !important;border-radius:6px !important}
  .buy_form_label{font-size:12px !important;margin-bottom:5px !important}
  .buy_form_input{padding:10px 12px !important;font-size:13px !important;border-radius:6px !important}
  .buy_form_msg{font-size:11px !important;margin-top:4px !important}
  .pay_types{gap:8px !important}
  .pay_type{padding:10px !important;font-size:13px !important;flex:1 1 calc(50% - 4px) !important;min-width:calc(50% - 4px) !important;max-width:calc(50% - 4px) !important;justify-content:center !important;border-radius:6px !important}
  .pay_type img{width:18px !important;height:18px !important}

  /* 底部支付栏 */
  .pay_bar{padding:8px 0 !important;padding-bottom:calc(8px + env(safe-area-inset-bottom)) !important}
  .pay_bar_inner{gap:8px !important;padding:0 10px !important;flex-wrap:nowrap !important}
  .pay_bar_name{display:none !important}
  .pay_bar_num{gap:4px !important;flex-shrink:0}
  .pay_bar_num .num_btn{width:26px !important;height:26px !important;font-size:14px !important;border-radius:4px !important}
  .pay_bar_num .num_input{width:36px !important;padding:3px !important;font-size:12px !important}
  .pay_bar_price{font-size:11px !important;flex:1;min-width:0;text-align:right;overflow:hidden;text-overflow:ellipsis}
  .pay_bar_price b{font-size:16px !important;margin-left:2px !important}
  .pay_bar_btn{padding:9px 18px !important;font-size:13px !important;border-radius:20px !important;letter-spacing:0 !important;flex-shrink:0}

  /* 服务承诺 */
  .feature{padding:14px 10px !important;gap:8px !important;margin:16px auto !important;border-radius:10px !important;justify-content:space-between !important}
  .feature_item{flex:1 1 calc(50% - 4px) !important;max-width:calc(50% - 4px) !important;padding:6px !important;gap:8px !important;background:#f7f9ff;border-radius:8px}
  .feature_icon{width:32px !important;height:32px !important;font-size:16px !important}
  .feature_item_desc{font-size:11px !important;line-height:1.4}

  /* 页脚 */
  .footer{padding:16px 0 !important;font-size:11px !important;line-height:1.7 !important;margin-top:14px !important}

  /* 订单查询弹窗 */
  .q_wrap{padding:12px !important}
  .q_row{flex-direction:column !important;gap:8px !important;margin-bottom:12px !important}
  .q_row input{width:100% !important;padding:10px 12px !important;font-size:13px !important;border-radius:6px !important}
  .q_row button{width:100% !important;padding:11px !important;font-size:13px !important;border-radius:6px !important}
  .q_tip{font-size:11px !important;line-height:1.5 !important;margin-bottom:10px !important}
  .q_list_box{max-height:55vh !important}
  .q_item{padding:10px 12px !important;border-radius:6px !important}
  .q_oid{font-size:11px !important;padding:2px 8px !important}
  .q_status{font-size:11px !important;padding:2px 8px !important}
  .q_name{font-size:12px !important}
  .q_time{font-size:11px !important}

  /* ★ 关键:layer 弹窗(公告等)手机端强制加宽 */
  .layui-layer{
    width:94vw !important;
    max-width:94vw !important;
    left:3vw !important;
    right:3vw !important;
    margin:0 !important;
  }
  .layui-layer-page .layui-layer-content{
    max-height:75vh !important;
    overflow-y:auto !important;
    width:100% !important;
  }
  .layui-layer-page .layui-layer-content > div{
    max-width:100% !important;
    box-sizing:border-box !important;
    word-break:break-all !important;
  }
  .layui-layer-title{font-size:14px !important;padding:0 40px 0 15px !important;height:38px !important;line-height:38px !important}
  .layui-layer-btn{padding:8px 15px 12px !important;text-align:center !important}
  .layui-layer-btn a{margin:0 5px !important;font-size:13px !important;padding:0 18px !important}
  .layui-layer-iframe iframe{max-width:100% !important}
}


/* ================ 小屏 (≤480px) ================ */
@media (max-width:480px){
  body{font-size:13px}
  .carousel{height:150px}
  .carousel div div{font-size:17px !important}

  .goods_item{width:calc((100% - 8px) / 2) !important}
  .goods2_pic{height:110px !important}
  .goods2_pic_img{height:110px !important}
  .goods2_name_text{font-size:12px !important}
  .goods2_price_new{font-size:13px !important}
  .logo-text{font-size:14px !important;max-width:70px}
}


/* ================ 超小屏 (≤360px) ================ */
@media (max-width:360px){
  .header_bottom_menu_item{padding:6px 8px !important;font-size:11px !important}
  .logo-text{font-size:13px !important;max-width:60px}
  .title_top{font-size:16px !important}
  .goods2_pic,.goods2_pic_img{height:100px !important}
  .pay_bar_num .num_input{width:32px !important}
  .pay_bar_btn{padding:8px 14px !important;font-size:12px !important}
  .pay_type{padding:8px 10px !important;font-size:12px !important}
}
/* ==================================================== */
/* ==  移动端·终极修复(放CSS最末尾)                  == */
/* ==================================================== */
@media (max-width:768px){
  
  /* ===== 1. 分类tab:横向滚动方案 ===== */
  #nav_tabs_wrap{
    padding:6px 8px !important;
    min-height:auto !important;
    overflow:hidden !important;
    position:relative !important;
  }
  #nav_tabs{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    max-height:none !important;
    gap:6px !important;
    padding:2px 40px 2px 2px !important;
    scroll-behavior:smooth;
    /* 右侧渐变提示还有内容 */
    mask-image:linear-gradient(to right,#000 90%,transparent 100%);
    -webkit-mask-image:linear-gradient(to right,#000 90%,transparent 100%);
  }
  #nav_tabs::-webkit-scrollbar{display:none !important}
  #nav_tabs li{
    flex-shrink:0 !important;
    white-space:nowrap !important;
    padding:6px 12px !important;
    font-size:12px !important;
  }
  
  /* "展开全部"按钮改成"更多"图标,右侧固定 */
  #nav_tabs_wrap .nav_toggle,
  .nav_toggle{
    position:absolute !important;
    right:6px !important;
    top:50%;
    transform:translateY(-50%) !important;
    padding:6px 10px !important;
    font-size:11px !important;
    letter-spacing:0 !important;
    z-index:5;
    background:#fff !important;
    box-shadow:-8px 0 12px rgba(255,255,255,.9);
  }
  #nav_tabs_wrap .nav_toggle .nav_toggle_txt{
    display:none !important;
  }
  #nav_tabs_wrap .nav_toggle::before{
    content:"分类";
    margin-right:2px;
  }
  #nav_tabs_wrap .nav_toggle .arrow{
    margin-left:0 !important;
  }
  /* 展开状态:显示为下拉全屏面板 */
  #nav_tabs_wrap.expanded{
    overflow:visible !important;
    z-index:9999;
  }
  #nav_tabs_wrap.expanded #nav_tabs{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    top:auto !important;
    max-height:65vh !important;
    background:#fff !important;
    z-index:99999 !important;
    padding:30px 14px 24px !important;
    flex-wrap:wrap !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-shadow:0 -10px 40px rgba(0,0,0,.35) !important;
    border-radius:16px 16px 0 0 !important;
    mask-image:none !important;
    -webkit-mask-image:none !important;
  }
  #nav_tabs_wrap.expanded #nav_tabs::before{
    content:"";
    position:absolute;
    top:10px;
    left:50%;
    transform:translateX(-50%);
    width:40px;
    height:4px;
    background:#d0d0d0;
    border-radius:2px;
  }
  #nav_tabs_wrap.expanded #nav_tabs li{
    padding:9px 14px !important;
    font-size:13px !important;
  }
  /* 展开时加半透明遮罩 */
  #nav_tabs_wrap.expanded::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:99998;
  }
  
  /* ===== 2. 顶部"商品分类"下拉:底部弹出式 ===== */
  .header_bottom,
  .header_bottom_menu,
  .header_bottom_menu_item.category_wrap,
  .category_wrap{
    overflow:visible !important;
  }
  .category_wrap{position:static !important}
  
  #cat_dropdown{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:0 !important;
    width:100vw !important;
    max-width:100vw !important;
    max-height:75vh !important;
    padding:24px 14px 30px !important;
    margin:0 !important;
    z-index:999999 !important;
    border-radius:16px 16px 0 0 !important;
    box-shadow:0 -10px 40px rgba(0,0,0,.4) !important;
    background:#fff !important;
    overflow-y:auto !important;
    transform:none !important;
    -webkit-overflow-scrolling:touch;
  }
  #cat_dropdown.show{display:block !important}
  #cat_dropdown::before{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    transform:translateX(-50%);
    width:40px;
    height:4px;
    background:#d0d0d0;
    border-radius:2px;
  }
  #cat_dropdown .category_dropdown_item{
    padding:12px 16px !important;
    font-size:14px !important;
    margin:3px !important;
    display:inline-block;
  }
  #cat_dropdown .category_dropdown_grid{
    padding-top:12px !important;
    gap:6px !important;
  }
  
  /* ===== 3. layer 公告弹窗强制加宽 ===== */
  .layui-layer{
    width:94vw !important;
    max-width:94vw !important;
    left:3vw !important;
    right:3vw !important;
    margin-left:0 !important;
  }
  .layui-layer-page .layui-layer-content{
    max-height:75vh !important;
    overflow-y:auto !important;
    width:100% !important;
    box-sizing:border-box !important;
    -webkit-overflow-scrolling:touch;
  }
  .layui-layer-page .layui-layer-content > div{
    max-width:100% !important;
    box-sizing:border-box !important;
    word-break:break-all !important;
    padding:16px !important;
    line-height:1.7 !important;
  }
  .layui-layer-title{
    font-size:14px !important;
    padding:0 40px 0 15px !important;
    height:40px !important;
    line-height:40px !important;
  }
  .layui-layer-btn{
    padding:10px 15px 14px !important;
    text-align:center !important;
  }
  .layui-layer-btn a{
    margin:0 6px !important;
    font-size:13px !important;
    padding:0 20px !important;
    height:32px !important;
    line-height:30px !important;
  }
  .layui-layer-iframe{
    width:94vw !important;
    max-width:94vw !important;
  }
  .layui-layer-iframe iframe{
    max-width:100% !important;
    width:100% !important;
  }
}
