/* doubao mobile fine v5 - holymoissan 独立样式表 */
@media (max-width:760px){
  h1,h2,h3{max-width:100%!important;overflow-wrap:break-word!important}
  .price,.product-price,.prod-price{font-size:14px!important;line-height:1.4!important}
  select,textarea,input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]){min-height:40px!important;box-sizing:border-box}
  html body div[class*="__cell-inner"][class], html body div[class*="__cell-inner"][class].__cell-inner{
    background:rgba(24,18,29,.74)!important; border-radius:12px!important; padding:14px 14px 16px!important;
  }
  html body div[class*="__cell-inner"][class] p, html body div[class*="__cell-inner"][class] span,
  html body div[class*="__cell-inner"][class] em, html body div[class*="__cell-inner"][class] strong{
    color:#fff!important; -webkit-text-fill-color:#fff!important; text-shadow:0 1px 3px rgba(0,0,0,.45)!important;
    white-space:normal!important; word-break:break-word!important; overflow-wrap:anywhere!important;
    font-size:13px!important; line-height:1.55!important; max-width:100%!important;
  }
  html body div[class*="__cell-inner"][class] div[class*="__number"][class]{font-size:23px!important; line-height:1.25!important; white-space:nowrap!important}
  .__cell-inner img{max-width:100%!important}
  .floating-contact{right:8px!important; bottom:calc(16px + env(safe-area-inset-bottom))!important}
  .floating-contact a{width:44px!important; height:44px!important; margin-left:auto!important}
  /* 压掉模板自带的 WhatsApp 三连浮标，只留 WhatsApp + 邮箱 */
  html body div[class*="__widgets"][class*="--9"], html body div[class*="__widgets--9"]{display:none!important}
  html body .__widgets--9{display:none!important}
}

/* ==========================================================================
   移动端导航抽屉（2026-11-26）
   模板把点击事件绑在 .__nav_mobile-icon_menu 这个 <svg> 上，但 svg 没有 width，
   实际渲染成 0×24，外层容器只剩 8px 宽 —— 手指几乎点不到；
   抽屉 .active 后 _inner 仍停在 translateX(100%)，看上去“点了没反应”。
   这里把图标撑成 44×44 可点区，并强制抽屉滑入。
   ========================================================================== */
@media (max-width:760px){
  .__nav_mobile{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin-left:auto!important;
    cursor:pointer;
  }
  .__nav_mobile-icon_menu{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    padding:10px;
    box-sizing:border-box;
    display:block!important;
    cursor:pointer;
  }
  /* 抽屉：滑入、铺满、可滚动 */
  .__nav_mobile-dialog.active .__nav_mobile-dialog_inner{transition:none!important;
    transform:translateX(0)!important;
    -webkit-transform:translateX(0)!important;
  }
  .__nav_mobile-dialog_inner{
    max-width:100%!important;width:100%!important;
    box-sizing:border-box;
    box-shadow:0 0 40px rgba(0,0,0,.25);
  }
  .__nav_mobile-dialog.active::before{z-index:998!important}
  .__nav_mobile-dialog_inner{z-index:999!important}
  .__nav_mobile-header{
    position:sticky!important;
    top:0;
    z-index:3;
    background:#fff;
  }
  .__nav_mobile-icon_close{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    padding:10px;
    box-sizing:border-box;
    margin-right:-10px;
    display:block!important;
  }
  .__nav_mobile-menu_inner{
    height:calc(100dvh - 112px)!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding-bottom:40px!important;
  }
  /* 抽屉打开时锁页面滚动并隐藏悬浮联系按钮（用 :has 兼容已支持浏览器） */
  body:has(.__nav_mobile-dialog.active){overflow:hidden!important}
  body:has(.__nav_mobile-dialog.active) .floating-contact,
  body:has(.__nav_mobile-dialog.active) .__widgets{display:none!important}
}
