/* Internal read-only preview. No external font, image or stylesheet requests. */
:root { color-scheme: light; --ink: #263930; --muted: #596d60; --line: #dce5da; --accent: #24694c; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f8f4; color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: #19634a; text-decoration: none; }
a:hover { color: #124a36; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #216e55; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.preview-banner { padding: 7px 24px; background: #f9ebd2; border-bottom: 1px solid #efd7af; color: #664815; text-align: center; font-size: 13px; font-weight: 650; }
.site { background: #fff; border-bottom: 1px solid var(--line); }
.site-inner, main, footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #1d4f3d; font-size: 23px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 3px; background: var(--accent); color: white; font-size: 21px; }
.brand-sub { margin-left: 9px; padding-left: 18px; border-left: 1px solid var(--line); color: #68786c; font-size: 13px; font-weight: 500; }
.site nav { font-size: 14px; font-weight: 650; white-space: nowrap; }
.intro { padding: 38px 0 32px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: #206b51; font-size: 13px; font-weight: 750; letter-spacing: .06em; }
h1 { margin: 0; color: #203b30; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; letter-spacing: -.03em; }
.lead { max-width: 760px; margin: 10px 0 23px; color: var(--muted); }
form[role="search"] { width: min(760px, 100%); }
.search-row { display: flex; padding: 5px; background: #fff; border: 1px solid #aabdad; border-radius: 13px; box-shadow: 0 4px 18px #244c3210; }
.search-row:focus-within { border-color: var(--accent); }
input[type="search"] { min-width: 0; flex: 1; border: 0; background: transparent; padding: 10px 14px; color: var(--ink); }
input[type="search"]:focus-visible { outline-offset: -3px; }
button { border: 0; border-radius: 9px; padding: 10px 22px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
button:hover { background: #164e37; }
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; padding: 29px 0 65px; }
.catalog-layout.solo { grid-template-columns: minmax(0, 1fr); }
.facets { align-self: start; }
.filter-toggle { display: none; }
.facets h2, .results h2, .source h2 { margin: 0 0 14px; font-size: 17px; }
.facets section + section { margin-top: 28px; }
.category-list { display: grid; gap: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d7e3d9; border-radius: 8px; background: #fff; padding: 6px 11px; color: #425e4e; font-size: 13px; line-height: 1.45; }
.chip:hover { background: #eff7f0; border-color: #90b5a0; }
.category-list .chip { justify-content: space-between; }
.chip.active { background: #ddefdf; border-color: #89b399; color: #16533b; font-weight: 750; }
.chip span { color: #62736a; }
.more-tags { flex-basis: 100%; }
.more-tags summary { color: #19634a; cursor: pointer; font-size: 13px; font-weight: 700; }
.more-tags summary:focus-visible { outline: 3px solid #216e55; outline-offset: 3px; }
.more-tags .chips { margin-top: 9px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.results-head h2 { margin: 0; }
.results-head span, .count { color: #62736a; font-size: 13px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 13px; font-size: 13px; }
.active-filters span { padding: 3px 8px; border-radius: 5px; background: #eaf2e9; overflow-wrap: anywhere; }
.active-filters a { font-weight: 700; }
.count { margin: 16px 0 0; }
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 16px 0 0; padding: 0; }
.list li { min-width: 0; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 203px; height: 100%; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 10px #244c3208; }
.card:hover, .card:focus-within { border-color: #9abbab; box-shadow: 0 6px 21px #244c3215; }
.card:focus-within { outline: 3px solid #216e55; outline-offset: 3px; }
.type-badge { align-self: start; display: inline-block; border-radius: 5px; background: #e7f0ea; color: #245b43; padding: 2px 8px; font-size: 12px; font-weight: 750; }
.item-title { display: block; margin: 15px 0 5px; color: #1d3d2e; font-size: 18px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.item-title::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
.card-summary { margin: 0 0 16px; color: #566b5e; font-size: 14px; overflow-wrap: anywhere; }
.card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; border-top: 1px solid #eff1eb; padding-top: 10px; color: #637467; font-size: 12px; overflow-wrap: anywhere; }
.card-foot span:last-child { flex: none; color: #19634a; font-weight: 700; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: 14px; }
.pagination a, .pagination span { padding: 6px; }
.pagination span { color: var(--muted); }
.state { margin: 16px 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.state h1, .state h2 { margin: 0; font-size: 23px; }
.state p { color: var(--muted); }
.back { display: inline-block; margin: 26px 0 18px; font-size: 14px; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-bottom: 65px; }
.prompt, .source { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 30px; }
.prompt h1 { margin: 15px 0 9px; font-size: clamp(25px, 3vw, 35px); overflow-wrap: anywhere; }
.summary { margin: 0 0 27px; color: #566b5e; }
.prompt-section { border-top: 1px solid #e1e9df; padding-top: 19px; }
.prompt-section h2 { margin: 0 0 13px; font-size: 18px; }
.sample-figure { margin: 0 0 16px; }
.sample-figure img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.sample-figure figcaption { margin-top: 9px; color: #62736a; font-size: 13px; line-height: 1.5; }
pre.body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 22px; border: 1px solid #dbe7db; border-radius: 10px; background: #f5f8f4; color: #30463b; font: 15px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.copy-row [role="status"] { color: #1d6548; font-size: 13px; }
.feedback-link { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid #9bb8a4; border-radius: 9px; background: #eef5ed; color: #1d533c; font-size: 14px; font-weight: 700; }
.feedback-link:hover { background: #e1efe3; }
.detail-layout:has(+ .feedback) { margin-bottom: 24px; }
.feedback-title { margin: 24px 0 14px; font-size: 28px; }
.feedback { margin: 0 0 65px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feedback h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.35; }
.feedback-note { margin: 0 0 22px; color: var(--muted); }
.feedback form { display: grid; gap: 10px; }
.feedback label { font-weight: 700; }
.feedback select, .feedback textarea { display: block; width: 100%; min-width: 0; border: 1px solid #9fb5a6; border-radius: 9px; padding: 11px 13px; background: #fff; color: var(--ink); }
.feedback select { min-height: 48px; margin-bottom: 10px; }
.feedback textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.feedback-pending label { display: block; margin-bottom: 10px; font-weight: 700; }
.feedback-pending textarea { background: #f5f8f4; }
.feedback-pending p { overflow-wrap: anywhere; }
.feedback button { justify-self: start; margin-top: 10px; min-height: 48px; }
.feedback-error { margin: 0 0 20px; padding: 13px 16px; border: 1px solid #d9a990; border-radius: 9px; background: #fff3eb; color: #743a22; font-weight: 700; }
.source dl { margin: 0; }
.source dt { margin-top: 11px; color: #6d7d71; font-size: 12px; }
.source dd { margin: 0; color: #34493b; font-size: 13px; overflow-wrap: anywhere; }
.source h3 { margin: 24px 0 10px; font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 22px 0 34px; color: #6e7d70; font-size: 12px; }
@media (max-width: 850px) {
  .catalog-layout, .detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .category-list { display: flex; flex-wrap: wrap; gap: 7px; }
  .facets section + section { margin-top: 16px; }
}
@media (max-width: 620px) {
  .site-inner, main, footer { width: calc(100% - 32px); }
  .preview-banner { padding: 8px 16px; text-align: left; font-size: 12px; }
  .site-inner { min-height: 65px; }
  .brand { font-size: 20px; }
  .brand-sub { display: none; }
  .intro { padding: 25px 0 22px; }
  .lead { font-size: 14px; }
  .search-row input { padding: 9px 8px; font-size: 14px; }
  .search-row button { padding: 9px 13px; font-size: 14px; }
  .catalog-layout { padding-top: 21px; gap: 24px; }
  .facets.filters-ready .filter-toggle { display: grid; width: 100%; gap: 2px; padding: 10px 14px; border: 1px solid #9bb8a4; background: #eef5ed; color: #1d533c; text-align: left; white-space: normal; }
  .facets.filters-ready .filter-toggle:hover { background: #e1efe3; }
  .filter-selection { color: #486352; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
  .facets.filters-ready .facet-options { display: none; }
  .facets.filters-ready.is-open .facet-options { display: block; padding-top: 18px; }
  .list { grid-template-columns: 1fr; gap: 9px; }
  .card { min-height: 0; padding: 17px; }
  .results-head { align-items: start; }
  .results-head span { max-width: 125px; text-align: right; }
  .prompt, .source { padding: 19px; }
  .feedback { padding: 20px 19px; margin-bottom: 40px; }
  .feedback button { width: 100%; }
  pre.body { padding: 15px; font-size: 13px; }
  .state { padding: 22px; }
}