/* 序流跃动 / FLOWMOTION 会员站共享样式（介绍、登录、注册、待配置、已停用） */
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-width: 0;
  overflow-x: hidden;
  position: relative;
}
@keyframes fm-bg-drift {
  0% { transform: translate3d(-4%, -3%, 0) scale(1.02); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
@keyframes fm-bg-drift-alt {
  0% { transform: translate3d(3%, 4%, 0) scale(1.06); }
  100% { transform: translate3d(-3%, -4%, 0) scale(1.02); }
}
@keyframes fm-bg-breathe {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(48% 40% at 14% 6%, rgba(0, 160, 232, 0.40), transparent 64%),
    radial-gradient(44% 36% at 90% 10%, rgba(0, 64, 152, 0.58), transparent 66%),
    radial-gradient(40% 34% at 74% 90%, rgba(77, 232, 255, 0.20), transparent 68%),
    radial-gradient(36% 32% at 10% 84%, rgba(208, 140, 255, 0.16), transparent 66%);
  animation: fm-bg-drift 28s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(42% 32% at 56% -2%, rgba(0, 160, 232, 0.26), transparent 62%),
    radial-gradient(34% 30% at 38% 72%, rgba(0, 64, 152, 0.34), transparent 64%),
    radial-gradient(30% 26% at 96% 56%, rgba(0, 160, 232, 0.18), transparent 66%);
  animation: fm-bg-drift-alt 22s ease-in-out infinite alternate, fm-bg-breathe 16s ease-in-out infinite;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#app, .page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

/* —— 顶栏 —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: calc(12px + var(--safe-t)) calc(16px + var(--safe-r)) 12px calc(16px + var(--safe-l));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 160, 232, 0.28);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand img, .logo-header {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, #00a0e8, #0077c2 70%, #004098);
  color: #061018;
  min-height: 44px;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 0 16px rgba(0, 160, 232, 0.35);
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent-deep); color: var(--text); }
.btn.danger {
  background: linear-gradient(180deg, #e07a6c, #c44e40);
  color: #1a0c0a;
  box-shadow: 0 0 16px rgba(224, 112, 98, 0.28);
}
.btn.buy {
  background: linear-gradient(180deg, #3ee6a0, #129a5e);
  color: #06140e;
  box-shadow: 0 0 16px rgba(62, 230, 160, 0.28);
}
.btn.sell {
  background: linear-gradient(180deg, #e07a6c, #c44e40);
  color: #1a0c0a;
  box-shadow: 0 0 16px rgba(224, 122, 108, 0.28);
}
.btn-link {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 13px;
  padding: 8px 4px;
  min-height: 44px;
  box-shadow: none;
  text-decoration: none;
  font-weight: 500;
}
.btn-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* —— 卡片 —— */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-neon {
  position: relative;
  overflow: hidden;
}
.card-neon::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 2px;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-purple) 33%, var(--neon-gold) 66%, var(--neon-cyan) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(77, 232, 255, 0.55), 0 0 16px rgba(208, 140, 255, 0.35);
  z-index: 2;
  animation: fm-neon-flow 12s linear infinite, fm-neon-breathe 5s ease-in-out infinite;
}
@keyframes fm-neon-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes fm-neon-breathe {
  0%, 100% {
    opacity: 0.78;
    box-shadow: 0 0 8px rgba(77, 232, 255, 0.35), 0 0 10px rgba(208, 140, 255, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(77, 232, 255, 0.7), 0 0 20px rgba(208, 140, 255, 0.45);
  }
}

/* —— 状态芯片 —— */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--bg-inset);
  white-space: nowrap;
}
.chip.gold { color: var(--gold); border-color: var(--gold); }
.chip.olive { color: var(--olive); border-color: var(--olive); }
.chip.bear, .chip.danger { color: var(--bear); border-color: var(--bear); }
.chip.accent { color: var(--accent); border-color: var(--accent); }

/* —— 表单 —— */
label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}
.field-input {
  position: relative;
  display: flex;
  align-items: stretch;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-inset);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, .tf-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px rgba(0, 160, 232, 0.28);
  border-color: var(--accent);
  outline: none;
}
.pw-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 44px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}
.pw-toggle:hover { color: var(--text); }
.field-error {
  color: var(--bear);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 2px;
  min-height: 0;
}
.form-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 4px 0 14px;
}
.form-alert {
  border: 1px solid var(--bear);
  background: rgba(224, 112, 98, 0.12);
  color: var(--text);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.form-alert.ok {
  border-color: var(--olive);
  background: rgba(111, 191, 163, 0.12);
}
.form-alert.warn {
  border-color: var(--gold);
  background: rgba(232, 195, 122, 0.12);
}
.form-foot {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}
.full { width: 100%; }

/* —— 介绍页 —— */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--marketing-max);
  margin: 0 auto;
  padding: 32px calc(16px + var(--safe-r)) 48px calc(16px + var(--safe-l));
}
.hero-marketing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0 32px;
}
.hero-logo {
  width: min(320px, 72vw);
  max-width: 360px;
  height: auto;
  background: transparent;
}
.hero-marketing h1 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.04em;
  font-weight: 700;
}
.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.feature-card h2 {
  font-size: 16px;
  margin: 10px 0 8px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}
.feature-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}

/* —— 页脚 —— */
.site-footer {
  margin-top: auto;
  padding: 24px calc(16px + var(--safe-r)) calc(24px + var(--safe-b)) calc(16px + var(--safe-l));
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
}
.site-footer .logo-header { height: 28px; opacity: 0.95; }
.site-footer .domain { font-family: var(--mono); color: var(--text-dim); }

/* —— 居中表单页 —— */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px calc(16px + var(--safe-r)) 48px calc(16px + var(--safe-l));
}
.auth-card {
  width: min(100%, var(--form-max));
  padding: 28px 22px 24px;
}
.auth-card .logo-header {
  height: 40px;
  margin: 0 auto 16px;
}
.auth-card h1 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.status-block {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

/* toast */
.toast-host {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(16px + var(--safe-b));
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
  padding: 0 16px;
}
.toast {
  pointer-events: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: 480px;
}
.toast.err { border-color: var(--bear); }
.toast.ok { border-color: var(--olive); }

.draft-banner {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  background: rgba(232, 195, 122, 0.08);
  border: 1px solid rgba(232, 195, 122, 0.35);
  border-radius: 9px;
  padding: 8px 12px;
}

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand img, .logo-header { height: 40px; max-width: 220px; }
  .auth-card { padding: 32px 28px 28px; }
}

@media (max-width: 719px) {
  .topbar { gap: 8px; }
  .hero-actions .btn, .topbar-actions .btn { min-width: 0; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .card-neon::before {
    animation: none;
  }
  body::before,
  body::after {
    opacity: 1;
    transform: none;
  }
}

/* —— 申请会员长表单 —— */
.apply-wrap { align-items: flex-start; }
.apply-card { width: min(100%, 560px); }
.form-section {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 4px 0 8px;
  padding: 14px 0 2px;
  min-width: 0;
}
.form-section legend {
  padding: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 8px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text-dim);
}
label.check input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}
#errAgree { display: block; margin-bottom: 12px; }

.field-hint {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-faint);
  line-height: 1.5;
}
