/* 全局自定义样式 - 补充Tailwind CSS */

/* 防止Tailwind样式被覆盖 */
@layer utilities {
  .custom-gradient-bg {
    background: linear-gradient(135deg, #F5F7FA 0%, #FFFFFF 50%, #E8F4F8 100%);
  }
  
  .custom-card-shadow {
    box-shadow: 0 2px 12px rgba(45, 122, 158, 0.08);
  }
  
  .custom-hover-shadow {
    transition: box-shadow 0.3s ease;
  }
  
  .custom-hover-shadow:hover {
    box-shadow: 0 8px 24px rgba(45, 122, 158, 0.15);
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 自定义字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: #2C3E50;
  background-color: #FFFFFF;
}

/* 导航栏悬停效果 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2D7A9E, #4C9A8F);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #2D7A9E;
}

/* 动态背景光效 */
@keyframes flowLight {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) translateY(-50%) scale(1.1);
  }
}

.hero-bg-effect {
  position: relative;
  overflow: hidden;
}

.hero-bg-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45, 122, 158, 0.15) 0%, transparent 70%);
  animation: flowLight 8s ease-in-out infinite;
  pointer-events: none;
}

/* 卡片淡入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-card:nth-child(2) {
  animation-delay: 0.15s;
}

.fade-in-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* 时间轴连接线 */
.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2D7A9E 0%, #4C9A8F 100%);
  z-index: -1;
}

.timeline-step {
  position: relative;
  background: #FFFFFF;
  padding: 0 16px;
}

/* 响应式图片 */
.responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* 页脚链接悬停 */
.footer-link {
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #2D7A9E;
}

/* 图标容器 */
.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 122, 158, 0.1), rgba(76, 154, 143, 0.1));
  transition: transform 0.3s ease;
}

.icon-wrapper:hover {
  transform: translateY(-4px);
}

/* 文字渐变效果 */
.gradient-text {
  background: linear-gradient(135deg, #2D7A9E, #4C9A8F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 分隔线 */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 122, 158, 0.2), transparent);
}

/* 移动端优化 */
@media (max-width: 768px) {
  .hero-bg-effect::before {
    width: 400px;
    height: 400px;
  }
}