/* === 哎呀 AI 工具箱 工具 UI 样式 === 2026-08-27 by 小艾6号 */
.tool-app {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:24px;
  margin:18px 0 24px;
  box-shadow:0 6px 24px rgba(15,23,42,.06);
}
.tool-app h2 { margin:0 0 12px; font-size:1.35rem; color:#0f172a; }
.tool-app .muted { color:#64748b; font-size:.9rem; margin-bottom:16px; }

.dropzone {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:2px dashed #cbd5e1;
  border-radius:14px;
  padding:32px 16px;
  background:#f8fafc;
  cursor:pointer;
  transition:all .2s;
}
.dropzone:hover, .dropzone.drag {
  border-color:#3b82f6;
  background:#eff6ff;
}
.dropzone .ic { font-size:2.4rem; }
.dropzone .txt { color:#475569; }
.dropzone input[type=file] { display:none; }
.dropzone.has-file {
  padding:14px;
  border-style:solid;
  border-color:#3b82f6;
  background:#eff6ff;
  flex-direction:row;
  justify-content:space-between;
}
.dropzone.has-file img {
  max-height:60px; border-radius:8px;
}
.dropzone.has-file .clear { font-size:.85rem; color:#ef4444; cursor:pointer; }

.params {
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}
.params label { display:flex; flex-direction:column; gap:6px; font-size:.9rem; color:#334155; }
.params input[type=range], .params select {
  width:100%; padding:6px 8px; border:1px solid #e2e8f0; border-radius:8px; background:#fff;
}
.params input[type=number] { padding:6px 8px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.params .hint { font-size:.78rem; color:#94a3b8; }

.cta-row { margin-top:18px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.btn-go {
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:#fff; border:none; padding:10px 22px;
  border-radius:10px; cursor:pointer; font-size:1rem; font-weight:600;
  box-shadow:0 4px 14px rgba(59,130,246,.25);
  transition:all .15s;
}
.btn-go:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 6px 18px rgba(59,130,246,.35); }
.btn-go:disabled { background:#94a3b8; cursor:not-allowed; box-shadow:none; }

.status { font-size:.92rem; color:#475569; min-height:1.4em; }
.status.error { color:#dc2626; }
.status.warn  { color:#d97706; }
.status.ok    { color:#16a34a; }
.progress {
  width:100%; height:6px; background:#e2e8f0; border-radius:99px; overflow:hidden; margin-top:8px;
}
.progress > div {
  height:100%; width:0%; background:linear-gradient(90deg,#3b82f6,#06b6d4);
  transition:width .25s;
}

.result {
  margin-top:22px;
  padding:18px;
  border:1px solid #d1fae5;
  background:linear-gradient(135deg,#f0fdf4 0%, #ecfdf5 100%);
  border-radius:14px;
}
.result .title {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;
}
.result .title strong { color:#065f46; font-size:1.05rem; }
.result .images { display:flex; flex-wrap:wrap; gap:10px; }
.result img.full { max-width:100%; border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,.1); }
.result .thumbs img { max-height:120px; border-radius:8px; border:1px solid #a7f3d0; }
.result .text-block {
  background:#fff; border:1px solid #a7f3d0; border-radius:8px;
  padding:12px; font-family:ui-monospace,monospace; white-space:pre-wrap; word-break:break-word;
  max-height:280px; overflow:auto; color:#0f172a;
}
.result .actions { margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }
.result .btn-dl, .result .btn-copy {
  display:inline-flex; align-items:center; gap:6px;
  background:#16a34a; color:#fff; padding:8px 16px;
  border-radius:8px; text-decoration:none; font-weight:500;
}
.result .btn-copy { background:#0ea5e9; border:none; cursor:pointer; }
.result .btn-dl:hover { background:#15803d; }
.result .btn-copy:hover { background:#0284c7; }

.preview-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px; }
.preview-grid figure { margin:0; text-align:center; }
.preview-grid figcaption { font-size:.82rem; color:#64748b; margin-top:6px; }
.preview-grid img { max-width:100%; border-radius:8px; border:1px solid #e2e8f0; }

@media (max-width:640px) {
  .preview-grid { grid-template-columns:1fr; }
  .params { grid-template-columns:1fr; }
}
