<!-- Mobile Float Ad: styles START -->
<style>
  /* 默认隐藏，防止闪烁 */
  .mobile-float-ad { display: none; }

  /* 仅手机端（窄屏 + 触摸）显示 */
  @media (max-width: 768px) and (pointer: coarse) {
    .mobile-float-ad { display: block; }
  }
  /* 桌面/大屏强制隐藏（保险） */
  @media (min-width: 769px) {
    .mobile-float-ad { display: none !important; }
  }

  .mobile-float-ad {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(255,255,255,.98);
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  }
  .mobile-float-ad .ad-inner{
    position: relative;
    max-width: 640px;   /* 限制超宽机型 */
    margin: 0 auto;
  }
  .mobile-float-ad .ad-link,
  .mobile-float-ad img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .mobile-float-ad .ad-close{
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    border: 0; border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff; line-height: 24px;
    font-size: 16px; text-align: center;
    cursor: pointer;
  }
</style>
<!-- Mobile Float Ad: styles END -->