/* ====== 移动端底部导航强制显示修复 ====== */
/* 专门用于覆盖所有可能的冲突样式，确保移动端底部导航正常显示 */

/* 最高优先级强制规则 - 覆盖打印样式和所有其他样式 */
@media screen {
    .mobile-bottom-nav {
        display: none;
    }
}

/* 强制隐藏modern-footer在移动端 */
@media screen and (max-width: 768px) {
    .modern-footer,
    body .modern-footer,
    html body .modern-footer,
    html body footer.modern-footer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 桌面端强制隐藏 */
@media screen and (min-width: 769px) {
    .mobile-bottom-nav,
    body .mobile-bottom-nav,
    html body .mobile-bottom-nav {
        display: none !important;
    }
}

/* 移动端强制显示和固定 - 最高优先级 */
@media screen and (max-width: 768px) {
    /* 使用超高特异性选择器覆盖所有可能的样式，包括打印样式 */
    .mobile-bottom-nav,
    body .mobile-bottom-nav,
    html body .mobile-bottom-nav,
    html body div.mobile-bottom-nav,
    div.mobile-bottom-nav,
    * .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: #2DB7A4 !important;
        border-top: none !important;
        padding: 12px 0 !important;
        box-shadow: 0 -4px 20px rgba(45, 183, 164, 0.3), 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transition: none !important;
        -webkit-transform: translateY(0) !important;
        will-change: auto !important;
        /* 强制覆盖任何可能的隐藏规则 */
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* 确保导航项目正常显示 */
    .mobile-bottom-nav .mobile-nav-items,
    body .mobile-bottom-nav .mobile-nav-items,
    html body .mobile-bottom-nav .mobile-nav-items {
        display: flex !important;
        justify-content: space-around !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-bottom-nav .mobile-nav-item,
    body .mobile-bottom-nav .mobile-nav-item {
        flex: 1 !important;
        text-align: center !important;
    }
    
    .mobile-bottom-nav .mobile-nav-item a,
    body .mobile-bottom-nav .mobile-nav-item a,
    html body .mobile-bottom-nav .mobile-nav-item a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 8px 4px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        min-width: 60px !important;
        border-radius: 12px !important;
        margin: 0 4px !important;
    }
    
    .mobile-bottom-nav .mobile-nav-icon,
    body .mobile-bottom-nav .mobile-nav-icon {
        font-size: 18px !important;
        margin-bottom: 4px !important;
        line-height: 1 !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-bottom-nav .mobile-nav-icon img,
    body .mobile-bottom-nav .mobile-nav-icon img,
    html body .mobile-bottom-nav .mobile-nav-icon img {
        width: 24px !important;
        height: 24px !important;
        filter: brightness(0) invert(1) !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-bottom-nav .mobile-nav-label,
    body .mobile-bottom-nav .mobile-nav-label,
    html body .mobile-bottom-nav .mobile-nav-label {
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        color: #ffffff !important;
    }
    
    /* 为内容预留空间 */
    body,
    html body {
        padding-bottom: 70px !important;
    }
}

/* 专门覆盖打印样式的规则 */
@media screen and (max-width: 768px) and (min-width: 1px) {
    .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
    }
}

/* 确保在所有屏幕媒体类型下都能正确显示 */
@media screen {
    @media (max-width: 768px) {
        .mobile-bottom-nav {
            display: block !important;
            position: fixed !important;
            bottom: 0 !important;
        }
    }
    
    @media (min-width: 769px) {
        .mobile-bottom-nav {
            display: none !important;
        }
    }
}

/* 额外的兜底规则 - 使用最高特异性 */
@media only screen and (max-width: 768px) {
    .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 99999 !important;
    }
}

/* 终极强制规则 - 覆盖所有可能的样式冲突 */
@media screen and (max-width: 768px) {
    /* 使用CSS属性选择器和ID选择器级别的特异性 */
    html body .mobile-bottom-nav[class],
    html body div.mobile-bottom-nav[class],
    html body .mobile-bottom-nav,
    html body div.mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0px !important;
        left: 0px !important;
        right: 0px !important;
        width: 100vw !important;
        z-index: 2147483647 !important; /* 最大z-index值 */
        background: #2DB7A4 !important;
        padding: 12px 0 !important;
        transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* 强制覆盖所有媒体查询类型 */
@media all and (max-width: 768px) {
    .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
    }
}

/* 最终兜底规则 - 确保任何情况下都能固定显示 */
@media screen and (max-width: 768px) {
    /* 超高特异性选择器，覆盖任何可能的样式 */
    html body div.mobile-bottom-nav,
    html body .mobile-bottom-nav,
    body .mobile-bottom-nav,
    .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0px !important;
        left: 0px !important;
        right: 0px !important;
        width: 100% !important;
        z-index: 2147483647 !important;
        background-color: #2DB7A4 !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        border: none !important;
        outline: none !important;
        box-shadow: 0 -4px 20px rgba(45, 183, 164, 0.3), 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
    }
} 