/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

/* 简历整体容器 */
.resume-container {
    width: 900px;
    background: #fff;
    padding: 30px;
    border: 2px solid #333;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* 模块样式 */
.section {
    border: 1px solid #666;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 6px;
}

/* 模块标题 */
.title {
    font-size: 20px;
    color: #222;
    border-left: 5px solid #2c7be5;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* ====================== 基本信息布局（优化版：照片固定右侧不溢出） ====================== */
.base-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap; /* 禁止换行，保证布局整齐 */
    width: 100%;
}

/* 左侧信息列 */
.info-left {
    width: 35%;
    flex-shrink: 0;
}

/* 右侧信息列 */
.info-right {
    width: 35%;
    flex-shrink: 0;
}

.info-left p, .info-right p {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.info-left span, .info-right span {
    font-weight: bold;
    color: #222;
}

/* 照片区域：固定在最右侧，居中，不超出画面 */
.photo-box {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto; /* 强制推到最右侧 */
}

.photo {
    width: 130px;
    height: 160px;
    object-fit: cover;
    border: 1px solid #999;
    /* 确保照片不溢出、不变形 */
    max-width: 100%;
    display: block;
}

/* ====================== 列表样式（自动换行） ====================== */
.list {
    list-style: none;
    padding-left: 10px;
}

.list li {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
    /* 内容超长自动换行，不溢出页面 */
    word-break: break-all;
    white-space: normal;
    padding-left: 10px;
    position: relative;
}

/* 列表小圆点 */
.list li::before {
    content: "•";
    color: #2c7be5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 链接样式 */
a {
    color: #2c7be5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 视频样式 */
video {
    margin: 5px 0;
    border-radius: 4px;
    max-width: 100%; /* 视频也不溢出页面 */
}