/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a), 
                      linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.container {
    width: 100%;
    max-width: 800px;
}

.profile-card {
    background-color: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 1; /* 改为默认可见 */
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-header {
    padding: 40px 20px;
    text-align: center;
    background-color: #252525;
    position: relative;
}

.profile-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #333;
    border: 4px solid #7e57c2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(126, 87, 194, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(126, 87, 194, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(126, 87, 194, 0);
    }
}

.name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.title {
    font-size: 16px;
    color: #7e57c2;
    font-weight: 500;
}

.profile-content {
    padding: 30px;
}

.about {
    margin-bottom: 25px;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #7e57c2;
    position: relative;
    padding-bottom: 8px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #7e57c2;
}

.about p {
    line-height: 1.2 !important;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

.profile-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    border-radius: 25px;
    background-color: #2d2d2d;
    color: #7e57c2;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.social-links a i {
    margin-right: 10px;
}

.social-links a .link-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.social-links a:hover {
    background-color: #7e57c2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(126, 87, 194, 0.6);
}

/* 波纹效果 */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 打字机动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .profile-header {
        padding: 30px 15px;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .social-links a {
        height: 45px;
        font-size: 16px;
        padding: 0 18px;
    }
    
    .social-links a i {
        margin-right: 8px;
    }
} 