/* ============================================
   夜煞云机场 - Main Stylesheet
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --accent-orange: #f97316;
  --bg-dark: #0a0a14;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.09);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.08);
  --gradient-hero: linear-gradient(135deg, #1e0a3c 0%, #0d0d1a 50%, #0a1628 100%);
  --gradient-card: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(99,102,241,0.08) 100%);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.3);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4 { line-height: 1.3; font-weight: 700; }
a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 900; color: #fff;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 8px 20px; border-radius: 50px;
  font-weight: 600 !important;
  transition: transform .2s, box-shadow .2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.5) !important; color: #fff !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: #080810;
  position: relative; overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}
/* hero canvas fills the section */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
/* all hero children sit above canvas */
.hero > *:not(#hero-canvas) { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
  padding: 6px 16px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; color: var(--primary-light);
  margin-bottom: 24px; letter-spacing: .05em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  background: linear-gradient(135deg, #fff 30%, var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), #f0abfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 14px 36px; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(124,58,237,0.5);
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.7); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff; padding: 14px 36px; border-radius: 50px;
  font-size: 1rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); color: #fff; }

/* hero canvas replaces old .stars */

/* ============================================
   FEATURES
   ============================================ */
.features { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: 2rem; margin-bottom: 12px; }
.section-title p { color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(99,102,241,0.15));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: .9rem; }

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 80px 0; background: rgba(0,0,0,0.3); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; align-items: start;
}
.price-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.5);
  box-shadow: var(--shadow-glow);
}
.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(99,102,241,0.1));
}
.price-badge {
  position: absolute; top: -12px; right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  color: #fff; padding: 4px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
}
.price-name {
  font-size: .85rem; color: var(--text-secondary); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.price-name .icon { font-size: 1rem; }
.price-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px;
}
.price-old { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.price-new { font-size: 2.2rem; font-weight: 900; color: #fff; }
.price-new .currency { font-size: 1rem; font-weight: 600; margin-right: 2px; }
.price-period { font-size: .8rem; color: var(--text-muted); }
.price-traffic { font-size: .85rem; color: var(--text-secondary); margin: 12px 0 4px; }
.price-devices { font-size: .85rem; color: var(--text-secondary); margin-bottom: 16px; }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li {
  font-size: .82rem; color: var(--text-secondary);
  padding: 4px 0; display: flex; gap: 6px; align-items: flex-start;
}
.price-features li::before { content: '✓'; color: var(--primary-light); flex-shrink: 0; font-weight: 700; }
.price-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: 50px;
  padding: 12px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .2s;
  display: block; text-align: center;
}
.price-btn:hover { opacity: .9; transform: scale(1.02); color: #fff; }
.price-cycle {
  font-size: .78rem; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 50px;
  margin-left: auto; color: var(--text-secondary);
}

/* ============================================
   ARTICLES SECTION
   ============================================ */
.articles { padding: 80px 0; }
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 24px rgba(124,58,237,0.15);
}
.article-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-dark), #1e1b4b);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-body { padding: 20px; }
.article-tag {
  font-size: .72rem; background: rgba(124,58,237,0.2);
  color: var(--primary-light); padding: 3px 10px; border-radius: 50px;
  display: inline-block; margin-bottom: 10px; font-weight: 600;
}
.article-card h3 { font-size: 1rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--text-primary); }
.article-card p { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.read-more {
  font-size: .82rem; color: var(--primary-light); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.read-more::after { content: '→'; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews { padding: 80px 0; background: rgba(0,0,0,0.3); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .3s;
}
.review-card:hover { transform: translateY(-3px); }
.review-stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; }
.review-text { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.author-name { font-size: .88rem; font-weight: 600; }
.author-sub { font-size: .75rem; color: var(--text-muted); }

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 80px 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text-primary); text-align: left;
  padding: 20px 24px; font-size: .95rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
}
.faq-q:hover { color: var(--primary-light); }
.faq-icon { font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 24px; font-size: .88rem; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: rgba(0,0,0,0.6);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); font-size: .85rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: .9rem; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: var(--text-secondary); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: .8rem;
}
.footer-disclaimer { font-size: .75rem; color: var(--text-muted); max-width: 600px; }

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-page { padding: 60px 0 80px; max-width: 820px; margin: 0 auto; }
.article-page h1 { font-size: 2rem; margin-bottom: 16px; }
.article-meta { color: var(--text-muted); font-size: .85rem; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-page h2 { font-size: 1.4rem; margin: 36px 0 14px; color: var(--primary-light); }
.article-page h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.article-page p { color: var(--text-secondary); margin-bottom: 16px; font-size: .95rem; }
.article-page ul, .article-page ol { margin: 12px 0 16px 24px; color: var(--text-secondary); font-size: .95rem; }
.article-page li { margin-bottom: 8px; }
.article-page a { color: var(--primary-light); }
.article-related {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-top: 48px;
}
.article-related h3 { margin-bottom: 16px; }
.article-related ul { list-style: none; margin: 0; }
.article-related ul li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.article-related ul li:last-child { border-bottom: none; }
.article-cta-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(99,102,241,0.1));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius); padding: 28px; text-align: center; margin: 36px 0;
}
.article-cta-box p { color: var(--text-primary); font-size: 1rem; margin-bottom: 16px; }
.breadcrumb {
  font-size: .82rem; color: var(--text-muted);
  margin-bottom: 24px; display: flex; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--border); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,10,20,0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .article-page { padding: 40px 16px 60px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 16px 50px; }
}

/* ── Highlight badge ── */
.badge-hot {
  display: inline-block; background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; vertical-align: middle; margin-left: 4px;
}
.tag-special {
  font-size: .75rem; background: rgba(245,158,11,0.2); color: var(--accent);
  padding: 2px 8px; border-radius: 50px;
}
