:root {
    --profile-bg: #f7f4ee;
    --profile-ink: #211c18;
    --profile-muted: #726860;
    --profile-line: rgba(33, 28, 24, 0.1);
    --profile-paper: rgba(255, 255, 255, 0.86);
    --profile-rose: #e94d72;
    --profile-coral: #ff8b66;
    --profile-green: #19a786;
    --profile-blue: #3c77d8;
    --profile-yellow: #f4c84b;
}

body {
    background:
        linear-gradient(135deg, rgba(25, 167, 134, 0.09), transparent 28%),
        linear-gradient(225deg, rgba(233, 77, 114, 0.12), transparent 30%),
        var(--profile-bg);
    color: var(--profile-ink);
    font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.profile-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 72px;
}

.profile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 6px 0 18px;
}

.profile-topbar a,
.profile-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 2px solid var(--profile-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--profile-ink);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 0 rgba(33, 28, 24, 0.05);
}

.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 220px);
    gap: 20px;
    align-items: center;
    min-height: 0;
    padding: 12px 16px;
    border: 2px solid var(--profile-line);
    border-radius: 34px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 240, 0.84)),
        repeating-linear-gradient(90deg, rgba(33, 28, 24, 0.035) 0 1px, transparent 1px 34px);
    box-shadow: 0 28px 70px rgba(86, 54, 45, 0.14);
    overflow: hidden;
}

.profile-hero::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(33, 28, 24, 0.08);
    border-radius: 25px;
    pointer-events: none;
}

.profile-hero__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 4px;
}

.profile-eyebrow {
    width: fit-content;
    margin: 0 0 16px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--profile-ink);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.profile-hero h1 {
    max-width: 9em;
    margin: 0;
    color: var(--profile-ink);
    font-size: clamp(36px, 5.6vw, 62px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.profile-lead {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--profile-muted);
    font-size: 16px;
    line-height: 1.68;
    font-weight: 800;
}

.profile-tags,
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.profile-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--profile-rose);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    box-shadow: inset 0 0 0 2px rgba(233, 77, 114, 0.12);
}

.profile-cover {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0;
    min-width: 0;
    align-self: center;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(33, 28, 24, 0.16);
}

.profile-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
    background: #ffe4ea;
}

.profile-cover--empty {
    min-height: 170px;
    place-items: center;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.82), transparent 35%),
        linear-gradient(135deg, rgba(233, 77, 114, 0.18), rgba(25, 167, 134, 0.18)),
        #fff;
}

.profile-cover--empty::before {
    content: "Profile";
    color: var(--profile-rose);
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.profile-cover figcaption {
    display: grid;
    gap: 4px;
    padding: 9px 11px;
    background: #fff;
}

.profile-cover span {
    color: var(--profile-rose);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.profile-cover strong {
    color: var(--profile-ink);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

.profile-stat-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.profile-stat-band article,
.profile-section,
.profile-note {
    border: 2px solid var(--profile-line);
    border-radius: 24px;
    background: var(--profile-paper);
    box-shadow: 0 12px 0 rgba(33, 28, 24, 0.04);
}

.profile-stat-band article {
    min-width: 0;
    padding: 18px;
}

.profile-stat-band span {
    display: block;
    color: var(--profile-muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.profile-stat-band strong {
    display: block;
    margin-top: 8px;
    color: var(--profile-rose);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.profile-main,
.profile-sidebar {
    display: grid;
    gap: 18px;
}

.profile-section,
.profile-note {
    padding: 22px;
}

.profile-section h2,
.profile-note h2 {
    margin: 0 0 14px;
    color: var(--profile-ink);
    text-align: left;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.profile-section p,
.profile-note p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 15px;
    line-height: 1.9;
    font-weight: 700;
}

.profile-timeline,
.profile-points,
.profile-links {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-timeline li {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.profile-timeline strong {
    color: var(--profile-green);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.profile-timeline span,
.profile-points li,
.profile-links a {
    color: var(--profile-muted);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 800;
}

.profile-points li {
    padding: 13px 14px;
    border-left: 6px solid var(--profile-coral);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.related-grid {
    display: grid;
    gap: 12px;
}

.related-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    color: inherit;
    text-decoration: none;
}

.related-card img {
    width: 68px;
    height: 68px;
    border-radius: 15px;
    object-fit: cover;
}

.related-card__empty {
    width: 68px;
    height: 68px;
    border-radius: 15px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), transparent 34%),
        linear-gradient(135deg, rgba(233, 77, 114, 0.16), rgba(25, 167, 134, 0.18)),
        #fff3f6;
}

.related-card strong {
    display: block;
    color: var(--profile-ink);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

.related-card span {
    display: block;
    margin-top: 3px;
    color: var(--profile-muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

.profile-links a {
    display: block;
    padding: 12px 0;
    color: var(--profile-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--profile-line);
}

.profile-note {
    background: var(--profile-ink);
}

.profile-note h2,
.profile-note p {
    color: #fff;
}

@media (max-width: 860px) {
    .profile-page {
        width: min(100% - 20px, 720px);
        padding-top: 12px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 12px;
        border-radius: 25px;
    }

    .profile-hero__copy {
        padding: 8px 0 0;
        order: 2;
    }

    .profile-cover {
        order: 1;
        border-radius: 21px;
    }

    .profile-cover img {
        min-height: 0;
        aspect-ratio: 4 / 5;
        height: auto;
    }

    .profile-hero h1 {
        font-size: 40px;
    }

    .profile-lead {
        font-size: 15px;
    }

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

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

    .profile-timeline li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
