/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 30px 0;
    line-height: 1.6;
}

/* 简历整体容器 */
.resume-container {
    width: 900px;
    margin: 0 auto;
    background-color: #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: 5px;
}

/* 模块标题 */
.section-title {
    font-size: 18px;
    color: #222;
    background-color: #f0f0f0;
    padding: 8px 12px;
    margin-bottom: 15px;
    border-left: 4px solid #444;
}

/* 基本信息布局：左侧信息 + 右侧照片（修复版） */
.base-info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* 左侧信息两列布局 */
.base-info-left {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

/* 信息项样式 */
.info-item {
    width: 50%;
    margin-bottom: 10px;
    font-size: 15px;
}

.label {
    font-weight: bold;
    color: #333;
}

.content {
    color: #555;
}

/* 右侧照片：完全不超出画面，自适应居中 */
.base-info-right {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 140/180;
    object-fit: cover;
    border: 1px solid #ccc;
}

/* 列表样式：自动换行、超长文本适配 */
.list {
    list-style-position: inside;
    padding-left: 5px;
}

.list li {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    /* 自动换行核心代码 */
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* 链接样式 */
.list a {
    color: #0066cc;
    text-decoration: none;
}

.list a:hover {
    text-decoration: underline;
}
/* 顶部简历大标题，居中不溢出 */
.resume-top-title {
    text-align: center;
    font-size: 28px;
    color: #222;
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}