/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

/* 让简历在页面【正中间】显示（核心） */
body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 简历主容器：居中 + 边框 + 固定宽度 */
.resume-container {
    width: 100%;
    max-width: 900px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 顶部简历大标题：画框内正居中 */
.resume-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    letter-spacing: 8px;
}

/* 通用区块样式 */
section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}
section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 区块标题样式 */
h2 {
    background-color: #4472c4;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 基本信息布局 */
.info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}
.info-left {
    width: 75%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
}
.info-item {
    font-size: 15px;
}
.info-item span {
    font-weight: bold;
    color: #333;
}

/* 照片：缩小 + 靠右 + 不溢出 */
.info-right {
    width: 20%;
    text-align: right;
}
.resume-photo {
    max-width: 100px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 列表自动换行 */
ul {
    list-style: none;
    padding-left: 10px;
}
li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
    word-break: break-all;
    white-space: normal;
    text-align: justify;
}

/* 链接/视频样式 */
a {
    color: #4472c4;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
video {
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 100%;
}