:root {
  --bg: #090514;
  --bg-alt: #110924;
  --surface: rgba(23, 15, 43, 0.74);
  --surface-hover: rgba(34, 22, 62, 0.88);
  --border: rgba(192, 132, 252, 0.16);
  --border-accent: rgba(168, 85, 247, 0.48);
  --text: #f5f3ff;
  --text-muted: #a79ec2;
  --primary: #a855f7;
  --secondary: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(4, 2, 12, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* 背景网格与光晕 */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 25%, #000 35%, transparent 80%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
}

.glow-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -180px;
  left: -120px;
}

.glow-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  top: 120px;
  right: -180px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.35);
}

.btn-outline {
  background: rgba(23, 15, 43, 0.6);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--border-accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 5, 20, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--primary);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.925rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 19, 0.96);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.45rem 0;
  color: var(--text-muted);
}

.mobile-menu-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Hero 区域 */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.5rem;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(95deg, #c084fc 0%, #f472b6 55%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* 右侧监控面板 */
.hero-panel {
  padding: 1.35rem;
  border-color: rgba(168, 85, 247, 0.22);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.btn-ping {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.btn-ping:hover {
  background: rgba(168, 85, 247, 0.2);
}

.btn-ping svg {
  width: 14px;
  height: 14px;
}

.btn-ping.spinning svg {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ping-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.ping-region {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flag {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9px;
  background: rgba(236, 72, 153, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(236, 72, 153, 0.3);
  flex-shrink: 0;
}

.ping-region strong {
  display: block;
  font-size: 0.9rem;
}

.ping-region small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ping-metrics {
  text-align: right;
  flex-shrink: 0;
}

.latency {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.latency.good { color: var(--success); }
.latency.mid { color: var(--warning); }

.load-bar {
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  margin-top: 4px;
  overflow: hidden;
}

.load-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
}

.panel-footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-green {
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}

/* 通用区块 */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(10, 16, 32, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
}

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

.feature-card {
  padding: 1.65rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.2));
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

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

/* 节点筛选 */
.node-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(23, 15, 43, 0.6);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.node-card {
  padding: 1.45rem;
}

.node-card.hidden {
  display: none;
}

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

.node-code {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.node-badge {
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(236, 72, 153, 0.16);
  color: #c7d2fe;
}

.node-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.node-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.node-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* 套餐方案 */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(23, 15, 43, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
  width: fit-content;
  margin: 0 auto 2.5rem;
}

.billing-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.billing-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

.save-tag {
  font-size: 0.72rem;
  padding: 0.1rem 0.38rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  margin-left: 0.2rem;
}

.billing-btn.active .save-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, rgba(23, 15, 43, 0.88) 45%);
  transform: translateY(-6px);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

.price-head h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.price-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-value {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.amount {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-features li strong {
  color: var(--text);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* 三步上手 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 1.5rem;
}

.step-card {
  padding: 1.75rem;
}

.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  margin-bottom: 0.9rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.platforms-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.platform-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.platform-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.faq-arrow {
  font-size: 1.35rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.faq-answer p {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 底部 CTA */
.cta-box {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-color: var(--border-accent);
  background: linear-gradient(125deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.14));
}

.cta-box h2 {
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
}

.cta-box p {
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: #06030e;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

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

.footer-brand strong {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

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

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

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.modal h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-form input {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 9, 19, 0.85);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.modal-tip {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--success);
  min-height: 1.2em;
}

/* 响应式 */
@media (max-width: 980px) {
  .hero-grid,
  .features-grid,
  .nodes-grid,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .platforms-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 2.75rem;
  }
}
