/* ==========================================================================
   TAISHAN AIRPORT (taishanjc.cyou) - PIXEL ART DESIGN SYSTEM
   8-Bit / 16-Bit Arcade Gaming Aesthetics & Dynamic Neon Vibe
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen:wght@400;700&family=VT323&display=swap');

:root {
  --bg-dark: #090616;
  --bg-card: #150f2e;
  --bg-card-hover: #1f1742;
  --border-color: #3b2a6d;
  
  --pixel-cyan: #00f0ff;
  --pixel-magenta: #ff007f;
  --pixel-yellow: #ffe600;
  --pixel-green: #00ff66;
  --pixel-orange: #ff6600;
  --pixel-purple: #9d00ff;
  
  --text-main: #e6e1ff;
  --text-muted: #9f94c9;
  --text-bright: #ffffff;
  
  --font-pixel-heading: 'Press Start 2P', monospace, cursive;
  --font-pixel-sub: 'Silkscreen', monospace;
  --font-pixel-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  
  --pixel-shadow: 4px 4px 0px #000000;
  --pixel-shadow-cyan: 4px 4px 0px var(--pixel-cyan);
  --pixel-shadow-magenta: 4px 4px 0px var(--pixel-magenta);
}

/* Base Reset & Custom Cursor Canvas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-pixel-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  cursor: default;
}

/* Mouse Wings Canvas Overlay */
#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* CRT Scanline Overlay Effect */
.crt-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 6px 100%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.crt-scanlines.disabled {
  opacity: 0;
  pointer-events: none;
}

/* Pixel Border Utility */
.pixel-box {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: 
    -4px 0 0 0 #000,
    4px 0 0 0 #000,
    0 -4px 0 0 #000,
    0 4px 0 0 #000,
    var(--pixel-shadow);
  position: relative;
}

.pixel-box-cyan {
  border-color: var(--pixel-cyan);
  box-shadow: 
    -4px 0 0 0 var(--pixel-cyan),
    4px 0 0 0 var(--pixel-cyan),
    0 -4px 0 0 var(--pixel-cyan),
    0 4px 0 0 var(--pixel-cyan),
    var(--pixel-shadow-cyan);
}

.pixel-box-magenta {
  border-color: var(--pixel-magenta);
  box-shadow: 
    -4px 0 0 0 var(--pixel-magenta),
    4px 0 0 0 var(--pixel-magenta),
    0 -4px 0 0 var(--pixel-magenta),
    0 4px 0 0 var(--pixel-magenta),
    var(--pixel-shadow-magenta);
}

/* Typography & Pixel Headings */
h1, h2, h3, h4 {
  font-family: var(--font-pixel-heading);
  line-height: 1.4;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pixel-glitch {
  position: relative;
  display: inline-block;
  color: var(--pixel-cyan);
  text-shadow: 3px 3px 0px var(--pixel-magenta);
}

/* Buttons */
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-pixel-heading);
  font-size: 0.85rem;
  color: #000;
  background-color: var(--pixel-yellow);
  border: 4px solid #000;
  box-shadow: 4px 4px 0px #000;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s;
  text-align: center;
  user-select: none;
}

.pixel-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000;
  background-color: #fff066;
}

.pixel-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.pixel-btn-primary {
  background-color: var(--pixel-cyan);
  color: #000;
}

.pixel-btn-primary:hover {
  background-color: #73f7ff;
}

.pixel-btn-magenta {
  background-color: var(--pixel-magenta);
  color: #fff;
  text-shadow: 1px 1px 0px #000;
}

.pixel-btn-magenta:hover {
  background-color: #ff3399;
}

.pixel-btn-sm {
  padding: 8px 14px;
  font-size: 0.7rem;
}

.pixel-badge {
  display: inline-block;
  padding: 4px 8px;
  font-family: var(--font-pixel-sub);
  font-size: 0.75rem;
  background: rgba(0, 240, 255, 0.15);
  border: 2px solid var(--pixel-cyan);
  color: var(--pixel-cyan);
  margin-bottom: 12px;
}

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

section {
  padding: 80px 0;
  position: relative;
}

