body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
  --c-primary: #057ce7;
  --c-bg-deep: #081641;
  --c-secondary: #2360b3;
  --c-accent: #6bb6ff;
  --c-text-main: #eaf4ff;
  --c-text-sub: #9db8db;
  /* 与 .page-shell-fixed-top { padding-top } 一致，用于弹窗避让 .app-header-fixed */
  --app-header-height: 74px;
}

.theme-dark-gold {
  background:
    radial-gradient(circle at 0% 0%, rgba(5, 124, 231, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(35, 96, 179, 0.2) 0%, transparent 42%),
    linear-gradient(180deg, #0c1d4f 0%, #081641 48%, #060f2f 100%);
  color: var(--c-text-main);
}

.bg-animated-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.42;
}

.orb-a {
  width: 320px;
  height: 320px;
  left: -90px;
  top: -120px;
  background: radial-gradient(circle, rgba(5, 124, 231, 0.45), rgba(5, 124, 231, 0));
  animation: floatOrbA 10s ease-in-out infinite;
}

.orb-b {
  width: 280px;
  height: 280px;
  right: -90px;
  top: 30%;
  background: radial-gradient(circle, rgba(35, 96, 179, 0.4), rgba(35, 96, 179, 0));
  animation: floatOrbB 12s ease-in-out infinite;
}

.orb-c {
  width: 220px;
  height: 220px;
  left: 35%;
  bottom: -70px;
  background: radial-gradient(circle, rgba(107, 182, 255, 0.28), rgba(107, 182, 255, 0));
  animation: floatOrbC 11s ease-in-out infinite;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(107, 182, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 182, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.8), transparent 80%);
  animation: gridDrift 24s linear infinite;
}

.page-shell {
  max-width: 560px;
  min-height: 100vh;
  padding: 20px 16px 96px;
  position: relative;
  z-index: 1;
}

.page-shell-header {
  max-width: 560px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
}

.page-shell-fixed-top {
  padding-top: 74px;
  padding-bottom: 24px;
}

.pb-tabnav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.page-login {
  display: grid;
  align-content: center;
}

.page-login.page-login-gate {
  display: block;
  min-height: 100vh;
}

/* ---------- 会员登录（index） ---------- */
.login-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  background: linear-gradient(180deg, rgba(6, 15, 42, 0.94) 0%, rgba(6, 15, 42, 0.72) 70%, transparent 100%);
  border-bottom: 1px solid rgba(107, 182, 255, 0.1);
}

.login-topbar-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-topbar-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8eb0d4;
  white-space: nowrap;
}

.login-shell {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.login-hero-card {
  padding: 26px 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(35, 96, 179, 0.45);
  background: linear-gradient(160deg, rgba(14, 40, 96, 0.55), rgba(4, 12, 38, 0.92));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a9bc4;
}

.login-title {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: #f5f9ff;
  letter-spacing: 0.02em;
}

.login-lead {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.65;
  color: #b4c9e8;
}

.login-lead strong {
  color: #dceeff;
  font-weight: 700;
}

.login-invite-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 199, 102, 0.35);
  background: rgba(40, 28, 6, 0.35);
}

.login-invite-banner-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffd78a;
  background: rgba(255, 199, 102, 0.12);
}

.login-invite-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.login-invite-banner-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e8c98a;
}

.login-invite-banner-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.login-invite-banner-hint {
  font-size: 11px;
  color: #b8d0ee;
  line-height: 1.4;
}

.login-btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #061028;
  background: linear-gradient(180deg, #ffd78a 0%, #e8a840 100%);
  border: 1px solid rgba(255, 214, 150, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.login-btn-primary:hover {
  filter: brightness(1.05);
  color: #061028;
}

.login-btn-primary:active {
  transform: translateY(1px);
}

.login-btn-primary:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.login-message {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #9db8db;
  min-height: 1.5em;
}

.login-features {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(107, 182, 255, 0.12);
  background: rgba(0, 0, 0, 0.15);
}

.login-feature-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--c-accent);
  border: 1px solid rgba(107, 182, 255, 0.25);
  background: rgba(5, 124, 231, 0.12);
}

.login-feature-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #eaf2ff;
}

.login-feature-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-text-sub);
}

.login-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6d89b0;
}

.login-topbar-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.login-topbar-link:hover {
  color: #e2f2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.login-btn-primary {
  text-decoration: none;
}

@media (max-width: 360px) {
  .page-shell-header {
    gap: 8px;
  }

  .wallet-short {
    max-width: 170px;
    padding: 0 12px;
    font-size: 12px;
  }

  .site-locale-trigger {
    min-width: 40px;
    padding: 0 9px;
    font-size: 12px;
  }

  .login-hero-card {
    padding: 22px 18px 20px;
  }

  .login-title {
    font-size: 1.28rem;
  }
}

.pb-nav {
  padding-bottom: 90px;
}

.text-gold {
  color: var(--c-accent);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(35, 96, 179, 0.42);
  background: rgba(6, 15, 47, 0.8);
  backdrop-filter: blur(10px);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 12px rgba(107, 182, 255, 0.8);
}

.logo-text {
  font-weight: 700;
  letter-spacing: 1px;
  color: #d6ebff;
  text-shadow: 0 0 12px rgba(5, 124, 231, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-locale-trigger {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #a9c6e6;
  border: 1px solid rgba(56, 140, 230, 0.36);
  border-radius: 10px;
  background: rgba(8, 22, 65, 0.48);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(130, 188, 255, 0.04);
}

.site-locale-trigger:hover {
  color: #d9ebff;
  border-color: rgba(107, 182, 255, 0.52);
  background: rgba(25, 76, 145, 0.3);
}

.login-topbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* iOS 风格底部语言抽屉 */
#site-locale-sheet-root {
  pointer-events: none;
}

#site-locale-sheet-root.is-open {
  pointer-events: auto;
}

.site-locale-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

#site-locale-sheet-root.is-open .site-locale-backdrop {
  opacity: 1;
  visibility: visible;
}

.site-locale-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  z-index: 2210;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #122a5c 0%, #081641 100%);
  border: 1px solid rgba(5, 124, 231, 0.38);
  border-bottom: none;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
  transform: translate3d(0, 110%, 0);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  outline: none;
}

#site-locale-sheet-root.is-open .site-locale-sheet {
  transform: translate3d(0, 0, 0);
}

.site-locale-sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  margin: 10px auto 4px;
}

.site-locale-sheet-head {
  padding: 4px 18px 10px;
  text-align: center;
}

.site-locale-sheet-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #e8f3ff;
}

.site-locale-sheet-list {
  padding: 4px 12px 8px;
}

.site-locale-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 6px;
  border: none;
  border-radius: 12px;
  background: rgba(8, 22, 65, 0.55);
  color: #d5e8ff;
  font-size: 15px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-locale-row:hover {
  background: rgba(35, 96, 179, 0.35);
  color: #fff;
}

.site-locale-row.is-selected {
  background: rgba(107, 182, 255, 0.18);
  color: #fff;
}

.site-locale-row-check {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--c-accent, #6bb6ff);
  opacity: 0;
}

.site-locale-row.is-selected .site-locale-row-check {
  opacity: 1;
}

.site-locale-sheet-foot {
  padding: 6px 12px 0;
}

.site-locale-cancel-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #9fb8d9;
  font-size: 15px;
  font-weight: 500;
}

.site-locale-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #cfe7ff;
}

body.site-locale-sheet-open {
  overflow: hidden;
}

