/* 闪狐云 (ShanhuYun) Dark Glowing Modern Theme */
:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #131927;
  --bg-card: #182032;
  --bg-card-hover: #1e283e;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

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

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

.nav-links a:hover {
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  padding: 180px 1.5rem 100px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 99px;
  color: #c084fc;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.2); }
  100% { box-shadow: 0 0 18px rgba(139, 92, 246, 0.5); }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  background: rgba(19, 25, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #60a5fa;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #60a5fa;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

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

/* Pricing Section - Styled to match Image 2 exactly */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border: 2px solid #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
  background: #141829;
}

.pricing-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 28px;
  transform: rotate(45deg) translate(26px, -12px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pricing-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price .currency {
  font-size: 1.5rem;
}

.pricing-price .period {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 400;
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.pricing-features li svg {
  fill: #38bdf8;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.pricing-btn-primary {
  background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.pricing-btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.pricing-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pricing-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Node Status Dashboard */
.node-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.node-table {
  width: 100%;
  border-collapse: collapse;
}

.node-table th, .node-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.node-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.node-status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}

.ping-badge {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Article / KB Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.article-tag {
  color: #a855f7;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.article-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: #fff;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.article-readmore {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

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

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* Footer */
footer {
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

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

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

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim);
}

/* Floating Action CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
}

.floating-btn {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  padding: 12px 22px;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease;
}

.floating-btn:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .hero { padding: 130px 1rem 60px; }
  .section { padding: 60px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Article Page Layout Styles */
.article-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 1.5rem 80px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #38bdf8;
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.article-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.article-content {
  color: #e5e7eb;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 1rem;
  color: #38bdf8;
  border-left: 4px solid #8b5cf6;
  padding-left: 12px;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.8rem;
  color: #fff;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.8rem;
}

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

.article-content blockquote {
  background: rgba(139, 92, 246, 0.1);
  border-left: 4px solid #8b5cf6;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #d1d5db;
}

.cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-box h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.keywords-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2rem 0;
  padding: 1.2rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.keywords-tag-cloud span {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
}
