/* ==============================================================
   数智谋 VR 设备控制系统 — 官网
   现代 SaaS / 科技风 · 纯静态 · 离线可运行
   ============================================================== */

:root {
  --bg: #0a0e16;
  --bg-2: #0e1420;
  --panel: #111827;
  --panel-2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #e9eef6;
  --muted: #94a0b6;
  --accent: #5ec8ff;
  --accent-deep: #2b8fe6;
  --mint: #37d0a8;
  --warn: #ffb454;
  --radius: 16px;
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-preload * { transition: none !important; }
body.is-preload .reveal { opacity: 1; transform: none; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 背景氛围 ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% -10%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(94,200,255,0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* ---------- 通用 ---------- */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow.center { text-align: center; }

h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.section { padding: 96px 0; }
.section.dark { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.narrow { max-width: 820px; }
.section-lead {
  color: var(--muted);
  margin-top: 22px;
  font-size: 16.5px;
  max-width: 720px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { text-align: center; }

/* 滚动揭示 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark svg { display: block; width: 28px; height: 28px; }
.mark-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0.55; }
.mark-dot { fill: var(--accent); }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub { font-size: 13px; color: var(--muted); margin-left: 4px; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .active { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 6px 0 22px;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #07121f;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px -10px rgba(94,200,255,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(94,200,255,0.7); }

/* Hero 视觉 */
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.device-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 400px;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.card-badge {
  font-size: 12px; color: var(--mint);
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(55,208,168,0.35);
  background: rgba(55,208,168,0.08);
}
.card-stats { display: flex; gap: 10px; margin-bottom: 16px; }
.stat {
  flex: 1; padding: 12px 10px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px;
}
.stat em { display: block; font-style: normal; font-size: 24px; font-weight: 700; color: var(--text); }
.stat span { font-size: 12px; color: var(--muted); }
.stat.ok em { color: var(--mint); }
.device-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.device-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 10px; font-size: 13.5px;
}
.d-name { flex: 1; color: var(--text); }
.d-status { font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.online { background: var(--mint); box-shadow: 0 0 8px rgba(55,208,168,0.8); }
.dot.busy { background: var(--accent); box-shadow: 0 0 8px rgba(94,200,255,0.8); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px rgba(255,180,84,0.8); }
.card-ops {
  display: flex; gap: 8px; margin-top: 16px;
}
.card-ops span {
  flex: 1; text-align: center; font-size: 12.5px;
  padding: 8px 0; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 9px;
}
.card-ops span:first-child { color: var(--accent); border-color: rgba(94,200,255,0.35); background: rgba(94,200,255,0.06); }

/* 环绕光效 */
.art-orbit {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 1px dashed rgba(94,200,255,0.2);
  animation: spin 34s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.art-node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); filter: blur(1px);
  box-shadow: 0 0 12px rgba(94,200,255,0.9);
  animation: pulse 3s ease-in-out infinite;
}
.art-node.n1 { top: 30px; left: 16%; }
.art-node.n2 { bottom: 60px; right: 10%; animation-delay: 1.4s; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- 核心能力 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 28px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(94,200,255,0.35);
  background: rgba(94,200,255,0.04);
}
.f-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 11px;
  background: rgba(94,200,255,0.1);
  border: 1px solid rgba(94,200,255,0.25);
}
.f-ico svg { width: 22px; height: 22px; }
.ico { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- 使用方式 ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}
.flow-item {
  padding: 30px 26px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  position: relative;
}
.flow-num {
  font-size: 13px; letter-spacing: 0.1em; color: var(--accent);
  font-weight: 700;
}
.flow-item h3 { font-size: 18px; font-weight: 700; margin: 10px 0 8px; }
.flow-item p { color: var(--muted); font-size: 14.5px; }
.flow-arrow { align-self: center; color: var(--accent); font-size: 22px; opacity: 0.7; }

.note {
  display: flex; gap: 12px;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(94,200,255,0.05);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 820px;
  margin: 0 auto;
}
.note strong { color: var(--text); margin-right: 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 34px 0; background: var(--bg-2); }
.footer .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand .brand-sub { font-size: 13px; }
.footer-meta { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; }
.footer-meta a:hover { color: var(--text); }

/* ==============================================================
   移动端自适应
   ============================================================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 360px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; padding: 4px 0; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .section { padding: 68px 0; }
  .hero { padding: 44px 0 64px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,14,22,0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.32s ease;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--line-soft); }
  .nav-links a:hover { background: rgba(255,255,255,0.03); }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .features-grid { grid-template-columns: 1fr; }
  .card-stats { flex-wrap: wrap; }
  .footer .container { flex-direction: column; align-items: flex-start; }
  .footer-meta { gap: 12px; flex-wrap: wrap; }
}