/* 第三版：页头图像柔和淡出至白色，正文采用连贯白底。 */
.cm-party-detail {
  --party-red: #ac1621;
  --party-gold: #e3b471;
  --party-ink: #242424;
  --party-border: #e9e4e2;
  margin: 0;
  color: var(--party-ink);
  background: #fff;
  font: 16px/1.7 "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.cm-party-detail *, .cm-party-detail *::before, .cm-party-detail *::after { box-sizing: border-box; }
.cm-party-detail [hidden] { display: none !important; }
.cm-party-detail a { color: inherit; text-decoration: none; }
.cm-party-detail a:hover { color: var(--party-red); }
.cm-party-detail button { font: inherit; cursor: pointer; }
.cm-party-detail button:focus-visible, .cm-party-detail a:focus-visible, .cm-party-detail [tabindex]:focus-visible { outline: 3px solid #b98630; outline-offset: 4px; }
.cm-party-detail .party-inner { width: calc(100% - 80px); max-width: 1200px; margin: 0 auto; }
.cm-party-detail .skip-link { position: fixed; top: 8px; left: 16px; padding: 8px 18px; transform: translateY(-160%); color: #fff; background: var(--party-red); z-index: 200; }
.cm-party-detail .skip-link:focus { transform: none; }

/* 宽幅大图只负责装饰，站点名称为真实页面文字，标识来自原图。 */
.cm-party-detail .party-masthead { position: relative; min-height: clamp(320px, 25vw, 410px); overflow: hidden; border: 0; background-color: #fff; background-image: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0) 48%, rgb(255 255 255 / .03) 56%, rgb(255 255 255 / .22) 69%, rgb(255 255 255 / .66) 84%, #fff 100%), url("../images/detail-party-header-v2.png"); background-position: center, center bottom; background-size: 100% 100%, cover; background-repeat: no-repeat; }
.cm-party-detail .masthead-inner { position: relative; max-width: 1380px; padding-top: clamp(65px, 5.3vw, 96px); padding-bottom: 140px; }
.cm-party-detail .logo-panel, .cm-party-detail .logo-window { width: 100%; min-height: 65px; }
.cm-party-detail .site-url { display: block; color: #fff5d6; }
.cm-party-detail .site-url:hover { color: #fff; }
.cm-party-detail .institution-pair { display: grid; grid-template-columns: 1fr 1.17fr; align-items: center; gap: 34px; }
.cm-party-detail .institution { display: flex; align-items: center; gap: 16px; min-width: 0; justify-content:center}
.cm-party-detail .institution-copy { display: block; min-width: 0; text-shadow: 0 2px 8px #76000065; }
.cm-party-detail .institution-copy strong { display: block; font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif; font-size: clamp(20px, 1.85vw, 32px); font-weight: 700; line-height: 1.55; white-space: nowrap; }
.cm-party-detail .institution-copy small { display: block; margin-top: 7px; color: #f8d9b9; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: clamp(9px, .72vw, 12px); font-weight: 400; line-height: 1.6; }
.cm-party-detail .institution-mark { position: relative; display: block; flex: 0 0 80px; width: 80px; height: 80px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 3px 18px #75000040; }
.cm-party-detail .institution-mark::before { content: ""; position: absolute; top: -98.518519%; width: 1422.222222%; height: 296.296296%; background: url("../images/detail-party-brand.png") 0 0 / 100% 100% no-repeat; }
.cm-party-detail .mark-intelligent::before { left: -8.888889%; }
.cm-party-detail .mark-evaluation::before { left: -648.148148%; }

.cm-party-detail .party-main { padding: 0 0 80px; background: #fff; }
.cm-party-detail .breadcrumb-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 2px; color: #787171; font-size: 14px; }
.cm-party-detail .col_news_head { min-width: 0; }
.cm-party-detail .col_metas { margin: 0; padding: 0; }
.cm-party-detail .col_path { overflow-wrap: anywhere; }
.cm-party-detail .path_name { color: #6e6666; }
.cm-party-detail .col_path a { margin: 0 5px; }
.cm-party-detail .col_path a:first-of-type { margin-left: 0; }
.cm-party-detail .page-type { flex: 0 0 auto; padding-left: 15px; border-left: 2px solid #b99595; color: #8b7272; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 13px; letter-spacing: 2px; }
.cm-party-detail .party-article-panel { position: relative; padding: 36px 80px 27px; border: 0; background: #fff; box-shadow: none; }
.cm-party-detail .article { min-height: 260px; }
.cm-party-detail .article-heading { margin-bottom: 34px; }
.cm-party-detail .arti_title, .cm-party-detail .arti_title * { margin: 0; padding: 0; color: #202020; font-family: "SimHei", "黑体", "Heiti SC", sans-serif !important; font-size: 34px; font-weight: 700 !important; line-height: 1.55; letter-spacing: .5px; text-align: center; overflow-wrap: anywhere; }
.cm-party-detail .arti_metas { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 25px; margin: 26px 0 0; padding: 0 0 28px; border-bottom: 1px solid var(--party-border); color: #77736d; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 14px; line-height: 1.8; text-align: center; }
.cm-party-detail .arti_metas > span { display: inline-block; }
.cm-party-detail .entry { min-width: 0; outline: none; }
.cm-party-detail .read, .cm-party-detail .read *, .cm-party-detail .article .wp_articlecontent, .cm-party-detail .article .wp_articlecontent * { font-family: "SimSun", "宋体", "Songti SC", "STSong", serif !important; }
.cm-party-detail .read, .cm-party-detail .article .wp_articlecontent { min-width: 0; color: #292929; font-size: 20px; line-height: 2; overflow-wrap: anywhere; }
.cm-party-detail .read p { margin-top: 0; margin-bottom: 1.3em; }
.cm-party-detail .read h1, .cm-party-detail .read h1 *, .cm-party-detail .read h2, .cm-party-detail .read h2 *, .cm-party-detail .read h3, .cm-party-detail .read h3 *, .cm-party-detail .read h4, .cm-party-detail .read h4 *, .cm-party-detail .read h5, .cm-party-detail .read h5 *, .cm-party-detail .read h6, .cm-party-detail .read h6 *, .cm-party-detail .wp_articlecontent h1, .cm-party-detail .wp_articlecontent h2, .cm-party-detail .wp_articlecontent h3, .cm-party-detail .wp_articlecontent h4 { font-family: "SimHei", "黑体", "Heiti SC", sans-serif !important; font-weight: 700 !important; }
.cm-party-detail .read h1, .cm-party-detail .read h2, .cm-party-detail .read h3, .cm-party-detail .read h4, .cm-party-detail .read h5, .cm-party-detail .read h6 { margin: 1.6em 0 .8em; color: #242424; line-height: 1.7; }
.cm-party-detail .read h1, .cm-party-detail .read h2 { font-size: 24px; }
.cm-party-detail .read h3 { font-size: 22px; }
.cm-party-detail .read h4 { font-size: 21px; }
.cm-party-detail .read ul, .cm-party-detail .read ol { padding-left: 1.6em; }
.cm-party-detail .read li { margin: .4em 0; }
.cm-party-detail .read a { color: #a31a25; text-decoration: underline; text-decoration-color: #ce9d93; text-underline-offset: 4px; }
.cm-party-detail .read a:hover { color: #6f121a; }
.cm-party-detail .read img, .cm-party-detail .article .wp_articlecontent img { max-width: 100% !important; height: auto !important; vertical-align: middle; }
.cm-party-detail .read img[data-image-preview] { cursor: zoom-in; }
.cm-party-detail .read figure { max-width: 100%; margin: 24px 0; }
.cm-party-detail .read figcaption { margin-top: 10px; color: #7d7b77; font-size: 16px; text-align: center; }
.cm-party-detail .read video, .cm-party-detail .read iframe, .cm-party-detail .read embed, .cm-party-detail .read object { max-width: 100% !important; }
.cm-party-detail .read audio { max-width: 100%; }
.cm-party-detail .read pre { max-width: 100%; padding: 15px; overflow: auto; background: #faf2e6; font-size: 16px; }
.cm-party-detail .read blockquote { margin: 24px 0; padding: 14px 24px; border-left: 3px solid #c8a264; background: #fdf6eb; color: #5e5547; }
.cm-party-detail .read blockquote p:last-child { margin-bottom: 0; }
.cm-party-detail .article-table-scroll { width: 100%; margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cm-party-detail .read table { min-width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0; font-size: 18px; line-height: 1.8; }
.cm-party-detail .read th, .cm-party-detail .read td { padding: 12px 17px; border: 1px solid #e5ddd2; text-align: left; }
.cm-party-detail .read th { background: #faf8f7; color: #694343; font-weight: 700; }
.cm-party-detail .article-end { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 42px 0 25px; }
.cm-party-detail .article-end span { width: 46px; height: 1px; background: #dfcbb0; }
.cm-party-detail .article-end i { width: 6px; height: 6px; transform: rotate(45deg); background: #b38a4c; }
.cm-party-detail .article-actions { display: flex; justify-content: flex-end; gap: 28px; padding-top: 18px; border-top: 1px solid #efebe4; }
.cm-party-detail .action-button { display: inline-flex; align-items: center; gap: 8px; padding: 3px 0; border: 0; background: transparent; color: #747570; font-size: 13px; }
.cm-party-detail .action-button:hover { color: var(--party-red); }
.cm-party-detail .action-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.cm-party-detail .party-footer, .cm-party-detail .party-footer * { font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif; }
.cm-party-detail .party-footer { position: relative; border: 0; color: #f8eae6; background: #901824; }
.cm-party-detail .footer-main { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 32px; padding-bottom: 29px; }
.cm-party-detail .footer-name { margin: 0 0 14px; color: #fff8e8; font-size: 20px; font-weight: 700; line-height: 1.7; }
.cm-party-detail .footer-contact { display: flex; flex-wrap: wrap; gap: 5px 29px; font-size: 14px; line-height: 2; }
.cm-party-detail .footer-support { margin: 8px 0 0; font-size: 14px; line-height: 2; }
.cm-party-detail .party-footer a:hover { color: #ffe2a1; text-decoration: underline; }
.cm-party-detail .footer-qr { flex: 0 0 88px; margin: 0; text-align: center; }
.cm-party-detail .footer-qr img { display: block; width: 88px; height: auto; padding: 4px; background: #fff; }
.cm-party-detail .footer-qr figcaption { margin-top: 6px; color: #f4d9bc; font-size: 12px; letter-spacing: 3px; }
.cm-party-detail .footer-bottom { padding: 15px 0; border-top: 1px solid #ffffff20; background: #7d1420; color: #e4c6c4; font-size: 13px; text-align: center; }

.cm-party-detail .article-image-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #151b24; color: #fff; }
.cm-party-detail .article-image-dialog::backdrop { background: #151b24e8; }
.cm-party-detail .image-dialog-toolbar { display: flex; align-items: center; gap: 25px; height: 64px; padding: 0 30px; border-bottom: 1px solid #ffffff25; font-size: 14px; }
.cm-party-detail .image-dialog-counter { flex: 1; }
.cm-party-detail .image-original-link:hover { color: #f4d292; }
.cm-party-detail .image-dialog-close { padding: 8px 12px; border: 1px solid #ffffff40; background: transparent; color: #fff; font-size: 14px; }
.cm-party-detail .image-dialog-close span { margin-left: 8px; }
.cm-party-detail .image-dialog-stage { display: flex; align-items: center; gap: 16px; height: calc(100% - 64px); padding: 20px; }
.cm-party-detail .image-dialog-stage figure { flex: 1; min-width: 0; margin: 0; text-align: center; }
.cm-party-detail .image-dialog-picture { width: auto; max-width: 100%; max-height: calc(100vh - 155px); object-fit: contain; }
.cm-party-detail .image-dialog-caption { margin-top: 12px; color: #ddd; font-size: 14px; }
.cm-party-detail .image-previous, .cm-party-detail .image-next { flex: 0 0 42px; height: 54px; border: 1px solid #ffffff30; background: transparent; color: #fff; font: 32px/1 serif; }
.cm-party-detail .image-previous:disabled, .cm-party-detail .image-next:disabled { opacity: .25; cursor: default; }

@media (max-width: 1150px) {
  .cm-party-detail .party-inner { width: calc(100% - 48px); }
  .cm-party-detail .institution-pair { gap: 25px; }
  .cm-party-detail .institution { gap: 12px; }
  .cm-party-detail .institution-mark { flex-basis: 60px; width: 60px; height: 60px; }
  .cm-party-detail .institution-copy strong { font-size: clamp(16px, 1.9vw, 22px); }
  .cm-party-detail .institution-copy small { font-size: 9px; }
  .cm-party-detail .party-article-panel { padding-right: 46px; padding-left: 46px; }
  .cm-party-detail .arti_title, .cm-party-detail .arti_title * { font-size: 31px; }
}
@media (max-width: 900px) {
  .cm-party-detail .party-masthead { min-height: 345px; background-position: center, 60% bottom; }
  .cm-party-detail .masthead-inner { padding-top: 38px; padding-bottom: 85px; }
  .cm-party-detail .institution-pair { grid-template-columns: 1fr; gap: 23px; max-width: 640px; margin: 0 auto; }
  .cm-party-detail .institution { gap: 16px; }
  .cm-party-detail .institution-copy strong { font-size: 25px; }
  .cm-party-detail .institution-copy small { margin-top: 4px; font-size: 10px; }
}
@media (max-width: 600px) {
  .cm-party-detail .party-inner { width: calc(100% - 36px); }
  .cm-party-detail .party-masthead { min-height: 330px; background-position: center, 59% bottom; }
  .cm-party-detail .masthead-inner { padding-top: 38px; padding-bottom: 82px; }
  .cm-party-detail .institution-pair { gap: 24px; }
  .cm-party-detail .institution { gap: 12px; }
  .cm-party-detail .institution-mark { flex-basis: 46px; width: 46px; height: 46px; }
  .cm-party-detail .institution-copy strong { font-size: clamp(14px, 4.1vw, 21px); line-height: 1.6; }
  .cm-party-detail .institution-copy small { font-size: 8px; line-height: 1.55; }
  .cm-party-detail .party-main { padding-bottom: 38px; }
  .cm-party-detail .breadcrumb-row { min-height: 61px; gap: 10px; padding: 15px 1px; font-size: 12px; }
  .cm-party-detail .page-type { display: none; }
  .cm-party-detail .party-article-panel { padding: 20px 10px 21px; }
  .cm-party-detail .article { min-height: 200px; }
  .cm-party-detail .article-heading { margin-bottom: 25px; }
  .cm-party-detail .arti_title, .cm-party-detail .arti_title * { font-size: 26px; line-height: 1.6; letter-spacing: 0; }
  .cm-party-detail .arti_metas { gap: 4px 15px; margin-top: 20px; padding-bottom: 22px; font-size: 12px; }
  .cm-party-detail .read, .cm-party-detail .article .wp_articlecontent { font-size: 18px; line-height: 2; }
  .cm-party-detail .read h1, .cm-party-detail .read h2 { font-size: 21px; }
  .cm-party-detail .read h3, .cm-party-detail .read h4 { font-size: 20px; }
  .cm-party-detail .read table { font-size: 16px; }
  .cm-party-detail .read th, .cm-party-detail .read td { padding: 10px 12px; }
  .cm-party-detail .read blockquote { padding: 12px 17px; }
  .cm-party-detail .article-end { margin-top: 31px; }
  .cm-party-detail .article-actions { justify-content: center; gap: 30px; padding-top: 16px; }
  .cm-party-detail .footer-main { align-items: flex-start; gap: 20px; padding-top: 25px; padding-bottom: 22px; }
  .cm-party-detail .footer-name { margin-bottom: 11px; font-size: 16px; }
  .cm-party-detail .footer-contact { display: block; font-size: 12px; }
  .cm-party-detail .footer-contact > span { display: block; margin-bottom: 5px; overflow-wrap: anywhere; }
  .cm-party-detail .footer-support { margin-top: 8px; font-size: 12px; }
  .cm-party-detail .footer-qr { flex-basis: 70px; margin-top: 4px; }
  .cm-party-detail .footer-qr img { width: 70px; padding: 3px; }
  .cm-party-detail .footer-qr figcaption { font-size: 11px; letter-spacing: 2px; }
  .cm-party-detail .footer-bottom { font-size: 11px; line-height: 1.9; }
  .cm-party-detail .image-dialog-toolbar { gap: 14px; height: 58px; padding: 0 14px; font-size: 12px; }
  .cm-party-detail .image-dialog-stage { gap: 6px; height: calc(100% - 58px); padding: 8px; }
  .cm-party-detail .image-previous, .cm-party-detail .image-next { flex-basis: 28px; height: 42px; }
}
@media (max-width: 370px) {
  .cm-party-detail .party-inner { width: calc(100% - 24px); }
  .cm-party-detail .institution { gap: 9px; }
  .cm-party-detail .institution-mark { flex-basis: 40px; width: 40px; height: 40px; }
  .cm-party-detail .institution-copy strong { font-size: 13.6px; }
  .cm-party-detail .party-article-panel { padding-right: 6px; padding-left: 6px; }
  .cm-party-detail .arti_title, .cm-party-detail .arti_title * { font-size: 24px; }
  .cm-party-detail .footer-main { gap: 13px; }
  .cm-party-detail .footer-qr { flex-basis: 60px; }
  .cm-party-detail .footer-qr img { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-party-detail *, .cm-party-detail *::before, .cm-party-detail *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .cm-party-detail { color: #000; background: #fff; }
  .cm-party-detail .party-inner { width: 100%; max-width: none; }
  .cm-party-detail .party-masthead, .cm-party-detail .breadcrumb-row, .cm-party-detail .article-actions, .cm-party-detail .party-footer, .cm-party-detail .skip-link, .cm-party-detail .article-image-dialog { display: none !important; }
  .cm-party-detail .party-main { padding: 0; background: #fff; }
  .cm-party-detail .party-article-panel { padding: 0; border: 0; box-shadow: none; }
  .cm-party-detail .party-article-panel::before, .cm-party-detail .party-article-panel::after { display: none; }
  .cm-party-detail .arti_title, .cm-party-detail .arti_title * { font-size: 24pt; }
  .cm-party-detail .read { font-size: 12pt; }
  .cm-party-detail .read h2, .cm-party-detail .read h3 { break-after: avoid; }
  .cm-party-detail .read img, .cm-party-detail .read tr { break-inside: avoid; }
  .cm-party-detail .article-table-scroll { overflow: visible; }
  .cm-party-detail .read table { width: 100% !important; min-width: 0; table-layout: fixed; font-size: 10pt; }
}
