/* ==================================== */
/* 底部组件样式 (彩色图标版 - 调整背景色和高度) */
/* ==================================== */

.site-footer {
    background-color: #2c3e50; /* 深海军蓝，比纯黑更柔和，更具专业感 */
    color: #ecf0f1; /* 浅色文字，与深海军蓝形成良好对比 */
    padding: 30px 20px 20px; /* 进一步减小顶部和底部的内边距 */
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    border-top: 1px solid #34495e; /* 调整顶部边框颜色以匹配新背景 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto; /* 保持居中 */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    padding-bottom: 25px; /* 减小与底部版权信息之间的间距 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    flex: 0 1 calc(50% - 25px);
    min-width: 280px;
}

    .footer-section h3 {
        font-size: 1.5em;
        margin-top: 0; /* 移除标题默认的顶部外边距，直接消除上方多余空间 */
        margin-bottom: 20px;
        color: #ffffff;
        font-weight: 600;
        position: relative;
        padding-bottom: 8px;
    }

        .footer-section h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background-color: #3498db;
            border-radius: 1px;
        }

    .footer-section p,
    .footer-section ul {
        font-size: 0.9em;
        line-height: 1.7;
        margin-bottom: 8px;
    }

    .footer-section a {
        color: #bdc3c7;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-section a:hover {
            color: #3498db;
        }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%; /* 保持圆形背景 */
        background-color: rgba(255, 255, 255, 0.1); /* 浅色背景 */
        transition: background-color 0.3s ease, transform 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

        /* 移除 hover 时的背景颜色变化，如果希望只显示彩色图标，不再改变背景色 */
        .social-links a:hover {
            background-color: transparent; /* 或者保持原有背景色，或移除此规则 */
            transform: translateY(-2px);
        }

    .social-links img {
        width: 24px; /* 调整图片图标大小，稍微放大以弥补圆形背景的视觉差异 */
        height: 24px;
    }

    .social-links svg {
        width: 24px; /* 调整SVG图标大小 */
        height: 24px;
        fill: unset; /* 移除 fill 属性，让 SVG 内部颜色正常显示 */
    }

/* 底部版权信息 */
.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 0.8em;
    color: #bdc3c7;
    padding-top: 10px;
    padding-bottom: 15px;
}

/* 响应式设计：手机端调整 */
/* 响应式设计：手机端调整 */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 15px 15px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding-bottom: 20px;
    }

    .footer-section {
        flex: 0 1 100%;
        min-width: unset;
        width: 100%;
        max-width: 300px;
    }

        .footer-section h3 {
            font-size: 1.3em;
            margin-bottom: 15px;
        }

            .footer-section h3::after {
                left: 50%;
                transform: translateX(-50%);
            }

        .footer-section p,
        .footer-section ul {
            font-size: 0.85em;
            line-height: 1.6;
        }

    /* 修复社交媒体链接居中问题 */
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .social-links {
        display: flex;
        justify-content: center; /* 确保图标水平居中 */
        align-items: center; /* 确保图标垂直居中 */
        gap: 12px;
        margin-top: 12px;
        width: 100%; /* 确保容器宽度100% */
    }

        .social-links a {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .social-links img,
        .social-links svg {
            width: 22px;
            height: 22px;
        }

    /* 底部版权信息移动端优化 */
    .footer-bottom {
        margin: 15px auto 0 auto;
        padding: 8px 10px 10px;
        font-size: 0.75em;
    }

    .footer-section a {
        padding: 2px 0;
        display: inline-block;
    }

    /* 专门针对社交媒体部分的重置和居中 */
    .footer-section.footer-social {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

        .footer-section.footer-social h3 {
            width: 100% !important;
            text-align: center !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        .footer-section.footer-social .social-links {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            margin: 15px auto 0 auto !important;
            padding: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            gap: 15px !important;
        }

    .social-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    
}

/* 引入谷歌字体 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
