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

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color:lightpink;
}

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

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #3498db;
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.title {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-3px);
}

/* 主体内容样式 */
.main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 通用区块样式 */
.about, .skills, .experience, .education, .contact {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about:hover, .skills:hover, .experience:hover, .education:hover, .contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

/* 关于我区块 */
.about p {
    margin-bottom: 15px;
    line-height: 1.8;
}

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

.skill {
    margin-bottom: 15px;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.skill-progress.html {
    width: 90%;
    background-color: #e34c26;
}

.skill-progress.css {
    width: 85%;
    background-color: #264de4;
}

.skill-progress.js {
    width: 80%;
    background-color: #f7df1e;
}

.skill-progress.react {
    width: 75%;
    background-color: #61dafb;
}

.skill-progress.vue {
    width: 70%;
    background-color: #4fc08d;
}

.skill-progress.node {
    width: 65%;
    background-color: #339933;
}

/* 工作经验区块 */
.experience-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.company-name {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.job-title {
    font-size: 1rem;
    color: #e74c3c;
    margin-bottom: 10px;
}

.job-responsibilities {
    list-style-type: none;
    padding-left: 20px;
}

.job-responsibilities li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 20px;
}

.job-responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 1.2rem;
}

/* 教育背景区块 */
.education-item {
    margin-bottom: 0;
}

.school-name {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.degree {
    font-size: 1rem;
    color: #e74c3c;
    margin-bottom: 10px;
}

.education-description {
    line-height: 1.8;
}

/* 联系方式区块 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.contact-item i {
    color: #3498db;
    width: 24px;
    text-align: center;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .header, .about, .skills, .experience, .education, .contact {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-picture {
        width: 150px;
        height: 150px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}