/* 富多官网 — 单屏预览 v4（品牌克制 · 收拢为一主视觉） */

:root {
  --font: "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  --void: #050810;
  --ink: #eef2ff;
  --muted: rgba(238, 242, 255, 0.4);
  --accent: #4d7cff;
  --accent-soft: rgba(77, 124, 255, 0.32);
}

html.fuduo-os-macos { --font: "PingFang SC", "Hiragino Sans GB", sans-serif; }
html.fuduo-os-windows { --font: "Microsoft YaHei", "微软雅黑", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  font-family: var(--font);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button { border: 0; background: none; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 44% 36% at 50% 46%, rgba(77, 124, 255, 0.09), transparent 66%);
  animation: breathe 14s ease-in-out infinite alternate;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 88% 80% at 50% 44%, transparent 44%, rgba(5, 8, 16, 0.84) 100%);
}

@keyframes breathe {
  from { opacity: 0.88; }
  to { opacity: 1; }
}

.screen {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  padding: clamp(20px, 4vh, 40px) clamp(24px, 5vw, 64px) clamp(14px, 2vh, 22px);
}

.universe {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.field-svg {
  width: min(96vw, 1100px);
  height: min(58vh, 540px);
}

.ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 1;
}

.ring-b {
  stroke: rgba(77, 124, 255, 0.08);
  stroke-dasharray: 2 16;
}

.focus {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 720px);
  padding: 0 16px;
  text-align: center;
}

.brand {
  margin-bottom: clamp(32px, 5.5vh, 52px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
}

.brand-rule {
  width: clamp(36px, 6vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.brand-mark {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
}

.brand-tag {
  margin: clamp(12px, 2vh, 16px) 0 0;
  color: var(--muted);
  font-size: clamp(10px, 0.95vw, 11px);
  font-weight: 500;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
}

.title-core {
  margin: 0 0 clamp(28px, 4.5vh, 44px);
  font-size: clamp(44px, 7.2vw, 92px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, rgba(196, 210, 255, 0.68) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 clamp(44px, 7.5vh, 68px);
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.65;
  white-space: nowrap;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 320px);
  gap: 12px;
}

.cta {
  width: 100%;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #3d62d8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 16px 44px var(--accent-soft);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(77, 124, 255, 0.38);
}

.cta.is-verified {
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.35), 0 16px 44px var(--accent-soft);
}

.cta:disabled,
button[data-loading="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.meta,
.status {
  margin: 0;
  min-height: 16px;
  font-size: 11px;
  text-align: center;
}

.meta { color: rgba(255, 255, 255, 0.26); }
.status { color: rgba(255, 255, 255, 0.44); }
.status.is-success { color: #6ee7b7; }
.status.is-error { color: #fca5a5; }

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.24);
  font-size: 11px;
}

.legal a:hover { color: rgba(255, 255, 255, 0.5); }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show { opacity: 1; transform: translateY(0); }

/* 企微验证弹窗 */
.wecom-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, visibility 0.22s;
}

.wecom-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.wecom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}

.wecom-modal-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 360px);
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 16, 32, 0.94);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.wecom-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.wecom-modal-close:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.wecom-modal-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.wecom-modal-desc {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.qr-shell {
  position: relative;
  width: 300px;
  height: 380px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  overflow: hidden;
}

.qr-frame {
  display: block;
  width: 300px;
  height: 420px;
  margin: 0 auto;
  border: 0;
  transform: scale(0.905);
  transform-origin: top center;
}

.qr-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  background: rgba(8, 14, 28, 0.92);
}

.qr-shell.is-ready .qr-loading { display: none; }

.wecom-modal-card.is-verified {
  width: min(100%, 300px);
  padding: 24px 24px 20px;
}

.wecom-success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
}

.wecom-success-panel[hidden] {
  display: none;
}

.wecom-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.35);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.wecom-success-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  text-align: center;
}

.wecom-modal-card.is-verified .wecom-download-btn {
  margin-top: 12px;
}

.gate-status {
  display: none;
  margin: 16px 0 0;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
}

.gate-status.is-visible { display: block; }

.gate-status.is-success { color: #6ee7b7; }
.gate-status.is-error { color: #fca5a5; }

.wecom-download-btn {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.24);
  transition: transform 0.15s, box-shadow 0.15s;
}

.wecom-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(52, 211, 153, 0.36);
}

@media (min-width: 1400px) {
  .title-core { font-size: 96px; }
  .brand-mark { font-size: 28px; }
}

@media (max-width: 960px) {
  .lead { white-space: normal; }
  .brand-mark { letter-spacing: 0.42em; padding-left: 0.42em; }
  .brand-tag { letter-spacing: 0.28em; padding-left: 0.28em; }
  .title-core { letter-spacing: 0.1em; padding-left: 0.1em; }
}

@media (max-width: 480px) {
  .title-core { font-size: clamp(36px, 10vw, 44px); }
  .brand { margin-bottom: 28px; }
  .lead { margin-bottom: 36px; font-size: 13px; }
  .qr-shell { width: min(100%, 280px); height: 360px; }
  .qr-frame { width: 280px; height: 392px; transform: scale(0.918); }
  .wecom-modal-card { padding: 24px 20px 20px; }
}

@media (max-height: 700px) {
  .brand { margin-bottom: 24px; }
  .title-core {
    margin-bottom: 20px;
    font-size: clamp(34px, 5.5vh, 52px);
  }
  .lead { margin-bottom: 32px; }
  .field-svg { height: min(50vh, 400px); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-glow { animation: none; }
  .cta:hover:not(:disabled) { transform: none; }
  .wecom-modal { transition: none; }
}
