/* Footer 基础样式 */
.footer {
    background-color: #1a1a1a;
    padding: 64px 0 32px;
    color: #8b949e;
    -webkit-font-smoothing: antialiased;
}

/* 内容网格布局 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
}

/* 主要内容网格 */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* 页脚区块样式 */
.footer-section h3 {
    color: #e6edf3;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.022em;
}

.footer-section h4 {
    color: #e6edf3;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.021em;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #8b949e;
    letter-spacing: -0.016em;
}

/* 链接列表 */
.footer-links,
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.blog-list li {
    margin-bottom: 12px;
}

.footer-links a,
.blog-list a {
    color: #8b949e;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
    display: inline-block;
    letter-spacing: -0.016em;
}

.footer-links a:hover,
.blog-list a:hover {
    color: #58a6ff;
}

/* 联系方式链接 */
.footer-contact {
    margin-top: 24px;
}

.contact-links {
    display: flex;
    gap: 16px;
}

.contact-icon {
    color: #8b949e;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    transform: translateY(-2px);
}

/* 底部内容 */
.footer-bottom {
    width: 100%;
    padding-top: 48px;
}

/* 版权信息和语言选择器容器 */
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #8b949e;
    font-size: 12px;
    width: 100%;
    letter-spacing: -0.016em;
}

/* 版权信息 */
.footer-copyright {
    white-space: nowrap;
}

/* 语言选择器 */
.footer-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.lang-link {
    color: #8b949e;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 6px;
}

.lang-link:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

/* 响应式设计 - iPad */
@media (max-width: 1068px) {
    .footer {
        padding: 48px 0 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
        padding-top: 40px;
    }

    .footer-content {
        padding: 0 20px;
    }
}

/* 响应式设计 - iPhone */
@media (max-width: 734px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        padding: 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
        padding: 32px 0;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 19px;
        margin-bottom: 16px;
    }

    .footer-section p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .footer-links li,
    .blog-list li {
        margin-bottom: 2px;
    }

    .footer-links a,
    .blog-list a {
        padding: 12px;
        width: 100%;
        display: block;
        font-size: 17px;
        position: relative;
    }

    .footer-links a::after,
    .blog-list a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .contact-links {
        justify-content: center;
        gap: 24px;
    }

    .contact-icon {
        font-size: 24px;
        padding: 12px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-languages {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    .lang-link {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* 响应式设计 - 小型iPhone */
@media (max-width: 374px) {
    .footer-section h3 {
        font-size: 17px;
    }

    .footer-links a,
    .blog-list a {
        font-size: 16px;
        padding: 10px;
    }

    .contact-icon {
        font-size: 20px;
        padding: 10px;
    }
} 