.wallet-short {
  max-width: 210px;
  height: 26px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 140, 230, 0.34);
  background: rgba(24, 74, 138, 0.22);
  color: #c4ddfb;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  flex-shrink: 1;
  box-shadow: inset 0 0 0 1px rgba(130, 188, 255, 0.05);
}

.wallet-short-switchable {
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.wallet-short-switchable:hover {
  border-color: rgba(107, 182, 255, 0.56);
  color: #e3f2ff;
  background: rgba(28, 90, 164, 0.32);
}

#switch-account-confirm-modal .switch-account-modal-content {
  border: none !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1e4f 0%, #091944 100%) !important;
  box-shadow: 0 10px 30px rgba(4, 16, 43, 0.42);
}

#switch-account-confirm-modal .switch-account-modal-title {
  color: #eaf3ff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#switch-account-confirm-modal .switch-account-modal-body {
  color: #d2e4fb;
  font-size: 16px;
  line-height: 1.45;
}

#switch-account-confirm-modal .switch-account-modal-cancel {
  min-width: 114px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-color: rgba(134, 194, 255, 0.46);
  color: #dcecff;
  background: rgba(18, 55, 104, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#switch-account-confirm-modal .switch-account-modal-cancel:hover,
#switch-account-confirm-modal .switch-account-modal-cancel:active {
  border-color: rgba(147, 204, 255, 0.68);
  color: #ffffff;
  background: rgba(70, 142, 214, 0.2);
}

#switch-account-confirm-modal .home-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

#switch-account-confirm-modal .home-btn-modal {
  margin: 0;
  min-width: 146px;
  height: 44px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #2aa3ff 0%, #0d8df8 100%);
  box-shadow: 0 8px 18px rgba(9, 127, 229, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#switch-account-confirm-modal .home-btn-modal:hover {
  background: linear-gradient(180deg, #3aaeff 0%, #1c97fc 100%);
  box-shadow: 0 10px 20px rgba(9, 127, 229, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#switch-account-confirm-modal .home-btn-modal:active {
  transform: translateY(1px);
}

.banner-img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.hero-banner {
  border: 1px solid rgba(5, 124, 231, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(5, 124, 231, 0.22);
  animation: softLift 7s ease-in-out infinite;
}

.quick-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-item {
  border: 1px solid rgba(35, 96, 179, 0.35);
  background: rgba(8, 22, 65, 0.72);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  color: #d5e8ff;
  font-size: 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.metric-item:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 182, 255, 0.55);
  box-shadow: 0 8px 20px rgba(5, 124, 231, 0.2);
}

.metric-item i {
  display: block;
  margin-bottom: 4px;
  color: var(--c-accent);
  font-size: 20px;
}

.section-head {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-head-inline {
  justify-content: space-between;
}

.rule-text-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.rule-text-btn:hover,
.rule-text-btn:active {
  color: #d6ecff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-content {
  padding: 0 2px;
}

.notice-marquee {
  display: grid;
  gap: 8px;
}

.notice-title {
  color: var(--c-accent);
  font-size: 12px;
}

.notice-track {
  overflow: hidden;
  border: 1px solid rgba(5, 124, 231, 0.35);
  border-radius: 999px;
  background: rgba(35, 96, 179, 0.24);
  padding: 8px 0;
  position: relative;
}

.notice-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 124, 231, 0.12), transparent 30%, transparent 70%, rgba(5, 124, 231, 0.12));
  pointer-events: none;
}

.notice-content {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: marquee 44s linear infinite;
  color: #d5e8ff;
  font-size: 13px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.wallet-system-panel {
  display: block;
  position: relative;
  border: 1px solid rgba(5, 124, 231, 0.42);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(16, 38, 90, 0.78), rgba(10, 26, 67, 0.9));
  overflow: hidden;
  animation: sectionReveal 460ms ease both;
}

.wallet-transfer-divider {
  height: 1px;
  margin: 12px 0 10px;
  background: linear-gradient(90deg, rgba(78, 144, 224, 0), rgba(107, 182, 255, 0.28), rgba(78, 144, 224, 0));
}

.wallet-system-main {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.wallet-system-panel::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(5, 124, 231, 0.34), transparent 70%);
  pointer-events: none;
}

.wallet-system-left {
  width: 128px;
  flex: 0 0 128px;
}

.qrcode-shell {
  border-radius: 12px;
  background: #ffffff;
}

.wallet-qrcode {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  display: block;
}

.wallet-qr-tip {
  color: var(--c-text-sub);
  font-size: 11px;
  margin-top: -6px;
  text-align: left;
}

.wallet-system-info {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.wallet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.wallet-title {
  color: var(--c-text-sub);
  font-size: 13px;
}

.wallet-address {
  color: #cde5ff;
  word-break: break-all;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.wallet-copy-btn {
  border: 1px solid rgba(107, 182, 255, 0.55);
  color: #d6ebff;
  background: linear-gradient(135deg, rgba(5, 124, 231, 0.24), rgba(35, 96, 179, 0.26));
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.wallet-copy-btn i {
  font-size: 12px;
}

.wallet-copy-btn:hover,
.wallet-copy-btn:active {
  border-color: rgba(107, 182, 255, 0.8);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(5, 124, 231, 0.4), rgba(35, 96, 179, 0.45));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 124, 231, 0.22);
}

.wallet-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 0;
}

.wallet-hints-row {
  justify-content: flex-start;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(107, 182, 255, 0.35);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(6, 26, 70, 0.45);
  color: var(--c-text-sub);
  font-size: 12px;
}

.form-control {
  background-color: rgba(8, 22, 65, 0.65);
  border-color: rgba(5, 124, 231, 0.42);
  color: var(--c-text-main);
}

.form-control::placeholder {
  color: #7d7d7d;
}

.transfer-panel-merged {
  margin-top: 0;
}

.transfer-label {
  color: var(--c-text-sub);
  font-size: 12px;
  margin-bottom: 6px;
}

.transfer-input-shell {
  position: relative;
}

.transfer-input {
  height: 46px;
  border-radius: 12px;
  padding-right: 72px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(7, 18, 51, 0.92) !important;
  color: #eaf4ff !important;
  border: 1px solid rgba(86, 157, 244, 0.58) !important;
}

.transfer-input::placeholder {
  color: rgba(157, 184, 219, 0.55);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.transfer-input:focus {
  background: rgba(7, 18, 51, 0.98) !important;
  color: #f2f8ff !important;
  border-color: rgba(108, 183, 255, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(5, 124, 231, 0.22) !important;
}

.transfer-input:focus::placeholder {
  color: rgba(157, 184, 219, 0.35);
}

.transfer-input::-webkit-outer-spin-button,
.transfer-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.transfer-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.transfer-input:-webkit-autofill,
.transfer-input:-webkit-autofill:hover,
.transfer-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eaf4ff !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(7, 18, 51, 0.98) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.transfer-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8fbdf1;
  font-size: 12px;
  letter-spacing: 0.8px;
}

.transfer-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 201, 94, 0.78);
  color: #f4faff;
  background: linear-gradient(120deg, #ffb84d 0%, #ff9f2f 52%, #ff8a1f 100%);
  box-shadow: 0 10px 22px rgba(255, 150, 44, 0.36), inset 0 1px 0 rgba(255, 245, 220, 0.32);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.transfer-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 46%;
  height: 100%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  animation: btnShine 2.8s ease-in-out infinite;
}

