/* ==========================================
   TNTCloud - Creative Light Mode Design System
   Style: Freeform Asymmetric, Editorial Layered Typography, Glassmorphism, Dynamic Background
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette - Premium Light Theme */
  --bg-body: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --text-main: #121316;
  --text-muted: #52545D;
  --text-subtle: #848694;

  --accent-primary: #4F46E5; /* Electric Indigo */
  --accent-primary-hover: #4338CA;
  --accent-secondary: #059669; /* Emerald Green */
  --accent-warm: #E11D48; /* Crimson / Coral */
  --accent-amber: #D97706; /* Amber */
  --accent-cyan: #0284C7;

  --border-light: rgba(18, 19, 22, 0.08);
  --border-active: rgba(79, 70, 229, 0.3);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px -12px rgba(79, 70, 229, 0.12);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.2);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 9999px;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

/* Base Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  padding: 100px 0;
  position: relative;
}

/* Typography & Layered Staggering */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(79, 70, 229, 0.15);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-secondary);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #6366F1 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Header & Nav */
.header-sticky {
  position: sticky;
  top: 16px;
  z-index: 1000;
  margin-bottom: -80px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

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

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

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

/* Asymmetric Creative Hero Section (自由散排 + 错落叠加) */
.hero-section {
  padding-top: 140px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-bg-watermark {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 900;
  color: rgba(79, 70, 229, 0.04);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
}

.hero-title-container {
  position: relative;
  margin-top: 16px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  position: relative;
  z-index: 2;
}

.stagger-text-box {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 18px;
  border-radius: var(--radius-sm);
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-primary);
  margin-top: 8px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

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

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

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

/* Staggered Visual Floating Composition */
.hero-visual-wrapper {
  position: relative;
  height: 480px;
}

.glass-floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.glass-floating-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 70px -15px rgba(79, 70, 229, 0.2);
}

.card-main-preview {
  top: 20px;
  right: 20px;
  width: 85%;
  z-index: 2;
  border-left: 4px solid var(--accent-primary);
}

.card-stagger-1 {
  bottom: 30px;
  left: 0;
  width: 70%;
  z-index: 3;
  transform: rotate(-2.5deg);
  border-top: 4px solid var(--accent-secondary);
}

.card-stagger-2 {
  top: 180px;
  right: -10px;
  width: 60%;
  z-index: 1;
  transform: rotate(3deg);
  background: rgba(255, 255, 255, 0.65);
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
  position: relative;
}

.section-title {
  font-size: 2.4rem;
  margin-top: 12px;
  margin-bottom: 16px;
}

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

/* Node Latency Section (节点延迟与状态) */
.latency-board {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

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

.latency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.node-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.node-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

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

.node-flag {
  font-size: 1.8rem;
  line-height: 1;
}

.node-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.node-protocol {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  margin-top: 2px;
}

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

.ping-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-secondary);
}

.ping-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

/* Pricing Plans Section (套餐价格板块) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.featured {
  background: #FFFFFF;
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

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

.feature-check {
  color: var(--accent-secondary);
  font-weight: 900;
}

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

.adv-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.adv-card:hover {
  background: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.adv-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.adv-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Knowledge Base & FAQ Grid Section (常见问题 + 知识库) */
.faq-knowledge-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: none;
  line-height: 1.6;
}

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

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

/* Articles Grid Showcase (10 篇 SEO 文章导流) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.article-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

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

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

.review-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

.review-stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 14px;
}

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

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

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #EC4899);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

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

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

/* Article Page Dedicated Layout (文章页样式) */
.article-header {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.article-content-wrapper {
  max-width: 840px;
  margin: 0 auto 80px auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

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

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(79, 70, 229, 0.1);
  color: var(--text-main);
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

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

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.article-cta-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(5, 150, 105, 0.06));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

/* Footer */
.footer {
  background: #121316;
  color: #A1A1AA;
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
}

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

.footer-brand p {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #71717A;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #A1A1AA;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #27272A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual-wrapper {
    height: 380px;
  }
  .faq-knowledge-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu can toggle */
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .article-content-wrapper {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
