/* 麻赫坦简历.pdf 同款样式 */
:root {
    --resume-bg: #ffffff;
    --resume-text: #333333;
    --resume-text-dark: #000000;
    --resume-text-muted: #888888;
    --resume-accent: #4db6ac;
    --resume-max-width: 820px;
    --resume-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Alibaba PuHuiTi",
        -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #f0f0f0;
}

body.resume-page {
    font-family: var(--resume-font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--resume-text);
    background: var(--resume-bg);
}

.resume-toolbar {
    max-width: var(--resume-max-width);
    margin: 0 auto;
    padding: 12px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f0f0;
}

.resume-toolbar a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.resume-toolbar a:hover {
    color: var(--resume-accent);
}

.resume-sheet {
    max-width: var(--resume-max-width);
    margin: 0 auto 40px;
    padding: 36px 42px 48px;
    background: var(--resume-bg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* 页眉 */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.resume-header-left {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.resume-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--resume-text-dark);
    line-height: 1.2;
    margin-bottom: 8px;
}

.resume-meta-row {
    font-size: 13px;
    color: var(--resume-text-dark);
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}

.resume-meta-row .sep {
    color: #ccc;
}

.resume-meta-row a {
    color: var(--resume-text-dark);
    text-decoration: none;
}

.resume-headline {
    font-size: 13px;
    color: var(--resume-text);
    line-height: 1.5;
}

.resume-photo {
    width: 100px;
    height: 120px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    flex-shrink: 0;
    background: #e8e8e8;
}

/* 分区标题 */
.resume-section {
    margin-top: 22px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--resume-text-dark);
    margin-bottom: 12px;
}

.section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--resume-accent);
    flex-shrink: 0;
}

/* 个人优势 */
.advantage-certs {
    list-style: none;
    margin-bottom: 10px;
}

.advantage-certs li {
    font-size: 13px;
    color: var(--resume-text);
    line-height: 1.7;
    padding-left: 0;
}

.advantage-paragraphs p {
    font-size: 13px;
    color: var(--resume-text);
    margin-bottom: 8px;
    text-align: justify;
}

/* 经历条目 */
.experience-item {
    margin-bottom: 18px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.experience-company {
    font-size: 15px;
    font-weight: 700;
    color: var(--resume-text-dark);
    flex: 1;
    min-width: 200px;
}

.experience-role {
    font-size: 13px;
    color: var(--resume-text-muted);
    text-align: center;
    flex: 0 0 auto;
}

.experience-date {
    font-size: 13px;
    color: var(--resume-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.sub-label {
    font-weight: 700;
    color: var(--resume-text-dark);
    font-size: 13px;
    margin: 6px 0 4px;
}

.experience-body {
    font-size: 13px;
    color: var(--resume-text);
    text-align: justify;
    white-space: pre-wrap;
    line-height: 1.7;
}

.achievement-list {
    list-style: decimal;
    padding-left: 1.4em;
    font-size: 13px;
    color: var(--resume-text);
}

.achievement-list li {
    margin-bottom: 4px;
    line-height: 1.65;
}

.project-vendor {
    font-size: 13px;
    color: var(--resume-text);
    margin-bottom: 6px;
}

/* 教育 */
.education-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.education-school {
    font-size: 15px;
    font-weight: 700;
    color: var(--resume-text-dark);
}

.education-degree {
    font-size: 13px;
    color: var(--resume-text-muted);
    margin-left: 8px;
    font-weight: 400;
}

.education-date {
    font-size: 13px;
    color: var(--resume-text-muted);
}

/* 资格证书 */
.cert-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.cert-list li {
    font-size: 13px;
    color: var(--resume-text);
}

@media print {
    html {
        background: #fff;
    }

    .resume-toolbar {
        display: none;
    }

    .resume-sheet {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
        padding: 24px 32px;
    }
}

@media (max-width: 640px) {
    .resume-sheet {
        padding: 24px 18px;
    }

    .resume-header {
        flex-direction: column-reverse;
        align-items: center;
    }

    .resume-header-left {
        padding-right: 0;
        width: 100%;
    }

    .resume-photo {
        margin-bottom: 16px;
    }

    .experience-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-role {
        text-align: left;
    }
}
