/* =========================================================
   页脚导航重构版：多列 + 响应式
   目标：
   1. 站点链接从「单列 22 条」拆成 4 个语义分组，不再无限拉长；
   2. 桌面端 4 列平铺，笔记本 2 列，手机端 2 列紧凑排布；
   3. 保留全部链接（SEO 内链一个不丢），只改展示结构。
   ========================================================= */

.footer-area.with-black-background .footer-top {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 220px;
    gap: 40px;
    align-items: start;
    padding-bottom: 26px;
}

/* ---------- 品牌区 ---------- */
.footer-brand .widget-logo {
    margin-bottom: 18px;
}

.footer-brand .widget-logo img {
    max-width: 150px;
    height: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.95;
    margin: 0 0 14px;
}

.footer-brand .footer-slogan {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.16);
    border: 1px solid rgba(20, 184, 166, 0.32);
    color: #7fe7dd;
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* ---------- 链接分组 ---------- */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 26px;
}

.footer-nav-col h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    padding-bottom: 10px;
    position: relative;
}

.footer-nav-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #34d399, #22d3ee);
}

.footer-nav-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-col ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-col ul li a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 2.1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-col ul li a:hover,
.footer-nav-col ul li a:focus {
    color: #5eead4;
    transform: translateX(3px);
}

/* ---------- 扫码区 ---------- */
.footer-qr h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    padding-bottom: 10px;
    position: relative;
}

.footer-qr h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #34d399, #22d3ee);
}

.footer-qr-list {
    display: flex;
    gap: 12px;
}

.footer-qr-item {
    flex: 0 0 auto;
    text-align: center;
}

.footer-qr-item img {
    width: 104px;
    height: auto;
    display: block;
    padding: 5px;
    border-radius: 12px;
    background: #ffffff;
}

.footer-qr-item span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- 版权区 ---------- */
.footer-area .copyright-area .copyright-area-content p {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* =========================================================
   响应式
   ========================================================= */

/* 笔记本：品牌 + 扫码并排，链接区独占一行 4 列 */
@media only screen and (max-width: 1199px) {
    .footer-area.with-black-background .footer-top {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 30px 28px;
    }

    .footer-nav-grid {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 平板：品牌与扫码各占一半，链接 2×2 */
@media only screen and (max-width: 991px) {
    .footer-area.with-black-background .footer-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 22px;
    }
}

/* 手机：单列，链接 2 列紧凑，扫码并排 */
@media only screen and (max-width: 767px) {
    .footer-area.with-black-background .footer-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .widget-logo img {
        margin: 0 auto;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 18px;
        text-align: left;
    }

    .footer-nav-col h3 {
        font-size: 14px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .footer-nav-col ul li a {
        font-size: 13px;
        line-height: 2;
    }

    .footer-qr {
        text-align: center;
    }

    .footer-qr-list {
        justify-content: center;
        gap: 16px;
    }

    .footer-qr-item img {
        width: 118px;
    }
}

/* 超窄屏：链接列再降一档字号，避免换行拥挤 */
@media only screen and (max-width: 380px) {
    .footer-nav-grid {
        gap: 14px 12px;
    }

    .footer-nav-col ul li a {
        font-size: 12.5px;
    }

    .footer-qr-item img {
        width: 104px;
    }
}
