
/* 石材库：图片优先，详情按任务分组。 */
#view-stones .card-thumb { aspect-ratio: 4 / 3; height: auto; background: #f3f3f1; }
#view-stones .card-name { font-size: 15px; line-height: 1.5; }
#view-stones .card-code { font-size: 11px; color: var(--ink3, #7c8589); margin: 3px 0; }
#view-stones .card-meta { margin-top: 4px; }
#view-stones .card-price { flex-wrap: wrap; row-gap: 4px; }
#view-stones .stone-picture-mode .card-thumb { aspect-ratio: 1 / 1; }
#view-stones .stone-picture-mode .card-code,
#view-stones .stone-picture-mode .card-parts,
#view-stones .stone-picture-mode .card-alias { display: none; }
#view-stones .stone-picture-mode .card-info { padding: 12px; }
#view-stones .fg-note { font-size: 11px; line-height: 1.6; }
.stone-detail-tabs { display: flex; gap: 6px; position: sticky; top: -16px; z-index: 5; background: var(--panel, #fff); padding: 12px 0; border-bottom: 1px solid var(--line2, #e4e8e6); margin-bottom: 16px; }
.stone-detail-tabs button { flex: 1; padding: 10px 8px; border: 0; border-radius: 8px; color: var(--ink3, #66716d); background: transparent; font: inherit; cursor: pointer; }
.stone-detail-tabs button[aria-selected="true"] { background: #eaf3ee; color: #246249; font-weight: 600; }
.stone-detail-tabs button:focus-visible { outline: 2px solid #397a5b; outline-offset: 2px; }
.stone-detail-pane[hidden] { display: none !important; }
.stone-detail-pane > .panel { margin-top: 0 !important; margin-bottom: 16px; }
.stone-detail-pane .gallery-main { height: auto; min-height: 260px; }
.stone-detail-pane .gallery-main img { max-height: 60vh; width: 100%; object-fit: contain; }
.stone-tab-empty { text-align: center; padding: 48px 16px; }
@media(max-width: 600px) { .stone-detail-tabs { gap: 2px; } .stone-detail-tabs button { font-size: 12px; padding: 10px 3px; } }
