/* ==============================
   Modern Game Hub - Main Styles
   ============================== */

:root {
  --primary-color: #ff9a9e;
  --secondary-color: #fad0c4;
  --accent-color: #ff6b6b;
  --dark-color: #6a5acd;
  --light-color: #ffffff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --text-primary: #333333;
  --text-secondary: #666666;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --border-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.9);
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* 霓虹主题变量 */
:root {
  /* 霓虹主题色彩 */
  --neon-bg-dark: #0f0c29;
  --neon-bg-medium: #302b63;
  --neon-bg-light: #24243e;
  --neon-accent-1: #00c9ff;
  --neon-accent-2: #92fe9d;
  --neon-accent-3: #ff00cc;
  --neon-accent-4: #ff0000;
  --neon-text-light: #ffffff;
  --neon-text-medium: #e0e0e0;
  --neon-text-dark: #a0a0a0;
  --neon-glow-1: 0 0 10px #00c9ff, 0 0 20px #00c9ff, 0 0 30px #00c9ff;
  --neon-glow-2: 0 0 10px #92fe9d, 0 0 20px #92fe9d, 0 0 30px #92fe9d;
  --neon-glow-3: 0 0 10px #ff00cc, 0 0 20px #ff00cc, 0 0 30px #ff00cc;
  --neon-glow-4: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
  --neon-gradient-1: linear-gradient(45deg, #00c9ff, #92fe9d);
  --neon-gradient-2: linear-gradient(45deg, #ff00cc, #ff0000);
  --neon-gradient-3: linear-gradient(45deg, #00c9ff, #ff00cc);
  --neon-card-bg: rgba(36, 36, 62, 0.7);
  --neon-card-border: rgba(0, 201, 255, 0.3);
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.4s ease;
  --transition-slow: all 0.6s ease;
  --border-radius-small: 8px;
  --border-radius-medium: 16px;
  --border-radius-large: 24px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--neon-bg-dark), var(--neon-bg-medium), var(--neon-bg-dark));
  background-size: 400% 400%;
  color: var(--neon-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  animation: gradientBG 15s ease infinite;
}
 a{
  list-style: none;
  text-decoration: none;
 }

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

/* ==============================
   Background Animation
   ============================== */

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.background-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neon-bg-dark) 0%, var(--neon-bg-medium) 100%);
}

.floating-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(0, 201, 255, 0.1);
  animation: float 15s infinite linear;
  filter: blur(15px);
  box-shadow: 0 0 40px rgba(0, 201, 255, 0.2);
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-duration: 25s;
  animation-direction: reverse;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 80%;
  animation-duration: 20s;
  background: rgba(255, 0, 204, 0.1);
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 70%;
  animation-duration: 30s;
  background: rgba(146, 254, 157, 0.1);
}

.shape-4 {
  width: 250px;
  height: 250px;
  top: 70%;
  left: 15%;
  animation-duration: 35s;
  background: rgba(255, 0, 0, 0.1);
}

.shape-5 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 40%;
  animation-duration: 28s;
  background: rgba(0, 201, 255, 0.1);
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, 25px) rotate(90deg);
  }
  50% {
    transform: translate(0, 50px) rotate(180deg);
  }
  75% {
    transform: translate(-30px, 25px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* ==============================
   新式顶部导航
   ============================== */

.neon-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 12, 41, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 201, 255, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--neon-text-light);
  transition: var(--transition-medium);
}

.nav-logo .logo-icon {
  margin-right: 10px;
  color: var(--neon-accent-1);
  animation: logoPulse 2s infinite;
  font-size: 1.8rem;
  text-shadow: var(--neon-glow-1);
}

.nav-logo .logo-text span {
  color: var(--neon-accent-3);
}

@keyframes logoPulse {
  0% {
    text-shadow: 0 0 5px rgba(0, 201, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 201, 255, 0.8), 0 0 30px rgba(0, 201, 255, 0.6);
  }
  100% {
    text-shadow: 0 0 5px rgba(0, 201, 255, 0.5);
  }
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--neon-text-medium);
  text-decoration: none;
  border-radius: var(--border-radius-small);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--neon-text-light);
  background: rgba(0, 201, 255, 0.1);
  border-color: var(--neon-card-border);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #000;
  background: var(--neon-gradient-1);
  border-color: transparent;
  box-shadow: var(--neon-glow-1);
}

.nav-link i {
  font-size: 1rem;
  transition: var(--transition-fast);
}

.nav-link:hover i {
  transform: scale(1.2);
}

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

.search-box {
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 10px 15px;
  padding-right: 40px;
  border: 1px solid var(--neon-card-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--neon-text-light);
  font-family: 'Poppins', sans-serif;
  width: 200px;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--neon-accent-1);
  box-shadow: var(--neon-glow-1);
  width: 250px;
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--neon-text-medium);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-btn:hover {
  color: var(--neon-text-light);
  background: rgba(0, 201, 255, 0.1);
}

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--neon-card-border);
  color: var(--neon-text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hamburger:hover {
  background: rgba(0, 201, 255, 0.1);
  transform: rotate(90deg);
}

/* 移动端面板 */
.mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.98), rgba(48, 43, 99, 0.95));
  backdrop-filter: blur(20px);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  box-shadow: 0 0 50px rgba(0, 201, 255, 0.4);
}

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

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 25px;
  border-bottom: 2px solid rgba(0, 201, 255, 0.3);
  background: rgba(15, 12, 41, 0.7);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.panel-logo {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--neon-text-light);
  text-shadow: var(--neon-glow-1);
}

