/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    flex-shrink: 0;
}

.avatar-container {
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* 主要内容 */
main {
    padding: 1.5rem;
    flex-grow: 1;
}

.introduction {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    line-height: 1.7;
}

/* 时间轴样式 */
.timeline {
    margin-top: 2rem;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
    font-size: 1.5rem;
}

.timeline-container {
    position: relative;
    padding-left: 2.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #6e8efb;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 0.3rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #a777e3;
    border: 3px solid #6e8efb;
    z-index: 1;
}

.timeline-date {
    font-weight: bold;
    color: #a777e3;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.timeline-content {
    background: #f9f9f9;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.timeline-content h3 {
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #f5f5f5;
    color: #777;
    font-size: 0.9rem;
    flex-shrink: 0;
}

footer a {
    color: #6e8efb;
    text-decoration: none;
}

footer p {
    margin-bottom: 0.5rem;
}

/* 响应式设计 - 手机端优化 */
@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
    
    .container {
        border-radius: 0;
        box-shadow: none;
    }
    
    header {
        padding: 1.5rem 1rem;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    main {
        padding: 1.2rem;
    }
    
    .introduction {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .timeline {
        margin-top: 1.5rem;
    }
    
    .timeline h2 {
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
    }
    
    .timeline-container {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
        width: 0.8rem;
        height: 0.8rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    footer {
        padding: 1rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 400px) {
    html {
        font-size: 14px;
    }
    
    .avatar-container {
        width: 85px;
        height: 85px;
    }
    
    .timeline-container {
        padding-left: 1.8rem;
    }
    
    .timeline-item::before {
        left: -1.3rem;
    }
}