/* 51dianzi mobile home layout fix 20261126 — additive, scoped to .hp-root, phones only */
@media (max-width:430px){
  /* 1. 品牌区：手机端不再显示大 logo（导航栏已有 logo；它延迟加载会造成版面跳动），改为居中两行 */
  .hp-root .home-search-brand{display:block;text-align:center}
  .hp-root .home-search-brand-logo{display:none!important}
  .hp-root .home-search-brand-copy{width:fit-content;max-width:100%;min-width:0;margin:0 auto;text-align:center}
  .hp-root .home-search-brand-primary{display:flex;justify-content:center;align-items:baseline;gap:6px;white-space:nowrap;margin:0;font-size:clamp(13px,4.1vw,15.75px)}
  .hp-root .home-search-brand-secondary{white-space:nowrap;text-align:center;margin:3px 0 0;font-size:clamp(11px,3.3vw,13.5px)}
  /* 2. 五个搜索标签等分一行，不被截断 */
  .hp-root .hp-search-tabs{display:flex;overflow-x:auto;scrollbar-width:none}
  .hp-root .hp-search-tabs::-webkit-scrollbar{display:none}
  .hp-root .hp-search-tab{flex:1 1 0;min-width:0;padding-left:2px;padding-right:2px;white-space:nowrap;text-align:center;justify-content:center;font-size:clamp(12.5px,3.7vw,14px)}
  /* 3. 搜索框：文字不再钻到按钮下面 */
  .hp-root .hp-search-wrap input{padding-right:96px;text-overflow:ellipsis}
  .hp-root .hp-search-wrap input::placeholder{font-size:14px;text-overflow:ellipsis}
  /* 4. 顶部找料广告条播放期间，隐藏重复的“供应商免费入驻”条；广告条收起后恢复 */
  .hp-root .home-slogan-banner ~ aside{display:none}
}
@media (max-width:380px){
  /* 入驻条在窄屏去掉小图标，让标题完整显示 */
  .hp-root aside span.h-8.w-8{display:none}
}
@media (max-width:350px){
  /* 5. 超窄屏：导航栏强制一行 */
  .hp-root .mall-nav{flex-wrap:nowrap}
  .hp-root .mn-right{min-width:0;gap:2px;flex:1 1 auto;justify-content:flex-end}
  .hp-root .mn-right>*{min-width:0}
  .hp-root .company-navigation-trigger{padding-left:4px;padding-right:4px}
  .hp-root .company-navigation-trigger svg{display:none}
  .hp-root .mn-service,.hp-root .mn-cart{width:30px}
  .hp-root .mn-message{width:38px}
}
@media (max-width:430px){
  /* 6. 轮播切换：先淡出旧页，再淡入新页，避免两页文字叠在一起 */
  .hp-root .homepage-banner-slide{transition:opacity .18s ease!important}
  .hp-root .homepage-banner-slide.is-active{transition:opacity .22s ease .18s!important}
}