.panel-logo .logo-icon {
  margin-right: 18px;
  color: var(--neon-accent-1);
  text-shadow: var(--neon-glow-1);
  animation: logoPulse 2s infinite;
  font-size: 2.8rem;
}

.panel-logo .logo-text span {
  color: var(--neon-accent-3);
}

.panel-close {
  background: transparent;
  border: 2px solid var(--neon-card-border);
  color: var(--neon-text-light);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(0, 201, 255, 0.2);
}

.panel-close:hover {
  background: var(--neon-gradient-1);
  color: #000;
  border-color: transparent;
  transform: rotate(90deg);
  box-shadow: var(--neon-glow-1);
}

.panel-content {
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
  max-width: none;
  margin: 0;
  width: 100%;
}

.mobile-menu {
  list-style: none;
  margin-bottom: 50px;
  flex-grow: 1;
}

.mobile-item {
  margin-bottom: 25px;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInRight 0.6s forwards;
}

.mobile-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-item:nth-child(2) { animation-delay: 0.25s; }
.mobile-item:nth-child(3) { animation-delay: 0.4s; }
.mobile-item:nth-child(4) { animation-delay: 0.55s; }
.mobile-item:nth-child(5) { animation-delay: 0.7s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px 30px;
  color: var(--neon-text-medium);
  text-decoration: none;
  border-radius: var(--border-radius-medium);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-link:hover {
  color: var(--neon-text-light);
  background: rgba(0, 201, 255, 0.25);
  border-color: rgba(0, 201, 255, 0.5);
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 201, 255, 0.3);
}

.mobile-link.active {
  color: #000;
  background: var(--neon-gradient-1);
  border-color: transparent;
  box-shadow: var(--neon-glow-1);
  transform: translateX(10px);
}

.mobile-search {
  margin-top: 50px;
  animation: fadeIn 0.7s ease-out 0.8s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.mobile-search-form {
  position: relative;
}

.mobile-search-input {
  width: 100%;
  padding: 22px 30px;
  padding-right: 80px;
  border: 2px solid rgba(0, 201, 255, 0.3);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--neon-text-light);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mobile-search-input:focus {
  outline: none;
  border-color: var(--neon-accent-1);
  box-shadow: var(--neon-glow-1);
  background: rgba(255, 255, 255, 0.2);
}

.mobile-search-input::placeholder {
  color: rgba(224, 224, 224, 0.7);
}

.mobile-search-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--neon-gradient-1);
  border: none;
  color: #000;
  cursor: pointer;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 201, 255, 0.4);
}

.mobile-search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--neon-glow-1);
}

/* ==============================
   Main Container
   ============================== */

.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding-top: 80px; /* 为固定导航留出空间 */
}

/* ==============================
   Footer Styles
   ============================== */

.modern-footer {
  background: rgba(36, 36, 62, 0.92);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--neon-card-border);
  margin-top: auto;
  padding: 50px 20px 0 20px;
  color: var(--neon-text-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-text-light);
}

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--neon-accent-1);
  text-shadow: var(--neon-glow-1);
}

.footer-description {
  color: var(--neon-text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--neon-text-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--neon-gradient-1);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--neon-glow-1);
}

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

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

.footer-links a {
  color: var(--neon-text-medium);
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--neon-text-light);
  transform: translateX(5px);
}

.footer-links a::before {
  content: "▶";
  margin-right: 10px;
  font-size: 0.8rem;
  color: var(--neon-accent-1);
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--neon-text-light);
  border-radius: 4px 0 0 4px;
}

.newsletter-form input::placeholder {
  color: var(--neon-text-dark);
}

.newsletter-btn {
  padding: 12px 15px;
  background: var(--neon-gradient-1);
  color: #000;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 600;
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-glow-1);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--neon-card-border);
  color: var(--neon-text-medium);
}

.footer-bottom i {
  color: var(--neon-accent-1);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .nav-menu {
    gap: 5px;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 10px;
    justify-content: center;
  }
  
  .search-input {
    width: 150px;
  }
  
  .search-input:focus {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .search-box {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .main-container {
    padding-top: 70px;
  }
  
  /* 移动端面板优化 */
  .mobile-panel {
    width: 100%;
    height: 100vh;
  }
  
  .panel-content {
    padding: 30px 20px;
    min-height: calc(100vh - 100px);
  }
  
  .mobile-link {
    padding: 20px;
    font-size: 1.3rem;
    gap: 20px;
  }
  
  .mobile-item {
    margin-bottom: 15px;
  }
  
  .panel-header {
    padding: 20px;
  }
  
  .panel-logo {
    font-size: 2rem;
  }
  
  .panel-close {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .mobile-search-input {
    padding: 18px 25px;
    padding-right: 70px;
    font-size: 1.1rem;
  }
  
  .mobile-search-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  /* 移动端footer优化 */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-links a {
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  
  .newsletter-form input,
  .newsletter-btn {
    width: 100%;
    border-radius: 4px;
  }
}
