.user-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-auth-modal.hidden { display: none; }
.user-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.user-auth-card {
  position: relative;
  width: min(440px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.user-auth-card.is-wide {
  width: min(860px, 96vw);
}
.user-auth-body {
  display: block;
}
.user-auth-body.is-login-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.user-auth-main {
  min-width: 0;
}
.user-auth-wechat-side {
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid #e8f5ec;
  background: linear-gradient(180deg, #f8fffa 0%, #f3faf5 100%);
}
.user-auth-wechat-side.hidden {
  display: none;
}
.user-auth-wechat-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.user-auth-wechat-side-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.user-auth-wechat-side-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.user-auth-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.user-auth-head.hidden { display: none; }
.user-auth-back {
  border: none;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.user-auth-back:hover { color: #111; }
.user-auth-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #666;
}
.user-auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.user-auth-tab {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f8f8;
  cursor: pointer;
  font: inherit;
}
.user-auth-tab.is-active { background: #111; color: #fff; border-color: #111; }
.user-auth-methods {
  display: grid;
  gap: 10px;
}
.user-auth-method-btn {
  display: grid;
  gap: 4px;
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, background .15s;
}
.user-auth-method-btn:hover {
  border-color: #111;
  background: #fff;
}
.user-auth-method-wechat:hover {
  border-color: #07c160;
}
.user-auth-method-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.user-auth-method-desc {
  font-size: 12px;
  color: #888;
}
.user-auth-form label { display: block; margin-bottom: 12px; font-size: 14px; }
.user-auth-form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.user-auth-sms-field { display: block; margin-bottom: 12px; font-size: 14px; }
.user-auth-sms-label { display: block; margin-bottom: 4px; }
.user-auth-sms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.user-auth-sms-row input {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.user-auth-form .user-auth-sms-row input {
  margin-top: 0;
}
.user-auth-sms-row .user-auth-sms-btn {
  margin-top: 0;
  align-self: stretch;
}
.user-auth-sms-btn {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  min-width: 108px;
}
.user-auth-sms-btn:disabled,
.user-auth-sms-btn.is-countdown {
  cursor: not-allowed;
  color: #999;
  background: #f5f5f5;
  border-color: #e8e8e8;
}
.user-auth-card.is-busy {
  pointer-events: none;
}
.user-auth-card.is-busy .user-auth-busy {
  pointer-events: auto;
}
.user-auth-busy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
}
.user-auth-busy[hidden] {
  display: none !important;
}
.user-auth-busy-track {
  height: 4px;
  border-radius: 999px;
  background: #eceff4;
  overflow: hidden;
  margin-bottom: 14px;
}
.user-auth-busy-bar {
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c5cff 0%, #5b8dff 100%);
  animation: userAuthBusySlide 1.1s ease-in-out infinite;
}
.user-auth-busy-text {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}
@keyframes userAuthBusySlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.user-auth-form .user-auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.user-auth-form .user-auth-submit:hover:not(:disabled) {
  opacity: 0.92;
}
.user-auth-submit { width: 100%; margin-top: 8px; }
.user-auth-error { color: #c0392b; font-size: 13px; margin-bottom: 8px; }
.user-auth-panel.hidden { display: none; }
.user-auth-wechat-qr {
  text-align: center;
}
.user-auth-wechat-qr.is-loading .user-auth-wechat-qr-box {
  opacity: 0.45;
}
.user-auth-wechat-qr.is-error .user-auth-wechat-qr-box {
  opacity: 0.35;
}
.user-auth-wechat-qr-box {
  min-height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  border-radius: 10px;
  background: #fff;
}
.user-auth-wechat-qr-box iframe {
  width: 300px !important;
  max-width: 100%;
  height: 400px !important;
  border: 0;
  background: transparent;
  display: block;
  margin: 0 auto;
}
.user-auth-wechat-qr p {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.user-auth-wechat-terms {
  margin-top: 10px;
}
.user-auth-wechat-quick-hint {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #07a050 !important;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .user-auth-body.is-login-split {
    grid-template-columns: 1fr;
  }
  .user-auth-wechat-side {
    order: -1;
  }
  .user-auth-wechat-qr-box {
    min-height: 380px;
  }
  .user-auth-wechat-qr-box iframe {
    width: min(300px, 100%) !important;
    height: 380px !important;
  }
}
.nav-ext-link, .nav-logout-btn, .nav-recharge-btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-3);
  text-decoration: none;
  opacity: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}
.nav-user .nav-ext-link:hover,
.nav-user .nav-logout-btn:hover,
.nav-user .nav-recharge-btn:hover {
  color: var(--ink);
}
.nav.on-hero .nav-user .nav-ext-link:hover,
.nav.on-hero .nav-user .nav-logout-btn:hover,
.nav.on-hero .nav-user .nav-recharge-btn:hover {
  color: #fff;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-auth-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.16);
}
.nav.on-hero .nav-auth-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.nav.on-hero .nav-auth-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.nav-user-actions .nav-ext-link,
.nav-user-actions .nav-recharge-btn {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  opacity: 0.82;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-user-actions .nav-ext-link:hover,
.nav-user-actions .nav-recharge-btn:hover {
  background: none;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
  color: var(--ink);
}

.nav.on-hero .nav-user-actions .nav-ext-link,
.nav.on-hero .nav-user-actions .nav-recharge-btn,
.nav.on-hero .nav-user [data-user-login] {
  background: none;
  border: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.88);
}

.nav.on-hero .nav-user-actions .nav-ext-link:hover,
.nav.on-hero .nav-user-actions .nav-recharge-btn:hover,
.nav.on-hero .nav-user [data-user-login]:hover {
  background: none;
  color: #fff;
}

.bifang-minimal-nav {
  position: relative;
}

.bifang-minimal-nav-inner {
  grid-template-columns: 1fr;
}

body.bifang-has-minimal-nav {
  padding-top: 12px;
}

body.bifang-has-minimal-nav > :not(.nav):not(script) {
  margin-top: 8px;
}

.nav-user-menu {
  position: relative;
}

.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-user-trigger:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}
.nav.on-hero .nav-user-trigger {
  color: rgba(255, 255, 255, 0.82);
}
.nav.on-hero .nav-user-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}
.nav-user-trigger-label {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-user-menu.is-open .nav-user-chevron {
  transform: rotate(180deg);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1);
  z-index: 1100;
}

.nav-user-menu:not(.is-open) .nav-user-dropdown {
  display: none;
}

.nav-user-menu.is-open .nav-user-dropdown {
  display: block;
}

.nav-user-dropdown-meta {
  padding: 8px 12px 10px;
  font-size: 12px;
  color: var(--muted, #666);
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  margin-bottom: 4px;
}

.nav-user-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #111);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-user-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-user-dropdown-logout {
  color: #c62828;
  margin-top: 4px;
  border-top: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: 0 0 10px 10px;
}

.my-gallery-body {
  background: var(--bg-soft, #f5f5f7);
}

.my-gallery-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--nav-h, 52px) + 20px) 24px 48px;
}

