/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.avatar {
    font-size: 5rem;
    color: #3498db;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* 链接卡片样式 */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.link-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.link-card:nth-child(1) { --i: 1; }
.link-card:nth-child(2) { --i: 2; }
.link-card:nth-child(3) { --i: 3; }
.link-card:nth-child(4) { --i: 4; }

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.link-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.link-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.link-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto;
}

.btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: #7f8c8d;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
    transform: scale(1.2);
}

footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
}