/* 增强动画和美化效果 */

/* 全局过渡效果 */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 脉冲动画 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 渐变背景动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 按钮悬停效果 */
.btn-get-started, .cta-btn, .btn-learn-more {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #2487ce, #469fdf, #2487ce);
  background-size: 200% 200%;
  border: none;
  transition: all 0.3s ease;
}

.btn-get-started:hover, .cta-btn:hover, .btn-learn-more:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(36, 135, 206, 0.3);
}

.btn-get-started::before, .cta-btn::before, .btn-learn-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-get-started:hover::before, .cta-btn:hover::before, .btn-learn-more:hover::before {
  left: 100%;
}

/* 导航菜单增强效果 */
.nav-menu a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #2487ce, #469fdf);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu .active > a::after {
  width: 100%;
}

/* 服务卡片增强效果 */
.services .icon-box {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services .icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(36, 135, 206, 0.1), transparent);
  transition: left 0.6s;
}

.services .icon-box:hover::before {
  left: 100%;
}

.services .icon-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.services .icon-box .icon {
  transition: all 0.4s ease;
}

.services .icon-box:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

/* 图标动画 */
.services .icon-box .icon i {
  transition: all 0.3s ease;
}

.services .icon-box:hover .icon i {
  animation: pulse 1s infinite;
}

/* 英雄区域增强 */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(36, 135, 206, 0.1) 0%, rgba(70, 159, 223, 0.1) 100%);
  animation: gradientShift 10s ease infinite;
}

#hero h1 {
  animation: fadeInUp 1s ease-out;
}

#hero h2 {
  animation: fadeInUp 1s ease-out 0.2s both;
}

#hero .btn-get-started {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* 图标盒子增强 */
#hero .icon-box {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#hero .icon-box:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

#hero .icon-box .icon {
  transition: all 0.4s ease;
}

#hero .icon-box:hover .icon {
  animation: float 2s ease-in-out infinite;
}

/* 关于我们部分增强 */
.about .content {
  animation: fadeInLeft 1s ease-out;
}

.about .content ul li {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 30px;
}

.about .content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #2487ce, #469fdf);
  transition: width 0.3s ease;
  transform: translateY(-50%);
}

.about .content ul li:hover::before {
  width: 20px;
}

.about .content ul li:hover {
  transform: translateX(10px);
  color: #2487ce;
}

/* 联系信息增强 */
.contact .info .address,
.contact .info .email,
.contact .info .phone {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact .info .address:hover,
.contact .info .email:hover,
.contact .info .phone:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact .info i {
  transition: all 0.3s ease;
}

.contact .info .address:hover i,
.contact .info .email:hover i,
.contact .info .phone:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #2487ce;
}

/* 页脚增强 */
#footer .footer-links ul li {
  transition: all 0.3s ease;
  position: relative;
}

#footer .footer-links ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #2487ce, #469fdf);
  transition: width 0.3s ease;
  transform: translateY(-50%);
}

#footer .footer-links ul li:hover::before {
  width: 15px;
}

#footer .footer-links ul li:hover {
  transform: translateX(10px);
}

#footer .footer-links ul a {
  transition: all 0.3s ease;
}

#footer .footer-links ul a:hover {
  color: #2487ce;
  text-decoration: none;
}

/* 返回顶部按钮增强 */
.back-to-top {
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(36, 135, 206, 0.3);
}

.back-to-top i {
  transition: all 0.3s ease;
}

.back-to-top:hover i {
  animation: pulse 1s infinite;
}

/* 加载动画增强 */
#preloader {
  background: linear-gradient(135deg, #2487ce, #469fdf);
}

#preloader:before {
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-bottom-color: #fff;
  animation: animate-preloader 1s linear infinite;
}

/* 响应式动画调整 */
@media (max-width: 768px) {
  .services .icon-box:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  #hero .icon-box:hover {
    transform: translateY(-10px);
  }
  
  .about .content ul li:hover {
    transform: translateX(5px);
  }
}

/* 滚动显示动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* 鼠标悬停时的3D效果 */
.services .icon-box,
#hero .icon-box,
.contact .info .address,
.contact .info .email,
.contact .info .phone {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* 文字渐变效果 */
.gradient-text {
  background: linear-gradient(45deg, #2487ce, #469fdf, #2487ce);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* 卡片玻璃效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
}

/* 进度条动画 */
.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
} 