/* 数理科学工具箱：银色渐变面板 + TAB / 卡片布局 */
.sci-wrap{max-width:1180px;margin:0 auto}
.sci-head{text-align:center;margin-bottom:16px}
.sci-head h2{font-size:23px;margin:0 0 8px;color:#111827}
.sci-head p{font-size:13px;color:#64748b;margin:0;line-height:1.7}
.sci-tabs{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:16px}
.sci-tab{border:1px solid #cbd5e1;background:linear-gradient(160deg,#fff,#eef2f7);color:#475569;border-radius:9px;padding:9px 15px;font-size:13px;font-weight:600;cursor:pointer;transition:.16s}
.sci-tab:hover{border-color:#818cf8;color:#4338ca;background:#f5f3ff}
.sci-tab.active{background:#4f46e5;border-color:#4f46e5;color:#fff;box-shadow:0 2px 8px rgba(79,70,229,.22)}
.sci-panel{background:linear-gradient(160deg,#ffffff 0%,#f6f8fb 62%,#eef2f7 100%);border:1px solid #dbe2ec;border-radius:14px;padding:18px 20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 8px rgba(15,23,42,.05);min-width:0}
.sci-panel-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;margin-bottom:12px;padding-bottom:9px;border-bottom:1px solid #e2e8f0}
.sci-panel-head h3{font-size:15px;margin:0;color:#1e293b;white-space:nowrap}
.sci-panel-head p{font-size:12px;color:#64748b;margin:0;line-height:1.6}
.sci-stage{min-width:0}
.sci-search{margin-bottom:12px}
.sci-search .tool-input{width:100%;box-sizing:border-box}
.sci-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.sci-card{text-align:left;border:1px solid #dbe2ec;border-radius:10px;background:linear-gradient(160deg,#fff,#f6f8fb);padding:12px 14px;cursor:pointer;transition:.15s;min-width:0}
.sci-card:hover{border-color:#818cf8;background:#f5f3ff;transform:translateY(-1px)}
.sci-card b{display:block;font-size:13px;color:#1e293b;margin-bottom:4px}
.sci-card span{display:block;font-size:11px;line-height:1.6;color:#64748b}
.sci-back{margin-bottom:10px}
.sci-back button{border:1px solid #cbd5e1;background:#fff;border-radius:8px;color:#475569;font-size:12px;padding:6px 12px;cursor:pointer}
.sci-back button:hover{border-color:#6366f1;color:#4338ca;background:#eef2ff}
.sci-calc{border:1px solid #e2e8f0;border-radius:11px;background:#fff;padding:14px}
.sci-calc h4{font-size:14px;margin:0 0 4px;color:#1e293b}
.sci-calc .sci-formula{font-size:11px;color:#94a3b8;margin:0 0 12px;line-height:1.6}
.sci-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;align-items:center}
.sci-field{display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0;font-size:12px;color:#475569}
.sci-field>span{flex:0 1 auto;min-width:0;max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.sci-field .tool-input,.sci-field .tool-select{flex:1 1 0;width:auto;min-width:0;box-sizing:border-box}
.sci-field-wide{grid-column:1/-1}
.sci-unit{font-size:11px;color:#94a3b8;white-space:nowrap}
.sci-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.sci-result{margin-top:14px}
.sci-out{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.sci-out>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:9px 11px;min-width:0}
.sci-out span{display:block;font-size:11px;color:#94a3b8;margin-bottom:3px}
.sci-out b{display:block;font-size:14px;color:#1d4ed8;word-break:break-all}
.sci-note{font-size:11px;color:#94a3b8;line-height:1.7;margin:10px 0 0}
.sci-const{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:9px}
.sci-const-item{border:1px solid #e2e8f0;border-radius:9px;background:#fff;padding:10px 12px;min-width:0}
.sci-const-item b{display:block;font-size:13px;color:#1e293b;margin-bottom:2px}
.sci-const-item .sym{font-size:11px;color:#4f46e5;font-weight:700}
.sci-const-item span{display:block;font-size:11px;color:#64748b;line-height:1.6;word-break:break-all}
.sci-local{text-align:center;font-size:11px;line-height:1.7;color:#94a3b8;margin-top:16px;padding:10px 12px;border-top:1px solid #e2e8f0}
@media(max-width:860px){.sci-tabs{justify-content:flex-start}.sci-tab{flex:1 1 auto;text-align:center}}
@media(max-width:520px){.sci-panel{padding:14px}.sci-tab{font-size:12px;padding:8px 10px}.sci-fields{grid-template-columns:1fr}.sci-field>span{max-width:140px}}
