body{margin:0;background:var(--ds-surface);color:var(--ds-ink);font-family:PingFang SC,Microsoft YaHei,sans-serif}
#materials{width:min(calc(100% - 96px),1344px);margin:auto;padding:32px 0 48px}
#materials h1{font-size:40px;line-height:1.2;margin:0 0 22px}
.categories{display:flex;gap:32px;margin-bottom:18px}
.categories .ds-tab{padding-inline:0;border-radius:0;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--ds-ink)}
.categories .ds-tab[aria-selected=true]{border-bottom-color:var(--ds-primary);color:var(--ds-primary)}
.reference-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.reference-switch [role=tablist]{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.reference-switch [role=tab]{display:grid;gap:0;padding:0;overflow:hidden;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius-md);text-align:center;font-size:16px;color:var(--ds-ink)}
.reference-switch [aria-selected=true]{border-color:var(--ds-primary);color:var(--ds-primary)}
.reference-switch [role=tab]>span:last-child{padding:8px}
.tile-photo,.main-photo{display:grid;place-items:center;background:#f2f3f5;overflow:hidden}
.tile-photo{height:124px}
.tile-photo img{width:100%;height:100%;object-fit:contain}
.reference-panels{border-radius:0;background:none}
.reference-tab-panel:not([hidden]){display:block}
.main-photo{height:300px;border-radius:var(--ds-radius-md)}
.main-photo img{height:100%;width:100%;object-fit:contain}
.details{margin-top:16px;border:1px solid var(--ds-border);padding:20px;border-radius:var(--ds-radius-md)}
.details h2{font-size:22px;margin:0 0 8px}.details p{margin:0;line-height:1.65}
[hidden]{display:none!important}
@media(max-width:760px){#materials{width:calc(100% - 32px)}.reference-switch{grid-template-columns:1fr}}
.tile-photo,.main-photo{position:relative}
.tile-photo img,.reference-tab-panel .main-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}

.reference-tab-panel .main-photo{width:100%;justify-self:stretch}
