/* ========================================
   最终页脚修复方案 - Flexbox Sticky Footer
   ======================================== */

/* 1. 设置body为flex容器以实现Sticky Footer */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex !important;
    flex-direction: column !important;
}

/* 2. 确保所有SPA section可以适当伸展 */
section {
    flex: 1 0 auto;
}

/* 3. Footer被推到最底部 */
body > footer,
body > .footer,
.footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    position: relative !important;
    z-index: 100 !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 102, 255, 0.1) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* 4. 特别处理：指导教师、培养模式、孵化机制section的底部间距 */
#mentors.mentors-section,
#training.training-section-new,
#mechanism.mechanism-section-new {
    padding-bottom: 40px !important;
    margin-bottom: 0 !important;
}

/* 5. 移除伪元素干扰 */
.mentors-section::before,
.mentors-section::after,
.training-section-new::before,
.training-section-new::after {
    content: none !important;
    display: none !important;
}

/* 6. Footer内部元素垂直居中 */
.footer .container,
footer .container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.footer .row,
footer .row {
    width: 100% !important;
    margin: 0 !important;
}
