:root {
  --bg: #0a0a12;
  --ink: #eef0ff;
  --muted: #9aa0c0;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #7c5cff;
  --accent-2: #23d5ab;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Apple Color Emoji",
    "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光斑 */
.glow {
  position: fixed;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.glow-a { background: var(--accent); top: -22vmax; left: -18vmax; animation: drift 18s ease-in-out infinite alternate; }
.glow-b { background: var(--accent-2); bottom: -26vmax; right: -20vmax; animation: drift 22s ease-in-out infinite alternate-reverse; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.15); }
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(18, 18, 30, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 1rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.7;
}

.lead strong { color: var(--ink); font-weight: 600; }

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.9rem 0 0;
}

button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: #0a0a12;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 10px 30px -12px var(--accent);
}

button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--accent); }
button:active { transform: translateY(0); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}
.status.ok { color: var(--accent-2); }
.status.err { color: #ff7a92; }

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.meta div { min-width: 0; }

.meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.meta dd {
  margin: 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  padding: 0.15em 0.42em;
  border-radius: 0.35em;
  background: rgba(255, 255, 255, 0.07);
}

.foot {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
  button { transition: none; }
  button:hover { transform: none; }
}

/* High-contrast / forced-colors modes drop background gradients, which would
   leave background-clip:text text invisible. Fall back to system text colour. */
@media (forced-colors: active) {
  .grad {
    color: CanvasText;
    background: none;
  }
}
