.post-content {
    color: #444;
    font-size: 17px;
    line-height: 1.85;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 32px 0 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
}

.post-content h1 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecef;
}

.post-content h2 {
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecef;
}

.post-content h3 {
    font-size: 18px;
}

.post-content h4 {
    font-size: 16px;
}

.post-content h5 {
    font-size: 15px;
}

.post-content h6 {
    font-size: 14px;
    color: #666;
}

.post-content img {
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 13 L5 5 L13 5' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 13 L5 5 L13 5' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 5 L27 5 L27 13' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 5 L27 5 L27 13' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 19 L5 27 L13 27' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 19 L5 27 L13 27' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 27 L27 27 L27 19' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 27 L27 27 L27 19' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, zoom-in;
}

.post-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    margin: 20px auto;
    border-radius: 6px;
    background: #000;
    object-fit: contain;
    vertical-align: middle;
}

.post-content p > video:only-child {
    margin: 0 auto;
}

.post-content video[width] {
    width: 100%;
    height: auto;
}

.v3-gallery {
    margin: 16px 0;
    border-radius: 6px;
}

.v3-gallery + br:has(+ .v3-gallery) {
    display: none;
}

.v3-gallery + br + .v3-gallery,
.v3-gallery + .v3-gallery {
    margin-top: 0;
}

.v3-gallery:has(+ .v3-gallery),
.v3-gallery:has(+ br + .v3-gallery) {
    margin-bottom: 8px;
}

.v3-gallery + .v3-gallery,
.v3-gallery + br + .v3-gallery {
    margin-top: 8px;
}

.post-content blockquote {
    border-left: 3px solid #c9a227;
    padding: 6px 0 6px 20px;
    margin: 20px 0;
    color: #9a7b20;
    background: transparent;
    border-radius: 0;
}

