:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #24342b;
  background: #f6f8f6;
  --muted: #68786d;
  --line: #dfe7e0;
  --green: #285d43;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #81ad94; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 16px; z-index: 5; padding: 12px 18px; background: white; border-radius: 8px; }
.site-header { max-width: 1440px; margin: auto; min-height: 78px; padding: 18px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; letter-spacing: -1.1px; }
.brand img { display: block; }
.site-header nav { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.site-header nav a { padding: 9px 12px; border-radius: 7px; transition: color .16s, background .16s; white-space: nowrap; }
.site-header nav a:hover { background: #eaf0eb; color: var(--green); }
.site-header nav a[aria-current] { color: var(--green); font-weight: 600; background: #e8f0e9; }
main { max-width: 1440px; margin: auto; padding: 0 40px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 38px 0 30px; }
.intro h1 { font-size: 32px; line-height: 1.35; letter-spacing: -.9px; font-weight: 650; margin: 0 0 10px; }
.intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.intro .summary { color: #53715e; font-size: 12px; font-variant-numeric: tabular-nums; padding-bottom: 3px; }
.catalog-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 30px; padding-bottom: 48px; align-items: start; }
.filters { min-width: 0; position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow: auto; scrollbar-width: thin; padding-right: 2px; }
.filter-toggle, .filter-apply { display: none; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 12px; margin-bottom: 15px; }
.filter-heading h2 { font-size: 14px; font-weight: 600; margin: 0; }
.filter-heading button { border: 0; background: none; padding: 8px; font-size: 12px; color: var(--muted); border-radius: 6px; }
.filter-heading button:hover { color: var(--green); background: #e7eee8; }
fieldset { margin: 0 0 23px; padding: 0; border: 0; min-width: 0; }
legend { display: block; float: none; width: auto; font-size: 11px; font-weight: 600; letter-spacing: .2px; color: #7a887f; margin-bottom: 7px; padding: 0; }
fieldset > div { display: grid; gap: 3px; }
.filter-option { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 35px; padding: 7px 9px; border-radius: 7px; color: #53665a; cursor: pointer; font-size: 12px; line-height: 20px; transition: background .16s, color .16s; }
.filter-option:hover { background: #eaf0eb; }
.filter-option:has(input:checked) { background: #e5eee6; color: var(--green); font-weight: 600; }
.filter-option input { margin: 0; width: 14px; height: 14px; flex: 0 0 14px; accent-color: var(--green); }
.filter-option > span:not(.filter-count) { min-width: 0; overflow-wrap: anywhere; }
.filter-count { margin-left: auto; padding-left: 5px; color: #85968a; font-size: 11px; font-variant-numeric: tabular-nums; }
.filter-note { margin: 6px 8px 0; font-size: 11px; line-height: 1.85; color: #839087; }
.results { min-width: 0; }
.results { scroll-margin-top: 16px; }
.result-toolbar { display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; display: flex; flex: 1; min-width: 0; align-items: center; border: 1px solid #d5e0d7; border-radius: 9px; background: white; color: #8a9b8e; transition: border-color .16s, box-shadow .16s; }
.search-box:focus-within { border-color: #7aab8c; box-shadow: 0 0 0 3px #366e4710; }
.search-box > svg { flex: 0 0 18px; margin-left: 14px; }
input[type=search] { width: 100%; min-width: 0; border: 0; background: transparent; padding: 12px 38px 12px 10px; color: #2e4536; font-size: 13px; line-height: 20px; border-radius: 9px; outline: none; appearance: none; }
input[type=search]::-webkit-search-cancel-button { appearance: none; }
input::placeholder { color: #90a095; }
.clear-search { position: absolute; right: 7px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #7b8d80; font-size: 21px; }
.clear-search:hover { background: #eef3ed; color: #355c40; }
.sort-field { display: flex; align-items: center; gap: 9px; padding: 0 10px 0 13px; height: 46px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; background: #fff; white-space: nowrap; }
.sort-field select { padding: 7px 2px; border: 0; background: transparent; color: #334e3e; font-size: 12px; max-width: 130px; cursor: pointer; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 14px; }
.active-filter-label { min-width: 0; color: inherit; font-size: 11px; }
.active-filter { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 9px; color: #386549; background: #e8f0e8; border: 1px solid #d6e3d7; border-radius: 6px; font-size: 11px; overflow-wrap: anywhere; text-align: left; }
.active-filter:hover { border-color: #97b39e; background: #e0eadf; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; font-size: 12px; color: var(--muted); }
.result-heading p { margin: 0; font-variant-numeric: tabular-nums; }
.result-heading > span { color: #8c998f; font-size: 11px; }
.model-grid, .loading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.model-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 21px 20px 17px; min-height: 277px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .18s, box-shadow .18s, transform .18s; }
.model-card:hover { border-color: #a6bead; box-shadow: 0 6px 18px #305b3c09; transform: translateY(-2px); }
.model-card:focus-within { border-color: #7ba28a; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.model-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #edf3ec; color: #537b60; font-size: 11px; font-weight: 650; }
.type-tag { font-size: 10px; color: #87978b; }
.model-card h2 { font-size: 16px; line-height: 1.5; margin: 15px 0 3px; font-weight: 600; letter-spacing: -.2px; }
.card-title-button { padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.card-title-button::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 11px; }
.card-title-button:focus-visible { outline: none; }
.card-title-button:focus-visible::after { outline: 3px solid #81ad94; outline-offset: 3px; }
.model-id { margin: 0; color: #7f9084; font: 11px/1.8 ui-monospace, SFMono-Regular, monospace; overflow-wrap: anywhere; }
.model-id-row { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.model-id-row > .model-id { position: relative; z-index: 2; min-width: 0; user-select: text; }
.copy-id-button { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 28px; padding: 2px 0 2px 5px; border: 0; border-radius: 3px; color: #7c9082; background: none; font-size: 11px; line-height: 1.8; text-align: left; overflow-wrap: anywhere; }
.model-id-row > .copy-id-button { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.copy-id-button:hover, .copy-id-button.is-copied { color: var(--green); }
.card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; margin: 12px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.card-price { margin: auto 0 7px; color: #315d40; font-size: 15px; font-weight: 600; letter-spacing: -.2px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.provider-names { margin: 0 0 13px; color: #809086; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #eef2ed; padding-top: 12px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 4px; background: #eff5ef; color: #568160; font-size: 10px; line-height: 17px; white-space: nowrap; }
.status::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.status.closed { color: #95876b; background: #f7f3eb; }
.details-button { position: relative; z-index: 2; padding: 5px 0 5px 7px; border: 0; background: none; color: #497856; font-size: 11px; }
.details-button:hover { color: #244d34; text-decoration: underline; text-underline-offset: 3px; }
.details-label { color: #5f8168; font-size: 12px; line-height: 20px; text-align: right; }
.model-card:hover .details-label { color: #2d613c; }
.price-status { color: #9a8563; font-weight: 500; }
.provider-empty { color: var(--muted); font-size: 12px; }
.secondary { padding: 9px 14px; background: white; border: 1px solid #d8e3d9; border-radius: 7px; font-size: 12px; line-height: 20px; color: #48644f; }
.secondary:hover { background: #f0f5ef; border-color: #a8c0ae; }
.error { padding: 18px; margin: 0 0 12px; background: #faf3ee; border: 1px solid #ead8c9; border-radius: 8px; color: #955c35; font-size: 13px; line-height: 1.8; }
.retry { margin-bottom: 20px; }
.empty { padding: 58px 20px 62px; border: 1px dashed #d5e1d7; border-radius: 11px; text-align: center; }
.empty-icon { color: #98b09d; font-size: 36px; line-height: 1; margin-bottom: 15px; }
.empty h2 { font-size: 16px; font-weight: 600; margin: 0 0 9px; }
.empty p { font-size: 12px; color: var(--muted); margin: 0 0 23px; }
.model-skeleton { height: 277px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(100deg, #eaf0e9 30%, #f2f5f0 50%, #eaf0e9 70%); background-size: 250% 100%; animation: loading 1.6s ease infinite; }
@keyframes loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
footer { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding: 24px 0 34px; font-size: 10px; line-height: 1.9; color: #89978c; }
footer p { max-width: 680px; margin: 0 auto 0 0; }
footer a:hover { color: var(--green); text-decoration: underline; }
dialog { width: min(820px, calc(100% - 40px)); max-height: min(90dvh, 920px); padding: 0; overflow: hidden; border: 1px solid #d8e2d8; border-radius: 16px; color: inherit; background: #fbfdfb; box-shadow: 0 24px 90px #1f3b2726; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #14251a66; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.detail-heading { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 24px 28px 21px; border-bottom: 1px solid var(--line); background: #fbfdfb; }
.eyebrow { font-size: 11px; font-weight: 500; color: #6c8873; margin: 0 0 7px; }
.detail-heading h2 { font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -.7px; margin: 0 0 5px; }
.detail-heading .model-id { color: #84978a; }
.close { flex: 0 0 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: #edf2ed; color: #67856e; font-size: 26px; line-height: 30px; }
.close:hover { background: #e0eae0; color: #31533c; }
.detail-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 28px 26px; }
#detail-summary { margin: 22px 0 20px; font-size: 13px; color: var(--muted); line-height: 1.95; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 12px; }
.detail-actions .primary { padding: 10px 16px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: white; line-height: 20px; }
.detail-actions .primary:hover { background: #1f4f37; }
.detail-actions > a:not(.primary) { padding: 10px 5px; color: #687e6c; }
.detail-actions > a:not(.primary):hover { color: var(--green); text-decoration: underline; }
.detail-actions .primary[aria-disabled=true] { color: #738176; background: #e8eee8; border-color: #e8eee8; pointer-events: none; }
.detail-pricing, .providers-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 20px; }
.detail-body h3 { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.7; }
#detail-price { margin: 0; color: var(--green); font-size: 15px; font-weight: 600; line-height: 1.7; font-variant-numeric: tabular-nums; }
.section-note { font-size: 11px; line-height: 1.8; color: #8a9a8f; margin: 6px 0 15px; }
.provider-table { width: 100%; margin: 0; border-collapse: collapse; text-align: left; font-size: 12px; }
.provider-table th, .provider-table td { padding: 11px 13px; border-bottom: 1px solid #e7eee6; vertical-align: top; line-height: 1.8; overflow-wrap: anywhere; }
.provider-table th { background: #edf3ec; color: #7b8f80; font-size: 11px; font-weight: 500; }
.provider-table th:first-child { width: 60%; border-radius: 6px 0 0 6px; }
.provider-table th:last-child { border-radius: 0 6px 6px 0; }
.provider-table td:last-child { font-variant-numeric: tabular-nums; color: #456a4e; }
.provider-row { padding: 15px 0; border-bottom: 1px solid #e7eee6; }
.provider-row:last-child { border-bottom: 0; padding-bottom: 0; }
.provider-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.provider-row h3 { font-size: 13px; }
.observation { margin: 10px 0 0; color: #819287; font-size: 11px; line-height: 1.9; }
.observation.warning { color: #a07d4a; }
.spec-details { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.spec-details summary { cursor: pointer; color: #718b78; font-size: 11px; line-height: 24px; }
pre { overflow: auto; max-height: 330px; padding: 16px; border-radius: 8px; background: #edf3eb; color: #69816d; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.8 ui-monospace, SFMono-Regular, monospace; }
.detail-footnote { margin: 23px 0 0; color: #8d9c92; font-size: 10px; line-height: 1.9; }
.toast { position: fixed; z-index: 6; bottom: 24px; left: 50%; max-width: calc(100vw - 32px); transform: translateX(-50%); padding: 12px 18px; border-radius: 8px; background: #2b4b35; box-shadow: 0 8px 24px #23482c18; color: white; font-size: 12px; line-height: 1.7; }
@media (max-width: 1160px) {
  .model-grid, .loading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 22px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 760px) {
  .site-header { padding: 15px 20px; min-height: 70px; gap: 15px; flex-wrap: wrap; }
  .brand { font-size: 22px; }
  .site-header nav { gap: 3px; font-size: 11px; flex-wrap: wrap; }
  .site-header nav a { padding: 7px 8px; }
  main { padding: 0 20px; }
  .intro { padding: 27px 0 22px; gap: 13px; }
  .intro h1 { font-size: 28px; margin-bottom: 7px; }
  .intro p { font-size: 12px; }
  .intro .summary { font-size: 11px; }
  .catalog-layout { display: flex; flex-direction: column; gap: 13px; padding-bottom: 34px; }
  .filters { position: static; width: 100%; max-height: none; overflow: visible; padding: 0; }
  .filter-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #edf3ed; color: #4e7159; font-size: 12px; }
  .filter-caret { margin-left: auto; width: 6px; height: 6px; border: solid #7b9481; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  .filter-toggle[aria-expanded=true] .filter-caret { transform: rotate(225deg); }
  .filter-badge { min-width: 18px; padding: 1px 5px; border-radius: 4px; background: #dce9df; font-size: 10px; }
  #filter-panel { display: none; }
  .filters.is-open #filter-panel { display: block; margin-top: 8px; padding: 9px 12px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .filter-heading { margin-bottom: 12px; }
  .filter-heading h2 { font-size: 13px; }
  fieldset { margin-bottom: 16px; }
  fieldset > div { display: flex; flex-wrap: wrap; gap: 5px 8px; }
  .filter-option { padding: 7px 9px; min-height: 37px; border: 1px solid #e7eee6; }
  .filter-count { padding-left: 3px; margin-left: 5px; }
  .filter-note { margin: 2px 0 0; }
  .filter-apply { display: block; width: 100%; margin-top: 14px; padding: 11px 14px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: #fff; font-size: 12px; line-height: 20px; }
  .results { width: 100%; }
  .result-toolbar { gap: 8px; }
  .search-box > svg { margin-left: 11px; }
  input[type=search] { padding-left: 8px; font-size: 12px; }
  .sort-field { padding: 0 8px; }
  .sort-field > span { display: none; }
  .sort-field select { font-size: 11px; max-width: 100px; }
  .result-heading { min-height: 48px; }
  .model-grid, .loading-grid { gap: 11px; }
  .model-card { padding: 18px; min-height: 266px; }
  footer { gap: 8px 18px; padding: 20px 0 28px; }
  footer p { width: 100%; }
  dialog { width: calc(100% - 24px); max-height: 92dvh; border-radius: 13px; }
  .detail-heading { padding: 19px 18px 17px; }
  .detail-heading h2 { font-size: 22px; }
  .detail-body { padding: 0 18px 23px; }
  #detail-summary { font-size: 12px; }
  .detail-actions { gap: 8px; }
  .provider-table { font-size: 11px; }
  .provider-table th, .provider-table td { padding: 10px 8px; }
  #detail-price { font-size: 13px; }
}
@media (max-width: 580px) {
  .model-grid, .loading-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 250px; }
  .card-description { -webkit-line-clamp: 2; margin-bottom: 17px; }
  .card-price { font-size: 15px; }
  .model-card h2 { font-size: 16px; }
  .result-heading > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
