@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --bg-dark: #08090c;
  --bg-card: #0f121a;
  --bg-nav: rgba(8, 9, 12, 0.85);
  --primary: #00ff66;
  --primary-glow: rgba(0, 255, 102, 0.4);
  --text-main: #e2e8f0;
  --text-muted: #8a99ad;
  --border-color: #1e293b;
  --neon-cyan: #00f0ff;
  --neon-purple: #9d4edd;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Hacker Terminal Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Background Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

/* Glowing text */
.glow-text {
  text-shadow: 0 0 10px var(--primary-glow);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.nav-logo svg {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Banner Header / Hero */
.hero {
  padding: 160px 5% 100px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 255, 102, 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
  }
}

.hero-logo-container {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 102, 0.25));
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Loop Rainbow Light Border Buttons (循环彩灯按钮) */
.rainbow-btn {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.rainbow-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: conic-gradient(
    from 0deg,
    #ff0055,
    #00ff66,
    #00f0ff,
    #ffcc00,
    #ff00ff,
    #ff0055
  );
  border-radius: 10px;
  z-index: -2;
  animation: rotate-gradient 3s linear infinite;
}

.rainbow-btn::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: #0f1115;
  border-radius: 7px;
  z-index: -1;
  transition: background 0.3s ease;
}

.rainbow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.4), 0 0 40px rgba(0, 240, 255, 0.2);
}

.rainbow-btn:hover::after {
  background: #15181f;
}

/* Alternative Tech Button */
.tech-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tech-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
  transform: translateY(-2px);
}

@keyframes rotate-gradient {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* Features Grid */
.section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 102, 0.3);
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.05);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  background: rgba(0, 255, 102, 0.07);
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: var(--primary);
  font-size: 1.5rem;
}

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

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

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 255, 102, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 25px;
  background: var(--primary);
  color: #000;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 5px;
}

.pricing-card hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-card .rainbow-btn,
.pricing-card .tech-btn {
  width: 100%;
  margin-top: auto;
}

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

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 255, 102, 0.05);
}

.article-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #fff;
  line-height: 1.4;
}

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

.article-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.03);
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.review-info h4 {
  font-size: 1rem;
  color: #fff;
}

.review-stars {
  color: #ffaa00;
  font-size: 0.85rem;
  margin-top: 2px;
}

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

/* FAQ Layout */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: rgba(8, 9, 12, 0.4);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  border-top: 1px solid var(--border-color);
}

.faq-answer-inner {
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Article Page Layout */
.article-page {
  padding-top: 140px;
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-header-meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

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

.article-content p {
  margin-bottom: 25px;
}

.article-content h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 40px 0 20px;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.article-content h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 30px 0 15px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--neon-cyan);
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-tags span {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
}

.internal-links h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 15px;
  font-family: var(--font-mono);
}

.internal-links ul {
  list-style: none;
  padding-left: 0;
}

.internal-links li {
  margin-bottom: 12px;
}

.internal-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Footer Section */
footer {
  background: #050608;
  border-top: 1px solid var(--border-color);
  padding: 60px 5% 40px;
  text-align: center;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* PBN Outbound Links Section */
.pbn-container {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #1e293b;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.pbn-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.pbn-link {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pbn-link:hover {
  color: var(--primary) !important;
  opacity: 1;
  text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 15px;
}

/* Responsive adjust */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 60px 20px;
  }
  .article-page {
    padding-top: 100px;
  }
  .article-header h1 {
    font-size: 1.8rem;
  }
}
