:root {
    --brand: #00a85a;
    --brand-dark: #008347;
    --brand-soft: #e9f8f0;
    --pink: #ec0b72;
    --pink-deep: #be075b;
    --pink-soft: #fff0f7;
    --ink: #1f2a24;
    --muted: #69766f;
    --line: #e5ece8;
    --paper: #ffffff;
    --bg: #f5f8f6;
    --shadow: 0 18px 42px rgba(21, 54, 40, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(236, 11, 114, 0.14), rgba(236, 11, 114, 0.06) 230px, rgba(245, 248, 246, 0) 360px),
        var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

body.preview-open {
    overflow: hidden;
}

.phone-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 236, 232, 0.8);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.brand strong {
    display: block;
    font-size: 15px;
}

.brand span {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
}

.status {
    padding: 6px 9px;
    color: #fff;
    background: var(--pink);
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
}

.hero {
    padding: 18px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    color: #fff;
    background: linear-gradient(145deg, var(--pink-deep), var(--pink) 68%, #f36aa5);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -64px;
    bottom: -74px;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.hero-card::before {
    content: "";
    position: absolute;
    left: -54px;
    top: -70px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 168, 90, 0.22), rgba(0, 168, 90, 0));
}

.profile-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 16px;
    align-items: center;
}

.avatar {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    color: var(--pink);
    background: #fff;
    border: 4px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    font-size: 22px;
    font-weight: 800;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-title h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.profile-title p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.6;
}

.tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tags span {
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
}

.section {
    margin: 10px 18px;
    padding: 17px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section h2 {
    margin: 0;
    font-size: 17px;
}

.section-head span {
    color: var(--muted);
    font-size: 12px;
}

.recommend {
    margin: 0;
    color: #3d4a43;
    font-size: 15px;
    line-height: 1.8;
}

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

.info-item {
    padding: 12px;
    background: #f8fbf9;
    border-radius: 13px;
}

.info-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.info-item strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.verify-grid {
    display: grid;
    gap: 9px;
}

.verify-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 13px;
    background: #f8fbf9;
    border-radius: 13px;
}

.verify-row b {
    font-size: 14px;
}

.verify-row span {
    color: var(--brand-dark);
    font-size: 13px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    position: relative;
    padding-left: 18px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--pink);
    border-radius: 50%;
}

.timeline-item time {
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
}

.timeline-item p {
    margin: 6px 0 0;
    color: #3f4b45;
    font-size: 14px;
    line-height: 1.7;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: none;
    overflow: visible;
}

.photo-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
}

.photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(145deg, #fff0f7, #ffffff);
    border: 1px solid var(--line);
    border-radius: 14px;
    object-fit: cover;
}

.photo-more-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(31, 42, 36, 0.28), rgba(31, 42, 36, 0.72));
    border-radius: 14px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.photo-more-badge em {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
}

.photo-preview {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background: rgba(0, 0, 0, 0.88);
    touch-action: pan-y;
}

.photo-preview[hidden] {
    display: none;
}

.photo-preview img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

.photo-preview-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.photo-preview-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 58px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
}

.photo-preview-nav:disabled {
    opacity: 0.28;
}

.photo-preview-prev {
    left: 12px;
}

.photo-preview-next {
    right: 12px;
}

.photo-preview-counter {
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 13px;
    transform: translateX(-50%);
}

.notice {
    margin: 10px 18px 10px;
    padding: 14px 16px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.7;
}

.resume-slogan {
    margin: 8px 18px 4px;
    color: var(--pink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.resume-hotline {
    margin: 0 18px 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.empty-state {
    padding: 42px 18px;
}

.empty-card {
    padding: 28px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    text-align: center;
}

.empty-card h1 {
    margin: 0;
    font-size: 22px;
}

.empty-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (min-width: 760px) {
    body {
        padding: 28px 0;
    }

    .phone-shell {
        min-height: calc(100vh - 56px);
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 0 0 1px rgba(8, 98, 71, 0.06);
    }

    .bottom-actions {
        border-radius: 0 0 28px 28px;
    }
}