.transfer-btn:hover,
.transfer-btn:active {
  color: #ffffff;
  background: linear-gradient(120deg, #ffc56e 0%, #ffad43 52%, #ff9530 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 150, 44, 0.46), inset 0 1px 0 rgba(255, 245, 220, 0.4);
}

.transfer-tips {
  color: var(--c-text-sub);
  font-size: 11px;
}

/* 首页转账提交反馈（处理中 / 成功 / 失败） */
.home-submit-feedback-stack {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  text-align: left;
}

.home-submit-feedback-line1 {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.home-submit-feedback-line2 {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.65;
  color: inherit;
  opacity: 0.92;
}

.home-submit-feedback-stack--pending {
  color: #ffecc8;
  background: rgba(120, 86, 20, 0.35);
  border-color: rgba(255, 206, 120, 0.42);
  box-shadow: 0 0 18px rgba(255, 186, 80, 0.14);
}

.home-submit-feedback-stack--pending .home-submit-feedback-line2 {
  display: none !important;
}

.home-submit-feedback-stack--success {
  color: #dff9e8;
  background: linear-gradient(145deg, rgba(30, 98, 58, 0.42) 0%, rgba(14, 52, 38, 0.55) 100%);
  border-color: rgba(118, 230, 152, 0.48);
  box-shadow: 0 10px 28px rgba(46, 180, 108, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-submit-feedback-stack--success .home-submit-feedback-line1 {
  color: #b9ffd1;
}

.home-submit-feedback-stack--danger {
  color: #ffd6d6;
  background: rgba(112, 28, 28, 0.38);
  border-color: rgba(255, 140, 140, 0.45);
  box-shadow: 0 0 18px rgba(255, 100, 100, 0.12);
}

.home-submit-feedback-stack--danger .home-submit-feedback-line2 {
  display: none !important;
}

.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.rank-tabs .nav-item {
  flex: 0 0 auto;
}

.rank-tabs-mini .nav-link {
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  min-height: 0;
  background: rgba(8, 22, 65, 0.78);
  color: #b7d3f5;
  border: 1px solid rgba(35, 96, 179, 0.52);
  font-weight: 600;
  transition: all 180ms ease;
}

.rank-tabs-mini .nav-link.active {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  color: #e9f5ff;
  border-color: rgba(126, 190, 255, 0.9);
  box-shadow: 0 4px 12px rgba(5, 124, 231, 0.22);
}

.rank-board {
  border: 1px solid rgba(35, 96, 179, 0.5);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(10, 27, 70, 0.65), rgba(7, 18, 51, 0.86));
  padding: 10px 12px;
}

.rank-meta {
  color: #95b5dd;
  font-size: 11px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.rank-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(56, 119, 204, 0.45);
  animation: rowAppear 360ms ease both;
}

.rank-list-item:last-child {
  border-bottom: none;
}

.rank-medal {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border: 1px solid rgba(107, 182, 255, 0.4);
  background: rgba(10, 37, 88, 0.75);
  color: #cde7ff;
  font-weight: 700;
}

.rank-medal-1 {
  background: linear-gradient(135deg, rgba(94, 173, 255, 0.35), rgba(9, 44, 111, 0.9));
  border-color: rgba(135, 201, 255, 0.75);
  color: #e8f6ff;
}

.rank-main {
  min-width: 0;
  flex: 1;
}

.rank-name {
  color: #9ec2ee;
  font-size: 11px;
  margin-bottom: 1px;
}

.rank-address {
  color: #d9ecff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

.rank-value {
  color: #e8f4ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  min-height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(6, 15, 47, 0.92);
  border-top: 1px solid rgba(35, 96, 179, 0.45);
  backdrop-filter: blur(10px);
}

.bottom-nav-3 {
  grid-template-columns: repeat(3, 1fr);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8eaed7;
  text-decoration: none;
  font-size: 11px;
  padding: 6px 0;
}

.bottom-nav-item i {
  font-size: 18px;
  line-height: 1;
}

.bottom-nav-item.active {
  color: var(--c-accent);
  font-weight: 600;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  border: 1px solid rgba(35, 96, 179, 0.5);
  border-radius: 12px;
  background: rgba(8, 22, 65, 0.56);
  padding: 10px;
}

.history-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 2px 0;
}

.history-label {
  color: #96b5da;
}

.history-value {
  color: #e1efff;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.history-hash-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.2px;
}

.history-hash-link {
  color: #8ec9ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(142, 201, 255, 0.55);
}

.history-hash-link:hover {
  color: #b6ddff;
  border-bottom-color: rgba(182, 221, 255, 0.8);
}

.history-hash-link.disabled {
  color: #7f93b0;
  border-bottom: none;
}

.history-status {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.history-status i {
  font-size: 16px;
  line-height: 0;
}

.history-status.ok {
  color: #b6edff;
  border-color: rgba(118, 197, 255, 0.58);
  background: linear-gradient(120deg, rgba(8, 108, 180, 0.38), rgba(5, 74, 125, 0.2));
  box-shadow: inset 0 0 10px rgba(118, 197, 255, 0.16);
}

.history-status.fail {
  color: #ffd0d0;
  border-color: rgba(255, 137, 137, 0.58);
  background: linear-gradient(120deg, rgba(147, 32, 32, 0.34), rgba(96, 18, 18, 0.22));
  box-shadow: inset 0 0 10px rgba(255, 137, 137, 0.12);
}

.history-status:hover {
  transform: translateY(-1px);
}

.history-status.ok:hover {
  border-color: rgba(151, 217, 255, 0.9);
  box-shadow: 0 6px 14px rgba(31, 143, 217, 0.28), inset 0 0 10px rgba(118, 197, 255, 0.16);
}

.history-status.fail:hover {
  border-color: rgba(255, 164, 164, 0.9);
  box-shadow: 0 6px 14px rgba(181, 56, 56, 0.28), inset 0 0 10px rgba(255, 137, 137, 0.12);
}

.history-status.pending {
  color: #d2def0;
  border-color: rgba(210, 222, 240, 0.45);
  background: rgba(90, 102, 125, 0.25);
}

.history-empty {
  color: #8eaed7;
  font-size: 14px;
}

.history-more-btn {
  border: 1px solid rgba(107, 182, 255, 0.45);
  color: #d8ebff;
  background: rgba(8, 22, 65, 0.55);
}

#toast-root {
  pointer-events: none;
}

#toast-root .toast {
  pointer-events: auto;
}

#rule-modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(5, 124, 231, 0.22), transparent 42%),
    linear-gradient(165deg, rgba(10, 27, 70, 0.92), rgba(6, 16, 48, 0.96));
  color: var(--c-text-main);
  border: 1px solid rgba(107, 182, 255, 0.35);
  box-shadow: 0 18px 40px rgba(5, 124, 231, 0.22);
}

.rule-modal-header {
  padding: 16px 16px 10px;
  background: linear-gradient(120deg, rgba(5, 124, 231, 0.35), rgba(35, 96, 179, 0.18));
}

.rule-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(182, 221, 255, 0.35);
  background: rgba(8, 22, 65, 0.45);
  color: #d6ecff;
  box-shadow: inset 0 0 12px rgba(5, 124, 231, 0.18);
}

.rule-modal-subtitle {
  margin-top: 2px;
  color: #b7d3f5;
  font-size: 11px;
}

.rule-modal-body {
  padding: 16px 14px;
}

.rule-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rule-modal-list li {
  position: relative;
  padding: 10px 10px 10px 34px;
  border-radius: 12px;
  border: 1px solid rgba(35, 96, 179, 0.45);
  background: rgba(8, 22, 65, 0.45);
  color: #dbeaff;
  font-size: 13px;
  line-height: 1.45;
}

