/* =============================================
 * cyber-mini.css — 科技交互微件样式
 * 配合 cyber-mini.js 使用
 *
 * 需要：.hero-title（Glitch效果） .hero-badge .hero-desc（光标）
 * ============================================= */

/* Google Fonts removed for speed — 使用系统回退字体 */

:root {
  --cyber-cyan: #00f0ff;
  --cyber-magenta: #ff00e4;
  --cyber-amber: #ffb300;
  --cyber-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --cyber-font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
}

/* ---- 科技网格背景（可选） ---- */
.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 25%, transparent 72%);
  animation: _gridShift 30s linear infinite;
}

@keyframes _gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* ---- 等宽字体辅助 ---- */
.font-mono {
  font-family: var(--cyber-font-mono) !important;
}
.font-display {
  font-family: var(--cyber-font-display) !important;
}

/* ---- 青色强调色辅助 ---- */
.text-cyan { color: var(--cyber-cyan) !important; }
.text-magenta { color: var(--cyber-magenta) !important; }
.border-cyan { border-color: var(--cyber-cyan) !important; }

/* ---- 按钮样式（可选） ---- */
.btn-tech {
  font-family: var(--cyber-font-mono) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  background: linear-gradient(135deg, #0066ff, var(--cyber-cyan)) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  border-radius: 6px !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1) !important;
  color: #fff;
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-tech:hover {
  background: linear-gradient(135deg, #0077ff, #00f0ff) !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25) !important;
  transform: translateY(-2px);
}

/* ---- 卡片悬浮边框（可选） ---- */
.card-tech {
  border: 1px solid rgba(0, 240, 255, 0.04);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(0, 10, 20, 0.4);
  backdrop-filter: blur(12px);
}
.card-tech:hover {
  border-color: rgba(0, 240, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.04);
  transform: translateY(-3px);
}

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
  .cyber-grid { mask-image: none; -webkit-mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cyber-grid { animation: none !important; }
}
