

.single-post {
    background: var(--bg-card-solid);
    border-radius: var(--card-radius, var(--radius-lg));
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(40, 30, 20, 0.06), 0 0 0 1px rgba(40, 30, 20, 0.04);
    border: none;
    max-width: 100%;
}

.post-cover {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: var(--bg-hover);
    position: relative;
}

.post-cover img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.post-body {
    padding: 32px 36px;
    overflow: hidden;
    max-width: 100%;
}

.post-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.post-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-meta-bar a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.post-meta-bar a:hover {
    color: var(--accent);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    font-size: 14px;
}

.meta-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    vertical-align: middle;
}

.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-family: var(--font-family);
    font-kerning: none;
    font-variant-ligatures: none;
}

.post-content,
.post-content * {
    font-family: inherit;
    letter-spacing: 0.025em;
    word-spacing: 0.08em;
    font-kerning: none;
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

/* 标题保持紧凑（字距负值，避免视觉松散） */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    letter-spacing: 0.015em;
    word-spacing: 0.06em;
}

/* 代码块保持原样（等宽字体不需要额外字距） */
.post-content code,
.post-content pre,
.post-content pre code,
.post-content kbd,
.post-content samp {
    letter-spacing: 0;
    word-spacing: normal;
    font-family: var(--font-mono);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.post-content h1 {
    font-size: 1.7rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.35em;
}

.post-content h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.3em;
}

.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.1rem; }
.post-content h5 { font-size: 1rem; }
.post-content h6 { font-size: 0.9rem; color: var(--text-secondary); }

.post-content p {
    margin-bottom: 1.2em;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.post-content a:hover {
    text-decoration-color: var(--accent);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    margin: 1.5em auto;
    box-shadow: var(--shadow-sm);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.2em;
    padding-left: 2em;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
    margin-bottom: 0.35em;
    line-height: 1.75;
}

.post-content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid var(--accent);
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    padding: 2px 6px;
    background: var(--bg-code);
    border-radius: 4px;
    font-size: 0.88em;
    color: #c17e4c;
    word-break: break-word;
    font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
}

body.dark-mode .post-content code {
    color: #e0a860;
}

.post-content pre {
    margin: 1.5em 0;
    padding: 20px 24px;
    background: var(--bg-code);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    border: 1px solid var(--border-light);
    max-width: 100%;
    box-sizing: border-box;
    color: var(--code-block-text);
}

.post-content pre code {
    padding: 0;
    background: none;
    color: var(--code-block-text) !important;
    font-size: inherit;
    border-radius: 0;
}

.post-content table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid var(--border-color);
    max-width: 100%;
    table-layout: auto;
}

.post-content table th,
.post-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.post-content table th {
    background: var(--bg-hover);
    font-weight: 600;
    font-size: 13px;
}

.post-content table tr:nth-child(even) {
    background: var(--bg-hover);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
}

.post-content > *:first-child { margin-top: 0; }
.post-content > *:last-child { margin-bottom: 0; }

/* 文章内嵌入的音频/视频 */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
}

.post-content a {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.post-content video,
.post-content audio {
    max-width: 100%;
    margin: 1.5em auto;
    display: block;
}

.post-content iframe {
    max-width: 100%;
    letter-spacing: 0.08em;
    word-spacing: 0.1em;
}

/* ========== Post Tags Section ========== */
.post-tags-section {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.tags-label {
    color: var(--text-secondary);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 28px;
    font-weight: 500;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-neighbor {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.post-neighbor a {
    color: var(--text-secondary);
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
    padding: 8px 14px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.post-neighbor a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.post-neighbor .prev:before { content: "\2190 "; }
.post-neighbor .next:after { content: " \2192"; }

/* ========== Related Posts ========== */
.related-posts {
    margin-top: 28px;
    padding-top: 0;
}

.related-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-item {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.related-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.related-link {
    display: block;
    padding: 14px 18px;
    color: var(--text-primary);
}

.related-post-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.related-item:hover .related-post-title {
    color: var(--accent);
}

/* Shiguang article detail */
.single-post {
    border-radius: 30px;
}

.post-cover {
    margin: 14px 14px 0;
    width: calc(100% - 28px);
    border-radius: 22px;
}

.post-body {
    padding: 34px 40px 38px;
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 23px;
}

.post-title {
    font-size: clamp(28px, 4.2vw, 42px);
    line-height: 1.24;
    letter-spacing: .012em;
}

.post-meta-bar {
    gap: 8px;
}

.post-meta-bar .meta-item {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), .07);
}

.post-meta-bar .meta-dot {
    display: none;
}

.post-content {
    font-size: 16px;
    line-height: 1.98;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    scroll-margin-top: 108px;
}

.post-content h2 {
    position: relative;
    padding-left: 15px;
}

.post-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.post-content blockquote {
    border-left-color: var(--accent);
    border-radius: 0 17px 17px 0;
    background: rgba(var(--accent-rgb), .08);
}

.post-content img {
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(68,81,107,.11);
}

.post-content pre {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    box-shadow: 0 15px 34px rgba(20,24,33,.12);
}

.post-content table {
    border-radius: 16px;
    overflow: hidden;
}

.post-tags-section {
    border-color: var(--border-light);
    border-radius: 18px;
    background: rgba(var(--accent-rgb), .05);
}

.post-neighbor {
    gap: 12px;
}

.post-neighbor a {
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(255,255,255,.48);
}
