/* Scope additions to plugin pages; shared header/footer remain theme-owned. */
.ctf-page .citongstyle-archive-card { min-height: 345px; }
.ctf-card-link { margin-top: .75rem; font-weight: 600; }
.ctf-pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 2rem; }
.ctf-pagination .page-numbers { padding: .4rem .75rem; border: 1px solid #ddd; border-radius: 4px; }
.ctf-pagination .current { background: #111; color: #fff; }
.ctf-return { margin-top: 2rem; }
.cte-activities { margin-top: 1.5rem; }
.cte-activity-format { font-size: .9rem; color: #625e5a; }
.cte-more { margin-top: 1.5rem; text-align: center; }
.cte-reading { margin-top: 3rem; }
.cte-description { color: #625e5a; line-height: 1.8; margin-bottom: 1.5rem; }
.cte-page .citongstyle-archive-card { min-height: 345px; }
.cte-card-link { margin-top: .75rem; font-weight: 600; }
.cth-main .cth-page { width: min(1120px, calc(100% - 3rem)); max-width: 1120px; margin-inline: auto; padding-block: 1.25rem 5rem; }
.cth-main .cth-detail { max-width: 900px; }
.cth-detail .cth-page-nav { border-block: 1px solid #ddd; padding-block: 1rem; margin-bottom: 2rem; }
.cth-detail .cth-page-nav p { margin: 0 0 .5rem; color: #625e5a; font-size: .85rem; }
.cth-detail .cth-page-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.cth-detail .cth-page-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #8f2f27; text-underline-offset: .25em; }
.cth-detail section[id][tabindex="-1"] { scroll-margin-block-start: 1.5rem; }
.cth-detail section[id][tabindex="-1"]:focus-visible { outline: 3px solid #385f59; outline-offset: 6px; }
.cth-breadcrumb { font-size: .85rem; line-height: 1.8; overflow-wrap: anywhere; color: #625e5a; }
.cth-breadcrumb a { color: inherit; text-underline-offset: .2em; }
.cth-heading { text-align: center; margin-block: 3rem 2.5rem; }
.cth-heading .cth-title { width: 100%; padding-top: 0 !important; margin: 0 0 1.5rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.cth-heading p { max-width: 760px; margin-inline: auto; line-height: 1.8; color: #625e5a; }
.cth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cth-grid .citongstyle-archive-card__content p { margin-block: .5rem; line-height: 1.8; }
.cth-grid .wp-block-post-title { overflow-wrap: anywhere; }
.cth-card-link { margin-top: .75rem; font-weight: 600; }
.cth-sample-label { font-size: .8rem; border: 1px solid currentColor; padding: .1rem .5rem; align-self: flex-start; }
.cth-sample-notice { border-left: 3px solid #8f2f27; background: #eee; padding: 1rem; font-size: .9rem; line-height: 1.8; }
.cth-content { line-height: 2; font-family: "Songti SC", "STSong", "SimSun", serif; overflow-wrap: anywhere; }
.cth-content > * { max-width: 100%; }
.cth-content h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.cth-content img, .cth-content video { max-width: 100%; height: auto; }
.cth-return { margin-top: 2.5rem; }
.cth-main .wp-element-button { display: inline-block; background: #111; color: #fff; border: 1px solid #111; border-radius: 5px; padding: .7rem 1.2rem; text-decoration: none; }
.cth-main a:focus-visible { outline: 3px solid #385f59; outline-offset: 4px; }
.cth-empty { border-block: 1px solid #ddd; padding: 2.5rem 1rem; text-align: center; }
.cth-main .navigation.pagination { margin-top: 2rem; }
.cth-facts { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: .6rem 1rem; padding-block: 1.5rem; border-block: 1px solid #ddd; }
.cth-facts dt { color: #625e5a; } .cth-facts dd { margin: 0; }
.cth-text { white-space: pre-line; }
.cth-sources li { margin-bottom: 1rem; overflow-wrap: anywhere; }
.cth-sources span, .cth-media figcaption { font-size: .85rem; color: #625e5a; }
.cth-media { margin-inline: 0; } .cth-media audio, .cth-media video { max-width: 100%; }
.cth-media img { display: block; width: auto; max-width: 100%; max-height: 720px; height: auto; margin-inline: auto; }
.cth-detail .cth-resource-intro { color: #625e5a; font-size: .9rem; }
.cth-detail .cth-resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; }
.cth-detail .cth-resource-card { min-width: 0; margin: 0; padding: 20px; border: 1px solid #ddd; border-radius: 12px; background: #f5f4f2; }
.cth-detail .cth-resource-card h3 { margin: .3rem 0 .75rem; font-size: 1.25rem; line-height: 1.6; }
.cth-detail .cth-resource-type { margin: 0; color: #8f2f27; font-size: .85rem; }
.cth-detail .cth-resource-credit { margin: .4rem 0; color: #625e5a; font-size: .85rem; }
.cth-detail .cth-resource-note { margin: .75rem 0; font-size: .9rem; }
.cth-detail .cth-resource-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; color: #8f2f27; text-underline-offset: .25em; }
.cth-detail .cth-media { margin-block: 1.5rem; padding-block: 1rem 1.5rem; border-bottom: 1px solid #ddd; }
.cth-detail .cth-media figcaption { margin-bottom: 1rem; line-height: 1.8; }
.cth-detail .cth-media figcaption p { overflow-wrap: anywhere; }
.cth-detail .cth-media figcaption h3 { color: #222; margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.6; }
.cth-detail .cth-media figcaption p { margin: .4rem 0; }
.cth-detail .cth-media figcaption a { color: #8f2f27; text-underline-offset: .25em; }
.cth-detail .cth-media :is(audio, video) { display: block; width: 100%; }
.cth-detail .cth-media :is(audio, video):focus-visible { outline: 3px solid #385f59; outline-offset: 4px; }
.cth-grid .cth-card-meta { font-size: .85rem; }
.cth-search { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 24px; border: 1px solid #ddd; border-radius: 16px; background: #f5f4f2; }
.cth-search > label, .cth-search .cth-filter { display: flex; flex: 1 1 180px; flex-direction: column; gap: 8px; font-size: .9rem; min-width: 0; }
.cth-search .cth-keyword { flex: 2 1 240px; }
.cth-search input, .cth-search select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #aaa; border-radius: 5px; background: #fff; color: #222; font: inherit; }
.cth-search button { min-height: 44px; font: inherit; cursor: pointer; }
.cth-search .cth-reset { padding-block: 12px; }
.cth-search :is(input, select, button):focus-visible { outline: 3px solid #385f59; outline-offset: 3px; }
.cth-result-count { margin-block: 20px; font-weight: 600; }
.cth-result-count span { display: block; font-size: .85rem; font-weight: 400; color: #625e5a; margin-top: 6px; }
.cth-reading-guide { margin-block: 24px; border-block: 1px solid #ddd; padding-block: 16px; line-height: 1.8; }
.cth-reading-guide summary { cursor: pointer; color: #8f2f27; }
.cth-reading-guide summary:focus-visible { outline: 3px solid #385f59; outline-offset: 4px; }
.cth-search-help { font-size: .9rem; color: #625e5a; line-height: 1.8; }
.cth-active-filters { margin-block: 18px; }
.cth-active-filters > p { margin-bottom: 8px; font-size: .9rem; }
.cth-active-filters ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cth-active-filters li { max-width: 100%; }
.cth-active-filters a { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; max-width: 100%; gap: 8px; padding: 8px 12px; border: 1px solid #8f2f27; border-radius: 5px; color: #78271f; background: #f5f4f2; text-decoration: none; line-height: 1.6; }
.cth-active-filters a span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cth-active-filters a:hover { background: #ece8e4; }
.cth-related li { margin-block: 16px; } .cth-related li p { margin-top: 4px; font-size: .9rem; color: #625e5a; }
.cth-feedback { margin-block: 3rem; border-top: 1px solid #ddd; padding-top: 1.5rem; line-height: 1.8; overflow-wrap: anywhere; }
.cth-feedback-form { display: flex; flex-direction: column; gap: 12px; margin-block: 20px; }
.cth-feedback-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 16px; border-block: 1px solid #ddd; }
.cth-feedback-filter select { min-height: 44px; max-width: 100%; padding: 8px; border: 1px solid #aaa; border-radius: 5px; background: #fff; font: inherit; color: #222; }
.cth-feedback-filter button { min-height: 44px; font: inherit; cursor: pointer; }
.cth-feedback-filter a { display: inline-flex; align-items: center; min-height: 44px; }
.cth-feedback-filter :is(select,button):focus-visible { outline: 3px solid #385f59; outline-offset: 4px; }
.cth-feedback-count { color: #625e5a; font-size: .9rem; }
.cth-feedback .cth-feedback-pages { flex-wrap: wrap; align-items: center; }
.cth-feedback-pages a { display: inline-flex; align-items: center; min-height: 44px; }
.cth-feedback-form :is(textarea,select,input[type=url]) { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid #aaa; border-radius: 5px; background: #fff; color: #222; }
.cth-feedback-form button { align-self: flex-start; cursor: pointer; font: inherit; }
.cth-feedback-form :focus-visible { outline: 3px solid #385f59; outline-offset: 3px; }
.cth-feedback-item { border: 1px solid #ddd; border-radius: 12px; padding: 20px; margin-block: 20px; }
.cth-feedback summary { cursor: pointer; } .cth-feedback .cth-reply { border-left: 3px solid #8f2f27; padding-left: 12px; }
.cth-consent { font-size: .9rem; } .cth-feedback-pages { display: flex; gap: 12px; }
.cth-contribute-invite { line-height: 1.8; }
.cth-contribute-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.cth-contribute-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid #aaa; border-radius: 5px; color: #625e5a; text-decoration: none; }
.cth-contribute-tabs a[aria-current="page"] { border-color: #8f2f27; color: #8f2f27; background: #f5f4f2; }
.cth-submission-form { display: flex; flex-direction: column; gap: 12px; line-height: 1.8; }
.cth-submission-form :is(input:not([type=hidden]):not([type=checkbox]),textarea,select) { box-sizing: border-box; min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #aaa; border-radius: 5px; background: #fff; color: #222; font: inherit; }
.cth-submission-form fieldset { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 12px 0; padding: 20px; border: 1px solid #ddd; border-radius: 12px; background: #f5f4f2; }
.cth-submission-form legend { padding: 0 8px; color: #8f2f27; }
.cth-submission-form .cth-form-help { color: #625e5a; font-size: .85rem; margin: 0; }
.cth-submission-form .cth-consent { overflow-wrap: anywhere; }
.cth-submission-form button { align-self: flex-start; min-height: 44px; font: inherit; cursor: pointer; }
.cth-submission-form :focus-visible { outline: 3px solid #385f59; outline-offset: 3px; }
@media (max-width: 850px) { .cth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cth-grid { grid-template-columns: 1fr; } .cth-heading { margin-block: 2rem; } .cth-main .cth-page { width: calc(100% - 2rem); } .cth-detail .cth-resource-list { grid-template-columns: 1fr; } .cth-detail .cth-resource-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .cth-grid .citongstyle-archive-card, .cth-grid .citongstyle-archive-card img { transition: none; } }
/* 详情页阅读层级：正文 H2 为主线，H3 为子目；档案区 H2 降为次级。 */
.cth-content > p:first-of-type { font-size: 1.12rem; line-height: 1.95; color: #2b2927; }
.cth-content h2 { font-size: clamp(1.7rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.35; margin-block: 2.75rem 1rem; }
.cth-content h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.6; margin-block: 1.6rem .5rem; color: #8f2f27; }
.cth-content .cth-figure { margin-block: 1.75rem 2rem; }
.cth-content .cth-figure img { display: block; width: auto; max-width: 100%; max-height: 620px; height: auto; margin-inline: auto; border-radius: 4px; }
.cth-content .cth-figure figcaption { margin-top: .65rem; color: #625e5a; font-size: .85rem; line-height: 1.75; text-align: center; }
.cth-content .cth-facts ~ section > h2 { font-size: 1.35rem; font-weight: 600; color: #625e5a; margin-block: 2rem .75rem; }
/* S1b 导览路径 */
.cth-guide-entry { margin-block: 28px; padding: 24px; border: 1px solid #ddd; border-radius: 12px; background: #f5f4f2; }
.cth-guide-entry h2 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.5; }
.cth-guide-entry p { margin: 0 0 12px; }
.cth-guide-kicker { margin: 0 0 8px; color: #8f2f27; font-size: .85rem; letter-spacing: .08em; }
.cth-guide { margin-block: 24px; padding: 20px 24px; border: 1px solid #ddd; border-radius: 12px; background: #f5f4f2; }
.cth-guide ol { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 6px; }
.cth-guide li { line-height: 1.7; }
.cth-guide a, .cth-guide-reason a { color: #8f2f27; }
.cth-guide-start { margin: 0; color: #2f2a25; }
.cth-guide-reason { margin-block: 28px 20px; padding: 16px 20px; border-left: 3px solid #8f2f27; background: #f5f4f2; }
.cth-guide-reason p { margin: 0 0 8px; line-height: 1.8; }
.cth-guide-reason p:last-child { margin-bottom: 0; }
.cth-guide-step { color: #625e5a; font-size: .9rem; }
@media (max-width: 600px) { .cth-guide-entry, .cth-guide, .cth-guide-reason { padding: 16px; } }
