/* 全局样式 */
* {
    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;
    max-width: 95%; /* 手机适配，不超出屏幕 */
    background: #fff;
    padding: 30px;
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 模块标题 */
.title {
    font-size: 20px;
    color: #fff;
    background-color: #2c3e50;
    padding: 8px 15px;
    margin-bottom: 15px;
    border-left: 5px solid #3498db;
}

/* 每个模块边框 */
.section {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* ====================== 基本信息布局（照片固定右侧） ====================== */
.base-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 左侧信息 */
.info-left {
    width: 45%;
    line-height: 2.2;
    font-size: 15px;
    min-width: 180px;
}

/* 中间信息 */
.info-middle {
    width: 35%;
    line-height: 2.2;
    font-size: 15px;
    min-width: 180px;
}

/* 右侧照片区域 */
.photo-box {
    width: 20%;
    min-width: 140px;
    display: flex;
    justify-content: flex-end; /* 照片靠右对齐 */
    align-items: center;
}

.photo {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #999;
    max-width: 100%; /* 照片永不超出页面 */
}

/* 基本信息标签样式 */
span {
    font-weight: bold;
    color: #2c3e50;
}

/* ====================== 列表样式（自动换行） ====================== */
.list {
    list-style: none;
    padding-left: 0;
}

.list li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
    word-wrap: break-word; /* 关键：超长自动换行 */
    white-space: normal;
    text-align: justify;
}

/* 列表小圆点 */
.list li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 视频样式 */
.video {
    margin-top: 8px;
    border: 1px solid #ddd;
    max-width: 100%;
    height: auto;
}

/* 链接样式 */
.link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}
.link:hover {
    text-decoration: underline;
}