/* 在线工具箱样式 —— 与 ft2026 主题变量保持一致 */
.tool-shell{background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:12px;margin:18px 0 24px;overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.04);}
.tool-head{display:flex;align-items:center;gap:12px;padding:14px 18px;background:linear-gradient(90deg,#eff6ff,#f8fbff);border-bottom:1px solid #e0ecff;}
.tool-ico{width:38px;height:38px;flex:0 0 38px;display:flex;align-items:center;justify-content:center;background:#2563eb;color:#fff;border-radius:9px;font-size:14px;font-weight:700;font-family:ui-monospace,Menlo,Consolas,monospace;}
.tool-head-txt strong{display:block;font-size:15px;color:#111827;}
.tool-head-txt small{display:block;color:#6b7280;font-size:12px;}
.tool-body{padding:16px 18px 18px;}
.tool-ta{width:100%;min-height:150px;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;font:13px/1.7 ui-monospace,Menlo,Consolas,"Courier New",monospace;color:#1f2937;background:#fbfcfe;resize:vertical;display:block;}
.tool-ta:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.1);}
.tool-ta.out{background:#f8fafc;color:#0f172a;margin-top:10px;}
.tool-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;}
.tool-btn{display:inline-block;background:#2563eb;color:#fff;border:1px solid #2563eb;padding:8px 15px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;line-height:1.4;text-decoration:none;}
.tool-btn:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff;}
.tool-btn.ghost{background:#fff;color:#1d4ed8;border-color:#c7dbfb;}
.tool-btn.ghost:hover{background:#eff6ff;}
.tool-msg{margin-top:10px;font-size:13px;line-height:1.6;padding:8px 12px;border-radius:8px;display:none;}
.tool-msg.ok{display:block;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;}
.tool-msg.err{display:block;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;}
.tool-msg:empty{display:none;}
.tool-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.tool-pane{min-width:0;}
.tool-lab{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:7px;}
.tool-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px;}
.tool-input{flex:1 1 200px;min-width:0;padding:9px 12px;border:1px solid #dbe3ee;border-radius:8px;font-size:14px;color:#1f2937;background:#fff;}
.tool-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);}
.tool-sel{padding:8px 10px;border:1px solid #dbe3ee;border-radius:8px;font-size:13px;background:#fff;color:#1f2937;}
.tool-file{font-size:13px;color:#374151;max-width:100%;}
.tool-pick{width:44px;height:38px;padding:2px;border:1px solid #dbe3ee;border-radius:8px;background:#fff;cursor:pointer;}
.tool-out{margin-top:10px;font-size:13px;}
.tool-hint{color:#6b7280;font-size:12.5px;margin:0;line-height:1.7;}
.tool-table{width:100%;border-collapse:collapse;font-size:13px;}
.tool-table th{text-align:left;font-weight:600;color:#4b5563;background:#f8fafc;padding:8px 10px;border:1px solid #e5e7eb;white-space:nowrap;width:132px;vertical-align:top;}
.tool-table td{padding:8px 10px;border:1px solid #e5e7eb;color:#1f2937;word-break:break-all;}
.tool-table code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;background:#f1f5f9;padding:1px 5px;border-radius:4px;}
.tool-check{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#374151;cursor:pointer;user-select:none;}
.tool-checks{display:flex;flex-wrap:wrap;gap:14px;margin:4px 0 12px;}
.tool-range{flex:1 1 160px;min-width:120px;accent-color:#2563eb;}
.tool-badge{display:inline-block;min-width:34px;text-align:center;background:#eff6ff;color:#1d4ed8;border:1px solid #c7dbfb;border-radius:6px;padding:2px 8px;font-size:13px;font-weight:600;}
.tool-list{margin-top:12px;display:grid;gap:8px;}
.tool-pw{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:8px 12px;}
.tool-pw code{flex:1;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;color:#0f172a;word-break:break-all;}
.tool-mini{background:#fff;border:1px solid #c7dbfb;color:#1d4ed8;border-radius:6px;padding:4px 10px;font-size:12px;cursor:pointer;}
.tool-mini:hover{background:#eff6ff;}
.cl-preview{margin:12px 0;height:74px;border-radius:10px;border:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:600;letter-spacing:.5px;background:#2563eb;color:#fff;transition:background .2s;}
.cl-shades{display:flex;gap:4px;margin-top:10px;flex-wrap:wrap;}
.cl-shades i{flex:1 1 26px;height:26px;border-radius:5px;border:1px solid rgba(0,0,0,.06);min-width:22px;}
.tool-hl{margin-top:12px;padding:12px 14px;border:1px dashed #cbd5e1;border-radius:9px;background:#fcfdff;font:13px/1.8 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-all;max-height:320px;overflow:auto;color:#334155;}
.tool-hl mark{background:#fde68a;color:#78350f;padding:0 1px;border-radius:2px;}
.tool-slash{color:#9ca3af;font-family:ui-monospace,Menlo,Consolas,monospace;}
.tool-related{margin:26px 0 10px;border-top:1px solid var(--line,#e5e7eb);padding-top:18px;}
.tool-related h3{font-size:16px;margin:0 0 12px;}
.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.tool-card{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:10px;padding:14px;color:#1f2937;transition:.18s;}
.tool-card:hover{border-color:#93b4f7;box-shadow:0 6px 18px rgba(37,99,235,.1);transform:translateY(-2px);color:#1f2937;}
.tool-card-ico{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#eff6ff;color:#1d4ed8;border-radius:8px;font-size:12px;font-weight:700;font-family:ui-monospace,Menlo,Consolas,monospace;margin-bottom:4px;}
.tool-card strong{font-size:14px;color:#111827;}
.tool-card em{font-style:normal;font-size:12px;color:#6b7280;}
.tool-card-desc{font-size:12.5px;color:#4b5563;line-height:1.6;margin-top:4px;}
.tools-grid.big{grid-template-columns:repeat(2,1fr);gap:14px;}
.entry-content h2{font-size:19px;margin:26px 0 10px;padding-left:10px;border-left:4px solid #2563eb;line-height:1.4;}
.entry-content h3{font-size:16px;margin:18px 0 8px;}
.entry-content p{margin:0 0 12px;}
.entry-content ul,.entry-content ol{margin:0 0 14px;padding-left:22px;}
.entry-content li{margin-bottom:6px;}
.entry-content table{width:100%;border-collapse:collapse;font-size:13.5px;margin:14px 0;}
.entry-content th,.entry-content td{border:1px solid #e5e7eb;padding:8px 10px;text-align:left;}
.entry-content th{background:#f8fafc;font-weight:600;}

/* 覆盖主题里表格强制 460px 最小宽度：工具页正文表格改为自适应并可断行 */
.entry-content table{min-width:0;table-layout:fixed;margin:14px 0;}
.entry-content th,.entry-content td{word-break:break-word;overflow-wrap:anywhere;}
.entry-content thead th,.entry-content th{white-space:normal;}
.entry-content table code{white-space:normal;word-break:break-all;}
.tools-lede{font-size:15.5px;line-height:1.85;color:#374151;margin:0 0 18px;}
@media (max-width:900px){
  .tool-two{grid-template-columns:1fr;}
  .tools-grid,.tools-grid.big{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .tool-body{padding:14px;}
  .tool-head{padding:12px 14px;}
  .tool-table th{width:96px;font-size:12.5px;}
  .tool-table td{font-size:12.5px;}
  .tools-grid,.tools-grid.big{grid-template-columns:1fr;}
  .tool-ta{min-height:130px;}
  .tool-btn{padding:8px 12px;font-size:12.5px;}
}
