:root {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #293b30;
  background: #f6f7f9;
  font-synthesis: none;
  --green: #347b59;
  --line: #e3e8e2;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sprite, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 10; background: var(--green); color: white; padding: 12px 18px; }
.skip:focus { top: 12px; }
.header { height: 82px; padding: 0 max(5%, calc((100vw - 1280px) / 2)); display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); background: white; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { object-fit: contain; }
.brand>span { font-size: 19px; font-weight: 650; letter-spacing: .5px; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: #8b978a; letter-spacing: .4px; margin-top: 3px; }
.site-label { border-left: 1px solid var(--line); padding-left: 28px; font-size: 14px; color: #63795f; }
.learning-link { margin-left: auto; font-size: 12px; color: var(--green); padding: 10px 14px; border: 1px solid #dce7da; border-radius: 6px; }
.learning-link:hover { background: #f1f6ee; }
.collection { width: 90%; max-width: 1280px; margin: 0 auto; padding: 28px 0 60px; flex: 1; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #9aa595; font-size: 11px; margin-bottom: 28px; }
.breadcrumb a { color: #6b8363; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
h1 { display: flex; align-items: center; gap: 12px; font-size: 29px; font-weight: 650; margin: 0 0 10px; letter-spacing: -.6px; }
.model-total { font-family: Consolas, monospace; font-size: 12px; font-weight: 400; color: #69835e; background: #eaf1e6; border: 1px solid #dce6d6; border-radius: 5px; min-width: 28px; padding: 3px 6px; text-align: center; letter-spacing: 0; }
.section-heading p { font-size: 12px; color: #919d89; margin: 0; }
.search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: white; border-radius: 7px; width: 310px; }
.search svg { width: 17px; height: 17px; color: #8ca180; }
.search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: none; color: #3f5438; font-size: 12px; }
.search input::placeholder { color: #a1ab99; }
.search:focus-within { border-color: #85a17b; }
.search kbd { border: 1px solid var(--line); padding: 0 5px; border-radius: 3px; color: #a0ad96; font-size: 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.categories { display: flex; flex-wrap: wrap; gap: 6px; }
.categories button { padding: 9px 14px; border: 0; border-radius: 5px; background: none; font-size: 12px; color: #7d8f73; }
.categories button.selected { color: white; background: var(--green); }
.categories small { margin-left: 6px; opacity: .7; font-size: 10px; }
.toolbar-right { display: flex; align-items: center; gap: 16px; }
.favorites-top { display: flex; align-items: center; gap: 7px; font-size: 11px; border: 1px solid var(--line); background: white; border-radius: 5px; padding: 8px 10px; }
.favorites-top svg { width: 14px; height: 14px; }
.favorites-top b { font-size: 10px; font-weight: 400; color: #92a387; }
.favorites-top[aria-pressed=true] { color: var(--green); background: #e7f0e1; border-color: #bfcfb6; }
.toolbar select { border: 0; background: transparent; color: #88997d; font-size: 11px; padding: 6px 0; max-width: 100px; }
.view-controls { display: flex; align-items: center; gap: 3px; border-left: 1px solid var(--line); padding-left: 13px; }
.view-controls button { display: grid; place-items: center; padding: 7px; border: 0; background: transparent; border-radius: 4px; color: #9baa8f; }
.view-controls button.selected { background: #e7eee1; color: #5c7a4c; }
.view-controls svg { width: 16px; height: 16px; }
.result-status { font-size: 11px; color: #8b9b80; margin: 20px 0 16px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 23px; }
.model-card { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: white; position: relative; transition: box-shadow .2s, border-color .2s; }
.model-card:hover { border-color: #b6cbb0; box-shadow: 0 6px 22px #2944210c; }
.card-image { display: block; position: relative; height: 220px; overflow: hidden; background: #e9eee2; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.model-card:hover .card-image img { transform: scale(1.03); }
.card-tag { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 4px; background: #254939d9; color: white; font-size: 9px; }
.card-tag svg { width: 11px; height: 11px; }
.favorite-button { position: absolute; right: 13px; top: 13px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #fffffff0; border: 1px solid #e1e9db; color: #8c9d80; }
.favorite-button svg { width: 15px; height: 15px; }
.favorite-button.saved { background: #ebf4e2; color: var(--green); }
.favorite-button.saved svg { fill: #81a56f; }
.card-body { padding: 20px; }
.card-meta { display: flex; gap: 8px; color: #95a288; font-size: 10px; }
.card-meta span:first-child { color: #68845c; }
.card-body h2 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin: 11px 0 10px; }
.card-tags { font-size: 10px; color: #8c9c80; line-height: 1.7; margin: 0; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf0e7; margin-top: 18px; padding-top: 14px; }
.card-bottom time { font-size: 10px; color: #a1ad96; }
.model-open { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 4px; font-size: 11px; font-weight: 550; color: var(--green); background: #edf4e8; }
.model-open:hover { background: #dfeeda; }
.model-open svg { width: 15px; height: 15px; }
.model-grid.list { grid-template-columns: 1fr; }
.list .model-card { display: grid; grid-template-columns: 225px 1fr; }
.list .card-image { height: 100%; min-height: 192px; }
.list .card-body { padding: 23px 28px; }
.list .favorite-button { right: 18px; top: 18px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 42px; padding: 0 20px; font-size: 12px; border: 0; border-radius: 5px; }
.secondary { background: #e4eddd; color: var(--green); }
.button svg { width: 17px; height: 17px; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed #d0ddc5; border-radius: 8px; background: #f0f4ea; }
.empty-state>svg { width: 30px; height: 30px; color: #8fa87c; }
.empty-state h2 { font-size: 18px; font-weight: 550; }
.empty-state p { font-size: 12px; color: #8e9f80; margin-bottom: 23px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 10px); padding: 12px 22px; border-radius: 6px; background: #345c3f; color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 20; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
footer { padding: 22px max(5%, calc((100vw - 1280px) / 2)); display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); font-size: 10px; color: #98a78b; }
footer>a { color: #758e67; }
footer>span { margin-left: auto; }
footer small { font-size: 10px; }
.noscript { font-size: 13px; padding: 20px 0; }
.noscript a { text-decoration: underline; }
/* Shared with the GLB/glTF viewer's compact model information panel. */
.eyebrow { font-size: 9px; letter-spacing: 1.4px; color: #8d9d7d; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0; }
.detail-tags span { font-size: 10px; background: #e5eedb; color: #6a8257; padding: 5px 8px; border-radius: 4px; }
@media (max-width: 1050px) { .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .header { height: 73px; gap: 18px; }
  .brand { gap: 9px; }
  .brand>span { font-size: 17px; }
  .brand small { font-size: 9px; }
  .brand img { width: 30px; height: 30px; }
  .site-label { display: none; }
  .learning-link { font-size: 10px; padding: 9px 10px; }
  .collection { padding-top: 23px; }
  .breadcrumb { font-size: 10px; margin-bottom: 24px; }
  .section-heading { flex-direction: column; align-items: stretch; gap: 22px; margin-bottom: 22px; }
  h1 { font-size: 27px; }
  .section-heading p { font-size: 11px; }
  .search { width: 100%; }
  .toolbar { flex-wrap: wrap; gap: 14px; padding-bottom: 15px; }
  .categories { flex: 1 0 100%; }
  .categories button { font-size: 11px; }
  .toolbar-right { width: 100%; gap: 15px; }
  .toolbar select { margin-left: auto; }
  .result-status { margin-top: 18px; font-size: 10px; }
  .model-grid { grid-template-columns: 1fr; }
  .card-image { height: 220px; }
  .card-body { padding: 19px; }
  .card-body h2 { font-size: 19px; }
  .list .model-card { grid-template-columns: 112px 1fr; }
  .list .card-image { min-height: 190px; }
  .list .card-body { padding: 18px 13px; }
  .list .card-body h2 { font-size: 15px; padding-right: 12px; }
  .list .card-meta { font-size: 9px; }
  .list .card-tags { font-size: 9px; }
  .list .card-bottom { margin-top: 12px; padding-top: 10px; gap: 5px; }
  .list .model-open { font-size: 10px; padding: 6px; gap: 4px; }
  .list .model-open svg { width: 12px; height: 12px; }
  .list .card-bottom time { font-size: 8px; }
  .list .favorite-button { width: 25px; height: 25px; top: 9px; right: 9px; }
  footer { flex-wrap: wrap; gap: 10px 18px; font-size: 9px; }
  footer>span { order: 3; flex-basis: 100%; margin: 0; }
  footer small { margin-left: auto; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; animation: none !important; } }
