/**
 * 现代化设计通用样式 - 适用于所有页面
 * 包含首页现代化设计的所有元素，确保设计一致性
 * Bootstrap 5 兼容版本
 */

body {
    overflow-x: hidden; /* 防止移动设备上出现横向滚动条 */
}

/* ===================================
   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, #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); }
}

/* 核心入场动画 - 不依赖外部库 */
.reveal-left, .reveal-down, .reveal-up, .reveal-zoom {
  opacity: 0;
}

.reveal-left {
  animation: revealLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-down {
  animation: revealDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-up {
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-zoom {
  animation: revealZoom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes revealDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealZoom {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===================================
   15. 响应式设计增强
   =================================== */
@media (max-width: 991.98px) {
  .hero-title-modern {
    font-size: 2rem;
  }
  
  .service-card-modern,
  .stat-card-modern,
  .testimonial-card {
    margin-bottom: 1.5rem;
  }

  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    font-weight: 500;
  }
}

/* ===================================
   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);
}

/* ===================================
   20. 导航栏下拉菜单增强
   =================================== */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto;
  }
  
  .navbar-nav .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    position: absolute;
    animation: dropdownFadeIn 0.3s ease;
    background: #fff;
  }

  /* 桥接层：解决 10px 间距导致的鼠标移出即消失问题 */
  .navbar-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
  }

  @keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.navbar .dropdown-toggle::before {
  display: none !important;
}

.navbar .dropdown-toggle::after {
  display: inline-block !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  content: "\f107" !important; /* FontAwesome angle-down */
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 0.85rem !important;
  border: none !important;
  transition: transform 0.3s ease !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

.navbar .dropdown-toggle.show::after {
  transform: rotate(180deg) !important;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(102, 126, 234, 0.1) !important;
  color: #667eea !important;
  padding-left: 1.75rem;
}

.dropdown-item.active {
  background-color: #667eea !important;
  color: #fff !important;
}

/* ===================================
   21. 左侧折叠产品导航工具栏 (销售力逻辑)
   =================================== */
.product-sidebar-nav {
  position: fixed;
  left: 0;
  top: 55%;
  transform: translateY(-50%);
  z-index: 1060;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 180px;
  overflow: visible;
}

/* 折叠状态下只显示图标部分 - 宽度减小 */
.product-sidebar-nav.collapsed {
  width: 65px;
}

.product-sidebar-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 8px 8px 0; /* 统一全站小圆角 */
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: none;
  padding: 25px 0;
  height: 100%;
  width: 100%;
  overflow: hidden; /* 核心：折叠时隐藏文字 */
}

.product-nav-toggle {
  position: absolute;
  right: -24px; /* 位于侧边栏外部可见 */
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 50px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0; /* 统一全站小圆角 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 0 15px rgba(102, 126, 234, 0.3);
  font-size: 0.8rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.product-nav-toggle:hover {
  background: #764ba2;
  width: 30px;
  right: -30px;
}

.product-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 180px; /* 保持固定宽度，防止文字挤压 */
}

.product-nav-item {
  margin-bottom: 2px;
}

.product-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #475569;
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 4px solid transparent;
  position: relative;
}

.product-nav-link i {
  width: 28px;
  font-size: 1.2rem;
  margin-right: 15px;
  color: #64748b;
  text-align: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* 标签动画 */
.product-nav-label {
  white-space: nowrap;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.product-sidebar-nav.collapsed .product-nav-label {
  opacity: 0;
  pointer-events: none;
}

.product-sidebar-nav.collapsed .product-nav-link i {
  color: #667eea;
  transform: scale(1.1);
}

.product-nav-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-left-color: #667eea;
}

.product-nav-link:hover i {
  color: #667eea;
  transform: scale(1.1) rotate(-5deg);
}

.product-nav-item.active .product-nav-link {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, transparent 100%);
  color: #667eea;
  border-left-color: #667eea;
}

.product-nav-item.active i {
  color: #667eea;
}

/* 销售力徽章特效 */
.nav-badge-hot {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 0.65rem;
  background: #ff4d4f;
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1;
  font-weight: 700;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* 响应式适配 */
@media (max-width: 991px) {
  .product-sidebar-nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    transform: none !important;
    z-index: 1050;
  }

  .product-sidebar-inner {
    border-radius: 12px 12px 0 0; /* 移动端顶部小圆角 */
    padding: 10px 0;
    border: 1px solid rgba(0,0,0,0.1);
    border-bottom: none;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
  }

  .product-nav-toggle {
    display: none;
  }

  .product-nav-list {
    display: flex;
    justify-content: space-around;
    overflow-x: auto;
    padding: 0 10px;
    scrollbar-width: none;
  }
  
  .product-nav-list::-webkit-scrollbar {
    display: none;
  }

  .product-nav-link {
    flex-direction: column;
    padding: 8px 12px;
    font-size: 0.7rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    text-align: center;
    min-width: 70px;
  }

  .product-nav-link i {
    margin-right: 0;
    margin-bottom: 5px;
    font-size: 1.1rem;
    transform: none !important;
  }

  .product-nav-item.active .product-nav-link {
    background: none;
    border-bottom-color: #667eea;
  }
  
  .nav-badge-hot {
    top: 2px;
    right: 2px;
  }
}
