:root {
  --bg: #07070b;
  --bg-soft: #0d0d14;
  --fg: #f2f2f7;
  --muted: #8b8b9e;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景氛围 */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-a {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  top: -14vw; left: -10vw;
}
.glow-b {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--accent-2), transparent 68%);
  bottom: -16vw; right: -8vw;
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.15); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 56px);
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 11, 0.62);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark { font-size: 1.35rem; animation: float 3.4s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--fg); }

/* 主体 */
main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) clamp(18px, 5vw, 40px) 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px;
  font-size: 0.82rem;
  color: #cfcae8;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.title {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 7.2vw, 4.6rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.title .line { display: block; }
.title .accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-3) 46%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 34px rgba(124, 92, 255, 0.34));
}

.sub {
  margin: 0 0 36px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
}

/* 进度卡片 */
.status-card {
  max-width: 560px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.9);
}
.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.badge {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a0a0f;
  border-radius: 999px;
  background: linear-gradient(95deg, var(--accent-2), #a5f3fc);
}
.status-note {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  background-size: 200% 100%;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% 0; }
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  font-size: 0.82rem;
  color: #cfcae8;
}

/* 按钮 */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 650;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #0a0a0f;
  background: linear-gradient(95deg, #fff, #d9d3ff);
  box-shadow: 0 14px 34px -16px rgba(255, 255, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 42px -14px rgba(255, 255, 255, 0.7); }
.btn-ghost {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.easter {
  min-height: 1.6em;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--accent-3);
}

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 9vh, 96px);
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.42);
  background: rgba(124, 92, 255, 0.055);
}
.card-icon { font-size: 1.6rem; }
.card h2 {
  margin: 10px 0 6px;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}
.card p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: #cfcae8;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* 进群 */
.join {
  margin-top: clamp(56px, 9vh, 96px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 255, 0.16), transparent 58%),
    radial-gradient(120% 140% at 100% 100%, rgba(34, 211, 238, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.02);
  text-align: center;
}
.join h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.join > p { margin: 0 auto 22px; max-width: 52ch; color: var(--muted); }
.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.domain-pill:hover { border-color: var(--accent); background: rgba(124, 92, 255, 0.1); }
.domain-pill code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.98rem;
  color: #e7e3ff;
}
.copy-hint { font-size: 0.75rem; color: var(--muted); }

/* 页脚 */
.footer {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 40px) 56px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  text-align: center;
}
.footer p { margin: 4px 0; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
