/* ═══════════════════════════════════════════════════════════
   YOLO Studio — 神经场域版 V14.0 (Neural Field)
   模块：生成式 AI 背景 | 视差深度 | 磨砂交互
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-core: #050505;
  --accent-blue: #22d3ee;
  --apple-blue: #0071e3;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", sans-serif;
  background-color: var(--bg-core);
  color: var(--white);
  overflow-x: hidden;
}

/* 1. 极致炫技：Canvas 神经网络动态背景 */
#neural-canvas {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.6;
}

/* 2. 增强导航栏 (对齐修正) */
.navbar {
  position: fixed; top: 0; width: 100%; height: 50px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  height: 100%; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}

.nav-links {
  display: flex; gap: 40px; list-style: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.github-link:hover {
  border-color: rgba(34, 211, 238, 0.45) !important;
  background: rgba(34, 211, 238, 0.12) !important;
}
.nav-link {
  color: #a1a1aa; text-decoration: none; font-size: 13px;
  transition: 0.3s; letter-spacing: -0.01em;
}
.nav-link:hover { color: #fff; }
.menu-toggle {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn-luxury {
  background: var(--apple-blue); color: #fff;
  padding: 6px 16px; border-radius: 99px; font-weight: 600;
  font-size: 12px; text-decoration: none;
  transition: 0.3s;
}

/* 3. 页面板块样式 */
.section {
  min-height: 100vh; padding: 120px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, #86868b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.05; text-align: center;
}

/* 特色玻璃磁贴 */
.glass-tile {
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 32px; padding: 48px;
  border: 1px solid rgba(255,160,255,0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-tile:hover {
  background: rgba(40, 40, 45, 0.6);
  border-color: var(--accent-blue);
  transform: translateY(-8px);
}

/* 自适应侧边点 */
.dots-container {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 20px; z-index: 1000;
}
.dot-node {
  width: 6px; height: 6px; background: rgba(255,255,255,0.2);
  border-radius: 50%; transition: 0.3s;
}
.dot-node.active { background: #fff; transform: scale(1.6); }

/* 动画揭示 */
.reveal { opacity: 0; transform: translateY(50px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 4. 极致交互：推理仿真引擎 */
.inference-sim {
  width: 100%; max-width: 1000px; height: 520px;
  background: #000; border-radius: 36px; border: 1px solid rgba(255,255,255,0.12);
  display: flex; overflow: hidden; box-shadow: 0 60px 120px rgba(0,0,0,0.8);
}

.sim-viewport {
  flex: 1; position: relative; cursor: none;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  overflow: hidden;
}

.vision-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.tracker-box {
  position: absolute; width: 140px; height: 140px;
  border: 1.5px solid #22d3ee; pointer-events: none;
  transition: transform 0.1s ease-out; box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}
.tracker-box .label-tag {
  position: absolute; top: -24px; left: -1px; background: #22d3ee;
  color: #000; font-size: 10px; font-weight: 800; padding: 2px 6px;
}
.corner { position: absolute; width: 10px; height: 10px; border: 2px solid #22d3ee; }
.t-l { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.t-r { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.b-l { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.b-r { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.scan-line-v {
  position: absolute; top: 0; left: 0; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, #22d3ee, transparent);
  animation: scan-v 4s linear infinite;
}
@keyframes scan-v { from { left: 0; } to { left: 100%; } }

.sim-controls {
  width: 280px; background: #0a0a0b; border-left: 1px solid rgba(255,255,255,0.08);
  padding: 40px 30px; display: flex; flex-direction: column; gap: 40px;
}
.control-header { font-size: 10px; color: #52525b; letter-spacing: 2px; font-weight: 700; }

.radio-group { display: flex; flex-direction: column; gap: 12px; }
.radio-btn {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: #a1a1aa; padding: 14px; border-radius: 14px; cursor: pointer;
  font-size: 14px; text-align: left; transition: all 0.3s;
}
.radio-btn.active { 
  background: #22d3ee20; border-color: #22d3ee; color: #fff;
}

.live-stats { display: flex; flex-direction: column; gap: 20px; }
.s-row { display: flex; justify-content: space-between; font-size: 13px; }
.s-row span:first-child { color: #52525b; }
.s-row span:last-child { font-weight: 700; font-family: monospace; }

@media (max-width: 1024px) {
  .dots-container {
    display: none;
  }

  .section {
    min-height: auto;
    padding: 96px 20px;
  }

  #features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .navbar {
    height: 64px;
  }

  .nav-wrap {
    position: relative;
    max-width: none;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 16px !important;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 0;
  }

  .nav-link {
    display: block;
    font-size: 15px;
    padding: 12px 18px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
    line-height: 1.55;
    margin: 24px auto 36px !important;
  }

  .hero-cta {
    padding: 14px 32px !important;
    font-size: 20px !important;
  }

  #features {
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .glass-tile,
  .glass-panel {
    padding: 24px !important;
    border-radius: 22px !important;
  }

  #showcase h2,
  #tech h2,
  #glossary h2 {
    font-size: clamp(2rem, 8vw, 2.7rem) !important;
    margin-bottom: 24px !important;
  }

  #showcase p {
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 28px !important;
  }

  .inference-sim {
    flex-direction: column;
    height: auto;
    border-radius: 24px;
  }

  .sim-viewport {
    min-height: 240px;
    cursor: default;
  }

  .sim-controls {
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    gap: 20px;
  }

  .tech-section .glass-tile {
    padding: 8px 20px !important;
  }

  .tech-row {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0 !important;
  }

  .tech-row span:last-child {
    word-break: break-word;
  }

  .glossary-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .glossary-section h4 {
    font-size: clamp(1.4rem, 6vw, 1.9rem) !important;
  }

  .glossary-section p {
    font-size: 16px !important;
    line-height: 1.65;
  }

  footer {
    padding: 56px 20px !important;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    padding: 0 12px;
  }

  .section {
    padding: 92px 16px;
  }

  .hero-subtitle br {
    display: none;
  }

  .github-link {
    padding: 8px 10px !important;
  }

  .github-link span {
    display: none;
  }

  .hero-cta {
    width: 100%;
    max-width: 260px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tracker-box {
    display: none;
  }
}
