/* public/css/footer.css */

/* 复用在 header.css 中定义的全局变量 */
:root {
    /* 确保这些变量在全局可用 */
    --primary-text-color: #333;
    --brand-color: #007AFF;
    --font-regular: 'NotoSansSC-Regular', sans-serif;
}

.site-footer {
    width: 100%;
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    text-align: center;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright-text {
    margin: 0.25rem 0 0.5rem 0; /* 调整与下方链接的间距 */
    font-family: var(--font-regular);
    font-size: 0.875rem; /* 14px */
    color: #888;
}

/* --- 全新链接样式 (移动端优先) --- */
.legal-links-container {
    font-size: 0.875rem;
    color: #888;
}

.legal-link-item {
    margin: 0.5rem 0; /* 移动端默认的垂直间距 */
}

.legal-link-item a {
    color: #888;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.legal-link-item a:hover {
    color: var(--brand-color);
}

/* --- 桌面端布局 --- */
@media (min-width: 768px) {
    .legal-links-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .legal-link-item {
        margin: 0; /* 桌面端移除垂直margin */
    }

    /* 用伪元素在桌面端添加分隔符，比HTML里写更干净 */
    .legal-link-item:not(:first-child)::before {
        content: '|';
        color: #ccc;
        margin-right: 0.5rem;
    }
}