:root {
  --bg-primary: #070c09;
  --bg-secondary: #0d1611;
  --bg-card: rgba(15, 26, 20, 0.75);
  --bg-card-hover: rgba(22, 38, 29, 0.9);
  
  --border-color: rgba(16, 185, 129, 0.2);
  --border-glow: rgba(16, 185, 129, 0.5);
  
  --accent-green: #10b981;
  --accent-neon: #00ff87;
  --accent-cyan: #00f0ff;
  --accent-dark-green: #064e3b;
  
  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Grid Overlay & Vignette */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to right, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 40%, rgba(7, 12, 9, 0.85) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-dark-green);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* Layout Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 12, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

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

.brand-title {
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--accent-neon);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-neon);
  text-shadow: 0 0 8px rgba(0, 255, 135, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, #00ff87 0%, #10b981 50%, #00e5ff 100%);
  background-size: 200% 200%;
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid var(--accent-neon);
  box-shadow: 0 0 25px rgba(0, 255, 135, 0.6), 0 0 10px rgba(0, 240, 255, 0.4);
  animation: ctaGlow 2.5s infinite alternate, ctaGradient 4s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 40px rgba(0, 255, 135, 0.9), 0 0 20px rgba(0, 240, 255, 0.8);
  background-position: right center;
}

.btn-hero-cta {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

@keyframes ctaGlow {
  0% {
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.5), 0 0 5px rgba(0, 240, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 35px rgba(0, 255, 135, 0.95), 0 0 20px rgba(0, 240, 255, 0.7);
  }
}

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

.btn-secondary {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-neon);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-neon);
  color: #fff;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  color: var(--accent-neon);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

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

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

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

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(8px);
  text-align: center;
  transition: var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--accent-neon);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 255, 135, 0.15);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-neon);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Section Wrapper */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: rgba(13, 22, 17, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* 核心优势 Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--accent-neon);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
  transform: translateY(-3px);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.tech-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  margin-top: 1.2rem;
}

/* 节点延迟与状态 */
.nodes-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-neon);
}

.nodes-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

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

.nodes-table th, .nodes-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.nodes-table th {
  background: rgba(7, 12, 9, 0.8);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nodes-table tr:last-child td {
  border-bottom: none;
}

.nodes-table tr:hover td {
  background: rgba(16, 185, 129, 0.05);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.node-flag {
  font-size: 1.3rem;
}

.ping-tag {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.ping-fast {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-neon);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ping-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.protocol-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-neon);
}

/* 套餐价格 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-neon);
  box-shadow: 0 10px 30px rgba(0, 255, 135, 0.15);
}

.price-card.popular {
  border: 2px solid var(--accent-neon);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 26, 20, 0.85) 100%);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #00ff87);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

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

.price-amount {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-neon);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.price-amount span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.price-features li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-features li i {
  color: var(--accent-neon);
  font-size: 0.85rem;
}

/* 用户评价 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.8rem;
  transition: var(--transition-fast);
}

.review-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-3px);
}

.stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.review-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark-green), var(--accent-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-neon);
  border: 1px solid var(--accent-neon);
}

.reviewer-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.reviewer-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* FAQ 板块 */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

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

.faq-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--accent-neon);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 1.8rem 1.4rem;
}

/* 知识库与教程板块 */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tutorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.tutorial-card:hover {
  border-color: var(--accent-neon);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 255, 135, 0.12);
}

.tutorial-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.tutorial-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.tutorial-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.tutorial-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Modal 弹窗 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 7, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

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

.modal-content {
  background: #0d1712;
  border: 1px solid var(--accent-neon);
  box-shadow: 0 0 40px rgba(0, 255, 135, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}

.modal-body h2 {
  font-size: 1.8rem;
  color: var(--accent-neon);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.modal-meta {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.article-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.article-text h3 {
  color: var(--text-main);
  margin: 1.8rem 0 0.8rem;
  font-size: 1.25rem;
}

.article-text ul {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.article-text li {
  margin-bottom: 0.5rem;
}

.article-cta-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed var(--accent-neon);
  border-radius: 10px;
  text-align: center;
}

/* Footer */
.footer {
  background: #040806;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.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: 320px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

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

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-neon);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 2; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .tutorials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
