/* Gamer / Low-Latency Hub Theme - tap机场 */
:root {
  --bg-primary: #07080d;
  --bg-secondary: #0d101d;
  --bg-card: rgba(16, 20, 36, 0.75);
  --bg-card-hover: rgba(24, 30, 54, 0.85);
  --neon-green: #00ff66;
  --neon-green-glow: rgba(0, 255, 102, 0.35);
  --cyber-red: #ff0055;
  --cyber-red-glow: rgba(255, 0, 85, 0.4);
  --electric-cyan: #00e5ff;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(0, 255, 102, 0.18);
  --border-red: rgba(255, 0, 85, 0.25);
  --font-family: 'Rajdhani', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --clip-cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --clip-cut-lg: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Background Cyber Grid & Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 255, 102, 0.15);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--neon-green), var(--electric-cyan));
  color: #000;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green-glow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--neon-green), #00b348);
  color: #05080c;
  font-weight: 800;
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  clip-path: var(--clip-cut);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.6);
  background: linear-gradient(135deg, #26ff7d, var(--neon-green));
}

.btn-danger {
  background: linear-gradient(135deg, var(--cyber-red), #cc0044);
  color: #fff;
  box-shadow: 0 0 15px var(--cyber-red-glow);
}

.btn-danger:hover {
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.7);
  background: linear-gradient(135deg, #ff3377, var(--cyber-red));
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  color: var(--neon-green);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  clip-path: var(--clip-cut);
  margin-bottom: 1.5rem;
}

.ping-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 255, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.text-gradient-green {
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyber-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.stat-card {
  border-left: 2px solid var(--neon-green);
  padding-left: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Radar & Live Ping Monitor Display */
.radar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  clip-path: var(--clip-cut-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.radar-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radar-screen {
  width: 100%;
  height: 240px;
  background: radial-gradient(circle at center, rgba(0, 255, 102, 0.08) 0%, rgba(7, 8, 13, 0.95) 70%);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.ping-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 102, 0.1);
  clip-path: var(--clip-cut);
}

.ping-item .game-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ping-item .ping-val {
  font-family: monospace;
  font-weight: 800;
  color: var(--neon-green);
}

.ping-item .ping-val.medium {
  color: var(--electric-cyan);
}

/* Section Common */
.section {
  padding: 6rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--neon-green);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 102, 0.15);
  clip-path: var(--clip-cut-lg);
  padding: 2.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-green), transparent);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.15);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--neon-green);
  clip-path: var(--clip-cut);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--neon-green);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Game Latency Comparison Table Section */
.latency-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  clip-path: var(--clip-cut-lg);
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow-x: auto;
}

.latency-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.latency-table th, .latency-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.latency-table th {
  background: rgba(0, 255, 102, 0.06);
  color: var(--neon-green);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.latency-table tr:hover td {
  background: rgba(0, 255, 102, 0.03);
}

.badge-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  clip-path: var(--clip-cut);
}

.badge-asia { background: rgba(0, 255, 102, 0.2); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-us { background: rgba(0, 229, 255, 0.2); color: var(--electric-cyan); border: 1px solid var(--electric-cyan); }
.badge-nat { background: rgba(255, 0, 85, 0.2); color: var(--cyber-red); border: 1px solid var(--cyber-red); }

/* Node Status Grid */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: var(--clip-cut);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
}

.node-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-3px);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flag-icon {
  font-size: 1.8rem;
}

.node-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.node-protocol {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.node-ping {
  text-align: right;
}

.node-ms {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--neon-green);
  font-family: monospace;
}

.node-status {
  font-size: 0.75rem;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: flex-end;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: var(--clip-cut-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--neon-green);
  background: rgba(16, 26, 42, 0.9);
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.2);
}

.pricing-card.featured::before {
  content: 'BEST FOR GAMERS';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--neon-green);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.3rem 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%);
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-features li::before {
  content: '✓';
  color: var(--neon-green);
  font-weight: 900;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: var(--clip-cut);
  padding: 2rem;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--neon-green), var(--cyber-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
}

.user-name { font-weight: 800; font-size: 1rem; }
.user-tag { font-size: 0.8rem; color: var(--neon-green); }

/* FAQ Accordion */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: var(--clip-cut);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.3rem 1.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  color: var(--neon-green);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--neon-green);
}

/* Knowledge Base / SEO Articles Grid */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.knowledge-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 102, 0.15);
  clip-path: var(--clip-cut-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  cursor: pointer;
}

.knowledge-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.2);
}

.knowledge-tag {
  color: var(--cyber-red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.knowledge-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.knowledge-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.knowledge-read-btn {
  color: var(--neon-green);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Fullscreen Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--neon-green);
  clip-path: var(--clip-cut-lg);
  max-width: 850px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 255, 102, 0.3);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 0, 85, 0.2);
  border: 1px solid var(--cyber-red);
  color: var(--cyber-red);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  clip-path: var(--clip-cut);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--cyber-red);
  color: #fff;
}

.modal-body h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.modal-body h3 {
  font-size: 1.3rem;
  color: var(--neon-green);
  margin: 1.8rem 0 0.8rem 0;
}

.modal-body p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.modal-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.modal-body li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem 0;
  background: #040508;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--neon-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .modal-content { padding: 1.5rem; }
}
