/* 万能数学计算器：八合一 TAB 界面样式 */
.mc-wrap{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#2a2e35;font-size:14px;line-height:1.65}
.mc-head{background:linear-gradient(135deg,#4338ca,#6366f1);color:#fff;border-radius:12px;padding:16px 18px;margin-bottom:14px}
.mc-head b{display:block;font-size:18px}
.mc-head span{font-size:12.5px;opacity:.92}
.mc-panel{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}
.mc-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}
.mc-row label{font-size:13px;color:#475569;font-weight:600;white-space:nowrap}
.mc-row .tool-input{flex:1 1 160px;width:auto;min-width:100px}
.mc-row textarea.tool-textarea{flex:1 1 100%}
.mc-sub{font-size:14px;font-weight:700;color:#3730a3;margin:14px 0 6px;border-left:4px solid #6366f1;padding-left:8px}
.mc-sub code{font-size:12px;color:#4f46e5;background:#eef2ff;border-radius:4px;padding:1px 5px}
.mc-unit{margin-left:auto;font-size:12px;color:#64748b;display:flex;align-items:center;gap:4px}
.mc-examples{font-size:12px;color:#64748b;margin:10px 0;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.mc-examples button{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:12px;padding:2px 9px;font-size:12px;color:#475569;cursor:pointer}
.mc-examples button:hover{background:#e2e8f0}
.mc-keys{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin:12px 0}
.mc-key{padding:8px 0;font-size:15px}
.mc-fns{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.mc-fn{min-width:52px}
.mc-result{margin-top:14px;background:#f0fdf4;border:1px solid #a7f3d0;border-radius:10px;padding:12px 14px}
.mc-result>b{display:block;color:#15803d;font-size:13px;margin-bottom:6px}
.mc-rline{margin:4px 0;word-break:break-all;font-size:14px}
.mc-result strong{font-size:17px;color:#166534}
.mc-result code{background:rgba(255,255,255,.7);border-radius:4px;padding:2px 6px}
.mc-err{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.mc-err>b{color:#b91c1c}
.mc-err strong{color:#b91c1c}
.mc-history{margin-top:16px;border-top:1px dashed #e5e7eb;padding-top:10px}
.mc-hist-t{font-size:12px;color:#64748b;margin-bottom:6px}
.mc-hist-i{font-size:12.5px;color:#475569;padding:3px 0;cursor:pointer}
.mc-hist-i code{color:#6366f1}
.mc-hist-i b{color:#1f2937}
.mc-stat{display:inline-flex;flex-direction:column;min-width:130px;margin:6px 10px 6px 0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px}
.mc-stat i{font-style:normal;font-size:11.5px;color:#64748b}
.mc-stat b{font-size:15px;color:#3730a3}
.mc-mat{display:inline-flex;flex-direction:column;gap:4px;margin:8px 0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px}
.mc-mat>div{display:flex;gap:8px}
.mc-mat code{min-width:52px;text-align:right;color:#1f2937}
.mc-note{font-size:12px;color:#6b7280;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px;margin-top:14px;line-height:1.7}
@media(max-width:900px){.mc-keys{grid-template-columns:repeat(6,minmax(0,1fr))}.mc-unit{margin-left:0}}
@media(max-width:640px){.mc-keys{grid-template-columns:repeat(4,minmax(0,1fr))}.mc-row .tool-input{flex-basis:100%}.mc-stat{min-width:calc(50% - 10px)}}
