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

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 通用区域样式 */
section {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

section h2 {
    color: #667eea;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.8rem;
}

/* 个人介绍区域 */
.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.profile-container {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-me {
    flex: 2;
    min-width: 300px;
}

.about-me p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

/* 技能区域 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.skill-item h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.skill-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 经历区域 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #667eea;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid #667eea;
}

.timeline-date {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: #333;
}

.timeline-position {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.timeline-description {
    color: #555;
}

/* 兴趣爱好区域 */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.hobby-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hobby-item:hover {
    background-color: #667eea;
    color: white;
}

.hobby-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hobby-item h3 {
    margin-bottom: 10px;
}

.hobby-item p {
    font-size: 0.9rem;
}

/* 联系方式区域 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-info p:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-3px);
}

.contact-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    border-radius: 20px 20px 0 0;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 20px;
    }
    
    .intro-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .contact-info {
        flex-direction: column;
    }
}