/* Hero - 科技感背景 */
.hero {
    padding: 80px 40px 53px;
    text-align: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1b3a 100%);
    position: relative;
    overflow: hidden;
    min-height: 167px;
}

/* 科技网格背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* 光晕效果 */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 355px;
    height: 355px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* 粒子容器 */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* 基础粒子 */
.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle 15s infinite ease-in-out;
}

.particle.small {
    width: 3px;
    height: 3px;
    background: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.particle.medium {
    width: 6px;
    height: 6px;
    background: rgba(99, 179, 237, 0.5);
    box-shadow: 0 0 10px rgba(99, 179, 237, 0.3);
}

.particle.large {
    width: 10px;
    height: 10px;
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) translateX(-30px) scale(1.1);
        opacity: 0.7;
    }
}

/* 鼠标跟随光点 */
.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.hero:hover .mouse-glow {
    opacity: 1;
}

/* 闪电 Canvas */
.lightning-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* 电路线路 */
.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.circuit-line {
    position: absolute;
    background: rgba(59, 130, 246, 0.3);
    overflow: hidden;
}

.circuit-line::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(99, 179, 237, 0.9), transparent);
}

.circuit-line.horizontal {
    height: 2px;
    width: 100px;
}
.circuit-line.horizontal::after {
    width: 30px;
    height: 100%;
    animation: currentFlowH 3s linear infinite;
}

.circuit-line.vertical {
    width: 2px;
    height: 80px;
}
.circuit-line.vertical::after {
    width: 100%;
    height: 20px;
    animation: currentFlowV 3s linear infinite;
}

@keyframes currentFlowH {
    0% { left: -30px; }
    100% { left: 100px; }
}

@keyframes currentFlowV {
    0% { top: -20px; }
    100% { top: 80px; }
}

/* 电路节点 */
.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6), 0 0 20px rgba(99, 179, 237, 0.3);
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
    50% { transform: scale(1.3); box-shadow: 0 0 15px rgba(59, 130, 246, 0.9), 0 0 30px rgba(99, 179, 237, 0.5); }
}

/* CPU/GPU 图形 */
.chip-icon {
    position: absolute;
    opacity: 0.4;
    pointer-events: none;
}

.chip-icon svg {
    width: 60px;
    height: 60px;
    stroke: rgba(59, 130, 246, 0.5);
    fill: none;
    stroke-width: 1;
}

.chip-icon.active svg {
    stroke: rgba(99, 179, 237, 0.7);
    animation: chipGlow 3s ease-in-out infinite;
}

@keyframes chipGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(99, 179, 237, 0.8)); }
}

/* 数据流效果 */
.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.data-stream {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.8) 50%, transparent 100%);
    animation: dataStream 8s linear infinite;
    opacity: 0;
}

.data-stream::before {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: rgba(99, 179, 237, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 179, 237, 0.8);
}

@keyframes dataStream {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}

/* 扫描线效果 */
.scan-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    animation: scanLine 6s ease-in-out infinite;
    opacity: 0;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* 节点连接动画 */
.node-connection {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.node-connection svg {
    position: absolute;
    width: 200px;
    height: 200px;
}

.node-connection line {
    stroke: rgba(59, 130, 246, 0.2);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
    animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}

/* 数据点脉冲 */
.data-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(99, 179, 237, 0.8);
    border-radius: 50%;
    animation: dataPulse 1.5s ease-in-out infinite;
}

.data-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(99, 179, 237, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 1.5s ease-out infinite;
}

@keyframes dataPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Hero 标题和描述 */
.hero-title {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 30px rgba(59, 130, 246, 0.4);
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero {
        padding: 53px 20px 35px;
        min-height: 167px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 14px;
    }
}
