/* 全局或基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Arial", sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding: 20px;
}

/* 简历容器 */
.resume-container {
    max-width: 960px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-height: 1123px; /* 大约A4高度 */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.profile-info {
    flex: 1;
}

/* 个人照片样式 */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover; /* 确保图片适当裁剪 */
    margin-left: 20px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.basic-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.info-item {
    margin-right: 20px;
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item svg {
    margin-right: 5px;
    fill: #666;
    width: 14px;
    height: 14px;
}

.wechat-icon {
    width: 16px !important;
    height: 16px !important;
    margin-right: 5px;
}

.section {
    margin-bottom: 20px;
}

.section-title {
    position: relative;
    font-size: 19px;
    margin-bottom: 10px;
    padding-left: 12px;
    font-weight: bold;
    color: #333;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #4db6ac;
    border-radius: 2px;
}

.job {
    margin-bottom: 15px;
    position: relative;
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.job-title {
    font-weight: bold;
    font-size: 16px;
}

.job-period {
    color: #888;
    font-size: 14px;
}

.job-company {
    margin-bottom: 6px;
    color: #555;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tag {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: #666;
}

/* 统一所有内容文本字号为14px */
.job-description, 
.education-description, 
.job-description li, 
.education-description li,
.job-description ul, 
.education-description ul,
.section div:not(.section-title):not(.job-title):not(.university-name):not(.university-rank):not(.degree-info) {
    font-size: 14px;
}

.job-description ul, .education-description ul {
    padding-left: 18px;
    margin-bottom: 8px;
}

.job-description li, .education-description li {
    margin-bottom: 4px;
}

.project-link {
    display: block;
    margin-top: 4px;
    color: #4db6ac;
    text-decoration: none;
    font-size: 13px;
}

.project-link:hover {
    text-decoration: underline;
}

.education {
    margin-bottom: 20px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.university-info {
    display: flex;
    align-items: center;
}

.university-logo {
    width: 35px;
    height: 35px;
    margin-right: 8px;
}

.university-name {
    font-weight: bold;
    font-size: 16px;
}

.university-rank {
    background-color: #e3f2fd;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-size: 12px;
    color: #1976d2;
}

.education-period {
    color: #888;
    font-size: 14px;
}

.degree-info {
    margin-bottom: 6px;
    color: #555;
    font-size: 16px !important; /* 确保学位信息字号增大 */
    line-height: 1.3;
}

.degree-info strong {
    color: #333;
    font-weight: bold;
    font-size: 16px !important;
}

.thesis-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 14px;
}

.education-description div {
    margin-bottom: 3px;
}

.editable {
    outline: none;
    border: 1px solid transparent;
    padding: 2px;
    transition: border-color 0.3s;
}

.editable:hover {
    border-color: #ddd;
    background-color: #f9f9f9;
}

.editable:focus {
    border-color: #4db6ac;
    background-color: #f9f9f9;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    
    .profile-image {
        margin: 0 0 15px 0;
        align-self: center;
    }
    
    .job-header, .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-period, .education-period {
        margin-top: 5px;
    }
}

/* 打印样式优化 */
@media print {
    body {
        padding: 0;
        background-color: white;
    }
    
    .resume-container {
        max-width: 100%;
        padding: 0.5cm;
        box-shadow: none;
        border-radius: 0;
    }
    
    .editable:hover, .editable:focus {
        border-color: transparent;
        background-color: transparent;
    }
    
    .project-link {
        color: #000;
        text-decoration: none;
    }
}