/* The collection uses clear field labels and a stable grid of search results. */
#gallery .section-head .lead{font-size:.9rem;line-height:1.9;color:var(--ink-light);margin-top:14px}
#gallery .gallery-toolbar{display:block;max-width:none;width:100%;margin:32px 0 0}
.collection-search{background:var(--bg-warm);padding:28px 30px;margin-bottom:28px}
.search-primary{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:24px;align-items:end}
.search-field{min-width:0}
.search-field>label,.search-field>.field-label{display:block;font-size:.8rem;color:var(--ink);letter-spacing:.025em;margin-bottom:9px}
.search-field input,.search-field select{width:100%;min-width:0;height:48px;border:1px solid var(--line-dark);background:var(--bg);color:var(--ink);padding:0 13px;font-family:var(--display);font-size:.86rem;border-radius:0;line-height:normal}
.search-field input::placeholder{color:var(--ink-lighter)}
.search-input-row{display:flex;gap:0}
.search-input-row input{border-right:0}
.search-submit{flex:none;width:76px;padding:0 12px;background:var(--ink);color:var(--bg);font-size:.84rem;letter-spacing:.04em}
.search-hint{font-size:.72rem;color:var(--ink-light);margin:15px 0 0;line-height:1.9}
.collection-search .search-more{margin-top:21px;border-top:1px solid var(--line);padding-top:16px}
.search-more summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;font-size:.78rem;color:var(--ink);list-style:none;line-height:1.8}
.search-more summary::-webkit-details-marker{display:none}
.search-more summary::after{content:'展开';color:var(--ink-light);font-size:.72rem}
.search-more[open] summary::after{content:'收起'}
.search-advanced{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;margin-top:20px}
.search-price-field{grid-column:span 2}
.price-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center}
.price-range>span{font-size:.74rem;color:var(--ink-light)}
.price-range label{display:block;font-size:.71rem;color:var(--ink-light);margin-bottom:6px}
.search-advanced .search-field:last-child{align-self:end}
.price-error{font-size:.75rem;color:#a14838;margin-top:10px}
.price-error[hidden]{display:none}
.collection-results{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0 14px}
.collection-results .gallery-count{font-size:.97rem;letter-spacing:.015em;text-transform:none;color:var(--ink)}
.collection-results .gallery-count strong{font-weight:500;font-variant-numeric:tabular-nums}
.collection-results .collection-tools{display:flex;margin:0;gap:24px}
.collection-results .collection-tools button{font-size:.77rem;line-height:1.7;min-height:36px;padding:4px 0}
.search-active{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;min-height:30px;margin-bottom:25px;color:var(--ink-light);font-size:.74rem}
.search-active .filter-chips{gap:8px}
.search-active .filter-chips button{font-size:.73rem;color:var(--ink);padding:5px 10px;border:1px solid var(--line);background:var(--bg-warm);line-height:1.6}
#inquireSaved{font-size:.75rem;margin-left:auto}
#gallery .gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:38px 25px;overflow:visible;padding:0;margin:0;scroll-snap-type:none;scroll-margin-top:115px}
#gallery .artwork{width:auto;min-width:0;opacity:1;transform:none;animation:none}
#gallery .artwork-frame{margin-bottom:17px}
#gallery .artwork-info{padding:0}
#gallery .artwork-info h3{font-size:1.02rem;letter-spacing:.025em;line-height:1.65;margin-bottom:15px}
.work-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0}
.work-facts>div{min-width:0}
.work-facts dt{font-size:.75rem;color:var(--ink-lighter);line-height:1.6;margin-bottom:3px}
.work-facts dd{font-size:.83rem;line-height:1.65;overflow-wrap:anywhere;color:var(--ink-light)}
.work-facts .catalog-code{font-size:.75rem;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.work-price{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border-top:1px solid var(--line);padding:13px 0 0;margin-top:17px}
.work-price>span:first-child{font-size:.72rem;color:var(--ink-lighter)}
.work-price strong{font-size:.91rem;font-weight:400;color:var(--ink);font-variant-numeric:tabular-nums}
.work-status{font-size:.67rem;color:var(--ink-light);margin-left:auto}
#gallery .artwork-actions{position:static;inset:auto;display:flex;opacity:1;justify-content:flex-start;gap:22px;min-height:36px;margin-top:9px;padding:0;background:none}
#gallery .action-btn{width:auto;height:auto;padding:4px 0;border:0;border-radius:0;transform:none;background:none;font-size:.73rem;color:var(--ink-light);line-height:1.7;transition:color .2s}
#gallery .action-btn:hover,#gallery .action-btn.liked{color:var(--ink);text-decoration:underline;text-underline-offset:5px}
#gallery .gallery-empty{grid-column:1/-1;padding:60px 24px}
#gallery .gallery-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:38px;padding-top:24px;border-top:1px solid var(--line);gap:20px;font-size:.77rem}
#gallery .gallery-controls{display:flex;align-items:center;gap:22px;margin:0}
#gallery .gallery-controls button{height:40px;width:auto;min-width:68px;border:0;border-bottom:1px solid var(--line-dark);font-size:.79rem;padding:4px 8px;background:transparent;color:var(--ink)}
#gallery .gallery-controls button:not(:disabled):hover{background:var(--bg-warm);color:var(--ink)}
#gallery .gallery-controls button:disabled{opacity:.35;cursor:default}
#galleryPosition{font-size:.74rem;color:var(--ink-light);white-space:nowrap;min-width:65px;text-align:center;margin:0}
@media(max-width:1180px){#gallery .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.search-primary{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:768px){#gallery .section-head .lead{max-width:340px;font-size:.83rem}#gallery .gallery-toolbar{margin-top:25px}.collection-search{padding:20px;margin-bottom:22px}.search-primary{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.search-primary>.search-field:first-child{grid-column:1/-1}.search-field>label,.search-field>.field-label{font-size:.77rem}.search-field input,.search-field select{font-size:16px;height:46px;padding-inline:10px}.search-hint{font-size:.69rem}.search-advanced{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.search-price-field{grid-column:1/-1}.search-advanced .search-field:last-child{grid-column:1/-1}.collection-results{flex-wrap:wrap;gap:12px;margin-top:20px}.collection-results .gallery-count{font-size:.89rem}.collection-results .collection-tools{gap:18px;margin-left:auto}.collection-results .collection-tools button{font-size:.73rem}.search-active{gap:8px;margin-bottom:22px;font-size:.7rem}#gallery .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 18px;margin:0;padding:0;scroll-margin-top:94px}#gallery .artwork-info h3{font-size:.95rem;margin-bottom:12px}.work-facts{grid-template-columns:1fr;gap:8px}.work-facts>div{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px;align-items:baseline}.work-facts dt{font-size:.65rem;margin:0}.work-facts dd{font-size:.73rem}.work-facts .catalog-code{font-size:.65rem}.work-price{gap:6px;font-size:.7rem}.work-price strong{font-size:.8rem}.work-status{width:100%;margin:0;padding-left:0}#gallery .artwork-actions{gap:15px;flex-wrap:wrap}#gallery .action-btn{font-size:.7rem}#gallery .gallery-bottom{flex-wrap:wrap;gap:12px;align-items:center}#gallery .gallery-controls{margin-left:auto;gap:12px}#galleryPosition{font-size:.7rem;min-width:52px}}
@media(max-width:360px){.collection-search{padding:18px 15px}.search-primary{grid-template-columns:1fr}.search-primary>.search-field:first-child{grid-column:auto}.search-advanced{grid-template-columns:1fr}.search-price-field,.search-advanced .search-field:last-child{grid-column:auto}#gallery .gallery-grid{grid-template-columns:1fr;gap:35px}.work-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.work-facts>div{display:block}.work-facts dd{font-size:.78rem}.work-facts dt{margin-bottom:3px}.work-price strong{font-size:.95rem}.work-status{width:auto;margin-left:auto}.collection-results .collection-tools{width:100%;margin:0;justify-content:space-between}#gallery .gallery-controls{width:100%;justify-content:center;margin:0}}
@media(max-width:768px){#gallery .gallery-grid.single-result{grid-template-columns:1fr}#gallery .single-result .work-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}#gallery .single-result .work-facts>div{display:block}#gallery .single-result .work-facts dt{font-size:.75rem;margin-bottom:3px}#gallery .single-result .work-facts dd{font-size:.83rem}#gallery .single-result .work-price strong{font-size:.95rem}}
