/* Cyberpunk Deep Space Tech Design System for jiuxiaoyun.sbs */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Space+Grotesk:wght@400;600;700;900&display=swap');

:root {
  --bg-deep-space: #06060F;
  --bg-card: rgba(14, 14, 28, 0.75);
  --neon-cyan: #00F0FF;
  --neon-violet: #8B5CF6;
  --neon-magenta: #FF2E88;
  --text-main: #E8EAF6;
  --text-muted: #8A91B4;
  --border-glass: rgba(0, 240, 255, 0.2);
  --font-latin: 'Space Grotesk', sans-serif;
  --font-chinese: 'Noto Sans SC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep-space);
  color: var(--text-main);
  font-family: var(--font-chinese);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Background Canvas & Neon Grid */
#starfieldCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.grid-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Header: Frosted Glass */
.header-glass {
  position: sticky;
  top: 0;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  padding: 16px 32px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-dot-pulse {
  width: 12px;
  height: 12px;
  background-color: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.brand-name {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.5rem;
  color: #FFF;
  letter-spacing: 2px;
}

.brand-name span {
  color: var(--neon-cyan);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-latin);
  font-size: 0.98rem;
  font-weight: 600;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.nav-menu a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Capsule Neon Buttons */
.btn-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-family: var(--font-latin);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  font-size: 0.98rem;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-cyan {
  background: linear-gradient(135deg, var(--neon-cyan), #00A3FF);
  color: #06060F;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
}

.btn-cyan:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.7);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline-glass:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 70px;
  text-align: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 6px 18px;
  border-radius: 9999px;
  font-family: var(--font-latin);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-family: var(--font-chinese);
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

/* Gradient Animated Headline: Cyan -> Violet -> Magenta */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 50%, var(--neon-magenta) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s ease infinite alternate;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Metric Data Bar (with Hairline Dividers & Counting Up) */
.metric-bar {
  margin: 60px auto 40px;
  max-width: 1080px;
  background: rgba(14, 14, 28, 0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 20px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.metric-item {
  text-align: center;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.metric-number {
  font-family: var(--font-latin);
  font-size: 2.8rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 4px;
}

.metric-number span {
  color: var(--neon-cyan);
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Interactive Speed Test Panel */
.speedtest-panel {
  max-width: 800px;
  margin: 50px auto 0;
  background: rgba(14, 14, 28, 0.9);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
  text-align: center;
}

.speedtest-title {
  font-family: var(--font-latin);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.speed-dial {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.speed-value {
  font-family: var(--font-latin);
  font-size: 5rem;
  font-weight: 900;
  color: #FFF;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
  min-width: 280px;
}

.speed-unit {
  font-family: var(--font-latin);
  font-size: 1.6rem;
  color: var(--neon-cyan);
  font-weight: 700;
}

.speed-meta {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 28px;
  font-family: var(--font-latin);
  color: var(--text-muted);
  font-size: 1rem;
}

/* Section Common */
.section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-latin);
  color: var(--neon-cyan);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-chinese);
  font-size: 2.6rem;
  font-weight: 900;
  color: #FFF;
}

/* Frosted Glass Feature Cards */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

.card-icon-halo {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 14px;
}

.card-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Media & AI Grid */
.media-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.neon-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.neon-tag {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #D8B4FE;
  font-family: var(--font-latin);
  font-size: 0.88rem;
  padding: 5px 14px;
  border-radius: 9999px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.5);
}

.pricing-card.featured {
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
}

.featured-pill {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-cyan);
  color: #06060F;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 18px;
  border-radius: 9999px;
  letter-spacing: 1px;
}

.tier-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}

.tier-price {
  font-family: var(--font-latin);
  font-size: 3.2rem;
  font-weight: 900;
  color: #FFF;
  margin: 16px 0 24px;
}

.tier-price span {
  font-size: 1.5rem;
  color: var(--neon-cyan);
}

.tier-price small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-features {
  list-style: none;
  margin-bottom: 32px;
  font-size: 0.98rem;
  line-height: 2.2;
  color: var(--text-main);
}

.tier-features li::before {
  content: "✦ ";
  color: var(--neon-cyan);
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #06060F;
}

.review-name {
  font-weight: 700;
  color: #FFF;
}

.review-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 32px;
}

.faq-q {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 12px;
}

.faq-a {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* Footer: STRICTLY ONLY 4 TITLES OPENING IN NEW TAB */
.site-footer {
  background: rgba(4, 4, 10, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 50px 0;
  position: relative;
  z-index: 2;
}

.footer-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-latin);
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.footer-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Sub-pages and Articles */
.article-main {
  padding: 70px 0 100px;
  position: relative;
  z-index: 2;
}

.article-box {
  background: rgba(14, 14, 28, 0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 52px 48px;
  max-width: 960px;
  margin: 0 auto;
}

.breadcrumb-nav {
  font-family: var(--font-latin);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumb-nav a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #FFF;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-latin);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.08rem;
  line-height: 2.05;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #FFF;
  margin: 44px 0 18px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.article-body th, .article-body td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
}

.article-body th {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  font-family: var(--font-latin);
}

/* Diagnostic / Check Tool */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.diag-card {
  background: rgba(14, 14, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 32px;
}

/* Responsive: Grids collapse to single column below 820px */
@media (max-width: 820px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .cards-grid-3, .pricing-grid, .reviews-grid, .media-ai-grid, .diag-grid {
    grid-template-columns: 1fr;
  }
  .metric-bar {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .metric-item:not(:last-child)::after {
    display: none;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
  .nav-menu {
    gap: 14px;
    flex-wrap: wrap;
  }
  .article-box {
    padding: 28px 20px;
  }
  .footer-nav-container {
    flex-direction: column;
    gap: 18px;
  }
}
