:root { --ink:#10231c; --muted:#69756f; --green:#006b51; --line:#dfd6c8; --paper:#fffdfa; --red:#e53126; }
* { box-sizing: border-box; }
body { margin:0; color:var(--ink); background:linear-gradient(145deg,#f5f0e6,#edf5f0); font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif; }
button,input,select { font:inherit; }
[hidden] { display:none !important; }
.wrap { min-height:100vh; padding:22px; display:grid; place-items:center; }
.member-panel { width:min(440px,100%); padding:26px; border:1px solid var(--line); border-radius:8px; background:var(--paper); box-shadow:0 20px 48px rgba(28,44,36,.11); }
.brand { display:flex; align-items:center; gap:12px; margin-bottom:20px; color:inherit; text-decoration:none; }
.brand > span { width:46px; height:46px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--green); font-size:24px; font-weight:900; }
.brand h1,.brand p,.member-form h2,.member-form p { margin:0; }
.brand h1 { font-size:27px; }
.brand p,.member-form p { color:var(--muted); }
.tabs { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:20px; border-bottom:1px solid var(--line); }
.tabs button { min-height:44px; border:0; color:var(--muted); background:transparent; font-weight:900; cursor:pointer; }
.tabs button.active { color:var(--green); border-bottom:3px solid var(--green); }
.member-form { display:grid; gap:14px; }
.member-form > div { margin-bottom:2px; }
.tier-badge { display:inline-flex; width:max-content; margin-bottom:8px; padding:5px 9px; border:1px solid rgba(0,107,81,.2); border-radius:999px; color:var(--green); background:#e8f5ef; font-size:12px; font-weight:900; }
body[data-register-tier="SVIP"] .tier-badge { color:#775000; border-color:rgba(177,127,20,.28); background:#fff2cb; }
.tier-switch { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.tier-switch a { min-height:38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; color:var(--muted); background:#fff; font-size:13px; font-weight:900; text-decoration:none; }
.tier-switch a.active { color:var(--green); border-color:var(--green); background:#f2faf6; }
body[data-register-tier="SVIP"] .tier-switch a.active { color:#775000; border-color:#b17f14; background:#fff8e5; }
.member-form label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:800; }
.member-form input,.member-form select { width:100%; min-height:46px; padding:0 12px; border:1px solid var(--line); border-radius:7px; outline:none; background:#fff; }
.member-form input:focus,.member-form select:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(0,107,81,.08); }
.primary { min-height:46px; border:0; border-radius:7px; color:#fff; background:var(--green); font-weight:900; cursor:pointer; }
.primary:disabled { opacity:.65; }
.secondary-action { min-height:42px; border:1px solid var(--green); border-radius:7px; color:var(--green); background:#f2faf6; font-weight:900; cursor:pointer; }
.secondary-action:disabled { opacity:.65; }
.reset-note { margin:0 !important; color:var(--muted); font-size:12px; line-height:1.6; }
.notice { margin-top:14px; padding:11px 12px; border-left:4px solid #eab63d; background:#fff2cb; font-weight:800; }
.notice.ok { border-color:var(--green); background:#e8f5ef; }
.notice.error { border-color:var(--red); background:#ffebe8; }
.compliance { margin:18px 0 0; padding-top:14px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.6; }
@media (max-width:520px) {
  .wrap { padding:12px; place-items:start center; }
  .member-panel { width:calc(100vw - 24px); max-width:calc(100vw - 24px); min-width:0; padding:20px 16px; }
  .tabs button { min-width:0; padding:0 4px; font-size:13px; }
  .member-form,.member-form label,.member-form input { min-width:0; }
  .member-form h2 { font-size:23px; }
  .member-form p { font-size:13px; line-height:1.6; }
}
