/* Chinese interface type. The stylesheet is linked for screen media only. */
:root {
  --dhj-zh-design: 1;
  --dhj-ui: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --dhj-title: clamp(1.75rem, 1.26rem + 1.65vw, 2.5rem);
  --dhj-section: clamp(1.1875rem, 1.08rem + .48vw, 1.5rem);
  --dhj-card: 1.125rem;
  --dhj-body: 1rem;
  --dhj-control: max(14px, .875rem);
  --dhj-meta: max(13px, .8125rem);
}
/* Apply to interface elements, leaving passages, code editors, game canvases
   and handwriting previews under the control of their own renderers. */
html:lang(zh) :where(nav, .site-header, .topbar, .control-label, .filter-title, .eyebrow,
  .search-box, .library-card, .tool-card, .intro, .download-panel, .results-heading,
  .destination__label, .account-form, .form-links, .page-footer, .learning-hub-footer) {
  font-family: var(--dhj-ui);
}
html:lang(zh) :is(.intro h1, .hero h1, .page-heading h1, .library-hero h1, .library-intro h1,
  .subject-heading h1, .section-heading h2, .group-heading h2, .tool-card h3,
  .destination__title, .library-card h2, .library-card h3, .results-heading h2) {
  font-family: var(--dhj-ui);
  letter-spacing: normal;
  line-height: 1.4;
  font-weight: 650;
  line-break: strict;
}
html:lang(zh) :is(.eyebrow,.control-label,.filter-title,.card-label,.q-source,.group-note) {
  font-family: var(--dhj-ui);
  font-size: var(--dhj-meta);
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
}
html:lang(zh) :is(.intro > p,.hero > p,.tool-card p,.library-card p,.destination__description,.subtitle) {
  line-height: 1.75;
  letter-spacing: normal;
  line-break: strict;
}
html:lang(zh) :is(.count, .results-summary, .paper-meta, .bank-facts, .success, .score-summary, time) {
  font-variant-numeric: tabular-nums;
}
html:lang(zh) :is(.filter, .size-button, .page-button, .reset, .module-link, .mock-link,
  .library-action, .header-tool, .offer-link, .filter-bar select, .controls select, .search-box input) {
  font-family: var(--dhj-ui);
  font-size: var(--dhj-control);
  line-height: 1.5;
  letter-spacing: normal;
}
html:lang(zh) :is(.offer-caption,.access-note,.access-legend,.search-note,.search-hint,.results-summary,.bank-total,.group-note) {
  font-size: var(--dhj-meta);
  line-height: 1.65;
}
html:lang(zh) :is(.site-header nav a, .jump-nav a, .footer-links a, .learning-hub-footer nav a) {
  font: 500 var(--dhj-control)/1.55 var(--dhj-ui);
  letter-spacing: normal;
}
@media (max-width: 640px) {
  html:lang(zh) :is(.size-button,.page-button,.filter,.module-link,.mock-link,.library-action) {min-block-size: 36px;}
  html:lang(zh) :is(input[type=search], .account-form input:not([type=checkbox]):not([type=radio])) {font-size: 1rem;}
}

html:lang(zh) main:has(> .cards) > header h1,html:lang(zh) .map-hero h1 {font:650 var(--dhj-title)/1.4 var(--dhj-ui);letter-spacing:0;}
html:lang(zh) main > .cards {gap:14px;margin-block:24px;}
html:lang(zh) .cards .card {padding:20px 22px;border-radius:10px;}
html:lang(zh) .cards .card > .number {display:none;}
html:lang(zh) .cards .card h2 {font:600 var(--dhj-section)/1.5 var(--dhj-ui);letter-spacing:0;margin-block:0 5px;}
html:lang(zh) .cards .card p,html:lang(zh) .doc-article > p {font:400 var(--dhj-body)/1.8 var(--dhj-ui);}
html:lang(zh) :is(.lesson-row,.course-row,.objective-block,.nav-group) :is(strong,small,h2) {font-family:var(--dhj-ui);letter-spacing:0;line-height:1.55;}
html:lang(zh) .nav-group h2,html:lang(zh) .lesson-row small {font-size:var(--dhj-meta);}
@media(max-width:640px) {html:lang(zh) main > .cards {gap:10px;}html:lang(zh) .cards .card {padding:16px;}}
