* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #263b3a; font: 16px/1.5 "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif; }
.strain-card { max-width: 1000px; margin: 0 auto; padding: 18px; border: 1px solid #cbded8; border-radius: 6px; }
.strain-layout { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.5fr); align-items: center; gap: 18px; }
.strain-control-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.strain-number-field { display: grid; grid-template-columns: 36px minmax(60px, 1fr) 76px; align-items: center; gap: 8px; margin: 0 0 8px; }
.strain-number-field span { color: #64748b; font-size: 16px; }
input[type="range"] { width: 100%; margin: 0; accent-color: #2b7db5; cursor: pointer; }
.strain-number { width: 100%; min-width: 0; height: 32px; padding: 3px 5px; border: 1px solid #cad5e5; border-radius: 7px; color: #172334; background: #fff; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.3; text-align: center; }
.strain-reset-button { display: block; width: 100%; min-height: 36px; margin-top: 10px; border: 1px solid #cad5e5; border-radius: 6px; color: #216c68; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.strain-reset-button:hover { background: #f2f8fa; border-color: #2b7db5; }
input:focus-visible, button:focus-visible { outline: 2px solid #2b7db5; outline-offset: 2px; }
.strain-svg-wrap { min-width: 0; }
.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; }
.volume { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e0e9e7; color: #2d5873; }
.volume output { font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .strain-card { padding: 14px; }
  .strain-layout { grid-template-columns: 1fr; gap: 12px; }
  .strain-svg-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
  .volume { font-size: 15px; }
}
