body{margin:0;background:#fff;font:13px/1.6 "Microsoft YaHei",Tahoma,sans-serif;color:#333}/* 紧凑双栏：左侧计算器，右侧方程求解 + 历史；窗口小则自然换行 */.wrap{display:flex;justify-content:center;align-items:flex-start;gap:16px;min-height:100vh;box-sizing:border-box;padding:16px;flex-wrap:wrap}.calc{width:300px;background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:12px;box-sizing:border-box}.disp{background:#f6f7f9;border-radius:4px;padding:10px 12px;margin-bottom:8px}.dispbar{display:flex;justify-content:flex-end;margin-bottom:2px}.angmode{font-size:11px;color:#ff5000;background:#fff4ed;border:1px solid #ffe0cc;border-radius:2px;padding:0 8px;line-height:18px;cursor:pointer;user-select:none}.angmode:hover{background:#ffe8da}.disp .expr{min-height:24px;font:20px Consolas,Menlo,monospace;text-align:right;word-break:break-all;color:#333}.disp .res{min-height:20px;font:14px Consolas,Menlo,monospace;text-align:right;color:#ff5000;word-break:break-all}.keys{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.key{border:0;border-radius:4px;height:40px;background:#f1f3f5;font-size:14px;cursor:pointer;color:#333}.key:hover{background:#e6e9ec}.key.fn{background:#eef3fb;color:#ff5000;font-size:12px}.key.fn:hover{background:#e2ebf7}.key.op{background:#fff4ed;color:#ff5000;font-size:16px}.key.op:hover{background:#ffe8da}.key.eq{background:#ff5000;color:#fff;font-size:18px}.key.eq:hover{background:#e84600}.key.cl{background:#fff0f0;color:#e03030}.key.cl:hover{background:#ffe0e0}.hint{font-size:11px;color:#999;margin-top:8px;line-height:1.7}.col{display:flex;flex-direction:column;gap:12px;width:320px;box-sizing:border-box}.card{background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:12px;box-sizing:border-box}.ct{font-weight:700;font-size:13px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.eqdeg{font-size:12px;color:#6b7280;height:26px;border:1px solid #e5e7eb;border-radius:2px;background:#fff;padding:0 4px;outline:none}.eqrow{display:flex;align-items:center;gap:6px;margin-bottom:8px;font-size:12px;color:#6b7280}.eqrow input{width:64px;height:26px;border:1px solid #e5e7eb;border-radius:2px;outline:none;text-align:center;font-size:13px;box-sizing:border-box}.eqrow input:focus{border-color:#ff5000}.eqout{font-size:12px;line-height:2;color:#333;min-height:24px}.eqout .big{font-size:16px;font-weight:700;color:#ff5000;font-family:Consolas,Menlo,monospace}.eqout .sub{color:#9ca3af}.eqout .none{color:#9ca3af}.mini{border:1px solid #e5e7eb;background:#fff;border-radius:2px;font-size:11px;color:#6b7280;line-height:20px;padding:0 10px;cursor:pointer}.mini:hover{border-color:#ff5000;color:#ff5000}.hist{max-height:280px;overflow-y:auto}.hitem{display:flex;justify-content:space-between;gap:8px;padding:4px 6px;border-radius:2px;cursor:pointer;font:12px Consolas,Menlo,monospace;word-break:break-all}.hitem:hover{background:#fff4ed}.hitem .he{color:#6b7280;flex:1}.hitem .hr{color:#ff5000;font-weight:700}.hempty{font-size:12px;color:#9ca3af;padding:4px 2px}