/* Article-only reading layout. Keep listing, lawyer and video templates independent. */
.st-article-page {
    --article-font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    --article-chapter: 24px;
    --article-subheading: 20px;
    --article-measure: 800px;
    --article-shell: 960px;
    --article-gutter: 80px;
    --article-small: 8px;
    --article-gap: 16px;
    --article-group: 24px;
    --article-section: 32px;
    --article-space: 48px;
    --article-ink: #23282f;
    --article-muted: #697078;
    --article-line: #e8e5e2;
    --article-paper: #f7f6f3;
    --article-red: #a51e25;
}

/* Keep the existing column links, without the repeated photographic banner. */
.st-article-page .mune_warp { height: auto; padding-top: var(--article-group); }
.st-article-page .mune_warp .mune {
    width: min(var(--article-shell), calc(100% - 48px));
    height: auto;
    padding: 0;
    overflow: visible;
}
.st-article-page .mune_warp .mune_left {
    display: flex;
    flex-wrap: wrap;
    float: none;
    width: 100%;
    height: auto;
    padding: 0;
    border-bottom: 1px solid var(--article-line);
}
.st-article-page .mune_warp .mune_left a {
    flex: 1 1 auto;
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 16px 8px;
    margin: 0;
    font-size: 17px;
    line-height: 24px;
    text-align: center;
    white-space: normal;
}
.st-article-page .mune_warp .mune_right {
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 12px 0;
    margin: 0;
    background: none;
    line-height: 24px;
    text-align: left;
    overflow-wrap: anywhere;
}

.st-article-page .main_warp { padding: 0 0 var(--article-space); background: var(--article-paper); font-family: var(--article-font); }
.st-article-page .main_warp > .main {
    box-sizing: border-box;
    width: min(var(--article-shell), calc(100% - 48px));
    padding: var(--article-section) var(--article-gutter);
    margin: 0 auto var(--article-group);
    overflow: visible;
}
.st-article-page .main_warp > .main:first-child { padding-top: var(--article-space); }
.st-article-page :is(.xiang, .discuss, .hot, .hot_list) {
    width: 100%;
    height: auto;
    overflow: visible;
}
.st-article-page .xiang_tit {
    width: 100%;
    height: auto;
    margin: 0;
    overflow: visible;
    color: var(--article-ink);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.st-article-page .xiang_come {
    width: 100%;
    height: auto;
    padding: 0;
    margin-top: var(--article-gap);
    border: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--article-muted);
    text-align: left;
    overflow: visible;
    overflow-wrap: anywhere;
}
.st-article-page .xiang_come a { color: inherit; }
.st-article-page .xiang_come span { display: inline; padding: 0 var(--article-small); }
.st-article-page .st-article-meta {
    display: grid;
    grid-auto-flow: column; /* 2 or 3 items: 作者 appears only when the article names one */
    justify-content: space-between;
    gap: var(--article-gap);
    margin: var(--article-group) 0 0;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.8;
}
.st-article-page .st-article-meta > div { min-width: 0; overflow-wrap: anywhere; }
.st-article-page .st-article-meta :is(dt, dd) { display: inline; margin: 0; }
.st-article-page .st-article-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.st-article-page .st-article-meta a:hover { color: var(--article-red); }
.st-article-page .st-article-meta :is(time, div:last-child) { font-variant-numeric: tabular-nums; }
.st-article-page .xiang_key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--article-small);
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: var(--article-gap) 0 var(--article-group);
    border-bottom: 1px solid var(--article-line);
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    color: var(--article-muted);
}
.st-article-page .xiang_key a {
    height: auto;
    margin: 0;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 24px;
    color: #9b292b;
    background: #faf0ee;
    overflow-wrap: anywhere;
}
.st-article-page :is(.xiang_con, .xiang_con1) {
    width: 100%;
    max-width: var(--article-measure);
    margin: var(--article-section) auto 0;
    padding: 0 0 var(--article-section);
    border: 0;
    font-size: 18px;
    line-height: 1.9;
    color: var(--article-ink);
    overflow: auto;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
.st-article-page :is(.xiang_con, .xiang_con1) p {
    /* CMS paragraph margins and leading otherwise override the reading rhythm. */
    margin-block: 0 var(--article-gap) !important;
    font-family: inherit !important;
    line-height: inherit !important;
}
.st-article-page :is(.xiang_con, .xiang_con1) :is(h1, h2, h3, h4) {
    /* Normalize heading roles, including CMS inline sizes; retain editorial color/emphasis. */
    margin-block: var(--article-section) var(--article-gap) !important;
    font-family: var(--article-font) !important;
    font-size: var(--article-chapter) !important;
    font-weight: 600;
    line-height: 1.5 !important;
    text-wrap: balance;
}
.st-article-page :is(.xiang_con, .xiang_con1) h3 { font-size: var(--article-subheading) !important; }
.st-article-page :is(.xiang_con, .xiang_con1) h4 { font-size: 18px !important; }
.st-article-page :is(.xiang_con, .xiang_con1) :is(h1, h2, h3, h4) * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
.st-article-page :is(.xiang_con, .xiang_con1) :is(ul, ol) { margin-block: var(--article-gap); padding-inline-start: 1.5em; }
.st-article-page :is(.xiang_con, .xiang_con1) li { margin-block: var(--article-small); }
.st-article-page :is(.xiang_con, .xiang_con1) :is(img, video) { max-width: 100%; height: auto; }
.st-article-page :is(.xiang_con, .xiang_con1) iframe { max-width: 100%; }
.st-article-page :is(.xiang_con, .xiang_con1) table { max-width: 100%; }
.st-article-page :is(.xiang_con, .xiang_con1) a { text-decoration: underline; text-underline-offset: 3px; }

.st-article-page .xiang_back {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--article-gap);
    width: 100%;
    height: auto;
    padding: var(--article-group) 0;
    border-top: 1px solid var(--article-line);
    border-bottom: 0;
    overflow: visible;
}
.st-article-page .xiang_back > div { float: none; width: auto; height: auto; min-width: 0; }
.st-article-page .xiang_back a {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 8px 0;
    background: none;
    line-height: 28px;
    overflow-wrap: anywhere;
}
.st-article-page .xiang_back_mid a { color: var(--article-red); }
.st-article-page .xiang_fen { width: 100%; height: auto; line-height: 2; }

