/* math.css - 所有数学工具共用样式，不影响其他分类 */
* { margin:0; padding:0; box-sizing:border-box; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { background-color:#f8fafc; color:#1e293b; line-height:1.5; }
.top-bar { display:flex; justify-content:space-between; align-items:center; padding:14px 24px; background:#ffffff; box-shadow:0 2px 4px rgba(0,0,0,0.05); margin-bottom:32px; flex-wrap:nowrap; overflow-x:auto; gap:12px; }
.lang-buttons { display:flex; gap:8px; }
.lang-btn { padding:6px 14px; border-radius:6px; background:#f1f5f9; color:#475569; text-decoration:none; font-size:14px; border:none; cursor:pointer; white-space:nowrap; transition:all 0.2s; }
.lang-btn:hover { background:#e2e8f0; }
.lang-btn.active { background:#10b981; color:#ffffff; }
.container { max-width:800px; margin:0 auto; padding:0 20px 40px; }
.tool-header { text-align:center; margin-bottom:20px; }
.tool-title { font-size:26px; font-weight:600; color:#0f292a; margin-bottom:8px; }
.tool-desc { font-size:15px; color:#64748b; max-width:700px; margin:0 auto; }
.formula-box { margin:20px 0; padding:16px; background:#eef2ff; border-radius:12px; text-align:center; font-size:18px; font-family: monospace; }
.help-links { text-align:center; margin-top:-4px; font-size:15px; color:#64748b; }
.help-link { color:#10b981; cursor:pointer; margin:0 8px; text-decoration:none; }
.convert-wrap { background:#ffffff; padding:32px; border-radius:16px; box-shadow:0 4px 12px rgba(0,0,0,0.05); margin-bottom:30px; }
.form-group { margin-bottom:20px; }
.form-label { display:block; margin-bottom:8px; font-size:15px; font-weight:500; color:#334155; }
.form-input { width:100%; padding:12px 16px; border:1px solid #cbd5e0; border-radius:8px; font-size:16px; outline:none; transition:border-color 0.2s; background:#fff; }
.form-input:focus { border-color:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,0.1); }
input[type="text"].form-input { -moz-appearance: textfield; appearance: textfield; }
input[type="text"].form-input::-webkit-outer-spin-button,
input[type="text"].form-input::-webkit-inner-spin-button { -webkit-appearance: none; margin:0; }
.btn-group { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:20px 0; }
.btn { padding:12px 22px; border:none; border-radius:8px; font-size:15px; font-weight:500; cursor:pointer; min-width:100px; }
.btn-primary { background:#10b981; color:#ffffff; }
.btn-primary:hover { background:#059669; }
.btn-danger { background:#ef4444; color:#ffffff; }
.btn-danger:hover { background:#dc2626; }
.result-box { margin-top:20px; padding:20px; background:#f1f5f9; border-radius:12px; display:none; }
.result-title { font-size:17px; font-weight:600; color:#0f292a; margin-bottom:12px; }
.result-item { padding:10px 14px; background:#ffffff; border-radius:6px; margin-bottom:8px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.result-label { color:#64748b; font-weight:500; }
.result-value { color:#10b981; font-weight:600; word-break:break-all; }
.content-box { margin-top:20px; padding:20px; background:#f1f5f9; border-radius:12px; display:none; }
.content-title { font-size:17px; font-weight:600; color:#0f292a; margin-bottom:12px; }
.content-text { font-size:15px; color:#374151; line-height:1.8; }
.faq-item { margin-bottom:12px; padding:10px; background:#ffffff; border-radius:6px; }
.faq-question { font-weight:500; color:#1f2937; margin-bottom:4px; }
.faq-answer { color:#4b5563; font-size:14px; }
.close-btn { margin-top:16px; padding:8px 16px; background:#64748b; color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:14px; display:block; width:fit-content; margin-left:auto; margin-right:auto; }
.tip-box { font-size:14px; text-align:center; margin-top:10px; display:none; padding:8px; border-radius:4px; }
.tip-error { color:#dc2626; background:#fef2f2; }
.tip-success { color:#059669; background:#d1fae5; }
@media (max-width:768px) { .top-bar { padding:10px 16px; } .convert-wrap { padding:20px; } .tool-title { font-size:22px; } .btn { padding:10px 16px; min-width:80px; } }