/* ============================================================
   全站页脚 — 极简四栏（品牌 / 产品 / 支持 / 关于）
   仅本文件控制 footer 版式；沿用 1200 内容轨，纯白底 + 发丝线，无卡片/阴影/色块
   ============================================================ */
.site-footer {
    margin: 0;
    padding: 21px 0 0;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .06);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(15, 23, 42, .62);
    box-sizing: border-box;
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .8fr);
    column-gap: 32px;
    row-gap: 24px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    box-sizing: border-box;
}

/* ---------- 品牌栏 ---------- */
.site-footer .footer-brand {
    min-width: 0;
}

.site-footer .footer-brand-name {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.4;
    color: #0f172a;
    text-decoration: none;
}

.site-footer .footer-brand-name:hover {
    color: #b23a34;
}

.site-footer .footer-brand-desc {
    margin: 6px 0 8px;
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(15, 23, 42, .55);
}

.site-footer .footer-brand-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    font-size: 12.5px;
}

.site-footer .footer-brand-links a {
    color: rgba(15, 23, 42, .62);
    text-decoration: none;
}

.site-footer .footer-brand-links a:hover {
    color: #b23a34;
}

.site-footer .footer-brand-sep {
    color: rgba(15, 23, 42, .2);
}

/* ---------- 导航栏 ---------- */
.site-footer .footer-col {
    min-width: 0;
}

.site-footer .footer-col-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .01em;
    color: #0f172a;
    text-transform: none;
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-links li {
    margin: 0;
    padding: 0;
}

.site-footer .footer-links a {
    display: inline-block;
    padding: 1px 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(15, 23, 42, .62);
    text-decoration: none;
    transition: color .16s;
}

.site-footer .footer-links a:hover {
    color: #b23a34;
}

/* ---------- 底部版权行 ---------- */
.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
    padding: 8px 0 10px;
    border-top: 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(15, 23, 42, .45);
}

.site-footer .footer-bottom a {
    color: rgba(15, 23, 42, .55);
    text-decoration: none;
}

.site-footer .footer-bottom a:hover {
    color: #b23a34;
}

.site-footer .footer-bottom span {
    color: inherit;
}

/* ---------- 1024 档：2×2 ---------- */
@media (max-width: 1100px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
}

/* ---------- 手机档：单列内联，压缩为 4 行 ---------- */
@media (max-width: 640px) {
    .site-footer {
        padding-top: 22px;
    }

    .site-footer .footer-inner {
        padding: 0 18px;
    }

    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
        padding-bottom: 14px;
    }

    .site-footer .footer-brand-desc {
        margin: 6px 0 6px;
        font-size: 12px;
        line-height: 1.65;
    }

    .site-footer .footer-col {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: 10px;
    }

    .site-footer .footer-col-title {
        flex: none;
        margin: 0 2px 0 0;
        font-size: 12px;
    }

    .site-footer .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 12px;
    }

    .site-footer .footer-links a {
        font-size: 12px;
        line-height: 1.8;
        padding: 1px 0;
    }

    .site-footer .footer-bottom {
        padding: 10px 0 12px;
        font-size: 11.5px;
        column-gap: 10px;
    }
}

/* ---------- 暗色模式 ---------- */
html.io-dark-mode .site-footer {
    background: #0b1120;
    border-top-color: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .62);
}

html.io-dark-mode .site-footer .footer-grid {
    border-bottom-color: rgba(255, 255, 255, .08);
}

html.io-dark-mode .site-footer .footer-brand-name,
html.io-dark-mode .site-footer .footer-col-title {
    color: #e2e8f0;
}

html.io-dark-mode .site-footer .footer-brand-desc,
html.io-dark-mode .site-footer .footer-brand-links a,
html.io-dark-mode .site-footer .footer-links a,
html.io-dark-mode .site-footer .footer-bottom a {
    color: rgba(255, 255, 255, .58);
}

html.io-dark-mode .site-footer .footer-links a:hover,
html.io-dark-mode .site-footer .footer-brand-links a:hover,
html.io-dark-mode .site-footer .footer-bottom a:hover {
    color: #f2a09a;
}