/* Comments and related reading share the article's measure, with content-led heights. */
.st-article-page :is(.discuss_tit, .discuss_1, .discuss_3, .discuss_list, .discuss_list ul li, .discuss_list ul li a, .discuss_list_1, .discuss_list_2, .hot_tit, .hot_list ul li, .hot_list ul li .redian, .hot_1, .hot_2) {
    width: 100%;
    height: auto;
    overflow: visible;
    overflow-wrap: anywhere;
}
.st-article-page :is(.discuss_tit, .hot_tit) { margin-bottom: var(--article-group); font-size: 20px; line-height: 1.6; }
.st-article-page .discuss_textarea { box-sizing: border-box; width: 100%; min-height: 136px; padding: var(--article-gap); font-size: 16px; line-height: 1.6; resize: vertical; }
.st-article-page .discuss_2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--article-small); width: 100%; height: auto; margin-top: var(--article-small); }
.st-article-page .discuss_2 :is(input, a) { position: static; box-sizing: border-box; height: 44px; }
.st-article-page .discuss_text { width: 160px; font-size: 16px; }
.st-article-page .discuss_2 a { display: flex; align-items: center; width: auto; padding: 0 var(--article-small); }
.st-article-page .discuss_but { width: auto; min-width: 136px; margin-left: auto; padding-inline: var(--article-group); }
.st-article-page .discuss_3 { margin-top: var(--article-section); padding-bottom: var(--article-gap); line-height: 1.6; }
.st-article-page .discuss_list_1 { line-height: 1.8; }
.st-article-page .discuss_list_2 { padding-block: var(--article-small); }
.st-article-page .hot_list { margin: 0; }
.st-article-page .hot_list ul li { margin: 0; }
.st-article-page .hot_list ul li .redian { padding: var(--article-gap) 0; }
.st-article-page .hot_1 { font-size: 17px; line-height: 1.7; }
.st-article-page .hot_2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--article-small); margin-top: var(--article-small); }
.st-article-page .hot_2 :is(a, span) { height: auto; margin: 0; line-height: 24px; }
.st-article-page .hot_2 span.hot_2_span { float: none; margin-left: auto; }
.st-article-page :is(a, input, textarea):focus-visible { outline: 2px solid #bf6e2e; outline-offset: 3px; }
.st-article-page .main_warp ::selection { background: #f4e7e3; color: var(--article-ink); }

@media (min-width: 1001px) {
    .st-article-page { --article-gutter: 32px; }
    .st-article-page .st-article-layout {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        column-gap: var(--article-section);
        width: min(1200px, calc(100% - 48px));
        margin: var(--article-group) auto 0;
    }
    /* Flatten only decorative wrappers so the breadcrumb stays above the article. */
    .st-article-page .mune_warp,
    .st-article-page .mune_warp .mune { display: contents; }
    .st-article-page .mune_warp .mune_left {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        flex-direction: column;
        margin-top: var(--article-section);
        border-bottom: 0;
    }
    .st-article-page .mune_warp .mune_left a {
        width: 100%;
        padding: var(--article-gap);
        border-bottom: 1px solid var(--article-line);
        color: var(--article-ink);
        background: none;
        text-align: left;
    }
    .st-article-page .mune_warp .mune_left a:hover,
    .st-article-page .mune_warp .mune_left a.mune_left_a {
        color: var(--article-red);
        background: #faf0ee;
        border-bottom: 1px solid var(--article-line);
    }
    .st-article-page .mune_warp .mune_right {
        grid-column: 2;
        grid-row: 1;
        box-sizing: border-box;
        width: min(var(--article-measure), calc(100% - 64px));
        margin-inline: auto;
        padding: 0 0 var(--article-group);
    }
    .st-article-page .st-article-layout > .main_warp { grid-column: 2; grid-row: 2; min-width: 0; }
    .st-article-page .main_warp > .main { width: 100%; }
    .st-article-page :is(.xiang, .discuss, .hot) { max-width: var(--article-measure); margin-inline: auto; }
}
@media (max-width: 1000px) {
    .st-article-page { --article-gutter: 32px; }
    /* Keep the existing TOP control clear of the reading column on small screens. */
}
@media (max-width: 767px) {
    .st-article-page { --article-gutter: 20px; --article-space: 32px; --article-chapter: 20px; --article-subheading: 18px; }
    .st-article-page .mune_warp { padding-top: var(--article-gap); }
    .st-article-page .main_warp > .main { width: 100%; padding-block: var(--article-group); }
    .st-article-page .mune_warp .mune { width: calc(100% - 40px); }
    .st-article-page .mune_warp .mune_left { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .st-article-page .mune_warp .mune_left a { min-width: 0; padding: 12px 4px; font-size: 14px; line-height: 22px; }
    .st-article-page .mune_warp .mune_right { font-size: 12px; line-height: 20px; }
    .st-article-page .xiang_tit { font-size: 24px; line-height: 1.4; }
    .st-article-page .xiang_come { font-size: 13px; }
    .st-article-page .xiang_come span { display: block; padding: 0; }
    .st-article-page .st-article-meta { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--article-small) var(--article-gap); }
    .st-article-page .xiang_key { padding-bottom: var(--article-gap); }
    .st-article-page :is(.xiang_con, .xiang_con1) { margin-top: var(--article-group); font-size: 17px; }
    .st-article-page .xiang_back { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: var(--article-gap); }
    .st-article-page .xiang_back a { text-align: left; }
    .st-article-page .discuss_but { width: 100%; margin-left: 0; }
    .st-article-page .hot_tit { font-size: 18px; }
}
