/* 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(.tool-section) {padding-block:clamp(24px,3vw,42px);}
html:lang(zh) main:has(.tool-section) .intro {margin-bottom:22px;}
html:lang(zh) main:has(.tool-section) .intro h1,
html:lang(zh) .hero:has(.bank-facts) h1,
html:lang(zh) main:has(.paper-row) > h1,
html:lang(zh) main#main.intro h1 {font:650 var(--dhj-title)/1.4 var(--dhj-ui);letter-spacing:0;}
html:lang(zh) .tool-section .section-heading h2 {font-size:var(--dhj-section);}
html:lang(zh) .tool-section .tool-card {padding:18px 20px;border-radius:10px;}
html:lang(zh) .tool-section .tool-card h3 {font-size:var(--dhj-card);margin-bottom:5px;}
html:lang(zh) .tool-section .tool-card p {font-size:15px;max-width:38em;}
html:lang(zh) .panel.controls .subject-tab {font:600 16px/1.5 var(--dhj-ui);}
html:lang(zh) .panel.controls .subject-tab .count {font:400 var(--dhj-meta)/1.6 var(--dhj-ui);white-space:normal;}
html:lang(zh) .panel.controls .search-field #search {font:400 15px/1.5 var(--dhj-ui);}
html:lang(zh) .results-heading h2 {font-size:var(--dhj-section);}
html:lang(zh) .results-heading :is(p,.sort-note), html:lang(zh) .download-panel .download-note,
html:lang(zh) .question-card .q-footer, html:lang(zh) .question-card .success span {font:400 var(--dhj-meta)/1.65 var(--dhj-ui);}
html:lang(zh) .download-panel .download-heading {font:600 16px/1.55 var(--dhj-ui);}
html:lang(zh) .question-card .rank small {font:500 12px/1.5 var(--dhj-ui);letter-spacing:0;}
html:lang(zh) .download-actions .download-link, html:lang(zh) .question-card .q-open {font:600 var(--dhj-control)/1.5 var(--dhj-ui);}
html:lang(zh) .paper-row :is(.paper-name,.paper-title), html:lang(zh) .paper-group h2 {font-family:var(--dhj-ui);line-height:1.55;letter-spacing:0;}
@media(max-width:640px) {
  html:lang(zh) .page:has(.tool-section) .site-header {padding-block:14px;gap:10px;}
  html:lang(zh) .panel.controls .subject-tab {padding:9px 6px;font-size:14px;}
  html:lang(zh) .panel.controls .subject-tab .count {font-size:12px;}
  html:lang(zh) .panel.controls .search-field #search {font-size:16px;}
  html:lang(zh) .question-card .q-open {padding-block:5px;}
}
