/* ═══════════════════════════════════════════════════════
   footer.css — 页脚重构样式
   三段：主区 / 数据栏 / 底栏
═══════════════════════════════════════════════════════ */

/* ── CSS 变量 ─────────────────────────────────────────── */
#footer {
    --ft-blue:   var(--clr-primary);
    --ft-bg:     #f3f4f6;
    --ft-bottom: #1a1a1a;
    --ft-text:   #374151;
    --ft-muted:  #6b7280;
    --ft-border: rgba(var(--clr-primary-rgb), .12);
}

/* ── 公共容器 ────────────────────────────────────────── */
.ft-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ═══════════════════════════════════════
   一、主区
═══════════════════════════════════════ */
.ft-main {
    background: var(--ft-bg);
    padding: 58px 0 56px;
}

.ft-main > .ft-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* 通用 section 标题 */
.ft-section-title {
    font-size: var(--font-size-16);
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.3;
}

.ft-title-bar {
    width: 28px;
    height: 3px;
    background: var(--ft-blue);
    border-radius: 2px;
    margin-bottom: 22px;
}

/* ── 左栏：品牌 ──────────────────────────────────────── */
.ft-brand {
    flex: 0 0 218px;
    padding-right: 28px;
}

.ft-brand-desc {
    font-size: var(--font-size-14);
    color: var(--ft-muted);
    line-height: 2;
    margin: 0 0 18px;
}

.ft-building-svg {
    display: block;
    width: 100%;
    max-width: 196px;
    height: auto;
    margin: 0 0 22px;
}

.ft-brand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--ft-blue);
    border-radius: 6px;
    font-size: var(--font-size-14);
    font-weight: 500;
    color: var(--ft-blue);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.ft-brand-btn:hover {
    background: var(--ft-blue);
    color: #fff;
}

.ft-brand-btn svg { flex-shrink: 0; }

/* ── 中间：导航列 ────────────────────────────────────── */
.ft-nav {
    flex: 1;
    display: flex;
    padding: 0 12px 0 28px;
    gap: 0;
}

.ft-nav-col {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.ft-nav-title {
    font-size: var(--font-size-16);
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
    white-space: nowrap;
}

.ft-nav-bar {
    width: 22px;
    height: 2px;
    background: var(--ft-blue);
    border-radius: 1px;
    margin-bottom: 16px;
}

.ft-nav-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ft-nav-col ul li { margin-bottom: 10px; }

.ft-nav-col ul li a {
    font-size: var(--font-size-14);
    color: var(--ft-text);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.18s;
    display: block;
}

.ft-nav-col ul li a:hover { color: var(--ft-blue); }

.ft-mobile-quick {
    display: none;
}

/* ── 右栏：联系我们 ──────────────────────────────────── */
.ft-contact {
    flex: 0 0 286px;
    margin-left: 20px;
    padding: 24px 22px 22px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .06);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .10), 0 4px 14px rgba(17, 24, 39, .06);
    transform: translateY(-12px);
}

.ft-contact .ft-title-bar { display: none; }

.ft-contact-sub {
    font-size: var(--font-size-14);
    color: var(--ft-muted);
    margin: 0 0 18px;
}

.ft-contact-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.ft-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size-14);
    color: var(--ft-text);
    margin-bottom: 10px;
    line-height: 1.55;
}

.ft-contact-list li svg {
    flex-shrink: 0;
    color: var(--ft-blue);
    margin-top: 1px;
}

.ft-qr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(var(--clr-primary-rgb), .06);
    border: 1px solid rgba(var(--clr-primary-rgb), .10);
    border-radius: 8px;
    margin-bottom: 16px;
}

.ft-qr img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 3px 10px rgba(17, 24, 39, .08);
}

.ft-qr-title {
    font-size: var(--font-size-14);
    font-weight: 600;
    color: #111827;
    margin: 0 0 5px;
}

