* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.resume-container {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 头部区域 */
.header {
    background-color: #0f172a;
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.header-info {
    flex: 1;
}

.name {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.title {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
    color: #cbd5e1
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item>span {
    color: #cbd5e1
}

.contact-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* 主体区域 */
.body-section {
    padding: 40px;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: rgb(15, 23, 42);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.summary-text {
    font-size: 16px;
    color: #334155;
    line-height: 1.8;
}

/* 工作经历 */
.work-experience-item {
    margin-bottom: 30px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.job-title {
    font-size: 20px;
    font-weight: bold;
    color: #0f172a;
}

.job-dates {
    font-size: 14px;
    color: #666;
}

.company-name {
    font-size: 16px;
    color: rgb(51, 65, 85);
    margin-bottom: 15px;
}

.job-responsibilities {
    list-style: none;
    padding-left: 0;
}

.job-responsibilities li {
    font-size: 15px;
    color: rgb(71, 85, 105);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.job-responsibilities li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1e3a5f;
    font-weight: bold;
    font-size: 18px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    margin-left: 10px;
    padding-left: 0;
    margin-top: 15px;
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 8px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* 时间线竖线 */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 7px;
    /* (16px dot width - 2px line width) / 2 */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
}

/* 第一项的线从圆点中心开始向下 */
.timeline-item:first-child::before {
    top: 10px;
    /* dot top (2px) + half dot height (8px) */
}

/* 最后一项的线只到圆点中心 */
.timeline-item:last-child::before {
    height: 10px;
    bottom: auto;
}

/* 时间线圆点 */
.timeline-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #3b82f6;
    z-index: 10;
    box-shadow: 0 0 0 3px #dbeafe;
    /* 添加光晕效果 */
}

/* 内容区域 */
/* 内容区域 */
.timeline-content {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
}

.timeline-date {
    font-size: 14px;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    width: 160px;
    /* 固定宽度，确保标题对齐 */
    flex-shrink: 0;
    margin-bottom: 0;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background-color: white;
        padding: 0;
        margin: 0;
    }

    .resume-container {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        box-shadow: none;
        page-break-after: avoid;
    }
}