/* Notion 风格多列布局核心样式 */
/* Footer 容器样式：背景、边框、基础内边距和文本居中 */
footer.gh-footer {
    background-color: #f8f9fa !important;
    padding: 30px 0 !important;
    text-align: center !important;
    
    /* 移除不必要的 border: none !important;，并保留新定义的边框 */
    border-top: 1px solid #ccc !important; 
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* 提高选择器优先级，确保它能覆盖主题的默认设置 */
/* 保留此高优先级规则来保障分割线可见性 */
.gh-outer footer.gh-footer {
    border-top: 1px solid #ccc !important; 
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* 移除旧的 gh-footer-bar 样式（它不再是主布局容器） */
.gh-footer-bar {
    border-top: none !important;
    border-bottom: none !important;
    display: block !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. 主布局容器：实现左右分栏 (Logo侧 + 信息列侧) */
.gh-footer-content-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 10px 0 !important;
}

/* 2. 左侧列 (Logo/社交图标, 版权) 样式 */
.gh-footer-left-column {
    width: 250px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 150px !important;
    margin-right: 70px !important;
}

/* 3. 信息列容器：实现多列信息水平排列 */
.gh-footer-info-columns {
    display: flex !important;
    gap: 70px !important;
    flex-grow: 1 !important;
}

/* 设置站点页脚logo容器样式 */
.gh-footer-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* 设置站点页脚logo图片尺寸 */
.gh-footer-logo img {
    max-height: 35px !important;
    height: 100% !important;
    margin-bottom: 15px !important;
}

/* 版权文字样式 (调整到左侧底部) */
footer.gh-footer .gh-footer-copyright {
    text-align: left !important;
    font-size: 12px !important;
    color: #80868b !important;
    margin-top: auto !important;
}

/* 社交媒体图标样式 */
.gh-footer-left-column .gh-social-icons {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 15px !important;
}

.gh-social-icons a {
    color: #5f6368 !important;
    font-size: 20px !important;
    line-height: 1;
    text-decoration: none !important;
}

.gh-social-icons a:hover {
    color: #202124 !important;
}

/* 网站信息列表样式 (垂直一列，无点，与标题左对齐) */

/* 1. 样式化信息列标题 */
.gh-footer-info-column h3 {
    font-weight: bold !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    color: #202124 !important;
}

/* 统一列表样式 */
footer .gh-footer-info-column ul,
footer .gh-footer-info-column .gh-info-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* 统一行距 */
footer .gh-footer-info-column ul li,
footer .gh-footer-info-column .gh-info-list li {
    display: block !important;
    margin-bottom: 5px !important;
}

/* 统一链接样式 (确保 14px 字体大小一致) */
footer .gh-footer-info-column ul li a,
footer .gh-footer-info-column .gh-info-list li a {
    font-size: 14px !important;
    color: #5f6368 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

/* 统一 hover 样式 */
footer .gh-footer-info-column ul li a:hover,
footer .gh-footer-info-column .gh-info-list li a:hover {
    color: #202124 !important;
    text-decoration: underline !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .gh-footer-content-wrap {
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px !important;
    }
    .gh-footer-left-column {
        width: 100% !important;
        height: auto !important;
        margin-right: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }
    .gh-footer-logo {
        align-items: center !important;
        width: 100%;
        margin-bottom: 40px !important;
        padding-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    .gh-footer-left-column .gh-social-icons {
        justify-content: center !important;
        margin-top: 15px !important;
    }
    footer.gh-footer .gh-footer-copyright {
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 40px !important;
    }
    .gh-footer-info-columns {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }
    .gh-footer-info-column {
        /* 保持居中列的设置 */
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    
    /* === 关键修正：让列表项占据全宽并强制文本居中 === */
    .gh-footer-info-column .gh-info-list,
    .gh-footer-info-column ul {
        /* 移除 width: fit-content; 限制，让列表占据整列宽度 */
        width: 100%; 
        margin: 0 !important;
        padding-left: 0 !important;
    }
    
    /* 强制列表项的文本内容居中 */
    .gh-footer-info-column ul li,
    .gh-footer-info-column .gh-info-list li {
        text-align: center !important; /* <--- 关键：确保文本居中 */
        display: block !important;
    }
    /* ========================================= */
}