:root {
  --bg-deep: #070b14;
  --bg-mid: #0c1220;
  --surface: rgba(12, 18, 34, 0.72);
  --surface-strong: rgba(16, 24, 44, 0.88);
  --text: #e8eef8;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --spark: #fbbf24;
  --vector: #22d3ee;
  --glow: rgba(56, 189, 248, 0.35);
  --header-h: 4rem;
  --radius: 16px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- llm-wiki 风格荧光知识图谱（Canvas） ---------- */
.network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background:
    radial-gradient(ellipse 75% 55% at 50% 45%, rgba(56, 189, 248, 0.05), transparent 58%),
    linear-gradient(180deg, #070b14 0%, #0a1020 50%, #050810 100%);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-wordmark {
  display: block;
  height: 1.65rem;
  width: auto;
  max-width: min(42vw, 11rem);
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-copy {
  text-align: center;
  max-width: min(100%, 56rem);
  transform: translateY(-1cm);
}

@media (min-width: 901px) {
  .hero-copy {
    transform: translateY(-3.5cm);
  }
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.12);
}

.hero-logo {
  display: block;
  width: min(72vw, 22rem);
  height: auto;
  margin-inline: auto;
  margin-top: 2cm;
  object-fit: contain;
  filter:
    drop-shadow(0 0 14px rgba(34, 211, 238, 0.45))
    drop-shadow(0 0 28px rgba(129, 140, 248, 0.28));
}

.hero-subtitle {
  display: block;
  margin-top: 1.45rem;
  font-size: clamp(1.35rem, 3.9vw, 2.25rem);
  font-weight: 500;
  font-style: normal;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(99, 102, 241, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.section {
  padding: 4rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

#about .section-head {
  max-width: 54rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.35rem;
  min-height: 100%;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #f1f5f9;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.info-card.is-placeholder {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.product-card-body {
  min-width: 0;
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.product-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 22%;
  filter:
    drop-shadow(0 0 4px rgba(34, 211, 238, 0.55))
    drop-shadow(0 0 8px rgba(56, 189, 248, 0.32))
    drop-shadow(0 0 4px rgba(129, 140, 248, 0.4))
    drop-shadow(0 0 8px rgba(168, 85, 247, 0.22));
}

.product-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-item {
  padding: 1.15rem 1.25rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-item span,
.contact-item a {
  font-size: 1rem;
  color: var(--text);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  color: #64748b;
  font-size: 0.86rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(8px);
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--muted);
}

@media (max-width: 900px) {
  .card-grid,
  .contact-grid,
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card {
    gap: 1rem;
  }

  .site-nav {
    display: none;
  }

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

/* ---------- 入口页（LOGO 荧光 + 球体聚集） ---------- */
body.gate-page {
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-deep);
}

.network-stack {
  position: fixed;
  inset: 0;
  isolation: isolate;
}

.network-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  pointer-events: none;
}

.network-layer-back {
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 45%, rgba(56, 189, 248, 0.05), transparent 58%),
    linear-gradient(180deg, #070b14 0%, #0a1020 50%, #050810 100%);
}

.network-layer-front {
  z-index: 2;
  background: transparent;
}

.gate-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: visible;
}

.logo-hub {
  position: relative;
  display: block;
  overflow: visible;
  padding: 128px;
  margin: -128px;
  pointer-events: none;
  text-decoration: none;
  outline: none;
}

.logo-wrap {
  position: relative;
  display: block;
  width: min(52vw, 320px);
  overflow: visible;
  pointer-events: none;
}

.logo-hub:hover,
.logo-hub:focus-visible {
  text-decoration: none;
}

.logo-hub:focus-visible .logo-core {
  outline: 2px solid rgba(34, 211, 238, 0.65);
  outline-offset: 12px;
}

.logo-core {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: center center;
  filter:
    drop-shadow(0 0 6px rgba(34, 211, 238, 0.88))
    drop-shadow(0 0 14px rgba(56, 189, 248, 0.58))
    drop-shadow(0 0 6px rgba(129, 140, 248, 0.72))
    drop-shadow(0 0 14px rgba(168, 85, 247, 0.42));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.logo-core:hover {
  transform: scale(1.04);
}

.logo-hub.is-focused .logo-core {
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 8px rgba(34, 211, 238, 0.95))
    drop-shadow(0 0 18px rgba(56, 189, 248, 0.72))
    drop-shadow(0 0 8px rgba(129, 140, 248, 0.88))
    drop-shadow(0 0 18px rgba(168, 85, 247, 0.55));
}

.logo-hub.is-gathered .logo-core {
  transform: scale(1.1);
  filter:
    drop-shadow(0 0 10px rgba(34, 211, 238, 1))
    drop-shadow(0 0 22px rgba(56, 189, 248, 0.82))
    drop-shadow(0 0 10px rgba(129, 140, 248, 0.95))
    drop-shadow(0 0 22px rgba(168, 85, 247, 0.62));
}

@media (max-width: 640px) {
  .logo-wrap {
    width: min(68vw, 260px);
  }

  .logo-hub {
    padding: 88px;
    margin: -88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .logo-core:hover,
  .logo-hub.is-focused .logo-core,
  .logo-hub.is-gathered .logo-core {
    transform: none;
  }
}
