/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2dc26b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a8f4a;
}

/* 加载动画 */
.loading {
    animation: fadeInUp 0.8s ease-out;
}

/* 浮动效果 */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 脉冲效果 */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* 悬停效果增强 */
.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(45, 194, 107, 0.2);
    transition: all 0.3s ease;
}

.qr-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(45, 194, 107, 0.2);
    transition: all 0.3s ease;
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #2dc26b, #1a8f4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 按钮悬停效果增强 */
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* 图片悬停效果 */
.profile-image:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 响应式增强 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    .story-section {
        padding: 20px;
    }
    
    .timeline-item {
        padding: 15px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a8f4a 0%, #0d5a2e 100%);
    }
    
    .profile-section,
    .story-section,
    .qr-item {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .timeline-item {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .contact-item {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .contact-info p,
    .timeline-item p,
    .qr-item p {
        color: #bdc3c7;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header,
    .cta-section,
    .footer {
        display: none;
    }
    
    .profile-section,
    .story-section,
    .qr-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 