/* 底部导航（BOSS 2026-10-31）
   BOSS 原话：「底部导航栏中间的那个图标就是网站logo，点击就是返回首页，中间的logo图标
   大于其他图标……需要这个图标可以自定义上传，带后台的上传入口」「只针对目前的移动端」。
   → 本文件只服务 ≤767.98px：PC 端 #tabbar 恒为 display:none，这里没有任何非手机断点的规则。
   → 中间那格是网站 Logo（后台「Logo」可换图），比其余 4 格大一圈并向上抬起，点它回首页。 */
#tabbar{display:none}

@media (max-width:767.98px){
  /* 导航固定在底部：给页面留出等高的下边距，否则最后一行卡片会被压住 */
  body.tabbar-on{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  body.tabbar-on .fabs{bottom:calc(64px + env(safe-area-inset-bottom,0px))}

  body.tabbar-on #tabbar{
    display:flex;align-items:flex-end;justify-content:space-between;
    position:fixed;left:0;right:0;bottom:0;z-index:46;
    /* 2026-11-01 参照盼之：底栏压到 50px、不要投影，只留一条极淡的顶线 */
    height:calc(50px + env(safe-area-inset-bottom,0px));
    padding:0 6px env(safe-area-inset-bottom,0px);
    background:rgba(255,255,255,.97);
    -webkit-backdrop-filter:saturate(180%) blur(12px);
    backdrop-filter:saturate(180%) blur(12px);
    border-top:1px solid rgba(0,0,0,.06);
    box-shadow:none;
  }

  .tb-item{
    flex:1 1 0;min-width:0;height:50px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
    background:none;border:0;padding:0;margin:0;
    color:#888888;text-decoration:none;
    font-size:12px;line-height:14px;font-family:inherit;
    -webkit-tap-highlight-color:transparent;
  }
  .tb-item svg{width:24px;height:24px;display:block}
  .tb-item > span{
    display:block;max-width:100%;min-width:0;height:14px;flex:none;
    white-space:nowrap;overflow:hidden;text-overflow:clip;
  }
  /* BOSS 2026-11-01「点击哪个哪个就变成深黑色」：选中项由品牌红改深黑，并加粗一档 */
  /* 2026-11-01 对齐 jiaoyimao：选中 12px/600/#111，未选 12px/400/#888 */
  .tb-item.is-on{color:#111111;font-weight:600}
  .tb-item:active{opacity:.55}

  /* 中间：网站 Logo。56px 的圆底 + 向上抬起 14px，比两侧 22px 的图标明显大一档 */
  .tb-logo{
    position:relative;
    flex:1 1 0;min-width:0;height:50px;
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
    text-decoration:none;-webkit-tap-highlight-color:transparent;
  }
  /* BOSS 2026-11-01「底下加文字，查编号」：和两侧 tab 标签同字号同色 */
  .tb-logo__cap{
    margin-top:1px;font-size:12px;font-weight:400;line-height:14px;
    color:#282a2d;letter-spacing:normal;white-space:nowrap;
    text-decoration:none;
  }
  .tb-logo img{
    width:48px;height:48px;margin-top:-17px;box-sizing:border-box;
    padding:1.5px;border-radius:50%;
    background:#fff;border:1px solid rgba(0,0,0,.08);
    box-shadow:0 3px 10px rgba(20,24,60,.10);
    object-fit:contain;
    scale:1;
    /* BOSS 2026-11-01「只要 A 按压回弹 + D 待机微动，去掉 B 光圈；D 改 3 秒一轮」：
       缩放走 scale、浮动走 translate，两个独立属性并行，不会互相覆盖 */
    transition:scale .42s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease;
    animation:tb-float 3s cubic-bezier(.45,0,.55,1) infinite;
  }
  /* A 按压：缩到 0.90，松手按回弹曲线弹回 1（带过冲） */
  .tb-logo:active img{
    scale:.90;
    transition:scale .12s ease,box-shadow .2s ease;
    box-shadow:0 6px 16px rgba(20,24,60,.16);
  }
  /* 触屏不会在按住期间给 :active（实测按住 160ms 时 scale 仍是 1），
     所以手指按下靠 JS 加 .is-hit 顶上，松手去掉 .is-hit */
  .tb-logo.is-hit img{
    scale:.90;
    transition:scale .12s ease,box-shadow .2s ease;
    box-shadow:0 6px 16px rgba(20,24,60,.16);
  }
  /* D 待机：每 3 秒抬 2px 再落回，其余时间静止 */
  @keyframes tb-float{
    0%,90%,100%{translate:0 0}
    95%{translate:0 -2px}
  }
  /* 系统开了「减少动态效果」就全部关掉 */
  @media (prefers-reduced-motion: reduce){
    .tb-logo img{animation:none;transition:none}
    .tb-logo:active img{scale:1}
  }

  /* 还没有页面的两格（成品号 / 收藏）：点了就地提示，不跳页、不发请求 */
  .tb-toast{
    position:absolute;left:50%;bottom:calc(66px + env(safe-area-inset-bottom,0px));
    transform:translate(-50%,6px);max-width:calc(100vw - 40px);
    padding:8px 14px;border-radius:999px;
    background:rgba(20,24,60,.92);color:#fff;font-size:12px;line-height:1.4;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;
  }
  .tb-toast.is-on{opacity:1;transform:translate(-50%,0)}
}

/* BOSS 2026-11-01：底栏第 4 格「联系我们」→ 底部面板（安装到桌面 / 收藏本站 / 联系客服）
   弹层本身复用 .m-mask / .m-sheet（style.css 里已有滑入与圆角），这里只排三行与展开区。 */
@media (max-width:767.98px){
  .ml-rows{display:flex;flex-direction:column;gap:10px}
  .ml-rows .ml-row{display:flex;align-items:center;gap:12px;width:100%;height:56px;box-sizing:border-box;
    padding:0 14px;border:0;border-radius:14px;background:#f7f8fa;font-family:inherit;text-align:left;
    -webkit-tap-highlight-color:transparent}
  .ml-rows .ml-row[hidden]{display:none}
  .ml-rows .ml-row:active{background:#f0f2f5}
  .ml-row__ic{flex:none;width:34px;height:34px;border-radius:11px;background:#fff;color:#e01b28;
    display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #eceef1}
  .ml-row__tx{display:flex;flex-direction:column;gap:2px;min-width:0}
  .ml-row__tx b{font-size:14.5px;font-weight:600;color:#111214;line-height:1.2}
  .ml-row__tx i{font-style:normal;font-size:11.5px;color:#8d939b;line-height:1.2;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ml-row__go{margin-left:auto;color:#c6cbd2;font-size:19px;line-height:1}
  .ml-more{margin-top:14px;padding-top:14px;border-top:1px solid #f0f2f5}
  .ml-more[hidden]{display:none}
  .ml-step{margin:0;padding-left:20px;font-size:12.5px;line-height:1.9;color:#5b6274}
  .ml-step li{margin:0}
  .ml-qr{display:flex;justify-content:center;padding:2px 0 12px}
  .ml-qr img{width:168px;height:168px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px #eceef1}
  .ml-cs{display:flex;justify-content:center;padding:2px 0 10px}
  .ml-cs img{width:180px;height:180px;object-fit:contain;border-radius:12px;background:#fff;
    box-shadow:inset 0 0 0 1px #eceef1}
  .ml-cs-tx{margin:0;font-size:13px;line-height:1.75;color:#3c4149;text-align:center;
    white-space:pre-wrap;word-break:break-all}
  .ml-btn{display:block;width:100%;height:42px;border:0;border-radius:12px;background:#e01b28;color:#fff;
    font-size:14px;font-weight:600;font-family:inherit;-webkit-tap-highlight-color:transparent}
  .ml-btn:active{opacity:.86}
  .ml-btn--top{margin-bottom:10px}
  .ml-note{margin:8px 0 0;font-size:11.5px;line-height:1.6;color:#9aa0a8;text-align:center;word-break:break-all}
}

/* 下拉刷新指示块（public/pull.js，BOSS 2026-11-01：装成桌面 App 后下拉不会刷新）
   只在 ≤767.98px 出现；平时 opacity 0、pointer-events none，不参与布局。 */
#ptr{
  display:none;position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 8px);
  transform:translate(-50%,0);z-index:120;align-items:center;gap:8px;
  padding:7px 14px 7px 7px;border-radius:999px;background:#fff;
  box-shadow:0 6px 22px rgba(20,24,34,.16);
  font-size:13px;color:#5b6274;opacity:0;pointer-events:none;
  transition:opacity .16s ease,transform .16s ease;
}
@media (max-width:767.98px){ #ptr{display:flex} }
#ptr .ptr__ring{
  width:26px;height:26px;border-radius:50%;background:#fdeaea;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
}
#ptr .ptr__arrow{font-style:normal;line-height:1;font-size:14px;color:#e01b28;transition:transform .2s ease}
#ptr.is-busy .ptr__arrow{animation:ptr-spin .9s linear infinite}
@keyframes ptr-spin{to{transform:rotate(360deg)}}
