/* Footer refined neutral styles */
.footer * {
    box-sizing: border-box;
}

.footer {
    background: #ffffff;
    color: var(--grey-grey-60, #6D6D6D);
    border-top: 1px solid var(--grey-grey-20, #E6E6E6);
    background: var(--white, #FFF);
}

.container {
    width: 80%;
    max-width: 1440px;
    margin: 0 auto;
}

/* 主体布局 */
.footer-body {
    display: flex;
    gap: 50px;
    align-items: start;
    flex-direction: row;
    justify-content: flex-start;
    display: flex;
    padding: 48px 0px;
    align-items: flex-start;
    align-self: stretch;
}

.v-sep {
    width: 1px;
    background: #E6E6E6;
    flex: 0 0 1px;
    align-self: stretch;
}

/* 联系卡片（白底、無色塊） */
.contact-card {
    display: flex;
    min-width: 30%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    flex-shrink: 0;
    width: auto !important;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 8px;
}

.bc-logo-img {
    width: 240px;
    max-width: 100%;
    height: auto;
    display: block;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .contact-list li {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 4px 0;
        max-width:400px;
    }

    .contact-list .pair {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

.icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

    .icon svg, .icon img {
        width: 22px;
        height: 22px;
        display: block;
        object-fit: contain;
        border: none;
        outline: none;
    }

img.icon {
    border: none;
    outline: none;
}

.contact-list a {
    color: var(--grey-grey-60, #6D6D6D);
    font-size: var(--Font-Size-Body---M, 12px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Height-Body---M, 18px); /* 150% */
    text-decoration: none;
}

.contact-list span {
    color: var(--grey-grey-60, #6D6D6D);
    font-size: var(--Font-Size-Body---M, 12px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Height-Body---M, 18px); /* 150% */
}

.contact-list a:hover {
    color: #1F91C2;
    text-decoration: none;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

    .quick-link .pill {
        display: inline-block;
        color: #005697;
        font-style: normal;
        font-weight: 500;
        text-decoration: none;
        text-decoration-line: underline;
        text-decoration-style: dotted;
        text-decoration-color: #04AFFF;
        text-underline-offset: 4px;
    }

        .quick-link .pill:hover {
            color: #1F91C2;
            text-decoration-line: underline;
            text-decoration-style: dotted;
            text-decoration-color: #04AFFF;
            text-underline-offset: 4px;
        }

.app-download {
    padding-top: 10px;
}

.app-title {
    color: var(--grey-grey-70, #555);
    font-size: var(--Font-Size-Body---M, 12px);
    font-weight: 400;
    margin-bottom: 12px;
}

.store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.store-link {
    display: inline-block;
    line-height: 0;
}

.store-badge {
    display: block;
    height: auto;
}
/* Store badge exact widths */
.store-buttons a:nth-child(1) .store-badge {
    width: 96px;
}

.store-buttons a:nth-child(2) .store-badge {
    width: 96px;
}

/* 右侧导航（白底、無色塊） */
.footer-nav {
    padding: 8px 0;
    width: 100%;
}

.nav-grid {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
}

.nav-col h4 {
    margin: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--grey-grey-70, #555);
    font-size: var(--Font-Size-Body---L, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Height-Body---L, 26px); /* 162.5% */
}

    .nav-col .alink {
        margin: 0;
        margin-bottom: 12px;
        font-size: 16px;
        color: var(--grey-grey-70, #555);
        font-size: var(--Font-Size-Body---L, 16px);
        font-style: normal;
        font-weight: 400;
        line-height: var(--Font-Height-Body---L, 26px);
        /* 162.5% */
    }


    .nav-col h4 a {
        margin: 0;
        margin-bottom: 12px;
        font-size: 16px;
        color: var(--grey-grey-70, #555);
        font-size: var(--Font-Size-Body---L, 16px);
        font-style: normal;
        font-weight: 400;
        line-height: var(--Font-Height-Body---L, 26px); /* 162.5% */
    }

.nav-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
}

    .nav-col ul li .badge-new {
        margin-left: 4px;
    }

.nav-col a {
    color: var(--grey-grey-60, #6D6D6D);
    font-size: var(--Font-Size-Body---M, 14px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Height-Body---M, 24px); /* 171.429% */
    text-decoration: none;
}

.nav-col .text {
    color: var(--grey-grey-60, #6D6D6D);
    font-size: var(--Font-Size-Body---M, 14px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Height-Body---M, 24px); /* 171.429% */
    text-decoration: none;
}

    .nav-col a:hover {
        color: #1F91C2;
        text-decoration: none;
    }

/* Desktop: use multi-column so short groups stack in one column */
@media (min-width: 769px) {
    .nav-grid {
        display: block; /* enable multi-column flow */
        column-count: 4; /* fixed number of columns */
    }

    .nav-col {
        break-inside: avoid-column; /* keep a group intact within a column */
        display: block;
        margin-bottom: 24px;
    }
        /* Standalone columns: groups with many items occupy a single column */
        .nav-col.nav-col--single {
            break-before: column;
            break-after: column;
            /* WebKit fallbacks */
            -webkit-column-break-before: always;
            -webkit-column-break-after: always;
        }
}

/* 底部版权区（灰底） */
.footer-bottom {
    background: var(--grey-grey-5, #FBFBFB);
    display: flex;
    padding: 24px 0;
    flex-direction: column;
    justify-content: center;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

    .footer-bottom-inner .copyright-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex: 1 0 0;
    }

    .footer-bottom-inner .copyright-line {
        flex: 1 1 100%;
    }

.link-row {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
    .link-row .badge-new {
        margin-left: 4px;
    }

    .link-row a {
        display: inline-block;
        color: var(--grey-grey-60, #6D6D6D);
        font-size: var(--Font-Size-Body---S, 12px);
        font-style: normal;
        font-weight: 400;
        line-height: var(--Font-Height-Body---S, 18px); /* 150% */
        text-decoration: none;
    }

        .link-row a:hover {
            color: #1F91C2;
            text-decoration: none;
        }

.footer-bottom-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex: 1 0 0;
    align-items: center;
}

/* 版权导航分割线（使用 after）*/
.copyright-nav .link-row {
    align-items: center;
    gap: 0;
}

    .copyright-nav .link-row li {
        display: inline-flex;
        align-items: center;
        position: relative;
        padding-bottom: 4px;
    }

        .copyright-nav .link-row li::after {
            content: "";
            width: 1px;
            height: 18px;
            background: var(--grey-grey-20, #E6E6E6);
            display: inline-block;
            margin: 0 6px;
        }

        .copyright-nav .link-row li:last-child::after {
            display: none;
        }

.copyright-line {
    color: var(--grey-grey-60, #6D6D6D);
    font-size: var(--Font-Size-Body---S, 12px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Height-Body---S, 18px); /* 150% */
}

.social-media {
    display: flex;
    gap: 10px;
}

.sm-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E6E6E6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    text-decoration: none;
}

    .sm-btn:hover {
        background: #f3f4f6;
    }

.sm-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

    .sm-icon rect, .sm-icon circle {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
    }


@media (max-width: 768px) {
    .container {
        width: 100%;
    }

    .footer-body {
        padding: 0;
        flex-direction: column;
        gap: 24px;
    }

    .v-sep {
        display: none;
    }
    /* Stack order: nav above contact on mobile */
    .footer-nav {
        order: 1;
    }

    .contact-card {
        order: 2;
        gap: 12px;
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 24px;
    }

    .nav-grid {
        border-bottom: 1px solid #E6E6E6;
    }

    .bc-logo-img {
        width: 160px;
    }

    .nav-grid .nav-col {
        flex: 1 1 100%;
    }
    /* Keep explicit widths on mobile; ensure auto height */
    .store-badge {
        height: auto;
    }

    .footer-nav[data-accordion="mobile"] .nav-col a {
        font-size: 12px;
    }

    /* Mobile accordion styles for footer nav */
    .footer-nav[data-accordion="mobile"] .nav-col h4 {
        font-size: var(--Font-Size-Body---L, 14px);
        width: 100%;
        padding: 16px 0;
        margin: 0;
        border-top: 1px solid var(--grey-grey-20, #E6E6E6);
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-nav[data-accordion="mobile"] .nav-col .alink {
        font-size: var(--Font-Size-Body---L, 14px);
        width: 100%;
        padding: 16px 0;
        margin: 0;
        border-top: 1px solid var(--grey-grey-20, #E6E6E6);
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding-left: 24px;
        padding-right: 24px;
    }

        .footer-nav[data-accordion="mobile"] .nav-col h4::after {
            content: "";
            width: 10px;
            height: 10px;
            border-right: 2px solid #858585;
            border-bottom: 2px solid #858585;
            transform: rotate(45deg);
            transition: transform .2s ease;
        }

        .footer-nav[data-accordion="mobile"] .nav-col h4[aria-expanded="true"]::after {
            transform: rotate(-135deg);
        }

    .footer-nav[data-accordion="mobile"] .nav-col ul {
        display: none;
        margin: 0;
        margin-bottom: 12px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-nav[data-accordion="mobile"] .nav-col h4[aria-expanded="true"] + ul {
        display: flex;
    }

    .footer-bottom {
        padding: 24px;
    }

    .footer-bottom-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
