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

body {
    min-height: 100vh;
    padding: 32px 16px;
    color: #2f2a1f;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 222, 82, 0.42), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(107, 208, 255, 0.28), transparent 24%),
        linear-gradient(135deg, #fff8d6 0%, #f2fbff 45%, #fff3b1 100%);
}

.resume {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 3px solid #f2bd22;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(92, 75, 23, 0.16);
}

.resume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 2px solid #ffe07a;
    border-radius: 16px;
    background: linear-gradient(90deg, #fff5b8, #e8f8ff);
}

.nailong-logo {
    width: 150px;
    max-width: 25%;
    height: auto;
    object-fit: contain;
}

.resume-tag {
    margin-bottom: 4px;
    color: #1682a9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    color: #332816;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
}

.header-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 2px solid #f2bd22;
    border-radius: 999px;
    color: #6c4b00;
    font-size: 14px;
    font-weight: 700;
    background: #fffdf1;
}

.section {
    position: relative;
    margin-bottom: 18px;
    padding: 18px;
    border: 2px solid #f0ca47;
    border-radius: 14px;
    background: #fffefa;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 16px;
    border: 2px solid #f2bd22;
    border-radius: 999px;
    color: #3a2b08;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0;
    background: #ffe66d;
}

.section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: #33b6dd;
    box-shadow: 16px 0 0 #ff8db4;
}

.basic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 22px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.info-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #f4d666;
    border-radius: 10px;
    background: #fff9dc;
}

.info-item span {
    color: #7c5b00;
    font-size: 14px;
    font-weight: 700;
}

.info-item strong {
    min-width: 0;
    color: #2e2a22;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.photo-box {
    width: 150px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    padding: 6px;
    border: 2px solid #f2bd22;
    border-radius: 16px;
    background:
        radial-gradient(circle at center, #fffef2 0%, #fff4b0 68%);
}

.photo-box img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
}

.resume-list {
    padding-left: 24px;
}

.resume-list li {
    margin-bottom: 10px;
    padding-left: 4px;
    color: #342f25;
    font-size: 15px;
    line-height: 1.75;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.resume-list li:last-child {
    margin-bottom: 0;
}

a {
    color: #0679aa;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a:hover {
    color: #d77900;
    text-decoration: underline;
}

.media-box {
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed #efbf2c;
    border-radius: 14px;
    background: #fff9df;
}

.media-box video {
    width: 100%;
    max-height: 360px;
    display: block;
    border-radius: 10px;
    background: #222;
}

@media (max-width: 720px) {
    body {
        padding: 16px 10px;
    }

    .resume {
        padding: 16px;
        border-radius: 14px;
    }

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

    .nailong-logo {
        max-width: 180px;
    }

    h1 {
        font-size: 24px;
    }

    .basic-layout {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .photo-box {
        justify-self: center;
    }
}

@media print {
    body {
        padding: 0;
        background: #fff;
    }

    .resume {
        width: 100%;
        box-shadow: none;
    }
}