.rule-modal-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #8ec9ff, rgba(5, 124, 231, 0.2));
  box-shadow: 0 0 10px rgba(107, 182, 255, 0.55);
}

.rule-modal-footer {
  padding: 0 16px 14px;
  justify-content: center;
}

.rule-modal-primary {
  border: 1px solid rgba(107, 182, 255, 0.45);
  color: #eaf4ff;
  background: linear-gradient(120deg, #057ce7 0%, #2360b3 100%);
  border-radius: 999px;
  padding: 6px 18px;
}

.rule-modal-primary:hover,
.rule-modal-primary:active {
  color: #ffffff;
  filter: brightness(1.05);
}

.toast {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(5, 124, 231, 0.22);
  backdrop-filter: blur(8px);
}

@keyframes floatOrbA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

@keyframes floatOrbB {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes floatOrbC {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, -10px);
  }
}

@keyframes gridDrift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(28px, 28px);
  }
}

@keyframes btnShine {
  0% {
    left: -120%;
  }
  55% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowAppear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* ---------- 赚币页（扁平为主，仅邀请工具单卡强化） ---------- */
.page-earn .page-shell {
  padding-top: 76px;
}

.earn-main {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.earn-top {
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(107, 182, 255, 0.18);
}

.earn-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-accent);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.earn-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f2f8ff;
  margin: 0 0 10px;
  line-height: 1.25;
}

.earn-lead {
  margin: 0;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.65;
  color: var(--c-text-sub);
}

.earn-block {
  padding: 22px 0;
  border-bottom: 1px solid rgba(107, 182, 255, 0.12);
}

.earn-block-last {
  border-bottom: none;
  padding-bottom: 8px;
}

.earn-h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #9db8db;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 2px solid var(--c-primary);
}

.earn-metrics {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  text-align: center;
}

.earn-metric {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
}

.earn-metric + .earn-metric {
  border-left: 1px solid rgba(107, 182, 255, 0.15);
}

.earn-metric-label {
  display: block;
  font-size: 11px;
  color: var(--c-text-sub);
  margin-bottom: 6px;
}

.earn-metric-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.earn-metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5f9ff;
  letter-spacing: 0.02em;
}

.earn-metric-suf {
  font-size: 12px;
  color: #8eb0d4;
  font-weight: 500;
}

.earn-subline {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--c-text-sub);
  text-align: center;
}

.earn-subline strong {
  color: #d6e8ff;
  font-weight: 600;
}

.earn-invite-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(107, 182, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
}

.earn-invite-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.earn-invite-stat-label {
  font-size: 11px;
  color: var(--c-text-sub);
  letter-spacing: 0.06em;
}

.earn-invite-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f5f9ff;
  line-height: 1;
}

.earn-invite-stat-suf {
  font-size: 12px;
  font-weight: 600;
  color: #8eb0d4;
  margin-left: 2px;
}

.earn-subline-tight {
  margin: 0;
  text-align: right;
  flex: 1;
  min-width: 140px;
}

.earn-metrics-earnings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

.earn-metrics-earnings .earn-metric {
  flex: unset;
  min-width: 0;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(107, 182, 255, 0.14);
  background: rgba(0, 0, 0, 0.15);
}

.earn-metrics-earnings .earn-metric + .earn-metric {
  border-left: none;
}

.earn-metrics-earnings .earn-metric-label {
  text-align: left;
  margin-bottom: 8px;
  line-height: 1.3;
}

.earn-metrics-earnings .earn-metric-line {
  justify-content: flex-start;
}

.earn-metric-subl {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7a9bc4;
  text-transform: none;
}

.earn-earnings-note {
  font-size: 10px;
  margin-top: 12px;
  line-height: 1.5;
  color: #7a9bc4!important;
}

@media (max-width: 360px) {
  .earn-metrics-earnings {
    grid-template-columns: 1fr;
  }
}

/* 邀请工具卡片（赚币） */
.earn-block-invite-tool {
  padding-top: 18px;
}

.earn-invite-card {
  border-radius: 18px;
  border: 1px solid rgba(35, 96, 179, 0.45);
  background: linear-gradient(155deg, rgba(14, 40, 96, 0.55), rgba(4, 12, 38, 0.94));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.earn-invite-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(107, 182, 255, 0.12);
  background: linear-gradient(180deg, rgba(5, 124, 231, 0.12), transparent);
}

.earn-invite-card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--c-accent);
  border: 1px solid rgba(107, 182, 255, 0.35);
  background: rgba(5, 124, 231, 0.15);
}

.earn-invite-card-intro {
  min-width: 0;
}

.earn-invite-card-eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a9bc4;
}

.earn-invite-card-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f5f9ff;
  letter-spacing: 0.02em;
}

.earn-invite-card-lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #a9c8ea;
}

.earn-invite-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.earn-invite-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(107, 182, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.earn-invite-panel-text {
  flex: 1;
  min-width: 0;
}

.earn-invite-link-block {
  min-width: 0;
}

.earn-invite-k {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #8aa6c9;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.earn-invite-code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1.2;
}

.earn-invite-url {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #c4daf5;
  word-break: break-all;
  white-space: normal;
  max-height: 4.5em;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 182, 255, 0.35) transparent;
}

.earn-invite-url::-webkit-scrollbar {
  width: 4px;
}

.earn-invite-url::-webkit-scrollbar-thumb {
  background: rgba(107, 182, 255, 0.35);
  border-radius: 4px;
}

.earn-invite-sq-btn {
  flex: 0 0 44px;
  width: 44px;
  align-self: center;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(107, 182, 255, 0.4);
  background: rgba(5, 124, 231, 0.22);
  color: #eaf4ff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.earn-invite-sq-btn:hover {
  background: rgba(5, 124, 231, 0.38);
  border-color: rgba(255, 199, 102, 0.45);
  color: #fff;
}

.earn-invite-sq-btn:active {
  transform: scale(0.96);
}

.earn-invite-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  min-height: 48px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #061028;
  background: linear-gradient(180deg, #ffd78a 0%, #e8a840 100%);
  border: 1px solid rgba(255, 214, 150, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.earn-invite-cta:hover {
  filter: brightness(1.06);
  color: #061028;
}

.earn-invite-cta:active {
  transform: translateY(1px);
}

.earn-rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: earn-rule;
}

.earn-rule-item {
  position: relative;
  padding: 0 0 18px 18px;
  margin-bottom: 18px;
  border-left: 1px solid rgba(107, 182, 255, 0.22);
}

.earn-rule-item:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.earn-rule-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #eef6ff;
  margin-bottom: 8px;
}

.earn-rule-body {
  font-size: 13px;
  line-height: 1.65;
  color: #c4daf5;
  margin: 0 0 8px;
}

.earn-rule-ex {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-sub);
  margin: 0;
}

.earn-footnote {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-text-sub);
}

.earn-tp-lead {
  font-size: 13px;
  line-height: 1.65;
  color: #b9d4f2;
  margin: 0 0 18px;
}

.earn-tp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tpstep;
}

.earn-tp-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(107, 182, 255, 0.12);
}

.earn-tp-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.earn-tp-fig {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.earn-tp-fig img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

.earn-tp-h {
  font-size: 15px;
  font-weight: 700;
  color: #f0f7ff;
  margin: 0 0 8px;
}

.earn-tp-h::before {
  counter-increment: tpstep;
  content: counter(tpstep) ". ";
  color: var(--c-accent);
  font-weight: 700;
}

.earn-tp-p {
  font-size: 13px;
  line-height: 1.65;
  color: #c4daf5;
  margin: 0 0 8px;
}

.earn-tp-ul {
  margin: 0 0 8px;
  padding-left: 1.1rem;
  font-size: 12px;
  line-height: 1.65;
  color: var(--c-text-sub);
}

.earn-tp-a {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
}

.earn-tp-a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #e2f2ff;
}

