/* 新主题CSS文件 - Cyberpunk风格 */
:root {
  /* Cyberpunk主题色彩 */
  --primary-color: #ff00ff; /* 亮粉色 */
  --secondary-color: #00ffff; /* 青色 */
  --accent-color: #ffff00; /* 亮黄色 */
  --dark-color: #0f0f1a; /* 深蓝黑色 */
  --darker-color: #000000; /* 纯黑色 */
  --light-color: #ffffff; /* 纯白色 */
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --bg-primary: #121220;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #252540;
  --border-color: rgba(255, 0, 255, 0.3);
  --card-bg: rgba(26, 26, 46, 0.8);
  --neon-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
  --neon-shadow-secondary: 0 0 5px #00ffff, 0 0 15px #00ffff, 0 0 25px #00ffff;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --border-radius: 0; /* 锐角设计 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', 'Roboto', monospace;
  background-color: var(--dark-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 15%),
    radial-gradient(circle at 80% 10%, rgba(0, 255, 255, 0.1) 0%, transparent 15%),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 0, 0.1) 0%, transparent 15%);
  background-attachment: fixed;
}

/* 网格背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255, 0, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  pointer-events: none;
}

/* 动态线条背景 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent, var(--primary-color), transparent),
    linear-gradient(180deg, transparent, var(--secondary-color), transparent);
  background-size: 100% 2px, 2px 100%;
  z-index: -1;
  animation: scanline 6s linear infinite;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes scanline {
  0% {
    background-position: 0 -2px, -2px 0;
  }
  100% {
    background-position: 0 100%, 100% 0;
  }
}

/* 扫描线效果 */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  box-shadow: var(--neon-shadow);
  animation: scan 8s linear infinite;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
}

.scanline::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to top, 
    rgba(255, 0, 255, 0.6) 0%, 
    rgba(255, 0, 255, 0.3) 50%, 
    rgba(255, 0, 255, 0.1) 80%, 
    rgba(255, 0, 255, 0) 100%);
  pointer-events: none;
  opacity: 0.7;
}

@keyframes scan {
  0% {
    transform: translateY(-40px);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* 粒子背景效果 */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: var(--neon-shadow);
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* 文字扫光效果 */
.neon-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.neon-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* 按钮样式 */
.cyber-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--neon-shadow);
  text-decoration: none;
  margin: 5px;
}

.cyber-button:hover {
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 
    0 0 15px #ff00ff, 
    0 0 30px #ff00ff, 
    0 0 45px #ff00ff;
  transform: translateY(-3px);
}

.cyber-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

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

.cyber-button.secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: var(--neon-shadow-secondary);
}

.cyber-button.secondary:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 
    0 0 15px #00ffff, 
    0 0 30px #00ffff, 
    0 0 45px #00ffff;
}

.cyber-button.small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.cyber-button.large {
  padding: 16px 32px;
  font-size: 1.2rem;
}

/* 卡片样式 */
.cyber-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 20px;
}

.cyber-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(255, 0, 255, 0.1) 0%, 
    rgba(0, 255, 255, 0.1) 50%, 
    rgba(255, 255, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

.cyber-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    0 0 10px var(--primary-color),
    0 0 20px var(--primary-color);
}

.cyber-card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.cyber-card-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cyber-card-body {
  padding: 20px;
}

/* 标题样式 */
.cyber-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

.cyber-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.cyber-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.cyber-subtitle::before {
  content: "[ ";
  color: var(--primary-color);
}

.cyber-subtitle::after {
  content: " ]";
  color: var(--primary-color);
}

/* 网格布局 */
.cyber-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.cyber-grid.two-columns {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .cyber-grid.two-columns {
    grid-template-columns: 1fr;
  }
}

/* 导航栏 */
.cyber-nav {
  background: rgba(15, 15, 26, 0.9);
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--neon-shadow);
}

.cyber-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.cyber-logo {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--light-color);
  text-shadow: 0 0 10px var(--primary-color);
}

.cyber-logo span:first-child {
  color: var(--primary-color);
}

.cyber-logo span:last-child {
  color: var(--secondary-color);
}

.cyber-nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.cyber-nav-item {
  position: relative;
}

