/* 个人简历页面样式：简体中文, 移动端 */

/* 移动端响应式样式 */
@media (max-width: 768px) {

/* 确保子菜单项可以被点击 */
.sidebar .nav-links .menu-item-with-arrow {
    cursor: pointer;
    user-select: none;
}
.sidebar .nav-links .menu-item-with-arrow:hover {
    background-color: rgba(0,0,0,0.05);
}

/* 📱 页面整体布局 */
.main-content {
    /* 正常文档流 */
    display: block;
}

/* 📋 A4纸张容器样式 - 简单有效的布局方案 */
.a4-container {
    width: 90%;
    max-width: 600px;
    aspect-ratio: 210 / 297;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 100px auto 20px auto;
    padding: 2.5cm;
    box-sizing: border-box;
    
    /* 简单的正常文档流布局 */
    display: block;
    
    /* 简体中文版字体样式（默认） */
    font-family: KaiTi, serif;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 顶部区域 - 个人信息和头像的容器 */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

/* 👤 个人信息区块样式 */
.personal-info {
    flex: 1;  /* 占据剩余空间 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.personal-info h1 {
    margin: 0;
    text-align: left;
    font-size: 28px;
    font-weight: bold;
}

/* 📞 联系信息样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.contact-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

/* 🖼️ 头像样式 */
.avatar {
    flex-shrink: 0;  /* 不缩小 */
    width: 100px;
    height: 100px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}

/* 分隔线样式 - 横跨整行 */
.divider {
    height: 3px;
    background: #933613;
    width: 100%;
    margin: 20px 0;
    border: none;
}

/* 下面所有内容正常文档流布局 */

/* 🎓 教育经历样式 */
.education-section {
    margin-bottom: 30px;
}

.education-section h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    text-align: left;
    font-weight: bold;
    color: #000000;
}

/* 📝 教育信息 */
.education-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.education-info p {
    margin: 0;
    font-weight: bold;
}

.education-info .school {
    font-size: 18px;
    color: #000000;
}

.education-info .major {
    font-size: 16px;
    color: #000000;
}

.education-info .edu-date {
    font-size: 16px;
    color: #000000;
}

/* 💼 工作经历样式 */
.work-section {
    margin-bottom: 30px;
}

.work-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    text-align: left;
    font-weight: bold;
    color: #000000;
}

/* 📋 工作经历条目 */
.work-experience {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* 📊 工作头部信息 */
.work-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-header p {
    margin: 0;
    font-weight: bold;
}

.work-time {
    font-size: 18px;
    color: #000000;
}

.work-company {
    font-size: 18px;
    color: #000000;
    font-weight: bold;
}

.work-position {
    font-size: 16px;
    color: #000000;
}

.project-name {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin-top: 5px;
}

.project-background {
    font-size: 14px;
    color: #000000;
    line-height: 1.5;
    font-style: bold;
}

.project-background-title {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    margin-top: 8px;
}

.work-measures-title {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    margin-top: 8px;
}

.project-results-title {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    margin-top: 8px;
}

/* 📄 工作详情 */
.work-details {
    display: block;
    margin-top: 10px;
}

.work-details p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 0px;
}

/* ⭐ 其他部分样式 */
.others-section {
    margin-bottom: 20px;
}

.others-section h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    text-align: left;
    font-weight: bold;
    color: #000000;
}

/* 📝 其他内容 */
.others-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.others-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* 移动端响应式调整已整合到主媒体查询中 */
    .header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .personal-info {
        align-items: center;
    }

    .contact-info {
        align-items: center;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .a4-container {
        padding: 1.5cm;
        font-size: 18px;
    }

.others-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}


} /* 结束移动端媒体查询 */

/* 语言相关字体样式 - 适用于所有设备 */
/* 繁体中文版字体样式 */
@media (max-width: 768px) {
    body.lang-zh-tw .a4-container {
        font-family: Noto_Serif_TC, serif;
        font-size: 20px;
        line-height: 1.6;
        letter-spacing: 0.5px;
    }

    /* 英文版字体样式 */
    body.lang-en .a4-container {
        font-family: Georgia, "Times New Roman", "Noto Serif", "Droid Serif", serif;
        font-size: 20px;
        line-height: 1.6;
        letter-spacing: 0.5px;
    }
}