.ft-qr-sub {
    font-size: var(--font-size-14);
    color: var(--ft-muted);
    margin: 0;
    line-height: 1.75;
}

.ft-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 0;
    background: var(--ft-blue);
    color: #fff;
    border-radius: 8px;
    font-size: var(--font-size-16);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(var(--clr-primary-rgb), .22);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.ft-cta-btn:hover {
    background: var(--clr-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(var(--clr-primary-rgb), .28);
}

.ft-cta-btn svg { flex-shrink: 0; }

/* ═══════════════════════════════════════
   二、数据栏
═══════════════════════════════════════ */
.ft-stats {
    background: #fff;
    border-top: 1px solid #e5eaf2;
    border-bottom: 1px solid #e5eaf2;
    padding: 28px 0;
}

.ft-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ft-stat {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 36px;
    border-right: 1px solid #e5eaf2;
}

.ft-stat:first-child { padding-left: 0; }
.ft-stat:last-child  { border-right: none; }

.ft-stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ft-blue);
}

.ft-stat-text strong {
    display: block;
    font-size: var(--font-size-16);
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
}

.ft-stat-text span {
    font-size: var(--font-size-14);
    color: var(--ft-muted);
    white-space: nowrap;
}

/* ═══════════════════════════════════════
   三、底栏
═══════════════════════════════════════ */
.ft-bottom {
    background: var(--ft-bottom);
    padding: 18px 0;
}

.ft-bottom > .ft-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ft-bottom-left {
    font-size: var(--font-size-14);
    color: rgba(255,255,255,.45);
    line-height: 1.85;
}

.ft-bottom-left a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color 0.18s;
}

.ft-bottom-left a:hover { color: rgba(255,255,255,.82); }

.ft-bottom-sep {
    display: inline;
    margin: 0 8px;
    opacity: 0.35;
}

.ft-beian {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ft-beian-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
}/* 多个链接之间自动加竖线分隔 */.ft-bottom-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ft-bottom-right a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-size-14);
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color 0.18s;
    white-space: nowrap;
}

.ft-bottom-right a:hover { color: rgba(255,255,255,.88); }
.ft-bottom-right svg { flex-shrink: 0; }

