:root {
  --neon-pink: #ff2a6d;
  --neon-blue: #05d9e8;
  --neon-purple: #d300c5;
  --neon-green: #00ff9f;
  --dark-bg: #0d0221;
  --darker-bg: #070215;
  --cyber-yellow: #f7f500;
  --cyber-orange: #ff7700;
}

body {
  background-color: var(--dark-bg);
  color: #ffffff;
  font-family: 'Rajdhani', 'Microsoft YaHei', sans-serif;
  background-image: 
    linear-gradient(0deg, rgba(13, 2, 33, 0.9), rgba(7, 2, 21, 0.85)),
    url('../images/cyber-grid.png');
  background-attachment: fixed;
}

/* 霓虹文字效果 */
.neon-text {
  color: #fff;
  text-shadow: 
    0 0 5px var(--neon-blue),
    0 0 10px var(--neon-blue),
    0 0 20px var(--neon-blue),
    0 0 40px var(--neon-blue);
  letter-spacing: 2px;
}

/* 故障文字效果 */
.glitch-text {
  position: relative;
  color: #fff;
  letter-spacing: 2px;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0% { text-shadow: 0.05em 0 0 var(--neon-pink), -0.05em -0.025em 0 var(--neon-blue); }
  14% { text-shadow: 0.05em 0 0 var(--neon-pink), -0.05em -0.025em 0 var(--neon-blue); }
  15% { text-shadow: -0.05em -0.025em 0 var(--neon-pink), 0.025em 0.025em 0 var(--neon-blue); }
  49% { text-shadow: -0.05em -0.025em 0 var(--neon-pink), 0.025em 0.025em 0 var(--neon-blue); }
  50% { text-shadow: 0.025em 0.05em 0 var(--neon-pink), 0.05em 0 0 var(--neon-blue); }
  99% { text-shadow: 0.025em 0.05em 0 var(--neon-pink), 0.05em 0 0 var(--neon-blue); }
  100% { text-shadow: 0.05em 0 0 var(--neon-pink), -0.05em -0.025em 0 var(--neon-blue); }
}

/* 赛博朋克按钮 */
.cyber-button {
  background: var(--darker-bg);
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  padding: 0.5em 1.5em;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
  cursor: pointer;
}

.cyber-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(5, 217, 232, 0.2),
    transparent
  );
  transition: all 0.6s;
}

.cyber-button:hover {
  box-shadow: 0 0 10px var(--neon-blue);
}

.cyber-button:hover:before {
  left: 100%;
}

/* 赛博朋克标题 */
.cyber-heading {
  position: relative;
  color: #fff;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.cyber-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
}

/* 游戏卡片 */
.game-card {
  background: rgba(7, 2, 21, 0.7);
  border: 1px solid rgba(5, 217, 232, 0.3);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.game-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 42, 109, 0.1) 0%,
    rgba(5, 217, 232, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 0 15px rgba(5, 217, 232, 0.3),
    0 0 30px rgba(5, 217, 232, 0.1);
}

.game-card:hover:before {
  opacity: 1;
}

/* 导航菜单 */
nav ul li a {
  color: #fff;
  position: relative;
  padding: 0.5em 1em;
  transition: all 0.3s;
}

nav ul li a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-blue);
  transition: width 0.3s;
}

nav ul li a:hover {
  color: var(--neon-blue);
}

nav ul li a:hover:before {
  width: 100%;
}

nav ul li a.active {
  color: var(--neon-blue);
}

nav ul li a.active:before {
  width: 100%;
}

/* 游戏框架容器 */
.game-frame-container {
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 15px rgba(5, 217, 232, 0.5);
  position: relative;
  overflow: hidden;
}

.game-frame-container:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-blue));
  background-size: 400%;
  z-index: -1;
  animation: cyber-border 10s linear infinite;
}

@keyframes cyber-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 分类卡片 */
.category-card {
  background: rgba(7, 2, 21, 0.7);
  border: 1px solid rgba(5, 217, 232, 0.3);
  border-radius: 5px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(5, 217, 232, 0.3);
  background: linear-gradient(
    135deg,
    rgba(7, 2, 21, 0.9),
    rgba(13, 2, 33, 0.9)
  );
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--neon-blue);
} 