:root {
  color-scheme: light;
  --ink: #132f35;
  --muted: #486167;
  --teal: #0e6259;
  --teal-dark: #0a473f;
  --tint: #eaf4ef;
  --paper: #f5f8f6;
  --line: #cddbd6;
  --amber: #79430d;
  --amber-paper: #fff4e3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
a { color: var(--teal-dark); text-underline-offset: .16em; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 2px solid #127b70; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 2; top: .5rem; left: .75rem; background: white; padding: .65rem .95rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.shell { width: min(95%, 87rem); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: .85rem; min-height: 4.3rem; padding: .55rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; padding: .24rem; display: grid; grid-template-columns: 1fr 1fr; gap: .18rem; border: 1px solid var(--teal); border-radius: .28rem; }
.brand-mark i { display: block; border: 1px solid var(--teal); border-radius: 1px; }
.brand-mark i:nth-child(3) { background: var(--teal); }
.language-field, .sort-field { display: flex; align-items: center; gap: .55rem; }
.language-field label, .sort-field label { font-size: .88rem; font-weight: 600; color: var(--muted); }
select, input[type="search"] { min-height: 2.62rem; border: 1px solid #a8bfba; border-radius: .42rem; background-color: #fff; color: var(--ink); padding: .4rem .65rem; width: 100%; min-width: 0; }
select { appearance: none; padding-right: 1.75rem; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%); background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.language-field select { min-width: 7.9rem; }
.introduction { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; padding: clamp(1.55rem, 3vw, 2.9rem) 0 1.5rem; }
.introduction h1 { font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: clamp(2rem, 4.1vw, 3.35rem); font-weight: 600; line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
.introduction [lang="zh-Hans"], html[lang="zh-Hans"] .introduction h1 { letter-spacing: 0; }
.introduction p { margin-top: .55rem; color: var(--muted); }
.catalog-scope { flex: 0 0 auto; padding: .38rem .68rem; border: 1px solid var(--line); border-radius: .38rem; font-size: .9rem; font-weight: 650; color: var(--teal-dark) !important; font-variant-numeric: tabular-nums; }
.catalog-scope:empty { display: none; }
.workspace { display: grid; grid-template-columns: minmax(17.9rem, 21.4rem) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 2.4vw, 2.15rem); padding-top: 1.15rem; border-top: 1px solid var(--line); }
.filters { background: #fff; border: 1px solid var(--line); border-radius: .55rem; padding: .95rem; min-width: 0; }
.filter-heading, .results-header, .selection-header { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.filter-heading h2, .results-header h2 { font-size: 1.31rem; letter-spacing: -.02em; }
.text-button { border: 0; background: none; color: var(--teal-dark); padding: .16rem 0; text-align: left; font-size: .88rem; text-decoration: underline; text-underline-offset: .15em; font-weight: 640; }
.text-button:hover:not(:disabled) { color: #041e19; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field { display: grid; gap: .25rem; margin-top: .65rem; }
.field label { font-size: .88rem; font-weight: 650; }
.field input::placeholder { color: #617471; opacity: 1; }
.secondary-filters { border-top: 1px solid var(--line); margin-top: .85rem; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.secondary-filters summary, .package-details summary { display: flex; align-items: center; justify-content: space-between; gap: .45rem; color: var(--teal-dark); font-weight: 675; padding: .64rem 0; }
.secondary-filters summary::after, .package-details summary::after { content: '+'; font: 1.25rem/1 system-ui; flex: 0 0 auto; }
.secondary-filters[open] summary::after, .package-details[open] summary::after { content: '−'; }
.secondary-filters summary { font-size: .9rem; }
.more-filter-fields { padding-bottom: .7rem; }
.more-filter-fields .field:first-child { margin-top: 0; }
.required-tests { border-top: 1px solid var(--line); padding-top: .88rem; }
.required-tests h2 { font-size: 1.13rem; }
.field-help { font-size: .89rem; color: var(--muted); margin-top: .22rem; }
.selection-header { margin: .9rem 0 .28rem; font-size: .9rem; color: var(--teal-dark); font-weight: 650; }
.selected-items { display: flex; flex-wrap: wrap; gap: .33rem; }
.selected-items:not(:empty) { margin-bottom: .6rem; }
.selected-item { min-height: 2rem; display: inline-flex; align-items: center; gap: .36rem; max-width: 100%; border: 1px solid #a3c7ba; border-radius: .35rem; color: var(--teal-dark); background: var(--tint); font-size: .86rem; padding: .21rem .4rem; text-align: left; overflow-wrap: anywhere; }
.selected-item:hover { background: #dcefe5; }
.item-options { max-height: 19rem; overflow: auto; scrollbar-gutter: stable; border: 1px solid var(--line); border-radius: .38rem; }
.item-options:empty { display: none; }
.item-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; padding: .48rem .47rem; cursor: pointer; font-size: .91rem; }
.item-option + .item-option { border-top: 1px solid #dce7e2; }
.item-option:focus-within, .item-option:hover { background-color: #f1f7f4; }
.item-option:has(input:checked) { background-color: var(--tint); }
.item-option input { margin: .19rem 0 0; width: 1rem; height: 1rem; accent-color: var(--teal); }
.item-option-content, .paired { min-width: 0; overflow-wrap: anywhere; }
.paired { display: block; }
.original { display: block; color: var(--muted); font-size: .83em; font-weight: 440; margin-top: .17rem; line-height: 1.42; }
.item-options-count { margin-top: .52rem; font-size: .84rem; color: var(--muted); }
.more-tests { display: inline-block; margin-top: .24rem; }
.mobile-results { display: none; }
.results { min-width: 0; }
.results-header { align-items: center; margin-bottom: .75rem; }
.result-count { color: var(--muted); font-size: .9rem; margin-top: .12rem; font-variant-numeric: tabular-nums; }
.sort-field select { min-width: 10rem; width: auto; max-width: 16rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; align-items: start; }
.card { border: 1px solid var(--line); border-radius: .55rem; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.card-head { padding: .95rem .96rem 0; }
.provider { display: block; color: var(--teal-dark); font-size: .88rem; font-weight: 710; }
.provider-campus { display: block; color: var(--muted); font-size: .8rem; margin-top: .12rem; }
.package-title { margin: .52rem 0 .5rem; font-size: 1.12rem; line-height: 1.34; font-weight: 710; letter-spacing: -.01em; }
.package-title .original { font-size: .78em; letter-spacing: 0; }
.audience { font-size: .87rem; color: var(--muted); margin-bottom: .48rem; }
.price-line { display: flex; align-items: baseline; gap: .4rem; white-space: nowrap; }
.price-value { font-size: 1.42rem; font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.currency { color: var(--muted); font-size: .79rem; font-weight: 630; letter-spacing: .03em; }
.price-pending { display: inline-block; color: var(--amber); background: var(--amber-paper); border: 1px solid #ebd5b3; border-radius: .24rem; padding: .13rem .35rem; margin-top: .35rem; font-size: .86rem; font-weight: 650; }
.package-details { margin: .75rem .96rem 0; border-top: 1px solid var(--line); }
.package-details summary { font-size: .94rem; }
.details-body { padding-bottom: .8rem; }
.detail-heading { color: var(--muted); font-size: .82rem; font-weight: 650; margin-bottom: .34rem; }
.item-list { margin: 0; padding: 0; list-style: none; }
.detail-item { padding: .42rem 0 .45rem; border-top: 1px dotted var(--line); font-size: .92rem; }
.item-note { display: block; margin-top: .28rem; padding-left: .59rem; border-left: 2px solid #c5ddd2; font-size: .83rem; color: var(--muted); white-space: pre-line; }
.item-note .original { font-size: .95em; }
.source-note-list { margin: .7rem 0 0; display: grid; gap: .5rem; }
.source-note-list dt { color: var(--muted); font-weight: 650; font-size: .83rem; }
.source-note-list dd { margin: .12rem 0 0; color: var(--muted); font-size: .85rem; white-space: pre-line; }
.detail-section { margin-top: .75rem; }
.card-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; border-top: 1px solid var(--line); background: #f3f7f5; padding: .55rem .96rem; font-size: .86rem; color: var(--muted); border-radius: 0 0 .5rem .5rem; }
.card-footer a { font-weight: 630; }
.message { margin-bottom: .8rem; background: #fff; border: 1px solid var(--line); border-radius: .48rem; padding: 1rem; color: var(--muted); }
.message h3 { color: var(--ink); font-size: 1.1rem; }
.message p { margin-top: .3rem; }
.message .button { margin-top: .75rem; }
.button { min-height: 2.57rem; padding: .42rem .8rem; border: 1px solid var(--teal); border-radius: .4rem; background: var(--teal); color: white; font-weight: 650; }
.button:hover { background: var(--teal-dark); }
.pager { display: flex; justify-content: center; padding-top: .88rem; }
.catalog-note { border-top: 1px solid var(--line); margin-top: 1.8rem; padding: 1.08rem 0 2rem; color: var(--muted); }
.catalog-note h2 { color: var(--ink); font-size: 1rem; }
.catalog-note p { max-width: 72ch; margin-top: .33rem; font-size: .9rem; }
@media (max-width: 72rem) {
  .workspace { grid-template-columns: minmax(17rem, 19rem) minmax(0, 1fr); }
}
@media (max-width: 56rem) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 1.4rem); }
  .brand { font-size: .94rem; gap: .45rem; }
  .masthead { min-height: 3.7rem; }
  .language-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .language-field select { min-width: 7.1rem; }
  .introduction { flex-direction: column; align-items: flex-start; gap: .55rem; padding-bottom: 1rem; }
  .catalog-scope { margin-top: 0 !important; }
  .workspace { display: block; }
  .filters { padding: .8rem .85rem; margin-bottom: 1.08rem; }
  .item-options { max-height: 12rem; }
  .mobile-results { display: inline-block; margin-top: .65rem; font-size: .9rem; font-weight: 650; }
  .results-header { gap: .38rem; }
  .sort-field { gap: .3rem; }
  .sort-field select { min-width: 0; max-width: 10rem; font-size: .86rem; }
  .sort-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cards { grid-template-columns: minmax(0,1fr); }
}
