.post-page .post_title {
    margin-top: 100px;
    text-align: center;
    margin-bottom: 80px;
}

.post-page .post-board-name {
    color: var(--jooence-text);
    font-weight: 400;
    margin-bottom: 0;
}

.post-page .post-article-nav {
    margin: 0 auto;
    max-width: 100%;
}

.post-page .post-article-nav-top {
    margin-bottom: 16px;
}

.post-page .post-article-nav-bottom {
    margin-top: 24px;
    margin-bottom: 18px;
}

.post-page .post-article-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.post-page .post-article-nav-item {
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid var(--jooence-border);
    border-radius: 12px;
    background-color: #fff;
    color: #212529;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.post-page .post-article-nav-item:hover {
    text-decoration: none;
    color: #111;
    border-color: #cfd4da;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.post-page .post-article-nav-item.is-empty {
    border: none;
    background: transparent;
    min-height: 0;
    padding: 0;
    pointer-events: none;
}

.post-page .post-article-nav-kicker {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-page .post-article-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-page .post-article-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-page .markdown-body {
    color-scheme: light;
    background-color: #fff;
    color: #24292f;
    --color-canvas-default: #fff;
    --color-fg-default: #24292f;
    --color-border-default: #d0d7de;
    --bgColor-default: #fff;
    --fgColor-default: #24292f;
    --borderColor-default: #d0d7de;
}

.post-page .post-reading-layout {
    max-width: 1240px;
    margin: 0 auto;
    display: block;
}

.post-page .post-reading-main {
    min-width: 0;
}

.post-page .post-reading-toc {
    display: none;
}

.post-page .post-reading-toc[hidden] {
    display: none !important;
}

.post-page .post-reading-toc-title {
    margin: 0 0 0.6rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.02em;
}

.post-page .post-reading-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-page .post-reading-toc-item {
    margin: 0;
}

.post-page .post-reading-toc-link {
    display: block;
    margin-bottom: 0.18rem;
    padding: 0.2rem 0.5rem;
    border-left: 2px solid transparent;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.87rem;
    line-height: 1.42;
    border-radius: 0.25rem;
}

.post-page .post-reading-toc-link:hover {
    color: #212529;
    background-color: #f8f9fa;
    text-decoration: none;
}

.post-page .post-reading-toc-link.is-active {
    color: #0b57d0;
    border-left-color: #0b57d0;
    background-color: #eef4ff;
    font-weight: 600;
}

.post-page .post-reading-toc-item.is-depth-2 .post-reading-toc-link {
    padding-left: 1.05rem;
    font-size: 0.84rem;
}

.post-page .post-reading-toc-item.is-depth-3 .post-reading-toc-link {
    padding-left: 1.7rem;
    font-size: 0.81rem;
}

.post-page .markdown-body pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.post-page .markdown-body :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 2.55rem;
    margin-bottom: 1.05rem;
    line-height: 1.35;
    scroll-margin-top: 88px;
}

.post-page .markdown-body :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.post-page .markdown-body h1 {
    padding-bottom: 0.4rem;
}

.post-page .markdown-body p {
    margin-top: 0;
    margin-bottom: 1.12rem;
    line-height: 1.8;
}

