/* 全站底部导航：左右顶满屏，4 Tab 等宽 */
.jw-tabbar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  z-index: 99999 !important;
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: #fff !important;
  border-top: 1px solid #eee !important;
  height: calc(50px + env(safe-area-inset-bottom, 0)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
  box-sizing: border-box !important;
}

.jw-tabbar a {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: #999 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  height: 50px !important;
  padding: 0 2px !important;
}

.jw-tabbar a.active {
  color: #ff6b00 !important;
  font-weight: 600 !important;
}

.jw-tabbar .ico {
  display: none !important;
}

.jw-tabbar [data-go="coach"] {
  display: none !important;
}

.uni-tabbar-bottom,
uni-tabbar-bottom {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  bottom: 0 !important;
  z-index: 99998 !important;
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: #fff !important;
  border-top: 1px solid #eee !important;
}

.uni-tabbar,
uni-tabbar .uni-tabbar {
  display: flex !important;
  visibility: visible !important;
  width: 100% !important;
  height: 50px !important;
  background: #fff !important;
}

.uni-tabbar .uni-tabbar__bd {
  display: flex !important;
  width: 100% !important;
  height: 50px !important;
  align-items: stretch !important;
}

.uni-tabbar__item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  padding: 0 2px !important;
  box-sizing: border-box !important;
}

.uni-tabbar__icon,
.uni-tabbar__icon img,
.uni-tabbar__item .uni-tabbar__icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.uni-tabbar__label {
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  margin: 0 !important;
  transform: none !important;
}

.uni-tabbar__item.uni-tabbar__item--active .uni-tabbar__label,
.uni-tabbar__item.active .uni-tabbar__label {
  color: #ff6b00 !important;
  font-weight: 600 !important;
}

.service-detail-page .footer-bar,
.coach-detail-page .footer-bar,
.create-order-page .footer-bar,
.jw-injected-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  bottom: 0 !important;
  z-index: 99997 !important;
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: #fff !important;
  border-top: 1px solid #eee !important;
  padding: 8px 15px calc(8px + env(safe-area-inset-bottom, 0)) !important;
  box-sizing: border-box !important;
}

.service-detail-page .footer-bar .btn-book,
.coach-detail-page .footer-bar .btn-book,
.jw-injected-footer .btn-book {
  flex: 1 !important;
  display: block !important;
  height: 44px !important;
  line-height: 44px !important;
  border: none !important;
  border-radius: 22px !important;
  background: #ff6b00 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.service-detail-page,
.coach-detail-page,
.create-order-page {
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0)) !important;
}

body:has(.jw-tabbar) {
  padding-bottom: calc(50px + env(safe-area-inset-bottom, 0));
}

.jw-coach-rich-list .jw-cr-bottom {
  position: relative;
  z-index: 2;
}

.jw-coach-rich-list .jw-cr-btn.order {
  display: inline-block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 3 !important;
}

/* 代理端 iframe 内嵌：禁止 bottom-bar-fix 把 uni-tabbar 再显示出来 */
html.jw-agent-embed .uni-tabbar,
html.jw-agent-embed uni-tabbar,
html.jw-agent-embed .uni-tabbar-bottom,
html.jw-agent-embed uni-tabbar-bottom,
html.jw-agent-embed .jw-tabbar {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
