/* =============================
   CSS 设计系统 · 自元探微官网
   ============================= */

:root {
  --bg-deep: #080C14;
  --bg-mid: #0A1628;
  --bg-card: rgba(255,255,255,0.04);
  --cyan: #00D4FF;
  --violet: #7C3AED;
  --green: #00FF94;
  --text-primary: #E8F4FF;
  --text-secondary: #7AA5C5;
  --border: rgba(0,212,255,0.15);
  --glow-cyan: 0 0 20px rgba(0,212,255,0.4);
  --glow-violet: 0 0 20px rgba(124,58,237,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-menu a:hover { color: var(--cyan); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px !important;
}
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 700px;
}
.hero-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: 0.8;
}
.hero-title {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 30px rgba(0,212,255,0.3);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-ghost:hover { background: rgba(0,212,255,0.1); transform: translateY(-2px); }

/* BRAIN VISUAL */
.hero-brain {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.5;
}
.brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: ringPulse 3s ease-in-out infinite;
}
.ring1 { width: 200px; height: 200px; animation-delay: 0s; }
.ring2 { width: 280px; height: 280px; animation-delay: 0.5s; opacity: 0.5; }
.ring3 { width: 360px; height: 360px; animation-delay: 1s; opacity: 0.25; }
.brain-core {
  position: relative;
  animation: floatAnim 4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { opacity: 0.4; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%,-50%) scale(1.05); }
}
@keyframes floatAnim {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* HERO SCROLL */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 2px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* GLITCH */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--cyan);
  animation: glitchTop 4s infinite linear;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
}
.glitch::after {
  color: var(--violet);
  animation: glitchBot 4s infinite linear;
  clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
}
@keyframes glitchTop {
  0%,90%,100% { transform: none; opacity: 0; }
  92% { transform: translateX(-3px); opacity: 0.8; }
  94% { transform: translateX(3px); opacity: 0.5; }
  96% { transform: translateX(-2px); opacity: 0.8; }
  98% { transform: none; opacity: 0; }
}
@keyframes glitchBot {
  0%,90%,100% { transform: none; opacity: 0; }
  93% { transform: translateX(3px); opacity: 0.8; }
  95% { transform: translateX(-3px); opacity: 0.5; }
  97% { transform: translateX(2px); opacity: 0.8; }
  99% { transform: none; opacity: 0; }
}

/* FADE IN ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}

/* ---- SECTION COMMONS ---- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.center { text-align: center; }
.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 60px;
}
.section-sub.center { text-align: center; }

/* ---- ABOUT ---- */
.about { background: var(--bg-mid); }
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.stats-row {
  display: flex;
  gap: 32px;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--cyan);
}
.stat-unit { font-size: 20px; color: var(--cyan); }
.stat p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.about-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}
.about-card .card-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(0,212,255,0.2);
  margin-bottom: 8px;
}
.about-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- ARCH ---- */
.arch-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 20px;
}
.arch-node {
  flex: 0 0 160px;
  text-align: center;
  padding: 20px 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.arch-node.visible { opacity: 1; transform: none; }
.node-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 24px rgba(0,212,255,0.4);
  position: relative;
}
.node-circle.accent {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 24px rgba(0,255,148,0.4);
}
.node-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.node-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.arch-arrow {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}
.flow-dot {
  animation: flowDot 1.5s linear infinite;
}
@keyframes flowDot {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(50px); opacity: 0; }
}

/* ---- PRODUCTS ---- */
.products { background: var(--bg-mid); }
.products::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}
/* Desktop: grid layout */
.products-track-wrap {
  overflow: visible;
  margin: 0;
}
.products-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  transition: transform 0.4s ease;
}
.product-card {
  flex: none;
  width: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-6px);
}
.product-card:hover::before { opacity: 1; }
.product-card.featured {
  border-color: rgba(0,255,148,0.4);
}
.product-card.featured::before {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  opacity: 1;
}
.product-icon { margin-bottom: 12px; }
.product-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.product-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
}
.product-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}
.track-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: var(--cyan);
  transform: scale(1.3);
}

/* ---- SCENES ---- */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.bento-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.bento-large { grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-visual {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.bento-bg-anim {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.1), transparent 70%);
  animation: bentoGlow 3s ease-in-out infinite;
}
@keyframes bentoGlow {
  0%,100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.bento-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.bento-card p, .bento-card li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.bento-card li::before { content: '→ '; color: var(--cyan); }
.bento-card li { margin-bottom: 6px; }
.bento-icon { font-size: 32px; margin-bottom: 16px; }
.bento-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bento-tags span {
  font-size: 11px;
  color: var(--green);
  border: 1px solid rgba(0,255,148,0.3);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---- TRUST ---- */
.trust {
  background: var(--bg-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.12), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.trust-inner { position: relative; z-index: 1; }
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 60px 0;
  flex-wrap: wrap;
}
.trust-stat { text-align: center; }
.trust-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-stat span:last-of-type {
  font-size: 24px;
  color: var(--cyan);
}
.trust-stat p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.trust-quote {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
  border: 1px solid var(--border);
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  max-width: 600px;
  background: var(--bg-card);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { flex: 0 0 240px; }
.footer-tagline {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 12px;
}
.footer-en {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(122,165,197,0.5);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex: 1;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(122,165,197,0.5);
}

/* ---- SCROLL REVEAL ---- */
.reveal.visible {
  animation: revealUp 0.6s ease both;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-large { grid-row: span 1; grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
  .hero-brain { display: none; }
  .trust-stats { gap: 32px; }
  .trust-num { font-size: 40px; }
  .products-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: #080C14;
    justify-content: center;
    align-items: center;
    gap: 28px;
    animation: menuFadeIn 0.25s ease;
  }
  @keyframes menuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a {
    font-size: 22px !important;
    color: var(--text-primary) !important;
    letter-spacing: 1px;
  }
  .nav-menu a:hover::after { display: none; }
  .nav-menu .nav-cta {
    font-size: 16px !important;
    padding: 14px 36px;
    margin-top: 8px;
  }
  .nav-toggle { display: flex; z-index: 10000; position: relative; }
  /* Hamburger → X animation */
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about-right { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }
  .arch-flow { gap: 8px; }
  .arch-arrow { flex: 0 0 30px; }
  .arch-node { flex: 0 0 120px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .stats-row { gap: 20px; }
  /* Mobile product slider */
  .products-track-wrap {
    overflow: hidden;
    margin: 0 -20px;
  }
  .products-track {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    transition: transform 0.4s ease;
    grid-template-columns: none;
  }
  .product-card {
    flex: 0 0 240px;
    min-height: 240px;
  }
  .track-dots { display: flex; }
}
