* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: #f6f6f6;
    padding: 40px 0;
}

/* 简历整体盒子 */
.resume-box {
    width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border: 2px solid #333;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* 标题 */
.title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 35px;
    color: #222;
    letter-spacing: 2px;
}

/* 每个模块边框 */
.section {
    border: 1px solid #999;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 6px;
}

/* 模块小标题 */
.section-title {
    font-size: 20px;
    background: #444;
    color: #fff;
    padding: 10px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* ======================
   基本信息：两列 + 右上角照片
======================= */
.base-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.info-left, .info-right {
    width: 36%;
}

/* 照片区域：固定右上角，不超出画面 */
.photo-area {
    width: 24%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 靠上 */
    align-self: flex-start; /* 强制顶部对齐 */
    margin-top: 0;
}

.photo {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #666;
    border-radius: 4px;
    display: block;
}

/* 信息行 */
.item {
    font-size: 16px;
    margin-bottom: 14px;
    display: flex;
}

.item span {
    font-weight: bold;
    width: 100px;
    color: #333;
}

input {
    flex: 1;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    padding: 2px 4px;
    outline: none;
}

/* ======================
   列表样式：自动换行
======================= */
.list {
    list-style: disc inside;
    padding-left: 6px;
}

.list li {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;

    /* 内容超长自动换行，不超出页面 */
    word-break: break-all;
    white-space: normal;
    overflow-wrap: break-word;
}

/* 链接 */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 视频 */
video {
    margin-top: 6px;
    border: 1px solid #ccc;
}