        .footer {
            --spark-profile-purple: #7c3aed;
            --spark-profile-purple-light: #ede9fe;
            --spark-profile-grad: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
            --spark-profile-text: #1f2937;
            --spark-profile-muted: #6b7280;
            --spark-profile-border: #e5e7eb;
            --spark-profile-white: #ffffff;
            font-family: 'Segoe UI', 'PingFang TC', 'Noto Sans TC', sans-serif;
            color: var(--spark-profile-text);
            background: var(--spark-profile-white);
            border-top: 1px solid var(--spark-profile-border);
            margin-top: auto;
        }

        .footer *,
        .footer *::before,
        .footer *::after {
            box-sizing: border-box;
        }

        .footer a {
            color: inherit;
            text-decoration: none;
            transition: color .2s;
        }

        .footer a:hover {
            color: var(--spark-profile-purple);
        }

        .footer ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .footer .logo {
            display: inline-flex;
            align-items: flex-end;
            gap: 8px;
            flex-shrink: 0;
            text-decoration: none;
        }

        .footer .logo-mark {
            display: block;
            width: 238px;
            height: auto;
        }

        .footer .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 48px 20px 32px;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 36px;
        }

        .footer .brand-desc {
            font-size: 13px;
            color: var(--spark-profile-muted);
            line-height: 1.7;
            margin: 14px 0 18px;
            max-width: 260px;
        }

        .footer .social-links {
            display: flex;
            gap: 12px;
            margin-top: 28px;
        }

        .footer .social-icon {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
            border-radius: 50% !important;
            background: #f3f4f6 !important;
            color: var(--spark-profile-muted) !important;
            font-size: 16px !important;
            text-decoration: none !important;
            transition: background .2s, color .2s, transform .15s;
            padding: 0 !important;
            line-height: 1 !important;
        }

        .footer .social-icon i {
            line-height: 1;
        }

        .footer .social-icon:hover {
            background: var(--spark-profile-purple-light);
            color: var(--spark-profile-purple);
            transform: translateY(-2px);
        }

        .footer .footer-col h4 {
            font-size: 14px;
            font-weight: 700;
            color: var(--spark-profile-text);
            margin-bottom: 16px;
        }

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

        .footer .footer-col ul li a {
            font-size: 13px;
            color: var(--spark-profile-muted);
            transition: color .2s;
        }

        .footer .footer-col ul li a:hover {
            color: var(--spark-profile-purple);
        }

        .footer .contact-desc {
            font-size: 13px;
            color: var(--spark-profile-muted);
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .footer .btn-primary {
            display: inline-block;
            background: var(--spark-profile-grad);
            color: var(--spark-profile-white);
            border: none;
            border-radius: 8px;
            padding: 10px 22px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity .2s, transform .15s;
            text-align: center;
            text-decoration: none;
        }

        .footer .btn-primary:hover {
            opacity: .88;
            transform: translateY(-1px);
            color: var(--spark-profile-white);
        }

        .footer .btn-contact {
            padding: 9px 20px;
            font-size: 13px;
        }

        .footer .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            padding: 16px 20px;
            border-top: 1px solid var(--spark-profile-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: var(--spark-profile-muted);
            flex-wrap: wrap;
            gap: 8px;
        }

        .footer .footer-links {
            display: flex;
            gap: 16px;
        }

        .footer .footer-links a {
            color: var(--spark-profile-muted);
        }

        .footer .footer-links a:hover {
            color: var(--spark-profile-purple);
        }

        @media (max-width: 900px) {
            .footer .footer-inner {
                grid-template-columns: 1fr 1fr;
                gap: 28px;
            }

            .footer .footer-brand {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 640px) {
            .footer .footer-inner {
                grid-template-columns: 1fr;
                gap: 24px;
                padding: 32px 20px 24px;
                text-align: center;             /* 手機：全部置中 */
            }

            .footer .footer-brand {
                grid-column: auto;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .footer .footer-brand .logo {
                justify-content: center;
            }

            .footer .brand-desc {
                max-width: 100%;
                margin-left: auto;
                margin-right: auto;
            }

            .footer .social-links {
                justify-content: center;
            }

            .footer .footer-col h4 {
                text-align: center;
                margin-bottom: 12px;
            }

            /* 條目改 horizontal pills 換行（參考 Schoo 範例）*/
            .footer .footer-col ul {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px 16px;
            }
            .footer .footer-col ul li {
                margin-bottom: 0;
            }
            .footer .footer-col ul li a {
                font-size: 13px;
                white-space: nowrap;
            }

            .footer .contact-desc {
                text-align: center;
                margin-bottom: 8px;
            }

            .footer .footer-bottom {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 6px;
            }
        }