/* ---------- 首页（扁平分区 + 系统钱包/转账沿用原版卡片组件） ---------- */
.page-home .page-shell {
  padding-top: 56px;
}

.home-main {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.home-block {
  padding: 10px 0;
}

.home-block-last {
  border-bottom: none;
  padding-bottom: 8px;
}

.home-block-banner {
  padding-top: 12px;
  padding-bottom: 18px;
}

.home-tech-banner {
  width: 100%;
  min-height: 168px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(72, 153, 255, 0.52);
  background: radial-gradient(circle at 20% 18%, rgba(57, 154, 255, 0.34), transparent 34%),
    radial-gradient(circle at 82% 68%, rgba(38, 112, 255, 0.26), transparent 44%),
    linear-gradient(150deg, rgba(9, 32, 83, 0.95), rgba(4, 18, 56, 0.98));
  box-shadow: inset 0 0 32px rgba(34, 125, 232, 0.2), 0 12px 34px rgba(0, 17, 48, 0.42);
}

.home-tech-banner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(116, 204, 255, 0) 16%, rgba(116, 204, 255, 0.38) 42%, rgba(116, 204, 255, 0) 62%);
  background-size: 240% 100%;
  mix-blend-mode: screen;
  opacity: 0.66;
  animation: homeBannerSweep 4.8s linear infinite;
  pointer-events: none;
}

.home-tech-grid,
.home-tech-scanline,
.home-tech-glow,
.home-tech-orbit {
  position: absolute;
  pointer-events: none;
}

