/* =================================================================
   中小企业社会责任服务系统（社责办）· 全局统一底部 Tabbar 样式
   ================================================================= */

/* 彻底隐藏并消除 UniApp 自定义组件与原生旧 Tabbar（包括购物车等旧图标，彻底根除重影） */
.container-footer,
.container-footer *,
uni-view.container-footer,
uni-view.container-footer *,
v-uni-view.container-footer,
v-uni-view.container-footer *,
tab-bar,
tab-bar *,
uni-tab-bar,
uni-tab-bar *,
uni-tabbar,
uni-tabbar *,
.uni-tabbar,
.uni-tabbar *,
.uni-tabbar-bottom,
.uni-tabbar-bottom *,
.uni-tabbar-top,
.uni-tabbar-top *,
uni-tabbar-placeholder,
.uni-tabbar-placeholder,
.uni-tabbar__placeholder,
.uni-tabbar__border,
.uni-tabbar__item,
.uni-app--showtabbar uni-tabbar,
.component-tab-bar,
.component-tab-bar *,
.tab-bar-main,
.tab-bar-main *,
.main-item.wbcentre,
.main-item.wbcentre *,
uni-view.component-tab-bar,
uni-view.component-tab-bar *,
uni-view.tab-bar-main,
uni-view.tab-bar-main *,
v-uni-view.component-tab-bar,
v-uni-view.component-tab-bar *,
v-uni-view.tab-bar-main,
v-uni-view.tab-bar-main * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0px !important;
    min-height: 0px !important;
    max-height: 0px !important;
    width: 0px !important;
    max-width: 0px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -99999px !important;
    top: -99999px !important;
    bottom: -99999px !important;
    z-index: -99999 !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* 统一留出底部安全边距 */
body {
    padding-bottom: 56px !important;
    box-sizing: border-box;
}

uni-page-wrapper,
.uni-page-wrapper {
    padding-bottom: 56px !important;
    box-sizing: border-box;
}

/* 全局统一标准 Tabbar 容器 */
#global-app-tabbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52px !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 999999 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
    user-select: none;
    -webkit-user-select: none;
}

/* Tabbar 单项 */
#global-app-tabbar .g-tab-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    height: 100% !important;
    text-decoration: none !important;
    color: #64748B !important;
    font-size: 11px !important;
    transition: color 0.15s ease !important;
    -webkit-tap-highlight-color: transparent;
}

#global-app-tabbar .g-tab-item .g-tab-icon-img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    margin-bottom: 2px !important;
    display: block !important;
    transition: transform 0.15s ease !important;
}

#global-app-tabbar .g-tab-item span {
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
}

/* 激活选中态（政企核心蓝） */
#global-app-tabbar .g-tab-item.active {
    color: #1E3A8A !important;
    font-weight: 600 !important;
}

#global-app-tabbar .g-tab-item.active .g-tab-icon-img {
    transform: scale(1.08) !important;
}

/* 问卷调查与次级内页底部操作栏层级保护，确保绝对置顶且无遮挡 */
.container .container-main .main-bottom,
uni-view.main-bottom,
v-uni-view.main-bottom,
.main-bottom {
    z-index: 1000000 !important;
}

.harmless-content-button {
    cursor: pointer !important;
    pointer-events: auto !important;
}

