/* =====================================================
   API Shanhe Cloud - 科技感底部动画
   包含:粒子效果、代码流、激光点、云朵效果
   ===================================================== */

/* ========== 科技感底部容器 ========== */

.tech-footer-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #2a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 白色线条网格背景 */
.tech-footer-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== 激光粒子效果 ========== */

.laser-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.laser-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00ffff 0%, transparent 70%);
    border-radius: 50%;
    animation: laserFloat 6s ease-in-out infinite;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.laser-dot:nth-child(odd) {
    background: radial-gradient(circle, #ff6b35 0%, transparent 70%);
    box-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b35;
    animation-duration: 8s;
}

.laser-dot:nth-child(3n) {
    background: radial-gradient(circle, #2196F3 0%, transparent 70%);
    box-shadow: 0 0 10px #2196F3, 0 0 20px #2196F3;
    animation-duration: 7s;
}

@keyframes laserFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-50px) scale(1.5);
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) scale(1);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-150px) scale(1.3);
        opacity: 0.8;
    }
}

/* ========== 代码流效果 ========== */

.code-stream-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.code-stream {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(33, 150, 243, 0.1) 20%,
        rgba(33, 150, 243, 0.5) 50%,
        rgba(33, 150, 243, 0.1) 80%,
        transparent 100%
    );
    animation: codeFlow 3s linear infinite;
}

.code-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg,
        rgba(33, 150, 243, 0.8) 0%,
        rgba(0, 188, 212, 0.6) 100%
    );
    border-radius: 2px;
    animation: codeHead 3s linear infinite;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8),
                0 0 40px rgba(33, 150, 243, 0.4);
}

@keyframes codeFlow {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes codeHead {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(calc(100% + 100vh));
    }
}

/* ========== 云朵效果 ========== */

.tech-cloud {
    position: absolute;
    width: 200px;
    height: 80px;
    opacity: 0.6;
    animation: cloudFloat 20s ease-in-out infinite;
}

.tech-cloud::before,
.tech-cloud::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3) 0%, rgba(33, 150, 243, 0.2) 100%);
    border-radius: 50%;
    animation: cloudPulse 4s ease-in-out infinite;
}

.tech-cloud::before {
    width: 100px;
    height: 100px;
    top: -40px;
    left: 20px;
}

.tech-cloud::after {
    width: 120px;
    height: 120px;
    top: -60px;
    right: 20px;
}

.tech-cloud-1 {
    bottom: 50px;
    left: 10%;
    animation-delay: 0s;
}

.tech-cloud-2 {
    bottom: 80px;
    right: 15%;
    animation-delay: -7s;
}

.tech-cloud-3 {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -14s;
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(20px) translateY(-10px);
    }
    50% {
        transform: translateX(40px) translateY(5px);
    }
    75% {
        transform: translateX(20px) translateY(-5px);
    }
}

@keyframes cloudPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* ========== 扫描线效果 ========== */

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: scanMove 4s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ========== 波动线条 ========== */

.wave-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.wave-line svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    fill: none;
    stroke: url(#waveGradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: waveDraw 4s linear infinite;
}

@keyframes waveDraw {
    0% {
        stroke-dashoffset: 2000;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* ========== 内容区域 ========== */

.tech-footer-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
}

.tech-footer-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #2196F3 0%, #00BCD4 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.tech-footer-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.tech-footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.tech-footer-link:hover {
    color: white;
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

/* ========== 响应式 ========== */

@media (max-width: 768px) {
    .tech-footer-container {
        height: 200px;
    }

    .tech-footer-content h3 {
        font-size: 1.5rem;
    }

    .tech-footer-links {
        gap: 1rem;
    }

    .tech-cloud {
        width: 150px;
        height: 60px;
    }

    .code-stream {
        width: 1px;
    }
}