/* Header Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 6, 22, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--border-color);
  padding: 15px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-pixel-icon {
  width: 40px;
  height: 40px;
  background: var(--pixel-magenta);
  border: 3px solid #000;
  box-shadow: 2px 2px 0px var(--pixel-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel-heading);
  font-size: 18px;
  color: #fff;
}

.brand-text {
  font-family: var(--font-pixel-heading);
  font-size: 1.1rem;
  color: #fff;
}

.brand-text span {
  color: var(--pixel-cyan);
}

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

.nav-link {
  font-family: var(--font-pixel-sub);
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--pixel-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crt-toggle-btn {
  background: #1f1742;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-pixel-sub);
  font-size: 0.75rem;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crt-toggle-btn:hover {
  color: var(--pixel-yellow);
  border-color: var(--pixel-yellow);
}

/* Hero Section */
.hero-section {
  padding: 100px 0 60px;
  background: radial-gradient(circle at 50% 30%, rgba(157, 0, 255, 0.15) 0%, rgba(9, 6, 22, 0) 70%);
  text-align: center;
}

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* Retro Live Ping Status Dashboard */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.status-card {
  padding: 20px;
  background: var(--bg-card);
  text-align: left;
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background: var(--pixel-green);
  box-shadow: 0 0 8px var(--pixel-green);
  display: inline-block;
  animation: pulse-green 1.5s infinite alternate;
}

@keyframes pulse-green {
  from { opacity: 0.5; }
  to { opacity: 1; transform: scale(1.2); }
}

.status-card-title {
  font-family: var(--font-pixel-sub);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-card-value {
  font-family: var(--font-pixel-heading);
  font-size: 1.2rem;
  color: var(--pixel-cyan);
}

/* Features Grid */
.section-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  font-family: var(--font-pixel-sub);
}

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

.feature-card {
  padding: 30px;
  background: var(--bg-card);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  background: #25184b;
  border: 3px solid var(--pixel-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 3px 3px 0px #000;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
  background: rgba(21, 15, 46, 0.4);
}

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

.pricing-card {
  padding: 35px 25px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  background: #1d143f;
  border-color: var(--pixel-yellow);
  box-shadow: 
    -4px 0 0 0 var(--pixel-yellow),
    4px 0 0 0 var(--pixel-yellow),
    0 -4px 0 0 var(--pixel-yellow),
    0 4px 0 0 var(--pixel-yellow),
    4px 4px 0px #000;
}

.featured-ribbon {
  position: absolute;
  top: -16px;
  right: 20px;
  background: var(--pixel-yellow);
  color: #000;
  font-family: var(--font-pixel-sub);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 12px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0px #000;
}

.plan-name {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 15px;
}

.plan-price {
  font-family: var(--font-pixel-heading);
  font-size: 1.8rem;
  color: var(--pixel-cyan);
  margin-bottom: 5px;
}

.plan-price span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-pixel-body);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 15px;
}

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

.plan-features li {
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✔";
  color: var(--pixel-green);
  font-weight: bold;
}

/* Articles Section / Knowledge Base */
.articles-section {
  padding: 80px 0;
}

.article-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 30px;
  scrollbar-width: thin;
}

.tab-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-pixel-sub);
  font-size: 0.8rem;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--pixel-cyan);
  color: #000;
  border-color: #000;
  box-shadow: 2px 2px 0px #000;
}

.article-display-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 4px;
}

.article-content {
  display: none;
}

.article-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-content h2 {
  font-size: 1.3rem;
  color: var(--pixel-cyan);
  margin-bottom: 15px;
}

.article-meta {
  font-family: var(--font-pixel-sub);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.article-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h3 {
  font-size: 1.05rem;
  color: var(--pixel-yellow);
  margin: 30px 0 15px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

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

.article-body a {
  color: var(--pixel-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-body a:hover {
  color: var(--pixel-magenta);
}

.keyword-tag {
  display: inline-block;
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid var(--pixel-magenta);
  color: var(--pixel-magenta);
  font-size: 0.75rem;
  padding: 2px 6px;
  margin: 0 4px;
  font-family: var(--font-pixel-sub);
}

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

.review-card {
  padding: 25px;
  background: var(--bg-card);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  background: var(--pixel-purple);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel-heading);
  font-size: 16px;
  color: #fff;
  box-shadow: 2px 2px 0px #000;
}

.review-info h4 {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 4px;
}

.review-stars {
  color: var(--pixel-yellow);
  font-size: 0.8rem;
}

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

/* FAQ Accordion Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--pixel-cyan);
}

.faq-question {
  padding: 20px;
  font-family: var(--font-pixel-sub);
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-icon {
  font-family: var(--font-pixel-heading);
  font-size: 1.1rem;
  color: var(--pixel-cyan);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--pixel-magenta);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px 20px;
  border-top: 1px dashed var(--border-color);
}

/* FOOTER & PBN TRANSMISSION PIPELINE */
.pbn-footer {
  background: #05030c;
  border-top: 3px solid #1a1236;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 40px;
}

.pbn-footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pbn-links-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  line-height: 1.8;
}

.pbn-link {
  color: #7b6f9f;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.pbn-link:hover {
  color: var(--pixel-cyan);
  text-decoration: underline;
}

.copyright-text {
  font-family: var(--font-pixel-sub);
  font-size: 0.7rem;
  color: #554a73;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .pixel-btn {
    width: 100%;
  }
  
  .article-display-box {
    padding: 20px;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}
