/* ============================================
   钧澄同盛科技官网 - 视觉元素样式
   使用CSS/SVG创建高质量科技感视觉效果
   ============================================ */

/* ===== Hero 主视觉背景 ===== */
.hero-visual-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

/* 数据流背景 */
.data-streams {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
}

.data-stream {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(255, 224, 51, 0.8) 20%, 
    rgba(255, 224, 51, 0.4) 80%, 
    transparent 100%);
  animation: dataFlow 3s linear infinite;
}

.data-stream:nth-child(1) { left: 10%; height: 150px; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 25%; height: 200px; animation-delay: 0.5s; }
.data-stream:nth-child(3) { left: 40%; height: 120px; animation-delay: 1s; }
.data-stream:nth-child(4) { left: 55%; height: 180px; animation-delay: 1.5s; }
.data-stream:nth-child(5) { left: 70%; height: 160px; animation-delay: 2s; }
.data-stream:nth-child(6) { left: 85%; height: 140px; animation-delay: 2.5s; }

@keyframes dataFlow {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* ===== 浮动几何图形 ===== */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 1px solid rgba(255, 224, 51, 0.2);
  animation: float 6s ease-in-out infinite;
}

.shape-hex {
  width: 100px;
  height: 87px;
  background: linear-gradient(135deg, rgba(255, 224, 51, 0.1), transparent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  top: 20%;
  right: 15%;
}

.shape-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 51, 0.15) 0%, transparent 70%);
  top: 60%;
  left: 10%;
  animation-delay: -2s;
}

.shape-square {
  width: 80px;
  height: 80px;
  transform: rotate(45deg);
  background: linear-gradient(45deg, rgba(255, 224, 51, 0.08), transparent);
  top: 30%;
  left: 20%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== 业务板块图标 ===== */
.service-icon-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  position: relative;
}

.icon-bg {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 224, 51, 0.2), rgba(255, 224, 51, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.icon-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 224, 51, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 信息化 - 云/服务器 */
.icon-infra svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #ffe033;
  stroke-width: 2;
}

/* 数字化 - 流程/转换 */
.icon-digital svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #ffe033;
  stroke-width: 2;
}

/* 数智化 - AI/大脑 */
.icon-ai svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #ffe033;
  stroke-width: 2;
}

/* ===== 应用场景卡片背景 ===== */
.scenario-card {
  position: relative;
  overflow: hidden;
}

.scenario-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 224, 51, 0.03) 0%, 
    transparent 50%, 
    rgba(255, 154, 0, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.scenario-card:hover::before {
  opacity: 1;
}

/* 场景图标 */
.scenario-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 224, 51, 0.15), rgba(255, 224, 51, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.scenario-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #ffe033;
  stroke-width: 1.5;
}

/* ===== 粒子效果 ===== */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffe033;
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 90%; top: 40%; animation-delay: 4s; }

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: translateY(-30px) scale(1.2); 
    opacity: 1; 
  }
}

/* ===== 光晕效果 ===== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ffe033 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.glow-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ff9a00 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

/* ===== 连接线动画 ===== */
.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.2;
}

.connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffe033, transparent);
  animation: linePulse 4s ease-in-out infinite;
}

@keyframes linePulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.8); }
  50% { opacity: 0.6; transform: scaleX(1); }
}
