/* ========== KNS 现代化动效系统 v2.0 ========== */

/* ===== 1. 核心缓动曲线（Apple风格物理动画） ===== */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
}

/* ===== 2. 滚动显示动画（更流畅） ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 0.9s var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1s var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.7s var(--ease-out-spring);
  will-change: transform, opacity;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* 交错延迟（更自然） */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.48s; }

/* ===== 3. 导航栏现代效果 ===== */
.navbar {
  transition: all 0.5s var(--ease-out-expo);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08);
  padding: 0.6rem 0;
}

/* 导航链接下划线（更细腻） */
.navItem > a,
.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.navItem > a::after,
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: all 0.4s var(--ease-out-expo);
  transform: translateX(-50%);
  border-radius: 2px;
}

.navItem > a:hover::after,
.navItem > a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #3b82f6;
}

/* ===== 4. Hero 区域现代化 ===== */
.hero {
  position: relative;
  overflow: hidden;
}

/* 动态渐变背景 */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.1), transparent);
  animation: gradientMove 20s ease-in-out infinite;
}

@keyframes gradientMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 浮动粒子（更细腻） */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  animation: floatModern 20s infinite ease-in-out;
  filter: blur(1px);
}

.particle:nth-child(2n) {
  background: rgba(139, 92, 246, 0.15);
  animation-duration: 25s;
  animation-delay: -5s;
}

.particle:nth-child(3n) {
  background: rgba(59, 130, 246, 0.1);
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes floatModern {
  0%, 100% { 
    transform: translateY(100vh) translateX(0) scale(0); 
    opacity: 0; 
  }
  5% { opacity: 0.6; }
  95% { opacity: 0.6; }
  100% { 
    transform: translateY(-100vh) translateX(100px) scale(1); 
    opacity: 0; 
  }
}

/* Hero 文字动画（更流畅） */
.hero-animate .bdg {
  animation: fadeInUpModern 0.9s var(--ease-out-expo) forwards;
  opacity: 0;
}

.hero-animate .heroTitle {
  animation: fadeInUpModern 0.9s var(--ease-out-expo) 0.15s forwards;
  opacity: 0;
}

.hero-animate .heroDesc {
  animation: fadeInUpModern 0.9s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

.hero-animate .btns {
  animation: fadeInUpModern 0.9s var(--ease-out-expo) 0.45s forwards;
  opacity: 0;
}

.hero-animate .heroHighlightsRow {
  animation: fadeInUpModern 0.9s var(--ease-out-expo) 0.6s forwards;
  opacity: 0;
}

@keyframes fadeInUpModern {
  from { 
    opacity: 0; 
    transform: translateY(40px) scale(0.96); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* 光晕脉冲（更柔和） */
.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: glowPulseModern 10s ease-in-out infinite;
}

.hero-glow-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 60%);
  top: -300px;
  right: -200px;
}

.hero-glow-2 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 60%);
  bottom: -300px;
  left: -200px;
  animation-delay: -5s;
}

@keyframes glowPulseModern {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1.15) rotate(5deg); opacity: 0.5; }
}

/* ===== 5. 卡片 3D 悬浮（玻璃拟态） ===== */
.sCard, .iCard, .aCard, .cCard, .hlCard, .aboutCardNew,
.stat-card, .client-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s var(--ease-out-spring);
  will-change: transform, box-shadow;
}

.sCard:hover, .iCard:hover, .aCard:hover, .cCard:hover, 
.hlCard:hover, .aboutCardNew:hover, .stat-card:hover, .client-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* 卡片光扫效果（更现代） */
.sCard::before, .iCard::before, .aCard::before,
.stat-card::before, .client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg, 
    transparent 40%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 60%
  );
  transition: left 0.8s var(--ease-out-expo);
  pointer-events: none;
}

.sCard:hover::before, .iCard:hover::before, .aCard:hover::before,
.stat-card:hover::before, .client-card:hover::before {
  left: 100%;
}

/* ===== 6. 按钮磁吸与波纹（增强版） ===== */
.btn1, .btn2, .nb, button[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-spring);
  transform: translateZ(0);
}

