/* 高科技感动画效果 */

/* 霓虹灯文字效果 */
.neon-text {
    text-shadow: 
        0 0 5px rgba(0, 195, 255, 0.5),
        0 0 10px rgba(0, 195, 255, 0.3),
        0 0 15px rgba(0, 195, 255, 0.2),
        0 0 20px rgba(0, 195, 255, 0.1);
    animation: neonPulse 2s infinite alternate;
}

/* 霓虹灯边框效果 */
.neon-border {
    position: relative;
    overflow: hidden;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    animation: neonBorderFlow 3s linear infinite;
    z-index: 1;
}

/* 悬浮卡片效果 */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(0, 195, 255, 0.3),
        0 0 20px rgba(255, 0, 230, 0.1);
}

/* 数字跳动效果 */
.stat-number {
    display: inline-block;
    animation: numberJump 2s ease infinite;
    animation-delay: calc(var(--index) * 0.2s);
}

/* 科技感按钮悬浮效果 */
.tech-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.tech-btn:hover::before {
    opacity: 1;
}

.tech-btn:hover {
    color: #fff;
    box-shadow: 
        0 5px 15px rgba(0, 195, 255, 0.4),
        0 0 10px rgba(0, 195, 255, 0.2),
        0 0 5px rgba(0, 195, 255, 0.1);
    transform: translateY(-3px);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

/* 科技感加载动画 */
.tech-loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.tech-loader div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.tech-loader div:nth-child(1) {
    left: 8px;
    animation: tech-loader1 0.6s infinite;
}

.tech-loader div:nth-child(2) {
    left: 8px;
    animation: tech-loader2 0.6s infinite;
}

.tech-loader div:nth-child(3) {
    left: 32px;
    animation: tech-loader2 0.6s infinite;
}

.tech-loader div:nth-child(4) {
    left: 56px;
    animation: tech-loader3 0.6s infinite;
}

/* 3D旋转效果 */
.rotate-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.rotate-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* 动画关键帧定义 */
@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 5px rgba(0, 195, 255, 0.5),
            0 0 10px rgba(0, 195, 255, 0.3),
            0 0 15px rgba(0, 195, 255, 0.2),
            0 0 20px rgba(0, 195, 255, 0.1);
    }
    to {
        text-shadow: 
            0 0 10px rgba(0, 195, 255, 0.6),
            0 0 20px rgba(0, 195, 255, 0.4),
            0 0 30px rgba(0, 195, 255, 0.3),
            0 0 40px rgba(0, 195, 255, 0.2);
    }
}

@keyframes neonBorderFlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes numberJump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

@keyframes tech-loader1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes tech-loader2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

@keyframes tech-loader3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* 应用到特定元素的样式 */
.hero-content h1 {
    position: relative;
    display: inline-block;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    animation: neonBorderFlow 3s linear infinite;
}

/* 服务卡片悬浮效果增强 */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 195, 255, 0.2),
        0 0 5px rgba(255, 0, 230, 0.1);
}

/* 案例项目悬浮效果增强 */
.case-item {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.case-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 0, 230, 0.2),
        0 0 5px rgba(0, 195, 255, 0.1);
}

/* 按钮悬浮效果增强 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 100%;
}

/* 导航链接悬浮效果增强 */
.nav-links a {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}