.post-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 150;
    height: 3px;
    pointer-events: none;
}

.post-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--primary);
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 0 8px;
    color: var(--muted);
    font-size: .86rem;
}

.post-breadcrumb a:hover {
    color: var(--primary);
}

.post-breadcrumb i {
    font-size: .65rem;
}

.post-header {
    max-width: 940px;
    padding-top: 38px;
    padding-bottom: 34px;
    text-align: center;
}

.post-header .tag {
    display: inline-flex;
}

.post-header h1 {
    max-width: 900px;
    margin: 18px auto 16px;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.28;
    letter-spacing: -.04em;
}

.post-deck {
    max-width: 780px;
    margin: 0 auto 22px;
    color: var(--text);
    font-size: 1.14rem;
    line-height: 1.85;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 26px;
    color: var(--muted);
    font-size: .9rem;
}

.post-meta i {
    margin-left: 6px;
    color: var(--primary);
}

.post-cover {
    overflow: hidden;
    max-width: 1120px;
    margin-top: 8px;
    margin-bottom: 0;
    border-radius: 24px;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.post-cover img {
    width: 100%;
    aspect-ratio: 16 / 8.8;
    object-fit: cover;
}

.post-cover figcaption {
    padding: 10px 18px;
    color: var(--muted);
    font-size: .78rem;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    align-items: start;
    justify-content: center;
    gap: 64px;
    padding-top: 54px;
    padding-bottom: 82px;
}

.post-body {
    min-width: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 2.05;
}

.post-body h2 {
    margin: 38px 0 14px;
    color: var(--ink);
    font-size: 1.6rem;
}

.post-body p {
    margin: 0 0 24px;
}

.post-lead {
    color: var(--ink);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.9;
}

.post-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.post-tools button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: .2s ease;
}

.post-tools button:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.post-ai-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 26px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.post-ai-disclosure > i {
    padding-top: 3px;
    color: var(--primary);
    font-size: 1rem;
}

.post-ai-disclosure p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.75;
}

.post-note {
    display: flex;
    gap: 15px;
    margin: 36px 0;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.post-note > i {
    padding-top: 5px;
    color: var(--primary);
    font-size: 1.25rem;
}

.post-note strong {
    color: var(--ink);
}

.post-note p {
    margin: 3px 0 0;
    font-size: .92rem;
    line-height: 1.8;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
}

.post-back:hover {
    color: var(--primary-dark);
}

.post-sidebar {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-soft);
}

.sidebar-card h2 {
    margin: 7px 0 10px;
    color: var(--ink);
    font-size: 1.22rem;
}

.sidebar-card p {
    margin: 0 0 16px;
    font-size: .88rem;
    line-height: 1.8;
}

.sidebar-card > a {
    color: var(--primary);
    font-size: .86rem;
    font-weight: 800;
}

.sidebar-card--list {
    background: var(--surface);
}

.sidebar-related-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-related-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-related-item img {
    width: 76px;
    height: 64px;
    border-radius: 9px;
    object-fit: cover;
}

.sidebar-related-item h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-size: .82rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.related-posts {
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.related-card__content {
    padding: 20px;
}

.related-card h3 {
    margin: 10px 0 12px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.65;
}

.related-card time {
    color: var(--muted);
    font-size: .8rem;
}

@media (max-width: 980px) {
    .post-layout {
        grid-template-columns: minmax(0, 760px);
    }

    .post-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .post-header {
        padding-top: 24px;
    }

    .post-header h1 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .post-cover {
        width: calc(100% - 24px);
        border-radius: 16px;
    }

    .post-cover img {
        aspect-ratio: 4 / 3;
    }

    .post-layout {
        gap: 38px;
        padding-top: 38px;
        padding-bottom: 58px;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-lead {
        font-size: 1.13rem;
    }

    .post-sidebar,
    .related-grid {
        grid-template-columns: 1fr;
    }
}
