/* 聚加速官网 - Black & White High-End Dark Glassmorphism CSS Design System */
:root {
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.22);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-sub: #71717a;
  --accent-lime: #a3e635;
  --accent-lime-glow: rgba(163, 230, 53, 0.25);
  --accent-emerald: #10b981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

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

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

.app-container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Top Announcement Slogan Bar */
.top-slogan-bar {
  background: linear-gradient(90deg, #18181b 0%, #27272a 50%, #18181b 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.top-slogan-bar .tag-hot {
  background: var(--accent-lime);
  color: #000000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 0.78rem;
}

/* 2. Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

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

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: #27272a;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-lime);
  box-shadow: 0 0 12px var(--accent-lime-glow);
}

.text-lime {
  color: var(--accent-lime);
}

.text-gradient-lime {
  background: linear-gradient(90deg, #ffffff 0%, #a3e635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.nav-link:hover {
  color: #ffffff;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-main);
  color: #000000;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: #ffffff;
}

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

/* 3. Hero Section */
.hero-section {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.badge-lime {
  background: rgba(163, 230, 53, 0.12);
  color: var(--accent-lime);
  border: 1px solid rgba(163, 230, 53, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-price-tag {
  display: flex;
  align-items: baseline;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  width: fit-content;
}

.hero-price-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 6px 0 10px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Sphere Graphics */
.hero-sphere-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.traffic-ball-container {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(9, 9, 11, 0.9));
  border: 2px solid var(--border-light);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ball-inner-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(180deg, rgba(163, 230, 53, 0.2) 0%, rgba(163, 230, 53, 0.05) 100%);
  border-top: 2px solid var(--accent-lime);
  animation: wavePulse 4s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { height: 55%; transform: scaleY(1); }
  100% { height: 75%; transform: scaleY(1.05); }
}

.ball-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ball-big-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.ball-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.orbit-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px dashed var(--border-color);
  animation: spinRing 20s linear infinite;
}

@keyframes spinRing {
  100% { transform: rotate(360deg); }
}

.floating-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chip-1 { top: 30px; left: 10px; }
.chip-2 { bottom: 30px; right: 10px; }

/* General Section Styling */
.section {
  padding: 90px 0;
}

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

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

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

/* 4. Calculator Bar & Multi-device Grid */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calc-val-highlight {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-lime);
}

.calc-slider-wrapper {
  margin-bottom: 36px;
}

.calc-slider {
  width: 100%;
  height: 8px;
  background: #27272a;
  border-radius: 4px;
  outline: none;
  accent-color: var(--accent-lime);
  cursor: pointer;
}

.calc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.calc-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.calc-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
}

.calc-stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.device-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.device-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.device-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.device-tag {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 4px;
}

/* 5. Node Latency Board */
.node-board {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.node-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

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

.node-title {
  font-weight: 700;
  font-size: 0.98rem;
}

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

.node-ping-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-green {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* 6. Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.pricing-card.featured {
  border-color: var(--accent-lime);
  box-shadow: 0 0 30px rgba(163, 230, 53, 0.15);
}

.featured-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent-lime);
  color: #000000;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
}

.plan-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.plan-desc {
  color: var(--text-sub);
  font-size: 0.88rem;
  margin-top: 8px;
  min-height: 40px;
}

.plan-price-box {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
}

.plan-price-num {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
}

.plan-price-unit {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-left: 6px;
}

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

.plan-features li {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

/* 7. Core Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.2s ease;
}

.adv-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.adv-icon-box {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

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

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

/* 8. Knowledge Base & SEO Articles Grid */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.kb-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.kb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.kb-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-lime);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.kb-readtime {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.kb-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.kb-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kb-link-action {
  margin-top: auto;
  color: var(--accent-lime);
  font-size: 0.88rem;
  font-weight: 700;
}

/* 9. FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-question {
  padding: 22px 28px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-sub);
}

.faq-answer {
  display: none;
  padding: 0 28px 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

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

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

/* 10. User Reviews & Social Proof */
.social-proof-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.proof-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-lime);
}

.proof-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  background: #27272a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--accent-lime);
  border: 1px solid var(--border-light);
}

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

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

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

/* Footer (No visible sitemap/robots links in UI) */
.site-footer {
  background: #000000;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 360px;
}

.footer-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  font-size: 0.85rem;
}

/* Article Detail Page CSS */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  align-items: center;
}

.article-body {
  max-width: 860px;
  margin: 40px auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 40px 0 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 14px;
}

.article-body p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  color: var(--text-muted);
}

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

.article-quote {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-lime);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 30px 0;
  color: var(--text-main);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.article-table th, .article-table td {
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  text-align: left;
}

.article-table th {
  background: #18181b;
  font-weight: 700;
}

.article-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-price-tag { margin: 0 auto 32px; }
  .hero-cta-group { justify-content: center; }
  .calc-stats-grid { grid-template-columns: 1fr 1fr; }
  .devices-grid { grid-template-columns: repeat(3, 1fr); }
  .node-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .kb-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .social-proof-banner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #09090b;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
  }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.4rem; }
  .devices-grid { grid-template-columns: 1fr 1fr; }
  .node-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .calc-stats-grid { grid-template-columns: 1fr; }
}
