/**
 * 强制显示页脚样式
 * 专门用于解决内容页页脚不显示的问题
 */

/* 强制显示页脚 */
body.single-lineart .site-footer,
body.single .site-footer,
body.single-post .site-footer,
.single-lineart .site-footer,
.single .site-footer,
.single-post .site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 40px !important;
    background-color: #f5f5f5 !important;
    border-top: 3px solid #4CAF50 !important;
    padding: 40px 0 20px !important;
}

/* 确保页脚内容可见 */
body.single-lineart .site-footer *,
body.single .site-footer *,
body.single-post .site-footer *,
.single-lineart .site-footer *,
.single .site-footer *,
.single-post .site-footer * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* 修复头部样式 */
body.single-lineart .site-header,
body.single .site-header,
body.single-post .site-header,
.single-lineart .site-header,
.single .site-header,
.single-post .site-header {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff !important;
    border-bottom: 1px solid #eee !important;
}

/* 确保logo样式正确 */
body.single-lineart .site-logo-img img,
body.single .site-logo-img img,
body.single-post .site-logo-img img,
.single-lineart .site-logo-img img,
.single .site-logo-img img,
.single-post .site-logo-img img {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

/* 确保导航区域样式正确 */
body.single-lineart .main-header-bar,
body.single .main-header-bar,
body.single-post .main-header-bar,
.single-lineart .main-header-bar,
.single .main-header-bar,
.single-post .main-header-bar {
    padding: 0.5em 1em !important;
}

/* 防止页脚重复 */
body.single-lineart .site-footer + .site-footer,
body.single .site-footer + .site-footer,
body.single-post .site-footer + .site-footer,
.single-lineart .site-footer + .site-footer,
.single .site-footer + .site-footer,
.single-post .site-footer + .site-footer,
footer + footer,
#colophon + #colophon {
    display: none !important;
}

/* 确保页脚列布局正确 */
body.single-lineart .ast-footer-row,
body.single .ast-footer-row,
body.single-post .ast-footer-row,
.single-lineart .ast-footer-row,
.single .ast-footer-row,
.single-post .ast-footer-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}

/* 确保页脚列宽度正确 */
body.single-lineart .ast-footer-column,
body.single .ast-footer-column,
body.single-post .ast-footer-column,
.single-lineart .ast-footer-column,
.single .ast-footer-column,
.single-post .ast-footer-column {
    flex: 1 !important;
    min-width: 250px !important;
    padding: 0 15px !important;
    margin-bottom: 20px !important;
}

/* 确保页脚容器样式正确 */
body.single-lineart .ast-container,
body.single .ast-container,
body.single-post .ast-container,
.single-lineart .ast-container,
.single .ast-container,
.single-post .ast-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 确保页脚版权信息样式正确 */
body.single-lineart .ast-footer-copyright,
body.single .ast-footer-copyright,
body.single-post .ast-footer-copyright,
.single-lineart .ast-footer-copyright,
.single .ast-footer-copyright,
.single-post .ast-footer-copyright {
    text-align: center !important;
    margin-top: 30px !important;
    border-top: 1px solid #ddd !important;
    padding-top: 20px !important;
}
