:root {
  color-scheme: dark;
  --bg-0: #04060d;
  --bg-1: #0a1426;
  --accent: #38bdf8;
  --accent-2: #2dd4bf;
  --accent-3: #a855f7;
  --text: #e2e8f0;
  --text-dim: rgba(226, 232, 240, 0.72);
  --text-muted: rgba(226, 232, 240, 0.42);
  --grid-line: rgba(56, 189, 248, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(900px 600px at 85% 88%, rgba(168, 85, 247, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  overflow-x: hidden;
}

/* 网格底纹 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.95), transparent 75%);
          mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.95), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
}

.hero {
  text-align: center;
  max-width: 880px;
  width: 100%;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 999px;
  background: rgba(13, 31, 45, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.85);
  letter-spacing: 0.12em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.title {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  margin: 1.25rem 0 0.6rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.05;
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 45%, #a855f7 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
}

.tagline {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.subtagline {
  min-height: 1.6em;
  font-size: 0.95rem;
  margin: 0 auto 2.4rem;
  color: var(--text-muted);
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular", monospace;
  letter-spacing: 0.02em;
}

.subtagline.typing::after {
  content: '▍';
  margin-left: 2px;
  color: var(--accent-2);
  animation: blink 1s step-end infinite;
}

.subtagline.typed::after {
  content: '▍';
  margin-left: 2px;
  color: var(--accent-2);
  animation: fade-cursor 0.6s ease-out forwards;
}

@keyframes fade-cursor {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  padding: 1.1rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.25));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.12);
}

.metric-value {
  display: block;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.metric-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

@media (max-width: 540px) {
  .metrics { grid-template-columns: 1fr; }
  main { padding: 3rem 1.25rem; }
}

.beian {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.beian a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(226, 232, 240, 0.25);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.beian a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  .subtagline.typing::after,
  .subtagline.typed::after { animation: none; }
  .metric { transition: none; }
}
