/* ============================================================
   会员 开通 / 续购 弹窗（仅前端演示）—— 开通与续购复用同一套样式
   ============================================================ */
body.vipm-open { overflow: hidden; }
.vipm-mask {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 10000;
}
.vipm-mask.show { opacity: 1; visibility: visible; }
.vipm {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0;
    max-width: 500px; margin: 0 auto;
    display: flex; flex-direction: column;
    background: radial-gradient(120% 55% at 50% 0%, #3a2410 0%, #1c1206 45%, #0d0a06 100%);
    transform: translateY(100%); transition: transform .3s ease; z-index: 10001; color: #f3e7d3;
}
.vipm.show { transform: translateY(0); }
.vipm-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 20px; }

.vipm-topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; }
.vipm-back, .vipm-more {
    color: #e9d9bf !important; font-size: 20px; text-decoration: none !important;
    width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}

.vipm-hd { text-align: center; padding: 2px 0 18px; }
.vipm-title { margin: 0; font-size: 22px; font-weight: 800; color: #ffd66b; }
.vipm-subtitle { margin: 8px 0 0; font-size: 12.5px; color: #caa978; }

/* 当前状态卡 */
.vipm-current { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; }
.vipm-current-gray { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.vipm-current-green { background: rgba(46, 160, 90, 0.12); border: 1px solid rgba(74, 200, 120, 0.45); }
.vipm-cur-ico { font-size: 20px; flex-shrink: 0; }
.vipm-cur-main { flex: 1; min-width: 0; }
.vipm-cur-l1 { font-size: 13px; color: #d8c4a4; }
.vipm-cur-l1 b { color: #fff; }
.vipm-current-green .vipm-cur-l1 b { color: #7ee29b; }
.vipm-cur-l2 { margin-top: 3px; font-size: 13px; font-weight: 700; color: #ffe9c2; }
.vipm-cur-l3 { margin-top: 3px; font-size: 11px; color: #a98c63; }
.vipm-cur-btn {
    flex-shrink: 0; align-self: center; padding: 5px 10px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25); color: #e9d9bf !important; font-size: 11.5px; text-decoration: none !important; white-space: nowrap;
}

.vipm-sec-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
.vipm-sec-title { font-size: 15px; font-weight: 800; color: #ffe9c2; }
.vipm-sec-hint { font-size: 11px; color: #caa978; }

/* 套餐网格 */
.vipm-pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.vipm-pkg {
    position: relative; border-radius: 12px; padding: 16px 10px 12px; text-align: center;
    background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(255, 255, 255, 0.12); cursor: pointer; overflow: hidden;
}
.vipm-pkg.on { border-color: #ffc24b; background: linear-gradient(180deg, rgba(255, 180, 60, 0.18), rgba(255, 140, 30, 0.08)); }
.vipm-pkg-ribbon { position: absolute; left: -26px; top: 11px; transform: rotate(-45deg); background: #e2453b; color: #fff; font-size: 9px; padding: 2px 26px; }
.vipm-pkg-badge { position: absolute; right: 0; top: 0; background: linear-gradient(90deg, #ff9a3d, #ff6a00); color: #fff; font-size: 9px; padding: 2px 7px; border-bottom-left-radius: 8px; }
.vipm-pkg-name { font-size: 14px; font-weight: 700; color: #ffe9c2; }
.vipm-pkg-price { margin-top: 6px; font-size: 13px; color: #ffce5e; }
.vipm-pkg-price b { font-size: 26px; font-weight: 800; }
.vipm-pkg-origin { font-size: 11px; color: #8a7657; text-decoration: line-through; margin-top: 2px; }
.vipm-pkg-daily { font-size: 10.5px; color: #a98c63; margin-top: 3px; }
.vipm-pkg-tag { display: inline-block; margin-top: 8px; font-size: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(226, 69, 59, 0.18); color: #ff8a7a; }
.vipm-tag-gold { background: rgba(255, 180, 60, 0.18); color: #ffce5e; }
.vipm-tag-green { background: rgba(74, 200, 120, 0.18); color: #7ee29b; }

/* 权益 */
.vipm-benefits { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.vipm-benefits-title { font-size: 14px; font-weight: 800; color: #ffe9c2; margin-bottom: 10px; }
.vipm-benefit-row { font-size: 12.5px; color: #d8c4a4; padding: 5px 0; }
.vipm-benefit-row b { color: #fff7ec; }
.vipm-check { color: #5ed98a; margin-right: 6px; font-weight: 800; }

/* 支付方式 */
.vipm-pays { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.vipm-pay { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(255, 255, 255, 0.12); cursor: pointer; }
.vipm-pay.on { border-color: #ffc24b; background: rgba(255, 180, 60, 0.08); }
.vipm-pay-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: rgba(255, 255, 255, 0.1); }
.vipm-pay-name { flex: 1; font-size: 14px; color: #f3e7d3; }
.vipm-pay-tag { font-size: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(74, 200, 120, 0.18); color: #7ee29b; }
.vipm-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); position: relative; flex-shrink: 0; }
.vipm-pay.on .vipm-radio { border-color: #ffc24b; }
.vipm-pay.on .vipm-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #ffc24b; }

/* 说明 */
.vipm-note { background: rgba(255, 255, 255, 0.03); border-radius: 12px; padding: 12px 14px; }
.vipm-note-title { font-size: 12px; font-weight: 700; color: #ffce5e; margin-bottom: 6px; }
.vipm-note p { margin: 0 0 6px; font-size: 11px; line-height: 1.6; color: #a98c63; }
.vipm-note b { color: #d8c4a4; }
.vipm-note-link { display: inline-block; margin-top: 4px; font-size: 11px; color: #ffce5e !important; text-decoration: none !important; }

/* 底部支付条 */
.vipm-bar { flex-shrink: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 14, 6, 0.96); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.vipm-bar-main { display: flex; align-items: center; gap: 12px; }
.vipm-bar-info { flex: 1; min-width: 0; }
.vipm-bar-note { display: block; font-size: 11px; color: #a98c63; }
.vipm-bar-price { font-size: 13px; color: #caa978; }
.vipm-bar-price b { font-size: 22px; font-weight: 800; color: #ffce5e; }
.vipm-bar-price s { color: #8a7657; font-size: 12px; margin-left: 4px; }
.vipm-pay-btn { flex-shrink: 0; padding: 12px 26px; border-radius: 999px; background: linear-gradient(90deg, #ffc24b, #ff9a18); color: #5a3a00 !important; font-size: 15px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.vipm-agree { display: block; margin-top: 8px; font-size: 11px; color: #a98c63; }
.vipm-agree a { color: #ffce5e !important; text-decoration: none; }
.vipm-agree input { vertical-align: middle; margin-right: 4px; }

/* ============================================================
   会员相关 居中弹窗：购买成功 / 会员即将到期（仅前端演示）
   ============================================================ */
.vipd-mask {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
    display: none; align-items: center; justify-content: center; padding: 0 30px; z-index: 10010;
}
.vipd-mask.show { display: flex; }
.vipd {
    width: 100%; max-width: 330px; background: #fff; border-radius: 18px;
    padding: 18px 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.vipd-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 14px; }
.vipd-title { font-size: 17px; font-weight: 800; color: #1f2329; }
.vipd-x {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    color: #c4c4c4 !important; font-size: 22px; line-height: 1; text-decoration: none !important;
}
.vipd-primary {
    display: block; text-align: center; margin-top: 18px; padding: 13px; border-radius: 999px;
    background: linear-gradient(90deg, #ffd24b, #f5a623); color: #5a3a00 !important;
    font-size: 16px; font-weight: 800; text-decoration: none !important; box-shadow: 0 8px 18px rgba(245, 166, 35, 0.35);
}
.vipd-primary-orange { background: linear-gradient(90deg, #ff9f1a, #f57c00); color: #fff !important; box-shadow: 0 8px 18px rgba(245, 124, 0, 0.35); }
.vipd-link { display: block; text-align: center; margin-top: 14px; color: #9aa0a6 !important; font-size: 14px; text-decoration: none !important; }

/* 购买成功卡 */
.vipd-success-card { background: linear-gradient(180deg, #fff6d6, #ffe9a8); border-radius: 14px; padding: 22px 16px; text-align: center; }
.vipd-crown { font-size: 40px; line-height: 1; }
.vipd-success-l1 { margin-top: 10px; font-size: 15px; color: #7c4a00; }
.vipd-success-l1 b { font-weight: 800; }
.vipd-success-l2 { margin-top: 12px; font-size: 13px; color: #9a6b1f; }
.vipd-success-date { margin-top: 4px; font-size: 20px; font-weight: 800; color: #e2453b; }
.vipd-success-note { margin-top: 14px; font-size: 12px; line-height: 1.7; color: #a07c3a; }

/* 会员即将到期卡 */
.vipd-expire-body { background: #fff8f1; border-radius: 14px; padding: 16px; }
.vipd-expire-hero { text-align: center; padding: 6px 0 12px; border-bottom: 1px dashed #f1d3a6; margin-bottom: 12px; }
.vipd-expire-days-line { font-size: 14px; color: #5a6066; line-height: 1.4; }
.vipd-expire-days-num { font-size: 28px; font-weight: 800; color: #e2453b; padding: 0 4px; vertical-align: -2px; }
.vipd-expire-date { margin-top: 4px; font-size: 13px; color: #9a6b1f; }
.vipd-expire-lose { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #1f2329; }
.vipd-expire-list { margin: 0; padding-left: 18px; }
.vipd-expire-list li { font-size: 12.5px; line-height: 1.65; color: #5a6066; margin-bottom: 2px; }
.vipd-expire-list li:last-child { margin-bottom: 0; }
.vipd-expire-ok { margin: 12px 0 0; font-size: 12.5px; color: #18a85a; font-weight: 600; }
