/* ===== 福利二维码弹窗（高级 · 克制） ===== */

.benefit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.25); /* 弱遮罩，不压迫 */
    display: none;
}

.benefit-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 弹窗卡片 */
.benefit-card {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(241, 193, 157, 0.45);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.06);
    padding: 22px 22px 20px;
    text-align: center;
    position: relative;

    /* 入场动画 */
    animation: benefitIn 0.32s ease-out forwards;
}

/* 关闭按钮 */
.benefit-card .close {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 20px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.benefit-card .close:hover {
    color: #333;
}

/* 标题 */
.benefit-card h3 {
    margin: 4px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* 说明文案 */
.benefit-card p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

/* 二维码 */
.benefit-card img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 1px solid rgba(187, 187, 187, 0.25);
    background: #fafafa;
}

/* 底部按钮 */
.benefit-card .btn-primary {
    margin-top: 16px;
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;

    background: #ff7a2f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 10px 20px rgba(255, 122, 47, 0.25);
    transition: all 0.2s ease;
}

.benefit-card .btn-primary:hover {
    filter: brightness(0.96);
}

/* 入场动画（轻微上移 + 淡入） */
@keyframes benefitIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .benefit-card {
        padding: 18px 18px 16px;
    }

    .benefit-card img {
        width: 160px;
        height: 160px;
    }
}

.benefit-modal.show {
    display: flex;            /* 关键 */
    align-items: center;      /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
}
