:root {
  --brand: #1e9fff;
  --text: #344054;
  --muted: #8b96a5;
  --line: #e6e6e6;
  --soft: #f5f7fa;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--text); font-family: "微软雅黑", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }

.member-auth-page { display: flex; flex-direction: column; min-height: 100vh; }
.member-auth-guest-page { background: var(--soft); }

.member-topbar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.member-topbar .member-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.member-topbar .member-logo img { display: block; width: 170px; height: auto; max-height: 40px; object-fit: contain; }
.member-topnav { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.member-topnav a:hover { color: var(--brand); }

.member-auth-wrap { display: flex; flex: 1 0 auto; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 48px 16px 64px; }
.member-auth-wrap > .member-page-head,
.member-auth-wrap > .member-panel,
.member-auth-wrap > .member-message,
.member-auth-wrap > .member-form-alert,
.member-auth-wrap > .member-quick-login,
.member-auth-wrap > .member-auth-switch { width: min(420px, 100%); }
.member-page-head { margin-bottom: 16px; text-align: center; }
.member-page-head h2 { margin: 0; color: #1f2937; font-size: 24px; font-weight: 700; line-height: 1.35; }
.member-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.member-auth-wrap > .member-panel + .member-panel { margin-top: 16px; }

.member-form .layui-form-item { margin-bottom: 16px; }
.member-form .layui-input,
.member-field input,
.member-field select,
.member-field textarea { min-height: 40px; border-color: #dcdfe6; border-radius: 4px; color: var(--text); }
.member-form .layui-input:focus,
.member-field input:focus,
.member-field select:focus,
.member-field textarea:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 2px rgba(30, 159, 255, .08); }
.member-auth-wrap .layui-input.is-invalid,
.member-form .layui-input.is-invalid { border-color: #f04438 !important; box-shadow: 0 0 0 2px rgba(240, 68, 56, .08); }

.member-button,
.member-actions button,
.member-actions .primary { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--brand); border-radius: 4px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: opacity .18s ease, border-color .18s ease, background .18s ease; }
.member-button:hover,
.member-actions button:hover,
.member-actions .primary:hover { opacity: .9; }
.member-button:disabled,
.member-actions button:disabled { cursor: not-allowed; opacity: .62; }
.member-auth-wrap .member-button { width: 100%; }

.member-message { width: 100%; 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: #1d4ed8; background: #eff6ff; }
.member-message a { color: inherit; font-weight: 600; text-decoration: underline; }
.member-form-alert { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #ffd0d0; border-radius: 4px; background: #fff3f3; color: #c83232; font-size: 14px; line-height: 1.6; }
.member-form-alert[hidden],
.member-auth-agreement-text[hidden] { display: none; }

.member-auth-checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 14px; cursor: pointer; }
.member-auth-checkbox input,
.member-auth-agreement-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.member-forgot-link { float: right; color: var(--brand); line-height: 22px; }
.member-auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); }
.member-auth-switch a { color: var(--brand); text-decoration: none; }

.member-sms-code-line,
.member-code-line { display: flex; align-items: stretch; gap: 10px; }
.member-sms-code-line input,
.member-code-line .layui-input { flex: 1 1 160px; min-width: 0; }
.member-sms-code-line .member-button,
.member-code-line .member-button,
.member-sms-code-line button,
.member-code-line button { flex: 0 0 126px; width: auto; padding: 0 12px; white-space: nowrap; }

.member-quick-login { margin-top: 22px; }
.member-quick-login-title { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.member-quick-login-title:before,
.member-quick-login-title:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.member-quick-login-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.member-quick-login-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); font-size: 14px; text-decoration: none; }
.member-quick-login-btn span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.member-quick-login-btn strong { font-weight: 600; }
.member-quick-login-btn.is-qq span { background: #2b9cff; }
.member-quick-login-btn.is-wechat span { background: #20b15a; }
.member-quick-login-btn.is-logo {
  border-color: transparent;
  background: transparent;
}
.member-quick-login-btn.is-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 24px;
}
.member-quick-login-btn:hover { border-color: var(--brand); color: var(--brand); background: #f8fbff; }
.member-quick-login-btn.is-logo:hover {
  border-color: transparent;
  background: transparent;
  opacity: .88;
}

.member-auth-agreement { display: flex; align-items: center; flex-wrap: wrap; gap: 0; color: var(--muted); line-height: 1.7; }
.member-auth-agreement-check { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); cursor: pointer; }
.member-auth-agreement-check a { margin: 0 2px; color: var(--brand); text-decoration: none; }
.member-auth-agreement.has-error { padding: 8px; border-radius: 4px; background: #fff1f0; }
.member-agreement-open { display: inline-flex; align-items: center; height: 24px; margin-left: 6px; padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; line-height: 1; cursor: pointer; }
.member-agreement-open:hover { text-decoration: underline; }
.member-agreement-layer { max-height: 410px; overflow-y: auto; padding: 20px 24px; color: var(--text); font-size: 14px; line-height: 1.9; white-space: pre-wrap; }

.member-auth-shell { width: min(560px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .06); }
.member-auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 58px; border-bottom: 1px solid var(--line); background: #f9fafb; }
.member-auth-tabs a,
.member-auth-tabs span { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 17px; font-weight: 600; }
.member-auth-tabs .is-active { background: #fff; color: var(--brand); }
.member-auth-card { padding: 28px; }
.member-reset-tabs { display: flex; gap: 0; margin-bottom: 18px; border: 1px solid #dbeafe; border-radius: 4px; overflow: hidden; }
.member-reset-tabs button { flex: 1; min-height: 40px; border: 0; background: #eff6ff; color: #1d4ed8; font: inherit; font-weight: 600; cursor: pointer; }
.member-reset-tabs button + button { border-left: 1px solid #dbeafe; }
.member-reset-tabs button.is-active { background: var(--brand); color: #fff; }
.member-auth-grid { display: block; }
.member-auth-grid .layui-form-item > label { display: block; margin-bottom: 7px; color: #475467; font-weight: 600; }
.member-register-control { min-width: 0; }
.member-field-message { margin-top: 7px; color: #b42318; font-size: 13px; line-height: 1.5; }
.member-field-message.is-success { color: #15803d; }

.member-qq-wrap { justify-content: flex-start; padding-top: 48px; }
.member-qq-shell { width: min(860px, 100%); overflow: hidden; border: 1px solid #dce7ed; border-radius: 8px; background: #fff; box-shadow: 0 12px 32px rgba(52, 84, 100, .12); }
.member-qq-hello { display: flex; align-items: center; gap: 18px; padding: 28px 34px; background: linear-gradient(135deg, #f8fbff, #eef7fc); border-bottom: 1px solid #e3edf4; }
.member-qq-hello img,
.member-qq-hello > span { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; }
.member-qq-hello img { display: block; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(43, 84, 104, .16); }
.member-qq-hello > span { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #2b9cff; font-weight: 700; }
.member-qq-hello h1 { margin: 0 0 7px; color: #1f2d35; font-size: 26px; line-height: 1.25; }
.member-qq-hello p { margin: 0; color: #667085; line-height: 1.7; }
.member-qq-shell > .member-message { margin: 18px 34px 0; width: auto; }
.member-qq-tabs { display: flex; align-items: stretch; gap: 0; padding: 22px 34px 0; border-bottom: 1px solid #e5edf3; }
.member-qq-tabs button { min-width: 146px; min-height: 44px; margin: 0 -1px -1px 0; border: 1px solid #dbe5eb; background: #f8fafc; color: #344054; font: inherit; font-weight: 600; cursor: pointer; }
.member-qq-tabs button:first-child { border-radius: 6px 0 0 0; }
.member-qq-tabs button:last-child { border-radius: 0 6px 0 0; }
.member-qq-tabs button.is-active { position: relative; z-index: 1; border-bottom-color: #fff; background: #fff; color: var(--brand); }
.member-qq-panel { padding: 28px 34px 34px; }
.member-qq-panel.is-hidden { display: none; }
.member-field { display: flex; align-items: flex-start; margin-bottom: 16px; }
.member-field > span { width: 112px; flex: 0 0 112px; padding-top: 9px; color: var(--text); font-weight: 600; text-align: right; }
.member-field > span em { margin-right: 2px; color: #f04438; font-style: normal; }
.member-field > input[type=text],
.member-field > input[type=email],
.member-field > input[type=password] { width: min(100%, 520px); }
.member-field-control { min-width: 0; flex: 1; }
.member-actions { display: flex; align-items: center; gap: 10px; margin-left: 112px; }

.member-footer { flex: 0 0 auto; 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; }

@media (max-width: 860px) {
  .member-qq-hello { align-items: flex-start; padding: 22px; }
  .member-qq-tabs { padding: 18px 22px 0; }
  .member-qq-tabs button { min-width: 0; flex: 1; }
  .member-qq-panel { padding: 22px; }
  .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=email],
  .member-field > input[type=password] { width: 100%; }
  .member-actions { margin-left: 0; }
}

@media (max-width: 520px) {
  .member-topbar { padding: 0 16px; }
  .member-topbar .member-logo img { width: 138px; }
  .member-topnav { gap: 10px; font-size: 13px; }
  .member-auth-wrap { padding: 32px 12px 46px; }
  .member-panel,
  .member-auth-card { padding: 22px; }
  .member-page-head h2 { font-size: 20px; }
  .member-sms-code-line,
  .member-code-line { gap: 8px; }
  .member-sms-code-line .member-button,
  .member-code-line .member-button,
  .member-sms-code-line button,
  .member-code-line button { flex-basis: 112px; padding: 0 8px; }
}
