@font-face {
  font-family: 'Stellar';
  src: url('../font/font.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --accent: #8ab4ff;
  --accent-2: #c89bff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #05060f;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
body:not(.js-ready) .overlay,
body:not(.js-ready) .toolbar,
body:not(.js-ready) .hint,
body:not(.js-ready) .fps,
body:not(.js-ready) .cursor { display: none; }
/* 手机/触屏设备无鼠标，隐藏自定义光标并恢复系统指针 */
.touch .cursor { display: none !important; }
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body { cursor: auto; }
}
.noscript-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: #05060f; color: #cdd6ff;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 18px; padding: 24px; line-height: 1.8;
}
body {
  font-family: 'Stellar', "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #eef2ff;
  cursor: none;
}
#sky {
  position: fixed;
  inset: 0;
  display: block;
  background:
    radial-gradient(1200px 800px at 75% 15%, rgba(70,90,200,0.18), transparent 60%),
    radial-gradient(1000px 700px at 20% 80%, rgba(150,80,200,0.16), transparent 60%),
    radial-gradient(900px 900px at 50% 50%, rgba(20,30,70,0.25), transparent 70%),
    linear-gradient(180deg, #03040c 0%, #070a1c 45%, #0a0e25 100%);
}

.overlay {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none; text-align: center; z-index: 2;
  transition: opacity 1s ease;
}
.title {
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 200; letter-spacing: 0.5em; text-indent: 0.5em;
  background: linear-gradient(120deg, #ffffff 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(138,180,255,0.25);
  opacity: 0; transform: translateY(24px);
  animation: rise 2.2s cubic-bezier(.2,.7,.2,1) forwards;
}
.subtitle {
  margin-top: 1.6rem;
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  font-weight: 300; letter-spacing: 0.45em; text-indent: 0.45em;
  color: rgba(220,228,255,0.55);
  opacity: 0; transform: translateY(18px);
  animation: rise 2.2s cubic-bezier(.2,.7,.2,1) 0.5s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.cursor {
  position: fixed; top: 0; left: 0;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 1px solid rgba(160,190,255,0.6); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transition: transform .12s ease, opacity .3s ease;
  mix-blend-mode: screen;
}
.cursor::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: rgba(160,190,255,0.9);
  box-shadow: 0 0 12px rgba(160,190,255,0.9);
}
.cursor.hover { transform: scale(1.8); border-color: rgba(200,160,255,0.9); }
.cursor.grab { transform: scale(1.3); border-color: rgba(200,160,255,0.8); }

.hint {
  position: fixed; bottom: 26px; left: 0; right: 0; text-align: center;
  font-size: 0.72rem; letter-spacing: 0.3em;
  color: rgba(200,210,255,0.35); z-index: 3; pointer-events: none;
  animation: pulse 4s ease-in-out infinite; transition: opacity 1s ease;
}
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:.7} }

.toolbar {
  position: fixed; top: 20px; right: 22px;
  display: flex; gap: 12px; z-index: 4; transition: opacity .6s ease;
}
.toolbar button {
  pointer-events: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(160,190,255,0.25);
  color: #dde6ff; font-size: 0.72rem; letter-spacing: 0.15em;
  padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(8px); cursor: pointer; transition: all .25s ease;
}
.toolbar button:hover {
  background: rgba(138,180,255,0.18); border-color: rgba(160,190,255,0.6); color: #fff;
}
.gear-btn { font-size: 1.15rem; line-height: 1; }

.settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  z-index: 30; padding: 84px 26px 30px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  background: rgba(8,10,22,0.7);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid rgba(160,190,255,0.18);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.settings-panel.open { transform: translateX(0); }
.settings-title {
  font-size: 1.3rem; font-weight: 300; letter-spacing: .3em;
  color: #eef2ff; margin-bottom: 14px; text-align: center;
}
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; border-bottom: 1px solid rgba(160,190,255,0.1);
  font-size: .92rem; color: rgba(220,228,255,0.85);
}
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: rgba(160,190,255,0.18); transition: .3s;
}
.slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #cdd6ff; border-radius: 50%; transition: .3s;
}
.switch input:checked + .slider { background: rgba(138,180,255,0.7); }
.switch input:checked + .slider::before { transform: translateX(20px); background: #fff; }
.set-btn {
  pointer-events: auto; flex: none;
  background: rgba(138,180,255,0.16); border: 1px solid rgba(160,190,255,0.4);
  color: #eaf; padding: 7px 18px; border-radius: 999px; cursor: pointer;
  font-size: .82rem; letter-spacing: .08em; transition: .25s;
}
.set-btn:hover { background: rgba(138,180,255,0.32); color: #fff; }
.settings-close {
  margin-top: auto; padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(160,190,255,0.3); background: rgba(255,255,255,0.05);
  color: #dde6ff; letter-spacing: .2em; font-size: .9rem; transition: .25s;
}
.settings-close:hover { background: rgba(138,180,255,0.18); color: #fff; }
.fps {
  position: fixed; top: 20px; left: 22px; z-index: 4;
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: rgba(160,190,255,0.55); font-variant-numeric: tabular-nums;
  transition: opacity .6s ease;
}

body.immersive .overlay,
body.immersive .toolbar,
body.immersive .hint,
body.immersive .fps { opacity: 0; pointer-events: none; }



.info-node {
  position: fixed; top: 0; left: 0; width: 340px;
  z-index: 8; pointer-events: none; opacity: 0;
  transform-origin: center center; will-change: transform, opacity;
}
.info-node a, .info-node button { pointer-events: auto; }
.info-core {
  position: absolute; left: 50%; top: 50%; width: 380px; height: 380px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  filter: blur(10px); z-index: -1;
}
.gh-core { background: radial-gradient(circle, rgba(120,170,255,0.22), transparent 62%); }
.info-card {
  background: rgba(8,10,22,0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(160,190,255,0.14);
  border-radius: 14px; padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  max-height: 56vh; overflow-y: auto; overscroll-behavior: contain;
  color: #e6ecff;
}
.info-card .gh-inner { max-width: none; margin: 0; padding: 0; }
.info-card .gh-repos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.info-card .gh-loading {
  position: relative; inset: auto; min-height: 130px;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.gh-profile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.gh-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid rgba(160,190,255,0.35);
  background: rgba(255,255,255,0.05);
}
.gh-meta { flex: 1; min-width: 200px; }
.gh-name { font-size: 1.35rem; font-weight: 600;
  background: linear-gradient(120deg, #fff, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.gh-login { margin-top: 2px; font-size: 0.9rem; color: rgba(200,210,255,0.6); }
.gh-bio { margin-top: 8px; font-size: 0.9rem; line-height: 1.6; color: rgba(220,228,255,0.82); }
.gh-stats { margin-top: 8px; font-size: 0.8rem; color: rgba(200,210,255,0.55); }
.gh-stats b { color: #cfe; font-weight: 600; }
.gh-link {
  display: inline-block; margin-top: 16px; padding: 9px 18px; border-radius: 999px;
  background: rgba(138,180,255,0.16); border: 1px solid rgba(160,190,255,0.5);
  color: #eaf; text-decoration: none; font-size: 0.85rem; letter-spacing: 0.08em;
  transition: all .25s ease;
}
.gh-link:hover { background: rgba(138,180,255,0.32); color: #fff; }
.gh-repos-title { margin: 22px 0 10px; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.12em; color: rgba(220,228,255,0.7); }
.gh-repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; }
.gh-card {
  border-top: 1px solid rgba(160,190,255,0.12); padding: 12px 2px;
  display: flex; flex-direction: column; gap: 4px;
}
.gh-card a { color: #cfe; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.gh-card a:hover { color: #fff; }
.gh-card .desc { font-size: 0.78rem; color: rgba(220,228,255,0.55); line-height: 1.5; flex: 1; }
.gh-card .foot { font-size: 0.72rem; color: rgba(200,210,255,0.5); display: flex; gap: 12px; flex-wrap: wrap; }
.gh-card .lang::before { content: "●"; margin-right: 4px; color: var(--accent-2); }
.gh-status { margin-top: 16px; color: rgba(200,210,255,0.5); font-size: 0.9rem; }
.gh-status.err { color: #ff9a9a; }
.gh-loading {
  position: fixed; inset: 0; z-index: 25;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(6,8,18,0.55);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  color: rgba(220,228,255,0.85); font-size: 0.95rem; letter-spacing: 0.25em;
}
.gh-loading.hidden { display: none; }
.gh-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid rgba(160,190,255,0.18);
  border-top-color: var(--accent); border-right-color: var(--accent-2);
  box-shadow: 0 0 26px rgba(138,180,255,0.4);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


