/* 淡入上升动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* 打字机效果 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    animation: typing 3.5s steps(40, end),
               blink-caret .75s step-end infinite;
}

/* 粒子背景动画 */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 闪烁光标动画 */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

/* 粒子动画 */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
    transform: translate(var(--x), var(--y));
    animation: float var(--duration) linear var(--delay) infinite;
}

/* 滚动显示动画 */
.agent-card, .feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.agent-card.fade-in, .feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 卡片悬浮效果增强 */
.agent-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.agent-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* 数字员工媒体交互 */
.agent-media {
    position: relative;
    overflow: hidden;
}

.agent-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.agent-card:hover .agent-media::after {
    transform: translateX(100%);
}

/* 状态标签动画 */
.status-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    70% { opacity: 1; box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* 功能卡片悬浮效果 */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.03)
    );
}

.feature-card:hover .feature-icon {
    animation: iconPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 页面滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航链接动画 */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 按钮交互效果 */
.cta-button, .contact-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before, .contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before, .contact-btn:hover::before {
    width: 300%;
    height: 300%;
}

/* 表单输入框动画 */
.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
} 