/* === 首页底部导航尺寸：内容+最多8px安全区 (home-tabbar-size) === */
/* 仅改尺寸：去掉多余 height/min-height；不改字体、颜色、图标、功能 */
/* 实测内容：图标24 + gap3 + 文字18 + 上下padding4 = 49px；+8px安全区 ≈ 57px */

/* 底栏：高度自适应内容 + 最多8px安全区 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar,
html #app .custom-tabbar[data-v-f6b1133f] {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 68px !important;
    max-height: none !important;
    padding-top: 8px !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 内容容器：不拉伸、不固定高度 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-content,
html #app .custom-tabbar .tabbar-content[data-v-f6b1133f] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* 导航项：去掉 height:100% 拉伸，只保留内容高度 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .h5-semantic-nav,
html #app .custom-tabbar .tabbar-item[data-v-f6b1133f],
html #app .custom-tabbar .h5-semantic-nav {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: center !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
}

/* 去掉可能的空 ::after / spacer */
html #app .custom-tabbar::after,
html #app .custom-tabbar .tabbar-content::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 图标 24px（保持） */
html #app .custom-tabbar .h5-semantic-nav-icon,
html #app .custom-tabbar .tabbar-item svg {
    width: 24px !important;
    height: 24px !important;
}

/* 文字 14px（family 不变，压过内联） */
html body #app .custom-tabbar[data-v-f6b1133f] .tabbar-item .text,
html body #app .custom-tabbar[data-v-f6b1133f] .tabbar-item .h5-ui-label62,
html body #app .custom-tabbar[data-v-f6b1133f] .h5-semantic-nav .text,
html body #app .custom-tabbar[data-v-f6b1133f] .h5-semantic-nav > span,
html body #app .custom-tabbar[data-v-f6b1133f] .tabbar-item[data-shortvideo-entry] > span {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* 送VIP标签保持原大小和位置：不做任何尺寸改动 */

/* 页面内容底部留白 = 导航真实高度，避免内容被遮挡 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app uni-page[data-page="pages/index/index"] .center[data-v-19ec4d18],
html #app uni-page[data-page="pages/index/index"] .center[data-v-19ec4d18] {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
}

/* 悬浮栏位于底栏上方（底栏68px），不覆盖页面按钮 */
html #app .home-service-float,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .home-service-float {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
}
