/* ============================================
   隆光集团官方网站 - 动画特效样式
   ============================================ */

/* ============ Glow Pulse ============ */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(201, 169, 110, 0.2), 0 0 20px rgba(201, 169, 110, 0.1); }
  50% { box-shadow: 0 0 15px rgba(201, 169, 110, 0.4), 0 0 40px rgba(201, 169, 110, 0.2); }
}

.glow-pulse { animation: glowPulse 3s ease-in-out infinite; }

/* ============ Tech Line Animation ============ */
@keyframes techLine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tech-line-bg {
  background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: techLine 8s ease infinite;
}

/* ============ Float Animation ============ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-anim { animation: float 4s ease-in-out infinite; }

/* ============ Rotate Gradient Border ============ */
@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotating-border {
  position: relative;
  overflow: hidden;
}

.rotating-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, var(--accent), #1e90ff, var(--accent));
  border-radius: inherit;
  animation: rotateGradient 4s linear infinite;
  z-index: -1;
}

/* ============ Shimmer ============ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ============ Typing Cursor ============ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typing-cursor { animation: blink 1s infinite; }

/* ============ Scan Line ============ */
@keyframes scanLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

.scan-effect {
  position: relative;
  overflow: hidden;
}

.scan-effect::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 2px;
  background: rgba(30, 144, 255, 0.3);
  animation: scanLine 3s linear infinite;
}

/* ============ Particle Fade ============ */
@keyframes particleFade {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

/* ============ Ripple ============ */
@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

.ripple-effect {
  position: relative;
}

.ripple-effect .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.3);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* ============ Slide In Right ============ */
@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.slide-in-right { animation: slideInRight 0.5s ease-out; }

/* ============ Slide In Left ============ */
@keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.slide-in-left { animation: slideInLeft 0.5s ease-out; }

/* ============ Scale In ============ */
@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.scale-in { animation: scaleIn 0.4s ease-out; }

/* ============ Staggered Fade In (for lists) ============ */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Hover Lift ============ */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ============ Number Counter ============ */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-up { animation: countUp 0.6s ease-out; }

/* ============ Glitch Text ============ */
@keyframes glitch {
  0% { text-shadow: 2px 0 #1e90ff, -2px 0 #c9a96e; }
  25% { text-shadow: -2px 0 #1e90ff, 2px 0 #c9a96e; }
  50% { text-shadow: 2px 0 #c9a96e, -2px 0 #1e90ff; }
  75% { text-shadow: -1px 0 #1e90ff, 1px 0 #c9a96e; }
  100% { text-shadow: 1px 0 #c9a96e, -1px 0 #1e90ff; }
}

.glitch-text:hover { animation: glitch 0.3s linear; }

/* ============ Gradient Text ============ */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #1e90ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ Loading Spinner ============ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============ Skeleton Loading ============ */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.skeleton {
  background: #e8eaed;
  border-radius: var(--radius-sm);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* ============ Notification Toast ============ */
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.toast {
  position: fixed;
  top: 100px; right: 20px;
  z-index: 5000;
  padding: 16px 24px;
  background: var(--primary-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease-out;
}

.toast.success { border-color: #27ae60; }
.toast.error { border-color: #e74c3c; }
.toast.hiding { animation: toastOut 0.3s ease-out forwards; }
