/* 关于页面样式 */

/* 关于内容区域 */
.about-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 100px; /* 添加顶部边距，确保有足够空间避免被固定导航栏遮挡 */
}

.about-content {
    padding: 2rem;
}

/* 个人介绍 */
.about-intro {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.intro-text .subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.intro-text .description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

/* 技术栈 */
.skills-section {
    margin-bottom: 3rem;
}

.skills-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.skill-category {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.skill-category h4 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

/* 工作经历 */
.experience-section {
    margin-bottom: 3rem;
}

.experience-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.timeline-content h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-content .period {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.timeline-content .description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 教育背景 */
.education-section {
    margin-bottom: 3rem;
}

.education-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #10b981;
}

.education-item h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-item .school {
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-item .period {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.education-item .description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 兴趣爱好 */
.hobbies-section {
    margin-bottom: 3rem;
}

.hobbies-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hobby-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hobby-item i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.hobby-item h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hobby-item p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 联系方式 */
.contact-section {
    margin-bottom: 2rem;
}

.contact-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: #f3f4f6;
}

.contact-item i {
    color: #3b82f6;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: #4b5563;
    font-size: 0.9rem;
}

.contact-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }
    
    .about-intro {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-image .avatar {
        width: 100px;
        height: 100px;
    }
    
    .intro-text h2 {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.25rem;
    }
}

@media (max-width: 480px) {
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        gap: 0.75rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
}