.cyber-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0;
  position: relative;
  transition: var(--transition);
}

.cyber-nav-link:hover,
.cyber-nav-link.active {
  color: var(--primary-color);
}

.cyber-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.cyber-nav-link:hover::after,
.cyber-nav-link.active::after {
  width: 100%;
  box-shadow: 0 0 10px var(--primary-color);
}

.cyber-nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cyber-search-box {
  position: relative;
}

.cyber-search-input {
  padding: 10px 15px;
  padding-right: 40px;
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
  transition: var(--transition);
}

.cyber-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.cyber-search-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.cyber-search-btn:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* 移动端汉堡菜单 */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 10px var(--primary-color);
}

/* 移动端面板 */
.mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-panel.active {
  opacity: 1;
  visibility: visible;
}

.panel-content-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--bg-secondary);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  border-left: 2px solid var(--primary-color);
  box-shadow: -5px 0 15px rgba(255, 0, 255, 0.3);
}

.mobile-panel.active .panel-content-wrapper {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.panel-close {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.panel-close:hover {
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 10px var(--primary-color);
}

.mobile-menu {
  list-style: none;
  padding: 20px;
}

.mobile-item {
  margin-bottom: 10px;
}

.mobile-link {
  display: block;
  padding: 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

/* 移动端搜索区域样式 */
.mobile-search {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.mobile-search-form {
  position: relative;
  width: 100%;
}

.mobile-search-form .cyber-search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
  transition: var(--transition);
  box-sizing: border-box;
}

.mobile-search-form .cyber-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.mobile-search-form .cyber-search-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  width: auto;
  height: auto;
  padding: 0;
}

.mobile-search-form .cyber-search-btn:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* 主要内容区域 */
.main-container {
  min-height: calc(100vh - 70px - 150px);
  padding: 40px 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 页脚 */
.cyber-footer {
  background: var(--darker-color);
  border-top: 2px solid var(--primary-color);
  padding: 50px 0 20px;
  position: relative;
}

.cyber-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  box-shadow: 0 0 10px var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 30px;
}

.footer-title {
  font-family: 'Orbitron', monospace;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 20px;
}

.footer-links a:hover::before {
  text-shadow: 0 0 5px var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  text-shadow: 0 0 5px var(--primary-color);
}

/* 游戏卡片 */
.cyber-game-card {
  position: relative;
  height: 100%;
  transition: var(--transition);
}

.cyber-card-media {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.cyber-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.cyber-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: var(--transition);
}

.cyber-game-card:hover .cyber-card-overlay {
  opacity: 1;
}

.cyber-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: var(--darker-color);
  padding: 5px 10px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 0 10px var(--primary-color);
}

.cyber-card-badge.new {
  background: var(--accent-color);
  color: var(--darker-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.cyber-card-content {
  padding: 20px;
}

.cyber-card-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--light-color);
  font-size: 1.1rem;
  transition: var(--transition);
}

.cyber-game-card:hover .cyber-card-title {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.cyber-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cyber-card-category {
  background: rgba(0, 255, 255, 0.1);
  color: var(--secondary-color);
  padding: 3px 8px;
  font-size: 0.8rem;
  font-family: 'Orbitron', monospace;
  border: 1px solid var(--secondary-color);
}

.cyber-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cyber-card-rating .fas.fa-star {
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--accent-color);
}

.cyber-card-rating .far.fa-star {
  color: var(--text-secondary);
}

.cyber-card-rating span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cyber-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .cyber-nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cyber-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .cyber-nav-container {
    height: 60px;
  }
  
  .cyber-search-box {
    display: none;
  }
  
  .panel-content-wrapper {
    width: 100%;
  }
  
  .cyber-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .main-container {
    padding: 30px 0;
  }
  
  .cyber-title {
    font-size: 1.5rem;
  }
  
  .cyber-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cyber-nav-container {
    padding: 0 15px;
  }
  
  .cyber-logo {
    font-size: 1.4rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .cyber-card-content {
    padding: 15px;
  }
  
  .cyber-card-title {
    font-size: 1rem;
  }
  
  .cyber-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links a {
    padding-left: 0;
    display: block;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
}