body.post-body {
    text-align: left;
    align-items: center;
}

.post {
    width: 100%;
    max-width: 700px;
    padding: 2.5rem 1.25rem 4rem;
}

.post-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2rem;
    line-height: 1.25;
}

.post-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title-row .copy-link {
    margin-left: auto;
}

.post-meta {
    margin-top: 0.5rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.tag {
    display: inline-block;
    background: var(--highlight-color);
    color: var(--link-hover-color);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    margin-right: 0.3rem;
    font-size: 0.8rem;
}

.post-content {
    line-height: 1.6;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 1.8rem 0 0.8rem;
    line-height: 1.3;
}

.post-content p {
    margin: 0 0 1rem;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1rem 1.4rem;
}

.post-content img,
.post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 1rem auto;
}

.post-content img.fade-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-content img.fade-img.loaded {
    opacity: 1;
}

.post-content audio {
    width: 100%;
    margin: 1rem 0;
}

.post-content pre {
    background: var(--surface-color);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0 0 1rem;
}

.post-content code {
    background: var(--surface-color);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content blockquote {
    border-left: 3px solid var(--highlight-color);
    margin: 0 0 1rem;
    padding: 0.2rem 0 0.2rem 1rem;
    color: var(--muted-color);
}

.post-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 1rem;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.6rem;
    text-align: left;
}

.callout {
    border-left: 3px solid var(--link-color);
    background: var(--highlight-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
}

.callout-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.callout-body>*:last-child {
    margin-bottom: 0;
}

.post-list {
    list-style: none;
}

.post-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--highlight-color);
    overflow: hidden;
}

.post-list-item:first-child {
    padding-top: 0;
}

.post-list-item a {
    font-size: 1.1rem;
    font-weight: 600;
}

.post-list-date {
    display: block;
    color: var(--muted-color);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.post-list-desc {
    margin-top: 0.4rem;
    color: var(--muted-color);
}

.copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: none;
    color: var(--muted-color);
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.1s;
}

.copy-link svg {
    width: 14px;
    height: 14px;
}

.copy-link:hover {
    color: var(--link-color);
}

.post-list-item .copy-link {
    float: right;
    margin-left: 0.3rem;
}

.copy-toast {
    position: absolute;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-4px) scale(0.95);
    transition: opacity 0.15s, transform 0.15s;
    pointer-events: none;
    z-index: 1100;
}
