/* ============================================================
   页脚 v2：安全提示 + 居中导航 + 平铺语言 + 版权行
   参考 taourl.de 的页脚结构，按传图的靛蓝配色重做。
   ============================================================ */

/* 安全提示卡：放在 #page 内、白卡之后，宽度与页脚 960 版心一致 */
.site-safety {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 960px;
    margin: 30px auto 0;
    padding: 17px 19px;
    border: 1px solid #ececf4;
    border-radius: 15px;
    background: #fafaff;
    color: #68718a;
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
}
.site-safety strong {
    flex: 0 0 auto;
    color: #454e6d;
    font-weight: 600;
}
.site-safety span {
    flex: 1 1 auto;
    min-width: 0;
}

/* 页脚主体：居中，宽度跟首页版心 960 对齐 */
#footer {
    width: 100%;
    max-width: 960px;
    margin: 30px auto 0;
    padding: 26px 0 34px;
    border-top: 1px solid #e6e9f2;
    color: #7e879c;
    font-size: 13px;
    line-height: 1.75;
    text-align: center;
}

#footer .ft-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    margin: 0;
}

#footer .ft-links > a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}
#footer .ft-links > a:hover {
    color: #5365e9;
    text-decoration: none;
}
#footer .ft-links > a.ft-en {
    color: #5365e9;
}

#footer .ft-lang {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px 13px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}
#footer .ft-lang a,
#footer .ft-lang .ft-lang-on {
    color: #8a94a8;
    text-decoration: none;
    white-space: nowrap;
}
#footer .ft-lang a:hover {
    color: #5365e9;
}
#footer .ft-lang .ft-lang-on {
    color: #5365e9;
    font-weight: 600;
}

#footer .ft-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 4px 20px;
    margin-top: 8px;
    text-align: center;
}
#footer .ft-brand {
    color: #7e879c;
    font-size: 12.5px;
}
#footer .ft-brand a {
    color: #7e879c;
    text-decoration: none;
}
#footer .ft-brand a:hover {
    color: #5365e9;
}
#footer .ft-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 14px;
    font-size: 11.5px;
    line-height: 1.65;
}
#footer .ft-legal a {
    color: #94a3b8;
    text-decoration: none;
}
#footer .ft-legal a:hover {
    color: #5365e9;
}

@media (max-width: 768px) {
    .site-safety {
        flex-direction: column;
        margin: 22px 0 0;
        padding: 14px 15px;
        gap: 5px;
        border-radius: 12px;
        font-size: 12.5px;
        line-height: 1.65;
    }
    .site-safety span {
        width: 100%;
    }

    #footer {
        max-width: none;
        margin: 24px 0 0;
        padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
    }
    #footer .ft-links {
        gap: 8px 16px;
    }
    #footer .ft-lang {
        flex-basis: 100%;
        gap: 6px 12px;
        margin-top: 2px;
    }
    #footer .ft-bottom {
        display: block;
        margin-top: 12px;
    }
    #footer .ft-legal {
        margin-top: 5px;
    }
}
