/* 单篇文章：版心与正文排版（与法律页色系对齐） */

.bowei-single-main {
    background: #f8f8f8;
}

.bowei-single-hero {
    padding: 48px 0 24px;
}

.bowei-single-body {
    padding: 0 0 80px;
    min-height: 40vh;
}

.bowei-single-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.bowei-single-thumb-wrap {
    margin: 0 auto 28px;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.bowei-single-thumb {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.bowei-single-title {
    margin: 0 0 16px;
    color: #1a202c;
    line-height: 1.3;
}

.bowei-single-meta {
    color: #718096;
    line-height: 1.6;
}

.bowei-single-meta time {
    color: #4a5568;
}

.bowei-single-meta-sep {
    margin: 0 0.5em;
    color: #cbd5e0;
}

.bowei-single-cats a {
    color: #ff6b00;
    text-decoration: none;
    transition: color 0.2s;
}

.bowei-single-cats a:hover {
    color: #e55f00;
    text-decoration: underline;
}

.bowei-single-article-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 40px 48px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bowei-post-article {
    line-height: 1.8;
    color: #4a5568;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bowei-post-article > *:first-child {
    margin-top: 0;
}

.bowei-post-article > *:last-child {
    margin-bottom: 0;
}

.bowei-post-article p {
    margin: 0 0 1.5em;
}

.bowei-post-article h2,
.bowei-post-article h3,
.bowei-post-article h4 {
    color: #2d3748;
    line-height: 1.35;
    font-weight: 700;
}

.bowei-post-article h2 {
    margin: 2em 0 0.75em;
    font-size: 1.75em;
}

.bowei-post-article h3 {
    margin: 1.75em 0 0.65em;
    font-size: 1.35em;
}

.bowei-post-article h4 {
    margin: 1.5em 0 0.5em;
    font-size: 1.15em;
}

.bowei-post-article ul,
.bowei-post-article ol {
    margin: 0 0 1.5em 1.25em;
    padding-left: 0.25em;
}

.bowei-post-article li {
    margin-bottom: 0.35em;
}

.bowei-post-article li > ul,
.bowei-post-article li > ol {
    margin-top: 0.35em;
    margin-bottom: 0.5em;
}

.bowei-post-article blockquote {
    margin: 1.5em 0;
    padding: 0.75em 1em 0.75em 1.25em;
    border-left: 4px solid #ff6b00;
    background: #fffaf5;
    color: #4a5568;
}

.bowei-post-article blockquote cite {
    display: block;
    margin-top: 0.75em;
    font-size: 0.9em;
    color: #718096;
    font-style: normal;
}

.bowei-post-article a {
    color: #ff6b00;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bowei-post-article a:hover {
    color: #e55f00;
}

.bowei-post-article strong,
.bowei-post-article b {
    color: #1a202c;
    font-weight: 700;
}

.bowei-post-article code,
.bowei-post-article kbd {
    padding: 0.15em 0.4em;
    font-size: 0.9em;
    background: #edf2f7;
    border-radius: 4px;
}

.bowei-post-article pre {
    margin: 1.5em 0;
    padding: 1em 1.25em;
    overflow-x: auto;
    background: #1a202c;
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.55;
}

.bowei-post-article pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.bowei-post-article table {
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: 0.95em;
}

.bowei-post-article th,
.bowei-post-article td {
    padding: 0.65em 0.85em;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.bowei-post-article th {
    background: #f7fafc;
    color: #2d3748;
    font-weight: 600;
}

.bowei-post-article hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.bowei-post-article img {
    max-width: 100%;
    height: auto;
}

.bowei-post-article figure {
    margin: 1.5em 0;
    max-width: 100%;
}

.bowei-post-article figcaption {
    margin-top: 0.5em;
    font-size: 0.875em;
    color: #718096;
    text-align: center;
}

/* 古腾堡块 */
.bowei-post-article .wp-block-image,
.bowei-post-article .wp-block-embed {
    margin: 1.5em 0;
}

.bowei-post-article .wp-block-image img,
.bowei-post-article .wp-block-gallery img {
    max-width: 100%;
    height: auto;
}

.bowei-post-article .wp-block-gallery {
    margin: 1.5em 0;
}

.bowei-post-article .wp-block-quote {
    margin: 1.5em 0;
    padding-left: 1em;
    border-left: 4px solid #ff6b00;
}

.bowei-post-article .wp-block-quote cite {
    font-style: normal;
    font-size: 0.9em;
    color: #718096;
}

.bowei-post-article .wp-block-separator {
    margin: 2em auto;
    border-color: #e2e8f0;
}

.bowei-post-article .wp-block-columns {
    margin: 1.5em 0;
    gap: 1.25em;
}

.bowei-post-article .wp-block-column {
    min-width: 0;
}

.bowei-post-article .wp-block-media-text {
    margin: 1.5em 0;
}

.bowei-post-article .wp-block-media-text__media img,
.bowei-post-article .wp-block-media-text__media video {
    max-width: 100%;
    height: auto;
}

.bowei-post-article .alignwide {
    max-width: 100%;
}

.bowei-post-article .alignfull {
    max-width: 100%;
}

.bowei-page-links {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
}

.bowei-page-links-title {
    margin-right: 0.5em;
    color: #718096;
}

.bowei-page-link {
    display: inline-block;
    margin: 0 0.35em 0.35em 0;
}

.bowei-page-link a {
    display: inline-block;
    padding: 0.25em 0.65em;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #ff6b00;
}

.bowei-page-link a:hover {
    background: #fffaf5;
    border-color: #ffd4b8;
}

@media (max-width: 768px) {
    .bowei-single-hero {
        padding: 32px 0 16px;
    }

    .bowei-single-body {
        padding: 0 0 48px;
    }

    .bowei-single-article-wrap {
        padding: 24px 20px 32px;
    }

    .bowei-post-article h2 {
        font-size: 1.45em;
    }

    .bowei-post-article h3 {
        font-size: 1.2em;
    }
}