.btn1:hover, .btn2:hover, .nb:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn1:active, .btn2:active, .nb:active {
  transform: translateY(-1px) scale(0.98);
}

/* 按钮光晕 */
.btn1::after, .btn2::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.btn1:hover::after, .btn2:hover::after {
  opacity: 0.5;
}

/* 波纹效果 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleModern 0.8s var(--ease-out-expo);
  pointer-events: none;
}

@keyframes rippleModern {
  to {
    transform: scale(6);
    opacity: 0;
  }
}

/* ===== 7. Logo 滚动（无缝循环） ===== */
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-scroll {
  display: flex;
  animation: scrollLogos 40s linear infinite;
}

.logo-scroll:hover {
  animation-play-state: paused;
}

/* ===== 8. 分割线动画 ===== */
.divider-animate {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  transition: width 1.5s var(--ease-out-expo);
}

.divider-animate.active {
  width: 100%;
}

/* ===== 9. 表单输入（浮动标签） ===== */
.formGrp {
  position: relative;
}

.formGrp input,
.formGrp textarea {
  transition: all 0.3s var(--ease-out-expo);
  border: 2px solid #e2e8f0;
}

.formGrp input:focus,
.formGrp textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.formGrp label {
  transition: all 0.3s var(--ease-out-expo);
}

/* ===== 10. 数字计数动画 ===== */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #0f172a, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 11. 统计卡片动画 ===== */
.stat-card {
  transition: all 0.5s var(--ease-out-spring);
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.stat-num {
  background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s var(--ease-out-spring);
}

.stat-card:hover .stat-num {
  transform: scale(1.1);
}

/* ===== 12. 图片视差 ===== */
.parallax-img {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ===== 13. 加载骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 14. 鼠标跟随光效 ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* ===== 15. 文字渐变动画 ===== */
.gradient-text {
  background: linear-gradient(90deg, #0f172a, #3b82f6, #8b5cf6, #0f172a);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== 16. 悬浮提示 ===== */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  padding: 0.6rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out-spring);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ===== 17. 玻璃拟态卡片 ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* ===== 18. 呼吸动画 ===== */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

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

/* ===== 19. 脉冲光环 ===== */
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid currentColor;
  animation: pulseRing 2s ease-out infinite;
}

/* ===== 20. 响应式动画优化 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .reveal, .reveal-left, .reveal-right {
    transform: translateY(30px);
    transition-duration: 0.6s;
  }
  
  .hero-glow,
  .particle,
  .cursor-glow {
    display: none;
  }
  
  .sCard:hover, .iCard:hover, .aCard:hover {
    transform: translateY(-4px);
  }
}

/* ===== 21. 页面过渡 ===== */
.page-transition {
  animation: pageIn 0.6s var(--ease-out-expo);
}

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

/* ===== 22. 聚焦状态（无障碍） ===== */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===== 23. 选中文字样式 ===== */
::selection {
  background: rgba(59, 130, 246, 0.2);
  color: #0f172a;
}
/* ========== Hero v3 专属动效 ========== */

/* ===== 粒子漂浮 ===== */
.hero-v3-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 15s infinite ease-in-out;
  pointer-events: none;
}

.hero-v3-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-v3-particle:nth-child(2) { left: 20%; top: 60%; animation-delay: -2s; }
.hero-v3-particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -4s; }
.hero-v3-particle:nth-child(4) { left: 50%; top: 80%; animation-delay: -6s; }
.hero-v3-particle:nth-child(5) { left: 70%; top: 30%; animation-delay: -8s; }
.hero-v3-particle:nth-child(6) { left: 80%; top: 70%; animation-delay: -10s; }
.hero-v3-particle:nth-child(7) { left: 90%; top: 50%; animation-delay: -12s; }
.hero-v3-particle:nth-child(8) { left: 15%; top: 85%; animation-delay: -3s; }
.hero-v3-particle:nth-child(9) { left: 60%; top: 15%; animation-delay: -7s; }
.hero-v3-particle:nth-child(10) { left: 85%; top: 90%; animation-delay: -11s; }

@keyframes particleFloat {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 0.3;
  }
  25% { 
    transform: translate(30px, -50px) scale(1.5); 
    opacity: 0.6;
  }
  50% { 
    transform: translate(-20px, -80px) scale(0.8); 
    opacity: 0.4;
  }
  75% { 
    transform: translate(40px, -30px) scale(1.2); 
    opacity: 0.5;
  }
}

