/* 芬特实验室 Fant Labs — www.fant.dev
   神秘 · 简洁 · 光线粒子 */

:root {
  --bg: #04060e;
  --bg-2: #070b18;
  --ink: #e8edf7;
  --ink-dim: #93a0bd;
  --ink-faint: #5a6785;
  --brand: #3b6fe0;
  --brand-deep: #1b3f9e;
  --glow: rgba(96, 148, 255, 0.55);
  --line: rgba(148, 170, 220, 0.14);
  --serif-en: "SF Mono", "JetBrains Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(59, 111, 224, 0.35); }

/* ---------- 背景层 ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(2, 4, 10, 0.55) 100%),
    radial-gradient(80% 60% at 50% 45%, rgba(27, 63, 158, 0.07), transparent 70%);
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(rgba(4, 6, 14, 0.55), rgba(4, 6, 14, 0));
  border-bottom: 1px solid transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon { width: 30px; height: 30px; filter: drop-shadow(0 0 10px var(--glow)); }

.brand-name { font-size: 16px; font-weight: 500; letter-spacing: 0.08em; }

.brand-en {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
}

.nav-links { display: flex; gap: 36px; }

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--ink); text-shadow: 0 0 14px var(--glow); }

/* ---------- 通用排版 ---------- */
.eyebrow {
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--brand);
  text-shadow: 0 0 18px var(--glow);
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.section-title .en {
  font-family: var(--serif-en);
  font-size: 0.42em;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  vertical-align: 0.5em;
  margin-left: 0.6em;
}

.section-lead {
  max-width: 620px;
  margin-top: 26px;
  color: var(--ink-dim);
  font-size: 16.5px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 6vw 80px;
}

.hero-title {
  font-size: clamp(46px, 8.6vw, 108px);
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: 0.10em;
}

.hero-title em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(115deg, #cfe0ff 10%, #6f9bff 45%, #3b6fe0 75%, #8fb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(80, 130, 255, 0.35));
}

.hero-sub {
  margin-top: 34px;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.06em;
}

.hero-cta { margin-top: 52px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 13px 34px;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.35s;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  box-shadow: 0 0 26px rgba(59, 111, 224, 0.35);
}

.btn-primary:hover { box-shadow: 0 0 44px rgba(89, 138, 255, 0.6); transform: translateY(-2px); }

.btn-ghost {
  color: var(--ink-dim);
  border: 1px solid var(--line);
}

.btn-ghost:hover { color: var(--ink); border-color: rgba(148, 170, 220, 0.45); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: linear-gradient(transparent, rgba(148, 170, 220, 0.5));
  overflow: hidden;
}

.scroll-hint span {
  position: absolute;
  top: -20px;
  left: 0;
  width: 1px;
  height: 20px;
  background: #cfe0ff;
  animation: drip 2.2s ease-in-out infinite;
}

@keyframes drip {
  0% { top: -20px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 64px; opacity: 0; }
}

/* ---------- 区块 ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 15vh 6vw;
  position: relative;
}

/* ---------- 产品特性 ---------- */
.feature-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2);
  padding: 38px 30px 42px;
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 180px at 50% -20%, rgba(80, 130, 255, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover::after { opacity: 1; }

.card-glyph {
  font-size: 22px;
  color: var(--brand);
  text-shadow: 0 0 16px var(--glow);
  margin-bottom: 22px;
}

.card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.card p { font-size: 14px; color: var(--ink-dim); line-height: 1.8; }

/* ---------- 轨道视觉 ---------- */
.orbit-visual {
  position: relative;
  width: min(420px, 70vw);
  aspect-ratio: 1;
  margin: 12vh auto 0;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(120, 155, 235, 0.16);
}

.orbit-ring::before {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9dbcff;
  box-shadow: 0 0 12px 3px rgba(120, 160, 255, 0.7);
}

.r1 { animation: spin 14s linear infinite; }
.r2 { inset: 16%; animation: spin 22s linear infinite reverse; border-color: rgba(120, 155, 235, 0.11); }
.r3 { inset: 32%; animation: spin 30s linear infinite; border-color: rgba(120, 155, 235, 0.08); }

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

.orbit-core {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #7ea4ff, var(--brand-deep) 70%);
  box-shadow:
    0 0 40px 8px rgba(59, 111, 224, 0.45),
    0 0 120px 30px rgba(27, 63, 158, 0.25);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 40px 8px rgba(59, 111, 224, 0.45), 0 0 120px 30px rgba(27, 63, 158, 0.25); }
  50% { box-shadow: 0 0 60px 14px rgba(89, 138, 255, 0.6), 0 0 160px 44px rgba(27, 63, 158, 0.35); }
}

/* ---------- 基础设施 ---------- */
.infra-list { list-style: none; margin-top: 60px; }

.infra-list li {
  display: flex;
  gap: 40px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.infra-list li:last-child { border-bottom: 1px solid var(--line); }

.infra-no {
  font-family: var(--serif-en);
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.2em;
  text-shadow: 0 0 14px var(--glow);
  flex-shrink: 0;
}

.infra-list h3 { font-size: 19px; font-weight: 400; letter-spacing: 0.08em; margin-bottom: 8px; }

.infra-list p { font-size: 14.5px; color: var(--ink-dim); max-width: 560px; }

/* ---------- 关于 ---------- */
.about-more {
  margin-top: 44px;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); }

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.footer-en {
  font-family: var(--serif-en);
  font-size: 10.5px;
  letter-spacing: 0.3em;
}

/* ---------- 渐显动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .r1, .r2, .r3, .orbit-core, .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 13px; }
  .brand-en { display: none; }
  .infra-list li { flex-direction: column; gap: 10px; }
}

/* ---------- 整页截图模式（?noanim&flat） ---------- */
body.flat .hero { min-height: 0; padding-top: 200px; }
body.flat .section { padding-top: 90px; padding-bottom: 90px; }
body.flat .orbit-visual { margin-top: 90px; }
body.flat .scroll-hint { display: none; }
