/**
 * 现代化设计通用样式 - 适用于所有页面
 * 包含首页现代化设计的所有元素，确保设计一致性
 * Bootstrap 4.6.2 标准
 */

/* ===================================
   1. 通用按钮现代化设计
   =================================== */
.btn-modern-primary {
  background: linear-gradient(135deg, #0066FF 0%, #00BFFF 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.4),
              0 0 0 0 rgba(0, 102, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-modern-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn-modern-primary:hover::before {
  left: 100%;
}

.btn-modern-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.6),
              0 0 0 8px rgba(0, 102, 255, 0.2);
  color: white;
}

.btn-modern-primary:active {
  transform: translateY(-3px) scale(1.02);
}

.btn-modern-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-modern-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn-service-gradient {
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-service-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
  color: white;
}

/* ===================================
   2. 卡片现代化设计
   =================================== */
.card-modern {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
  border-color: #0066FF;
}

.service-card-modern {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
  border-color: #0066FF;
}

/* ===================================
   3. 渐变标题和徽章
   =================================== */
.section-title-gradient {
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* ===================================
   4. 英雄区域现代化设计
   =================================== */
.hero-section-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1)),
              linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1));
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  animation: heroBackgroundMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes heroBackgroundMove {
  0% { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}

.hero-mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: meshPulse 4s ease-in-out infinite;
}

@keyframes meshPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.hero-title-modern {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description-modern {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* ===================================
   5. 信任指标和统计
   =================================== */
.stat-card-modern {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.stat-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-number {
  color: #1e293b;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
}

/* ===================================
   6. 客户评价现代化设计
   =================================== */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quote-icon {
  font-size: 2rem;
  color: #0066FF;
}

/* ===================================
   7. 新闻卡片现代化设计
   =================================== */
.news-card-modern {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.news-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.news-image {
  transition: transform 0.3s ease;
}

.news-card-modern:hover .news-image {
  transform: scale(1.05);
}

.news-category-badge {
  background: linear-gradient(135deg, #0066FF, #00BFFF) !important;
}

.btn-gradient-primary {
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  color: white;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
  color: white;
}

/* ===================================
   8. 流程卡片现代化设计
   =================================== */
.process-card-modern {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.process-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.process-number {
  width: 100px;
  height: 100px;
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ===================================
   9. 软件与证书卡片现代化设计
   =================================== */
.software-cert-card-modern {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.software-cert-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.cert-image {
  transition: transform 0.3s ease;
}

.software-cert-card-modern:hover .cert-image {
  transform: scale(1.05);
}

/* ===================================
   10. 客户Logo展示现代化设计
   =================================== */
.clients-logo-strip {
  background: white;
  padding: 2rem 0;
}

.logo-marquee-container {
  padding: 1rem 0;
}

.logo-track {
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.logo-item {
  flex-shrink: 0;
  width: 150px;
  margin-right: 2rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===================================
   11. 公告区域现代化设计
   =================================== */
.announcement-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%);
  padding: 1.5rem 0;
}

.announcement-marquee {
  display: flex;
  animation: announcementMarquee 30s linear infinite;
}

@keyframes announcementMarquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===================================
   12. 服务区域现代化设计
   =================================== */
.services-section-gradient {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%);
  padding: 4rem 0;
}

.service-icon-badge {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
  margin: 0 auto 1.5rem;
}

.service-title {
  color: #1e293b;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-description {
  color: #64748b;
  line-height: 1.7;
}

/* ===================================
   13. 统计数据区域现代化设计
   =================================== */
.stats-section {
  background: linear-gradient(135deg, #0066FF 0%, #00BFFF 100%);
  padding: 4rem 0;
  color: white;
}

/* ===================================
   14. 通用现代化动画
   =================================== */
.animation-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animation-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===================================
   15. 响应式设计增强
   =================================== */
@media (max-width: 991.98px) {
  .hero-title-modern {
    font-size: 2rem;
  }
  
  .service-card-modern,
  .stat-card-modern,
  .testimonial-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section-modern {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .section-badge {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }
  
  .btn-modern-primary,
  .btn-modern-glass {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===================================
   16. 毛玻璃效果通用类
   =================================== */
.bg-glass-effect {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

/* ===================================
   17. 渐变边框效果
   =================================== */
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #0066FF, #00BFFF);
  border-radius: 14px;
  z-index: -1;
}

/* ===================================
   18. 悬停放大效果
   =================================== */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ===================================
   19. 阴影增强
   =================================== */
.shadow-enhanced {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}