/* 首页滚动 + 底部导航修复 v2 - 使用整页原生滚动，避免 bui-scroll 拦截上滑 */

html.index-page,
html:has(body.index-page) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    -webkit-overflow-scrolling: touch !important;
}

body.index-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

body.index-page .fui-page-group,
body.index-page .fui-page.fui-page-current {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
    transform: none !important;
}

body.index-page .fui-content {
    position: relative !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 0 !important;
    touch-action: pan-y !important;
}

body.index-page #uiList,
body.index-page .fui-goods-scroll,
body.index-page .fui-goods-scroll .bui-scroll-head,
body.index-page .fui-goods-scroll .bui-scroll-main,
body.index-page .fui-goods-scroll .bui-scroll-foot {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    touch-action: pan-y !important;
    pointer-events: auto !important;
}

body.index-page .fui-navbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* 抖音 iframe 内嵌：整页自然高度，不依赖 bui-scroll 计算 */
html.index-page,
body.index-page {
    position: relative !important;
}

body.index-page #goodsLoadSentinel {
    width: 100%;
    visibility: hidden;
}