/* EDGE-X 官网导航页 - 黑曜石翡翠与炽金极光 (Obsidian Emerald & Solar Gold) 专属主题 */
:root {
  --bg-primary: #050a0f;
  --bg-secondary: #0a131c;
  --bg-card: rgba(10, 19, 28, 0.78);
  --bg-card-hover: rgba(16, 29, 44, 0.88);
  
  /* 专属全新配色: 翡翠绿 + 炽阳金 + 电光蓝 */
  --accent-emerald: #00ff9d;
  --accent-green: #10b981;
  --accent-gold: #ffb703;
  --accent-amber: #fb8500;
  --accent-cyan: #00d2ff;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(0, 255, 157, 0.12);
  --border-glow: rgba(0, 255, 157, 0.38);
  --green-status: #00ff9d;
  --yellow-status: #ffb703;
  --red-status: #ef4444;
  
  --shadow-glow: 0 0 25px rgba(0, 255, 157, 0.2);
  --shadow-gold-glow: 0 0 25px rgba(255, 183, 3, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 动态背景 Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* 页面容器 */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 渐变字体 - 翡翠转炽金 */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 头部导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 10, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050a0f;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.45);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-emerald);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 按钮通用样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald), #00b4d8);
  color: #040810;
  box-shadow: 0 4px 20px rgba(0, 255, 157, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 255, 157, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(0, 255, 157, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(0, 255, 157, 0.1);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-2px);
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #050a0f;
  box-shadow: 0 4px 20px rgba(255, 183, 3, 0.4);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 183, 3, 0.65);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--accent-emerald);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 157, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 48px;
}

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

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-emerald);
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 板块通用标头 */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
}

/* 核心优势板块 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--accent-emerald);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 节点延迟与状态板块 */
.node-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
}

.node-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.node-info-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.node-card {
  background: rgba(5, 10, 15, 0.7);
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-fast);
}

.node-card:hover {
  border-color: var(--accent-emerald);
  background: rgba(10, 19, 28, 0.95);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.15);
}

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

.node-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.node-flag {
  font-size: 20px;
}

.node-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  background: rgba(0, 255, 157, 0.15);
  color: var(--accent-emerald);
}

.node-ping-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.ping-label {
  font-size: 12px;
  color: var(--text-dim);
}

.ping-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: monospace;
}

.node-load-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.node-load-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.node-load-txt {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* 套餐价格板块 */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.toggle-label.active {
  color: var(--text-main);
}

.toggle-switch {
  width: 54px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.toggle-handle {
  width: 22px;
  height: 22px;
  background: var(--accent-emerald);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.toggle-switch.annual .toggle-handle {
  transform: translateX(25px);
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.save-badge {
  background: rgba(255, 183, 3, 0.18);
  color: var(--accent-gold);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid rgba(255, 183, 3, 0.35);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.price-card.popular {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-glow);
  background: linear-gradient(180deg, rgba(16, 29, 44, 0.95), rgba(10, 19, 28, 0.85));
}

.pop-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber));
  color: #050a0f;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 38px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--text-main);
}

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

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

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

.plan-features li .check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

/* 用户评价板块 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
}

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

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #050a0f;
}

.user-name {
  font-weight: 700;
  font-size: 16px;
}

.user-tag {
  font-size: 12px;
  color: var(--accent-emerald);
}

.stars {
  color: var(--accent-gold);
  font-size: 14px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 常见问题 (FAQ) 板块 */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  font-size: 16px;
  color: var(--accent-emerald);
}

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

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

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

/* 知识库与教程板块 */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(4, 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;
  transition: var(--transition-normal);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-glow);
}

.article-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(0, 255, 157, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  margin-bottom: 14px;
}

.article-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-main);
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

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

.read-link {
  color: var(--accent-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 文章模态框阅读器 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #0a131c;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: var(--red-status);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.8;
}

.modal-body h2 {
  color: var(--accent-emerald);
  margin: 24px 0 12px 0;
  font-size: 20px;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body ul, .modal-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body code {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-emerald);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.modal-body .cta-box {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), rgba(255, 183, 3, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 28px 0;
}

/* 页脚 */
.footer {
  background: #03060a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 14px;
  line-height: 1.6;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .hero-title { font-size: 42px; }
  .features-grid, .reviews-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .node-grid, .tutorials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid, .reviews-grid, .pricing-grid, .node-grid, .tutorials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
