* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    /* 设置当前图片为页面背景 */
    background-image: url("./bj.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 30px 0;
    line-height: 1.6;
}

.resume-container {
    width: 850px;
    margin: 0 auto;
    border: 2px solid #333;
    background-color: #ffffff;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 新增：和截图一致的顶端居中标题样式 */
.main-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.resume-section {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
}

.resume-section h2 {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    background-color: #4089f1;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom:15px;
    border-bottom:none;
}

/* =====基本信息布局（标签两端对齐）===== */
.basic-info .info-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.info-content {
    width:73%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.info-item {
    display: flex;
}
.info-label {
    width:82px;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-ideograph;
    padding-right:4px;
    white-space: nowrap;
}
.info-value {
    flex:1;
}

/* 照片尺寸 */
.photo-area {
    width:22%;
    display: flex;
    justify-content: center;
}
.photo-area img {
    width:130px;
    height:160px;
    object-fit: cover;
    border:1px solid #eee;
}

/* 列表自动换行 */
.resume-section ul {
    list-style: disc inside;
    padding-left: 5px;
}
.resume-section li {
    margin-bottom: 8px;
    font-size: 15px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

a {
    color: #3498db;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

video {
    max-width: 100%;
    margin: 5px 0;
}