:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1520;
  --bg-card: rgba(15, 25, 45, 0.6);
  --bg-card-hover: rgba(20, 35, 60, 0.8);
  --neon-cyan: #00f0ff;
  --neon-blue: #0088ff;
  --neon-glow: rgba(0, 240, 255, 0.3);
  --neon-glow-strong: rgba(0, 240, 255, 0.6);
  --text-primary: #e8f4ff;
  --text-secondary: #8fa4bf;
  --text-muted: #5a6b80;
  --border-color: rgba(0, 240, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.4);
  --gradient-1: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  --gradient-2: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 136, 255, 0.05) 100%);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(0, 240, 255, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 136, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0a0e17 0%, #0d131f 100%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--gradient-1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 20px var(--neon-glow);
}

.nav-logo-icon::after {
  content: 'XQ';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #0a0e17;
}

.nav-logo-icon.has-logo::before,
.nav-logo-icon.has-logo::after {
  display: none;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.nav-link .nav-main {
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-link .nav-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 2px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.nav-link:hover .nav-sub,
.nav-link.active .nav-sub {
  opacity: 1;
  transform: translateY(0);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--neon-glow);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 60%;
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  transition: all 0.3s ease;
  box-shadow: 0 0 8px var(--neon-glow);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-main {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.section-title-icon {
  width: 4px;
  height: 28px;
  background: var(--gradient-1);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--neon-glow);
}

.section-title h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.section-title span {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-strong);
  background: var(--bg-card-hover);
}

.glass-card:hover::before {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: #0a0e17;
  box-shadow: 0 4px 20px var(--neon-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--neon-glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px var(--neon-glow);
  transform: translateY(-2px);
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  margin-top: 80px;
  background: rgba(10, 14, 23, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--neon-cyan);
}

.footer-col h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.category-tab:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.category-tab.active {
  background: var(--gradient-1);
  color: #0a0e17;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--neon-glow);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.page-btn.active {
  background: var(--gradient-1);
  color: #0a0e17;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--neon-glow);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 992px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile-btn {
    display: flex;
  }

  .container {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-title h2 {
    font-size: 20px;
  }
}
