/* Government-portal-inspired typography for interior pages only. */
html:has(body.gov-subpage){background:#f3f5f7;scroll-padding-top:20px}
body.gov-subpage{--paper:#fff;--card:#fff;--ink:#263747;--muted:#52606b;--green:#263747;--gold:#a42424;--line:#dce1e6;width:min(1180px,calc(100% - 48px));max-width:none;zoom:1;margin:0 auto;padding:0;background:#fff;color:#263747;font:16px/1.8 "Microsoft YaHei","PingFang SC",Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column;box-shadow:none;overflow-x:clip}
.gov-subpage *, .gov-subpage *:before,.gov-subpage *:after{box-sizing:border-box}
.gov-subpage .wrap{width:calc(100% - 80px);max-width:1060px;margin-inline:auto}
.gov-subpage a{transition:color .15s,background .15s}
.gov-subpage a:focus-visible,.gov-subpage button:focus-visible,.gov-subpage summary:focus-visible{outline:2px solid #a42424;outline-offset:3px}
.gov-subpage>.site-header{background:#fff;border-top:5px solid #a42424;position:relative;z-index:100}
.gov-subpage .site-header .brand-row{min-height:148px;height:auto;padding:34px 0 24px;display:flex;flex-direction:column;justify-content:center;gap:10px;text-align:center}
.gov-subpage .brand{justify-content:center;gap:14px}
.gov-subpage .brand strong{font:700 34px/1.55 "Microsoft YaHei","PingFang SC",sans-serif;color:#ad2026;letter-spacing:2px;white-space:normal}
.gov-subpage .brand-motto{display:block;color:#6b747b;font-size:15px;line-height:1.8;letter-spacing:2px}
.gov-subpage .profile-menu{display:none}
.gov-subpage .profile-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;max-width:none;gap:0;padding:0;border:0;background:#a42424;letter-spacing:0;position:relative;overflow:visible}
.gov-subpage .profile-nav>.nav-item{min-width:0;position:relative}
.gov-subpage .profile-nav>.nav-item>a,.gov-subpage .profile-nav>a{display:flex;align-items:center;justify-content:center;min-height:54px;margin:0;padding:12px 4px;color:#fff;font:600 16px/1.5 "Microsoft YaHei","PingFang SC",sans-serif;text-align:center;white-space:nowrap}
.gov-subpage .profile-nav>.nav-item>a:hover,.gov-subpage .profile-nav>a:hover,.gov-subpage .profile-nav>.nav-item>a[aria-current=page],.gov-subpage .profile-nav>a[aria-current=page]{color:#fff;background:#831b20}
.gov-subpage .profile-nav a[aria-current=page]:after{content:none}
.gov-subpage .profile-nav .nav-submenu{line-height:1.6}
.gov-subpage>main{position:relative;background:#fff;flex:1 0 auto;min-height:0;width:100%;padding:0 0 28px}
.gov-subpage.gov-empty>main{flex:1 0 120px;min-height:120px}
.gov-subpage .gov-breadcrumb{width:calc(100% - 80px);max-width:1060px;margin:0 auto;padding:17px 0;border-bottom:1px solid #e2e6ea;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15px;line-height:1.8;color:#6a737c}
.gov-subpage .gov-breadcrumb a{color:#4b5b68}
.gov-subpage .gov-breadcrumb a:hover{color:#a42424;text-decoration:underline}
.gov-subpage .page-heading{padding:30px 0 26px;border-bottom:2px solid #a42424}
.gov-subpage .page-heading .eyebrow{font-size:15px;color:#7a8288;letter-spacing:1px;line-height:1.6}
.gov-subpage .page-heading h1,.gov-subpage .record-heading{font:700 30px/1.6 "Microsoft YaHei","PingFang SC",sans-serif;color:#203344;letter-spacing:0;white-space:normal;max-width:none;overflow-wrap:anywhere;margin:8px 0 12px}
.gov-subpage .page-heading>p{max-width:none;font-size:16px;line-height:1.9;color:#68747e;margin:0}
.gov-subpage .page-body{min-height:0;padding:32px 0 40px}
.gov-subpage .page-body:empty{padding:0}
.gov-subpage .page-body h2,.gov-subpage .record-section h2,.gov-subpage .reading h2{font:700 24px/1.65 "Microsoft YaHei","PingFang SC",sans-serif;color:#253849;letter-spacing:0;margin:24px 0 16px;overflow-wrap:anywhere}
.gov-subpage .page-body h3,.gov-subpage .record-section h3{font:600 20px/1.7 "Microsoft YaHei","PingFang SC",sans-serif;color:#253849;letter-spacing:0;margin:18px 0 12px;overflow-wrap:anywhere}
.gov-subpage .page-body h4{font-size:18px;line-height:1.8;margin:22px 0 10px;color:#344759}
.gov-subpage .page-body p,.gov-subpage .reading p,.gov-subpage .article-body p,.gov-subpage .annotation p,.gov-subpage .lineage-opening>p{font-size:17px;line-height:2;color:#46525b;margin:0 0 18px;overflow-wrap:anywhere}
.gov-subpage .reading{width:100%;max-width:none;margin:0 0 30px}
.gov-subpage .reading>p{text-indent:2em}
.gov-subpage .reading>p:last-child{margin-bottom:0}
.gov-subpage .reading a,.gov-subpage .source-note a{color:#245580;text-decoration:underline;text-underline-offset:3px}
.gov-subpage .eyebrow{color:#a42424;font-size:15px;line-height:1.8;letter-spacing:1px}
.gov-subpage .source-note,.gov-subpage .record-note,.gov-subpage .lineage-source{font-size:14px;line-height:1.9;color:#65717b}
.gov-subpage .source-note{padding:16px 20px;border-left:3px solid #a42424;background:#f5f7f9;margin:24px 0;text-indent:0}
.gov-subpage .source-note p{font-size:14px;text-indent:0;margin:0}
.gov-subpage .text-link,.gov-subpage .plain-link{color:#245580;font-size:15px;line-height:1.8}
.gov-subpage .text-link:hover,.gov-subpage .plain-link:hover{color:#a42424;text-decoration:underline}
.gov-subpage .column-links,.gov-subpage .album-links,.gov-subpage .biography-jumps{display:flex;flex-wrap:wrap;gap:10px 24px;margin:0 0 28px;padding:0 0 20px;border-bottom:1px solid #dce1e6}
.gov-subpage .column-links a,.gov-subpage .album-links a,.gov-subpage .biography-jumps a{font:15px/1.8 "Microsoft YaHei",sans-serif;color:#38536a;letter-spacing:0;padding:5px 0}
.gov-subpage .album-links .album-link{border:0;background:none}
.gov-subpage .gov-breadcrumb+.page-body>.record-section:first-child{padding-top:0}
.gov-subpage .record-heading{border-bottom:2px solid #a42424;padding-bottom:18px;margin-top:0;margin-bottom:28px}
.gov-subpage .record-section{padding:28px 0 36px}
.gov-subpage .record-section+.record-section{border-top:1px solid #dce1e6}
/* Full-width, readable article layout. */
.gov-subpage.gov-article .page-heading{text-align:center;border-bottom:1px solid #dce1e6;padding:36px 12px 28px}
.gov-subpage.gov-article .page-heading h1{font-size:30px;line-height:1.65;margin-bottom:16px}
.gov-subpage.gov-article .page-body{max-width:940px}
.gov-subpage .article-copy{width:100%;max-width:900px;margin-inline:auto}
.gov-subpage.gov-article .reading p,.gov-subpage.gov-article .standard-article>p{font:18px/2.1 "SimSun","Songti SC",serif;color:#303942;margin-bottom:22px;text-indent:2em}
.gov-subpage .article-meta{text-align:center;font-size:14px;color:#74808a;letter-spacing:0;border-bottom:1px solid #e2e6ea;padding-bottom:18px;margin-bottom:28px}
.gov-subpage .article-cover{margin:0 0 28px;background:#f7f8fa;border:1px solid #e2e6ea}
.gov-subpage .article-cover>img{max-height:none;height:auto;object-fit:contain}
.gov-subpage .article-cover>figcaption{font-size:14px;padding:12px 16px;color:#68747d}
/* List and photo archive pages. */
.gov-subpage .honor-grid,.gov-subpage .article-grid,.gov-subpage .archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.gov-subpage .gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.gov-subpage .honor-card,.gov-subpage .article-card,.gov-subpage .bio-topic,.gov-subpage .document-card{border:1px solid #dce1e6;border-radius:0;background:#fff;box-shadow:none;min-width:0}
.gov-subpage .honor-card:hover,.gov-subpage .article-card:hover{transform:none;box-shadow:0 5px 16px #2033440b;border-color:#b9c4ce}
.gov-subpage .card-body,.gov-subpage .article-card-link>.article-body{padding:20px}
.gov-subpage .card-body h3,.gov-subpage .article-card h3{font-size:19px;line-height:1.7;margin:0 0 12px}
.gov-subpage .card-body p,.gov-subpage .article-card p{font-size:15px;line-height:1.9;margin:0 0 12px;min-height:0;color:#5b6873}
.gov-subpage .card-body small{font-size:13px;color:#6c7780}
.gov-subpage .certificate-frame,.gov-subpage .honor-card .certificate-frame{background:#f8f9fa;border-bottom:1px solid #e2e6ea;padding:14px;aspect-ratio:3/2}
.gov-subpage .article-thumb{background:#f6f8fa}
.gov-subpage .article-thumb>img{aspect-ratio:3/2;object-fit:contain}
.gov-subpage .photo{margin:0;min-width:0}
.gov-subpage .photo>button{background:#f8f9fa;border:1px solid #dce1e6;padding:14px}
.gov-subpage .photo>figcaption,.gov-subpage .record-photo figcaption{font-size:14px;line-height:1.85;color:#576875;margin-top:10px;padding:0}
.gov-subpage .archive-intro{gap:24px;padding:0 0 28px;align-items:start}
.gov-subpage .archive-intro b{font-size:38px;color:#a42424}
.gov-subpage .archive-intro p{font-size:16px;line-height:1.9}
.gov-subpage .archive-intro span{font-size:13px;color:#6a7580}
.gov-subpage .record-panel,.gov-subpage .original-photo-panel,.gov-subpage .biography-sources{background:#f5f7f9;border:1px solid #dce1e6;border-top:3px solid #a42424;padding:24px;margin-block:28px}
.gov-subpage .record-panel p{font-size:16px;color:#53616d}
/* Certificate originals and accompanying notes. */
.gov-subpage .certificate-detail,.gov-subpage .balanced-certificate-detail{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:30px;align-items:start}
.gov-subpage .certificate-originals{min-width:0;display:grid;gap:22px}
.gov-subpage .annotation{padding:24px;background:#f6f8fa;border:1px solid #dce1e6}
.gov-subpage .annotation>h2{font-size:22px;margin-top:0}
.gov-subpage .annotation dt{font-size:14px;line-height:1.8;color:#75818a}
.gov-subpage .annotation dd{font-size:16px;line-height:1.85;color:#344451;margin:4px 0 16px}
.gov-subpage .annotation p{font-size:16px}
.gov-subpage .annotation>small{font-size:13px;color:#687680;line-height:1.8}
.gov-subpage .standard-scan{border:1px solid #dce1e6;padding:16px;margin:30px 0;background:#fff}
.gov-subpage .standard-scan figcaption{font-size:16px;font-weight:600;padding-bottom:12px;color:#344b5c}
.gov-subpage .standard-scan img{width:100%;height:auto;object-fit:contain}
/* People and lineage records. */
.gov-subpage .xincheng-intro{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:36px;align-items:start}
.gov-subpage .xincheng-story{padding:30px 0;border-block:1px solid #dce1e6;margin-top:30px}
.gov-subpage .xincheng-story h3{margin-top:0}
.gov-subpage .xincheng-gallery,.gov-subpage .record-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.gov-subpage .xincheng-portrait{max-width:100%;justify-self:center}
.gov-subpage .biography-split.light,.gov-subpage .historical-intro{gap:36px}
.gov-subpage .bio-topic-grid{gap:22px}
.gov-subpage .lineage-preview{border:1px solid #dce1e6;background:#f6f8fa;gap:28px;padding:28px}
.gov-subpage .lineage-preview p{font-size:16px;color:#52616d}
.gov-subpage .biography-timeline time{color:#a42424;font-size:18px}
.gov-subpage .biography-timeline p{font-size:16px}
.gov-subpage .biography-timeline>li:before{border-color:#d0d8df}
.gov-subpage .biography-timeline>li:after{border-color:#a42424;background:#fff}
/* Exchange, document, and video libraries. */
.gov-subpage .activity-library-head{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:24px}
.gov-subpage .activity-filters{display:flex;flex-wrap:wrap;gap:8px}
.gov-subpage .activity-filters>button{font:14px/1.5 "Microsoft YaHei",sans-serif;min-height:38px;padding:8px 16px;border:1px solid #d4dce3;background:#fff;color:#43596c;border-radius:2px}
.gov-subpage .activity-filters>button[aria-pressed=true]{background:#a42424;color:#fff;border-color:#a42424}
.gov-subpage .activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.gov-subpage .activity-item{border-bottom:1px solid #dce1e6;padding-bottom:20px}
.gov-subpage .activity-open{grid-template-columns:40% minmax(0,1fr);gap:16px}
.gov-subpage .activity-thumb{width:100%;height:auto;aspect-ratio:3/2;border-radius:0;background:#f6f8fa}
.gov-subpage .activity-copy strong{font-size:17px;line-height:1.7}
.gov-subpage .activity-copy>span{font-size:14px;line-height:1.8}
.gov-subpage .policy-entry{padding:24px;border:1px solid #dce1e6;border-left:3px solid #a42424;background:#fff}
.gov-subpage .policy-entry-meta{color:#65717c;font-size:14px;flex-wrap:wrap;gap:8px 18px}
.gov-subpage .policy-entry h2{font-size:22px}
.gov-subpage .video-entry{border:1px solid #dce1e6;padding:22px;margin-bottom:28px;background:#fff}
.gov-subpage .video-entry h3{font-size:21px;margin-top:0}
.gov-subpage .video-entry video{width:100%;height:auto;max-width:100%;object-fit:contain}
.gov-subpage .video-meta{font-size:14px;color:#697782;line-height:1.8;margin:8px 0 16px}
.gov-subpage .document-copy{padding:22px}
.gov-subpage .contact-methods{gap:24px}
.gov-subpage .contact-method{border:1px solid #dce1e6;padding:24px;background:#f7f9fa}
.gov-subpage .contact-number{font-size:26px;color:#a42424;overflow-wrap:anywhere}
.gov-subpage .contact-address{border-top:1px solid #dce1e6;padding-top:22px}
.gov-subpage .profile-lightbox{zoom:1;background:#fff;max-width:min(94vw,1400px);max-height:94vh}
.gov-subpage .profile-lightbox>img{max-width:100%;max-height:76vh;width:auto;height:auto;object-fit:contain}
@media(max-width:999px){
body.gov-subpage{width:100%;max-width:100%;zoom:1;min-height:100svh}
.gov-subpage .wrap,.gov-subpage .gov-breadcrumb{width:calc(100% - 32px)}
.gov-subpage .site-header .brand-row{min-height:112px;padding:24px 0 18px;gap:6px}
.gov-subpage .brand strong{font-size:clamp(21px,4.3vw,31px);letter-spacing:1px}
.gov-subpage .brand-motto{font-size:13px;letter-spacing:1px}
.gov-subpage .institute-logo{width:48px;height:40px}
.gov-subpage .profile-nav{width:100%;grid-template-columns:repeat(7,minmax(0,1fr))}
.gov-subpage .profile-nav>.nav-item{position:static}
.gov-subpage .profile-nav>.nav-item>a,.gov-subpage .profile-nav>a{font-size:clamp(9px,2.2vw,14px);min-height:44px;padding:10px 1px}
.gov-subpage .gov-breadcrumb{padding:12px 0;font-size:14px;gap:6px}
.gov-subpage .page-heading{padding:24px 0 20px}
.gov-subpage .page-heading h1,.gov-subpage.gov-article .page-heading h1,.gov-subpage .record-heading{font-size:25px;line-height:1.65}
.gov-subpage .page-heading>p{font-size:15px}
.gov-subpage .page-body{padding:24px 0 30px;max-width:none}
.gov-subpage .page-body p,.gov-subpage .reading p{font-size:16px;line-height:1.95}
.gov-subpage.gov-article .reading p,.gov-subpage.gov-article .standard-article>p{font-size:17px;line-height:2}
.gov-subpage .page-body h2{font-size:22px}
.gov-subpage .page-body h3{font-size:19px}
.gov-subpage .honor-grid,.gov-subpage .article-grid,.gov-subpage .archive-grid,.gov-subpage .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gov-subpage .certificate-detail,.gov-subpage .balanced-certificate-detail,.gov-subpage .xincheng-intro,.gov-subpage .biography-split.light,.gov-subpage .historical-intro,.gov-subpage .culture-split{grid-template-columns:minmax(0,1fr);gap:24px}
.gov-subpage .bio-nowrap{white-space:normal}
.gov-subpage .annotation{padding:20px}
.gov-subpage .lineage-preview,.gov-subpage .bio-topic-grid{grid-template-columns:minmax(0,1fr);gap:22px}
.gov-subpage .lineage-preview>div:not(:last-child):after{content:none}
.gov-subpage .record-panel,.gov-subpage .biography-sources{padding:20px}
.gov-subpage .activity-grid{grid-template-columns:minmax(0,1fr)}
.gov-subpage .biography-timeline>li{grid-template-columns:100px minmax(0,1fr);gap:16px}
.gov-subpage .biography-timeline>li:before{left:99px}.gov-subpage .biography-timeline>li:after{left:95px}
.gov-subpage .biography-timeline time{font-size:16px}
.gov-subpage .contact-method{padding:20px}
.gov-subpage .standard-scan{padding:8px;margin:22px 0}
}
@media(max-width:560px){
.gov-subpage .honor-grid,.gov-subpage .article-grid,.gov-subpage .archive-grid,.gov-subpage .gallery-grid,.gov-subpage .xincheng-gallery,.gov-subpage .record-gallery,.gov-subpage .document-library{grid-template-columns:minmax(0,1fr)}
.gov-subpage .page-body>.reading{width:100%}
.gov-subpage .card-body{padding:18px}
.gov-subpage .activity-open{grid-template-columns:36% minmax(0,1fr);gap:12px}
.gov-subpage .archive-intro{flex-wrap:wrap}
.gov-subpage .video-entry{padding:12px}
}/* Remove inherited fixed-size portrait constraints on interior pages. */
.gov-subpage main .xincheng-intro .xincheng-portrait{width:100%!important;max-width:360px!important;height:auto!important;aspect-ratio:auto!important}
.gov-subpage main .xincheng-intro .xincheng-portrait button{height:auto!important;aspect-ratio:auto!important}
.gov-subpage main .xincheng-intro .xincheng-portrait img{width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain!important}
.gov-subpage .contact-method:nth-child(2) .wechat-qr{margin-left:0;max-width:100%;height:auto}
.gov-subpage .annotation,.gov-subpage .record-section,.gov-subpage .xincheng-profile,.gov-subpage .activity-copy,.gov-subpage .document-copy{min-width:0}
/* Core concept page follows a plain, centered article layout. */
body.gov-subpage.brand-concept-page{min-height:100vh}
.gov-subpage.brand-concept-page>main{flex:1 0 auto;padding-bottom:0}
.gov-subpage.brand-concept-page .page-heading{text-align:center;max-width:960px;padding:32px 0 24px;border-bottom:1px solid #dce1e6}
.gov-subpage.brand-concept-page .page-heading>.eyebrow{display:none}
.gov-subpage.brand-concept-page .page-heading h1{font:700 30px/1.65 "Microsoft YaHei","PingFang SC",sans-serif;color:#222;margin:0 0 16px}
.gov-subpage.brand-concept-page .page-heading>p{font-size:16px;line-height:1.9;color:#666;margin:0}
.gov-subpage.brand-concept-page .page-heading>p>strong{font-weight:400}
.gov-subpage.brand-concept-page .page-body{width:calc(100% - 80px);max-width:900px;padding:28px 0 42px;min-height:0}
.gov-subpage.brand-concept-page .concept-reading{max-width:none;margin:0;padding:0}
.gov-subpage.brand-concept-page .concept-reading p,.gov-subpage.brand-concept-page .concept-reading .concept-lead,.gov-subpage.brand-concept-page .concept-reading .concept-mission{font:400 18px/2.05 "SimSun","Songti SC",serif;text-align:justify;text-indent:2em;letter-spacing:0;color:#303030;margin:0 0 24px;padding:0;border:0;background:none}
.gov-subpage.brand-concept-page .concept-context{padding:0;margin:0;border:0;background:none}
.gov-subpage.brand-concept-page .concept-context p:last-child{margin-bottom:0}
@media(max-width:999px){
.gov-subpage.brand-concept-page .page-heading{padding:26px 0 22px}
.gov-subpage.brand-concept-page .page-heading h1{font-size:25px;line-height:1.65}
.gov-subpage.brand-concept-page .page-body{width:calc(100% - 36px);padding:24px 0 32px}
.gov-subpage.brand-concept-page .concept-reading p,.gov-subpage.brand-concept-page .concept-reading .concept-lead,.gov-subpage.brand-concept-page .concept-reading .concept-mission{font-size:17px;line-height:2;margin-bottom:20px}
}
/* Every primary navigation label fills and centers in its equal-width column. */
.gov-subpage .profile-nav>.nav-item{justify-content:center;align-items:stretch}
.gov-subpage .profile-nav>.nav-item>a{width:100%;flex:1 1 auto;justify-content:center;text-align:center;box-sizing:border-box}
.gov-subpage .profile-nav>a{width:100%;justify-content:center;text-align:center;box-sizing:border-box}
