/* E-IX 机场 - 日系像素掌机主题 (Japanese Pixel Handheld Theme CSS) */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Noto+Sans+SC:wght@400;500;700;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-cream: #FFF9EE;
  --bg-cream-dark: #F5EFE0;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  
  --pixel-blue: #3B82F6;
  --pixel-blue-dark: #1D4ED8;
  --pixel-green: #10B981;
  --pixel-green-dark: #047857;
  --pixel-orange: #F97316;
  --pixel-orange-dark: #C2410C;
  --pixel-purple: #8B5CF6;
  --pixel-purple-dark: #6D28D9;
  --pixel-yellow: #FBBF24;
  --pixel-red: #EF4444;

  --border-dark: #1E293B;
  --pixel-shadow: 4px 4px 0px #1E293B;
  --pixel-shadow-lg: 7px 7px 0px #1E293B;
  --pixel-shadow-sm: 2px 2px 0px #1E293B;
  --radius-card: 16px;
  --radius-btn: 12px;
}

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

body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(#E2D9C5 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

a {
  color: var(--pixel-blue);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--pixel-blue-dark);
}

.pixel-font {
  font-family: 'Press Start 2P', monospace, sans-serif;
  letter-spacing: -0.5px;
}

.vt-font {
  font-family: 'VT323', monospace, sans-serif;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 249, 238, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3.5px solid var(--border-dark);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--border-dark);
}

.logo-badge {
  background: var(--pixel-orange);
  color: #FFF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  border: 2px solid var(--border-dark);
  box-shadow: 2px 2px 0px var(--border-dark);
}

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

.nav-links a {
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: var(--bg-cream-dark);
  color: var(--pixel-blue);
}

/* Buttons System */
.btn-retro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pixel-blue);
  color: #FFFFFF !important;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: 3px solid var(--border-dark);
  box-shadow: var(--pixel-shadow);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.btn-retro:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--pixel-shadow-lg);
  background: var(--pixel-blue-dark);
}

.btn-retro:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--border-dark);
}

.btn-retro-orange { background: var(--pixel-orange); }
.btn-retro-orange:hover { background: var(--pixel-orange-dark); }
.btn-retro-green { background: var(--pixel-green); }
.btn-retro-green:hover { background: var(--pixel-green-dark); }
.btn-retro-purple { background: var(--pixel-purple); }
.btn-retro-purple:hover { background: var(--pixel-purple-dark); }
.btn-retro-blue { background: var(--pixel-blue); }

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

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px 0;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.25;
  font-weight: 900;
  color: var(--border-dark);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--pixel-orange);
  background: #FFE8C5;
  padding: 4px 14px;
  border-radius: 10px;
  border: 3px solid var(--border-dark);
  box-shadow: var(--pixel-shadow-sm);
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge-item {
  background: #FFF;
  border: 2.5px solid var(--border-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--pixel-shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Handheld Console Hardware Frame */
.console-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.console-device {
  background: #FFF2D6;
  border: 4px solid var(--border-dark);
  border-radius: 36px;
  padding: 24px;
  box-shadow: 10px 10px 0px var(--border-dark);
  width: 100%;
  max-width: 520px;
  position: relative;
}

.console-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 8px;
}

.brand-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--border-dark);
}

.power-led {
  width: 14px;
  height: 14px;
  background: var(--pixel-green);
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  box-shadow: 0 0 10px var(--pixel-green);
  animation: pulse-led 2s infinite;
}

@keyframes pulse-led {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.console-screen-frame {
  background: #0F172A;
  border: 3.5px solid var(--border-dark);
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.9);
}

.console-screen-header {
  display: flex;
  justify-content: space-between;
  color: #38BDF8;
  font-size: 0.75rem;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 1px dashed #334155;
  padding-bottom: 6px;
  font-family: monospace;
}

.screen-map {
  width: 100%;
  height: 220px;
  background: #1E293B;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 2px solid #334155;
}

/* Nodes on map */
.node-point {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--pixel-yellow);
  border-radius: 50%;
  border: 2.5px solid #FFF;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 0 12px var(--pixel-yellow);
  z-index: 10;
}

.node-point:hover { transform: scale(1.3); }

.node-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #38BDF8;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: bold;
  border: 1px solid #38BDF8;
}

.ping-tag {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pixel-green);
  color: #FFF;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: bold;
}

/* Console Control Pad */
.console-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 10px;
}

.d-pad {
  position: relative;
  width: 72px;
  height: 72px;
  background: var(--border-dark);
  border-radius: 12px;
}

.d-pad-btn {
  position: absolute;
  background: #334155;
}

.d-pad-up { top: 0; left: 24px; width: 24px; height: 26px; border-radius: 6px 6px 0 0; }
.d-pad-down { bottom: 0; left: 24px; width: 24px; height: 26px; border-radius: 0 0 6px 6px; }
.d-pad-left { top: 24px; left: 0; width: 26px; height: 24px; border-radius: 6px 0 0 6px; }
.d-pad-right { top: 24px; right: 0; width: 26px; height: 24px; border-radius: 0 6px 6px 0; }