.post-content blockquote p {
    margin-bottom: 10px;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote a {
    color: #8a6d18;
    text-decoration: none;
    text-decoration-color: rgba(201, 162, 39, 0.5);
}

.post-content blockquote a.is-external {
    text-decoration: underline;
}

.post-content blockquote code {
    color: #8a6d18;
    background: rgba(201, 162, 39, 0.12);
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 13.5px;
    font-family: "JetBrains Mono", Consolas, Monaco, "Courier New", monospace;
    color: #e96900;
}

.post-content pre {
    position: relative;
    background: #2d2d2d;
    padding: 50px 16px 16px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #ccc;
    font-family: "JetBrains Mono", Consolas, Monaco, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-all;
    word-wrap: break-word;
}

.post-content pre:not(.line-numbers) {
    padding-top: 50px;
}

.post-content pre code.token.comment,
.post-content pre code.token.prolog,
.post-content pre code.token.doctype,
.post-content pre code.token.cdata {
    color: #999;
}

.post-content pre code.token.punctuation {
    color: #ccc;
}

.post-content pre code.token.property,
.post-content pre code.token.tag,
.post-content pre code.token.boolean,
.post-content pre code.token.number,
.post-content pre code.token.constant,
.post-content pre code.token.symbol,
.post-content pre code.token.deleted {
    color: #f08d49;
}

.post-content pre code.token.selector,
.post-content pre code.token.attr-name,
.post-content pre code.token.string,
.post-content pre code.token.char,
.post-content pre code.token.builtin,
.post-content pre code.token.inserted {
    color: #b5bd68;
}

.post-content pre code.token.atrule,
.post-content pre code.token.attr-value,
.post-content pre code.token.keyword {
    color: #cc99cc;
}

.post-content pre code.token.function {
    color: #6699cc;
}

.post-content pre code.token.class-name {
    color: #f0c674;
}

.post-content pre code.token.namespace {
    color: #f0c674;
}

.post-content pre code.token.important,
.post-content pre code.token.atrule {
    color: #cc99cc;
}

.post-content pre code.token.regex,
.post-content pre code.token.important,
.post-content pre code.token.variable {
    color: #f2777a;
}

.post-content pre code.token.important,
.post-content pre code.token.bold {
    font-weight: bold;
}

.post-content pre code.token.italic {
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 18px 0;
    padding-left: 26px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.post-content li > ul,
.post-content li > ol {
    margin: 8px 0;
}

.post-content ul li::marker {
    color: #999;
}

.post-content ol li::marker {
    color: #999;
    font-weight: 500;
}

.post-content a {
    color: #42b983;
    text-decoration: none;
    text-underline-offset: 2px;
    text-decoration-color: #42b98380;
    text-decoration-thickness: 1px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.post-content a:hover {
    color: #35495e;
    text-decoration-color: #35495e;
}

.post-content a.is-external {
    text-decoration: underline;
    text-decoration-color: #42b98380;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.post-content a.is-external:hover {
    text-decoration-color: #35495e;
}

.post-content a[target="_blank"]:not(.button):not(.button-secondary):not(.tabs-nav a):not(.tag-list a):hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

.post-content a[href^="mailto:"]:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.post-content th,
.post-content td {
    border: 1px solid #eaecef;
    padding: 10px 14px;
    text-align: left;
}

.post-content th {
    background: #f7f8fa;
    font-weight: 600;
    color: #2c3e50;
}

.post-content tr:nth-child(even) td {
    background: #fafbfc;
}

.post-content tr:hover td {
    background: #f0f7ff;
}

.post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d8d8d8, transparent);
    margin: 35px 0;
}

.post-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.post-content em {
    color: #555;
}

.post-content del {
    color: #999;
}

.post-content + .post-footer {
    border-top: 1px solid #e0e0e0;
}

.post-license + .post-footer {
    margin-top: 16px;
    padding-top: 0;
    border-top: 0;
}

.post-expiry-notice {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.post-expiry-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.post-expiry-notice .notice-time {
    color: #d4890e;
    font-weight: 600;
}

.post-updated-notice {
    background: #eef5ff;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 16px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-updated-notice svg {
    flex-shrink: 0;
}

.post-updated-notice .notice-time {
    color: #2563eb;
    font-weight: 600;
}

.post-content .ca-post {
    color: #333;
    text-decoration: none;
    border-bottom: 0;
    transition: color .15s ease;
}

.post-content .ca-post:hover {
    color: #42b983;
}

.v3-gallery + .v3-video,
.v3-gallery + br + .v3-video,
.v3-video + .v3-gallery,
.v3-video + br + .v3-gallery {
    margin-top: 8px;
    margin-bottom: 8px;
}

.post-content .table-wrap {
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.post-content .table-wrap > table {
    margin: 0;
}

.v3-toc {
    margin: 0 0 30px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14.5px;
    line-height: 1.5;
}

.v3-toc .v3-toc-list ul {
    padding-left: 12px;
    margin: 0;
}

.v3-toc .v3-toc-list li {
    position: relative;
    padding: 4px 0 4px 14px;
    margin: 0;
    line-height: 1.5;
}

.v3-toc .v3-toc-list li > ul {
    margin: 0;
}

.post-license {
    position: relative;
    margin: 22px 0 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: #6b6b6b;
    letter-spacing: 1.2px;
    font-variant-numeric: tabular-nums;
    user-select: none;
    cursor: help;
    outline: none;
}

.post-license > span {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px dotted transparent;
    transition: color .18s ease, border-color .18s ease;
}

.post-license:hover > span,
.post-license:focus-visible > span {
    color: #3f3f3f;
    border-bottom-color: #d8d8d8;
}

@media (max-width: 768px) {
    .post-content {
        font-size: 16px;
        line-height: 1.8;
    }
    .post-content h1 {
        font-size: 20px;
    }
    .post-content h2 {
        font-size: 18px;
    }
    .post-content h3 {
        font-size: 17px;
    }
    .post-content h4 {
        font-size: 16px;
    }
    .post-content img {
        margin: 16px auto;
    }
    .post-content blockquote {
        padding: 4px 0 4px 14px;
        margin: 16px 0;
    }
    .post-content table {
        font-size: 13px;
        overflow-x: auto;
        display: block;
    }
    .post-content th,
    .post-content td {
        padding: 8px 10px;
    }
    .post-content ul,
    .post-content ol {
        padding-left: 22px;
    }
    .post-content li {
        margin-bottom: 6px;
    }
    .post-content code {
        font-size: 12.5px;
        padding: 1px 5px;
    }
    .post-content pre {
        padding: 40px 12px 12px;
        font-size: 12.5px;
    }
    .post-license + .post-footer {
        margin-top: 14px;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .post-content {
        font-size: 15px;
    }
    .post-content h1 {
        font-size: 18px;
        padding-bottom: 8px;
        margin: 24px 0 12px;
    }
    .post-content h2 {
        font-size: 16px;
        padding-bottom: 6px;
        margin: 20px 0 10px;
    }
    .post-content h3 {
        font-size: 15px;
        margin: 18px 0 10px;
    }
    .post-content p {
        margin-bottom: 14px;
    }
    .post-content img {
        margin: 12px auto;
        border-radius: 4px;
    }
    .post-content blockquote {
        padding: 8px 10px 8px 14px;
        margin: 12px 0;
    }
    .post-content ul,
    .post-content ol {
        margin: 12px 0;
        padding-left: 18px;
    }
    .post-content li {
        margin-bottom: 4px;
    }
    .post-content code {
        font-size: 11.5px;
        padding: 0 4px;
    }
    .post-content pre {
        padding: 32px 8px 8px;
        font-size: 11.5px;
    }
}

@media (max-width: 768px) {
    .post-content {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .v3-toc {
        font-size: 13.5px;
        margin-bottom: 26px;
    }
}

@media (hover: hover) {
    .post-license::after {
        content: attr(data-tip);
        position: absolute;
        left: 0;
        top: 100%;
        margin-top: 8px;
        transform: translate(0, -4px);
        padding: 7px 12px;
        background: #2b2b2b;
        color: #fff;
        font-size: 12px;
        line-height: 1.4;
        letter-spacing: 0.5px;
        white-space: nowrap;
        border-radius: 6px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
        z-index: 20;
    }
    .post-license::before {
        content: '';
        position: absolute;
        left: 22px;
        top: 100%;
        margin-top: -2px;
        transform: translate(0, -4px);
        border: 5px solid transparent;
        border-bottom-color: #2b2b2b;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
        z-index: 20;
    }
    .post-license:hover::after,
    .post-license:focus-visible::after,
    .post-license:hover::before,
    .post-license:focus-visible::before {
        opacity: 1;
        visibility: visible;
        transform: translate(0, 0);
    }
}

@media (max-width: 768px) {
    .post-license {
        margin: 18px 0 0;
        font-size: 12.5px;
        letter-spacing: 1px;
    }
    .post-license::after {
        font-size: 12px;
        padding: 6px 10px;
    }
}

