/* shared inline-style extract nb-mobile-fix v20261103 */
html,body{overflow-x:hidden;overflow-x:clip;}
@media (max-width:767.98px){
  .sp-mbar,.sp-mbar-space,.sp-float-wa,#whatsapp-float,#contact-widget-auto{display:none !important;}
  /* 首页 hero：小屏改为自适应高度 + Scroll Down 箭头改为流内，杜绝与 Get a Quote 重叠 */
  #home{height:auto !important;min-height:100svh;flex-direction:column;justify-content:flex-start;padding-top:72px !important;padding-bottom:calc(84px + env(safe-area-inset-bottom)) !important;}
  #home>div.container{margin:auto 0;} /* 安全居中：内容不超屏时垂直居中，超屏时从 header 下方开始、不再钻到 header 底下 */
  #home>div.animate-bounce{position:static !important;width:100% !important;margin-top:28px;padding-bottom:0;}
  html,body{overflow-x:hidden;}
  img,video,iframe{max-width:100% !important;height:auto !important;}
  .sp-prose table{display:block;width:100% !important;overflow-x:auto;-webkit-overflow-scrolling:touch;}
  h1,h2,h3,h4,h5,p,li,td,th,a,span{overflow-wrap:break-word;word-break:break-word;}
  .sp-prose pre,.sp-prose code{overflow-x:auto;max-width:100%;}
  #mobile-menu{max-height:calc(100dvh - var(--nb-nav-h,64px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;width:100% !important;}
  #mobile-lang-toggle{display:none !important;}
  #nb-lang-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:38px;padding:0 10px;margin-left:auto;margin-right:4px;border-radius:9px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);color:#fff;font-size:13px;font-weight:600;cursor:pointer;flex:0 0 auto;}
  #nb-lang-btn i{font-size:12px;opacity:.9;}
  #mobile-lang-drawer{position:fixed !important;top:var(--nb-nav-h,64px) !important;left:0 !important;right:0 !important;width:100% !important;max-width:100% !important;height:auto !important;max-height:calc(100dvh - var(--nb-nav-h,64px)) !important;background:#a82646 !important;border:none !important;border-radius:0 0 14px 14px;box-shadow:0 24px 48px -12px rgba(0,0,0,.55) !important;overflow:hidden;}
  #mobile-lang-drawer > div{height:auto;max-height:calc(100dvh - var(--nb-nav-h,64px));overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px !important;}
  #mobile-lang-drawer .flex.flex-col{display:grid !important;grid-template-columns:1fr 1fr;gap:2px;align-items:stretch;}
  #mobile-lang-drawer a{display:flex !important;align-items:center;justify-content:space-between;gap:6px;padding:10px 12px !important;font-size:14px !important;line-height:1.45;text-align:left;border-radius:8px;}
  #mobile-lang-drawer a:hover,#mobile-lang-drawer a:active{background:rgba(255,255,255,.12);}
  #mobile-lang-drawer a.nb-cur{background:rgba(255,255,255,.2);font-weight:700;}
  #mobile-lang-drawer a.nb-cur::after{content:"\2713";font-size:12px;opacity:.95;}
  #back-to-top{display:none !important;}
  #nb-sticky-contact{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;background:#7b1c33;border-top:1px solid rgba(255,255,255,.16);padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -6px 18px -8px rgba(0,0,0,.45);}
  #nb-sticky-contact a,#nb-sticky-contact button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:7px 2px;color:#fff;font-size:11.5px;line-height:1.15;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:none;border:none;cursor:pointer;font-family:inherit;}
  #nb-sticky-contact a i,#nb-sticky-contact button i{font-size:17px;}
  #nb-sticky-contact a.nb-wa{background:#25d366;}
  #nb-sticky-contact a.nb-wa:hover{background:#1fb855;}
  #nb-sticky-contact a.nb-quote{background:#a82646;}
  footer{padding-bottom:78px !important;}
}
@media (min-width:768px) and (max-width:1023.98px){
  /* 平板：桌面菜单过宽会溢出，改用移动导航 */
  nav .hidden.md\:flex{display:none !important;}
  #menuToggle{display:flex !important;}
  #nb-lang-btn{display:inline-flex !important;}
  #mobile-lang-toggle{display:none !important;}
  #mobile-menu{max-height:calc(100dvh - var(--nb-nav-h,64px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;width:100% !important;}
  #mobile-lang-drawer{position:fixed !important;top:var(--nb-nav-h,64px) !important;left:0 !important;right:0 !important;width:100% !important;max-width:100% !important;height:auto !important;max-height:calc(100dvh - var(--nb-nav-h,64px)) !important;background:#a82646 !important;border:none !important;border-radius:0 0 14px 14px;box-shadow:0 24px 48px -12px rgba(0,0,0,.55) !important;overflow:hidden;}
  #mobile-lang-drawer > div{height:auto;max-height:calc(100dvh - var(--nb-nav-h,64px));overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px !important;}
  #mobile-lang-drawer .flex.flex-col{display:grid !important;grid-template-columns:1fr 1fr;gap:2px;align-items:stretch;}
  #mobile-lang-drawer a{display:flex !important;align-items:center;justify-content:space-between;gap:6px;padding:10px 12px !important;font-size:14px !important;line-height:1.45;text-align:left;border-radius:8px;}
  #mobile-lang-drawer a.nb-cur{background:rgba(255,255,255,.2);font-weight:700;}
  #mobile-lang-drawer a.nb-cur::after{content:"\2713";font-size:12px;opacity:.95;}
  #nb-sticky-contact{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;background:#7b1c33;border-top:1px solid rgba(255,255,255,.16);padding-bottom:env(safe-area-inset-bottom);}
  #nb-sticky-contact a,#nb-sticky-contact button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:7px 2px;color:#fff;font-size:11.5px;line-height:1.15;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:none;border:none;cursor:pointer;font-family:inherit;}
  #nb-sticky-contact a i,#nb-sticky-contact button i{font-size:17px;}
  #nb-sticky-contact a.nb-wa{background:#25d366;}
  #nb-sticky-contact a.nb-quote{background:#a82646;}
  .sp-mbar,.sp-mbar-space,.sp-float-wa,#whatsapp-float,#contact-widget-auto{display:none !important;}
  #back-to-top{display:none !important;}
  #home{height:auto !important;min-height:100svh;flex-direction:column;justify-content:flex-start;padding-top:72px !important;padding-bottom:calc(84px + env(safe-area-inset-bottom)) !important;}
  #home>div.container{margin:auto 0;} /* 安全居中：内容不超屏时垂直居中，超屏时从 header 下方开始、不再钻到 header 底下 */
  #home>div.animate-bounce{position:static !important;width:100% !important;margin-top:28px;padding-bottom:0;}
  footer{padding-bottom:78px !important;}
}
@media (min-width:1024px){
  #nb-sticky-contact{display:none !important;}
  #nb-lang-btn{display:none !important;}
  #mobile-lang-drawer{display:none !important;}
}

