/* 北岛电气 - 动态视觉增强 */

/* 1. Hero区域动态光效 */
.hero {
  animation: heroShimmer 8s ease-in-out infinite alternate;
}
@keyframes heroShimmer {
  0% { background: linear-gradient(160deg, #0b1d30 0%, #152e47 35%, #1a3c5e 60%, #1e4d78 100%); }
  100% { background: linear-gradient(160deg, #0b1d30 0%, #152e47 30%, #1d4568 55%, #1a5080 100%); }
}

/* 2. Banner图标微动 */
.adv-icon {
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.5s);
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 3. CTA按钮脉冲 */
.btn-primary {
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(212,52,46,0.3); }
  50% { box-shadow: 0 4px 20px rgba(212,52,46,0.5); }
}

/* 4. 产品卡片hover增强 */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5. 案例卡片加载动画 */
.case-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }
.case-card:nth-child(4) { animation-delay: 0.4s; }
.case-card:nth-child(5) { animation-delay: 0.5s; }
.case-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 6. 页面标题下划线动画 */
.page-header::after {
  animation: lineExpand 1s ease forwards;
}
@keyframes lineExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 7. 滚动渐变头部 */
.header {
  transition: box-shadow 0.3s, background 0.3s;
}

/* 8. 统计数字跳动 */
.hero-stat-num {
  animation: countUp 2s ease-out forwards;
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 9. Favicon - SVG inline */
.favicon-pulse {
  animation: favPulse 2s ease-in-out infinite;
}
@keyframes favPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
