/* 全局样式 */
* {
    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: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 模块样式 */
.section {
    border: 1px solid #999;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

/* 标题样式 */
.title {
    font-size: 18px;
    color: #333;
    background-color: #f0f0f0;
    padding: 6px 10px;
    margin-bottom: 15px;
    border-left: 4px solid #2e86ab;
}

/* 基本信息布局：左侧双列信息，右侧固定照片，禁止换行挤压 */
.base-info .info-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap; /* 关键：禁止自动换行，照片始终在最右 */
    gap:15px;
}

.info-left, .info-right {
    width: 32%;
    line-height: 2;
    font-size: 15px;
}

.photo-box {
    width: 22%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0; /* 关键：盒子固定尺寸，不会被压缩溢出 */
}

.photo {
    width: 130px;
    height: 160px;
    object-fit: cover;
    border: 1px solid #ccc;
    max-width:100%; /* 图片自适应盒子，绝不超出容器画面 */
}

/* 列表样式：自动换行 + 不超出页面 */
.list {
    list-style: none;
    padding-left: 10px;
}

.list li {
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 15px;
    /* 内容超长自动换行，不溢出 */
    word-wrap: break-word;
    white-space: pre-line;
    padding-left: 10px;
    position: relative;
}

/* 列表小圆点 */
.list li::before {
    content: "•";
    color: #2e86ab;
    position: absolute;
    left: 0;
}

/* 链接样式 */
a {
    color: #2e86ab;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 视频样式 */
video {
    vertical-align: middle;
    margin-top: 5px;
    max-width:100%; /* 视频也不会超出模块边框 */
}