/* ===== 公共基础样式 ===== */
:root {
  --bg: #f4f6fb;
  --bg-soft: #eef2f8;
  --card: rgba(255, 255, 255, 0.56);
  --card-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 80px rgba(28, 39, 66, 0.14);
  --text: #0f172a;
  --text-soft: rgba(15, 23, 42, 0.68);
  --line: rgba(15, 23, 42, 0.08);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --button-bg: rgba(255, 255, 255, 0.70);
  --button-border: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
}

body {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(147, 197, 253, 0.55), transparent 28%),
    radial-gradient(circle at 80% 22%, rgba(196, 181, 253, 0.42), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(165, 243, 252, 0.36), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
}

/* ===== 极光背景 ===== */
.aurora,
.aurora::before,
.aurora::after {
  position: absolute;
  inset: auto;
  content: "";
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
}

.aurora {
  width: 340px;
  height: 340px;
  left: 10%;
  top: 12%;
  background: rgba(147, 197, 253, 0.34);
  animation: drift 14s ease-in-out infinite;
}

.aurora::before {
  width: 280px;
  height: 280px;
  left: 62vw;
  top: 8vh;
  background: rgba(196, 181, 253, 0.28);
  animation: drift 18s ease-in-out infinite reverse;
}

.aurora::after {
  width: 320px;
  height: 320px;
  left: 32vw;
  top: 64vh;
  background: rgba(165, 243, 252, 0.22);
  animation: drift 20s ease-in-out infinite;
}

/* ===== 噪点纹理 ===== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: radial-gradient(rgba(15,23,42,.8) .55px, transparent .55px);
  background-size: 14px 14px;
  mix-blend-mode: soft-light;
}

/* ===== 卡片外壳 ===== */
.shell {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  padding: 44px 36px;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  animation: cardIn 1.2s cubic-bezier(.2,.9,.2,1) both;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.08));
  pointer-events: none;
}

/* ===== 操作按钮 ===== */
.actions {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 1s .56s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 156px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: #0f172a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.86);
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.button:active {
  transform: translateY(0);
}

.button.secondary {
  background: rgba(255,255,255,.32);
}

.button .arrow {
  font-size: 16px;
  opacity: .72;
  transition: transform .28s ease;
}

.button:hover .arrow {
  transform: translateX(4px);
}

/* ===== 自定义光标 ===== */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255,255,255,.32);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transition: width .18s ease, height .18s ease, background .18s ease, border-color .18s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 0 16px rgba(15,23,42,.2);
}

/* ===== 点击特效 ===== */
.ring {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(37, 99, 235, 0.45);
  transform: translate(-50%, -50%) scale(0.2);
  animation: clickBurst .78s cubic-bezier(.2,.8,.2,1) forwards;
  pointer-events: none;
  z-index: 9998;
}

.spark {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9997;
  animation: sparkFly .9s ease-out forwards;
  box-shadow: 0 0 20px currentColor;
  opacity: .8;
}

/* ===== 动画关键帧 ===== */
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -16px, 0) scale(1.08); }
}

@keyframes cardIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(.97);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes clickBurst {
  0%   { opacity: .7; transform: translate(-50%, -50%) scale(.25); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(6.8); }
}

@keyframes sparkFly {
  0% {
    opacity: .85;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .aurora::before, .aurora::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 34px 22px;
    border-radius: 26px;
  }
}

/* ===== 资源站扩展样式 ===== */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.status-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, background 0.3s ease;
  animation: fadeUp 1s .4s both;
}

.status-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.65);
}

.status-card:nth-child(2) { animation-delay: .5s; }
.status-card:nth-child(3) { animation-delay: .6s; }

.node-name {
  font-weight: 650;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 2px;
}

.node-region {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.code-block {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 16px;
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #0f172a;
  text-align: left;
  margin-top: 24px;
  position: relative;
  z-index: 1;
  animation: fadeUp 1s .5s both;
  overflow-x: auto;
}