/* 基本样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 导航栏样式 */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav li {
    padding: 15px 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 15px 20px;
    transition: color 0.3s;
}

nav a:hover {
    color: #2575fc;
}

/* 主要内容区域样式 */
main {
    padding: 40px 0;
}

.section {
    margin-bottom: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.section h2 {
    color: #2575fc;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 关于我部分样式 */
.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.profile-image {
    flex: 0 0 200px;
}

.placeholder-image {
    width: 200px;
    height: 200px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image i {
    font-size: 80px;
    color: #adb5bd;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info p {
    margin-bottom: 15px;
}

/* 教育经历时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 120px;
    margin-left: -1px;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-date {
    min-width: 120px;
    text-align: right;
    padding-right: 25px;
    position: relative;
    z-index: 1;
}

.timeline-date span {
    background-color: #2575fc;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.timeline-content {
    padding: 0 20px 0 30px;
    background-color: white;
    border-radius: 6px;
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 荣誉奖项样式 */
.awards-list {
    list-style: none;
}

.awards-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.awards-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.awards-list i {
    font-size: 24px;
    color: #ffc107;
    margin-right: 20px;
    min-width: 30px;
    text-align: center;
}

.awards-list h3 {
    margin-bottom: 5px;
    color: #333;
}

/* 联系方式样式 */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 20px;
    color: #2575fc;
    margin-right: 15px;
    min-width: 25px;
    text-align: center;
}

.contact-item a {
    color: #2575fc;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    .timeline::after {
        left: 60px;
    }
    
    .timeline-date {
        min-width: 60px;
    }
    
    .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .timeline-date {
        min-width: auto;
        padding-right: 15px;
    }
    
    .timeline-date span {
        padding: 3px 6px;
        font-size: 0.9rem;
    }
    
    .timeline::after {
        left: 40px;
    }
}
