* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #222b31; font: 16px/1.7 "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif; }
.motion-card { padding: 22px; border: 1px solid #dce1e5; border-radius: 6px; }
.motion-figure { width: 100%; max-width: 680px; margin: 0 auto; }
.strain-3d-motion-svg { display: block; width: 100%; height: auto; }
.strain-3d-frame { color: #17211d; }
.strain-3d-frame line { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.strain-3d-frame circle { fill: currentColor; opacity: .78; }
.strain-3d-axis-label { overflow: visible; }
.strain-3d-cube polygon { stroke: #7253b8; stroke-width: 2.4; stroke-linejoin: round; }
.strain-3d-cube [data-cube-face="0"], .strain-3d-cube [data-cube-face="1"] { fill: rgba(209,198,246,.72); }
.strain-3d-cube [data-cube-face="2"], .strain-3d-cube [data-cube-face="3"] { fill: rgba(239,233,255,.9); }
.strain-3d-cube [data-cube-face="4"], .strain-3d-cube [data-cube-face="5"] { fill: rgba(224,214,252,.76); }
.strain-3d-cube polyline { fill: none; stroke: #7253b8; stroke-width: 2.4; stroke-linejoin: round; }
.strain-3d-original { opacity: .26; }
.strain-3d-original polygon { fill: rgba(230,226,242,.34); stroke: #9d8cc8; stroke-dasharray: 6 5; stroke-width: 1.8; }
.strain-3d-original polyline { stroke: #9d8cc8; stroke-dasharray: 6 5; stroke-width: 1.6; }
.motion-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.motion-controls button { padding: 8px 18px; min-height: 40px; border: 1px solid #dce1e5; border-radius: 4px; background: #fff; color: #006398; font: inherit; font-weight: 600; cursor: pointer; }
.motion-controls button.is-active { border-color: #0079ba; background: #0079ba; color: #fff; }
.motion-controls button:hover { border-color: #0079ba; }
.motion-controls button:focus-visible { outline: 2px solid #0079ba; outline-offset: 3px; }
.motion-note { max-width: 680px; margin: 12px auto 16px; color: #22516b; text-align: center; }
@media (max-width: 480px) {
  .motion-card { padding: 14px; }
  .motion-controls { gap: 8px; }
  .motion-controls button { padding-inline: 14px; }
}
