/* =========================================================
   全站页脚 Footer
========================================================= */
.tf-footer {
    background: #030806;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.tf-footer__top,
.tf-footer__bottom,
.tf-footer__notice {
    width: min(var(--tf-container), calc(100% - 32px));
    margin-inline: auto;
}

.tf-footer__top {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 32px;
    padding: 24px 0 14px;
}

.tf-footer .tf-logo__image,
.tf-footer .tf-logo__mark {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
}

.tf-footer .tf-logo__image img,
.tf-footer .tf-logo img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
}

.tf-footer .tf-logo__text strong {
    font-size: 16px;
}

.tf-footer .tf-logo__text small {
    font-size: 12px;
}

.tf-footer__brand p {
    max-width: 420px;
    margin: 10px 0 0;
    color: var(--tf-muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.tf-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tf-footer__links h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
}

.tf-footer__links a {
    display: block;
    margin: 5px 0;
    color: var(--tf-muted);
    font-size: 13px;
    line-height: 1.4;
}

.tf-footer__links a:hover {
    color: var(--tf-gold);
}

.tf-footer__notice {
    padding: 10px 14px;
    border-radius: 14px;
    color: #d4dfd8;
    background: rgba(248, 201, 90, .08);
    border: 1px solid rgba(248, 201, 90, .22);
}

.tf-footer__notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.tf-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px 0 15px;
    color: var(--tf-muted);
    font-size: 13px;
}

.tf-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-footer-menu a {
    color: var(--tf-muted);
    font-size: 13px;
}

.tf-footer-menu a:hover {
    color: var(--tf-gold);
}


/* Compact footer redesign */
.tf-footer {
    background: linear-gradient(180deg, #030806, #020504);
}

.tf-footer__top {
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.7fr);
    gap: 26px;
    padding: 20px 0 12px;
}

.tf-footer__brand p {
    max-width: 500px;
    margin-top: 8px;
}

.tf-footer__links {
    align-items: start;
}

.tf-footer__notice {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #c7d6cd;
    background: transparent;
}

.tf-footer__notice p,
.tf-footer__copyright {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
}

.tf-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 12px 18px;
    padding: 10px 0 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.tf-footer__legal {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--tf-muted);
}

.tf-footer__legal-sep {
    color: rgba(255, 255, 255, .28);
}

.tf-footer-menu {
    justify-content: flex-end;
}

@media (max-width: 1080px) {
    .tf-footer__top { grid-template-columns: 1fr; }
    .tf-footer__links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .tf-footer__top,
    .tf-footer__bottom,
    .tf-footer__notice {
        width: min(100%, calc(100% - 20px));
    }

    .tf-footer__top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 0 10px;
    }

    .tf-footer__brand { display: grid; gap: 8px; }
    .tf-footer .tf-logo { gap: 9px; align-items: center; }

    .tf-footer .tf-logo__image,
    .tf-footer .tf-logo__mark {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
        flex-basis: 36px;
        border-radius: 14px;
    }

    .tf-footer .tf-logo__image img,
    .tf-footer .tf-logo img {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
    }

    .tf-footer .tf-logo__text strong { font-size: 15px; line-height: 1.12; }
    .tf-footer .tf-logo__text small { font-size: 11px; line-height: 1.25; }

    .tf-footer__brand p {
        max-width: none;
        margin: 2px 0 0;
        color: #aebfb5;
        font-size: 12.5px;
        line-height: 1.55;
    }

    .tf-footer__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .tf-footer__links h3 {
        margin: 0 0 6px;
        font-size: 13px;
        line-height: 1.25;
    }

    .tf-footer__links a {
        margin: 0 0 5px;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .tf-footer__links > div:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        align-items: start;
    }

    .tf-footer__links > div:last-child h3 { grid-column: 1 / -1; }

    .tf-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 10px 0 12px;
        font-size: 12px;
    }

    .tf-footer__legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .tf-footer__legal-sep { display: none; }
    .tf-footer-menu { justify-content: flex-start; gap: 8px 12px; }
    .tf-footer-menu a { font-size: 12px; }
}

@media (max-width: 480px) {
    .tf-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tf-footer__links > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .tf-footer__brand p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Keep the legal line compact without forcing overflow. */
.tf-footer__legal {
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.tf-footer-menu {
    flex: 0 0 auto;
}

.tf-footer__legal .tf-footer__notice {
    width: auto !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .tf-footer__legal .tf-footer__notice {
        width: auto !important;
    }
}
