/* Shared editor output: wrap plain HTML in <div class="content">.
   Keep page headers, galleries, players and recommendation cards outside it. */
.content {
    --article-paragraph-gap: 24px;
    min-width: 0;
    max-width: min(100%, 880px);
    margin-block-start: var(--article-paragraph-gap);
    color: var(--ink, #222);
    font-family: var(--content-font, var(--body, sans-serif));
    font-size: 18px;
    font-weight: 400;
    line-height: 34px;
    text-align: start;
    overflow-wrap: anywhere;
}
/* Match the article's reading size even when the editor supplies inline sizes. */
.content :where(p, h2, h3, h4, h5, h6, label, strong, span, b, font) {
    font-size: inherit !important;
    line-height: inherit !important;
}
.content :where(p, h2, h3, h4, h5, h6) { margin: var(--article-paragraph-gap) 0; }
.content :where(ul, ol, dl) { margin: 0 0 var(--article-paragraph-gap); }
.content :where(h2, h3, h4, h5, h6) { font-weight: 700; }
.content :where(strong, b) { font-weight: 700; }
.content :where(em, i) { font-style: italic; }
.content small { font-size: .85em; }
.content mark { padding: .1em .2em; background: #fff0bc; color: inherit; }
.content a { color: var(--red-text, #dc2732); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: var(--red-dark, #aa342e); }
.content :where(ul, ol) { padding-inline-start: 1.65em; }
.content ul { list-style-type: disc; }
.content ol:not([type]) { list-style-type: decimal; }
.content li { margin-block: .35em; padding-inline-start: .15em; }
.content li::marker { color: var(--red, #c9413a); font-weight: 600; }
.content li > :where(ul, ol) { margin-block: .4em 0; }
.content ul ul { list-style-type: circle; }
.content ul ul ul { list-style-type: square; }
.content li > p { margin-block: .35em; }
.content dt { margin-top: .7em; color: var(--ink, #222); font-weight: 700; }
.content dd { margin: .25em 0 .8em 1.65em; }
.content blockquote {
    margin: 1.6em 0;
    padding: 20px 24px;
    border-inline-start: 4px solid var(--red, #c9413a);
    background: var(--soft, #eef4f0);
    color: var(--muted, #5c5c5c);
}
.content figure { margin: 1.6em 0; }
.content picture { display: block; max-width: 100%; }
.content img { display: inline; max-width: 100%; height: auto; vertical-align: middle; }
.content > img { margin-block-end: 10px; }
.content :where(p) > img { padding-block-end: 10px; }
.content :where(figure, picture) img { display: block; margin-inline: auto; }
.content figcaption { margin-top: .7em; color: var(--muted, #5c5c5c); font-size: 13px; line-height: 1.65; }
.content :where(video, audio, iframe, embed, object) { display: block; max-width: 100%; margin-block: 1.6em; }
.content :where(video, iframe, embed, object) { width: 100%; height: auto; }
.content video { border-radius: 5px; background: #222; }
.content audio { width: 100%; }
.content iframe { aspect-ratio: 16 / 9; border: 0; }
.content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 1.6em 0;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: .9em;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
}
.content caption { padding-bottom: .7em; color: var(--muted, #5c5c5c); font-size: .9em; text-align: start; }
.content :where(th, td) { min-width: 100px; padding: 12px 16px; border: 1px solid var(--line, #e4e3e8); text-align: start; vertical-align: top; }
.content th { background: var(--soft, #eef4f0); color: var(--ink, #222); font-weight: 700; }
.content :where(code, kbd, samp, pre) { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.content :where(code, kbd, samp) { padding: .15em .35em; border-radius: 3px; background: var(--soft, #eef4f0); font-size: .88em; }
.content pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 1.6em 0;
    padding: 18px 20px;
    border: 1px solid var(--line, #e4e3e8);
    border-radius: 5px;
    background: var(--soft, #eef4f0);
    font-size: .88em;
    line-height: 1.75;
    white-space: pre;
    overflow-wrap: normal;
    tab-size: 2;
}
.content pre :where(code, kbd, samp) { padding: 0; background: transparent; font-size: inherit; }
.content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line, #e4e3e8); }
.content :where(p, section, div, li, dd, blockquote) > :first-child { margin-block-start: 0; }
.content :where(p, section, div, li, dd, blockquote) > :last-child { margin-block-end: 0; }
.content > :first-child { margin-block-start: 0; }
.content > :last-child { margin-block-end: 0; }
@media (max-width: 760px) {
    .content {
        --article-mobile-unit: min(calc(100vw / 37.5), 10.8px);
        --article-paragraph-gap: calc(var(--article-mobile-unit) * 2.4);
        font-size: calc(var(--article-mobile-unit) * 1.9);
        line-height: calc(var(--article-mobile-unit) * 3.2);
        letter-spacing: calc(var(--article-mobile-unit) * .1);
    }
    .content p { text-align: justify; }
    .content img { padding-block: var(--article-mobile-unit); }
    .content > img { margin-block-end: 0; }
    .content section { margin-bottom: 40px; }
    .content blockquote { padding: 16px 18px; }
    .content :where(th, td) { padding: 10px 12px; }
    .content pre { padding: 14px 16px; }
}
@media (max-width: 345px) {
    .content { --article-mobile-unit: 8.5px; }
}

/* 活动正文直接展示后台富文本，基础标签不需要额外的 class。 */
.event-content {
    min-width: 0;
    max-width: 100%;
    margin-top: 32px;
    color: var(--ink, #222);
    font-family: var(--content-font, var(--body, sans-serif));
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.event-content p { margin: 0 0 1.05em; }
.event-content :where(h2, h3, h4, h5, h6) { margin: 32px 0 12px; font-family: inherit; font-weight: 700; line-height: 1.45; }
.event-content :where(h2:not([data-heading-style]), [data-heading-style="h2"]) { font-size: 24px; }
.event-content :where(h3:not([data-heading-style]), [data-heading-style="h3"]) { font-size: 22px; }
.event-content :where(h4:not([data-heading-style]), [data-heading-style="h4"]) { font-size: 20px; }
.event-content :where(h5:not([data-heading-style]), [data-heading-style="h5"]) { font-size: 18px; }
.event-content :where(h6:not([data-heading-style]), [data-heading-style="h6"]) { font-size: 16px; }
.event-content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 5px; }
.event-content :where(ul, ol) { margin: 0 0 1.05em; padding-inline-start: 1.65em; }
.event-content li { margin-block: .35em; }
.event-content > :first-child { margin-top: 0; }
.event-content > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
    .event-content { font-size: 16px; }
    .event-content :where(h2:not([data-heading-style]), [data-heading-style="h2"]) { font-size: 22px; }
    .event-content :where(h3:not([data-heading-style]), [data-heading-style="h3"]) { font-size: 20px; }
    .event-content :where(h4:not([data-heading-style]), [data-heading-style="h4"]) { font-size: 18px; }
    .event-content :where(h5:not([data-heading-style]), [data-heading-style="h5"]) { font-size: 17px; }
}

/* 职位正文直接使用编辑器输出的基础标签。 */
.job-content {
    min-width: 0;
    max-width: 100%;
    margin-top: 40px;
    color: var(--secondary-ink, #454545);
    font-family: var(--content-font, var(--body, sans-serif));
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.job-content p { margin: 0 0 1em; }
.job-content :where(h2, h3, h4, h5, h6) {
    margin: 32px 0 14px;
    color: var(--ink, #222);
    font-family: inherit;
    font-weight: 700;
    line-height: 1.45;
}
.job-content :where(h2:not([data-heading-style]), [data-heading-style="h2"]) { font-size: 25px; }
.job-content :where(h3:not([data-heading-style]), [data-heading-style="h3"]) { font-size: 22px; }
.job-content :where(h4:not([data-heading-style]), [data-heading-style="h4"]) { font-size: 19px; }
.job-content :where(h5:not([data-heading-style]), [data-heading-style="h5"]) { font-size: 17px; }
.job-content :where(h6:not([data-heading-style]), [data-heading-style="h6"]) { font-size: 16px; }
.job-content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 5px; }
.job-content hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line, #e4e3e8); }
.job-content :where(ul, ol) { margin: 0 0 1em; padding-inline-start: 1.5em; }
.job-content li { margin-block: .5em; padding-inline-start: 4px; }
.job-content li::marker { color: var(--red-text, #dc2732); font-weight: 700; }
.job-content > :first-child { margin-top: 0; }
.job-content > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
    .job-content { margin-top: 32px; font-size: 15px; }
    .job-content :where(h2:not([data-heading-style]), [data-heading-style="h2"]) { font-size: 22px; }
    .job-content :where(h3:not([data-heading-style]), [data-heading-style="h3"]) { font-size: 20px; }
    .job-content :where(h4:not([data-heading-style]), [data-heading-style="h4"]) { font-size: 18px; }
}