.my-gallery-toolbar,
.my-subpage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.my-gallery-toolbar--end {
  justify-content: flex-end;
}

.my-subpage-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-gallery-back,
.bifang-back-btn,
.my-subpage-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2, #555);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.my-gallery-back:hover,
.bifang-back-btn:hover,
.my-subpage-home:hover {
  color: var(--ink, #111);
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.my-gallery-stat {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2, #555);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.my-gallery-masonry {
  columns: 200px;
  column-gap: 14px;
}

.my-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #ececf0;
  cursor: zoom-in;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  break-inside: avoid;
}

.my-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.my-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.my-gallery-item-zoom {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.my-gallery-item:hover .my-gallery-item-zoom,
.my-gallery-item:focus-visible .my-gallery-item-zoom {
  opacity: 1;
  transform: translateY(0);
}

.my-gallery-masonry.is-empty {
  columns: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.my-gallery-empty {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--ink-3, #6e6e73);
  font-size: 15px;
  line-height: 1.5;
}

.my-gallery-sentinel {
  text-align: center;
  color: var(--muted, #888);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 0 24px;
}

.my-page-main {
  max-width: 960px;
  margin: 100px auto 40px;
  padding: 0 20px;
}

@media (max-width: 720px) {
  .my-gallery-page {
    padding: calc(var(--nav-h, 52px) + 12px) 16px 32px;
  }

  .my-gallery-masonry {
    columns: 120px;
    column-gap: 10px;
  }

  .my-gallery-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .my-gallery-stat {
    font-size: 12px;
    padding: 6px 12px;
  }
}

.my-account-page {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(var(--nav-h, 52px) + 20px) 24px 48px;
}

.my-subpage-body {
  background: var(--bg-soft, #f5f5f7);
}

.my-account-profile {
  display: grid;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.my-account-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
}

.my-account-profile-row + .my-account-profile-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.my-account-profile-row span {
  color: var(--ink-2, #666);
  flex-shrink: 0;
}

  .my-account-profile-row strong {
  color: var(--ink, #111);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.compute-power-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.compute-power-bar--mini {
  flex: 1;
  min-width: 0;
  height: 6px;
}

.compute-power-bar--full {
  height: 10px;
  margin-top: 8px;
}

.compute-power-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: hsl(128, 68%, 46%);
  transition: width 0.25s ease, background-color 0.35s ease;
}

.compute-power-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.compute-power-percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #111);
  flex-shrink: 0;
}

.nav-user-dropdown-power {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.nav-user-dropdown-power-label {
  font-size: 12px;
  color: var(--ink-2, #666);
}

.my-account-power {
  padding: 14px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.my-account-power-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.my-account-power-head span {
  color: var(--ink-2, #666);
}

.my-account-power-head strong {
  color: var(--ink, #111);
  font-weight: 600;
}

.my-center-page {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(var(--nav-h, 52px) + 20px) 24px 48px;
}

.my-center-loading {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: var(--ink-2, #666);
  font-size: 14px;
}

.my-center-hub {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-center-summary {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.my-center-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.my-center-greeting {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink, #111);
}

.my-center-account {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-2, #666);
}

.my-center-balance {
  text-align: right;
  flex-shrink: 0;
}

.my-center-balance span {
  display: block;
  font-size: 12px;
  color: var(--ink-2, #666);
}

.my-center-balance strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink, #111);
}

.my-center-power-meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-2, #888);
}

.my-center-recharge-cta {
  display: block;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  color: var(--ink, #111);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease;
}

.my-center-recharge-cta:hover {
  background: rgba(0, 0, 0, 0.03);
}

.my-center-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.my-center-nav-item {
  display: block;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink, #111);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease;
}

.my-center-nav-item:last-child {
  border-bottom: none;
}

.my-center-nav-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.my-center-logout {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(198, 40, 40, 0.2);
  border-radius: 14px;
  background: #fff;
  color: #c62828;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.my-center-logout:hover {
  background: rgba(198, 40, 40, 0.06);
}

.recharge-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.recharge-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.recharge-summary-row + .recharge-summary-row {
  margin-top: 8px;
}

.my-recharge-page {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(var(--nav-h, 52px) + 20px) 24px 48px;
}

.recharge-card {
  padding: 0;
  overflow: hidden;
}

.recharge-card-head {
  padding: 22px 22px 0;
}

.recharge-card .my-account-card-desc {
  margin-bottom: 0;
}

.recharge-summary-wrap {
  padding: 18px 22px 0;
}

.recharge-wallet-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.recharge-wallet-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.recharge-wallet-stat.is-right {
  text-align: right;
}

.recharge-wallet-label {
  display: block;
  font-size: 12px;
  color: var(--ink-2, #666);
  margin-bottom: 4px;
}

.recharge-wallet-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink, #111);
  line-height: 1.2;
}

.recharge-form {
  padding: 20px 22px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 18px;
}

.recharge-tiers-wrap {
  margin-bottom: 18px;
}

.recharge-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recharge-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.recharge-tier-card:hover {
  border-color: rgba(17, 17, 17, 0.22);
}

.recharge-tier-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recharge-tier-card.is-selected,
.recharge-tier-card:has(input:checked) {
  border-color: rgba(17, 17, 17, 0.35);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.recharge-tier-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recharge-tier-reward {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lavender-soft, #eceaf6);
}

.recharge-tier-card.is-selected .recharge-tier-reward,
.recharge-tier-card:has(input:checked) .recharge-tier-reward {
  background: #e0dcf4;
}

.recharge-tier-reward-label {
  font-size: 12px;
  font-weight: 600;
  color: #5a5278;
  letter-spacing: 0.02em;
}

.recharge-tier-reward-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink, #111);
  font-variant-numeric: tabular-nums;
}

.recharge-tier-breakdown {
  font-size: 12px;
  color: var(--ink-2, #666);
  line-height: 1.4;
}

.recharge-selected-preview-wrap {
  margin-bottom: 16px;
}

.recharge-selected-preview {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(200, 196, 232, 0.85);
  background: linear-gradient(180deg, var(--lavender-soft, #eceaf6), #f5f4fa);
}

.recharge-selected-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.recharge-selected-label {
  font-size: 14px;
  color: var(--ink-2, #555);
}

.recharge-selected-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink, #111);
  font-variant-numeric: tabular-nums;
}

.recharge-selected-total small {
  font-size: 14px;
  font-weight: 700;
}

.recharge-selected-breakdown {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #5a5278;
}

.recharge-tier-yuan {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink, #111);
}

.recharge-tier-yuan small {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 600;
}

.recharge-tier-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #5a5278;
  background: var(--lavender-soft, #eceaf6);
}

.recharge-tier-badge.is-base {
  color: #555;
  background: rgba(0, 0, 0, 0.06);
}

.pe-tiers-wrap {
  margin: 8px 0 16px;
}

.pe-tiers-table .site-settings-input {
  width: 100%;
  min-width: 88px;
  margin: 0;
}

.pe-tier-preview {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.user-auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink-2, #555);
}

.user-auth-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink, #111);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-auth-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.recharge-submit,
.my-account-form .user-auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: var(--ink, #111);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.recharge-submit:hover:not(:disabled),
.my-account-form .user-auth-submit:hover:not(:disabled) {
  opacity: 0.92;
}

.recharge-submit:disabled,
.my-account-form .user-auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.recharge-result {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 13px;
  line-height: 1.5;
}

.recharge-form-hint {
  margin: 6px 0 14px;
  font-size: 12px;
}

.recharge-result:not([hidden]) {
  display: block;
}

.recharge-result.is-ok {
  color: #248a3d;
}

.recharge-result.is-err {
  color: #d70015;
}

.my-account-card {
  max-width: none;
  padding: 24px 22px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.my-account-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #111);
}

.my-account-card-desc {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #666);
}

.my-account-form {
  margin: 0;
}

.my-password-page {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(var(--nav-h, 52px) + 20px) 24px 48px;
}

@media (max-width: 720px) {
  .my-account-page {
    padding: calc(var(--nav-h, 52px) + 12px) 16px 32px;
  }

  .my-password-page {
    padding: calc(var(--nav-h, 52px) + 12px) 16px 32px;
  }

  .my-recharge-page {
    padding: calc(var(--nav-h, 52px) + 12px) 16px 32px;
  }

  .recharge-card-head,
  .recharge-summary-wrap,
  .recharge-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .recharge-result {
    padding-left: 16px;
    padding-right: 16px;
  }

  .recharge-tier-grid {
    grid-template-columns: 1fr;
  }

  .my-account-card {
    padding: 20px 16px 24px;
  }

  .my-account-profile-row {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* 充值成功弹层 — 克制精致，无散花 */
body.wallet-celebration-open {
  overflow: hidden;
}
.wallet-celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124, 92, 255, 0.14) 0%, transparent 62%),
    rgba(12, 14, 22, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: walletCelebrationFadeIn 0.32s ease;
}
.wallet-celebration-card {
  position: relative;
  width: min(400px, 92vw);
  padding: 32px 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 255, 0.96) 48%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 64px rgba(18, 16, 40, 0.22),
    0 8px 24px rgba(18, 16, 40, 0.08);
  text-align: center;
  overflow: hidden;
  animation: walletCelebrationRise 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}
.wallet-celebration-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 220px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.16) 0%, transparent 68%);
  pointer-events: none;
}
.wallet-celebration-mark {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}
.wallet-celebration-check {
  width: 56px;
  height: 56px;
  display: block;
}
.wallet-celebration-check-ring {
  stroke: rgba(124, 92, 255, 0.22);
  stroke-width: 2;
  transform-origin: 26px 26px;
  animation: walletCelebrationRing 0.7s ease forwards;
}
.wallet-celebration-check-path {
  stroke: #6d52e8;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: walletCelebrationCheck 0.55s 0.18s ease forwards;
}
.wallet-celebration-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b84a8;
  font-weight: 600;
}
.wallet-celebration-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #15121f;
}
.wallet-celebration-sub {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: #6f6a82;
}
.wallet-celebration-hero {
  margin-bottom: 18px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.07) 0%, rgba(124, 92, 255, 0.03) 100%);
  border: 1px solid rgba(124, 92, 255, 0.1);
}
.wallet-celebration-hero-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #7d7596;
  letter-spacing: 0.06em;
}
.wallet-celebration-hero-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  color: #2b2147;
}
.wallet-celebration-hero-sign {
  font-size: 24px;
  font-weight: 500;
  color: #7c5cff;
  transform: translateY(-2px);
}
.wallet-celebration-hero-value [data-celebration-points] {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.wallet-celebration-hero-unit {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #6f6788;
}
.wallet-celebration-details {
  margin-bottom: 20px;
  padding: 4px 0;
  border-top: 1px solid rgba(21, 18, 31, 0.08);
  border-bottom: 1px solid rgba(21, 18, 31, 0.08);
}
.wallet-celebration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px;
  font-size: 13px;
  color: #6f6a82;
}
.wallet-celebration-row + .wallet-celebration-row {
  border-top: 1px solid rgba(21, 18, 31, 0.06);
}
.wallet-celebration-row strong {
  font-size: 14px;
  font-weight: 600;
  color: #1f1b2e;
  font-variant-numeric: tabular-nums;
}
.wallet-celebration-row.is-accent strong {
  color: #6d52e8;
}
.wallet-celebration-btn {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(21, 18, 31, 0.12);
  border-radius: 12px;
  background: #15121f;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wallet-celebration-btn:hover {
  background: #2a2438;
}
.wallet-celebration-btn:active {
  transform: translateY(1px);
}
.wallet-celebration-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(21, 18, 31, 0.06);
  overflow: hidden;
}
.wallet-celebration-timer-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7c5cff 0%, #9b7dff 100%);
  transform-origin: left center;
  animation: walletCelebrationTimer linear forwards;
}
@keyframes walletCelebrationFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes walletCelebrationRise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes walletCelebrationRing {
  from { transform: scale(0.88); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes walletCelebrationCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes walletCelebrationTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.user-auth-form .user-auth-terms {
  margin: 2px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.user-auth-terms {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #555;
}
.user-auth-form .user-auth-terms label,
.user-auth-terms label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
}
.user-auth-form .user-auth-terms input[type="checkbox"],
.user-auth-terms input[type="checkbox"] {
  display: inline-block;
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.user-auth-form .user-auth-terms span,
.user-auth-terms span {
  flex: 1;
  min-width: 0;
}
.user-auth-terms a {
  color: #7c5cff;
  text-decoration: none;
}
.user-auth-terms a:hover { text-decoration: underline; }

/* 协议门：独立窄弹窗，隐藏登录区残留元素 */
.user-auth-card.is-terms-gate,
.user-auth-card.is-terms-gate.is-wide {
  width: min(420px, 92vw);
  padding: 28px 24px 24px;
}
.user-auth-card.is-terms-gate .user-auth-tabs,
.user-auth-card.is-terms-gate [data-auth-body],
.user-auth-card.is-terms-gate [data-auth-head],
.user-auth-card.is-terms-gate [data-auth-hint],
.user-auth-card.is-terms-gate > [data-user-auth-error] {
  display: none !important;
}
.user-auth-card.is-terms-gate .user-auth-terms-gate-panel {
  display: block;
}
.user-auth-terms-gate-panel[hidden] {
  display: none !important;
}
.user-auth-terms-gate-inner {
  max-width: 340px;
  margin: 0 auto;
}
.user-auth-terms-gate-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #111;
  letter-spacing: -0.01em;
}
.user-auth-terms-gate-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  text-align: left;
}
.user-auth-terms-gate-desc a {
  color: #7c5cff;
  text-decoration: none;
}
.user-auth-terms-gate-desc a:hover {
  text-decoration: underline;
}
.user-auth-terms-gate-check {
  margin: 0 0 18px;
  text-align: left;
}
.user-auth-terms-gate-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.user-auth-terms-gate-check input[type="checkbox"] {
  margin-top: 3px;
}
.user-auth-terms-gate-check span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #444;
}
.user-auth-terms-gate-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.user-auth-terms-gate-submit:hover:not(:disabled) {
  opacity: 0.92;
}
.user-auth-terms-gate-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.user-auth-terms-gate-error {
  margin: 12px 0 0;
  text-align: center;
}
.admin-gen-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.admin-gen-preview { max-width: 100%; margin: 12px 0; border-radius: 8px; }
.admin-gen-detail-card { max-width: 720px; max-height: 90vh; overflow: auto; }
