/* 
   ==========================================================================
   花云官网 (Flower Cloud) - Global Design System & Stylesheet
   ========================================================================== 
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #07050f;
  --bg-secondary: #0d0a1b;
  --color-primary: #ff4b87; /* Rose Orchid Glow */
  --color-secondary: #8b5cf6; /* Electric Lavender */
  --color-accent: #06b6d4; /* Neon Sky */
  --color-success: #00ff87; /* Emerald Green */
  --color-warning: #f59e0b; /* Amber */
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glassmorphism Styles */
  --glass-bg: rgba(13, 10, 27, 0.45);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 75, 135, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Fonts */
  --font-family-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-sans);
}

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

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

/* Selection */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* Typographical Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.ambient-glows {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation-duration: 20s;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  bottom: 10%;
  left: -10%;
  animation-duration: 30s;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  top: 40%;
  right: 25%;
  animation-duration: 25s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(80px, 50px) scale(1.2);
  }
}

/* ==========================================================================
   Utility Classes & Layouts
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-family-sans);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  font-size: 0.95rem;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 75, 135, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 75, 135, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(255, 75, 135, 0.1);
  transform: translateY(-2px);
}

/* Glassmorphism Card base */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 5, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

header.scrolled {
  background: rgba(7, 5, 15, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--color-primary));
  animation: logoPulse 4s infinite ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(10deg); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  z-index: 1100;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2.5px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2), .hamburger span:nth-child(3) { top: 10px; }
.hamburger span:nth-child(4) { top: 20px; }

.hamburger.open span:nth-child(1) { top: 10px; width: 0%; left: 50%; }
.hamburger.open span:nth-child(2) { transform: rotate(45deg); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }
.hamburger.open span:nth-child(4) { top: 10px; width: 0%; left: 50%; }


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  align-self: flex-start;
  background: rgba(255, 75, 135, 0.1);
  border: 1px solid rgba(255, 75, 135, 0.2);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: inline-block;
  animation: pingPulse 2s infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Hero Visual Art (Mockup Dashboard) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-container {
  width: 100%;
  max-width: 440px;
  height: 440px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-sphere {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,75,135,0.4) 0%, rgba(139,92,246,0.3) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: spherePulse 6s infinite alternate ease-in-out;
  z-index: 1;
}

.visual-dashboard {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  z-index: 2;
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.dash-dot:nth-child(1) { background: #ef4444; }
.dash-dot:nth-child(2) { background: #eab308; }
.dash-dot:nth-child(3) { background: #22c55e; }

.dash-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-speed {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dash-speed-val {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.dash-speed-unit {
  font-size: 1rem;
  color: var(--text-secondary);
}

.dash-chart {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(139, 92, 246, 0.2), var(--color-primary));
  border-radius: 4px;
  animation: barHeight 3s infinite ease-in-out alternate;
  min-height: 10px;
}

/* Stagger bar heights & animation delays */
.chart-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 65%; animation-delay: 0.4s; }
.chart-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.chart-bar:nth-child(4) { height: 85%; animation-delay: 0.7s; }
.chart-bar:nth-child(5) { height: 70%; animation-delay: 0.5s; }
.chart-bar:nth-child(6) { height: 95%; animation-delay: 0.9s; }
.chart-bar:nth-child(7) { height: 60%; animation-delay: 0.3s; }
.chart-bar:nth-child(8) { height: 80%; animation-delay: 0.6s; }

.dash-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pingPulse 1.5s infinite;
}

@keyframes spherePulse {
  0% { transform: scale(1); filter: blur(20px); opacity: 0.8; }
  100% { transform: scale(1.15); filter: blur(30px); opacity: 0.9; }
}

@keyframes barHeight {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.1); }
}

@keyframes pingPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 255, 135, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}


/* ==========================================================================
   Core Advantages (核心优势)
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.advantage-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.advantage-card:nth-child(even) .advantage-icon {
  background: rgba(255, 75, 135, 0.1);
  border: 1px solid rgba(255, 75, 135, 0.2);
  color: var(--color-primary);
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
}

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

.advantage-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ==========================================================================
   Pricing Section (套餐价格)
   ========================================================================== */
