/* ─── 会员中心（设计系统一致版） ───
   全部颜色使用 style.css :root 设计令牌，复用 .card / .btn / .feature-hero / .member-badge。
   区块卡片间距统一由全局 .card + .card 处理。 */

.member-center { /* .page-container 已提供 max-width / 居中 / padding */ }

.section-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; }
.section-hint { color: var(--text-secondary); font-size: 0.875rem; margin: -0.4rem 0 1rem; }

/* ─── 会员状态卡 ─── */
.member-status { display: flex; flex-direction: column; gap: 0.75rem; }
.member-status.is-expired { border-color: var(--accent-300, #fdba74); background: var(--accent-50, #fff7ed); }
.member-status-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.member-expired-tag { color: var(--accent-600); font-size: 0.8125rem; font-weight: 700; }
.member-status-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-left: auto; }
.member-status-item { display: flex; flex-direction: column; }
.ms-label { font-size: 0.75rem; color: var(--text-tertiary); }
.ms-value { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.ms-value small { font-size: 0.75rem; font-weight: 400; color: var(--text-tertiary); }
.member-expired-notice { color: var(--accent-600); font-weight: 600; font-size: 0.875rem; }

/* ─── 档位卡片 ─── */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tier-card {
    border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 1.25rem 1rem; text-align: center; position: relative;
    background: var(--bg-card);
    display: flex; flex-direction: column;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tier-card.popular { border-color: #f59e0b; }            /* 金档强调（amber） */
.tier-card.premium { border-color: var(--brand-500); }    /* 钻石档强调（品牌靛蓝） */
.tier-card.is-current { background: var(--brand-50, #eef2ff); border-color: var(--brand-500); }
.tier-flag {
    position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
    background: #f59e0b; color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 0.15rem 0.7rem; border-radius: var(--radius-full); white-space: nowrap;
}
.tier-flag.premium { background: var(--brand-600); }
.tier-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.tier-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.tier-price { font-size: 1.6rem; font-weight: 800; color: var(--brand-600); }
.tier-price small { font-size: 0.85rem; font-weight: 400; color: var(--text-tertiary); }
.tier-points { font-size: 0.8125rem; font-weight: 600; color: #b45309; margin: 0.25rem 0 0.75rem; min-height: 1.1rem; }
.tier-modules { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; font-size: 0.75rem; color: var(--text-secondary); flex: 1; }
.tier-modules li { padding: 0.15rem 0 0.15rem 1.1rem; position: relative; }
.tier-modules li::before { content: '✅'; position: absolute; left: 0; font-size: 0.7rem; }
.tier-card .btn { margin-top: auto; }

/* ─── 充值 ─── */
.recharge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.recharge-card {
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 1rem 0.5rem; text-align: center; cursor: pointer; background: var(--bg-card);
    font: inherit; color: inherit;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}
.recharge-card:hover { border-color: var(--brand-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.recharge-amount { font-size: 1.5rem; font-weight: 800; color: var(--brand-600); }
.recharge-label { font-size: 0.75rem; color: var(--text-tertiary); }
.recharge-price { font-size: 0.875rem; font-weight: 600; margin-top: 0.25rem; color: var(--text-secondary); }
.recharge-custom { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; max-width: 420px; }

/* ─── 订单表 ─── */
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.orders-table th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--border-light); color: var(--text-secondary); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.orders-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border-light); }
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; color: var(--text-tertiary); }
.order-status.status-pending { color: #b45309; font-weight: 600; }
.order-status.status-paid { color: #16a34a; font-weight: 600; }
.order-status.status-expired { color: var(--text-tertiary); }

/* ─── 个人中心 · 积分卡（与会员中心共享设计令牌） ─── */
.profile-col { display: flex; flex-direction: column; }
.profile-col .card + .card { margin-top: 1.25rem; }
.profile-points-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.profile-points-title { margin: 0; font-size: 0.95rem; }
.profile-points-level { font-size: 0.78rem; font-weight: 700; padding: 0.18rem 0.6rem; border-radius: var(--radius-full); background: var(--accent-100, #ffedd5); color: var(--accent-600, #ea580c); }
.profile-points-grid { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.pts-cell { flex: 1; min-width: 110px; border-radius: var(--radius-md); padding: 0.8rem 1rem; }
.pts-balance { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff; }
.pts-cell:not(.pts-balance) { background: var(--bg-card); border: 1px solid var(--border-light); }
.pts-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.pts-label { font-size: 0.76rem; opacity: 0.9; }
.pts-cell:not(.pts-balance) .pts-label { color: var(--text-tertiary); }
.profile-points-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }

/* ─── 响应式 ─── */
@media (max-width: 768px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
    .recharge-grid { grid-template-columns: repeat(3, 1fr); }
    .member-status-meta { margin-left: 0; width: 100%; }
}

/* ─── 普通用户权益说明卡（会员中心概览） ─── */
.member-normal-note {
    border: 1px solid var(--brand-200, #c7d2fe);
    background: linear-gradient(180deg, var(--brand-50, #eef2ff), #fff);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.85rem;
}
.mnn-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.mnn-badge {
    font-size: 0.72rem; font-weight: 700; color: #fff;
    background: var(--brand-500); padding: 0.18rem 0.6rem; border-radius: var(--radius-full);
}
.mnn-title { font-size: 0.92rem; color: var(--text-secondary); }
.mnn-title b { color: var(--brand-700, #4f46e5); }
.mnn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.mnn-col { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 0.8rem 0.9rem; }
.mnn-col-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.5rem; }
.mnn-free { color: #16a34a; }
.mnn-lock { color: var(--text-tertiary); }
.mnn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.32rem; }
.mnn-list li { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.35rem; }
.mnn-list li b { color: var(--text-primary); }
.mnn-lock-list li { color: var(--text-tertiary); }
.mnn-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
    font-size: 0.82rem; color: var(--text-secondary);
    border-top: 1px dashed var(--border-light); padding-top: 0.75rem;
}
.mnn-foot .btn { white-space: nowrap; }
@media (max-width: 768px) {
    .mnn-cols { grid-template-columns: 1fr; }
}

/* ═══ 收银台支付确认页（与移动端一致）═══ */
#wr-cashier-mask {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(15, 18, 34, 0.55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    animation: wrCashierIn .18s ease;
}
@keyframes wrCashierIn { from { opacity: 0; } to { opacity: 1; } }
.wr-cashier {
    width: 400px; max-width: calc(100vw - 48px);
    background: var(--bg-card, #fff); border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    overflow: hidden; animation: wrCashierUp .2s ease;
}
@keyframes wrCashierUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.wr-cashier-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border-light, #eceef2);
}
.wr-cashier-title { font-size: 15px; font-weight: 700; color: var(--text-primary, #1f2330); }
.wr-cashier-x {
    border: none; background: none; font-size: 15px; cursor: pointer;
    color: var(--text-secondary, #6b7280); padding: 2px 6px; border-radius: 6px;
}
.wr-cashier-x:hover { background: var(--bg-hover, #f4f5f7); }
.wr-cashier-body { padding: 18px; }
.wr-cashier-name { font-size: 13.5px; color: var(--text-secondary, #6b7280); text-align: center; }
.wr-cashier-amount { font-size: 18px; color: var(--text-primary, #1f2330); text-align: center; margin: 8px 0 16px; }
.wr-cashier-amount b { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.wr-cashier-rows { border: 1px solid var(--border-light, #eceef2); border-radius: 12px; overflow: hidden; }
.wr-cashier-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 14px; font-size: 13px; color: var(--text-secondary, #6b7280);
}
.wr-cashier-row + .wr-cashier-row { border-top: 1px solid var(--border-light, #eceef2); }
.wr-cashier-row span:last-child { color: var(--text-primary, #1f2330); font-weight: 600; }
.wr-cashier-mock { font-style: normal; font-size: 11px; color: #d97706; font-weight: 500; }
.wr-cashier-agree {
    display: flex; align-items: flex-start; gap: 7px; margin: 12px 2px 0;
    font-size: 12.5px; color: var(--text-secondary, #6b7280); line-height: 1.6; cursor: pointer;
}
.wr-cashier-agree input { width: 15px; height: 15px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand, #6366f1); }
.wr-cashier-agree a { color: var(--brand, #6366f1); }
.wr-cashier-tip {
    margin-top: 12px; padding: 8px 12px; border-radius: 10px;
    background: #fffbeb; border: 1px solid #fde68a;
    font-size: 11.5px; color: #92400e; line-height: 1.6;
}
.wr-cashier-foot {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 14px 18px; border-top: 1px solid var(--border-light, #eceef2);
}
