* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

/* 页面整体样式 */
body {
    background-color: #f5f5f5;
    padding: 30px 0;
    line-height: 1.6;
    /* 禁止横向滚动，彻底防止内容出画 */
    overflow-x: hidden;
}

/* 简历容器 */
.resume-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 容器内溢出隐藏，兜底防护 */
    overflow: hidden;
}

/* 通用模块样式 */
.resume-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

/* 模块标题 */
.resume-section h2 {
    background-color: #2c3e50;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 18px;
}

/* ====================== 最终版：照片固定右侧+永不溢出（核心优化） ====================== */
.basic-info-section {
    display: flex;
    /* 水平左右分布 */
    justify-content: space-between;
    align-items: flex-start;
    /* 元素间距，不挤压 */
    gap: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    /* 小屏幕自动换行，照片不会被挤压 */
    flex-wrap: wrap;
}

/* 左侧信息：占满剩余空间，不挤压照片 */
.basic-info-left {
    flex: 1;
    /* 最小宽度，防止文字被压扁 */
    min-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 15px;
}

.info-item {
    display: flex;
    font-size: 15px;
}

.label {
    font-weight: bold;
    color: #2c3e50;
    width: 80px;
    flex-shrink: 0;
}

.content {
    color: #333;
}

/* 右侧照片容器：固定最大宽度，绝对不超出 */
.basic-info-right {
    /* 固定照片容器宽度，不可拉伸 */
    width: 150px;
    max-width: 150px;
    text-align: center;
    /* 容器溢出隐藏，防止照片边缘出画 */
    overflow: hidden;
    border-radius: 4px;
}

/* 照片：100%适配容器，等比例缩放，永不溢出 */
.avatar {
    /* 宽度完全贴合父容器 */
    width: 100%;
    /* 高度等比例，不变形 */
    height: 200px;
    /* 裁剪多余部分，保持照片方正 */
    object-fit: cover;
    border: 2px solid #ddd;
    /* 块级元素，无多余间距 */
    display: block;
    margin: 0 auto;
}

/* ====================== 列表样式：自动换行，内容不出画 ====================== */
ul {
    list-style: none;
    padding-left: 5px;
}

li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
    /* 强制长文本换行，彻底解决溢出 */
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

/* 链接样式 */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 视频样式 */
.practice-video {
    max-width: 100%;
    height: auto;
    margin: 5px 0;
    border-radius: 4px;
}