/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

/* 粒子效果容器 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #e6f0ff 100%);
    z-index: -1;
}

/* 实时时间显示 */
.time-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    z-index: 1000;
    animation: timeFadeIn 1s ease-out;
}

@keyframes timeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 日期样式 */
.date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-align: center;
    margin-bottom: 5px;
}

/* 时间样式 */
.time {
    font-size: 1.8rem;
    color: #667eea;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
}

/* 主容器 */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
}

/* 个人信息卡片 */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    animation: cardSlideIn 1s ease-out;
}

/* 卡片滑入动画 */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 个人信息头部 */
.profile-header {
    position: relative;
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 背景装饰 */
.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

/* 个人照片 */
.profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: photoGlow 3s ease-in-out infinite alternate;
}

/* 照片发光动画 */
@keyframes photoGlow {
    from {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.3);
    }
    to {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

/* 照片样式 */
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 姓名样式 */
.name {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: nameGlow 3s ease-in-out infinite alternate;
}

/* 姓名发光动画 */
@keyframes nameGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

/* 头衔样式 */
.title {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

/* 兴趣爱好部分 */
.hobbies-section {
    padding: 40px;
    background: #f8fafc;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* 兴趣爱好卡片容器 */
.hobby-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* 兴趣爱好卡片 */
.hobby-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: hobbyCardFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* 卡片淡入动画 */
.hobby-card:nth-child(1) { animation-delay: 0.1s; }
.hobby-card:nth-child(2) { animation-delay: 0.2s; }
.hobby-card:nth-child(3) { animation-delay: 0.3s; }
.hobby-card:nth-child(4) { animation-delay: 0.4s; }
.hobby-card:nth-child(5) { animation-delay: 0.5s; }
.hobby-card:nth-child(6) { animation-delay: 0.6s; }
.hobby-card:nth-child(7) { animation-delay: 0.7s; }
.hobby-card:nth-child(8) { animation-delay: 0.8s; }
.hobby-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes hobbyCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片悬停效果 */
.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

/* 兴趣爱好头部 */
.hobby-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.hobby-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* 兴趣爱好图标 */
.hobby-icon {
    font-size: 2rem;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-icon {
    transform: scale(1.2) rotate(5deg);
}

/* 兴趣爱好标题 */
.hobby-title {
    flex: 1;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* 切换按钮 */
.toggle-btn {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
}

.hobby-card.active .toggle-btn {
    transform: rotate(45deg);
    color: #ffffff;
    background: #667eea;
}

/* 兴趣爱好内容 */
.hobby-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 30px;
    background: rgba(102, 126, 234, 0.03);
}

.hobby-card.active .hobby-content {
    max-height: 200px;
    padding: 20px 30px 30px;
}

/* 兴趣爱好描述 */
.hobby-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}



/* 部分标题 */
.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 个人简介部分 */
.bio-section {
    padding: 40px;
    background: #ffffff;
}

/* 个人简介内容 */
.bio-content {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
    text-align: justify;
}

.bio-content p {
    margin-bottom: 20px;
}

/* 核心成就部分 */
.achievements-section {
    padding: 40px;
    background: #f8fafc;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* 成就网格 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* 成就卡片 */
.achievement-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    animation: achievementFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes achievementFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 成就卡片悬停效果 */
.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 成就图标 */
.achievement-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.2) rotate(10deg);
}

/* 成就标题 */
.achievement-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 成就描述 */
.achievement-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* 时间轴部分 */
.timeline-section {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 时间轴容器 */
.timeline {
    position: relative;
    padding-left: 40px;
}

/* 时间轴中心线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    animation: timelineGrow 2s ease-out forwards;
    transform-origin: top;
    transform: scaleY(0);
}

/* 时间轴生长动画 */
@keyframes timelineGrow {
    to {
        transform: scaleY(1);
    }
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    animation: timelineItemSlideIn 0.8s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }

/* 时间轴项目滑入动画 */
@keyframes timelineItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 时间轴图标 */
.timeline-icon {
    position: absolute;
    left: -55px;
    top: 10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 时间轴内容 */
.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

/* 时间轴年份 */
.timeline-year {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 时间轴标题 */
.timeline-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 时间轴描述 */
.timeline-description {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .profile-header {
        padding: 40px 20px;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .age {
        font-size: 1.2rem;
    }
    
    .hobbies-section,
    .timeline-section {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hobby-header {
        padding: 20px 25px;
    }
    
    .hobby-icon {
        font-size: 2rem;
        margin-right: 15px;
    }
    
    .hobby-title {
        font-size: 1.1rem;
    }
    
    .hobby-content p {
        font-size: 0.95rem;
    }
    
    /* 时间轴响应式 */
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-icon {
        left: -45px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .age {
        font-size: 1rem;
    }
    
    .hobby-header {
        padding: 15px 20px;
    }
    
    .hobby-icon {
        font-size: 1.8rem;
        margin-right: 12px;
    }
    
    .hobby-title {
        font-size: 1rem;
    }
    
    /* 时间轴响应式 */
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-icon {
        left: -38px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-year {
        font-size: 0.8rem;
    }
}