/* 字体大小切换器（footer 版） */
.ft-font-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ft-font-switcher .font-size-switcher__label {
    font-size: var(--font-size-14);
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}
.ft-font-switcher button {
    min-width: 26px;
    height: 22px;
    padding: 0 5px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 3px;
    background: transparent;
    color: rgba(255,255,255,.5);
    font-size: var(--font-size-14);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.ft-font-switcher button:hover,
.ft-font-switcher button.is-active {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
}

/* 微信联系项（点击弹码） */
.ft-contact-wx {
    cursor: pointer;
    user-select: none;
    transition: color .18s;
}
.ft-contact-wx:hover { color: var(--clr-primary); }
.ft-wx-qr-icon { flex-shrink: 0; opacity: .55; }

/* ═══════════════════════════════════════
   响应式
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .ft-brand  { flex: 0 0 196px; }
    .ft-contact{ flex: 0 0 270px; margin-left: 16px; }
    .ft-stat   { padding: 0 22px; }
}

@media (max-width: 768px) {
    .ft-main {
        padding: 30px 0 26px;
    }

    .ft-main > .ft-wrap {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ft-brand {
        order: 1;
        flex: 0 0 100%;
        padding-right: 0;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--ft-border);
    }

    .ft-brand .ft-section-title,
    .ft-brand .ft-title-bar {
        display: none;
    }

    .ft-brand-desc {
        margin: 0;
        font-size: var(--font-size-14);
        line-height: 1.7;
    }

    .ft-building-svg,
    .ft-brand-btn {
        display: none;
    }

    .ft-nav {
        display: none;
    }

    .ft-mobile-quick {
        order: 3;
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
    }

    .ft-mobile-quick a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        border: 1px solid rgba(var(--clr-primary-rgb), .12);
        border-radius: 999px;
        background: rgba(255,255,255,.72);
        color: #374151;
        font-size: var(--font-size-14);
        line-height: 1;
        text-decoration: none;
    }

    .ft-contact {
        order: 2;
        flex: 0 0 100%;
        margin-left: 0;
        transform: none;
        padding: 18px;
        border-radius: 12px;
    }

    .ft-contact .ft-section-title {
        margin-bottom: 4px;
    }

    .ft-contact-sub {
        margin-bottom: 12px;
    }

    .ft-contact-list {
        margin-bottom: 12px;
    }

    .ft-contact-list li {
        margin-bottom: 7px;
    }

    .ft-contact-list li:nth-child(2),
    .ft-contact-list li:nth-child(5) {
        display: none;
    }

    .ft-qr {
        display: none;
    }

    .ft-cta-btn {
        max-width: none;
        min-height: 44px;
        padding: 12px 0;
    }

    .ft-stats { padding: 8px 0; }

    .ft-stats > .ft-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ft-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .ft-stat,
    .ft-stat:first-child {
        justify-content: center;
        min-height: 34px;
        gap: 0;
        padding: 7px 6px;
        border: 0;
        border-radius: 999px;
        background: rgba(var(--clr-primary-rgb), .06);
    }

    .ft-stat-icon { display: none; }

    .ft-stat-text strong {
        margin: 0;
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    .ft-stat-text span { display: none; }

    .ft-stat:nth-child(odd),
    .ft-stat:nth-last-child(-n+2) {
        border: 0;
    }

    .ft-bottom {
        padding: 8px 0;
    }

    .ft-bottom > .ft-wrap {
        justify-content: center;
    }

    .ft-bottom-left {
        width: 100%;
        text-align: center;
        font-size: 12px;
        line-height: 1.55;
    }

    .ft-bottom-sep,
    .ft-bottom-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .ft-wrap { padding: 0 var(--mobile-page-pad-x); }
    .ft-wrap { width: 100%; max-width: none; }
    .ft-brand,
    .ft-mobile-quick,
    .ft-contact {
        min-width: 0;
    }

    .ft-mobile-quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    
    .ft-cta-btn {
        width: 100%;
        max-width: none;
    }
    .ft-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .ft-stat,
    .ft-stat:first-child {
        width: auto;
        padding: 7px 6px;
        border: 0;
    }

    .ft-stat:nth-child(odd),
    .ft-stat:nth-last-child(-n+2),
    .ft-stat:last-child {
        border: 0;
    }

    .ft-stat-text strong,
    .ft-stat-text span {
        white-space: normal;
    }

    .ft-bottom > .ft-wrap {
        flex-direction: column;
        align-items: center;
    }

    .ft-bottom-right { display: none; }
}

/* 极小屏 (~iPhone SE 等 ≤375) 进一步收紧；原 430 块归并入此 */
@media (max-width: 375px) {
    .ft-wrap { padding: 0 var(--mobile-page-pad-x); }
    .ft-contact { padding: 16px; }
    .ft-bottom { font-size: var(--font-size-14); }
    .ft-stat-text strong { font-size: var(--font-size-14); }
}


/* ═══════════════════════════════════════
   二维码弹窗面板
═══════════════════════════════════════ */
#modal-qr .modal-inner {
    width: min(300px, 88vw);
    max-width: min(300px, 88vw);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.qr-modal-body {
    padding: 36px 28px 32px;
    text-align: center;
    background: #fff;
}

.qr-modal-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto 20px;
}

.qr-modal-label {
    font-size: var(--font-size-18);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.qr-modal-sub {
    font-size: var(--font-size-14);
    color: #999;
    margin: 0;
    line-height: 1.6;
}

/* 移动端全屏时面板背景白色 */
@media (max-width: 768px) {
    #modal-qr .modal-inner {
        background: #fff;
    }
}
