/**
 * 全站自定义修复样式
 * 用于修复布局和样式问题
 */

/* 全站页脚白边修复：去除顶部边框与外边距 */
footer.footer,
.main-footer,
.footer {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
}

/* 避免内容较少时因 min-height 与 margin 叠加产生空白 */
.content-wrapper {
    min-height: auto !important;
}

/* ========================================
   Sticky Footer 修复 - Flexbox方案
   确保footer始终在页面底部
   ======================================== */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.content {
    flex: 1 0 auto;
}

footer.footer {
    flex-shrink: 0;
    width: 100%;
}

/* 确保navbar fixed-top不影响flex布局 */
.navbar-fixed-top ~ main.content {
    padding-top: 80px; /* navbar高度 + 额外间距 */
}
