:root {
    color-scheme: light;
    --paper: #f6f3eb;
    --surface: #fffdf7;
    --ink: #243d35;
    --muted: #55645b;
    --green: #23584a;
    --line: #e1dfd2;
    --serif: "Kaiti SC", STKaiti, KaiTi, "Songti SC", SimSun, serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 50% 0%, #fffcf4, transparent 60%), var(--paper);
    color: var(--ink);
    font: 16px/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--green); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #a06722; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 39px); line-height: 1.25; letter-spacing: -.04em; }
h2 { font-size: 22px; line-height: 1.4; }
h3 { font-size: 18px; line-height: 1.4; }
.member-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.member-header { border-bottom: 1px solid var(--line); background: #fffdf7b8; }
.member-header-inner, .member-header a, .member-footer { display: flex; align-items: center; }
.member-header-inner { min-height: 78px; justify-content: space-between; gap: 16px; }
.member-brand { gap: 12px; font-size: 20px; font-weight: 750; text-decoration: none; color: var(--ink); line-height: 1.2; }
.member-seal {
    display: grid; place-items: center; width: 42px; height: 42px; flex: none;
    border-radius: 11px; background: #963c35; color: #fff6dd;
    box-shadow: inset 0 0 0 3px #963c35, inset 0 0 0 4px #ffc2a05e;
    font: 27px/1 var(--serif);
}
.member-brand small { display: block; margin-top: 5px; font: 700 9px/1 system-ui, sans-serif; letter-spacing: .12em; color: var(--muted); }
.member-home { gap: 7px; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 650; }
.member-home:hover { text-decoration: underline; }
.member-home svg { flex: none; }
.member-header-actions { display: flex; align-items: center; gap: 12px; }
.member-language { min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; cursor: pointer; }
[dir="rtl"] .member-home svg { transform: scaleX(-1); }
.member-main { flex: 1; padding-block: clamp(28px, 5vw, 68px); }
.member-footer { min-height: 68px; gap: 15px; flex-wrap: wrap; padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.member-footer a { color: inherit; }

.member-auth {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); width: min(100%, 1000px);
    margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 28px;
    background: var(--surface); box-shadow: 0 20px 65px #433b2614;
}
.member-intro {
    position: relative; isolation: isolate; overflow: hidden; min-height: 550px; padding: clamp(30px, 5vw, 54px);
    background: radial-gradient(ellipse at 88% 70%, #436d55, transparent 60%), #183d33;
    color: #fff3d9;
}
.member-intro::before {
    position: absolute; z-index: -1; inset: 17px; content: ""; border: 1px solid #f4d39936; border-radius: 18px;
}
.member-intro-copy { position: relative; z-index: 1; }
.member-kicker { color: #56695b; font-size: 12px; font-weight: 750; letter-spacing: .17em; }
.member-intro .member-kicker, .member-welcome .member-kicker { color: #f2d29c; }
.member-kicker-dot { display: inline-block; width: 7px; height: 7px; margin-inline-end: 5px; border-radius: 50%; background: #efca89; vertical-align: 2px; }
.member-motto { margin: 23px 0 14px; font: 700 clamp(40px, 5.2vw, 66px)/1.08 var(--serif); letter-spacing: -.025em; }
html:not([lang="zh-CN"]) .member-motto { font-family: inherit; font-size: clamp(34px, 4.5vw, 52px); letter-spacing: normal; }
.member-intro-note { max-width: 16em; color: #f3ebd4; font-size: 15px; }
.member-board {
    position: absolute; z-index: 0; inset-inline-end: -38px; bottom: 40px; width: min(75%, 310px); aspect-ratio: 1;
    border: 11px solid #c99d5e; border-radius: 20px; transform: rotate(-17deg);
    background:
        repeating-linear-gradient(90deg, #6748259c 0 1px, transparent 1px 12.5%),
        repeating-linear-gradient(0deg, #6748259c 0 1px, transparent 1px 12.5%),
        linear-gradient(133deg, #f5da9e, #d6aa6c);
    box-shadow: 7px 9px 0 #896237, 18px 30px 42px #0d271f80;
}
.member-stone {
    position: absolute; left: var(--x); top: var(--y); width: 11%; aspect-ratio: 1;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #637065, #1c2524 60%, #0a1512);
    box-shadow: 2px 4px 6px #4030158c, inset 0 1px 2px #fff4;
}
.stone-1 { --x: 25%; --y: 62.5%; }
.stone-2 { --x: 37.5%; --y: 50%; }
.stone-3 { --x: 50%; --y: 37.5%; }
.stone-4 { --x: 37.5%; --y: 62.5%; }
.stone-5 { --x: 50%; --y: 50%; }
.stone-2, .stone-5 { background: radial-gradient(circle at 34% 25%, #fffdf4, #e8dec4 68%, #c1af8f); }
.member-intro-caption { position: absolute; bottom: 30px; inset-inline-start: 34px; color: #ead8a8; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.member-auth-panel { align-self: center; min-width: 0; padding: clamp(28px, 5vw, 62px); }
.member-tabs { display: inline-flex; gap: 4px; margin-bottom: 26px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f3f0e7; }
.member-tabs a { min-width: 75px; padding: 7px 14px; border-radius: 8px; text-align: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.member-tabs a[aria-current] { background: #fffdf8; box-shadow: 0 2px 5px #30291516; color: var(--ink); }
.member-tabs a:hover { background: #fffdf8; }
.member-subtitle, .member-auth-note, .member-muted { color: var(--muted); font-size: 14px; }
.member-subtitle { margin-top: 8px; }
.member-auth-note { margin-top: 19px; }

.member-form { display: grid; gap: 15px; margin-top: 24px; }
.member-field { display: grid; min-width: 0; gap: 5px; }
.member-field label, .member-photo label { font-size: 14px; font-weight: 700; }
.member-field label small { margin-inline-start: 5px; color: var(--muted); font-weight: 400; }
.member-field input, .member-field textarea, .member-field select {
    width: 100%; min-width: 0; min-height: 48px; border: 1px solid #bdc6b8; border-radius: 10px;
    background: #fffefa; padding: 10px 13px;
}
.member-field textarea { resize: vertical; }
.member-field input::placeholder, .member-field textarea::placeholder { color: #636e66; }
.member-input-row { display: flex; align-items: stretch; gap: 8px; }
.member-input-row input { flex: 1; }
.member-form-options, .member-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.member-form-options { justify-content: space-between; font-size: 14px; }
.member-check { display: inline-flex; align-items: center; min-height: 40px; gap: 6px; }
.member-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.member-text-button { min-height: 40px; border: 0; background: transparent; color: var(--green); padding: 0; text-decoration: underline; text-underline-offset: .2em; }
.member-button, .member-small {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; border: 1px solid #b8c4b5; border-radius: 10px;
    background: #f1f4ec; padding: 9px 14px; color: var(--green);
    text-align: center; text-decoration: none; font-size: 14px; font-weight: 700;
}
.member-small { flex: none; white-space: nowrap; }
.member-small:hover, .member-button:hover { background: #e7eee1; }
.member-primary { min-height: 49px; border-color: var(--green); background: var(--green); color: #fff; font-size: 16px; }
.member-primary:hover { background: #193f35; }
.member-captcha-image { display: block; flex: none; padding: 0; border: 1px solid #bdc6b8; border-radius: 10px; background: #fff; overflow: hidden; }
.member-captcha-image img { display: block; width: clamp(92px, 24vw, 120px); height: 46px; object-fit: contain; }
.member-form-status { border-radius: 9px; background: #e7f0e4; color: #23483c; padding: 8px 11px; font-size: 14px; overflow-wrap: anywhere; }
.member-form-status.is-error { background: #fae8e0; color: #8b2d2c; }
.member-form-status:empty { display: none; }
.member-qr { display: block; width: min(180px, 100%); height: auto; margin-inline: auto; }

.member-dashboard { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: start; gap: 22px; }
.member-nav { display: grid; gap: 5px; padding: 16px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.member-nav .member-kicker { padding: 3px 10px 7px; }
.member-nav a { display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; text-decoration: none; }
.member-nav a:hover, .member-nav a[aria-current] { background: #e8f0e5; color: #235247; }
.member-nav a[aria-current] { font-weight: 750; }
.member-nav svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.member-dashboard-main { display: grid; min-width: 0; gap: 18px; }
.member-welcome {
    position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 19px;
    padding: clamp(22px, 4vw, 40px); border-radius: 20px; background: linear-gradient(125deg, #183d33, #335e49); color: #fff7e2;
}
.member-avatar { display: block; flex: none; width: 68px; height: 68px; border: 3px solid #fff8df; border-radius: 22px; background: #e8e6d2; object-fit: cover; }
.member-welcome-copy { flex: 1 1 210px; min-width: 0; overflow-wrap: anywhere; }
.member-welcome h1 { margin: 4px 0; }
.member-welcome-copy > p:last-child { color: #ede7d5; font-size: 14px; }
.member-welcome-link { border-color: #edce95; background: #f3dcaa; color: #253a31; }
.member-welcome-link:hover { background: #ffe9bb; }
.member-surface { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 4vw, 32px); background: var(--surface); }
.member-section-head, .member-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-rank-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.member-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.member-summary > div { padding: clamp(8px, 2vw, 15px); border: 1px solid #e1e8dc; border-radius: 12px; background: #f0f4ed; }
.member-summary span { display: block; color: var(--muted); font-size: 13px; }
.member-summary strong { display: block; font-size: clamp(20px, 3vw, 30px); line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.member-empty { margin-top: 18px; border: 1px dashed #bcc9ba; border-radius: 12px; background: #f7f8f0; padding: 16px; color: var(--muted); font-size: 14px; }
.member-empty:empty { display: none; }
.member-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.member-records:not(:empty) { margin-top: 18px; }
.member-records .ja-account-record { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fffefa; overflow-wrap: anywhere; }
.member-records .ja-account-record p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.member-records .ja-account-record p:empty { display: none; }
.member-records .ja-account-record strong { display: block; margin-top: 8px; color: var(--green); }
.member-editor { max-width: 720px; }
.member-editor h1 { margin-top: 4px; }
.member-editor .member-primary { justify-self: start; }
.member-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member-photo, .member-contact { display: flex; align-items: center; gap: 14px; }
.member-photo div, .member-contact div { display: grid; gap: 4px; min-width: 0; }
.member-photo input { max-width: 100%; font-size: 14px; }
.member-photo small { color: var(--muted); font-size: 13px; }
.member-contacts { display: grid; gap: 12px; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); }
.member-contact { justify-content: space-between; }
.member-contact span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.member-dialog {
    width: min(470px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto;
    border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 5vw, 30px); background: var(--surface); color: var(--ink);
    box-shadow: 0 20px 65px #152e295c;
}
.member-dialog::backdrop { background: #152c25b5; }

@media (max-width: 740px) {
    .member-wrap { width: calc(100% - 28px); }
    .member-header-inner { min-height: 66px; flex-wrap: wrap; gap: 4px 14px; padding-block: 8px; }
    .member-header-actions { margin-inline-start: auto; }
    .member-brand { font-size: 17px; gap: 8px; }
    .member-brand small { font-size: 8px; }
    .member-seal { width: 36px; height: 36px; font-size: 24px; }
    .member-home { font-size: 13px; }
    .member-auth, .member-dashboard { grid-template-columns: minmax(0, 1fr); }
    .member-auth { max-width: 500px; border-radius: 20px; }
    .member-intro { min-height: 160px; padding: 24px 21px; }
    .member-intro::before { inset: 9px; border-radius: 13px; }
    .member-intro-copy { max-width: 74%; }
    html:not([lang="zh-CN"]) .member-intro-copy { max-width: 100%; }
    .member-motto { margin: 9px 0 0; font-size: 34px; }
    .member-intro-note, .member-intro-caption { display: none; }
    .member-board { inset-inline-end: -34px; bottom: -82px; width: 206px; border-width: 7px; }
    html:not([lang="zh-CN"]) .member-board { opacity: .45; }
    .member-auth-panel { padding: 24px 20px 29px; }
    .member-tabs { margin-bottom: 18px; }
    .member-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; }
    .member-nav .member-kicker { display: none; }
    .member-nav a { flex: 1 1 auto; justify-content: center; gap: 5px; padding-inline: 6px; font-size: 13px; }
}
@media (max-width: 420px) {
    .member-fields { grid-template-columns: minmax(0, 1fr); }
    .member-nav svg { display: none; }
    .member-photo { flex-wrap: wrap; }
}
