/**
 * 蓝蜻蜓网络 - 现代科技风格配色方案
 * Modern Tech Theme Color Scheme
 * Inspired by contemporary SaaS/AI product design
 */

/* ============================================
   CSS 变量系统 - 设计令牌
   ============================================ */
:root {
  /* 主色调 - 靛蓝紫系 */
  --lq-primary: #6366f1;
  --lq-primary-light: #818cf8;
  --lq-primary-dark: #4f46e5;
  --lq-primary-50: rgba(99, 102, 241, 0.05);
  --lq-primary-100: rgba(99, 102, 241, 0.1);
  --lq-primary-200: rgba(99, 102, 241, 0.2);
  
  /* 次要色 - 紫罗兰渐变 */
  --lq-secondary: #8b5cf6;
  --lq-secondary-light: #a78bfa;
  --lq-secondary-dark: #7c3aed;
  
  /* 强调色 - 青色/蓝绿色 */
  --lq-accent: #06b6d4;
  --lq-accent-light: #22d3ee;
  --lq-accent-dark: #0891b2;
  
  /* 成功色 */
  --lq-success: #10b981;
  --lq-success-light: #34d399;
  --lq-success-dark: #059669;
  
  /* 警告色 */
  --lq-warning: #f59e0b;
  --lq-warning-light: #fbbf24;
  --lq-warning-dark: #d97706;
  
  /* 错误色 */
  --lq-danger: #ef4444;
  --lq-danger-light: #f87171;
  --lq-danger-dark: #dc2626;
  
  /* 深色背景系 */
  --lq-dark-900: #0f172a;
  --lq-dark-800: #1e293b;
  --lq-dark-700: #334155;
  --lq-dark-600: #475569;
  --lq-dark-500: #64748b;
  
  /* 浅色背景系 */
  --lq-light-50: #f8fafc;
  --lq-light-100: #f1f5f9;
  --lq-light-200: #e2e8f0;
  --lq-light-300: #cbd5e1;
  --lq-light-400: #94a3b8;
  
  /* 文字颜色 */
  --lq-text-primary: #0f172a;
  --lq-text-secondary: #475569;
  --lq-text-muted: #94a3b8;
  --lq-text-inverse: #f8fafc;
  
  /* 渐变色 */
  --lq-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --lq-gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #4338ca 50%, #6366f1 75%, #818cf8 100%);
  --lq-gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  --lq-gradient-glow: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  --lq-gradient-mesh: radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.3) 0px, transparent 50%),
                      radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
                      radial-gradient(at 0% 50%, rgba(6, 182, 212, 0.2) 0px, transparent 50%),
                      radial-gradient(at 80% 50%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                      radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.2) 0px, transparent 50%);
  
  /* 阴影系统 */
  --lq-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --lq-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --lq-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --lq-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --lq-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --lq-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --lq-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --lq-shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.4);
  
  /* 圆角系统 */
  --lq-radius-sm: 6px;
  --lq-radius: 12px;
  --lq-radius-lg: 16px;
  --lq-radius-xl: 24px;
  --lq-radius-2xl: 32px;
  --lq-radius-full: 9999px;
  
  /* 间距系统 */
  --lq-space-1: 4px;
  --lq-space-2: 8px;
  --lq-space-3: 12px;
  --lq-space-4: 16px;
  --lq-space-5: 20px;
  --lq-space-6: 24px;
  --lq-space-8: 32px;
  --lq-space-10: 40px;
  --lq-space-12: 48px;
  --lq-space-16: 64px;
  
  /* 动画时长 */
  --lq-duration-fast: 150ms;
  --lq-duration-normal: 300ms;
  --lq-duration-slow: 500ms;
  
  /* 动画曲线 */
  --lq-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --lq-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --lq-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --lq-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 字体 */
  --lq-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --lq-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  
  /* 毛玻璃效果 */
  --lq-blur-sm: blur(4px);
  --lq-blur: blur(8px);
  --lq-blur-lg: blur(16px);
  --lq-blur-xl: blur(24px);
}

/* ============================================
   全局样式重置与基础样式
   ============================================ */

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

/* 基础字体设置 */
body {
  font-family: var(--lq-font-sans);
  color: var(--lq-text-primary);
  background-color: var(--lq-light-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 文字选中样式 */
::selection {
  background-color: var(--lq-primary-200);
  color: var(--lq-text-primary);
}

/* ============================================
   现代科技风格 - Hero 区域
   ============================================ */
.theme-modern-hero {
  background: var(--lq-dark-900);
  position: relative;
  overflow: hidden;
}

/* 网格背景 */
.theme-modern-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* 渐变光晕 */
.theme-modern-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--lq-gradient-mesh);
  animation: meshMove 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2%, 2%); }
  50% { transform: translate(-1%, 3%); }
  75% { transform: translate(1%, -2%); }
}

/* Hero 内容容器 */
.theme-modern-hero .hero-content {
  position: relative;
  z-index: 1;
}

/* Hero 标题 */
.theme-modern-hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 50%, var(--lq-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero 副标题 */
.theme-modern-hero .hero-subtitle {
  font-size: 1.25rem;
  color: var(--lq-light-400);
  max-width: 600px;
  line-height: 1.7;
}

/* Hero 标签 */
.theme-modern-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--lq-primary-100);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--lq-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lq-primary-light);
  margin-bottom: 16px;
}

/* ============================================
   现代按钮样式
   ============================================ */

/* 主按钮 */
.btn-modern-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--lq-gradient-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--lq-radius);
  cursor: pointer;
  transition: all var(--lq-duration-normal) var(--lq-ease);
  box-shadow: var(--lq-shadow-lg), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--lq-shadow-xl), 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-modern-primary:active {
  transform: translateY(0);
}