.action-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #FFF;
  font-size: 1.1rem;
  box-shadow: 3px 3px 0px var(--border-dark);
  cursor: pointer;
  user-select: none;
  font-family: 'Press Start 2P', monospace;
}

.btn-a { background: var(--pixel-red); }
.btn-b { background: var(--pixel-blue); }

.btn-action:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--border-dark);
}

/* Section Title System */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--border-dark);
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  display: block;
  height: 6px;
  background: var(--pixel-orange);
  border-radius: 4px;
  margin-top: 6px;
  border: 1.5px solid var(--border-dark);
}

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

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 3.5px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--pixel-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pixel-shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #FFF3D6;
  border: 3px solid var(--border-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  box-shadow: var(--pixel-shadow-sm);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--border-dark);
}

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

/* Pricing Grid / Save Slot Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.save-slot-card {
  background: var(--card-bg);
  border: 3.5px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--pixel-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.save-slot-card.popular {
  border-color: var(--pixel-orange);
  background: #FFFDF9;
  box-shadow: 6px 6px 0px var(--pixel-orange);
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #CBD5E1;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.slot-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--pixel-purple);
}

.popular-badge {
  background: var(--pixel-orange);
  color: #FFF;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
  border: 1.5px solid var(--border-dark);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--border-dark);
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--pixel-blue);
  margin: 12px 0 16px 0;
}

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

.slot-stats {
  list-style: none;
  margin-bottom: 24px;
}

.slot-stats li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
}

.stat-bar {
  display: inline-block;
  width: 60px;
  height: 10px;
  background: #E2E8F0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.stat-fill {
  height: 100%;
  background: var(--pixel-green);
}

/* Tutorials & Tabs */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #FFF;
  border: 3px solid var(--border-dark);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--pixel-shadow-sm);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--pixel-blue);
  color: #FFF;
  transform: translate(-2px, -2px);
  box-shadow: var(--pixel-shadow);
}

.tutorial-body {
  background: var(--card-bg);
  border: 3.5px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--pixel-shadow);
}

.tutorial-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.step-num {
  font-family: 'Press Start 2P', monospace;
  width: 44px;
  height: 44px;
  background: var(--pixel-yellow);
  border: 2.5px solid var(--border-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: var(--pixel-shadow-sm);
}

.step-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

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

.code-box {
  background: #0F172A;
  color: #38BDF8;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  border: 2.5px solid var(--border-dark);
}

.btn-copy {
  background: var(--pixel-green);
  color: #FFF;
  border: 2px solid var(--border-dark);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: var(--pixel-shadow-sm);
}

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

.faq-item {
  background: var(--card-bg);
  border: 3.5px solid var(--border-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--pixel-shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--pixel-purple);
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  display: none;
  border-top: 1px dashed #E2E8F0;
  padding-top: 16px;
  line-height: 1.7;
}

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

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--card-bg);
  border: 3.5px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--pixel-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pixel-shadow-lg);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-cat {
  background: #EEF2FF;
  color: var(--pixel-blue);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  border: 1.5px solid #C7D2FE;
}

.article-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--border-dark);
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Article Detail Page Layout */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-header {
  background: #FFF;
  border: 3.5px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--pixel-shadow);
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--border-dark);
  line-height: 1.3;
}

.article-body {
  background: #FFF;
  border: 3.5px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--pixel-shadow);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 36px 0 16px 0;
  color: var(--border-dark);
  border-left: 6px solid var(--pixel-orange);
  padding-left: 12px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 12px 0;
  color: var(--border-dark);
}

.article-body p {
  margin-bottom: 20px;
  color: #334155;
}

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

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

.table-custom {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 2.5px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}

.table-custom th, .table-custom td {
  padding: 12px 16px;
  border: 1px solid #CBD5E1;
  text-align: left;
}

.table-custom th {
  background: #F8FAFC;
  font-weight: 800;
}

.callout-box {
  background: #FFFBEB;
  border: 2.5px solid var(--pixel-yellow);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--pixel-shadow-sm);
}

/* Footer */
.footer {
  background: #1E293B;
  color: #F8FAFC;
  border-top: 4px solid var(--border-dark);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--pixel-yellow);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #FFF;
}

.footer-bottom {
  text-align: center;
  border-top: 1px dashed #334155;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #64748B;
}

/* Toast Message */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--pixel-green);
  color: #FFF;
  padding: 14px 24px;
  border-radius: 10px;
  border: 3px solid var(--border-dark);
  box-shadow: var(--pixel-shadow);
  font-weight: 800;
  z-index: 99999;
  display: none;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-badges {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
  .article-body {
    padding: 24px;
  }
}