.post-page .markdown-body img,
.post-page .markdown-body .post-content-image {
    display: block;
    margin: 1.15rem auto;
    max-width: 100%;
    max-height: min(68vh, 620px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.4rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    cursor: zoom-in;
}

.post-page .post-tag-line {
    max-width: 100%;
    margin: 10px 0 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.post-page .post-tag-chip {
    font-size: 0.86rem;
    color: #1864ab;
    text-decoration: none;
    background-color: #eef6ff;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.post-page .post-tag-chip:hover {
    color: #0b4f86;
    text-decoration: none;
    background-color: #dfefff;
}

@media (min-width: 576px) {
    .post-page .markdown-body {
        border-top: 1px solid var(--jooence-border);
        box-sizing: border-box;
        min-width: 200px;
        max-width: 100%;
        margin: 0;
        padding: 45px;
    }
}

@media (max-width: 576px) {
    .post-page.container-md {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .post-page .markdown-body {
        border-top: 1px solid var(--jooence-border);
        box-sizing: border-box;
        min-width: 200px;
        max-width: 100%;
        margin: 0 auto;
        padding-top: 25px;
        padding-bottom: 25px;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .post-page .markdown-body :is(h1, h2, h3, h4, h5, h6) {
        margin-top: 2rem;
        margin-bottom: 0.95rem;
    }

    .post-page .markdown-body p {
        margin-bottom: 1.12rem;
        line-height: 1.9;
    }

    .post-page .markdown-body img,
    .post-page .markdown-body .post-content-image {
        margin: 0.95rem auto;
        max-height: min(52vh, 420px);
        border-radius: 0.3rem;
    }

    .post-page .post_title {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

@media (min-width: 992px) {
    .post-page .post-reading-layout {
        display: grid;
        grid-template-columns: minmax(0, 980px) 264px;
        justify-content: center;
        gap: 1.6rem;
        align-items: start;
    }

    .post-page .post-reading-main {
        width: 100%;
    }

    .post-page .post-reading-toc {
        display: block;
        position: sticky;
        top: 108px;
        max-height: calc(100vh - 124px);
        overflow: auto;
        border-left: 1px solid #e9ecef;
        padding-left: 0.85rem;
    }
}

.post-page .post_board_url {
    transition: color 0.3s ease;
}

.post-page .post_board_url:hover {
    text-decoration: none;
    color: #888;
}

.post-page .post-stat-area {
    font-weight: 200;
}

.post-page .post-social-section {
    margin-top: 16px;
    margin-bottom: 20px;
}

.post-page .post-social-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.post-page .post-social-form {
    margin: 0;
}

.post-page .post-social-icon-button,
.post-page .post-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    padding: 4px 0;
    color: #212529;
    text-decoration: none;
    font-size: 1.28rem;
    line-height: 1;
    cursor: pointer;
}

.post-page .post-social-link:hover,
.post-page .post-social-icon-button:hover {
    color: #111;
    text-decoration: none;
}

.post-page .post-social-icon-button .bi-heart-fill {
    color: #e03131;
}

.post-page .post-social-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #343a40;
}

.post-page .post-like-summary {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: #343a40;
}

.post-page .icon-spacing {
    font-style: normal;
    margin-left: 0.2rem;
    margin-right: 0.4rem;
}

.post-page .comment-list {
    list-style-type: none;
    padding: 0;
}

.post-page .comment-item {
    border: none;
    border-bottom: 1px solid var(--jooence-border);
    padding: 10px 0;
    margin-bottom: 0;
    background-color: transparent;
}

.post-page .comment-item:last-child {
    border-bottom: none;
}

.post-page .comment-avatar {
    width: 32px;
    height: 32px;
}

.post-page .comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-page .comment-avatar i {
    font-size: 1.5rem;
    color: var(--jooence-muted);
}

.post-page .comment-username {
    color: var(--jooence-text);
}

.post-page a.comment-username:hover {
    text-decoration: underline;
}

.post-page .comment-time {
    margin-left: 8px;
    color: var(--jooence-muted);
    font-size: 12px;
}

.post-page .comment-content {
    margin-top: 6px;
    margin-bottom: 8px;
    white-space: pre-wrap;
    font-weight: 300;
}

.post-page .comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 8px;
}

.post-page .comment-actions form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.post-page .comment-delete-inline-form {
    margin: 0;
}

.post-page .comment-delete-form {
    border: 1px solid #f1d7da;
    border-radius: 6px;
    padding: 8px;
    background-color: #fff9fa;
}

.post-page .comment-delete-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-page .comment-password-input {
    width: 170px;
}

.post-page .comment-delete-form .comment-password-input {
    width: 100%;
    max-width: 240px;
}

.post-page .comment-edit-form {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px;
    background-color: #fafafa;
}

.post-page .comment-edit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-page .comment-reply-form {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px;
    background-color: #fcfcfc;
}

.post-page .comment-reply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-page .comment-reply {
    margin-left: calc(24px * var(--comment-reply-depth, 1));
    border-left: 2px solid #e9ecef;
    padding-left: 12px;
}

.post-page .comment-empty-message {
    font-size: 14px;
    font-weight: 250;
}

.post-page .comment-form-title {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.post-page .comment-form-reply-notice {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.post-page-toast-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(92vw, 380px);
}

.post-page-toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f1d7da;
    background-color: #fff5f6;
    color: #7f1d1d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

.post-page-toast.is-warning {
    border-color: #f1dfb0;
    background-color: #fff8e7;
    color: #6c4f08;
}

.post-page-toast.is-success {
    border-color: #c8eed4;
    background-color: #eefbf2;
    color: #1f6f3a;
}

.post-page-toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

.post-page-toast-close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1;
    padding: 2px 0 0;
    cursor: pointer;
}

.post-page-toast-close:hover {
    opacity: 0.75;
}

.post-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.post-image-lightbox.is-open {
    display: flex;
}

.post-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.84);
    cursor: zoom-out;
}

.post-image-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.post-image-lightbox-image {
    max-width: min(96vw, 1400px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.45rem;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
    background: #fff;
}

.post-image-lightbox-caption {
    margin: 0;
    color: #f8f9fa;
    font-size: 0.9rem;
    text-align: center;
}

.post-image-lightbox-close {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    border: none;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

body.post-image-lightbox-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .post-page-toast-container {
        right: 10px;
        left: 10px;
        bottom: 12px;
        width: auto;
    }

    .post-page .post-article-nav-top {
        margin-bottom: 14px;
    }

    .post-page .post-article-nav-bottom {
        margin-top: 18px;
        margin-bottom: 14px;
    }

    .post-page .post-article-nav-item {
        min-height: 52px;
        padding: 10px 12px;
    }

    .post-page .post-social-section {
        margin-top: 14px;
        margin-bottom: 18px;
    }

    .post-page .post-social-icon-button,
    .post-page .post-social-link {
        font-size: 1.34rem;
        padding: 6px 0;
    }

    .post-page .post-social-count {
        font-size: 0.98rem;
    }

    .post-image-lightbox {
        padding: 0.55rem;
    }

    .post-image-lightbox-image {
        max-width: 98vw;
        max-height: 78vh;
    }

    .post-image-lightbox-close {
        top: -0.1rem;
        right: -0.1rem;
    }
}

@media (min-width: 768px) {
    .post-page .post-article-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}
