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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-info .name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-info .title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 4px;
    opacity: 0.95;
}

.profile-info .subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-item i {
    width: 16px;
    text-align: center;
}

/* 章节标题 */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 通用章节样式 */
section {
    padding: 40px;
    border-bottom: 1px solid #f1f5f9;
}

section:last-child {
    border-bottom: none;
}

/* 技能部分 */
.skills-section {
    background: #f8fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 时间线样式 */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.timeline-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.institution {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.gpa {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.coursework {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 奖项部分 */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.award-icon {
    font-size: 2rem;
    color: #f6ad55;
    flex-shrink: 0;
}

.award-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.award-content p {
    color: #4a5568;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.award-desc {
    color: #718096 !important;
    font-size: 0.85rem !important;
    line-height: 1.4;
}

/* 项目部分 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-desc {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 实习经历 */
.internship-desc ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.internship-desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.internship-desc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 论文部分 */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.publication-icon {
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.publication-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-venue {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.publication-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 语言能力 */
.languages-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.language-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.language-name {
    font-weight: 600;
    color: #2d3748;
}

.language-level {
    color: #4a5568;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
    }
    
    section {
        padding: 30px 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: 6px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .languages-grid {
        flex-direction: column;
    }
    
    .name {
        font-size: 2rem !important;
    }
    
    .title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    section {
        padding: 25px 15px;
    }
    
    .name {
        font-size: 1.8rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header {
        background: #f8fafc !important;
        color: #333 !important;
    }
    
    .skill-tag, .tech-tag, .timeline-date {
        background: #e2e8f0 !important;
        color: #333 !important;
    }
} 