
html.xh-auth-html {
  background: var(--xh-bg, #1a150e);
  color: var(--xh-text, #e8ecf1);
}
html.xh-auth-html[data-xuan-theme="light"] { color-scheme: light; }
html.xh-auth-html:not([data-xuan-theme="light"]) { color-scheme: dark; }
html.xh-auth-html,
body.xh-auth-page {
  margin: 0;
  min-height: 100%;
}
html.xh-auth-html body.xh-auth-page,
body.xh-auth-page {
  background:
    var(--xh-atmo, radial-gradient(1200px 640px at 12% -10%, color-mix(in srgb, var(--xh-accent, var(--xh-accent)) 12%, transparent), transparent 58%)),
    linear-gradient(180deg, var(--xh-bg, #10141d) 0%, var(--xh-bg-deep, #0a0e17) 100%) !important;
  color: var(--xh-text, #e8ecf1) !important;
  font-family: var(--xh-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
}
.xh-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.xh-auth-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.xh-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3ead4 !important;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .08em;
}
.xh-auth-brand > span:last-child {
  color: #f3ead4 !important;
}
.xh-auth-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, .45);
  background: rgba(12, 14, 20, .88);
  color: var(--xh-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.xh-auth-mark img {
  width: 18px;
  height: 18px;
  display: block;
}
.xh-auth-back {
  color: #8b95a8;
  text-decoration: none;
  font-size: 13px;
}
.xh-auth-back:hover { color: var(--xh-accent); }
.xh-auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
}
.xh-auth-card {
  width: min(420px, 92vw);
  padding: 32px;
  background: rgba(20, 24, 36, .95);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  box-sizing: border-box;
}
.xh-auth-card [hidden] { display: none !important; }
.xh-auth-foot {
  text-align: center;
  color: #5a6378;
  font-size: 12px;
  padding: 0 16px 28px;
}
.xh-auth-foot a { color: #8b95a8; text-decoration: none; }
.xh-auth-foot a:hover { color: var(--xh-accent); }
.xh-auth-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 15px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #12223a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.xh-auth-toast.show {
  opacity: 1;
  transform: none;
}
.qf-auth-header { margin-bottom: 18px; }
.qf-auth-title { font-size: 22px; font-weight: 650; margin: 0 0 6px; color: #e8ecf1; letter-spacing: .02em; }
.qf-auth-subtitle { font-size: 13px; color: #8b95a8; line-height: 1.5; margin: 0; }
.qf-auth-context-hint {
  font-size: 12px; color: var(--xh-accent); line-height: 1.6; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px;
  background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .2);
}
.qf-auth-lock-hint { font-size: 12px; color: #8b95a8; line-height: 1.5; margin: -4px 0 12px; }
.qf-auth-lock-hint[hidden] { display: none !important; }
.qf-auth-register-perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.qf-auth-guest[data-mode="login"] .qf-auth-register-perks { display: none !important; }
.qf-auth-perk {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; color: var(--xh-accent); background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .18);
}
.qf-auth-tabs,
.qf-auth-divider { display: none !important; }
.qf-auth-channel {
  display: flex; gap: 8px; margin: 0 0 18px; padding: 4px; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
}
.qf-auth-channel-btn {
  flex: 1; padding: 9px 8px; text-align: center; font-size: 13px; font-weight: 500; color: #8b95a8;
  background: transparent; border: none; border-radius: 8px; cursor: pointer; transition: all .2s;
}
.qf-auth-channel-btn.active { background: rgba(212, 175, 55, .1); color: var(--xh-accent); font-weight: 600; }
.qf-auth-channel-btn:hover:not(.active) { color: #e8ecf1; }
.qf-auth-form-group { margin-bottom: 16px; }
.qf-auth-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: #8b95a8; }
.qf-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.qf-auth-label-row .qf-auth-label {
  margin-bottom: 0;
}
.qf-auth-forgot-btn,
a.qf-auth-forgot-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  padding: 4px 2px !important;
  margin: 0 0 0 auto;
  min-height: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  width: auto !important;
  line-height: 1.35;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--xh-accent, #d4af37) !important;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 6px;
  filter: none !important;
  transform: none !important;
  transition: color .15s ease, background-color .15s ease, opacity .15s ease;
}
.qf-auth-forgot-btn:hover,
a.qf-auth-forgot-btn:hover {
  color: #f0d890 !important;
  background: rgba(212, 175, 55, .1) !important;
  text-decoration: none !important;
  filter: none !important;
  transform: none !important;
}
.qf-auth-forgot-btn:active,
a.qf-auth-forgot-btn:active {
  transform: none !important;
  filter: none !important;
}
.qf-auth-forgot-btn:focus-visible,
a.qf-auth-forgot-btn:focus-visible {
  outline: 2px solid var(--xh-accent, #d4af37) !important;
  outline-offset: 2px;
  border-radius: 6px;
}
.qf-auth-forgot-btn[hidden],
a.qf-auth-forgot-btn[hidden] { display: none !important; }
.qf-auth-password-hint { margin: 6px 0 0; font-size: 11px; color: #697386; line-height: 1.45; }
.qf-auth-password-hint[hidden] { display: none !important; }
.qf-auth-pw-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 0;
}
.qf-auth-pw-meter-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease;
}
.qf-auth-pw-meter[data-score="1"] .qf-auth-pw-meter-bar:nth-child(1) { background: #ef4444; }
.qf-auth-pw-meter[data-score="2"] .qf-auth-pw-meter-bar:nth-child(-n+2) { background: #f59e0b; }
.qf-auth-pw-meter[data-score="3"] .qf-auth-pw-meter-bar:nth-child(-n+3) { background: #3b82f6; }
.qf-auth-pw-meter[data-score="4"] .qf-auth-pw-meter-bar { background: #22c55e; }
.qf-auth-reset-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #c5cddc;
  background: linear-gradient(135deg, rgba(212, 175, 55, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(212, 175, 55, .22);
  box-shadow: inset 3px 0 0 var(--xh-accent, #d4af37);
}
.qf-auth-reset-tip-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--xh-accent, #d4af37);
  background: rgba(212, 175, 55, .12);
}
.qf-auth-reset-tip-text { flex: 1; min-width: 0; }
.qf-auth-reset-tip-text strong {
  color: #e8ecf1;
  font-weight: 650;
}
.qf-auth-reset-tip[hidden] { display: none !important; }
.qf-auth-guest[data-mode="reset"] .qf-auth-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.qf-auth-guest[data-mode="reset"] .qf-auth-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qf-auth-guest[data-mode="reset"] .qf-auth-merge-hint { display: none !important; }
.qf-auth-guest[data-mode="reset"] .qf-auth-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qf-auth-guest[data-mode="reset"] #qfAuthEmailGroup { order: 1; }
.qf-auth-guest[data-mode="reset"] #qfAuthResetTip { order: 2; }
.qf-auth-guest[data-mode="reset"] #qfAuthCodeGroup { order: 3; }
.qf-auth-guest[data-mode="reset"] #qfAuthCaptchaGroup { order: 4; }
.qf-auth-guest[data-mode="reset"] #qfAuthTurnstileGroup { order: 5; }
.qf-auth-guest[data-mode="reset"] #qfAuthNewPasswordGroup { order: 6; }
.qf-auth-guest[data-mode="reset"] #qfAuthConfirmPasswordGroup { order: 7; }
.qf-auth-guest[data-mode="reset"] #qfAuthLockHint { order: 8; }
.qf-auth-guest[data-mode="reset"] #qfAuthLogin { order: 9; margin-top: 8px; }
.qf-auth-input {
  width: 100%; padding: 12px 14px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; color: #e8ecf1; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.qf-auth-input::placeholder { color: #5a6378; }
.qf-auth-input:focus { border-color: var(--xh-accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
.qf-auth-input.qf-auth-input-error, .qf-auth-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.qf-auth-code-row { display: flex; gap: 10px; }
.qf-auth-code-row .qf-auth-input { flex: 1; }
.qf-auth-phone-row { display: flex; align-items: stretch; gap: 0; }
.qf-auth-phone-prefix {
  display: flex; align-items: center; justify-content: center; min-width: 58px; padding: 0 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-right: none;
  border-radius: 8px 0 0 8px; color: #aeb8c8; font-size: 13px; font-weight: 600;
}
.qf-auth-phone-row .qf-auth-input { border-radius: 0 8px 8px 0; border-left: none; flex: 1; min-width: 0; }
.qf-auth-phone-row .qf-auth-input:focus { box-shadow: none; }
.qf-auth-phone-row:focus-within .qf-auth-phone-prefix,
.qf-auth-phone-row:focus-within .qf-auth-input { border-color: var(--xh-accent); }
.qf-auth-phone-row:focus-within { box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); border-radius: 8px; }
.qf-auth-captcha-row { display: flex; gap: 10px; align-items: stretch; }
.qf-auth-captcha-row .qf-auth-input { flex: 1; min-width: 0; }
.qf-auth-captcha-img {
  flex: 0 0 132px; width: 132px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px; background: #f8fafc; cursor: pointer; overflow: hidden; position: relative;
}
.qf-auth-captcha-img:hover { border-color: var(--xh-accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }
.qf-auth-captcha-img.loading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); }
.qf-auth-captcha-img img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.qf-auth-captcha-hint { margin: 6px 0 0; font-size: 11px; color: #5a6378; line-height: 1.4; }
.qf-auth-turnstile { min-height: 65px; }
.qf-auth-remember { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #aeb8c8; margin: 0 0 10px; line-height: 1.5; cursor: pointer; }
html.xh-auth-html .qf-auth-remember,
html.xh-auth-html .qf-auth-terms,
html.xh-auth-html .xh-disclaimer-check {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start !important;
  min-height: 44px;
  padding: 8px 10px;
  margin: 4px 0 0;
  border-radius: 10px;
  cursor: pointer;
}
html.xh-auth-html .qf-auth-age {
  min-height: 48px;
}
html.xh-auth-html .qf-auth-remember > span:not(.xh-check-box),
html.xh-auth-html .qf-auth-terms > span:not(.xh-check-box),
html.xh-auth-html .xh-disclaimer-check > span:not(.xh-check-box) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  position: relative;
  z-index: 0;
  pointer-events: none;
}
html.xh-auth-html .qf-auth-remember a,
html.xh-auth-html .qf-auth-terms a,
html.xh-auth-html .xh-disclaimer-check a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
html.xh-auth-html .qf-auth-remember input[type="checkbox"],
html.xh-auth-html .qf-auth-terms input[type="checkbox"],
html.xh-auth-html .xh-disclaimer-check input[type="checkbox"] {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  pointer-events: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: nowrap !important;
  border: 0 !important;
  z-index: 1 !important;
  cursor: pointer !important;
}
html.xh-auth-html .xh-check-box {
  box-sizing: border-box !important;
  grid-column: 1;
  grid-row: 1;
  place-self: start start;
  flex: none !important;
  align-self: start !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  display: block !important;
  border: 2px solid #3b50df !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  background-image: none !important;
  font-style: normal !important;
  line-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  aspect-ratio: 1 / 1 !important;
  position: relative;
  z-index: 0;
}
html.xh-auth-html .xh-check-box::after {
  content: none !important;
  display: none !important;
}
html.xh-auth-html .qf-auth-remember input:checked + .xh-check-box,
html.xh-auth-html .qf-auth-terms input:checked + .xh-check-box,
html.xh-auth-html .xh-disclaimer-check input:checked + .xh-check-box {
  background-color: #3b50df !important;
  border-color: #3b50df !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.6' d='M3.2 8.2 6.6 11.4 12.8 4.6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}
html.xh-auth-html[data-xuan-theme="heritage"] .xh-check-box,
html.xh-auth-html[data-xuan-theme="obsidian"] .xh-check-box {
  border-color: var(--xh-accent, #c9a96e) !important;
  background-color: #fff !important;
}
html.xh-auth-html[data-xuan-theme="heritage"] .qf-auth-remember input:checked + .xh-check-box,
html.xh-auth-html[data-xuan-theme="heritage"] .qf-auth-terms input:checked + .xh-check-box,
html.xh-auth-html[data-xuan-theme="heritage"] .xh-disclaimer-check input:checked + .xh-check-box,
html.xh-auth-html[data-xuan-theme="obsidian"] .qf-auth-remember input:checked + .xh-check-box,
html.xh-auth-html[data-xuan-theme="obsidian"] .qf-auth-terms input:checked + .xh-check-box,
html.xh-auth-html[data-xuan-theme="obsidian"] .xh-disclaimer-check input:checked + .xh-check-box {
  background-color: var(--xh-accent, #c9a96e) !important;
  border-color: var(--xh-accent, #c9a96e) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2317130d' stroke-width='2.6' d='M3.2 8.2 6.6 11.4 12.8 4.6'/%3E%3C/svg%3E") !important;
}
html.xh-auth-html .qf-auth-remember:not(:has(.xh-check-box))::before,
html.xh-auth-html .qf-auth-terms:not(:has(.xh-check-box))::before,
html.xh-auth-html .xh-disclaimer-check:not(:has(.xh-check-box))::before {
  content: "" !important;
  box-sizing: border-box !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  margin: 1px 0 0 !important;
  border: 2px solid #3b50df !important;
  border-radius: 4px !important;
  background: #fff !important;
}
html.xh-auth-html .qf-auth-remember:not(:has(.xh-check-box)):has(input:checked)::before,
html.xh-auth-html .qf-auth-terms:not(:has(.xh-check-box)):has(input:checked)::before,
html.xh-auth-html .xh-disclaimer-check:not(:has(.xh-check-box)):has(input:checked)::before {
  background-color: #3b50df !important;
  border-color: #3b50df !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.6' d='M3.2 8.2 6.6 11.4 12.8 4.6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}
.qf-auth-code-btn {
  padding: 0 18px; min-width: 110px; background: transparent; border: 1px solid var(--xh-accent); color: var(--xh-accent);
  border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .2s;
  position: relative;
}
.qf-auth-code-btn:hover:not(:disabled) { background: rgba(212, 175, 55, .15); }
.qf-auth-code-btn:disabled, .qf-auth-code-btn.is-countdown { opacity: .5; cursor: not-allowed; border-color: #5a6378; color: #5a6378; }
.qf-auth-code-btn.sending .qf-auth-btn-text { opacity: 0; }
.qf-auth-code-btn.sending .qf-auth-btn-spinner { display: block; }
.qf-auth-field-error { font-size: 12px; color: #ef4444; margin-top: 6px; display: none; align-items: center; gap: 4px; }
.qf-auth-field-error.show { display: flex; }
.qf-auth-submit {
  width: 100%; padding: 14px; margin-top: 8px;
  background: linear-gradient(135deg, var(--xh-accent) 0%, #c49b2a 100%);
  color: #0a0e17; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.qf-auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212, 175, 55, .25); }
.qf-auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.qf-auth-submit .qf-auth-btn-spinner,
.qf-auth-code-btn .qf-auth-btn-spinner {
  display: none; width: 16px; height: 16px; border: 2px solid #0a0e17; border-top-color: transparent;
  border-radius: 50%; animation: xh-auth-spin .8s linear infinite; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -8px;
}
.qf-auth-code-btn .qf-auth-btn-spinner { width: 14px; height: 14px; border-color: var(--xh-accent); border-top-color: transparent; margin: -7px 0 0 -7px; }
.qf-auth-submit.loading .qf-auth-btn-text { opacity: 0; }
.qf-auth-submit.loading .qf-auth-btn-spinner { display: block; }
@keyframes xh-auth-spin { to { transform: rotate(360deg); } }
.qf-auth-merge-hint {
  margin: 14px 0 4px; padding: 10px 14px; display: none; align-items: center; gap: 6px;
  background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .15); border-radius: 8px;
  font-size: 12px; color: #4ade80; line-height: 1.5;
}
.qf-auth-merge-hint.show { display: flex; }
.qf-auth-terms-block {
  margin: 4px 0 12px; padding: 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06);
}
.qf-auth-terms-block[hidden] { display: none !important; }
.qf-auth-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #8b95a8; margin: 8px 0 0; line-height: 1.55; cursor: pointer; }
.qf-auth-terms[hidden] { display: none !important; }
.qf-auth-terms a { color: #aeb8c8; text-decoration: underline; text-underline-offset: 2px; }
.qf-auth-terms a:hover { color: var(--xh-accent); }
.qf-auth-terms-shake { animation: xh-auth-shake .45s ease; }
.qf-auth-terms-error { margin: 8px 0 0; padding-left: 26px; font-size: 12px; color: #ef4444; line-height: 1.4; }
.qf-auth-terms-error[hidden] { display: none; }
@keyframes xh-auth-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.qf-auth-tab-switch { text-align: center; margin: 16px 0 0; font-size: 13px; color: #8b95a8; }
.qf-auth-link-btn,
a.qf-auth-link-btn {
  background: none; border: none; padding: 0; margin-left: 4px; color: var(--xh-accent);
  font-size: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
a.qf-auth-link-btn { display: inline; }
.qf-auth-link-btn:hover { color: #f0d890; }
.qf-auth-demo-wrap { text-align: center; margin-top: 12px; }
.qf-auth-demo-badge {
  display: inline-block; padding: 6px 12px; background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .15); border-radius: 6px; font-size: 12px; color: var(--xh-accent);
}
.qf-auth-success { text-align: center; padding: 12px 0 4px; }
.qf-auth-success-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(74, 222, 128, .1); border: 2px solid #4ade80;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #4ade80;
}
.qf-auth-success-title { font-size: 18px; margin: 0 0 8px; color: #e8ecf1; }
.qf-auth-success-lead { font-size: 13px; color: #8b95a8; margin: 0 0 14px; line-height: 1.55; }
.qf-auth-success-msg { font-size: 13px; color: #8b95a8; margin: 0 0 20px; line-height: 1.6; }
.qf-welcome-card {
  text-align: left;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .22);
  background: rgba(212, 175, 55, .06);
}
.qf-welcome-balance {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.qf-welcome-balance-label { font-size: 12px; color: #8b95a8; }
.qf-welcome-balance-num {
  font-size: 28px; font-weight: 800; color: var(--xh-accent, #d4af37);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.qf-welcome-perks {
  margin: 0 0 10px; padding: 0; list-style: none;
  font-size: 12px; line-height: 1.65; color: #c5cdd9;
}
.qf-welcome-perks li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.qf-welcome-perks li::before {
  content: '•'; position: absolute; left: 0; color: #8b95a8;
}
.qf-welcome-perks li.ok::before { content: '✓'; color: #4ade80; }
.qf-welcome-perks li.muted { color: #8b95a8; }
.qf-welcome-note {
  margin: 0 0 12px; font-size: 11px; line-height: 1.55; color: #8b95a8;
}
.qf-welcome-primary { margin-top: 0; margin-bottom: 8px; }
.qf-welcome-invite-fold {
  margin-top: 12px; text-align: left;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 10px;
}
.qf-welcome-invite-fold summary {
  cursor: pointer; font-size: 12px; color: #8b95a8; user-select: none;
}
.qf-welcome-invite-fold .qf-auth-invite-section {
  margin-top: 10px; border: none; background: transparent; padding: 0;
}
.qf-auth-invite-section {
  margin-top: 16px; padding: 16px; text-align: left;
  background: rgba(212, 175, 55, .06); border: 1px dashed rgba(212, 175, 55, .25); border-radius: 8px;
}
.qf-auth-invite-section h4 { font-size: 14px; color: var(--xh-accent); margin: 0 0 10px; }
.qf-auth-invite-input { text-align: center; letter-spacing: 2px; font-weight: 600; margin-bottom: 10px; }
.qf-auth-invite-submit { margin-top: 0; margin-bottom: 10px; }
.qf-auth-skip {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08);
  background: transparent; color: #8b95a8; font-size: 13px; cursor: pointer;
}
.qf-auth-skip:hover { border-color: #8b95a8; color: #e8ecf1; }
@media (max-width: 480px) {
  .xh-auth-top { padding: 0 16px; }
  .xh-auth-card { padding: 22px 18px 20px; width: 100%; }
  .qf-auth-title { font-size: 18px; }
  .qf-auth-code-btn { min-width: 96px; padding: 0 12px; font-size: 12px; }
}
html.xh-auth-html[data-xuan-theme] .xh-auth-top {
  border-bottom-color: var(--xh-line);
}
html.xh-auth-html[data-xuan-theme] .xh-auth-brand,
html.xh-auth-html[data-xuan-theme] .xh-auth-brand > span:last-child,
html.xh-auth-html[data-xuan-theme] .qf-auth-title,
html.xh-auth-html[data-xuan-theme] .qf-auth-success-title {
  color: var(--xh-text) !important;
}
html.xh-auth-html[data-xuan-theme] .xh-auth-mark {
  color: var(--xh-accent);
  border-color: color-mix(in srgb, var(--xh-accent) 45%, transparent);
  background: color-mix(in srgb, var(--xh-surface) 88%, transparent);
}
html.xh-auth-html[data-xuan-theme] .xh-auth-card {
  background: color-mix(in srgb, var(--xh-surface) 96%, transparent);
  border-color: var(--xh-line);
  box-shadow: var(--xh-shadow);
  color: var(--xh-text);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-subtitle,
html.xh-auth-html[data-xuan-theme] .qh-auth-back,
html.xh-auth-html[data-xuan-theme] .xh-auth-back,
html.xh-auth-html[data-xuan-theme] .qf-auth-tab-switch {
  color: var(--xh-muted);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-label,
html.xh-auth-html[data-xuan-theme] .qf-auth-remember,
html.xh-auth-html[data-xuan-theme] .qf-auth-terms {
  color: var(--xh-body, var(--xh-muted));
}
html.xh-auth-html[data-xuan-theme] .xh-auth-foot {
  color: var(--xh-muted);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-channel {
  background: var(--xh-surface-2);
  border-color: var(--xh-line);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-channel-btn {
  color: var(--xh-body, var(--xh-muted));
}
html.xh-auth-html[data-xuan-theme] .qf-auth-channel-btn:hover:not(.active) {
  color: var(--xh-text);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-phone-prefix {
  color: var(--xh-body, var(--xh-text));
  background: var(--xh-surface-2);
  border-color: var(--xh-line);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-input::placeholder {
  color: var(--xh-muted);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-input {
  color: var(--xh-text);
  background: var(--xh-surface-2);
  border-color: var(--xh-line);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-input:focus,
html.xh-auth-html[data-xuan-theme] .qf-auth-phone-row:focus-within .qf-auth-input,
html.xh-auth-html[data-xuan-theme] .qf-auth-phone-row:focus-within .qf-auth-phone-prefix {
  border-color: var(--xh-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--xh-accent) 25%, transparent);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-submit {
  background: linear-gradient(135deg, var(--xh-accent-strong), var(--xh-accent));
  color: var(--xh-accent-ink);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-forgot-btn,
html.xh-auth-html[data-xuan-theme] a.qf-auth-forgot-btn {
  color: var(--xh-accent) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  filter: none !important;
}
html.xh-auth-html[data-xuan-theme] .qf-auth-forgot-btn:hover,
html.xh-auth-html[data-xuan-theme] a.qf-auth-forgot-btn:hover {
  color: var(--xh-accent-strong, var(--xh-accent)) !important;
  background: color-mix(in srgb, var(--xh-accent) 12%, transparent) !important;
}
html.xh-auth-html[data-xuan-theme] .qf-auth-reset-tip {
  color: var(--xh-body, #aeb8c8);
  background: linear-gradient(135deg, color-mix(in srgb, var(--xh-accent) 12%, transparent), color-mix(in srgb, var(--xh-surface, #fff) 4%, transparent));
  border-color: color-mix(in srgb, var(--xh-accent) 22%, transparent);
  box-shadow: inset 3px 0 0 var(--xh-accent);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-reset-tip-icon {
  color: var(--xh-accent);
  background: color-mix(in srgb, var(--xh-accent) 14%, transparent);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-reset-tip-text strong {
  color: var(--xh-text, #e8ecf1);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-guest[data-mode="reset"] .qf-auth-header {
  border-bottom-color: color-mix(in srgb, var(--xh-line, #fff) 35%, transparent);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-pw-meter-bar {
  background: color-mix(in srgb, var(--xh-line, #ffffff) 40%, transparent);
}
html.xh-auth-html[data-xuan-theme] .qf-auth-channel-btn.active,
html.xh-auth-html[data-xuan-theme] .qf-auth-context-hint,
html.xh-auth-html[data-xuan-theme] .qf-auth-perk {
  color: var(--xh-accent);
  background: var(--xh-accent-soft);
  border-color: color-mix(in srgb, var(--xh-accent) 22%, transparent);
}
html.xh-auth-html[data-xuan-theme="light"] .xh-auth-card {
  box-shadow: var(--xh-shadow);
}

/* ── 浅色主题：提升文字对比度 ── */
html.xh-auth-html[data-xuan-theme="light"] body.xh-auth-page {
  background:
    var(--xh-atmo, radial-gradient(1000px 520px at 72% -12%, rgba(88,101,242,.16), transparent 62%)),
    linear-gradient(180deg, var(--xh-bg, #f4f6fb) 0%, var(--xh-bg-deep, #eef1f7) 100%) !important;
  color: var(--xh-text, #171a2a) !important;
}
html.xh-auth-html[data-xuan-theme="light"] .xh-auth-brand,
html.xh-auth-html[data-xuan-theme="light"] .xh-auth-brand > span:last-child {
  color: var(--xh-text, #171a2a) !important;
}
html.xh-auth-html[data-xuan-theme="light"] .xh-auth-back {
  color: var(--xh-body, #4a5168);
}
html.xh-auth-html[data-xuan-theme="light"] .xh-auth-back:hover {
  color: var(--xh-accent-strong, #4653df);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-subtitle,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-success-lead,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-success-msg,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-tab-switch,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-lock-hint {
  color: var(--xh-body, #4a5168);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-label,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-remember,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-terms,
html.xh-auth-html[data-xuan-theme="light"] .qf-welcome-balance-label,
html.xh-auth-html[data-xuan-theme="light"] .qf-welcome-note,
html.xh-auth-html[data-xuan-theme="light"] .qf-welcome-invite-fold summary,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-skip {
  color: var(--xh-body, #4a5168);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-password-hint,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-captcha-hint,
html.xh-auth-html[data-xuan-theme="light"] .xh-auth-foot,
html.xh-auth-html[data-xuan-theme="light"] .xh-auth-foot a {
  color: var(--xh-muted, #5f687d);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-channel {
  background: var(--xh-surface-2, #f8f9fc);
  border-color: var(--xh-line, #dfe4ef);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-channel-btn {
  color: var(--xh-body, #4a5168);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-channel-btn:hover:not(.active) {
  color: var(--xh-text, #171a2a);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-channel-btn.active {
  color: var(--xh-accent-strong, #4653df);
  background: var(--xh-accent-soft, #eef0ff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--xh-accent, #5865f2) 35%, transparent);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-phone-prefix {
  color: var(--xh-text, #171a2a);
  background: var(--xh-surface-2, #f8f9fc);
  border-color: var(--xh-line, #dfe4ef);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-input {
  color: var(--xh-text, #111420);
  background: #ffffff;
  border-color: #cbd5e4;
  box-shadow: 0 1px 3px rgba(17, 20, 32, 0.05);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-input:focus {
  border-color: #3b50df;
  box-shadow: 0 0 0 3px rgba(59, 80, 223, 0.18);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-input::placeholder {
  color: #647087;
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-terms a {
  color: var(--xh-accent-strong, #4653df);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-terms-block {
  background: var(--xh-surface-2, #f8f9fc);
  border-color: var(--xh-line, #dfe4ef);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-code-btn {
  color: var(--xh-accent-strong, #4653df);
  border-color: var(--xh-accent, #5865f2);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-code-btn:disabled,
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-code-btn.is-countdown {
  color: #7a8499;
  border-color: #c7d0e1;
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-perk {
  color: var(--xh-accent-strong, #4653df);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-welcome-perks {
  color: var(--xh-body, #4a5168);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-welcome-perks li.muted,
html.xh-auth-html[data-xuan-theme="light"] .qf-welcome-perks li::before {
  color: var(--xh-muted, #5f687d);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-forgot-btn,
html.xh-auth-html[data-xuan-theme="light"] a.qf-auth-forgot-btn {
  color: var(--xh-accent-strong, #4653df) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-forgot-btn:hover,
html.xh-auth-html[data-xuan-theme="light"] a.qf-auth-forgot-btn:hover {
  color: #3641c5 !important;
  background: rgba(70, 83, 223, .08) !important;
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-reset-tip {
  color: var(--xh-body, #4a5168);
  background: linear-gradient(135deg, rgba(70, 83, 223, .08), rgba(70, 83, 223, .02));
  border-color: rgba(70, 83, 223, .16);
  box-shadow: inset 3px 0 0 var(--xh-accent-strong, #4653df);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-reset-tip-icon {
  color: var(--xh-accent-strong, #4653df);
  background: rgba(70, 83, 223, .1);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-reset-tip-text strong {
  color: var(--xh-text, #171a2a);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-guest[data-mode="reset"] .qf-auth-header {
  border-bottom-color: rgba(23, 26, 42, .08);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-pw-meter-bar {
  background: rgba(23, 26, 42, .08);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-link-btn,
html.xh-auth-html[data-xuan-theme="light"] a.qf-auth-link-btn {
  color: var(--xh-accent-strong, #4653df);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-link-btn:hover {
  color: var(--xh-accent, #5865f2);
}
html.xh-auth-html[data-xuan-theme="light"] .qf-auth-skip:hover {
  color: var(--xh-text, #171a2a);
  border-color: var(--xh-line-strong, #c7d0e1);
}

/* Theme-aware authenticated-page login disclaimer gate. */
html.xh-disclaimer-open, body.xh-disclaimer-open { overflow: hidden !important; }
.xh-disclaimer-gate { position: fixed; z-index: 2147483647; inset: 0; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--xh-bg-deep, #141009) 84%, transparent); backdrop-filter: blur(8px); }
.xh-disclaimer-gate[hidden] { display: none; }
.xh-disclaimer-panel { width: min(100%, 680px); max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; padding: clamp(26px, 5vw, 44px); border: 1px solid var(--xh-line-strong, rgba(215,189,114,.34)); border-radius: 18px; background: var(--xh-surface, #221c13); color: var(--xh-text, #f3eee2); box-shadow: var(--xh-shadow, 0 28px 90px rgba(0,0,0,.55)); }
.xh-disclaimer-eyebrow { margin: 0 0 10px; color: var(--xh-accent-strong, #ead38c); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.xh-disclaimer-panel h2 { margin: 0 0 22px; font-family: var(--xh-font-display, inherit); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--xh-text, #f3eee2); }
.xh-disclaimer-copy { display: grid; gap: 14px; color: var(--xh-body, #c9bfaf); font-size: .95rem; line-height: 1.75; }
.xh-disclaimer-copy p { margin: 0; }
.xh-disclaimer-check { display: flex; align-items: flex-start; gap: 11px; margin: 26px 0 20px; color: var(--xh-text, #f3eee2); font-size: .95rem; font-weight: 600; line-height: 1.55; cursor: pointer; }
.xh-disclaimer-enter { width: 100%; min-height: 48px; border: 0; border-radius: 9px; background: var(--xh-accent, #d7bd72); color: var(--xh-accent-ink, #17130d); font: inherit; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .2s; }
.xh-disclaimer-enter:disabled { cursor: not-allowed; opacity: .4; }
.xh-disclaimer-enter:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.05); }
