/* 邻帮 · 手机版自适应
   依赖 device.js 给 <html> 添加的 is-mobile / is-ios / is-android / is-wechat 标记。
   主要处理：刘海安全区、iOS 输入框放大、触控尺寸、小程序内字体。 */

/* iOS 聚焦输入框会放大页面：手机端输入框统一 16px 起 */
html.is-ios input:not([type="checkbox"]):not([type="radio"]),
html.is-ios select,
html.is-ios textarea {
  font-size: 16px;
}

/* 触控反馈 */
html.is-mobile body {
  -webkit-tap-highlight-color: transparent;
}
html.is-ios .btn:hover,
html.is-ios .nc-btn:hover,
html.is-ios .as-btn:hover,
html.is-ios .mini:hover {
  transform: none;
}

/* 刘海屏安全区 */
@media (max-width: 860px) {
  .site-head {
    padding-top: env(safe-area-inset-top);
  }
  .mobile-bar {
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
  }
  .wechat-layer .wechat-card {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  body {
    min-height: calc(var(--vh, 1vh) * 100);
  }

  /* 微信内置浏览器：底部横条留白 */
  html.is-wechat .mobile-bar {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  /* 广告屏在窄屏上更紧凑 */
  .as-title { font-size: 17px; }
  .as-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .as-quote {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .as-cta .as-btn { flex: 1 1 auto; }
}

/* 小屏（iPhone SE / 老安卓） */
@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  .as-slide { padding: 12px 11px 12px; }
  .as-avatar { width: 44px; height: 44px; font-size: 20px; }
  .as-btn { height: 32px; padding: 0 9px; font-size: 10px; }
  .hero h1, .page-hero h1 { letter-spacing: -1px; }
  .mobile-bar .mb-main { padding: 0 12px; font-size: 12px; }
}

/* 大屏手机 / 折叠屏：内容略放宽 */
@media (min-width: 430px) and (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
}

/* 底部合规链接 */
.legal-links{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px 0;font-size:10px;color:#8aa39c}
.legal-links a{color:#6d847c;text-decoration:none}
.legal-links a:hover{color:var(--teal)}