.home-tech-grid {
  inset: 0;
  background-image: linear-gradient(rgba(84, 169, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 169, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.36;
  transform: perspective(420px) rotateX(32deg) scale(1.45) translateY(34px);
  transform-origin: center bottom;
  animation: homeGridDrift 9.5s linear infinite;
}

.home-tech-scanline {
  left: -20%;
  right: -20%;
  top: -70%;
  height: 60%;
  background: linear-gradient(180deg, rgba(126, 214, 255, 0), rgba(126, 214, 255, 0.42), rgba(126, 214, 255, 0));
  mix-blend-mode: screen;
  animation: homeScanline 3.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.home-tech-glow {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(2px);
}

.home-tech-glow-a {
  left: -50px;
  top: -46px;
  background: radial-gradient(circle, rgba(114, 209, 255, 0.44), rgba(114, 209, 255, 0) 68%);
  animation: homePulseA 3.5s ease-in-out infinite;
  will-change: transform, opacity;
}

.home-tech-glow-b {
  right: -58px;
  bottom: -72px;
  background: radial-gradient(circle, rgba(105, 137, 255, 0.44), rgba(105, 137, 255, 0) 68%);
  animation: homePulseB 4.2s ease-in-out infinite;
  will-change: transform, opacity;
}

.home-tech-orbit {
  width: 380px;
  height: 380px;
  right: -150px;
  top: -118px;
  border-radius: 50%;
  border: 1px solid rgba(130, 206, 255, 0.26);
  box-shadow: inset 0 0 20px rgba(130, 206, 255, 0.16);
}

.home-tech-orbit::before,
.home-tech-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.home-tech-orbit::before {
  inset: 24px;
  border: 1px dashed rgba(121, 188, 255, 0.34);
  animation: homeSpin 12s linear infinite;
  will-change: transform;
}

.home-tech-orbit::after {
  width: 8px;
  height: 8px;
  top: 52px;
  left: 58%;
  background: #8fe2ff;
  box-shadow: 0 0 18px rgba(143, 226, 255, 0.95);
  animation: homeDotOrbit 3s linear infinite;
}

.home-tech-orbit-alt {
  width: 300px;
  height: 300px;
  right: -102px;
  top: -88px;
  border-color: rgba(142, 214, 255, 0.22);
  box-shadow: inset 0 0 18px rgba(142, 214, 255, 0.12);
  opacity: 0.88;
}

.home-tech-orbit-alt::before {
  inset: 18px;
  border-style: solid;
  border-color: rgba(129, 205, 255, 0.2);
  animation-duration: 8.5s;
  animation-direction: reverse;
}

.home-tech-orbit-alt::after {
  width: 6px;
  height: 6px;
  top: 38px;
  left: 54%;
  background: #78d7ff;
  box-shadow: 0 0 14px rgba(120, 215, 255, 0.88);
  animation: homeDotOrbitReverse 2.5s linear infinite;
}

.home-tech-orbit-mid {
  width: 336px;
  height: 336px;
  right: -124px;
  top: -102px;
  border-color: rgba(130, 204, 255, 0.2);
  box-shadow: inset 0 0 14px rgba(130, 204, 255, 0.12);
  opacity: 0.74;
}

.home-tech-orbit-mid::before {
  inset: 22px;
  border-style: dotted;
  border-color: rgba(118, 190, 255, 0.24);
  animation-duration: 10.6s;
}

.home-tech-orbit-mid::after {
  width: 5px;
  height: 5px;
  top: 42px;
  left: 56%;
  background: #86dbff;
  box-shadow: 0 0 12px rgba(134, 219, 255, 0.85);
  animation: homeDotOrbitMid 3.4s linear infinite;
}

.home-tech-orbit-inner {
  width: 254px;
  height: 254px;
  right: -82px;
  top: -62px;
  border-color: rgba(145, 218, 255, 0.18);
  box-shadow: inset 0 0 12px rgba(145, 218, 255, 0.1);
  opacity: 0.8;
}

.home-tech-orbit-inner::before {
  inset: 15px;
  border-style: dashed;
  border-color: rgba(145, 218, 255, 0.28);
  animation-duration: 6.9s;
  animation-direction: reverse;
}

.home-tech-orbit-inner::after {
  width: 4px;
  height: 4px;
  top: 30px;
  left: 57%;
  background: #a6e8ff;
  box-shadow: 0 0 10px rgba(166, 232, 255, 0.76);
  animation: homeDotOrbitInner 2.1s linear infinite;
}

.home-tech-fastdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #95e4ff;
  box-shadow: 0 0 10px rgba(149, 228, 255, 0.88), 0 0 24px rgba(69, 186, 255, 0.34);
  will-change: transform, opacity;
}

.home-tech-fastdot-a {
  top: 28px;
  left: -14px;
  animation: homeFastDotA 2.4s linear infinite;
}

.home-tech-fastdot-b {
  top: 82px;
  left: -28px;
  width: 4px;
  height: 4px;
  animation: homeFastDotB 1.95s linear infinite;
  animation-delay: 0.35s;
}

.home-tech-fastdot-c {
  top: 132px;
  left: -18px;
  width: 6px;
  height: 6px;
  animation: homeFastDotC 2.75s linear infinite;
  animation-delay: 0.8s;
}

.home-tech-copy {
  position: relative;
  z-index: 1;
  padding: 20px 20px 20px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-tech-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(146, 209, 255, 0.58);
  background: rgba(6, 44, 106, 0.52);
  color: #a9ddff;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
}

.home-tech-title {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #e8f5ff;
  text-shadow: 0 0 14px rgba(120, 214, 255, 0.46);
  animation: homeTitlePulse 2.6s ease-in-out infinite;
  text-align: center;
}

.home-tech-sub {
  color: #9ec5e8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

@keyframes homeScanline {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.28;
  }
  100% {
    transform: translateY(280%);
    opacity: 0;
  }
}

@keyframes homeGridDrift {
  from {
    transform: perspective(420px) rotateX(32deg) scale(1.45) translateY(34px) translateX(0);
  }
  to {
    transform: perspective(420px) rotateX(32deg) scale(1.45) translateY(34px) translateX(-18px);
  }
}

@keyframes homePulseA {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes homePulseB {
  0%,
  100% {
    transform: scale(1.05);
    opacity: 0.68;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.94;
  }
}

@keyframes homeSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeDotOrbit {
  from {
    transform: rotate(0deg) translateX(132px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(132px) rotate(-360deg);
  }
}

@keyframes homeDotOrbitReverse {
  from {
    transform: rotate(360deg) translateX(104px) rotate(-360deg);
  }
  to {
    transform: rotate(0deg) translateX(104px) rotate(0deg);
  }
}

@keyframes homeDotOrbitMid {
  from {
    transform: rotate(0deg) translateX(118px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(118px) rotate(-360deg);
  }
}

@keyframes homeDotOrbitInner {
  from {
    transform: rotate(360deg) translateX(84px) rotate(-360deg);
  }
  to {
    transform: rotate(0deg) translateX(84px) rotate(0deg);
  }
}

@keyframes homeBannerSweep {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

@keyframes homeTitlePulse {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(120, 214, 255, 0.4), 0 0 0 rgba(146, 230, 255, 0.1);
  }
  50% {
    text-shadow: 0 0 18px rgba(146, 230, 255, 0.62), 0 0 30px rgba(94, 190, 255, 0.26);
  }
}

@keyframes homeFastDotA {
  0% {
    transform: translateX(0) translateY(0) scale(0.5);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  68% {
    opacity: 0.75;
  }
  100% {
    transform: translateX(760px) translateY(34px) scale(1);
    opacity: 0;
  }
}

@keyframes homeFastDotB {
  0% {
    transform: translateX(0) translateY(0) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  70% {
    opacity: 0.65;
  }
  100% {
    transform: translateX(760px) translateY(-18px) scale(0.95);
    opacity: 0;
  }
}

@keyframes homeFastDotC {
  0% {
    transform: translateX(0) translateY(0) scale(0.55);
    opacity: 0;
  }
  16% {
    opacity: 0.9;
  }
  64% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(760px) translateY(16px) scale(1.08);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .home-tech-orbit {
    opacity: 0.5;
    transform: scale(0.86);
    right: -178px;
    top: -138px;
  }
  .home-tech-orbit-alt,
  .home-tech-orbit-mid {
    opacity: 0.42;
  }
  .home-tech-orbit-inner {
    opacity: 0.56;
  }
  .home-tech-title {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-tech-banner::before,
  .home-tech-grid,
  .home-tech-scanline,
  .home-tech-glow-a,
  .home-tech-glow-b,
  .home-tech-orbit::before,
  .home-tech-orbit::after,
  .home-tech-fastdot,
  .home-tech-title {
    animation: none !important;
  }
}

.page-home .quick-metrics {
  margin-top: 2px;
}

.home-h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #9db8db;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 2px solid var(--c-primary);
}

.home-h2-nomargin {
  margin-bottom: 0;
}

.home-h2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.home-play-summary {
  margin: -8px 0 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #b8cfe8;
  background: rgba(12, 28, 52, 0.55);
  border: 1px solid rgba(80, 140, 200, 0.22);
  border-radius: 12px;
}

.home-plain-btn {
  border: none;
  background: none;
  padding: 4px 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
}

.home-plain-btn:hover {
  color: #e2f2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .notice-marquee {
  margin-top: 4px;
}

.page-home .notice-content {
  color: #c8dff5;
  font-size: 12px;
}

.home-btn-primary {
  display: block;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #1a93f0, #057ce7);
  box-shadow: 0 6px 18px rgba(5, 124, 231, 0.3);
  transition: background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.home-btn-primary:hover {
  background: linear-gradient(180deg, #2a9ef5, #0688f5);
  color: #fff;
  box-shadow: 0 8px 22px rgba(5, 124, 231, 0.36);
}

.home-btn-primary:active {
  transform: translateY(1px);
}

.home-btn-modal {
  width: auto;
  min-width: 120px;
  margin: 0 auto;
}

.home-rank-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  border-bottom: 1px solid rgba(107, 182, 255, 0.15);
  margin-bottom: 10px;
  padding: 0;
}

.home-rank-tabs .nav-item {
  margin: 0;
}

.home-rank-tabs .nav-link {
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  color: #8fafd4 !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px 10px 0 !important;
  margin-right: 12px;
  position: relative;
}

.home-rank-tabs .nav-link:hover {
  color: #cfe6ff !important;
}

.home-rank-tabs .nav-link.active {
  color: #f2f8ff !important;
  box-shadow: none !important;
}

.home-rank-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
}

.home-rank-list {
  padding-top: 4px;
}

.home-rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(107, 182, 255, 0.1);
}

.home-rank-row:last-child {
  border-bottom: none;
}

.home-rank-idx {
  flex: 0 0 28px;
  width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #8eb0d4;
}

.home-rank-idx-top {
  color: #ffd27a;
  font-size: 14px;
}

.home-rank-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-rank-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #7a9bc4;
  text-transform: uppercase;
}

.home-rank-addr {
  font-size: 14px;
  font-weight: 600;
  color: #eaf4ff;
}

.home-rank-val {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #dceeff;
}

#rule-modal .modal-content.home-modal-content {
  border: none !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #0c1d4f 0%, #081641 100%) !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.home-modal-content {
  color: var(--c-text-main);
}

.home-modal-header {
  padding-bottom: 0;
}

.home-modal-sub {
  font-size: 12px;
  color: var(--c-text-sub);
}

.home-modal-body {
  padding-top: 12px;
}

.home-modal-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 13px;
  line-height: 1.65;
  color: #c4daf5;
}

.home-modal-footer {
  padding-top: 0;
}

.home-rule-html {
  font-size: 13px;
  line-height: 1.65;
  color: #c4daf5;
}

.home-rule-html .rule-doc-h {
  font-size: 14px;
  font-weight: 600;
  color: #dceeff;
  margin: 14px 0 8px;
}

.home-rule-html .rule-doc-h:first-child {
  margin-top: 0;
}

.home-rule-html .rule-doc-ul {
  margin: 0 0 0 1.1rem;
  padding: 0;
}

.home-rule-html .rule-doc-ul li {
  margin-bottom: 6px;
}

.home-rule-html strong {
  color: #fff;
  font-weight: 600;
}

.rule-load-hint {
  color: var(--c-text-sub) !important;
}

/* 答题规则说明弹窗：避让固定顶栏 + 限制可视高度，正文区滚动，底部「确认」常驻可见 */
#rule-modal .modal-dialog.modal-dialog-centered {
  align-items: flex-start;
  min-height: 0;
}

#rule-modal .modal-dialog.modal-dialog-scrollable {
  height: auto;
  margin-top: calc(var(--app-header-height) + env(safe-area-inset-top, 0px));
  margin-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  max-height: calc(
    100vh - var(--app-header-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.75rem
  );
  max-height: calc(
    100dvh - var(--app-header-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.75rem
  );
}

#rule-modal .modal-dialog.modal-dialog-scrollable .modal-content {
  max-height: min(
    calc(100vh - var(--app-header-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.75rem),
    calc(100dvh - var(--app-header-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.75rem)
  );
}

/* 顶栏 z-index 高于默认 Bootstrap 弹窗时，答题规则说明上半截会被挡在蒙层下 — 仅本弹窗抬高叠放顺序 */
#rule-modal.modal {
  --bs-modal-zindex: 1260;
}

body.modal-open:has(#rule-modal.show) .modal-backdrop {
  z-index: 1255 !important;
}

#rule-modal .home-modal-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#rule-modal .home-modal-header {
  flex-shrink: 0;
}

#rule-modal .modal-body.home-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#rule-modal .home-modal-footer {
  flex-shrink: 0;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

/* ---------- 我的 ---------- */
.page-mine .page-shell {
  padding-top: 76px;
}

.mine-main {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.mine-layout {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mine-panel-identity .mine-panel-eyebrow {
  margin-bottom: 10px;
}

.mine-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-sub);
  margin: 0 0 5px;
  letter-spacing: 0.04em;
}

.mine-field-label-spaced {
  margin-top: 16px;
}

.mine-nickname {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f5f9ff;
  margin: 0;
  letter-spacing: 0.02em;
}

.mine-panel {
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(35, 96, 179, 0.42);
  background: linear-gradient(165deg, rgba(12, 32, 78, 0.55), rgba(5, 14, 42, 0.92));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.mine-panel-head {
  margin-bottom: 12px;
}

.mine-panel-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a9bc4;
  margin-bottom: 4px;
}

.mine-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #eaf2ff;
  margin: 0;
}

.mine-address-full {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #dceeff;
  word-break: break-all;
  margin: 0;
}

.mine-commission-balance {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(107, 182, 255, 0.14);
}

.mine-commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mine-commission-cell {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(107, 182, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.mine-commission-sub {
  display: block;
  font-size: 11px;
  color: var(--c-text-sub);
  margin-bottom: 5px;
}

.mine-commission-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.mine-commission-note {
  font-size: 11px;
  line-height: 1.45;
  color: #8aa6c9;
}

.mine-btn-primary,
.mine-btn-secondary {
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mine-btn-primary {
  width: 100%;
  color: #061028;
  background: linear-gradient(180deg, #ffd78a 0%, #e8a840 100%);
  border-color: rgba(255, 214, 150, 0.5);
}

.mine-btn-primary:hover {
  filter: brightness(1.06);
  color: #061028;
}

.mine-btn-secondary {
  color: #eaf4ff;
  background: rgba(5, 124, 231, 0.2);
  border-color: rgba(107, 182, 255, 0.45);
}

.mine-btn-secondary:hover {
  background: rgba(5, 124, 231, 0.35);
  color: #fff;
}

.mine-bind-lead {
  font-size: 13px;
  line-height: 1.55;
  color: #b8d0ee;
}

.mine-form-label {
  font-size: 12px;
  color: #9db8db;
  margin-bottom: 6px;
}

.mine-input {
  background: rgba(4, 12, 36, 0.65) !important;
  border: 1px solid rgba(107, 182, 255, 0.28) !important;
  color: #f0f7ff !important;
  border-radius: 10px !important;
  font-size: 13px;
}

.mine-input::placeholder {
  color: rgba(157, 184, 219, 0.55);
}

.mine-input:focus {
  border-color: rgba(255, 199, 102, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(5, 124, 231, 0.25) !important;
}

.mine-form-feedback {
  font-size: 12px;
  color: #ff9b9b;
  min-height: 1.25em;
}

.mine-bound-parent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.mine-bound-label {
  font-size: 11px;
  color: var(--c-text-sub);
}

.mine-bound-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.mine-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mine-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 10px 8px;
  min-height: 94px;
  border-radius: 12px;
  border: 1px solid rgba(35, 96, 179, 0.45);
  background: rgba(6, 18, 52, 0.55);
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.mine-action-tile-link {
  text-decoration: none;
  color: inherit;
}

.mine-action-tile-link:hover {
  border-color: rgba(107, 182, 255, 0.55);
  background: rgba(10, 30, 78, 0.65);
  color: inherit;
  transform: translateY(-1px);
}

.mine-action-tile-btn {
  cursor: pointer;
  width: 100%;
}

.mine-action-tile-btn:hover {
  border-color: rgba(255, 199, 102, 0.45);
  background: rgba(40, 28, 8, 0.35);
  transform: translateY(-1px);
}

.mine-action-ico {
  font-size: 1.2rem;
  color: var(--c-accent);
}

.mine-action-label {
  font-weight: 800;
  font-size: 12px;
  color: #f5f9ff;
  line-height: 1.25;
}

.mine-action-hint {
  font-size: 10px;
  color: var(--c-text-sub);
  line-height: 1.25;
}

.mine-foot {
  padding: 4px 2px 8px;
}

.mine-foot-title {
  font-size: 12px;
  font-weight: 700;
  color: #9db8db;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.mine-tips {
  padding-left: 1.1rem;
  font-size: 12px;
  line-height: 1.65;
  color: var(--c-text-sub);
  margin: 0;
}

.mine-tips li + li {
  margin-top: 6px;
}

/* 提现申请弹窗 */
#mine-withdraw-modal .modal-dialog {
  max-width: 400px;
}

.mine-wd-modal {
  background: linear-gradient(168deg, #102a5c 0%, #071228 52%, #050c1f 100%);
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(90, 150, 220, 0.28) !important;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #e8f1fc;
}

.mine-wd-modal-header {
  padding: 1.15rem 1.35rem 0.85rem;
}


.mine-wd-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5f9ff;
  margin: 0 0 8px;
}

.mine-wd-modal-subtitle {
  font-size: 12px;
  color: #8aa6c9;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.mine-wd-modal-body {
  padding: 0.2rem 1.35rem 1.2rem;
}

.mine-wd-modal-intro {
  margin: 0 0 1rem;
  font-size: 13px;
  line-height: 1.65;
  color: #b4c9e8;
}

.mine-wd-rules {
  margin: 0 0 1.35rem;
  padding: 11px 14px 12px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(107, 182, 255, 0.1);
}

.mine-wd-rule-item {
  display: flex;
  gap: 9px;
  font-size: 11px;
  line-height: 1.58;
  color: #9db8db;
  padding: 6px 0;
}

.mine-wd-rule-item + .mine-wd-rule-item {
  border-top: 1px solid rgba(107, 182, 255, 0.1);
  margin-top: 2px;
  padding-top: 11px;
}

.mine-wd-rule-ico {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--c-accent);
  font-size: 0.9rem;
  opacity: 0.95;
}

.mine-wd-balance-card {
  padding: 6px 0 18px;
  margin: 6px 0 0;
  border: none;
  border-bottom: 1px dashed rgba(107, 182, 255, 0.28);
  background: transparent;
  border-radius: 0;
}

.mine-wd-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mine-wd-balance-label {
  font-size: 12px;
  font-weight: 600;
  color: #9db8db;
  letter-spacing: 0.06em;
}

.mine-wd-balance-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7a9bc4;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(107, 182, 255, 0.28);
  background: rgba(5, 124, 231, 0.12);
}

.mine-wd-balance-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 2px;
}

.mine-wd-balance-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1;
}

.mine-wd-balance-unit {
  font-size: 13px;
  font-weight: 600;
  color: #8eb0d4;
}

.mine-wd-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9db8db;
  margin-top: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.mine-wd-input-group {
  margin-bottom: 2px;
}

.mine-wd-amount-input {
  min-height: 46px;
}

.mine-wd-btn-all {
  color: #eaf4ff !important;
  background: rgba(5, 124, 231, 0.28) !important;
  border: 1px solid rgba(107, 182, 255, 0.45) !important;
  font-size: 12px;
  font-weight: 700;
  padding-left: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

.mine-wd-btn-all:hover {
  background: rgba(5, 124, 231, 0.42) !important;
  color: #fff !important;
}

.mine-wd-feedback {
  font-size: 12px;
  color: #ff9b9b;
  min-height: 1.25em;
  margin-top: 10px;
}

.mine-wd-modal-footer {
  padding: 0.4rem 1.35rem 1.35rem;
  margin-top: 0;
}

.mine-wd-submit-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #061028;
  background: linear-gradient(180deg, #ffd78a 0%, #e8a840 100%);
  border: 1px solid rgba(255, 214, 150, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.mine-wd-submit-btn:hover {
  filter: brightness(1.05);
  color: #061028;
}

.mine-wd-submit-btn:active {
  transform: translateY(1px);
}

.mine-wd-success-modal {
  background: linear-gradient(168deg, #102a5c 0%, #071228 52%, #050c1f 100%);
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(90, 150, 220, 0.28) !important;
  color: #e8f1fc;
}

.mine-wd-success-text {
  font-size: 14px;
  line-height: 1.7;
  color: #b4c9e8;
}


.mine-wd-input-group .mine-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.mine-wd-input-group .mine-wd-btn-all {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none !important;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .mine-commission-grid {
    grid-template-columns: 1fr;
  }

  .mine-action-row {
    gap: 6px;
  }

  .mine-action-tile {
    min-height: 88px;
    padding: 9px 6px;
  }

  .mine-action-label {
    font-size: 11px;
  }

  .mine-action-hint {
    font-size: 9px;
  }
}

/* ---------- 二级页模板（统一） ---------- */
.subpage-main {
  padding-top: 76px;
}

.subpage-main-no-tabnav {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.subpage-toast {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

/* 二级页统一返回位 */
.subpage-back {
  color: #9fb7d5;
}

.subpage-back:hover {
  color: var(--c-accent) !important;
}

.subpage-back-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #dceeff;
  letter-spacing: 0.02em;
}

/* ---------- 历史订单 ---------- */

.record-block {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(107, 182, 255, 0.12);
  margin-bottom: 16px;
}

.record-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f8ff;
  margin: 0;
}

.record-main {
  transition: transform 0.2s ease;
  will-change: transform;
}

/* ---------- 资金流水 ---------- */
.bill-main {
  transition: transform 0.2s ease;
  will-change: transform;
}

.bill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bill-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(35, 96, 179, 0.38);
  background: rgba(8, 22, 65, 0.5);
}

.bill-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.bill-item-intro {
  font-size: 13px;
  color: #dceeff;
  font-weight: 600;
}

.bill-item-amount {
  font-size: 13px;
  font-weight: 700;
}

.bill-pos {
  color: #94f3a0;
}

.bill-neg {
  color: #ffb3b3;
}

.bill-item-time {
  margin-top: 6px;
  font-size: 12px;
  color: #8aa6c9;
}

.record-ptr {
  position: fixed;
  left: 50%;
  top: 78px;
  transform: translateX(-50%);
  z-index: 1305;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.record-ptr.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(8px);
}

.record-ptr-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  line-height: 1;
  font-size: 12px;
  color: #c7def7;
  background: rgba(6, 18, 52, 0.82);
  border: 1px solid rgba(107, 182, 255, 0.36);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 6px 14px;
}

.record-empty {
  text-align: center;
  padding: 32px 16px;
  color: #b8d0ee;
}

.record-empty-ico {
  font-size: 2.5rem;
  color: rgba(107, 182, 255, 0.35);
  display: block;
  margin-bottom: 12px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  position: relative;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(35, 96, 179, 0.4);
  background: rgba(8, 22, 65, 0.5);
  overflow: hidden;
}

.record-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
}

.record-item-win::before {
  background: linear-gradient(120deg, transparent 10%, rgba(126, 240, 140, 0.25) 42%, rgba(222, 255, 207, 0.5) 50%, rgba(126, 240, 140, 0.25) 58%, transparent 90%);
  background-size: 220% 100%;
  opacity: 0.95;
  mix-blend-mode: screen;
  animation: winCardSweep 2.4s linear infinite;
}

.record-item-win {
  border-color: rgba(137, 255, 154, 0.6);
  box-shadow: 0 0 18px rgba(126, 240, 140, 0.18), inset 0 0 0 1px rgba(137, 255, 154, 0.16);
}

.record-item-win-pending {
  border-color: rgba(122, 214, 255, 0.55);
  box-shadow: 0 0 16px rgba(90, 186, 255, 0.2), inset 0 0 0 1px rgba(122, 214, 255, 0.14);
}

.record-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.record-item-amount {
  font-size: 16px;
  font-weight: 700;
  color: #f5f9ff;
}

.record-item-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.record-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.record-status-pending {
  color: #ffe89f;
  border-color: rgba(255, 219, 133, 0.5);
  background: rgba(87, 69, 16, 0.32);
  box-shadow: 0 0 14px rgba(255, 206, 93, 0.18);
}

.record-status-win {
  color: #b4ffbb;
  border-color: rgba(137, 255, 154, 0.48);
  background: rgba(24, 97, 39, 0.3);
  box-shadow: 0 0 14px rgba(137, 255, 154, 0.2);
}

.record-status-win-pending {
  color: #c8e9ff;
  border-color: rgba(122, 214, 255, 0.5);
  background: rgba(18, 72, 118, 0.38);
  box-shadow: 0 0 14px rgba(90, 186, 255, 0.22);
}

.record-status-lose {
  color: #ffc0c0;
  border-color: rgba(255, 150, 150, 0.48);
  background: rgba(112, 25, 25, 0.28);
  box-shadow: 0 0 14px rgba(255, 132, 132, 0.2);
}

.record-dot-pending {
  background: #ffd86f;
  box-shadow: 0 0 12px rgba(255, 216, 111, 0.8);
  animation: recordPulse 1.35s ease-in-out infinite;
}

.record-dot-win {
  background: #7ef08c;
  box-shadow: 0 0 12px rgba(126, 240, 140, 0.8);
  animation: recordPulse 1.2s ease-in-out infinite;
}

.record-dot-win-pending {
  background: #6ecbff;
  box-shadow: 0 0 12px rgba(110, 203, 255, 0.85);
  animation: recordPulse 1.28s ease-in-out infinite;
}

.record-dot-lose {
  background: #ff8b8b;
  box-shadow: 0 0 12px rgba(255, 139, 139, 0.8);
  animation: recordPulse 1.5s ease-in-out infinite;
}

.record-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.record-meta-key {
  font-size: 12px;
  color: var(--c-text-sub);
}

.record-meta-value {
  font-size: 12px;
  color: #d7e8ff;
  font-weight: 600;
}

.record-item-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #a9c8ea;
  word-break: break-all;
  margin-bottom: 0;
  text-align: right;
}

.record-hash-link {
  color: #9ed0ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.record-hash-link:hover {
  color: #c4e4ff;
  text-decoration: underline;
}

.record-loadmore {
  padding: 12px 6px 8px;
  text-align: center;
  font-size: 12px;
  color: #8aa6c9;
}

.record-sentinel {
  height: 1px;
}

@keyframes recordPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes winCardSweep {
  0% {
    background-position: 210% 0;
  }
  100% {
    background-position: -70% 0;
  }
}

@media (min-width: 520px) {
  .earn-tp-item {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .record-item-win::before {
    opacity: 0.2;
  }
}
