:root {
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --accent: #00e5ff;
  --accent-2: #7c5cff;
  --text: #e6edf3;
  --muted: #8b97a8;
  --border: rgba(0, 229, 255, 0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}
.mono { font-family: 'JetBrains Mono', monospace; }
/* 网格背景 */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* 渐变文字 */
.gradient-text {
  background: linear-gradient(120deg, #00e5ff 0%, #7c5cff 60%, #ff5cc8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 光晕 */
.glow {
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.25), inset 0 0 20px rgba(0, 229, 255, 0.05);
}
/* 卡片悬浮 */
.card {
  background: rgba(15, 20, 36, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.15);
}
/* 技能标签 */
.chip {
  border: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.05);
  transition: all .3s ease;
}
.chip:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.12);
  transform: translateY(-2px);
}
/* 黑胶唱片 */
.vinyl {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1c1c1c 0%, #0c0c0c 70%, #050505 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 25px 70px rgba(0,0,0,0.7),
    0 0 50px rgba(0,229,255,0.1),
    inset 0 0 40px rgba(0,0,0,0.85);
  animation: spin 6s linear infinite;
}
.turntable.stopped .vinyl {
  animation-play-state: paused;
}
/* 唱片纹路 */
.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 2px,
    rgba(255,255,255,0.035) 2px,
    rgba(255,255,255,0.035) 3px
  );
  pointer-events: none;
}
/* 唱片光泽反射 */
.vinyl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.02) 25%,
    transparent 45%,
    transparent 60%,
    rgba(255,255,255,0.05) 100%
  );
  pointer-events: none;
}
/* 唱片标签（专辑封面） */
.vinyl-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.6),
    0 0 0 4px rgba(255,255,255,0.08),
    inset 0 0 12px rgba(0,0,0,0.4);
}
/* 唱片中心孔 */
.vinyl-hole {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #050505;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,255,255,0.1);
  z-index: 5;
}
/* 唱片臂（唱针） */
.tonearm {
  position: absolute;
  top: -4%;
  right: 2%;
  width: 52%;
  height: 6px;
  transform-origin: top right;
  transform: rotate(-30deg);
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  z-index: 10;
  pointer-events: none;
}
.turntable.stopped .tonearm {
  transform: rotate(8deg);
}
.tonearm-bar {
  width: 100%; height: 4px;
  background: linear-gradient(90deg, #555 0%, #999 50%, #bbb 100%);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tonearm-base {
  position: absolute;
  top: -10px; right: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ccc, #666);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.3);
}
.tonearm-head {
  position: absolute;
  bottom: -8px; left: -2px;
  width: 20px; height: 16px;
  background: linear-gradient(180deg, #444, #222);
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
}
.tonearm-head::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: #888;
  border-radius: 0 0 1px 1px;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* 浮动光斑 */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}
/* 闪烁光标 */
.cursor::after {
  content: '_';
  animation: blink 1s steps(1) infinite;
  color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }
/* 入场动画：仅由HTML内联样式控制reveal隐藏逻辑 */
.reveal.in { opacity: 1; transform: translateY(0); }
/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.3); border-radius: 4px; }
/* 导航链接下划线 */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }
/* 终端窗口 */
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
/* 移动端菜单 */
.mobile-menu {
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }
/* 移动端唱针缩小 */
@media (max-width: 640px) {
  .tonearm-head { width: 16px; height: 13px; }
  .tonearm-base { width: 18px; height: 18px; }
  .vinyl-hole { width: 10px; height: 10px; }
}
