/* ========================================
   自定义移动端底部栏样式
   ======================================== */

.custom-mobile-footer {
    display: none; /* 默认在电脑端隐藏 */
}

/* 仅在移动设备显示 */
@media screen and (max-width: 768px) {
    
    /* ===== 显示自定义底部栏 ===== */
    .custom-mobile-footer {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 76px !important;
        background-color: #003366 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 99999 !important;
    }

    .custom-mobile-footer .footer-content {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        color: #A2A2A2 !important;
        font-size: 14px !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .custom-mobile-footer .footer-content a {
        color: #A2A2A2 !important;
        text-decoration: none !important;
        font-weight: bold !important;
        margin-left: 5px !important;
    }

    .custom-mobile-footer .footer-content a:hover,
    .custom-mobile-footer .footer-content a:active {
        color: #FFFFFF !important;
    }

    /* ===== 隐藏主题原有的页脚 ===== */
    footer,
    .site-footer,
    #footer,
    #colophon,
    .footer,
    [class*="footer"],
    [id*="footer"] {
        display: none !important;
    }
    
    /* 但保留自定义页脚 */
    .custom-mobile-footer {
        display: block !important;
    }

    /* ===== 为页面主内容添加底部间距 ===== */
    body {
        padding-bottom: 76px !important;
        margin-bottom: 0 !important;
    }
    
    /* 确保主内容区域不被遮挡 */
    #page,
    #main,
    .site,
    .site-content,
    #content,
    main {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ===== 桌面端确保不受影响 ===== */
@media screen and (min-width: 769px) {
    .custom-mobile-footer {
        display: none !important;
    }
}