/* v20261103c — 小屏头部收紧：logo 定高不随屏宽膨胀，语言/菜单按钮缩小 */
@media (max-width:767.98px){
  #navbar > .container{padding:6px 12px !important;}
  #navbar a > img{height:30px !important;width:auto !important;max-width:38vw !important;object-fit:contain;}
  #nb-lang-btn{height:34px !important;padding:0 8px !important;font-size:12px !important;gap:4px !important;border-radius:8px !important;margin-right:6px !important;}
  #nb-lang-btn i{font-size:11px !important;}
  #menuToggle{width:44px !important;height:44px !important;min-width:44px !important;padding:0 !important;font-size:24px !important;line-height:1 !important;}
}

/* v20261103e — 底栏两格均分 50%，返回顶部改为右侧悬浮圆钮 */
#nb-sticky-contact .nb-quote,
#nb-sticky-contact .nb-wa{flex:1 1 50% !important;max-width:50%;}
@media (max-width:1023.98px){
  .nb-top{position:fixed;right:14px;bottom:calc(59px + env(safe-area-inset-bottom));width:44px;height:44px;
    display:none;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;
    background:rgba(168,38,70,.94);color:#fff;font-size:16px;line-height:1;cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,.28);z-index:9995;-webkit-tap-highlight-color:transparent;}
  .nb-top:active{transform:scale(.94);}
  .nb-top span{display:none;}
}
@media (min-width:1024px){.nb-top{display:none !important;}}
