/* ================================================================
   2026-09-23 全站可读字号统一层
   目的：撤销早期 APP “极限压缩”字号，保持手机端 14–16px 主体文字、
   16px 表单输入、12px 以上辅助文字，并适当增大底部导航和卡片触控区。
   本文件必须放在页面 </head> 前最后加载，以覆盖旧页面内联紧凑样式。
   ================================================================ */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:15px!important;line-height:1.55}
button,.btn,[class*="-btn"],input,select,textarea{font-family:inherit}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{font-size:15px!important}
small,.small,.form-text{font-size:13px!important;line-height:1.55!important}

@media(max-width:900px){
  body{font-size:16px!important;line-height:1.6!important}
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{font-size:16px!important}
  label,.form-label{font-size:14px!important}
  small,.small,.form-text,.muted{font-size:13px!important;line-height:1.55!important}
  button,.btn,.submit-btn,.btn-submit,.btn-primary,.btn-enter,.unlock-btn,.pay-btn,.login-btn,button[type="submit"]{font-size:14px!important;min-height:42px!important}

  .top-nav{min-height:48px!important;font-size:16px!important}
  .search-input,.search-form input,.market-search input[type="text"],.market-search input[name="keyword"]{font-size:16px!important}
  .merchant-name,.merchant-title,.showcase-name{font-size:17px!important}
  .merchant-desc,.showcase-desc{font-size:13px!important;line-height:1.55!important}
  .online-bar{font-size:13px!important}
  .post-title,.rel-title,.post-title-wrap,.market-post-title{font-size:16px!important;line-height:1.45!important}
  .tag,.post-tag,.market-post-tags span{font-size:11.5px!important;min-height:22px!important;padding:3px 7px!important}
  .post-meta,.meta-left span,.market-post-bottom,.market-post-bottom .market-post-time,.market-post-metrics,.market-post-time{font-size:11.5px!important;line-height:1.4!important}
  .section-header{font-size:16px!important}
  .showcase-actions a,.switch-btn,.search-submit{font-size:13px!important}
  .home-manager-title span,.home-online-note{font-size:12px!important}
  .home-manager-tab{font-size:12px!important}

  .client-main-nav,.bottom-nav,.bottom-bar,.bottom,.action-bar{height:calc(62px + var(--client-safe-bottom,env(safe-area-inset-bottom,0px)))!important}
  .client-main-nav .client-nav-item,.client-nav-item,.nav-item,.b-nav,.nav{height:62px!important;font-size:12px!important;gap:4px!important}
  .client-main-nav .client-nav-item i,.client-nav-item i,.nav-item i,.b-nav i{font-size:20px!important}
  body.has-client-main-nav{padding-bottom:calc(72px + var(--client-safe-bottom,env(safe-area-inset-bottom,0px)))!important}
  html.client-wechat:not(.client-app-shell) body.has-client-main-nav{padding-bottom:70px!important}

  html.client-app-shell body{font-size:16px!important}
  html.client-app-shell .client-app-page-title{font-size:19px!important;min-height:50px!important}
  html.client-app-shell .client-app-site-card{min-height:58px!important;padding:9px 11px!important}
  html.client-app-shell .client-app-site-card img{width:40px!important;height:40px!important;flex-basis:40px!important}
  html.client-app-shell .client-app-site-copy small{font-size:12px!important}
  html.client-app-shell .client-app-site-copy strong{font-size:15px!important}

  html.client-app-shell .market-hero-name{font-size:18px!important;line-height:1.3!important}
  html.client-app-shell .market-hero-name i{font-size:13px!important}
  html.client-app-shell .market-hero-desc{font-size:12.5px!important;line-height:1.5!important;-webkit-line-clamp:2!important}
  html.client-app-shell .market-app-download{height:30px!important;padding:0 10px!important;font-size:11px!important}
  html.client-app-shell .market-disclaimer-title{font-size:11px!important;line-height:20px!important;padding:2px 8px!important}
  html.client-app-shell .market-disclaimer{font-size:11px!important;line-height:1.45!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  html.client-app-shell .market-hero-bottom .market-purchase-slot:not(.is-pinned) .market-purchase-copy{font-size:11px!important;gap:4px!important}
  html.client-app-shell .market-hero-bottom .market-purchase-slot:not(.is-pinned) .market-purchase-copy strong{font-size:11.5px!important;max-width:72px!important}
  html.client-app-shell .market-purchase-demo,.market-purchase-demo.is-demo{font-size:9px!important;padding:1px 4px!important;line-height:1.3!important}
  html.client-app-shell .market-hero-bottom .market-hero-actions a{height:32px!important;padding:0 10px!important;font-size:11.5px!important}
  html.client-app-shell .market-category-list a{height:34px!important;padding:0 12px!important;font-size:13px!important}
  html.client-app-shell .market-search input[type="text"],html.client-app-shell .market-search input[name="keyword"]{height:42px!important;font-size:16px!important}
  html.client-app-shell .market-post-title{font-size:16px!important;line-height:1.45!important}
  html.client-app-shell .market-post-tags span{font-size:11px!important;min-height:22px!important;padding:3px 7px!important}
  html.client-app-shell .market-post-bottom,html.client-app-shell .market-post-bottom .market-post-time,html.client-app-shell .market-post-metrics{font-size:11px!important;line-height:1.4!important}
}

/* 订单页与详情页曾有单独的 APP 极限压缩规则，这里用更高优先级恢复可读字号。 */
@media(max-width:900px){
  html.client-app-shell .search-box{min-height:42px!important;font-size:14px!important}
  html.client-app-shell .search-input{font-size:16px!important}
  html.client-app-shell .tab-item{padding:11px 0!important;font-size:14px!important}
  html.client-app-shell .order-head{font-size:12px!important;line-height:1.45!important;margin-bottom:8px!important}
  html.client-app-shell .order-title{font-size:15.5px!important;line-height:1.45!important}
  html.client-app-shell .order-price{font-size:16px!important}

  .warning-text{font-size:13px!important;line-height:1.6!important}
  .recent-trend-title{font-size:13px!important}.recent-trend-note{font-size:11px!important}
  .proof-label{font-size:12px!important}.proof-demo-note{font-size:10px!important}
  .bottom-bar .b-nav{font-size:12px!important}
  .pay-subtitle,.pay-amount span,.pay-copy span{font-size:13px!important;line-height:1.5!important}
  .locked-mask .lock-label{font-size:12px!important}.locked-mask .lock-sub{font-size:11px!important}
}


/* ================================================================
   2026-09-23 V4 Android 网页/微信与 APK 严格分流
   - 微信/普通 Android 浏览器：底部导航 58px，bottom:0，无额外 safe-area 白边。
   - 顶部“首页/订单/我的”标题卡片仅允许真实 Android APK/TWA。
   - 这层使用 !important，可兜住旧 front-ui.js 缓存造成的误识别。
   ================================================================ */
html.client-platform-android:not(.client-native-android-app){--client-safe-bottom:0px!important}
html.client-platform-android:not(.client-native-android-app) .client-android-page-card,
html.client-platform-android:not(.client-native-android-app) .client-android-page-card-spacer,
html.client-platform-android:not(.client-native-android-app) .client-app-page-title,
html.client-platform-android:not(.client-native-android-app) .mine-app-title{display:none!important}
html.client-platform-android:not(.client-native-android-app) .client-main-nav,
html.client-platform-android:not(.client-native-android-app) .bottom-nav.client-main-nav,
html.client-platform-android:not(.client-native-android-app) .bottom.client-main-nav{
  position:fixed!important;left:0!important;right:0!important;bottom:0!important;transform:none!important;
  width:100%!important;max-width:none!important;height:58px!important;min-height:58px!important;
  padding:0 6px!important;margin:0!important;box-sizing:border-box!important;border-radius:0!important;
  z-index:10000!important
}
html.client-platform-android:not(.client-native-android-app) .client-main-nav .client-nav-item,
html.client-platform-android:not(.client-native-android-app) .bottom-nav.client-main-nav .nav-item,
html.client-platform-android:not(.client-native-android-app) .bottom.client-main-nav .nav{
  height:58px!important;min-height:58px!important;font-size:12px!important;gap:4px!important
}
html.client-platform-android:not(.client-native-android-app) .client-main-nav .client-nav-item i,
html.client-platform-android:not(.client-native-android-app) .bottom-nav.client-main-nav .nav-item i,
html.client-platform-android:not(.client-native-android-app) .bottom.client-main-nav .nav i{font-size:19px!important}
html.client-platform-android:not(.client-native-android-app) body.has-client-main-nav{padding-bottom:64px!important}
