/* Footer Styles - 适配听读类网站风格 */

.site-footer {
    background-color: #ffffff;
    color: var(--color-text-secondary);
    padding-top: 30px; /* Reduced from 40px */
    font-size: 13px; /* Slightly smaller font */
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    padding: 0 15px; /* Reduced padding */
    min-width: 160px; /* Reduced min-width */
    margin-bottom: 15px; /* Reduced margin */
}

.footer-section h3 {
    color: var(--color-text-main);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px; /* Reduced margin */
    position: relative;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 6px;
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 6px; /* Reduced margin */
}

.footer-section ul li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
    padding-left: 3px;
}

.footer-section.about .socials {
    margin-top: 10px;
}

.footer-section.about .socials a {
    display: inline-block;
    width: 30px; /* Smaller icons */
    height: 30px;
    background: var(--color-bg-light);
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 30px;
    margin-right: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
    font-style: normal;
    font-size: 12px;
}

.footer-section.about .socials a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Icons styling */
.icon-wechat::before { content: '微'; }
.icon-weibo::before { content: '博'; }
.icon-github::before { content: 'G'; }

.footer-bottom {
    background-color: var(--color-bg-light);
    text-align: center;
    padding: 12px 0; /* Reduced padding */
    margin-top: 15px; /* Reduced margin */
    color: var(--color-text-light);
    font-size: 12px;
}

.footer-bottom a {
    color: var(--color-text-light);
    text-decoration: none;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 20px;
        padding-bottom: 60px; /* Space for mobile nav */
    }

    .footer-content {
        flex-direction: column;
        gap: 15px; /* Add gap between sections */
    }
    
    .footer-section {
        margin-bottom: 0; /* Let gap handle spacing */
        padding: 0;
        border-bottom: 1px dashed var(--color-border);
        padding-bottom: 15px;
    }
    
    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-section h3 {
        margin-bottom: 8px;
        font-size: 14px;
    }
}