/* 全站页脚会员 CTA（首页 / 详情页共用） */

/* ==========================================================================
 * Footer 会员 CTA
 * 放在版权区上方：深色底上用金色点缀，浏览完列表后的二次转化入口
 * ========================================================================== */
.footer-vip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(227, 171, 97, .28);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(227, 171, 97, .18), transparent 55%),
        linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.footer-vip-copy {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    min-width: 0;
    width: 100%;
}

.footer-vip-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .5rem;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: #4a3106;
    background: linear-gradient(135deg, #ffdc94, #e3ab61);
    box-shadow: 0 8px 16px -10px rgba(146, 96, 8, .9);
}

/* 必须 flex:1，否则窄屏文字区按内容收缩，标题易被挤成「末字单独一行」 */
.footer-vip-text {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-vip-title {
    font-size: .975rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    /* 避免中文被拆成「末字独行」 */
    overflow-wrap: normal;
    word-break: keep-all;
}

.footer-vip-title-short,
.footer-vip-sub-short {
    display: none;
}

.footer-vip-sub {
    margin-top: .2rem;
    font-size: .8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .62);
    overflow-wrap: normal;
    word-break: keep-all;
}

.footer-vip-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .625rem;
}

.footer-vip-link {
    padding: .5rem .75rem;
    border-radius: 10px;
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .78) !important;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease;
}

.footer-vip-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: .5rem 1.125rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
    color: #4a3106 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #ffdc94, #e3ab61);
    box-shadow: 0 8px 18px -10px rgba(146, 96, 8, .95);
    transition: transform .2s ease, box-shadow .2s ease;
}

.footer-vip-cta:active {
    transform: scale(.985);
}

@media (hover: hover) {
    .footer-vip-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, .08);
    }

    .footer-vip-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 22px -10px rgba(146, 96, 8, .95);
        color: #4a3106 !important;
    }
}

@media (max-width: 767.98px) {
    .footer-vip {
        flex-direction: column;
        align-items: stretch;
        gap: .875rem;
        margin-bottom: 1rem;
        padding: 1rem 1.125rem 1.125rem;
        border-radius: 16px;
        -webkit-tap-highlight-color: transparent;
    }

    .footer-vip-copy {
        align-items: flex-start;
        gap: .75rem;
    }

    .footer-vip-badge {
        margin-top: .1rem;
    }

    .footer-vip-title {
        font-size: .875rem;
        line-height: 1.35;
    }

    .footer-vip-title-full,
    .footer-vip-sub-full {
        display: none;
    }

    .footer-vip-title-short,
    .footer-vip-sub-short {
        display: inline;
        white-space: nowrap;
    }

    .footer-vip-sub {
        font-size: .75rem;
        line-height: 1.4;
    }

    /* 极窄屏：略缩字号，保证一行完整显示 */
    @media (max-width: 359.98px) {
        .footer-vip-title {
            font-size: .8125rem;
        }

        .footer-vip-sub {
            font-size: .6875rem;
        }

        .footer-vip-badge {
            min-width: 2.25rem;
            height: 2.25rem;
            font-size: .6875rem;
        }
    }

    .footer-vip-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .5rem;
        width: 100%;
    }

    /* 有「对比权益」时并排；仅主 CTA 时仍占满宽 */
    .footer-vip-actions:has(.footer-vip-link) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    }

    .footer-vip-link,
    .footer-vip-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .footer-vip-link {
        border: 1px solid rgba(255, 255, 255, .18);
        background: rgba(255, 255, 255, .06);
        color: #fff !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-vip-cta,
    .footer-vip-link {
        transition: none;
    }
}


