/* iPhone 刘海/底栏安全区：高度 = 内容区 + safe-area，避免固定高度被系统手势条吃掉 */
@media (max-width:768px) and (hover:none) and (pointer:coarse){
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body .miigo-inner-real-shell{
    padding-top:max(30px,calc(env(safe-area-inset-top,0px) + 8px))!important;
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body .miigo-inner-search{
    margin-top:0!important;
    position:relative!important;
    z-index:30!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body .miigo-inner-channel-nav{
    margin-top:14px!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body #miigo-v4-tabbar,
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body #miigo-v4-tabbar.miigo-backend-tabbar-v1{
    height:calc(62px + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(62px + env(safe-area-inset-bottom,0px))!important;
    max-height:none!important;
    padding:4px 8px env(safe-area-inset-bottom,0px)!important;
    bottom:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    justify-content:space-evenly!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body #miigo-v4-tabbar button,
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body #miigo-v4-tabbar>a{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
    align-self:start!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body #miigo-v4-tabbar img{
    width:30px!important;
    height:30px!important;
    max-width:30px!important;
    max-height:30px!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body #miigo-v4-tabbar button.is-center img{
    width:40px!important;
    height:40px!important;
    max-width:40px!important;
    max-height:40px!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body #miigo-v4-tabbar span{
    margin-top:1px!important;
    line-height:1.1!important;
    font-size:11px!important;
    overflow:visible!important;
  }
  html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body .miigo-inner-real-content{
    padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;
  }
}
