/* Member pages (2026-10-06). */
.member-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px;align-items:start;padding-block:48px 72px}
.member-card{padding:32px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 18px 40px rgb(15 23 42/.06)}
.member-card.narrow{max-width:560px;margin-top:20px}
.member-kicker{margin:0 0 8px;font-size:13px;font-weight:700;color:var(--primary);letter-spacing:.04em}
.member-card h1,.member-hero h1{margin:0;font-size:clamp(26px,3vw,34px)}
.member-lede{margin:8px 0 22px;color:var(--muted)}
.member-card .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}.member-card .form-grid.single{grid-template-columns:1fr}
.member-card .form-field.wide{grid-column:1/-1}
.member-card label{display:block;font-size:14px;font-weight:600;margin-bottom:6px;color:#334155}
.member-card input:not([type=checkbox]),.member-card select{width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;font:inherit;background:#fff}
.member-card input:focus,.member-card select:focus{outline:3px solid rgb(37 99 235/.25);border-color:var(--primary)}
.check-row{display:flex!important;gap:10px;align-items:flex-start;font-weight:500!important}.check-row input{width:20px;height:20px;margin-top:2px;accent-color:var(--primary);flex-shrink:0}
.field-help{margin:6px 0 0;font-size:12px;color:var(--muted)}.field-error{margin-top:6px;font-size:13px;color:#b91c1c}
.has-error input,.has-error select{border-color:#ef4444;background:#fef2f2}
.form-errors{margin-bottom:16px;padding:12px 14px;border-radius:12px;background:#fef2f2;color:#991b1b;font-size:14px}.form-errors ul{margin:0;padding-left:18px}
.member-submit{width:100%;min-height:52px;margin-top:22px;font-size:16px}
.member-switch{margin:18px 0 0;text-align:center;font-size:14px}.member-forgot{margin:10px 0 0;text-align:center;font-size:13px;color:var(--muted)}
.member-aside{padding:28px;border-radius:18px;background:var(--dark-secondary);color:var(--light-text)}
.member-aside h2{margin:0 0 16px;font-size:18px}
.member-perks{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.member-perks li{display:flex;gap:12px}.member-perks .ui-icon{width:22px;height:22px;color:var(--cyan);flex-shrink:0;margin-top:2px}
.member-perks span{display:grid;gap:2px}.member-perks small{color:var(--light-muted);font-size:13px;line-height:1.6}
.member-note{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--dark-border);font-size:13px;color:var(--light-muted)}
.member-dash{padding-block:40px 72px}
.member-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:28px 32px;border-radius:18px;background:linear-gradient(135deg,#0b1220,#13213d);color:#fff}
.member-hero .member-lede{color:var(--light-muted);margin-bottom:0}.member-hero .member-kicker{color:var(--cyan)}
.member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.member-stat{padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.member-stat h2{margin:0;font-size:14px;color:var(--muted);font-weight:600}
.stat-value{margin:10px 0 6px;font-size:34px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.stat-value span{font-size:20px;margin-left:2px;color:var(--muted)}
.stat-pt .stat-value{color:var(--primary)}.tier-agent .stat-value{color:#b45309}
.stat-note{margin:0;font-size:13px;color:var(--muted);line-height:1.6}
.member-contact{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 10px}
.member-contact .footer-chip{color:var(--text);border-color:var(--border);background:#fff}
.flash-list{padding-top:16px}.flash{margin:0 0 8px;padding:12px 16px;border-radius:12px;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;font-size:14px}
@media(max-width:900px){.member-layout{grid-template-columns:1fr}.member-grid{grid-template-columns:1fr}}
@media(max-width:560px){.member-card{padding:22px 18px}.member-card .form-grid{grid-template-columns:1fr}.member-hero{padding:22px}}
.member-card .check-row span{color:var(--text);font-size:14px;font-weight:500;line-height:1.6}.member-card.narrow h2{margin:0 0 16px;font-size:20px}
.notice-soft{padding:16px 18px;border-radius:14px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;margin:0 0 18px}
.notice-soft p{margin:4px 0 0;font-size:14px}.notice-soft.warn{background:#fffbeb;border-color:#fde68a;color:#78350f}.notice-soft.ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.notice-soft .member-contact{margin-top:12px}.notice-soft .button{margin-top:12px}
.verify-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:20px}.verify-banner .button{margin:0}
.otp-send{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}.otp-send .button{flex:1;min-height:48px}
.requirements{margin:0 0 20px;padding:16px 18px;border-radius:14px;background:var(--subtle);border:1px solid var(--border)}
.requirements h2{margin:0 0 8px;font-size:14px}.requirements ul{margin:0;padding-left:18px;font-size:14px;line-height:1.8}
.stat-value.small{font-size:24px}.stat-action{margin-top:12px;min-height:44px}
.member-card input[type=file]{width:100%;padding:12px;border:1px dashed var(--border);border-radius:12px;background:var(--subtle)}
.wa-verify{margin-top:22px}.wa-verify h2,.wa-alt{font-size:19px;margin:0 0 12px}.wa-alt{margin-top:28px;padding-top:22px;border-top:1px solid var(--border)}
.wa-steps{margin:0 0 18px;padding-left:20px;color:var(--muted);font-size:15px;line-height:1.7}.wa-steps strong{color:var(--text)}
.wa-code{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:14px 18px;border:1px solid var(--border);border-radius:12px;background:var(--subtle)}
.wa-code span{font-size:14px;color:var(--muted)}.wa-code strong{font-size:28px;letter-spacing:.18em;font-variant-numeric:tabular-nums;color:var(--text)}
.wa-verify .member-submit{width:100%;gap:10px}

.member-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}.member-facts div{padding:12px 14px;border:1px solid var(--border,#e2e8f0);border-radius:12px}.member-facts dt{font-size:13px;color:var(--muted,#64748b);margin:0 0 4px}.member-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}.member-facts .muted{color:var(--muted,#64748b);font-weight:500}
@media(max-width:540px){.member-facts{grid-template-columns:1fr}}

/* 会员钱包与奖品（幸运盲盒） */
.member-wallet{margin-top:28px}.member-wallet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.member-wallet-head h2{margin:0;font-size:20px}
.member-link{display:block;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.member-link:hover{border-color:var(--primary);box-shadow:var(--shadow)}

.phone-input{display:flex;gap:8px}.member-card .phone-input select{flex:0 0 auto;width:auto;min-width:132px}.member-card .phone-input input{flex:1;min-width:0}
.seg{display:flex;gap:4px;padding:4px;margin:0 0 18px;border:1px solid var(--border);border-radius:12px;background:var(--subtle)}.seg.small{margin:4px 0 0}
.seg label{flex:1;margin:0!important;cursor:pointer;position:relative}.member-card .seg input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;margin:0;border:0}
.seg span{display:flex;align-items:center;justify-content:center;min-height:42px;padding:6px 8px;border-radius:9px;font-size:14px;font-weight:600;color:#475569;text-align:center}
.seg input:checked+span{background:#fff;color:var(--primary);box-shadow:0 1px 3px rgb(15 23 42/.12)}.seg input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
.login-form:has(input[name=login_by][value=username]:checked) .when-phone,.login-form:has(input[name=login_by][value=phone]:checked) .when-username{display:none}
.login-form:has(input[name=method][value=authenticator]:checked) .when-password,.login-form:has(input[name=method][value=password]:checked) .when-authenticator{display:none}
.member-subhead{margin:4px 0 8px;font-size:18px}.member-divider{border:0;border-top:1px solid var(--border);margin:28px 0 22px}
.totp-steps{margin:20px 0 0;padding-left:22px;display:grid;gap:22px}.totp-steps li>strong{display:block;font-size:16px;margin-bottom:4px}.totp-steps li>span{display:block;color:var(--muted);font-size:14px;line-height:1.65}
.totp-qr{margin:14px 0 10px;width:200px;max-width:100%}.totp-qr svg{width:100%;height:auto;display:block;border:1px solid var(--border);border-radius:12px}
.totp-open{margin:4px 0 10px}.totp-key{font-size:13px;color:var(--muted);margin:0}.totp-key span{display:block;margin-bottom:4px}.totp-key code{display:inline-block;padding:8px 10px;border-radius:8px;background:var(--subtle);color:var(--text);font-size:15px;letter-spacing:.08em;overflow-wrap:anywhere}
.totp-welcome .button{margin-top:12px}
.member-captcha{margin:18px 0 0;min-height:66px}
.change-phone{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.change-phone summary{cursor:pointer;font-weight:600;font-size:15px;color:var(--primary-hover);min-height:44px;display:flex;align-items:center}.change-phone form{margin-top:12px}
.verify-logout{display:flex;align-items:center;gap:6px;margin-top:14px;font-size:14px;color:var(--muted)}.verify-logout .text-link{background:none;border:0;padding:0;cursor:pointer}
/* Login: one centred card, one tab row, method switch as a text link. */
.member-auth{display:flex;justify-content:center;padding-block:48px 72px}
.auth-card{width:100%;max-width:460px}
.auth-fields{display:grid;gap:16px}
.auth-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}.auth-label-row label{margin-bottom:0!important}
.auth-forgot{font-size:13px;font-weight:600;color:var(--primary-hover)}.auth-forgot:hover{text-decoration:underline}
.auth-method{border:0;padding:0;margin:-4px 0 0}
.auth-method label{display:none;cursor:pointer;margin:0!important;font-size:14px;font-weight:600;color:var(--primary-hover)}
.auth-method label:hover span{text-decoration:underline}
.member-card .auth-method input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;margin:0;border:0}
.auth-method input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
.login-form:has(input[name=method][value=password]:checked) .auth-method .to-authenticator,.login-form:has(input[name=method][value=authenticator]:checked) .auth-method .to-password{display:inline-flex}
.member-captcha{margin:18px 0 0;min-height:0}
@media(max-width:540px){.member-auth{padding-block:24px 48px}}

/* OTP 验证页：收不到验证码时的客服求助 */
.otp-help{margin:18px 0 0}
