/* =========================================================
   会员中心
   权益展示 / 方案选择 / 开通条
   ========================================================= */

.member-hero {
    margin: 4px 20px 22px; padding: 22px 20px; border-radius: 18px;
    background: linear-gradient(140deg, #33312E, #1A1816);
    color: #F2D89E; position: relative; overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(212, 184, 126, 0.25);
}
.member-hero::after {
    content: '乾'; position: absolute; right: -8px; bottom: -30px;
    font-size: 110px; font-family: 'STKaiti', 'KaiTi', serif;
    opacity: 0.06; font-weight: bold; pointer-events: none;
}
.member-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; position: relative; z-index: 1; }
.member-crown {
    width: 44px; height: 44px; border-radius: 12px; background: var(--vip-gradient);
    color: var(--vip-text); display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.member-hero h2 { font-size: 17px; color: #F2D89E; margin-bottom: 4px; letter-spacing: 1px; }
.member-hero p { font-size: 12px; color: rgba(255, 255, 255, 0.62); line-height: 1.5; }
.member-status-dot {
    display: inline-block; width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.4); margin-right: 6px; vertical-align: middle;
}
.member-status-dot.active { background: #D4B87E; }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.benefit-item {
    display: flex; align-items: center; gap: 8px; font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 184, 126, 0.18);
    border-radius: 10px; padding: 9px 10px;
}
.benefit-item svg { width: 14px; height: 14px; color: #D4B87E; flex-shrink: 0; }

/* 方案 */
.plan-list { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.plan-card {
    position: relative; border: 1px solid var(--border-color); background: #FFFFFF;
    border-radius: 14px; padding: 16px; cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.plan-card:active { background: #FBF9F5; }
.plan-card.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 1px var(--accent-gold), var(--shadow-sm);
    background: #FFFDF8;
}
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-right: 24px; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--text-main); }
.plan-price { font-size: 16px; font-weight: 700; color: var(--accent-red); }
.plan-price small { font-size: 11px; color: var(--text-light); font-weight: 400; margin-left: 2px; }
.plan-desc { font-size: 12px; color: var(--text-sub); margin-top: 6px; line-height: 1.6; padding-right: 26px; }
.plan-badge {
    position: absolute; top: -9px; left: 16px;
    background: var(--vip-gradient); color: var(--vip-text);
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
}
.plan-check {
    position: absolute; right: 14px; bottom: 14px;
    width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: transparent; font-size: 11px; line-height: 1;
}
.plan-card.selected .plan-check { background: var(--accent-gold); border-color: var(--accent-gold); color: #fff; }

/* 开通条 */
.member-cta {
    margin: 20px 20px 6px; padding: 12px 12px 12px 16px;
    display: flex; align-items: center; gap: 12px;
    background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.member-cta .cta-price { flex: 1; display: flex; align-items: baseline; gap: 3px; }
.member-cta .cta-price strong { font-size: 22px; color: var(--accent-red); letter-spacing: 0.5px; }
.member-cta .cta-price span { font-size: 11px; color: var(--text-light); }
.member-cta button {
    border: none; background: var(--accent-dark); color: #FFFFFF;
    font-family: inherit; font-size: 14px; font-weight: 600;
    padding: 12px 26px; border-radius: 12px; cursor: pointer;
}
.member-cta button:active { opacity: 0.85; }

.member-note { margin: 12px 24px 0; font-size: 11px; color: var(--text-light); line-height: 1.8; }

/* 常见问题 */
.faq-list { margin: 0 20px; background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; }
.faq-item { padding: 14px 16px; border-bottom: 1px solid #F5F2EC; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.faq-a { font-size: 12px; color: var(--text-sub); line-height: 1.7; }


/* 购买年限 */
.duration-tabs { display: flex; gap: 8px; padding: 0 20px 14px; }
.duration-tab {
    flex: 1; padding: 9px 0; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--border-color); background: #FFFFFF;
    font-family: inherit; font-size: 12.5px; color: var(--text-sub);
}
.duration-tab.active { border-color: var(--accent-gold); background: #FFFDF8; color: var(--text-main); font-weight: 700; }
.plan-card.disabled { opacity: 0.55; cursor: not-allowed; }
.plan-card.disabled .plan-badge { background: #D8D2C6; color: #66635E; }
.member-cta button:disabled { background: #C9C4BA; cursor: not-allowed; }
.member-promo-tip {
    display: none; font-size: 9px; color: var(--accent-red);
    margin-left: 4px; white-space: nowrap;
}

/* 会员开通支付方式 */
.member-pay-mask {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: flex-end; justify-content: center;
    background: rgba(25, 22, 18, 0.5);
}
.member-pay-mask.show { display: flex; }
.member-pay-sheet {
    width: 100%; max-width: 420px;
    background: #FCFCFA; border-radius: 22px 22px 0 0;
    padding: 8px 20px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(30, 25, 20, 0.18);
    animation: memberPayUp .26s ease-out;
}
.mp-handle {
    width: 34px; height: 4px; border-radius: 2px;
    background: #DDD5C8; margin: 0 auto 12px;
}
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mp-head h3 { font-size: 16px; font-weight: 700; color: var(--text-main); letter-spacing: 1px; }
.mp-close {
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: transparent; color: var(--text-light); font-size: 22px; cursor: pointer;
}
.mp-plan {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 14px; margin-bottom: 14px;
    background: #FFFFFF; border: 1px solid #F0EBE1; border-radius: 12px;
}
.mp-plan-main { display: flex; flex-direction: column; gap: 3px; }
.mp-plan-main b { font-size: 13px; color: var(--text-main); }
.mp-plan-main span { font-size: 10px; color: var(--text-light); }
.mp-plan-price { display: flex; align-items: baseline; gap: 6px; }
.mp-plan-price strong { font-size: 22px; color: var(--accent-red); font-weight: 700; }
.mp-plan-price s { font-size: 10px; color: var(--text-light); }
.mp-label { font-size: 11px; color: var(--text-sub); margin-bottom: 2px; }
.mp-methods { background: #FFFFFF; border: 1px solid #F0EBE1; border-radius: 12px; padding: 0 14px; }
.mp-methods .pay-row:first-child { border-top: none; }
.mp-submit {
    width: 100%; height: 46px; margin-top: 16px; border: none; border-radius: 14px;
    background: var(--accent-dark); color: #FFFFFF; font-family: inherit;
    font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
}
.mp-note { margin-top: 9px; text-align: center; font-size: 9.5px; color: var(--text-light); }

@keyframes memberPayUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mp-notice {
    margin-top: 9px; padding: 9px 11px;
    background: #FBF7EF; border: 1px solid #F0E7D8; border-radius: 8px;
    font-size: 9.5px; line-height: 1.7; color: var(--text-light);
}
