/* 页脚 — Vue3 重构版（风格对齐「我的交易」） */
.ft-root {
    width: 100%;
    background: #fff;
}

.ft-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px 40px;
    align-items: flex-start;
}

/* ---- 品牌区 ---- */
.ft-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ft-logo {
    font-size: 24px;
    font-weight: 700;
    color: #02cab9;
    line-height: 1.2;
}

.ft-tagline {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.ft-follow-title {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    margin: 4px 0 0;
}

.ft-social {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ft-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e8eef5;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.ft-social-link:hover {
    border-color: #02cab9;
    box-shadow: 0 4px 16px rgba(2, 202, 185, 0.12);
    transform: translateY(-1px);
}

.ft-social-link img {
    display: block;
}

.ft-social-link--youtube img {
    width: 32px;
    height: 32px;
}

.ft-social-link--xiaohongshu img {
    width: 28px;
    height: 28px;
}

/* ---- 导航列 ---- */
.ft-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.ft-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ft-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    margin: 0 0 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

.ft-nav-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}

.ft-nav-link:hover {
    color: #02cab9;
}

.ft-nav-link--btn {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

/* ---- 设置区 ---- */
.ft-settings {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ft-select-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.ft-select-wrap {
    position: relative;
    flex: 0 0 auto;
}

.ft-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #02cab9;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.ft-select-btn:hover,
.ft-select-btn.is-open {
    background: rgba(2, 202, 185, 0.04);
    box-shadow: 0 2px 8px rgba(2, 202, 185, 0.08);
}

.ft-select-btn img {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.ft-select-btn.is-open img {
    transform: rotate(180deg);
}

.ft-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 240px;
    overflow-y: auto;
}

.ft-select-option {
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ft-select-option:hover {
    background: rgba(2, 202, 185, 0.06);
    color: #02cab9;
}

.ft-select-option.is-active {
    color: #02cab9;
    font-weight: 600;
    background: rgba(2, 202, 185, 0.08);
}

/* ---- 二维码 ---- */
.ft-qr-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.ft-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 80px;
}

.ft-qr-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 1px solid #e8eef5;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
    overflow: hidden;
}

.ft-qr-img-wrap--padded {
    padding: 6px;
}

.ft-qr-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ft-qr-label {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* ---- 版权栏 ---- */
.ft-copyright {
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.ft-copyright-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ft-copyright-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    min-width: 0;
}

.ft-copyright-link,
.ft-copyright-text {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    line-height: 1.5;
}

.ft-copyright-link:hover {
    color: #02cab9;
}

.ft-copyright-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ft-copyright-logo img {
    display: block;
}

/* ---- 响应式：竖屏 / 窄屏 ---- */
@media (max-width: 992px) {
    .ft-main {
        grid-template-columns: 1fr 1fr;
    }

    .ft-settings {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .ft-main {
        grid-template-columns: 1fr;
        padding: 32px 16px 24px;
        gap: 28px;
    }

    .ft-nav {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .ft-select-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-start;
    }

    .ft-select-wrap {
        flex: 1 1 160px;
        min-width: 0;
    }

    .ft-qr-row {
        justify-content: flex-start;
    }

    .ft-copyright-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .ft-nav {
        grid-template-columns: 1fr;
    }

    .ft-select-group {
        flex-direction: column;
    }

    .ft-select-wrap {
        flex: 0 0 auto;
        width: 100%;
    }
}
