/* 全局样式重置 */
* {
    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 #ccc;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
}

/* 模块标题 */
.section-title {
    font-size: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* 列表样式（超长自动换行） */
.list {
    list-style: disc inside;
    padding-left: 10px;
}

.list li {
    margin-bottom: 10px;
    font-size: 15px;
    /* 核心：内容超长自动换行 */
    word-wrap: break-word;
    white-space: normal;
}

/* ===================== 基本信息专属样式（已修复照片溢出） ===================== */
.base-info .info-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* 文字和照片之间增加间距 */
}

/* 左侧信息双列布局 */
.base-info .info-left {
    flex: 1; /* 自动占满剩余空间，不被挤压 */
    display: flex;
    flex-wrap: wrap;
}

/* 信息项 */
.info-item {
    width: 50%;
    margin-bottom: 12px;
    font-size: 15px;
}

.label {
    font-weight: bold;
    color: #34495e;
    display: inline-block;
    width: 90px;
}

/* 右侧照片容器 - 修复核心 */
.base-info .info-right {
    width: 160px; /* 固定照片区域宽度，防止变形 */
    flex-shrink: 0; /* 禁止被挤压变形 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 照片样式 - 完全适配不溢出 */
.avatar {
    width: 100%;
    height: auto;
    max-width: 150px;
    max-height: 200px;
    object-fit: cover;
    border: 1px solid #ccc;
}

/* 实践经历视频样式 */
.practice-video {
    margin-top: 5px;
    border: 1px solid #ddd;
}

/* 链接样式 */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}