/* 怎麼量：動態圖例（合身訂製頁） */
.sf-measure { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 40px; }
.sf-measure__stage { background: #F5F5F7; border-radius: 20px; padding: 20px; }
.sf-measure__svg { display: block; width: 100%; height: auto; }
.sf-measure__list { list-style: none; margin: 0; padding: 0; }
.sf-measure__item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid #E8E8ED; cursor: pointer; opacity: .38; transition: opacity .35s; }
.sf-measure__item.is-on { opacity: 1; }
.sf-measure__key { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #1D1D1F; display: flex; align-items: center; justify-content: center; font-family: Manrope, sans-serif; font-weight: 600; font-size: 14px; }
.sf-measure__item.is-on .sf-measure__key { background: #1D1D1F; color: #FFFFFF; }
.sf-measure__t { margin: 0; font-size: 19px; font-weight: 600; }
.sf-measure__d { margin: 4px 0 0; font-size: 15px; color: #6E6E73; line-height: 1.6; }
.sf-measure__bar { height: 2px; background: #E8E8ED; margin-top: 10px; border-radius: 2px; overflow: hidden; }
.sf-measure__bar i { display: block; height: 100%; width: 0; background: #1D1D1F; }
.sf-measure__item.is-on .sf-measure__bar i { animation: sfm-bar var(--sfm-dur, 3.6s) linear forwards; }
.sf-measure.is-paused .sf-measure__item.is-on .sf-measure__bar i { animation: none; width: 100%; }
@keyframes sfm-bar { to { width: 100%; } }

/* 圖 */
.sfm-scene { opacity: 0; transition: opacity .45s; }
.sfm-scene.is-on { opacity: 1; }
.sfm-wall { fill: none; stroke: #1D1D1F; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sfm-thin { fill: none; stroke: #1D1D1F; stroke-width: 1.6; stroke-linejoin: round; }
.sfm-soft { fill: #FFFFFF; stroke: #1D1D1F; stroke-width: 1.6; }
.sfm-ghost { fill: none; stroke: #C7C7CC; stroke-width: 1.2; stroke-dasharray: 3 4; }
.sfm-dim { opacity: 0; }
.sfm-dim line, .sfm-dim path { stroke: #1D1D1F; stroke-width: 1.6; fill: none; }
.sfm-dim .sfm-run { stroke-dasharray: 400; stroke-dashoffset: 400; }
.sfm-dim text { font-size: 12px; fill: #1D1D1F; font-family: 'Noto Sans TC', sans-serif; font-weight: 600; }
.sfm-dim .sfm-tag { fill: #FFFFFF; stroke: #1D1D1F; stroke-width: 1; }
.sfm-dim.is-on { opacity: 1; }
.sfm-dim.is-on .sfm-run { animation: sfm-draw .9s ease-out forwards; animation-delay: var(--d, 0s); }
.sfm-dim.is-on .sfm-lab { opacity: 0; animation: sfm-fade .4s ease-out forwards; animation-delay: calc(var(--d, 0s) + .8s); }
@keyframes sfm-draw { to { stroke-dashoffset: 0; } }
@keyframes sfm-fade { to { opacity: 1; } }
.sfm-mover { transform-box: view-box; }
.sfm-scene.is-on .sfm-mover { animation: sfm-turn 3.6s ease-in-out infinite; }
@keyframes sfm-turn {
	0%, 12% { transform: translate(0, 0) rotate(0deg); }
	40% { transform: translate(52px, 0) rotate(0deg); }
	60% { transform: translate(84px, 16px) rotate(45deg); }
	75%, 100% { transform: translate(98px, 66px) rotate(90deg); }
}
.sfm-mover { transform-origin: 96px 146px; }

@media (max-width: 760px) {
	.sf-measure { grid-template-columns: 1fr; gap: 20px; }
	.sf-measure__stage { position: sticky; top: 56px; z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.sfm-dim .sfm-run { stroke-dashoffset: 0 !important; animation: none !important; }
	.sfm-dim .sfm-lab { opacity: 1 !important; animation: none !important; }
	.sfm-scene.is-on .sfm-mover { animation: none; }
	.sf-measure__item.is-on .sf-measure__bar i { animation: none; width: 100%; }
}
#measure { scroll-margin-top: 64px; }

