/* Nexus 生态官网 — 与 NexusMind 风格统一
   毛玻璃暗黑、Outfit、青色强调 #00e5ff */

:root {
  --nx-bg: #08090c;
  --nx-bg-soft: #0c0e12;
  --nx-card: rgba(20, 23, 29, 0.75);
  --nx-glass: rgba(20, 23, 29, 0.6);
  --nx-text: #e6e8ec;
  --nx-muted: #9ba0ab;
  --nx-accent: #00e5ff;
  --nx-accent-dim: #00b8d4;
  --nx-glow: rgba(0, 229, 255, 0.25);
  --nx-border: rgba(255, 255, 255, 0.06);
  --nx-radius: 14px;
  --nx-radius-sm: 10px;
  --nx-font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--nx-font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--nx-text);
  background: var(--nx-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.nx-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- 顶部导航 ----- */
.nx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--nx-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nx-border);
}

.nx-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--nx-text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nx-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nx-accent-dim), var(--nx-accent));
  color: var(--nx-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 20px var(--nx-glow);
}

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

.nx-nav-link {
  color: var(--nx-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nx-nav-link:hover {
  color: var(--nx-accent);
}

.nx-nav-auth .nx-btn,
.nx-user {
  font-size: 0.9rem;
}

.nx-user {
  color: var(--nx-muted);
}

.nx-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--nx-border);
  background: transparent;
  color: var(--nx-text);
  border-radius: var(--nx-radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nx-nav-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

@media (max-width: 768px) {
  .nx-nav-links {
    display: none;
  }
  .nx-nav-toggle {
    display: flex;
  }
  .nx-nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nx-glass);
    backdrop-filter: blur(16px);
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--nx-border);
  }
}

/* ----- 按钮 ----- */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--nx-font);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--nx-radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nx-btn-primary {
  background: linear-gradient(135deg, var(--nx-accent-dim), var(--nx-accent));
  color: var(--nx-bg);
  border: none;
  box-shadow: 0 0 24px var(--nx-glow);
}

.nx-btn-primary:hover {
  box-shadow: 0 0 32px var(--nx-glow);
  transform: translateY(-1px);
}

.nx-btn-ghost {
  background: transparent;
  color: var(--nx-accent);
  border: 1px solid var(--nx-accent);
}

.nx-btn-ghost:hover {
  background: rgba(0, 229, 255, 0.08);
}

.nx-btn-card {
  margin-top: 1rem;
  background: rgba(0, 229, 255, 0.12);
  color: var(--nx-accent);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.nx-btn-card:hover {
  background: rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--nx-glow);
}

/* ----- Hero ----- */
.nx-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.nx-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.nx-hero-tag {
  position: relative;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--nx-accent);
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.nx-hero-title {
  position: relative;
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.nx-hero-desc {
  position: relative;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--nx-muted);
  max-width: 520px;
  margin: 0 0 2.25rem;
  line-height: 1.65;
}

.nx-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.nx-hero-actions .nx-btn {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.nx-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.nx-scroll-icon {
  display: block;
  position: relative;
  width: 24px;
  height: 36px;
  border: 2px solid var(--nx-accent);
  border-radius: 12px;
  opacity: 0.6;
}

.nx-scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: -2px;
  width: 4px;
  height: 8px;
  background: var(--nx-accent);
  border-radius: 2px;
  animation: nx-scroll 2s ease-in-out infinite;
}

@keyframes nx-scroll {
  0%, 100% { opacity: 0; top: 6px; }
  50% { opacity: 1; top: 14px; }
}

/* ----- 产品卡片区 ----- */
.nx-products {
  padding: 4rem 1.5rem;
  position: relative;
}

.nx-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nx-muted);
  text-align: center;
  margin: 0 0 2.5rem;
}

.nx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nx-card {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.nx-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 40px var(--nx-glow);
  border-color: rgba(0, 229, 255, 0.2);
}

.nx-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-icon-mind,
.nx-icon-flow,
.nx-icon-ai,
.nx-icon-hand,
.nx-icon-geekhub {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-accent);
}

.nx-icon-mind::before { content: 'M'; }
.nx-icon-flow::before { content: 'F'; }
.nx-icon-ai::before { content: 'AI'; }
.nx-icon-hand::before { content: 'H'; }
.nx-icon-geekhub::before { content: 'G'; }

/* GeekHub 卡片单独一行时居中（4+1 布局） */
@media (min-width: 900px) {
  .nx-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .nx-card-geekhub {
    grid-column: 2 / 4;
  }
}

.nx-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.nx-card-desc {
  font-size: 0.9rem;
  color: var(--nx-muted);
  margin: 0;
  line-height: 1.45;
}

/* ----- 生态闭环 ----- */
.nx-ecosystem {
  position: relative;
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.nx-ecosystem-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.nx-ecosystem .nx-section-title {
  margin-bottom: 1rem;
}

.nx-ecosystem-slogan {
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nx-accent);
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}

.nx-flow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.nx-flow-node {
  padding: 0.75rem 1.25rem;
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nx-flow-node:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 20px var(--nx-glow);
}

.nx-flow-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-accent);
}

.nx-flow-label {
  font-size: 0.75rem;
  color: var(--nx-muted);
}

.nx-flow-arrow {
  color: var(--nx-accent);
  opacity: 0.7;
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .nx-flow-arrow {
    display: none;
  }
  .nx-flow-node::after {
    content: ' → ';
    color: var(--nx-accent);
    opacity: 0.7;
  }
  .nx-flow-node:last-child::after {
    display: none;
  }
}

/* ----- 页脚 ----- */
.nx-footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--nx-border);
  background: var(--nx-bg-soft);
}

.nx-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nx-footer-copy {
  font-size: 0.85rem;
  color: var(--nx-muted);
  margin: 0;
}

.nx-footer-links {
  display: flex;
  gap: 1.5rem;
}

.nx-footer-links a {
  font-size: 0.85rem;
  color: var(--nx-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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