.method-demo{margin:2rem 0;padding:clamp(1rem,3vw,2rem);border:1px solid #c9d8d0;border-radius:12px;background:#f5f8f4;color:#253c36;overflow:hidden}.method-demo h2{font-size:1.35rem}.demo-controls{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:1rem 0}.demo-controls button{font:inherit;padding:.5rem .8rem;border:1px solid #799487;border-radius:6px;background:white;color:#183d30;cursor:pointer;min-height:44px}.demo-controls button:disabled{opacity:.45;cursor:default}.demo-controls label{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;flex-basis:100%}.demo-controls input{max-width:100%;width:200px}.demo-stage{min-width:0}.demo-stage svg{width:100%;height:auto;max-height:360px;display:block}.demo-stage text{font-family:system-ui,sans-serif}.demo-stage .demo-formula{overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:1rem ui-monospace,monospace;padding:.75rem;background:#e6eee8;border-radius:6px}.demo-stage p{line-height:1.7}.demo-static ol{padding-left:1.5rem}.demo-static li{margin:.65rem 0}.aligned-pair{padding:.7rem 0;border-bottom:1px solid #d9e2dc}.aligned-pair [lang=zh-CN]{color:#54665e}.method-demo details{margin-top:1rem}.method-demo summary{cursor:pointer;font-weight:600}.method-demo :focus-visible{outline:3px solid #cf7c32;outline-offset:3px}@media(prefers-reduced-motion:reduce){.method-demo *{animation:none!important;transition:none!important}}@media(max-width:480px){.method-demo{padding:.8rem}.demo-controls{gap:.35rem}}

.demo-numbers{font-size:.9rem;line-height:1.6}.demo-numbers div{margin:.5rem 0}.demo-numbers dt{font-weight:600}.demo-numbers dd{margin:0;overflow-wrap:anywhere}.demo-formula{overflow-wrap:anywhere}