/* 次要按钮 */
.btn-modern-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--lq-text-inverse);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--lq-radius);
  cursor: pointer;
  transition: all var(--lq-duration-normal) var(--lq-ease);
  backdrop-filter: var(--lq-blur);
}

.btn-modern-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 幽灵按钮 */
.btn-modern-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--lq-dark-900);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--lq-radius);
  cursor: pointer;
  transition: all var(--lq-duration-normal) var(--lq-ease);
  box-shadow: var(--lq-shadow-lg);
}

.btn-modern-ghost:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--lq-shadow-xl);
}

/* ============================================
   现代卡片样式
   ============================================ */

/* 玻璃拟态卡片 */
.card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--lq-blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--lq-radius-xl);
  padding: 32px;
  transition: all var(--lq-duration-normal) var(--lq-ease);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--lq-shadow-2xl);
}

/* 浅色卡片 */
.card-light {
  background: #fff;
  border: 1px solid var(--lq-light-200);
  border-radius: var(--lq-radius-xl);
  padding: 32px;
  transition: all var(--lq-duration-normal) var(--lq-ease);
  box-shadow: var(--lq-shadow);
}

.card-light:hover {
  border-color: var(--lq-primary-200);
  box-shadow: var(--lq-shadow-lg), 0 0 0 4px var(--lq-primary-50);
  transform: translateY(-2px);
}

/* 渐变边框卡片 */
.card-gradient-border {
  position: relative;
  background: var(--lq-dark-800);
  border-radius: var(--lq-radius-xl);
  padding: 32px;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--lq-gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================
   现代导航栏
   ============================================ */
.nav-modern {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: var(--lq-blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--lq-radius-full);
  padding: 12px 24px;
  box-shadow: var(--lq-shadow-lg);
}

.nav-modern .nav-link {
  color: var(--lq-light-300);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--lq-radius);
  transition: all var(--lq-duration-fast) var(--lq-ease);
}

.nav-modern .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-modern .nav-link.active {
  color: var(--lq-dark-900);
  background: #fff;
}

/* ============================================
   现代服务卡片
   ============================================ */
.service-card-modern {
  background: #fff;
  border-radius: var(--lq-radius-xl);
  padding: 32px;
  border: 1px solid var(--lq-light-200);
  transition: all var(--lq-duration-normal) var(--lq-ease);
  position: relative;
  overflow: hidden;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lq-gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--lq-duration-normal) var(--lq-ease);
}

.service-card-modern:hover {
  border-color: var(--lq-primary-200);
  box-shadow: var(--lq-shadow-xl);
  transform: translateY(-4px);
}

.service-card-modern:hover::before {
  transform: scaleX(1);
}

.service-card-modern .service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lq-gradient-primary);
  border-radius: var(--lq-radius);
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-card-modern h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lq-dark-900);
  margin-bottom: 12px;
}

.service-card-modern p {
  color: var(--lq-text-secondary);
  line-height: 1.7;
}

/* ============================================
   现代信任区域
   ============================================ */
.trust-section-modern {
  background: var(--lq-dark-900);
  position: relative;
}

.trust-card-modern {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--lq-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--lq-radius-xl);
  padding: 28px;
  transition: all var(--lq-duration-normal) var(--lq-ease);
}

.trust-card-modern:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--lq-primary-200);
}

.trust-card-modern h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}

.trust-card-modern p {
  color: var(--lq-light-400);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   现代 CTA 区域
   ============================================ */
.cta-section-modern {
  background: var(--lq-gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-section-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lq-gradient-mesh);
  opacity: 0.5;
  pointer-events: none;
}

.cta-section-modern .cta-content {
  position: relative;
  z-index: 1;
}

.cta-section-modern h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.cta-section-modern p {
  color: var(--lq-light-300);
  font-size: 1.125rem;
  max-width: 600px;
}

/* ============================================
   现代页脚
   ============================================ */
.footer-modern {
  background: var(--lq-dark-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-modern .footer-brand {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--lq-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--lq-radius-xl);
  padding: 32px;
}

.footer-modern .footer-logo {
  background: var(--lq-gradient-primary);
  border-radius: var(--lq-radius);
  padding: 12px 20px;
  display: inline-block;
}

.footer-modern h3 {
  color: #fff;
  font-weight: 700;
}

.footer-modern p,
.footer-modern li,
.footer-modern a {
  color: var(--lq-light-400);
}

.footer-modern a:hover {
  color: var(--lq-primary-light);
}

/* ============================================
   动画效果
   ============================================ */

/* 淡入上移动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 缩放淡入 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 光晕脉冲 */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
  }
}

/* 渐变流动 */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 应用动画的类 */
.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--lq-ease-out) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--lq-ease-out) forwards;
}

.animate-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* 延迟动画 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1199px) {
  :root {
    --lq-space-16: 48px;
  }
}

@media (max-width: 767px) {
  :root {
    --lq-radius-xl: 20px;
    --lq-radius-2xl: 24px;
  }
  
  .theme-modern-hero .hero-title {
    font-size: 2rem;
  }
  
  .theme-modern-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .card-glass,
  .card-light,
  .service-card-modern {
    padding: 24px;
  }
  
  .nav-modern {
    padding: 8px 16px;
  }
}

/* ============================================
   深色模式支持（可选）
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* 如果需要自动深色模式，可以在这里添加样式 */
}

/* ============================================
   打印样式
   ============================================ */
@media print {
  .theme-modern-hero::before,
  .theme-modern-hero::after,
  .cta-section-modern::before {
    display: none;
  }
  
  .btn-modern-primary,
  .btn-modern-secondary,
  .btn-modern-ghost {
    box-shadow: none;
  }
}
