/* ==========================================================================
   搬瓦工机场 (bandwagong.club) - 官方落地页主样式表（搬瓦工经典橙蓝主题）
   ========================================================================== */

:root {
  --bg-dark: #0b1326;
  --bg-card: #131f38;
  --bg-card-hover: #1c2d50;
  --border-color: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(255, 107, 0, 0.45);

  --primary-orange: #ff6b00;
  --primary-amber: #f59e0b;
  --primary-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.22) 0%, rgba(11, 19, 38, 1) 75%);
  min-height: 100vh;
}

a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-amber);
}

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

.section-padding {
  padding: 80px 0;
}

.text-gradient {
  background: linear-gradient(135deg, #ff9d42, #ff6b00, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff6b00, #ea580c);
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6);
  background: linear-gradient(135deg, #f97316, #c2410c);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main) !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 72px;
  display: flex;
  align-items: center;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.logo-badge {
  font-size: 0.75rem;
  background: rgba(255, 107, 0, 0.15);
  color: var(--primary-orange);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 0, 0.35);
  font-weight: 600;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  color: #ff9d42;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(19, 31, 56, 0.7);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto;
}

.stat-item h4 {
  font-size: 1.8rem;
  color: #ff9d42;
  font-weight: 700;
}

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Node Ping Test Widget */
.ping-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ping-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.ping-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ping-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ping-flag {
  font-size: 1.5rem;
}

.ping-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.ping-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ping-badge {
  text-align: right;
}

.ping-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-green);
}

.ping-bar-bg {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.ping-bar-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 2px;
}

/* Bento Grid Features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 0, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-orange);
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-orange);
}

.pricing-card.popular {
  border: 2px solid var(--primary-orange);
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.18) 0%, rgba(19, 31, 56, 1) 100%);
  box-shadow: 0 10px 35px rgba(255, 107, 0, 0.25);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b00, #ea580c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  height: 38px;
}

.plan-price-box {
  margin-bottom: 24px;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

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

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Article Cards Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-orange);
}

.article-tag {
  font-size: 0.75rem;
  color: var(--primary-orange);
  background: rgba(255, 107, 0, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text-main);
}

.article-card h3 a:hover {
  color: var(--primary-orange);
}

.article-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* User Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.user-info h5 {
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* FAQ Accordion Section */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

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

.faq-item:hover {
  border-color: rgba(255, 107, 0, 0.35);
}

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

.faq-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary-orange);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

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

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

/* Single Article Detail Page Styling */
.article-page {
  padding: 50px 0 90px;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary-orange);
}

.article-header-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-sub);
}

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

.article-body h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 36px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-orange);
}

.article-body h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 28px 0 12px;
}

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

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

.article-body strong {
  color: #ffffff;
}

.cta-box {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.cta-box h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Footer & PBN Links (Core Task 2 Requirement) */
footer {
  background: #070e1c;
  border-top: 1px solid var(--border-color);
  padding: 40px 20px 30px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 16px;
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.footer-desc {
  max-width: 600px;
  margin: 0 auto 24px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Low-key PBN Links Section */
.footer-friend-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-friend-links span {
  color: #475569;
}

.footer-friend-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color var(--transition-fast);
}

.footer-friend-links a:hover {
  color: var(--primary-orange);
}

.copyright {
  margin-top: 16px;
  color: #475569;
  font-size: 0.75rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-2 {
    grid-column: span 2;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #0b1326;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .ping-grid {
    grid-template-columns: 1fr;
  }
  .article-container {
    padding: 24px;
  }
  .article-header-title {
    font-size: 1.6rem;
  }
}
