* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #263730; font: 16px/1.7 "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif; }
.axial-card { padding: 24px; border: 1px solid #cbded8; border-radius: 6px; }
.diagram { position: relative; width: 100%; max-width: 900px; margin: 0 auto; }
.diagram > svg { display: block; width: 100%; height: auto; }
.rod { fill: #b7e5dc; stroke: #177568; stroke-width: 2.5; }
.segment { fill: #edd689; stroke: #8d742c; stroke-width: 2.5; }
.original { fill: #e9edf0; stroke: #6b7d89; stroke-width: 2; }
.support, .dimension { fill: none; stroke: #7a8982; stroke-width: 1.5; }
.guide { fill: none; stroke: #a2aaa6; stroke-width: 1.5; stroke-dasharray: 5 5; }
.force { stroke: #a95324; stroke-width: 3; }
.displacement { fill: none; stroke: #22516b; stroke-width: 1.8; }
.math-label { position: absolute; transform: translate(-50%, -50%); font-size: clamp(12px, 2.4vw, 21px); white-space: nowrap; pointer-events: none; }
.force-label { color: #a95324; }
.displacement-label { color: #22516b; }
.math-label mjx-container { margin: 0 !important; }
.controls { display: flex; justify-content: center; gap: 12px; }
button { padding: 8px 22px; min-height: 40px; border: 1px solid #b9d5e5; border-radius: 4px; color: #006398; background: #fff; font: inherit; cursor: pointer; }
button.primary { background: #287db5; border-color: #287db5; color: #fff; }
button:focus-visible { outline: 2px solid #006398; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 480px) { .axial-card { padding: 14px; } }
