/* 全局变量 */
:root {
  --color-deep-blue: #0A1128;
  --color-tech-gray: #1E2A3E;
  --color-neon-blue: #00E0FF;
  --color-light-purple: #A0A0FF;
  --gradient-bg: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-tech-gray) 100%);
}

/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-deep-blue);
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* 导航栏样式 */
.nav-blur {
  backdrop-filter: blur(10px);
  background: rgba(10, 17, 40, 0.8);
  transition: all 0.3s ease;
}

/* 粒子背景容器 */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 卡片悬停效果 */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 224, 255, 0.2);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, var(--color-neon-blue) 0%, var(--color-light-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 发光边框 */
.glow-border {
  position: relative;
  border: 1px solid rgba(0, 224, 255, 0.3);
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--color-neon-blue), var(--color-light-purple));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-border:hover::before {
  opacity: 0.6;
}

/* 页面加载动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

/* 案例网格悬停效果 */
.case-item {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 17, 40, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.case-item:hover .case-overlay {
  opacity: 1;
}

/* 服务图标动画 */
.service-icon {
  transition: all 0.3s ease;
}

.service-icon:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px var(--color-neon-blue));
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 流动线条动画 */
@keyframes flow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.flow-line {
  position: relative;
  overflow: hidden;
}

.flow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-neon-blue), transparent);
  animation: flow 2s ease-in-out infinite;
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-tech-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--color-neon-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-light-purple);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .card-hover {
    transform: none;
  }
  
  .card-hover:hover {
    transform: translateY(-4px);
  }
}