/* 复制自 default 主题会员样式，蓝色已替换为 xin 配色变量（见 palette.css）。 */
:root {
  --brand: var(--xin-accent);
  --text: #344054;
  --muted: #8b96a5;
  --line: #e6e6e6;
  --soft: #f5f7fa;
}

body { margin: 0; background: var(--soft); color: var(--text); font-family: "微软雅黑", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

/* 布局 */
.member-top-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: #eef3f8; color: #98a2b3; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.member-top-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-top-avatar em { font-style: normal; }
.member-layout { display: flex; min-height: calc(100vh - 60px - 40px); }
.member-sidebar { width: 200px; background: #f8f8f8; border-right: 1px solid var(--line); padding: 20px 0; flex-shrink: 0; }
.member-main { flex: 1; padding: 24px; min-width: 0; }
.member-footer { height: 40px; line-height: 40px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.member-footer a { color: var(--brand); text-decoration: none; }
.member-footer a:hover { text-decoration: underline; }
.member-field-static { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 38px; padding-top: 6px; box-sizing: border-box; }
.member-oauth-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 26px; padding: 0 9px; border-radius: 5px; color: #64748b; background: #f1f5f9; font-size: 13px; line-height: 26px; white-space: nowrap; }
.member-oauth-badge.is-bound { color: var(--xin-link); background: var(--xin-accent-soft); }
.member-oauth-badge.is-registered { color: #047857; background: #d1fae5; }
.member-inline-edit { display: flex; align-items: stretch; }
.member-inline-edit input { flex: 1 1 auto; min-width: 0; border-radius: 4px 0 0 4px; background: #f8fafc; color: var(--text); }
.member-inline-edit button { flex: 0 0 auto; min-width: 78px; border: 1px solid var(--brand); border-radius: 0 4px 4px 0; background: var(--brand); color: #fff; font: inherit; cursor: pointer; }
.member-inline-edit button:hover { opacity: .88; }
.member-oauth-name { display: inline-block; max-width: 220px; overflow: hidden; color: #667085; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* 侧栏 */
.member-sidebar a { display: flex; align-items: center; gap: 8px; padding: 10px 24px; color: var(--text); font-size: 14px; text-decoration: none; }
.member-sidebar a:hover { background: #eee; }
.member-sidebar a.is-active { color: #fff; background: var(--brand); }
.member-sidebar .member-nav-group { display: block; padding: 16px 24px 6px; color: var(--muted); font-size: 12px; }
.member-sidebar form { padding: 10px 24px; margin-top: 20px; border-top: 1px solid var(--line); }
.member-sidebar form button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0; }

/* 图标 */
.tanz-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* 消息 */
.member-message { padding: 10px 12px; border-radius: 4px; line-height: 1.6; margin-bottom: 12px; }
.member-message.is-success { color: #166534; background: #ecfdf3; }
.member-message.is-error { color: #b42318; background: #fff1f0; }
.member-message.is-warning { color: #92400e; background: #fffbeb; }
.member-message.is-info { color: var(--xin-link); background: var(--xin-accent-soft); }
.member-message a { color: inherit; font-weight: 600; text-decoration: underline; }
.member-main > .member-message { max-width: 1280px; margin-left: auto; margin-right: auto; box-sizing: border-box; }

/* 面板 */
.member-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.member-panel-narrow { max-width: 560px; }
.member-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.member-section-head h3 { margin: 0; color: var(--text); font-size: 18px; }
.member-section-head-spaced { margin-top: 22px; }
.member-empty { width: 100%; padding: 18px; color: var(--muted); text-align: center; background: var(--soft); border: 1px dashed var(--line); border-radius: 6px; box-sizing: border-box; }
.member-permission-empty { display: grid; justify-items: center; gap: 12px; padding: 34px 16px; text-align: center; }
.member-permission-empty h3 { margin: 0; color: var(--text); font-size: 20px; }
.member-permission-empty p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.7; }
.member-table-wrap { width: 100%; overflow-x: auto; }
.member-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.member-stat-card { min-height: 88px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-sizing: border-box; }
.member-stat-card strong { display: block; color: var(--brand); font-size: 26px; line-height: 1.2; }
.member-stat-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.member-asset-section { margin-bottom: 24px; }
.member-asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.member-asset-card { min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfe; box-sizing: border-box; }
.member-asset-card span { display: block; color: var(--muted); font-size: 13px; }
.member-asset-card strong { display: block; margin-top: 8px; color: var(--text); font-size: 26px; line-height: 1.2; word-break: break-all; }
.member-asset-card em { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-style: normal; }
.member-asset-card.is-balance { background: #f8fbff; border-color: #cfe0ff; }
.member-asset-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.member-asset-actions .member-button { min-height: 30px; padding: 0 10px; font-size: 13px; }
.member-asset-log-table td,
.member-asset-log-table th { white-space: nowrap; }
.member-asset-log-table td:last-child,
.member-asset-log-table th:last-child { min-width: 180px; white-space: normal; }
.member-asset-change { color: #475569; white-space: nowrap; }
.member-asset-change.is-plus { color: #047857; }
.member-asset-change.is-minus { color: #d92d20; }

/* 表单 */
.member-form { }
.member-form input[type=text],
.member-form input[type=number],
.member-form input[type=email],
.member-form input[type=password],
.member-form input[type=url],
.member-form select,
.member-form textarea { border: 1px solid var(--line); border-radius: 4px; color: var(--text); font: inherit; font-size: 14px; background: #fff; box-sizing: border-box; }
.member-form input:focus,
.member-form select:focus,
.member-form textarea:focus { outline: none; }
.member-form textarea { padding: 10px; resize: vertical; }
.member-form select { min-height: 38px; padding: 0 8px; }
.member-form textarea[data-editor] { width: 100%; min-height: 630px; }
.tox-tinymce { border-color: var(--line) !important; box-shadow: none !important; outline: none !important; }
.tox-tinymce:focus,
.tox-tinymce:focus-within { border-color: var(--line) !important; box-shadow: none !important; outline: none !important; }
.tox .tox-edit-area::before { display: none !important; }
.tox .tox-tbtn:focus::after { box-shadow: none !important; }
.tox-editor-header { border-bottom: 1px solid var(--line) !important; }

/* 字段行 */
.member-field { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.member-field > span { width: 100px; padding-top: 8px; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--text); text-align: right; }
.member-field > span em { color: #e53e3e; font-style: normal; margin-left: 2px; }
.member-field > input[type=text],
.member-field > input[type=number],
.member-field > input[type=email],
.member-field > input[type=password],
.member-field > input[type=url],
.member-field > select { width: 600px; min-height: 38px; padding: 0 10px; }
.member-field > textarea:not([data-member-editor]) { width: 600px; height: 60px; }
.member-field > .member-field-control { width: 600px; max-width: 100%; min-width: 0; box-sizing: border-box; }
.member-field > .member-field-control:has(.member-layui-choice-group) { width: auto; max-width: none; flex: 1; }
.member-field > .member-field-control > input[type=text],
.member-field > .member-field-control > input[type=number],
.member-field > .member-field-control > input[type=email],
.member-field > .member-field-control > input[type=password],
.member-field > .member-field-control > input[type=url],
.member-field > .member-field-control > select { width: 100%; min-height: 38px; padding: 0 10px; }
.member-field > .member-field-control > textarea:not([data-member-editor]) { width: 100%; height: 60px; }
.member-field-help { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.member-avatar-control { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.member-avatar-picker { position: relative; width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; overflow: hidden; }
.member-avatar-preview { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; overflow: hidden; border-radius: 50%; border: 0; background: #eef3f8; color: #98a2b3; font-size: 24px; font-weight: 700; flex: 0 0 auto; }
.member-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-avatar-preview em { font-style: normal; }
.member-avatar-upload { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #fff; background: rgba(15, 23, 42, .56); font: inherit; font-size: 13px; font-weight: 600; opacity: 0; cursor: pointer; transition: opacity .2s ease, background .2s ease; }
.member-avatar-picker:hover .member-avatar-upload,
.member-avatar-upload:focus-visible { opacity: 1; }
.member-avatar-upload:hover { background: rgba(30, 159, 255, .78); }
.member-avatar-file { display: none; }
.member-sms-code-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-sms-code-line input { flex: 1 1 180px; min-width: 0; }
.member-sms-code-line button { flex: 0 0 auto; }
.member-field > .member-inline-edit > input { border-radius: 4px 0 0 4px; background: #f8fafc; }
.member-field > .member-inline-edit > button { border-radius: 0 4px 4px 0; }
.member-field[hidden],
[data-member-contact-editor][hidden],
[data-member-contact-code][hidden],
[data-member-password-row][hidden],
[data-member-password-display][hidden] { display: none !important; }
.member-modal[hidden] { display: none !important; }
.member-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .24); box-sizing: border-box; }
.member-modal-dialog { width: min(520px, 100%); min-height: 320px; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 18px 50px rgba(15, 23, 42, .18); }
.member-modal-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); box-sizing: border-box; }
.member-modal-head strong { font-size: 16px; font-weight: 600; color: var(--text); }
.member-modal-head button { width: 32px; height: 32px; border: 0; background: transparent; color: #64748b; font-size: 24px; line-height: 1; cursor: pointer; }
.member-modal-form { padding: 20px 28px 0; }
.member-modal-form .member-field > span { width: 92px; }
.member-modal-form .member-field > input,
.member-modal-form .member-field > .member-field-control { width: calc(100% - 104px); }
.member-modal-actions { display: flex; align-items: center; justify-content: center; min-height: 70px; margin: 92px -28px 0; background: #eef2f5; }
.member-modal-actions button { min-width: 68px; padding: 10px 18px; border: 0; border-radius: 4px; background: #374260; color: #fff; font: inherit; cursor: pointer; }

/* 编辑器字段：标签左浮，编辑器在右侧，留右边距 */
.member-field:has(textarea[data-editor]) { display: block; overflow: hidden; padding-right: 2px; }
.member-field:has(textarea[data-editor]) > span { float: left; width: 100px; padding-top: 12px; padding-right: 20px; text-align: right; box-sizing: border-box; }
.member-field:has(textarea[data-editor]) > textarea { display: block; width: calc(100% - 132px); margin-left: 132px; box-sizing: border-box; }
.member-field:has(textarea[data-editor]) > .member-editor-tools { margin-left: 132px; }
.member-field:has(.member-field-control textarea[data-editor]) > .member-field-control { display: block; width: calc(100% - 132px); max-width: none; margin-left: 132px; box-sizing: border-box; }
.member-field:has(.member-field-control textarea[data-editor]) > .member-field-control > textarea { display: block; width: 100%; box-sizing: border-box; }
.member-field:has(.member-field-control textarea[data-editor]) > .member-field-control > .member-editor-tools { margin-left: 0; }

/* 选项组 */
.member-field .member-choice-group { display: flex; flex-wrap: wrap; gap: 0; padding-top: 8px; }
.member-field .member-layui-choice-group { align-items: center; gap: 12px 16px; min-height: 38px; padding-top: 0; }
.member-field .member-layui-choice-group .layui-form-radio,
.member-field .member-layui-choice-group .layui-form-checkbox[lay-skin=primary] { margin: 0; }
.member-field .member-layui-choice-group .layui-form-radio > div,
.member-field .member-layui-choice-group .layui-form-checkbox[lay-skin=primary] > div { color: var(--text); font-size: 14px; }
.member-field .member-choice { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-weight: 500; font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: #fff; margin-right: -1px; }
.member-field .member-choice:first-of-type { border-radius: 4px 0 0 4px; }
.member-field .member-choice:last-of-type { border-radius: 0 4px 4px 0; margin-right: 0; }
.member-field .member-choice:has(:checked) { color: #fff; background: var(--brand); border-color: var(--brand); }
.member-field .member-choice input[type=radio],
.member-field .member-choice input[type=checkbox] { width: 16px; height: 16px; min-height: 16px; accent-color: var(--brand); cursor: pointer; }

/* 上传控件 */
.member-upload-control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.member-upload-control input[type=hidden] { display: none; }
.member-upload-preview { display: flex; }
.member-upload-preview[hidden] { display: none; }
.member-upload-preview.has-image img { max-width: 200px; max-height: 120px; border-radius: 4px; display: block; }
.member-upload-preview-button { display: block; background: none; border: none; padding: 0; cursor: pointer; }
.member-upload-preview-button img { max-width: 200px; max-height: 120px; border-radius: 4px; }
.member-upload-control > button { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 500; background: #fff; color: var(--text); cursor: pointer; }
.member-upload-control > button:hover { border-color: var(--brand); color: var(--brand); }
.member-upload-control > button[data-member-upload-button] { color: var(--brand); border-color: var(--brand); background: #fff; }
.member-upload-control > button[data-member-upload-button]:hover { opacity: .8; }
.member-upload-control > button[data-member-upload-remove] { color: #e53e3e; border-color: #e53e3e; }
.member-upload-control > button[data-member-upload-remove]:hover { color: #fff; background: #e53e3e; }
.member-upload-remove[hidden] { display: none; }

/* 编辑器工具 */
.member-editor-tools { display: flex; gap: 8px; margin-top: 8px; clear: both; }
.member-editor-tools button { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; background: #fff; color: var(--text); cursor: pointer; }
.member-editor-tools button:hover { border-color: var(--brand); color: var(--brand); }

.member-order-pay-field { display: grid; gap: 10px; width: 600px; max-width: 100%; }
.member-order-pay-field > label { display: grid; gap: 6px; }
.member-order-pay-field > label > span,
.member-order-pay-grid span { color: var(--muted); font-size: 13px; }
.member-order-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member-order-pay-grid label { display: grid; gap: 6px; }
.member-order-pay-field textarea { min-height: 86px; }

/* 操作栏 */
.member-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.member-actions a,
.member-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 10px 24px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.member-actions a { background: #fff; color: var(--text); }
.member-actions button.primary { color: #fff; border-color: var(--brand); background: var(--brand); }
.member-actions a:hover { background: var(--soft); }
.member-actions button.primary:hover { opacity: .85; }
.member-actions .member-button { min-height: 40px; padding: 0 24px; font-weight: 600; }

/* 订单 */
.member-page-head { max-width: 1280px; margin: 0 auto 20px; }
.member-page-head h2 { margin: 0 0 6px; font-size: 22px; color: var(--text); }
.member-page-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.member-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 16px; align-items: start; max-width: 1280px; margin: 0 auto; }
.member-order-main,
.member-order-side { min-width: 0; }
.member-order-side { position: sticky; top: 16px; }
.member-order-form .member-field > input[type=text],
.member-order-form .member-field > input[type=number],
.member-order-form .member-field > textarea:not([data-member-editor]) { width: min(100%, 520px); }
.member-order-payment-field { align-items: flex-start; }
.member-order-payment-field > .member-payment-options,
.member-order-payment-field > .member-order-payment-radios { flex: 1 1 auto; min-width: 0; padding-top: 0; }
.member-order-item { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.member-order-item > div:first-child { min-width: 0; }
.member-order-item strong { display: block; color: var(--text); font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.member-order-item p { margin: 6px 0 0; color: var(--muted); line-height: 1.7; }
.member-order-price,
.member-order-amount { color: #d92d20; font-size: 22px; font-weight: 700; white-space: nowrap; }
.member-order-boundary { margin-top: 16px; }
.member-order-boundary-actions { justify-content: flex-start; margin-top: 12px; padding-top: 4px; border-top: 0; }
.member-recharge-bonus-inline { margin-left: 8px; color: #ff3b42; font-size: 14px; font-weight: 600; vertical-align: middle; }
.member-order-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.member-order-total span { color: var(--muted); }
.member-order-total strong { color: #d92d20; font-size: 24px; white-space: nowrap; }
.member-order-summary { display: grid; gap: 9px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.member-order-summary div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--muted); line-height: 1.55; }
.member-order-summary strong { color: var(--text); font-size: 14px; font-weight: 600; text-align: right; }
.member-guest-query { padding: 14px 16px 2px; margin-bottom: 16px; border: 1px solid #e6efff; border-radius: 6px; background: #f8fbff; }
.member-guest-query h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); }
.member-guest-query p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.member-order-query-panel,
.member-order-query-results { width: min(760px, 100%); max-width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.member-order-query-results { margin-top: 16px; }
.member-order-query-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.member-order-query-item:first-of-type { border-top: 0; }
.member-order-query-item:hover { color: var(--brand); }
.member-order-query-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-order-query-item span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.member-payment-options { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px !important; align-items: stretch; max-width: 560px; }
.member-payment-options .member-choice { justify-content: flex-start; width: 100%; min-height: 38px; margin-right: 0; padding: 8px 12px; border-radius: 4px !important; box-sizing: border-box; }
.member-payment-options .member-choice input { flex: 0 0 auto; }
.member-payment-options .member-choice span { min-width: 0; word-break: break-word; }

.member-recharge-form { display: grid; gap: 24px; }
.member-page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-page-title-row h2 { margin: 0; }
.member-recharge-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; align-items: start; }
.member-recharge-label { color: #1f2937; line-height: 42px; white-space: nowrap; }
.member-recharge-assets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 42px; }
.member-recharge-assets strong { color: #ff3b42; font-weight: 600; }
.member-recharge-type-list { display: flex; flex-wrap: wrap; gap: 14px; }
.member-recharge-type,
.member-recharge-plan { position: relative; min-height: 80px; border: 1px solid #dbe2ea; border-radius: 4px; background: #fff; color: #172033; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.member-recharge-type { width: 142px; padding: 13px 18px; }
.member-recharge-type strong,
.member-recharge-type span,
.member-recharge-plan strong,
.member-recharge-plan span { display: block; }
.member-recharge-type strong { font-size: 16px; font-weight: 600; }
.member-recharge-type span { margin-top: 6px; color: #667085; }
.member-recharge-type.is-active,
.member-recharge-plan.is-active { border-color: #ff4048; box-shadow: inset 0 0 0 1px #ff4048; }
.member-recharge-type.is-active::after,
.member-recharge-plan.is-active::after { content: "✓"; position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; clip-path: polygon(100% 0, 0 100%, 100% 100%); background: #ff4048; color: #fff; font-size: 14px; line-height: 42px; text-align: right; padding-right: 4px; box-sizing: border-box; }
.member-recharge-tip { margin: 0; min-height: 42px; color: #667085; line-height: 42px; }
.member-recharge-tip strong { color: #ff4048; }
.member-recharge-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 14px; }
.member-recharge-plan { min-height: 106px; padding: 22px 16px 14px; text-align: center; }
.member-recharge-plan[hidden] { display: none; }
.member-recharge-plan strong { font-size: 18px; font-weight: 500; }
.member-recharge-plan span { margin-top: 10px; color: #667085; }
.member-recharge-plan em { color: #ff3b42; font-style: normal; font-size: 24px; }
.member-recharge-bonus { position: absolute; top: -8px; right: -1px; min-width: 92px; height: 25px; margin: 0 !important; padding: 0 8px; background: #ff7a38; color: #fff !important; line-height: 25px; font-size: 13px; }
.member-recharge-custom-row[hidden] { display: none; }
.member-recharge-custom-input { width: min(360px, 100%); height: 40px; border: 1px solid #dbe2ea; border-radius: 4px; padding: 0 12px; box-sizing: border-box; }
.member-recharge-settle { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; margin-left: 96px; padding: 16px; border: 1px solid #e1e7ef; border-radius: 4px; background: #fff; }
.member-recharge-settle dl { display: grid; gap: 6px; min-height: 58px; margin: 0; padding: 12px 14px; border-radius: 4px; background: #f6f8fb; color: #667085; }
.member-recharge-settle dt { font-size: 13px; }
.member-recharge-settle dd { margin: 0; color: #172033; font-size: 16px; font-weight: 600; }
.member-recharge-payline { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; padding: 10px 14px; border-top: 1px solid #e1e7ef; color: #667085; }
.member-recharge-payline strong { color: #ff3b42; font-size: 22px; }
.member-recharge-actions { justify-content: flex-end; }
.member-order-side h3 { margin: 0 0 12px; font-size: 17px; color: var(--text); }
.member-order-side p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.member-order-side .member-payment-options { grid-template-columns: 1fr; max-width: none; }
.member-order-side .member-order-payment-radios { display: grid; gap: 8px; }
.member-order-pay-help { padding: 10px 12px; border: 1px solid var(--xin-accent-soft); border-radius: 4px; color: var(--xin-link) !important; background: var(--xin-accent-soft); }
.member-order-side .member-order-actions { display: grid; gap: 10px; justify-content: stretch; margin-top: 16px; padding-top: 16px; }
.member-order-side .member-order-actions a,
.member-order-side .member-order-actions button,
.member-order-side > .member-button { width: 100%; min-height: 42px; box-sizing: border-box; }
.member-order-side > .member-button { margin-top: 10px; }
.member-order-table td { vertical-align: middle; }
.member-order-table th,
.member-order-table td { white-space: nowrap; }
.member-order-table th:nth-child(2),
.member-order-table td:nth-child(2) { min-width: 180px; white-space: normal; }
.member-detail-table td:first-child { width: 120px; color: var(--muted); white-space: nowrap; }
.member-order-tabs { display: flex; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.member-order-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; margin-bottom: -1px; border: 1px solid transparent; border-radius: 4px 4px 0 0; color: var(--text); text-decoration: none; }
.member-order-tabs a:hover { color: var(--brand); }
.member-order-tabs a.is-active { color: var(--brand); border-color: var(--line); border-bottom-color: #fff; background: #fff; font-weight: 600; }
.member-order-actions { flex-wrap: wrap; }
.member-order-actions a,
.member-order-actions button { justify-content: center; min-height: 40px; }
.member-order-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.member-order-search input[type=search] { flex: 0 1 320px; width: min(100%, 320px); min-width: 180px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: #fff; box-sizing: border-box; }
.member-order-search input[type=search]:focus { outline: none; border-color: var(--brand); }
.member-order-search .member-button { height: 34px; min-height: 34px; padding: 0 14px; flex: none; }
.member-order-status { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 24px; padding: 0 8px; border-radius: 6px; white-space: nowrap; font-size: 12px; line-height: 24px; }
.member-order-status.is-paid { color: #047857; background: #d1fae5; }
.member-order-status.is-pending { color: var(--xin-link); background: var(--xin-accent-soft); }
.member-order-status.is-approved { color: #7c3aed; background: #ede9fe; }
.member-order-status.is-rejected { color: #b42318; background: #fee4e2; }
.member-order-status.is-closed,
.member-order-status.is-refunded { color: #475569; background: #e2e8f0; }
.member-field .secondary,
.member-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: #fff; text-decoration: none; box-sizing: border-box; }
.member-field .secondary { font: inherit; cursor: pointer; }
.member-field .secondary:hover { border-color: var(--brand); color: var(--brand); }
.member-field .secondary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.member-button.primary { color: #fff; border-color: var(--brand); background: var(--brand); }
.member-button:hover { border-color: var(--brand); color: var(--brand); }
.member-button.primary:hover { color: #fff; opacity: .86; }
.member-withdraw-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0 112px; }
.member-withdraw-preview div { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfe; }
.member-withdraw-preview span { display: block; color: var(--muted); font-size: 13px; }
.member-withdraw-preview strong { display: block; margin-top: 6px; color: var(--text); font-size: 18px; }
.member-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 16px; color: var(--muted); }
.member-pagination a,
.member-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); text-decoration: none; box-sizing: border-box; }
.member-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.member-pagination .member-pagination-total { border-color: transparent; background: transparent; color: var(--muted); }
.member-pagination .is-current { border-color: var(--brand); background: var(--brand); color: #fff; }
.member-pagination .is-disabled,
.member-pagination .is-ellipsis { color: #94a3b8; background: #f8fafc; }
.member-order-paybox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 320px; max-width: 100%; padding: 20px 18px; margin: 0 auto 22px; border: 1px solid var(--xin-accent-soft); border-radius: 6px; background: #f8fbff; text-align: center; }
.member-order-paybox-title { color: var(--text); font-size: 16px; font-weight: 700; }
.member-order-paybox-tip { color: #92400e; font-size: 13px; line-height: 1.7; }
.member-order-paybox-tip.is-info { color: var(--xin-link); }
.member-order-paybox img { width: 180px; height: 180px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.member-order-delivery { margin-top: 22px; border: 1px solid var(--xin-accent-soft); border-radius: 8px; background: #f8fbff; overflow: hidden; }
.member-order-delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--xin-accent-soft); background: var(--xin-accent-soft); }
.member-order-delivery-head h3 { margin: 0 0 4px; color: var(--text); font-size: 18px; }
.member-order-delivery-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.member-order-feedback { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--xin-line-strong); border-radius: 4px; color: var(--xin-link); background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.member-order-feedback:hover { border-color: var(--brand); color: #fff; background: var(--brand); }
.member-order-delivery-list { display: grid; gap: 12px; padding: 16px 18px; }
.member-order-delivery-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; }
.member-order-delivery-title { color: var(--text); font-size: 15px; font-weight: 700; line-height: 34px; }
.member-order-delivery-action { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-order-delivery-path { min-width: 0; flex: 1; padding: 8px 10px; border: 1px solid #edf2f7; border-radius: 4px; color: #475569; background: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-order-delivery-count { padding: 8px 10px; border-radius: 4px; color: #475569; background: var(--xin-accent-soft); white-space: nowrap; }
.member-order-delivery-text { display: grid; gap: 8px; min-width: 0; }
.member-order-delivery-raw { margin: 0; padding: 8px 10px; border-radius: 4px; background: #f8fafc; color: var(--text); font: inherit; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.member-order-delivery-line { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; border-radius: 4px; background: #f8fafc; color: #475569; line-height: 1.7; }
.member-order-delivery-line span { color: #64748b; white-space: nowrap; }
.member-order-delivery-line strong { color: var(--text); font-weight: 600; word-break: break-word; }
.member-field.compact { display: block; }
.member-field.compact > span { display: block; width: auto; padding: 0 0 8px; text-align: left; }
.member-field.compact > select { width: 100%; }

/* 图片预览 */
.member-image-preview-layer { position: fixed; inset: 0; z-index: 9999; }
.member-image-preview-mask { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.member-image-preview-modal { position: relative; top: 10%; max-width: 640px; margin: 0 auto; padding: 16px; background: #fff; border-radius: 8px; }
.member-image-preview-modal img { width: 100%; display: block; }
.member-image-preview-close { position: absolute; top: 8px; right: 12px; font-size: 22px; background: none; border: none; cursor: pointer; }

/* 会员首页宽屏版 */
.member-wide-dashboard,
.member-wide-dashboard * { box-sizing: border-box; }
.member-wide-dashboard { margin: 0; background: #f5f7fb; color: #1e293b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.member-wide-dashboard a { color: inherit; text-decoration: none; }
.member-wide-dashboard .top-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #e9edf2; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.02); }
.member-wide-dashboard .header-container { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; height: 64px; margin: 0 auto; padding: 0 24px; }
.member-wide-dashboard .logo-area { display: flex; align-items: center; gap: 12px; width: 260px; min-width: 0; }
.member-wide-dashboard .logo-img { display: block; width: auto; max-width: 170px; max-height: 40px; object-fit: contain; }
.member-wide-dashboard .logo-icon { color: var(--xin-accent); font-size: 28px; }
.member-wide-dashboard .logo-text { overflow: hidden; color: transparent; background: linear-gradient(135deg, #1e293b, var(--xin-accent)); background-clip: text; -webkit-background-clip: text; font-size: 24px; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.member-wide-dashboard .logo-badge { margin-left: 6px; padding-left: 10px; border-left: 1px solid #e2e8f0; color: #6c86a3; font-size: 11px; white-space: nowrap; }
.member-wide-dashboard .member-top-actions { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.member-wide-dashboard .user-dropdown { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; cursor: pointer; }
.member-wide-dashboard .member-notification-link { position: relative; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #475569; background: transparent; }
.member-wide-dashboard .member-notification-link:hover { color: var(--xin-accent); background: transparent; }
.member-wide-dashboard .member-notification-link span { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; color: #fff; background: #ef4444; font-size: 11px; line-height: 18px; text-align: center; }
.member-wide-dashboard .member-top-link { color: #334155; font-size: 14px; }
.member-wide-dashboard .member-top-link:hover { color: var(--xin-accent); }
.member-wide-dashboard .avatar,
.member-wide-dashboard .user-avatar-lg { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #eef3f8; color: #98a2b3; font-weight: 600; }
.member-wide-dashboard .avatar { width: 38px; height: 38px; font-size: 16px; }
.member-wide-dashboard .avatar img,
.member-wide-dashboard .user-avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-wide-dashboard .user-name { color: #1e293b; font-weight: 500; }
.member-wide-dashboard .dropdown-arrow { color: #94a3b8; font-size: 12px; }
.member-wide-dashboard .dropdown-menu-custom { position: absolute; top: 56px; right: 0; z-index: 10; display: none; min-width: 160px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.member-wide-dashboard .user-dropdown:hover .dropdown-menu-custom,
.member-wide-dashboard .user-dropdown:focus-within .dropdown-menu-custom { display: block; }
.member-wide-dashboard .dropdown-menu-custom a,
.member-wide-dashboard .dropdown-menu-custom button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 16px; border: 0; background: transparent; color: #334155; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.member-wide-dashboard .dropdown-menu-custom a:hover,
.member-wide-dashboard .dropdown-menu-custom button:hover { background: var(--xin-accent-soft); color: var(--xin-accent); }
.member-wide-dashboard .dropdown-menu-custom i { width: 18px; }
.member-wide-dashboard .dropdown-menu-custom form { margin: 0; }
.member-wide-dashboard .divider { height: 1px; margin: 6px 0; background: #edf2f7; }
.member-wide-dashboard .main-container,
.member-wide-dashboard .member-layout { display: flex; gap: 14px; max-width: none; min-height: calc(100vh - 64px - 49px); margin: 20px 48px 0 64px; padding: 0; }
.member-wide-dashboard .side-menu { position: sticky; top: 84px; width: 250px; flex: 0 0 250px; align-self: flex-start; height: calc(100vh - 104px); overflow-y: auto; padding: 16px 0; border: 1px solid #eef2f8; background: #fff; }
.member-wide-dashboard .menu-group { margin-bottom: 16px; }
.member-wide-dashboard .menu-group:last-child { margin-bottom: 0; }
.member-wide-dashboard .menu-group-title { padding: 9px 20px; color: #6c86a3; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.member-wide-dashboard .menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 20px; border: 0; background: transparent; color: #334155; font: inherit; font-size: 16px; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.member-wide-dashboard .menu-item i { width: 18px; color: #7e8a9e; font-size: 16px; }
.member-wide-dashboard .menu-item.is-active { border-left: 3px solid var(--xin-accent); background: var(--xin-accent-soft); color: var(--xin-accent); }
.member-wide-dashboard .menu-item.is-active .tanz-icon,
.member-wide-dashboard .menu-item.is-active i { color: var(--xin-accent); }
.member-wide-dashboard .menu-item:hover:not(.is-active) { background: #f8fafc; }
.member-wide-dashboard .side-menu form { margin: 0; }
.member-wide-dashboard .right-content { flex: 1; min-width: 0; }
.member-wide-dashboard .member-main { padding: 0; }
.member-wide-dashboard .member-page-head,
.member-wide-dashboard .member-panel,
.member-wide-dashboard .member-stat-grid,
.member-wide-dashboard .member-asset-section,
.member-wide-dashboard .member-main > .member-message { max-width: none; }
.member-wide-dashboard .member-page-head { margin: 0 0 20px; }
.member-wide-dashboard .member-page-head h2 { color: #0f172a; font-size: 22px; line-height: 1.35; }
.member-wide-dashboard .member-panel,
.member-wide-dashboard .member-stat-card,
.member-wide-dashboard .member-asset-card { border-color: #eef2f8; border-radius: 0; }
.member-wide-dashboard .member-panel { margin-bottom: 24px; }
.member-wide-dashboard .member-footer { height: auto; max-width: 1400px; margin: 16px auto 0; padding: 20px 24px 10px; border-top: 1px solid #eef2f8; color: #94a3b8; line-height: 1.5; }
.member-wide-dashboard .user-card,
.member-wide-dashboard .info-card,
.member-wide-dashboard .record-item,
.member-wide-dashboard .action-btn,
.member-wide-dashboard .btn-outline,
.member-wide-dashboard .btn-primary-sm { border-radius: 0; }
.member-wide-dashboard .user-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; margin-bottom: 24px; border: 1px solid #eef2f8; background: #fff; }
.member-wide-dashboard .user-info { display: flex; align-items: center; gap: 20px; min-width: 260px; }
.member-wide-dashboard .user-avatar-lg { width: 80px; height: 80px; flex: 0 0 80px; font-size: 32px; }
.member-wide-dashboard .user-details { min-width: 0; }
.member-wide-dashboard .user-details h3 { margin: 0 0 4px; color: #0f172a; font-size: 20px; font-weight: 600; line-height: 1.3; }
.member-wide-dashboard .user-details p { margin: 0; color: #6c86a3; font-size: 13px; }
.member-wide-dashboard .stats-badge { display: flex; gap: 28px; align-items: center; }
.member-wide-dashboard .stats-badge .stat-badge-item:nth-child(n+3) { display: none; }
.member-wide-dashboard .stat-badge-item { min-width: 70px; text-align: center; }
.member-wide-dashboard .stat-badge-value { color: #0f172a; font-size: 26px; font-weight: 700; line-height: 1.2; }
.member-wide-dashboard .stat-badge-value span { font-size: 14px; }
.member-wide-dashboard .stat-badge-label { margin-top: 4px; color: #6c86a3; font-size: 12px; }
.member-wide-dashboard .user-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.member-wide-dashboard .btn-outline,
.member-wide-dashboard .btn-primary-sm { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.member-wide-dashboard .btn-outline { border: 1px solid #e2e8f0; background: transparent; color: #0f172a; }
.member-wide-dashboard .btn-outline:hover { border-color: #cbd5e1; background: #f8fafc; }
.member-wide-dashboard .btn-primary-sm { border: 1px solid var(--xin-accent); background: var(--xin-accent); color: #fff; }
.member-wide-dashboard .info-card { margin-bottom: 24px; border: 1px solid #eef2f8; background: #fff; }
.member-wide-dashboard .card-header { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border-bottom: 1px solid #edf2f7; font-size: 15px; font-weight: 600; }
.member-wide-dashboard .card-header a { color: var(--xin-accent); font-size: 12px; white-space: nowrap; }
.member-wide-dashboard .card-body { padding: 16px 20px; }
.member-wide-dashboard .post-list { display: flex; flex-direction: column; }
.member-wide-dashboard .post-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 0; border-bottom: 1px solid #f0f2f6; }
.member-wide-dashboard .post-row:last-child { border-bottom: 0; }
.member-wide-dashboard .post-title { min-width: 0; color: #0f172a; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.member-wide-dashboard .status-badge { flex: 0 0 auto; padding: 4px 12px; border-radius: 30px; background: #e6f7e6; color: #2b6e2f; font-size: 11px; }
.member-wide-dashboard .status-warning { background: #fff3e0; color: #b45309; }
.member-wide-dashboard .records-list { display: flex; flex-direction: column; gap: 12px; }
.member-wide-dashboard .records-list .record-item:nth-child(n+4) { display: none; }
.member-wide-dashboard .record-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 16px; border: 1px solid #edf2f8; background: #fafcff; color: #1e293b; transition: background .2s, border-color .2s; }
.member-wide-dashboard .record-item:hover { border-color: #e2e8f0; background: #fff; }
.member-wide-dashboard .record-time { min-width: 150px; color: #6c86a3; font-size: 12px; }
.member-wide-dashboard .record-type { min-width: 60px; font-weight: 500; }
.member-wide-dashboard .record-change { min-width: 70px; color: #10b981; font-weight: 600; }
.member-wide-dashboard .record-change.is-minus { color: #d92d20; }
.member-wide-dashboard .record-balance { min-width: 70px; }
.member-wide-dashboard .record-source { min-width: 90px; color: #475569; }
.member-wide-dashboard .record-desc { flex: 1; color: #6c86a3; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.member-wide-dashboard .member-notification-list { display: grid; gap: 12px; }
.member-wide-dashboard .member-notification-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid #eef2f8; background: #fff; }
.member-wide-dashboard .member-notification-item.is-unread { border-color: var(--xin-line-strong); background: #f8fbff; }
.member-wide-dashboard .member-notification-main { min-width: 0; }
.member-wide-dashboard .member-notification-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.member-wide-dashboard .member-notification-title strong { color: #0f172a; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.member-wide-dashboard .member-notification-title span { min-width: 36px; height: 20px; border-radius: 999px; color: var(--xin-link); background: var(--xin-accent-soft); font-size: 12px; line-height: 20px; text-align: center; }
.member-wide-dashboard .member-notification-main p { margin: 0 0 8px; color: #475569; line-height: 1.7; overflow-wrap: anywhere; }
.member-wide-dashboard .member-notification-main em { color: #94a3b8; font-size: 12px; font-style: normal; }
.member-wide-dashboard .member-notification-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.member-wide-dashboard .action-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 10px; }
.member-wide-dashboard .action-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 20px; border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.member-wide-dashboard .action-btn:hover { border-color: #cbd5e1; background: #f8fafc; transform: translateY(-1px); }
.member-wide-dashboard .copyright { margin-top: 16px; padding: 20px 0 10px; border-top: 1px solid #eef2f8; color: #94a3b8; font-size: 11px; text-align: center; }

@media (max-width: 1000px) {
  .member-wide-dashboard .main-container,
  .member-wide-dashboard .member-layout { flex-direction: column; }
  .member-wide-dashboard .member-layout { margin: 20px 16px 0; }
  .member-wide-dashboard .side-menu { position: static; width: 100%; height: auto; flex-basis: auto; }
  .member-wide-dashboard .user-card { align-items: flex-start; flex-direction: column; }
  .member-wide-dashboard .stats-badge { margin-top: 10px; }
}

@media (max-width: 900px) {
  .member-wide-dashboard .record-item { flex-direction: column; align-items: flex-start; }
  .member-wide-dashboard .record-desc { text-align: left; }
}

@media (max-width: 640px) {
  .member-wide-dashboard .header-container,
  .member-wide-dashboard .main-container,
  .member-wide-dashboard .member-layout { padding-right: 14px; padding-left: 14px; }
  .member-wide-dashboard .member-layout { margin-right: 0; margin-left: 0; }
  .member-wide-dashboard .logo-area { width: auto; }
  .member-wide-dashboard .logo-text { font-size: 20px; }
  .member-wide-dashboard .logo-badge,
  .member-wide-dashboard .user-name,
  .member-wide-dashboard .dropdown-arrow { display: none; }
  .member-wide-dashboard .user-info { min-width: 0; }
  .member-wide-dashboard .user-avatar-lg { width: 68px; height: 68px; flex-basis: 68px; font-size: 28px; }
  .member-wide-dashboard .stats-badge { width: 100%; justify-content: flex-start; gap: 24px; }
  .member-wide-dashboard .user-actions,
  .member-wide-dashboard .btn-outline,
  .member-wide-dashboard .btn-primary-sm { width: 100%; }
  .member-wide-dashboard .post-row { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .member-wide-dashboard .action-btn { width: 100%; justify-content: center; }
}

@media (max-width: 860px) {
  .member-layout { display: block; }
  .member-sidebar { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .member-main { padding: 16px; }
  .member-order-layout { grid-template-columns: 1fr; }
  .member-order-side { position: static; }
  .member-order-item { display: block; }
  .member-order-price { margin-top: 10px; }
  .member-field { display: block; }
  .member-field > span { display: block; width: auto; padding: 0 0 8px; text-align: left; }
  .member-field > input[type=text],
  .member-field > input[type=number],
  .member-field > input[type=email],
  .member-field > input[type=password],
  .member-field > input[type=url],
  .member-field > select,
  .member-field > textarea:not([data-member-editor]) { width: 100%; }
  .member-order-pay-field { width: 100%; }
  .member-order-pay-grid { grid-template-columns: 1fr; }
  .member-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-order-delivery-head { align-items: flex-start; flex-direction: column; }
  .member-order-feedback { width: 100%; }
  .member-order-delivery-item,
  .member-order-delivery-line { grid-template-columns: 1fr; }
  .member-order-delivery-title { line-height: 1.5; }
  .member-order-delivery-action { align-items: stretch; flex-direction: column; }
  .member-order-delivery-path { white-space: normal; word-break: break-word; }
  .member-order-delivery-count { white-space: normal; }
  .member-withdraw-preview { grid-template-columns: 1fr; margin-left: 0; }
  .member-order-search { align-items: stretch; flex-direction: column; }
  .member-order-search input[type=search],
  .member-order-search .member-button { width: 100%; }
  .member-payment-options { grid-template-columns: 1fr; max-width: none; }
  .member-recharge-row { grid-template-columns: 1fr; gap: 8px; }
  .member-page-title-row { align-items: flex-start; flex-direction: column; }
  .member-recharge-label { line-height: 1.4; }
  .member-recharge-type { width: calc(50% - 7px); min-width: 130px; }
  .member-recharge-plan-grid { grid-template-columns: 1fr; }
  .member-recharge-tip { line-height: 1.7; }
  .member-recharge-settle { grid-template-columns: 1fr; margin-left: 0; padding: 12px; }
  .member-recharge-payline { justify-content: space-between; }
  .member-recharge-actions { align-items: stretch; flex-direction: column-reverse; }
  .member-order-query-item { grid-template-columns: 1fr; }
  .member-order-query-item strong { white-space: normal; }
  .member-order-actions { align-items: stretch; flex-direction: column; }
  .member-order-actions a,
  .member-order-actions button { width: 100%; box-sizing: border-box; }
  .member-order-form .member-field > input[type=text],
  .member-order-form .member-field > input[type=number],
  .member-order-form .member-field > textarea:not([data-member-editor]) { width: 100%; }
}

@media (max-width: 520px) {
  .member-panel { padding: 20px; }
  .member-page-head h2 { font-size: 20px; }
  .member-order-total { align-items: flex-start; flex-direction: column; }
  .member-asset-grid { grid-template-columns: 1fr; }
  .member-stat-grid { grid-template-columns: 1fr; }
}
