/* Generic AI Tool UI — 自包含浅色工具样式，与 regex.css 同语言 */
.tk-main { padding: 34px 0 64px; }
.tk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.tk-eyebrow { color: #2563eb; font-size: 12px; font-weight: 700; letter-spacing: .12em; margin: 0 0 8px; }
.tk-main h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; color: #0f172a; }
.tk-lede { font-size: 16px; line-height: 1.65; color: #475569; max-width: 760px; margin: 0 0 26px; }
.tk-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(15,23,42,.04); margin-bottom: 18px; }
.tk-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 0 0 8px; }
.tk-label:not(:first-child) { margin-top: 18px; }
.tk-input, .tk-select, .tk-textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 11px 12px; font-size: 14px; line-height: 1.55; color: #0f172a; outline: 0; background: #fff;
}
.tk-input, .tk-textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tk-input:focus, .tk-select:focus, .tk-textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.tk-textarea { resize: vertical; }
.tk-check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #334155; margin: 0 18px 8px 0; cursor: pointer; }
.tk-check input { width: 16px; height: 16px; accent-color: #2563eb; }
.tk-actions { display: flex; gap: 10px; margin: 20px 0 6px; flex-wrap: wrap; align-items: center; }
.tk-btn { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tk-btn:hover { border-color: #94a3b8; }
.tk-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.tk-btn.primary:hover { background: #1d4ed8; }
.tk-btn.primary:disabled { opacity: .6; cursor: not-allowed; }
.tk-btn.ghost { background: transparent; }
.tk-quota { font-size: 12px; color: #64748b; margin-left: auto; }
.tk-status { font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.tk-status.ok { color: #059669; }
.tk-status.err, .tk-status.warn { color: #dc2626; }
.tk-output-wrap { margin-top: 6px; }
.tk-output-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.tk-output {
  width: 100%; box-sizing: border-box; min-height: 160px; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
  line-height: 1.6; color: #0f172a; background: #f8fafc; resize: vertical; outline: 0; white-space: pre-wrap; word-break: break-word;
}
.tk-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 18px 20px; background: linear-gradient(135deg,#f8fafc,#eff6ff); margin: 28px 0; }
.tk-upgrade b { color: #0f172a; }
.tk-upgrade p { color: #64748b; font-size: 13px; margin: 4px 0 0; }
.tk-faq { margin-top: 36px; }
.tk-faq h2 { font-size: 20px; color: #0f172a; margin: 0 0 14px; }
.tk-faq dl { margin: 0; }
.tk-faq dt { font-weight: 700; color: #1e293b; margin: 16px 0 4px; font-size: 15px; }
.tk-faq dd { color: #475569; font-size: 14px; line-height: 1.6; margin: 0; }
.tk-faq code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.tk-more { margin-top: 36px; border-top: 1px solid #e2e8f0; padding-top: 22px; }
.tk-more h2 { font-size: 18px; color: #0f172a; margin: 0 0 12px; }

/* ── 工具图标与卡片网格（hub + More tools 共用）── */
.tk-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  background: color-mix(in srgb, currentColor 10%, #fff);
  border: 1px solid color-mix(in srgb, currentColor 22%, #fff);
}
.tk-chip-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-grid {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
}
.tk-tool {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border: 1px solid #e2e8f0; border-radius: 10px;
  color: #1e293b; font-size: 13.5px; font-weight: 600; text-decoration: none; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tk-tool:hover {
  border-color: #2563eb; background: #f8fafc; text-decoration: none;
  box-shadow: 0 2px 8px rgba(37,99,235,.10); transform: translateY(-1px);
}
.tk-tool-name { flex: 1 1 auto; line-height: 1.35; }
.tk-ai-badge {
  flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 3px 7px; border-radius: 999px;
}
.tk-tool-all { justify-content: center; color: #1d4ed8; border-style: dashed; }
.tk-hub-sec { margin-top: 30px; }
.tk-hub-sec h2 { font-size: 21px; color: #0f172a; margin: 0; }
.tk-hub-sub { color: #64748b; font-size: 13.5px; margin: 4px 0 0; }

/* 标题旁图标 */
.tk-h1-icon { display: flex; align-items: center; gap: 13px; }
.tk-h1-icon .tk-chip { width: 42px; height: 42px; border-radius: 11px; }
.tk-h1-icon .tk-chip svg { width: 22px; height: 22px; }

@media (max-width: 720px) { .tk-main h1 { font-size: 27px; } .tk-card { padding: 16px; } }
