body{margin:0;background:#fff;font:13px/1.6 "Microsoft YaHei",Tahoma,sans-serif;color:#333}.embed{display:flex;flex-direction:column;height:100vh;box-sizing:border-box;padding:14px;gap:12px;overflow:auto}.card{border:1px solid #e5e7eb;padding:14px;background:#fafafa}.card h3{margin:0 0 10px;font-size:13px;color:#ff5000}.st{font-size:12px;color:#9ca3af}.hint{margin-top:8px;font-size:12px;color:#9ca3af;line-height:1.7}.wrap{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start}.grow{flex:1 1 300px;min-width:280px}label{font-size:12px;color:#6b7280;display:flex;align-items:center;gap:4px}input[type=number]{width:74px;padding:6px 8px;border:1px solid #e5e7eb;font-size:13px;font-family:Consolas,Menlo,monospace;outline:none}input[type=number]:focus{border-color:#ff5000}.btn{border:0;height:26px;padding:0 12px;background:#ff5000;color:#fff;font-size:13px;cursor:pointer}.btn.ghost{background:#fff;color:#ff5000;border:1px solid #ff5000}.btn.ghost:hover{background:#fff5f0}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}/* 曲线编辑区：网格走 CSS 线条，曲线与手柄用 SVG，方便拖拽时只改属性 */#svg{display:block;width:240px;height:240px;background:#fff;border:1px solid #e5e7eb;cursor:crosshair;touch-action:none}.grid{stroke:#f0f0f0;stroke-width:1}.axis{stroke:#e5e7eb;stroke-width:1;stroke-dasharray:3 3}.hand{stroke:#ffb899;stroke-width:1}.curve{fill:none;stroke:#ff5000;stroke-width:2}.pt{fill:#fff;stroke:#ff5000;stroke-width:2;cursor:grab}.pt:active{cursor:grabbing}.pt:focus{outline:none;fill:#ffe8dd;stroke-width:3.5}.pt:focus-visible{outline:2px dashed #ff5000;outline-offset:4px}.anchor{fill:#9ca3af}.nums{display:flex;gap:10px;flex-wrap:wrap}.presets{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.chip{border:1px solid #e5e7eb;background:#fff;color:#4b5563;font-size:12px;padding:3px 8px;cursor:pointer;font-family:inherit}.chip:hover{border-color:#ff5000;color:#ff5000}.chip.on{background:#fff5f0;border-color:#ff5000;color:#ff5000}.track-wrap{margin-top:14px}.track{position:relative;height:34px;background:#fff;border:1px solid #e5e7eb;display:flex;align-items:center;padding:0 4px}.ball{display:block;width:16px;height:16px;background:#ff5000;border-radius:50%}.codebox{margin-top:12px;padding:10px;background:#fff;border:1px solid #e5e7eb;font:12px/1.8 Consolas,Menlo,monospace;white-space:pre-wrap;word-break:break-all;color:#111827}.codebox em{color:#9ca3af;font-style:normal}