:root {
    --ink: #0f172a;
    --muted: #6b7280;
    --surface: #ffffff;
    --soft: #f1f5f9;
    --line: #e2e8f0;
    --accent: #0ea5a4;
    --accent-dark: #0b7b7a;
    --gold: #c7a24d;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--soft); }

.btn { border: none; cursor: pointer; padding: 10px 16px; border-radius: 10px; font-size: 14px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { background: #eef2f6; color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn.update { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.reset { background: #eff6ff; border-color: #93c5fd; color: #2563eb; }

.member-shell { min-height: 100vh; }
.member-strip { background: #0b0f14; color: #e5e7eb; font-size: 12px; }
.member-strip-right { margin: 0; padding: 6px 24px; display: flex; justify-content: flex-end; gap: 14px; align-items: center; flex-wrap: wrap; }
.member-strip-item {
    color: #e5e7eb;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.member-strip-item:hover { color: #fff; }
.member-strip-form { margin: 0; }
.system-message { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.system-message::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
}
.system-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}
.system-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0;
    background: #fff;
    color: #111827;
    min-width: 280px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
    z-index: 30;
    overflow: hidden;
}
.system-message:hover .system-dropdown,
.system-message.open .system-dropdown,
.system-message:focus-within .system-dropdown { display: block; }
.system-item,
.system-empty {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
    color: #111827;
    text-decoration: none;
}
.system-item { border-bottom: 1px solid #f1f5f9; }
.system-item:last-child { border-bottom: none; }
.system-item:hover { background: #f8fafc; }
.system-empty { color: #6b7280; }
.system-time { display: block; margin-top: 4px; font-size: 11px; color: #94a3b8; }
.member-topbar { display: flex; justify-content: space-between; align-items: center; height: 72px; padding: 0 24px; background: #fff; color: #111827; border-bottom: 1px solid #e5e7eb; }
.member-topbar .brand { font-size: 20px; font-weight: 700; color: #2563eb; }
.member-topnav { display: inline-flex; align-items: center; gap: 16px; }
.member-topnav a { color: #374151; text-decoration: none; font-size: 15px; }
.member-topnav a:hover { color: #2563eb; text-decoration: underline; }
.member-topbar .brand { font-weight: 700; letter-spacing: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-actions .user-name { font-weight: 600; }

.member-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.member-sidebar { padding: 20px 16px; background: #111827; color: #d1d5db; }
.member-sidebar .menu-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin: 16px 0 6px;
    padding: 10px 12px;
    color: #e5e7eb;
}
.member-sidebar .menu-title.is-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.member-sidebar .menu-title.is-toggle::after {
    content: 'v';
    font-size: 12px;
    color: #9ca3af;
}
.member-sidebar .menu-title.is-toggle[aria-expanded="false"]::after {
    content: '>';
}
.member-sidebar a { display: block; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; text-decoration: none; color: #e5e7eb; font-size: 14px; }
.member-sidebar a:hover { background: rgba(14,165,164,0.2); }
.member-sidebar .submenu { margin: 0; border-left: none; padding-left: 0; }
.member-sidebar .submenu a { padding: 10px 12px; margin-bottom: 6px; font-size: 14px; color: #e5e7eb; }
.member-sidebar .submenu a.active { background: rgba(199,162,77,0.25); color: #f8e3a1; }
.member-sidebar .submenu-title { font-size: 12px; color: #8b98b0; margin: 6px 0 4px 8px; }
.member-sidebar .menu-item-hidden { display: none; }

.member-content { padding: 24px; }
.hidden { display: none; }
.bank-info { background: #f8fafc; border: 1px dashed #cbd5f5; border-radius: 12px; padding: 12px; margin-top: 12px; }
.bank-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #334155; padding: 4px 0; }
.bank-row strong { font-weight: 600; color: #0f172a; }
.manuscript-card { padding-bottom: 80px; }
.manuscript-title { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.upload-panel { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.upload-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; margin-bottom: 8px; }
.editor { min-height: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; width: 100%; }
.notice-card { background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; padding: 12px; margin-top: 16px; }
.fixed-bar { position: sticky; bottom: 0; background: #ffffff; border-top: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: flex-end; z-index: 10; }
.link-toggle-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.link-input { flex: 1; min-width: 240px; }
.btn.link-active { background: #2563eb; color: #fff; border-color: #2563eb; }
.draft-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    z-index: 999;
}
.draft-modal.is-open {
    display: flex;
}
.draft-modal-card {
    background: #fff;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 16px;
    overflow: auto;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}
.draft-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.draft-modal-title {
    font-size: 16px;
    font-weight: 600;
}
.draft-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.draft-item:last-child {
    border-bottom: none;
}
.draft-title {
    font-weight: 600;
}
.draft-meta {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}
.draft-empty {
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}
.member-category-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.member-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tab {
    border: 1px solid #cbd5f5;
    background: #fff;
    color: #1f2937;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}
.category-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.media-filters { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.media-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.media-filter-label { min-width: 90px; color: #64748b; font-size: 14px; }
.media-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.media-filter-btn { border: 1px solid #cbd5f5; background: #fff; color: #1f2937; padding: 4px 10px; border-radius: 14px; cursor: pointer; font-size: 13px; }
.media-filter-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.invoice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.invoice-filter { border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; background: #fbfdff; margin-bottom: 14px; }
.invoice-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invoice-filter-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.invoice-available { margin-top: 6px; font-size: 12px; color: #64748b; }
.status-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.status-pill.status-pending { background: #e0edff; color: #2563eb; }
.status-pill.status-approved { background: #dcfce7; color: #16a34a; }
.status-pill.status-rejected { background: #fee2e2; color: #ef4444; }
.invoice-reason { color: #ef4444; font-size: 12px; }
.template-page { display: grid; gap: 16px; }
.template-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.template-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.template-filter { display: grid; gap: 10px; }
.template-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.template-filter-row .filter-pill {
    border: none;
    background: transparent;
    color: #1f2937;
    padding: 4px 2px 6px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}
.template-filter-row .filter-pill.active {
    color: #2563eb;
    font-weight: 600;
}
.template-filter-row .filter-pill.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 999px;
}
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.template-card { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.template-card-cover { position: relative; overflow: hidden; }
.template-card-cover img { width: 100%; height: 180px; object-fit: contain; background: #f8fafc; display: block; }
.template-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.template-card:hover .template-card-overlay {
    opacity: 1;
    transform: translateY(0);
}
.template-card-overlay a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #1d4f9a;
    font-size: 13px;
    font-weight: 600;
}
.template-card-overlay a.primary {
    background: #2563eb;
    color: #fff;
}
.template-card-overlay .disabled {
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
    pointer-events: none;
}
.template-card-body { padding: 12px; display: grid; gap: 6px; }
.template-card-title { font-size: 15px; font-weight: 600; }
.template-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.template-card-price { font-size: 14px; color: #2563eb; font-weight: 700; }
.template-fav-btn {
    border: 1px solid #cbd5f5;
    background: #fff;
    color: #1f2937;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}
.template-fav-btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.template-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.template-pager button {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}
.template-pager button.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
@media (max-width: 1200px) {
    .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .template-grid { grid-template-columns: 1fr; }
    .template-card-cover img { height: 160px; }
}
.template-detail { display: grid; gap: 16px; }
.template-detail-hero { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; align-items: start; }
.template-detail-cover { width: 100%; border-radius: 16px; border: 1px solid #e5e7eb; }
.template-detail-info { display: grid; gap: 8px; }
.template-detail-title { font-size: 20px; font-weight: 700; }
.template-detail-price { font-size: 18px; color: #2563eb; font-weight: 700; }
.template-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.template-detail-tags span { font-size: 12px; padding: 3px 8px; background: #e0edff; color: #2563eb; border-radius: 999px; }
.spec-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #0f172a; cursor: pointer; font-size: 12px; }
.spec-pill.active { background: #2563eb; color: #fff; }
.template-pay-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pill { border: 1px solid #cbd5f5; background: #fff; color: #1f2937; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.pay-pill.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.pay-pill:disabled { opacity: 0.6; cursor: not-allowed; }
.template-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.template-detail-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.template-detail-gallery img { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; }
.template-demo-embed { width: 100%; min-height: 480px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }

.member-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.member-hero h1 { margin: 0 0 8px; font-size: 28px; }
.hero-card { background: var(--surface); padding: 16px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 20px rgba(15,23,42,0.08); }
.hero-title { font-weight: 600; margin-bottom: 10px; }
.hero-metric { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hero-metric:last-child { border-bottom: none; }

.card { background: var(--surface); padding: 18px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 16px rgba(15,23,42,0.06); margin-bottom: 16px; }
.card.muted { background: #f8fafc; }
.card.notice { margin-top: 14px; background: #eff6ff; border: 1px solid #dbeafe; border-left: 4px solid #2563eb; border-radius: 12px; padding: 12px 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

h2 { margin: 0 0 12px; font-size: 18px; }
h3 { margin: 0 0 8px; font-size: 16px; }
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: #e0f2f1; color: var(--accent-dark); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.table th { background: #f8fafc; }
.media-pick { display: inline-flex; align-items: center; gap: 8px; }

.form-stack { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
label { font-size: 13px; color: var(--muted); }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
textarea { resize: vertical; }
.btn-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.input-sm { width: 140px; }
.input-md { width: 200px; }
.profile-type { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 12px; }
.profile-type-label { font-size: 13px; color: var(--muted); min-width: 90px; }
.radio-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
#memberProfileForm .form-grid { grid-template-columns: 1fr; }
#memberProfileForm .profile-rows { display: grid; gap: 12px; }
#memberProfileForm .profile-row { display: flex; align-items: center; gap: 12px; }
#memberProfileForm .profile-row label { min-width: 90px; }
#memberProfileForm .profile-row input { max-width: 320px; }
#memberProfileForm .profile-section .form-grid > div { display: flex; align-items: center; gap: 12px; }
#memberProfileForm .profile-section .form-grid > div label { min-width: 90px; }
#memberProfileForm .profile-section .form-grid > div input { max-width: 320px; }

.member-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top, #e0f2f1 0%, #f1f5f9 55%); }
.auth-shell { width: min(420px, 90vw); }
.auth-shell--wide { width: min(980px, 94vw); }
.auth-panel { background: var(--surface); padding: 28px; border-radius: 18px; box-shadow: 0 20px 40px rgba(15,23,42,0.12); border: 1px solid var(--line); }
.auth-panel--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; }
.auth-main { min-width: 0; }
.auth-side { border-left: 1px dashed var(--line); padding-left: 24px; }
.auth-brand { display: flex; flex-direction: column; margin-bottom: 16px; }
.auth-brand span { font-size: 18px; font-weight: 700; }
.auth-brand small { color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.hint { color: var(--muted); margin-top: -6px; margin-bottom: 12px; }
.alert { background: #fee2e2; color: #b91c1c; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.auth-footer { margin-top: 16px; text-align: center; color: var(--muted); }
.auth-footer a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.auth-inline { display: flex; gap: 10px; align-items: center; }
.auth-inline input { flex: 1; min-width: 0; }
.auth-note { background: #eff6ff; color: #1d4ed8; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; font-size: 13px; }
.auth-tip { color: #ef4444; font-size: 12px; min-height: 16px; }

.auth-qr { display: grid; gap: 10px; }
.auth-qr-title { font-size: 15px; font-weight: 600; }
.auth-qr-box { position: relative; width: 100%; max-width: 240px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.auth-qr-box img { width: 100%; height: auto; display: block; }
.auth-qr-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.65); display: flex; align-items: center; justify-content: center; }
.auth-qr-mask[hidden] { display: none !important; }
.auth-qr-mask-text { color: #fff; font-size: 13px; font-weight: 600; }
.auth-qr-status { text-align: center; font-size: 13px; color: var(--muted); }
.auth-qr-actions { display: flex; justify-content: center; }
.auth-qr-note { text-align: center; font-size: 12px; color: var(--muted); }
.auth-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 16px;
}
.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}
.auth-tab.is-active {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.auth-panel-section { display: none; }
.auth-panel-section.is-active { display: block; }

.level-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, #fef9c3, #fef3c7); border: 1px solid #fcd34d; margin-bottom: 16px; }
.level-title { font-size: 12px; text-transform: uppercase; color: #92400e; }
.level-name { font-size: 20px; font-weight: 700; color: #92400e; }
.level-meta { color: #92400e; text-align: right; }
.level-page { display: grid; gap: 16px; }
.level-summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.level-user { display: flex; align-items: center; gap: 14px; }
.level-avatar { width: 44px; height: 44px; border-radius: 50%; background: #e0edff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; }
.level-user-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.level-user-meta { font-size: 13px; color: #4b5563; display: flex; gap: 10px; flex-wrap: wrap; }
.level-user-sep { color: #6b7280; }
.level-balance { text-align: right; min-width: 180px; }
.level-balance-label { font-size: 12px; color: #64748b; }
.level-balance-value { font-size: 18px; font-weight: 700; margin: 4px 0; }
.level-balance-hint { font-size: 12px; color: #94a3b8; }
.level-section-title { font-size: 14px; font-weight: 600; color: #111827; margin: 4px 0 10px; }
.level-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.level-tier { position: relative; border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px 16px; background: #fff; min-height: 140px; }
.level-tier.is-active { border-color: #2563eb; box-shadow: 0 10px 18px rgba(37,99,235,0.12); }
.level-tier-tag { font-size: 14px; font-weight: 600; color: #111827; }
.level-tier-name { margin-top: 6px; font-size: 14px; font-weight: 600; }
.level-tier-benefit { margin-top: 4px; font-size: 13px; color: #2563eb; }
.level-tier-hint { margin-top: 8px; font-size: 12px; color: #94a3b8; }
.level-tier-badge { position: absolute; top: 10px; right: 12px; font-size: 12px; background: #e0edff; color: #2563eb; padding: 2px 8px; border-radius: 999px; }
.level-tier-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 10px 12px; border: 1px dashed #e5e7eb; border-radius: 12px; background: #f8fafc; font-size: 13px; }
.level-tier-need strong { color: #ef4444; }
.level-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.level-pay-card { display: flex; align-items: center; gap: 12px; border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px; background: #fff; }
.level-pay-card.is-active { border-color: #2563eb; box-shadow: 0 6px 14px rgba(37,99,235,0.12); }
.level-pay-icon { width: 40px; height: 40px; border-radius: 12px; background: #f59e0b; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.level-pay-icon.alipay { background: #0ea5e9; }
.level-pay-icon.wechat { background: #22c55e; }
.level-pay-icon.bank { background: #64748b; }
.level-pay-name { font-size: 14px; font-weight: 600; }
.level-pay-hint { font-size: 12px; color: #6b7280; margin-top: 4px; }
.level-pay-action { margin-top: 12px; }
.level-note { margin-top: 16px; }

@media (max-width: 900px) {
    .member-layout { grid-template-columns: 1fr; }
    .member-sidebar { display: flex; flex-wrap: wrap; gap: 12px; }
    .member-sidebar .menu-title { width: 100%; }
    .member-hero { grid-template-columns: 1fr; }
    .level-summary { flex-direction: column; align-items: flex-start; }
    .level-balance { text-align: left; }
}

@media (max-width: 820px) {
    .auth-panel--split { grid-template-columns: 1fr; }
    .auth-side { border-left: none; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 18px; }
}
