/*
 * peiqianjichang.cyou - Custom Styling (Cyber Aurora Theme)
 */

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

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  
  /* Color Palette: Cyber Aurora (Indigo, Cyan, Violet Accent) */
  --bg-main: #060913;
  --bg-gradient: linear-gradient(135deg, #060913 0%, #0d122b 50%, #050814 100%);
  --card-bg: rgba(13, 20, 38, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(0, 242, 254, 0.4);
  
  --primary: #00f2fe;
  --primary-rgb: 0, 242, 254;
  --secondary: #9d4edd;
  --secondary-rgb: 157, 78, 221;
  --accent: #ff007f;
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-inverse: #020617;
  
  --shadow-neon: 0 0 20px rgba(0, 242, 254, 0.15);
  --shadow-neon-hover: 0 0 30px rgba(0, 242, 254, 0.35);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #060913;
}
::-webkit-scrollbar-thumb {
  background: rgba(157, 78, 221, 0.3);
  border-radius: 5px;
  border: 2px solid #060913;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.5);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Neon Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 9, 19, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 0;
  background: rgba(6, 9, 19, 0.9);
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo span {
  font-size: 14px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 6px;
}

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

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-neon);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-hover);
  color: var(--text-inverse);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(157, 78, 221, 0.05) 50%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(0, 242, 254, 0.05) 50%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 12px;
  transition: var(--transition);
  font-size: 16px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: flow 3s infinite linear;
}

@keyframes flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.speedtest-display {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.speed-metric {
  text-align: center;
}

.speed-val {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.speed-unit {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 4px;
}

.speed-graph {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.graph-bar {
  flex: 1;
  background: rgba(157, 78, 221, 0.2);
  border-radius: 3px 3px 0 0;
  height: 10%;
  transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speedtest-nodes {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.node-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.node-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.node-ping {
  color: var(--primary);
  font-weight: 600;
}

/* Features Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(157, 78, 221, 0.1));
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

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

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(157, 78, 221, 0.3);
}

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

.popular-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 32px;
}

.plan-price .currency {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.plan-price .amount {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.plan-price .period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 8px;
}

.plan-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.plan-features li.disabled {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: line-through;
}

.plan-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

.plan-features li.disabled::before {
  content: '✗';
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.25);
}

.pricing-card .btn {
  width: 100%;
}

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.article-header {
  height: 120px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(157, 78, 221, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.article-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 30%, var(--bg-main) 100%);
  opacity: 0.8;
}

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

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
}

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

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.read-more:hover {
  color: var(--secondary);
}

.read-more span {
  transition: transform 0.2s;
}

.read-more:hover span {
  transform: translateX(4px);
}

/* Article Detail Template Styles */
.article-detail {
  padding-top: 140px;
  min-height: 100vh;
}

.article-detail-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.article-detail-header {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--primary);
}

.article-detail-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-detail-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-detail-meta span strong {
  color: var(--primary);
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #d1d5db;
}

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

.article-content h2 {
  font-size: 26px;
  margin: 40px 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.article-content h3 {
  font-size: 20px;
  margin: 30px 0 16px;
}

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

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

.article-content strong {
  color: #fff;
}

.article-inner-links {
  background: rgba(157, 78, 221, 0.05);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}

.article-inner-links h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--secondary);
}

.article-inner-links ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-inner-links a {
  color: var(--primary);
  font-weight: 500;
}

.article-inner-links a:hover {
  text-decoration: underline;
}

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

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.review-stars {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-inverse);
  font-size: 18px;
}

.author-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.author-info span {
  font-size: 12px;
  color: var(--primary);
}

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

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.faq-item.active {
  border-color: var(--card-hover-border);
}

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

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 24px 24px 24px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s;
}

/* Footer */
footer {
  background: #02040a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo-desc p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-badge {
    margin: 0 auto 24px auto;
  }
  
  .hero-desc {
    margin: 0 auto 40px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-card {
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #060913;
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
