/* ==========================================================================
   雪橇云 (XueQiaoYun.cfd) - Global stylesheet
   ========================================================================== */

:root {
  --bg-dark: #080d1a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  
  --primary-cyan: #38bdf8;
  --primary-blue: #60a5fa;
  --primary-purple: #a855f7;
  --accent-glow: #818cf8;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  --gradient-main: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #080d1a 70%);
  min-height: 100vh;
}

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

.site-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* Header & Navbar */
header {
  position: relative;
  top: 0;
  z-index: 100;
  margin-top: 20px;
  margin-bottom: 40px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.85);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

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

.nav-links a:hover {
  color: var(--primary-cyan);
}

/* CTA Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-main);
  color: #000;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
  opacity: 0.95;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 20px 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sub);
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Metrics Dashboard Banner */
.metrics-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
  margin-top: 20px;
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: monospace;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-top: 4px;
}

/* Section Common Styling */
.section-container {
  margin-bottom: 100px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-sub);
  font-size: 1rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-card.span-2 {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.bento-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

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

/* Node Monitor */
.node-monitor {
  padding: 36px;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.status-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.node-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.node-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.node-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.node-type {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.ping-val {
  font-weight: 800;
  font-family: monospace;
  color: #4ade80;
  font-size: 1rem;
}

.node-load {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border-color: var(--primary-cyan);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: #000;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: #fff;
}

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

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: var(--primary-cyan);
  font-weight: 800;
}

/* Articles Matrix Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: var(--primary-cyan);
}

.article-excerpt {
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
}

.article-meta a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
}

/* Testimonials / User Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  padding: 28px;
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  font-size: 1.1rem;
}

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

.author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  overflow: hidden;
}

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

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary-cyan);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 28px 24px;
  transition: max-height 0.5s ease-in-out;
}

/* Detailed Article Page Layout */
.article-detail-container {
  max-width: 860px;
  margin: 20px auto 80px;
  padding: 48px;
  position: relative;
  z-index: 2;
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-glass);
  text-align: center;
  position: relative;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-main);
  word-break: break-word;
}

.article-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  width: fit-content;
  margin: 0 auto;
}

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

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 36px 0 16px;
  color: var(--text-main);
  border-left: 4px solid var(--primary-cyan);
  padding-left: 14px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-purple);
  background: rgba(168, 85, 247, 0.08);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
  color: #e2e8f0;
}

.article-cta-box {
  background: var(--gradient-glow);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

/* Footer & PBN Links (Core Task 2) */
footer.site-footer {
  margin-top: 100px;
  background: rgba(10, 15, 29, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 40px 20px 30px;
  text-align: center;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-pbn-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-pbn-links .pbn-label {
  color: var(--text-sub);
  font-weight: 600;
}

.footer-pbn-links a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-pbn-links a:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
    flex-direction: column;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card.popular {
    transform: none;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    border-radius: 24px;
    padding: 16px;
  }
  .nav-links {
    gap: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .article-detail-container {
    padding: 24px 16px;
  }
  .article-header h1 {
    font-size: 1.75rem;
  }
}
