/* 工具狗补充工具通用样式（本地、响应式） */
.tg-tool{display:flex;flex-direction:column;gap:14px}
.tg-tool-head h2{font-size:20px;margin:0 0 6px;color:var(--text,#1f2937)}
.tg-tool-head p{margin:0;color:var(--muted,#6b7280);font-size:13px;line-height:1.65}
.tg-panel{padding:16px;border:1px solid var(--border,#e5e7eb);border-radius:14px;background:var(--panel,#fff)}
.tg-row{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.tg-row:last-child{margin-bottom:0}
.tg-row>label{font-size:13px;font-weight:600;color:var(--text,#374151)}
.tg-row>small{font-size:12px;color:var(--muted,#9ca3af)}
.tg-row input,.tg-row select,.tg-row textarea{width:100%;box-sizing:border-box}
.tg-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.tg-tool-tip{padding:12px 14px;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:12.5px;line-height:1.7;border:1px solid #fed7aa}
.tg-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.tg-result{display:flex;flex-direction:column;gap:5px;padding:13px 14px;border:1px solid var(--border,#e5e7eb);border-radius:12px;background:var(--soft,#f9fafb)}
.tg-result>span{font-size:12px;color:var(--muted,#6b7280)}
.tg-result>b{font-size:19px;color:#0f766e;word-break:break-all;line-height:1.4}
.tg-result>b em{font-style:normal;font-size:12px;margin-left:4px;color:var(--muted,#6b7280)}
.tg-result>small{font-size:11.5px;color:var(--muted,#9ca3af);line-height:1.5}
.tg-result-wide{grid-column:1/-1}
.tg-result-wide textarea{margin-top:4px;font-size:12.5px}
.tg-mini-actions{display:flex;gap:8px;margin-top:8px}
.tg-empty{padding:24px;text-align:center;color:var(--muted,#9ca3af);font-size:13px}
.tg-formula{margin-top:12px;padding-top:10px;border-top:1px dashed var(--border,#e5e7eb);font-size:12px;color:var(--muted,#6b7280);line-height:1.7}
.tg-search-row{display:flex;gap:10px;margin-bottom:12px}
.tg-search-row .tool-input{flex:1}
.tg-table-info{font-size:12px;color:var(--muted,#6b7280);margin-bottom:8px}
.tg-table-wrap{overflow:auto;max-height:560px;border:1px solid var(--border,#e5e7eb);border-radius:10px}
.tg-table{border-collapse:collapse;width:100%;font-size:12.5px}
.tg-table th,.tg-table td{padding:8px 10px;border-bottom:1px solid var(--border,#e5e7eb);text-align:left;white-space:nowrap}
.tg-table th{position:sticky;top:0;background:var(--soft,#f3f4f6);font-weight:600;z-index:1}
.tg-table tr:last-child td{border-bottom:0}
.tg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tg-card{padding:12px;border:1px solid var(--border,#e5e7eb);border-radius:12px;background:var(--panel,#fff);cursor:pointer;transition:.15s}
.tg-card:hover{border-color:#0ea5e9;transform:translateY(-1px)}
.tg-card b{display:block;font-size:14px;margin-bottom:4px}
.tg-card small{color:var(--muted,#6b7280);font-size:11.5px}
.tg-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.tg-swatch{padding:8px;border-radius:10px;border:1px solid var(--border,#e5e7eb);font-size:11px;cursor:pointer}
.tg-swatch i{display:block;height:38px;border-radius:6px;margin-bottom:5px}
.tg-canvas{width:100%;max-width:560px;border:1px solid var(--border,#e5e7eb);border-radius:12px;background:#fff}
.tg-code{font-family:ui-monospace,Consolas,monospace;font-size:12px;background:var(--soft,#f3f4f6);padding:12px;border-radius:10px;overflow:auto;white-space:pre-wrap;word-break:break-all}
.tg-screen-test{min-height:260px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;font-weight:700}
@media(max-width:640px){
  .tg-panel{padding:12px}
  .tg-tool-head h2{font-size:18px}
  .tg-results{grid-template-columns:1fr}
  .tg-search-row{flex-wrap:wrap}
  .tg-search-row .btn{flex:1}
  .tg-table th,.tg-table td{padding:7px 8px}
}