/* ===== 数字滚动动画 ===== */
.hero-v3-stat-num {
  display: inline-block;
  animation: countUp 2s var(--ease-out-expo) forwards;
  animation-delay: 0.3s;
}

.hero-v3-stat:nth-child(1) .hero-v3-stat-num { animation-delay: 0.5s; }
.hero-v3-stat:nth-child(3) .hero-v3-stat-num { animation-delay: 0.7s; }
.hero-v3-stat:nth-child(5) .hero-v3-stat-num { animation-delay: 0.9s; }
.hero-v3-stat:nth-child(7) .hero-v3-stat-num { animation-delay: 1.1s; }

@keyframes countUp {
  0% { 
    transform: translateY(40px); 
    opacity: 0;
  }
  100% { 
    transform: translateY(0); 
    opacity: 1;
  }
}

/* ===== 标题渐显动画 ===== */
.hero-v3-title {
  overflow: hidden;
}

.hero-v3-title span,
.hero-v3-title-accent {
  display: inline-block;
  animation: titleReveal 1s var(--ease-out-expo) forwards;
  animation-delay: 0.2s;
}

@keyframes titleReveal {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== 光晕脉冲加强 ===== */
.hero-v3-orb {
  animation: orbPulse 4s ease-in-out infinite;
}

.hero-v3-orb-1 { animation: orbPulse1 6s ease-in-out infinite; }
.hero-v3-orb-2 { animation: orbPulse2 8s ease-in-out infinite; }
.hero-v3-orb-3 { animation: orbPulse3 5s ease-in-out infinite; }

@keyframes orbPulse1 {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 0.4;
  }
  50% { 
    transform: translate(-60px, 40px) scale(1.2); 
    opacity: 0.6;
  }
}

@keyframes orbPulse2 {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 0.3;
  }
  50% { 
    transform: translate(80px, -30px) scale(0.9); 
    opacity: 0.5;
  }
}

@keyframes orbPulse3 {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 0.35;
  }
  50% { 
    transform: translate(-40px, -60px) scale(1.1); 
    opacity: 0.45;
  }
}

/* ===== Badge 闪烁 ===== */
.hero-v3-badge-dot {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

/* ===== CTA 按钮光效 ===== */
.hero-v3-cta .btn-primary {
  position: relative;
  overflow: hidden;
}

.hero-v3-cta .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ===== 鼠标跟随光效 ===== */
.hero-v3-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  z-index: 1;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-v3-particle {
    width: 3px;
    height: 3px;
  }
  
  .hero-v3-glow {
    width: 250px;
    height: 250px;
  }
}
/* ========== 整页动效 ========== */

/* ===== 页面加载动画 ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 按钮波纹效果 ===== */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.btn-ripple:active::after {
  transform: scale(2);
  opacity: 1;
  transition: transform 0s, opacity 0s;
}

/* ===== 背景渐变动画 ===== */
.bg-gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== 文字渐变动画 ===== */
.text-gradient-animate {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f97316, #3b82f6);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 4s linear infinite;
}

@keyframes textGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===== 卡片光扫效果 ===== */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s;
}

.card-shine:hover::before {
  left: 150%;
}

/* ===== 悬浮提示动画 ===== */
.tooltip-animate {
  animation: tooltipBounce 0.3s ease-out;
}

@keyframes tooltipBounce {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ===== 分割线动画 ===== */
.divider-animate {
  position: relative;
  overflow: hidden;
}

.divider-animate::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: dividerMove 2s linear infinite;
}

@keyframes dividerMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== 骨架屏动画 ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 滚动进度条 ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  z-index: 9998;
  transition: width 0.1s;
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
/* ========== 导航链接动画 ========== */

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #3b82f6 !important;
}

/* 下拉菜单动画 */
.dropdown-content {
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background: #f8fafc;
  color: #3b82f6 !important;
  padding-left: 25px !important;
}
