:root {
  --bg: #071126;
  --bg-soft: #0d1a34;
  --text: #eaf1ff;
  --muted: #9ab0da;
  --primary: #4f8cff;
  --primary-hover: #3b78ea;
  --card: #10203f;
  --line: #1e3563;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #050b18 0%, #071126 50%, #08162e 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(122, 176, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 176, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 90%);
}

.neural-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.neural-layer {
  position: absolute;
  inset: 0;
  --base-scale: 1.03;
  opacity: 0.32;
  animation: layerFloat 14s ease-in-out infinite;
}

.neural-layer .node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ab3ff;
  box-shadow: 0 0 14px rgba(113, 170, 255, 0.9);
  animation: nodePulse 2.6s ease-in-out infinite;
}

.neural-layer .link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 176, 255, 0), rgba(130, 176, 255, 0.35), rgba(130, 176, 255, 0));
  overflow: hidden;
}

.neural-layer .link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(176, 215, 255, 0.8), transparent);
  transform: translateX(-120%);
  animation: linkFlow 3.2s linear infinite;
}

.layer-a {
  --base-scale: 1.02;
}

.layer-a .n1 { top: 15%; left: 14%; }
.layer-a .n2 { top: 24%; left: 31%; animation-delay: 0.4s; }
.layer-a .n3 { top: 38%; left: 49%; animation-delay: 1s; }
.layer-a .n4 { top: 27%; left: 67%; animation-delay: 0.7s; }
.layer-a .n5 { top: 19%; left: 82%; animation-delay: 1.2s; }
.layer-a .k1 { top: 19%; left: 15%; width: 19%; transform: rotate(16deg); }
.layer-a .k2 { top: 30%; left: 31%; width: 21%; transform: rotate(20deg); }
.layer-a .k3 { top: 32%; left: 49%; width: 20%; transform: rotate(-19deg); }
.layer-a .k4 { top: 23%; left: 67%; width: 17%; transform: rotate(-13deg); }

.layer-b {
  --base-scale: 1.04;
  opacity: 0.24;
  animation-duration: 18s;
}

.layer-b .n1 { top: 42%; left: 10%; animation-delay: 1s; }
.layer-b .n2 { top: 57%; left: 26%; animation-delay: 0.2s; }
.layer-b .n3 { top: 51%; left: 44%; animation-delay: 1.3s; }
.layer-b .n4 { top: 64%; left: 61%; animation-delay: 0.8s; }
.layer-b .n5 { top: 54%; left: 81%; animation-delay: 1.6s; }
.layer-b .k1 { top: 48%; left: 11%; width: 18%; transform: rotate(28deg); }
.layer-b .k2 { top: 55%; left: 26%; width: 19%; transform: rotate(-10deg); }
.layer-b .k3 { top: 58%; left: 44%; width: 19%; transform: rotate(23deg); }
.layer-b .k4 { top: 59%; left: 61%; width: 20%; transform: rotate(-20deg); }

.layer-c {
  --base-scale: 1.06;
  opacity: 0.2;
  animation-duration: 22s;
}

.layer-c .n1 { top: 76%; left: 16%; animation-delay: 0.5s; }
.layer-c .n2 { top: 70%; left: 34%; animation-delay: 1.1s; }
.layer-c .n3 { top: 82%; left: 49%; animation-delay: 0.1s; }
.layer-c .n4 { top: 74%; left: 66%; animation-delay: 1.4s; }
.layer-c .n5 { top: 86%; left: 84%; animation-delay: 0.9s; }
.layer-c .k1 { top: 74%; left: 17%; width: 19%; transform: rotate(-20deg); }
.layer-c .k2 { top: 76%; left: 34%; width: 16%; transform: rotate(32deg); }
.layer-c .k3 { top: 80%; left: 49%; width: 18%; transform: rotate(-27deg); }
.layer-c .k4 { top: 80%; left: 66%; width: 20%; transform: rotate(25deg); }

.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(5, 12, 27, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #7ab0ff);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
}

.nav a:hover {
  color: #fff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.hero {
  position: relative;
  padding: 110px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(79, 140, 255, 0.2), transparent 42%),
    radial-gradient(circle at 78% 28%, rgba(139, 92, 246, 0.16), transparent 40%);
  pointer-events: none;
  animation: glowShift 9s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b7ccf5;
  margin-bottom: 14px;
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.3px;
}

.hero-desc {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.95;
  max-width: 760px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  border-color: var(--line);
  color: #d5e4ff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-card,
.feature-item,
.product-card,
.case-item {
  background: linear-gradient(180deg, rgba(16, 32, 63, 0.9), rgba(12, 25, 48, 0.9));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(5, 12, 27, 0.35);
}

.hero-card {
  padding: 26px;
}

.ai-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.status-dot {
  font-size: 12px;
  color: #c5d8ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55f3aa;
  box-shadow: 0 0 12px #55f3aa;
  animation: breathing 1.8s ease-in-out infinite;
}

.ai-screen {
  position: relative;
  border: 1px solid rgba(129, 175, 255, 0.3);
  background: rgba(8, 18, 37, 0.8);
  border-radius: 12px;
  padding: 12px 14px;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(79, 140, 255, 0), rgba(79, 140, 255, 0.26), rgba(79, 140, 255, 0));
  animation: scanMove 3.4s linear infinite;
  pointer-events: none;
}

.ai-line {
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #aac2eb;
  border-bottom: 1px dashed rgba(166, 193, 239, 0.18);
  padding-bottom: 8px;
}

.ai-line strong {
  color: #f1f6ff;
  font-weight: 600;
}

.ai-tags {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-tags li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 176, 240, 0.32);
  background: rgba(90, 132, 214, 0.12);
  color: #d4e3ff;
  font-size: 12px;
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  color: var(--muted);
}

.hero-card strong {
  color: #fff;
}

.section {
  padding: 78px 0;
}

.section h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.2px;
}

.muted {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item,
.product-card,
.case-item {
  padding: 24px;
}

.feature-item p,
.product-card p,
.case-item p,
.contact p {
  color: var(--muted);
  line-height: 1.7;
}

.case-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.14), rgba(80, 142, 255, 0.03));
  border: 1px solid rgba(130, 170, 255, 0.3);
  border-radius: 16px;
  padding: 30px;
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #c9d9fb;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes scanMove {
  0% {
    transform: translateY(-46px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(220px);
    opacity: 0;
  }
}

@keyframes breathing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@keyframes glowShift {
  0%,
  100% {
    filter: saturate(100%);
  }
  50% {
    filter: saturate(135%);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.65);
    opacity: 1;
  }
}

@keyframes layerFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(var(--base-scale));
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(calc(var(--base-scale) + 0.03));
  }
}

@keyframes linkFlow {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .product-grid,
  .case-list {
    grid-template-columns: 1fr;
  }

  .nav {
    position: absolute;
    top: 68px;
    right: 4%;
    flex-direction: column;
    gap: 12px;
    background: #0a1732;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    min-width: 180px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }

  .contact-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
