/* ==================== 页脚样式 ==================== */

.site-footer {
    margin-top: 80px;
    padding: 60px 0 0;
    /* 删除自定义背景,使用主题默认背景 */
    /* 删除顶部横线 */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    min-width: 160px;
    max-width: 220px;
    flex: 0 1 auto;
}

.footer-section h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-description,
.footer-thanks {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
}

.footer-description strong,
.footer-thanks strong {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.footer-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-links li {
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    background: var(--bg-hover);
}

/* 版权信息区域 */
.footer-bottom {
    padding: 24px 0;
    /* 删除自定义背景,使用主题默认背景 */
    /* 删除顶部横线 */
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-copyright p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.footer-copyright a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--primary-hover);
}

.footer-copyright a:hover::after {
    width: 100%;
}

.footer-subtitle {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-container {
        gap: 24px;
    }

    .footer-section {
        min-width: 140px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 60px;
        padding: 40px 0 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 0 20px 32px;
    }

    .footer-section {
        min-width: unset;
        max-width: 280px;
        width: 100%;
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-description,
    .footer-thanks,
    .footer-list li {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-copyright {
        padding: 0 20px;
    }

    .footer-copyright p {
        font-size: 0.85rem;
    }

    .footer-subtitle {
        font-size: 0.8rem !important;
    }
}

/* 动画效果 */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.15s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.25s;
}

.footer-section:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}