/* The selected original remains the layout foundation. Shared type roles only. */
:root {
  --font-site: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", SCS, Arial, sans-serif;
  --text-primary: #28343d;
  --text-secondary: #52616e;
  --text-heading: #233e52;
}

body { font-family: var(--font-site); font-size: 16px; line-height: 1.85; color: var(--text-primary); }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, strong, b { font-weight: 700; }
::selection { background: #d7e8f4; color: #173b55; }
a { text-underline-offset: .2em; }

/* One identity group: the existing outlined wordmark plus the legal name. */
.identity { gap: 24px; }
.wordmark { width: 194px; height: auto; }
.identity-copy { padding-left: 24px; }
.company-name {
  font-family: var(--font-site);
  font-size: 26px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  color: #253a4a;
  white-space: nowrap;
}
.identity-copy small { margin-top: 4px; font-size: 13px; line-height: 1.7; letter-spacing: .02em; color: var(--text-secondary); }
.utility { font-size: 13px; gap: 18px; color: var(--text-secondary); }
.hotline { margin-top: 13px; color: var(--text-secondary); }
.hotline strong { font-family: Arial, var(--font-site); font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: .01em; }
.nav-menu > li > a { font-size: 17px; font-weight: 400; }
.nav-menu > li > a[aria-current="page"] { font-weight: 700; }

/* Existing blue is reserved for navigation, links and institutional headings. */
.institution-strip h1 { font-size: 29px; line-height: 1.5; letter-spacing: 0; }
.institution-strip p { color: #4d6475; }
.page-intro h1 { font-size: 28px; line-height: 1.5; color: var(--text-heading); font-weight: 700; }
.page-intro p { font-size: 15px; line-height: 1.9; color: var(--text-secondary); }
.breadcrumbs { font-size: 13px; color: #566672; }
.breadcrumbs a { color: #3d607b; }
.side-title { font-size: 21px; font-weight: 700; }
.side-directory li > a { font-size: 15px; color: #394e5e; }
.section-heading, .section-heading-row .section-heading { font-size: 22px; line-height: 1.6; color: var(--text-heading); font-weight: 700; }
.catalog-item h2 { font-size: 21px; line-height: 1.6; color: var(--text-heading); font-weight: 700; }
.catalog-item p, .catalog-item ul { font-size: 15px; line-height: 1.95; color: var(--text-secondary); }
.catalog-item .project-links li, .project-links li { font-size: 14px; line-height: 1.85; }
.content-section > p, .article-body > p { font-size: 16px; line-height: 1.95; }
.content-section > p { max-width: 60em; }
.fact-table { font-size: 15px; line-height: 1.9; }
.fact-table th { font-weight: 700; color: #344d61; }
.fact-table td { color: #3f505e; }
.info-panel p, .values-grid p, .process-grid p, .process-list p { font-size: 15px; line-height: 1.95; color: var(--text-secondary); }
.values-grid h3, .process-grid h3, .process-list strong { font-size: 18px; line-height: 1.6; color: var(--text-heading); }

.panel-title h2, .online-panel h2 { font-size: 22px; font-weight: 700; }
.news-tabs button { font-size: 20px; }
.news-tabs button[aria-selected="true"] { font-weight: 700; }
.home-news li { font-size: 16px; line-height: 1.8; }
.home-news time, .document-list time, .document-title-row time { color: #596975; font-size: 13px; }
.news-count, .record-count, .caption-note, .more-link { font-size: 13px; color: #596975; }
.business-item h3 { font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--text-heading); }
.business-item p { font-size: 14px; line-height: 1.9; color: var(--text-secondary); }
.online-panel strong { font-size: 17px; }
.online-panel small { font-size: 13px; color: var(--text-secondary); }
.lab-directory a, .market-directory a { font-size: 15px; line-height: 1.8; }
.market-directory small { font-size: 13px; color: var(--text-secondary); }
.intro-panel p { font-size: 16px; line-height: 1.95; color: #405463; }
.home-certificates img { height: 120px; padding: 6px; }
.home-certificates a { font-size: 13px; }
.text-link { font-size: 15px; }

.document-list a { font-size: 18px; line-height: 1.75; }
.document-description p, .document-list p, .document-list .summary { font-size: 14px; line-height: 1.9; color: var(--text-secondary); }
.document-description .document-category, .document-category { font-size: 13px; color: #45657d; }
.article-body { max-width: 60em; margin-inline: auto; font-size: 16px; line-height: 1.95; }
.article-body h2 { font-size: 22px; line-height: 1.6; font-weight: 700; color: var(--text-heading); }
.article-body h3 { font-size: 19px; line-height: 1.6; font-weight: 700; color: var(--text-heading); }
.article-layout .page-intro h1 { font-size: 28px; line-height: 1.65; }
.article-meta { font-size: 13px; line-height: 1.85; color: #596975; }
.article-body table { font-size: 14px; line-height: 1.9; }
.article-body th { font-weight: 700; }
.contact-grid dt, .field-label, .form-preview label { color: var(--text-secondary); }
.field-label { font-weight: 700; }
.report-query-panel > p, .report-panel p, .numbered-notes { font-size: 15px; line-height: 1.95; color: var(--text-secondary); }
.report-query-row input { font-size: 15px; }
.form-preview small, .preview-function-note { color: #596975 !important; }

/* Qualification files are intentionally compact and closed on initial view. */
.certificate-disclosure { margin-top: 18px; border: 1px solid #d4dfe7; }
.certificate-disclosure > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; padding: 17px 20px; background: #f1f5f8; cursor: pointer; list-style: none; color: #284b65; }
.certificate-disclosure > summary::-webkit-details-marker { display: none; }
.certificate-disclosure > summary strong { font-size: 17px; }
.certificate-disclosure > summary small { font-size: 13px; color: var(--text-secondary); }
.certificate-disclosure > summary::after { content: "展开文件"; margin-left: auto; color: #155f9e; font-size: 14px; }
.certificate-disclosure[open] > summary::after { content: "收起文件"; }
.certificate-disclosure .certificate-grid { gap: 18px; padding: 20px; }
.certificate-disclosure .certificate-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 5px 14px; padding: 12px; text-align: left; }
.certificate-disclosure .certificate-card > a { grid-row: 1 / 4; }
.certificate-disclosure .certificate-card img { width: 88px; height: 126px; margin: 0; }
.certificate-disclosure .certificate-card h3 { font-size: 17px; line-height: 1.65; }
.certificate-disclosure .certificate-card p { font-size: 13px; margin: 0; line-height: 1.85; color: var(--text-secondary); }

/* Real contact QR codes replace unfinished WeChat/account placeholders. */
.footer-grid { grid-template-columns: minmax(0, 1fr) 150px 226px; gap: 36px; }
.footer-info p { font-size: 14px; line-height: 2; }
.footer-info .footer-company { font-size: 18px; line-height: 1.8; font-weight: 700; }
.footer-links { display: block; }
.footer-links h2 { font-size: 16px; }
.footer-links a { font-size: 14px; line-height: 2.5; }
.footer-qr { gap: 20px; align-items: start; }
.footer-qr figure { width: 103px; }
.footer-qr a { display: block; }
.footer-contact-code { display: block; width: 96px; height: 96px; background: white; }
.footer-qr figcaption { font-size: 12px; line-height: 1.8; max-width: 103px; }
.footer-legal, .proof-note { font-size: 12px; line-height: 1.9; }
.cnas-service-rail .rail-item, .cnas-service-rail .rail-toggle { font-family: var(--font-site); }

@media (max-width: 1190px) {
  .identity { gap: 18px; }
  .identity-copy { padding-left: 18px; }
  .wordmark { width: 164px; }
  .company-name { font-size: 22px; }
  .identity-copy small { font-size: 12px; }
  .utility { font-size: 12px; gap: 12px; }
  .hotline strong { font-size: 19px; }
  .nav-menu > li > a { font-size: 15px; }
  .home-news li { font-size: 15px; }
  .certificate-disclosure .certificate-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) 226px; gap: 22px 30px; }
  .footer-links { grid-column: 1; }
  .footer-qr { grid-column: 2; grid-row: 1 / 3; }
}
@media (min-width: 721px) and (max-width: 950px) {
  .identity { gap: 14px; }
  .identity-copy { padding-left: 14px; }
  .wordmark { width: 146px; }
  .company-name { font-size: 19px; }
  .identity-copy small { font-size: 12px; }
  .header-tools { max-width: 160px; }
  .hotline strong { font-size: 17px; }
  .utility { font-size: 12px; }
  .nav-menu > li > a { font-size: 14px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead { min-height: 102px; gap: 10px; }
  .identity { display: block; }
  .wordmark { width: 156px; }
  .identity-copy { padding-left: 0; margin-top: 6px; }
  .company-name { display: none; }
  .identity-copy small { font-size: 12px; line-height: 1.6; letter-spacing: 0; }
  .hotline strong { font-size: 17px; letter-spacing: 0; }
  .mobile-menu { min-height: 46px; }
  .mobile-menu button { font-size: 15px; }
  .nav-mobile-report { font-size: 14px; }
  .nav-menu > li > a { font-size: 15px; }
  .institution-strip h1 { font-size: 23px; line-height: 1.6; }
  .institution-strip p { font-size: 13px; }
  .page-intro h1 { font-size: 25px; }
  .page-intro p { font-size: 14px; line-height: 1.9; }
  .breadcrumbs { font-size: 12px; }
  .side-mobile summary, .side-mobile nav a { font-size: 14px; }
  .panel-title h2, .online-panel h2, .section-heading { font-size: 21px; }
  .news-tabs button { font-size: 18px; }
  .home-news li { font-size: 15px; line-height: 1.9; }
  .home-news time { font-size: 12px; }
  .business-item h3 { font-size: 18px; }
  .business-item p, .online-panel small { font-size: 14px; }
  .lab-directory a, .market-directory a { font-size: 14px; }
  .market-directory small { font-size: 12px; }
  .intro-panel p, .content-section > p, .article-body > p { font-size: 16px; line-height: 1.95; }
  .home-certificates img { height: 112px; }
  .catalog-item h2 { font-size: 20px; }
  .catalog-item p, .catalog-item ul { font-size: 15px; }
  .catalog-item .project-links li { font-size: 14px; }
  .values-grid p, .process-grid p, .process-list p { font-size: 15px; }
  .article-layout .page-intro h1 { font-size: 24px; line-height: 1.65; }
  .article-meta { font-size: 12px; }
  .article-body { font-size: 16px; line-height: 1.95; }
  .article-body h2 { font-size: 21px; }
  .article-body table { font-size: 14px; }
  .document-list a { font-size: 17px; }
  .document-description p, .document-list p { font-size: 14px; }
  .document-list time { font-size: 12px; }
  .report-query-row input, .form-preview input, .form-preview textarea { font-size: 16px; }
  .certificate-disclosure > summary { padding: 14px; }
  .certificate-disclosure > summary strong { font-size: 16px; }
  .certificate-disclosure > summary small { flex-basis: 100%; order: 2; }
  .certificate-disclosure > summary::after { font-size: 13px; }
  .certificate-disclosure .certificate-grid { display: grid; padding: 14px; }
  .certificate-disclosure .certificate-card { margin: 0; }
  .footer-grid { display: block; }
  .footer-info p { font-size: 13px; }
  .footer-info .footer-company { font-size: 16px; }
  .footer-links a { font-size: 13px; }
  .footer-qr { display: flex; }
  .footer-legal, .proof-note { font-size: 12px; }
}
@media (max-width: 360px) {
  .masthead { gap: 8px; }
  .wordmark { width: 142px; }
  .identity-copy small { font-size: 11px; }
  .hotline strong { font-size: 15px; }
}

/* Keep the approved desktop menu; expose the language link inside the mobile menu. */
.nav-menu > .cms-mobile-language-item { display: none; }
@media (max-width: 720px) {
  .nav-menu > .cms-mobile-language-item {
    display: list-item;
    grid-column: 1 / -1;
    border-top: 1px solid #d7e2eb;
  }
  .nav-menu > .cms-mobile-language-item > a {
    min-height: 44px;
    color: #fff;
  }
  .nav-menu > .cms-mobile-language-item > a:hover,
  .nav-menu > .cms-mobile-language-item > a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