.pricing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.toggle-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary);
}

.toggle-label.active {
  color: var(--text-primary);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 10px rgba(255, 75, 135, 0.4);
}

.toggle-switch.yearly .toggle-slider {
  left: 31px;
  background-color: var(--color-secondary);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.discount-badge {
  background: linear-gradient(135deg, var(--color-success) 0%, #10b981 100%);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  padding: 48px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: rgba(255, 75, 135, 0.4);
  box-shadow: 0 10px 40px rgba(255, 75, 135, 0.15);
}

.pricing-card.popular::before {
  content: '推荐';
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

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

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
}

.plan-price-symbol {
  font-size: 1.5rem;
  font-weight: 600;
}

.plan-price-value {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.plan-price-period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

.plan-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
}

.plan-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.plan-features li.disabled svg {
  color: var(--text-muted);
}


/* ==========================================================================
   Node Status Section (节点延迟和状态)
   ========================================================================== */
.nodes-panel {
  padding: 30px;
}

.nodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.nodes-info {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nodes-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nodes-info-item span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

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

.node-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

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

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

.node-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.node-latency-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.node-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.node-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
}

.node-latency {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Latency colors */
.latency-low {
  background: rgba(0, 255, 135, 0.15);
  color: var(--color-success);
}

.latency-medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.latency-high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}


/* ==========================================================================
   User Reviews Section (用户评价)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.review-user {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  margin-top: auto;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ==========================================================================
   Knowledge Base / Tutorials Section (知识库与教程)
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.article-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-tag {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 700;
  transition: color var(--transition-fast);
}

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

.article-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.article-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.article-card:hover .article-link svg {
  transform: translateX(4px);
}


/* ==========================================================================
   FAQ Section (常见问题)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: rgba(255, 75, 135, 0.2);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  background: rgba(255, 75, 135, 0.1);
  color: var(--color-primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-in-out;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer-content {
  border-color: var(--glass-border);
}


/* ==========================================================================
   Footer Section
   ========================================================================== */
footer {
  background: #04030a;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links-col h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}


/* ==========================================================================
   Knowledge Base Detail Pages Layout (知识库文章详情页专用样式)
   ========================================================================== */
.kb-detail-body {
  background-color: var(--bg-primary);
}

.kb-nav {
  position: static;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.kb-content-wrapper {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.kb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 30px;
  transition: all var(--transition-fast);
}

.kb-back-btn:hover {
  color: var(--color-primary);
  transform: translateX(-4px);
}

.kb-back-btn svg {
  width: 20px;
  height: 20px;
}

.kb-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.kb-article-container {
  padding: 48px;
}

.kb-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.kb-header-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.kb-header-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.kb-markdown {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.kb-markdown h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 40px 0 20px;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

.kb-markdown h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 30px 0 16px;
}

.kb-markdown p {
  margin-bottom: 20px;
}

.kb-markdown ul, .kb-markdown ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.kb-markdown li {
  margin-bottom: 8px;
}

.kb-markdown strong {
  color: var(--text-primary);
}

.kb-markdown code {
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--color-primary);
}

.kb-markdown pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.kb-markdown pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.kb-markdown blockquote {
  border-left: 4px solid var(--color-secondary);
  background: rgba(139, 92, 246, 0.05);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-style: italic;
}

.kb-markdown blockquote p {
  margin-bottom: 0;
}

/* KB Sidebar widget */
.kb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  padding: 24px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-list li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
}

.widget-list li a:hover {
  color: var(--color-primary);
}

.cta-widget {
  background: linear-gradient(135deg, rgba(255, 75, 135, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: rgba(255, 75, 135, 0.2);
  text-align: center;
}

.cta-widget p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}


/* ==========================================================================
   Responsive Design Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-desc {
    margin: 0 auto;
  }
  .hero-badge {
    align-self: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .kb-article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 24px;
    transition: all var(--transition-normal);
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-actions {
    display: none; /* Hide actions in basic navbar for mobile */
  }
  .hamburger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .kb-article-container {
    padding: 24px;
  }
  .kb-header-title {
    font-size: 1.8rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .nodes-panel {
    padding: 16px;
  }
  .nodes-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
