/* 拼图工坊 · 工具页样式（抠图 / 切图共用部分） */
:root {
  --kt-line: #eceef5;
}

.kt-hero {
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(255, 178, 107, .16), transparent 70%),
    radial-gradient(520px 240px at 88% 20%, rgba(106, 92, 255, .14), transparent 70%);
  border-bottom: 1px solid var(--kt-line);
}

.kt-head { max-width: 1120px; margin: 0 auto; padding: 46px 28px 26px; }
.kt-head h1 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -1px; line-height: 1.25; }
.kt-head h1 em {
  font-style: normal; background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kt-head p { margin: 14px 0 0; color: var(--muted); max-width: 640px; font-size: 15px; }
.kt-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.kt-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--kt-line); font-size: 12.5px; color: var(--ink-2);
}
.kt-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

.kt-wrap { max-width: 1120px; margin: 0 auto; padding: 26px 28px 70px; }

/* 上传区 */
.kt-drop {
  border: 2px dashed #d9dce8; border-radius: 22px; background: #fff;
  padding: 44px 24px; text-align: center; cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.kt-drop:hover, .kt-drop.drag { border-color: var(--brand); background: #fff8f5; }
.kt-drop .ico {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  background: #fff2ee; color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.kt-drop strong { display: block; font-size: 18px; }
.kt-drop span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.kt-drop-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* 预览棋盘格 */
.checker {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e7eaf2 25%, transparent 25%),
    linear-gradient(-45deg, #e7eaf2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7eaf2 75%),
    linear-gradient(-45deg, transparent 75%, #e7eaf2 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.kt-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.kt-pane {
  background: #fff; border: 1px solid var(--kt-line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.kt-pane .cap { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--kt-line); font-size: 13px; color: var(--muted); }
.kt-pane .cap b { color: var(--ink); font-size: 13.5px; }
.kt-view { min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.kt-view img { max-width: 100%; max-height: 460px; border-radius: 10px; }
.kt-view.checker img { border-radius: 8px; }

/* 进度 */
.kt-progress { margin: 24px auto 0; max-width: 520px; text-align: center; }
.kt-bar { height: 8px; border-radius: 999px; background: #eef0f7; overflow: hidden; }
.kt-bar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s ease; }
.kt-progress p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* 操作条 */
.kt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.kt-actions .spacer { flex: 1; }

/* 背景替换 */
.kt-bgrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.kt-swatch {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid #dfe2ec; padding: 0; position: relative;
}
.kt-swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.kt-swatch[data-bg="transparent"] { background-color: #fff; background-image: linear-gradient(45deg, #dfe3ec 25%, transparent 25%), linear-gradient(-45deg, #dfe3ec 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dfe3ec 75%), linear-gradient(-45deg, transparent 75%, #dfe3ec 75%); background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0; }
.kt-color { width: 38px; height: 32px; padding: 2px; border: 1px solid var(--kt-line); border-radius: 8px; background: #fff; }

/* 说明卡 */
.kt-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.kt-note { background: #fff; border: 1px solid var(--kt-line); border-radius: 16px; padding: 18px; }
.kt-note h3 { margin: 0 0 6px; font-size: 15px; }
.kt-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.kt-faq { margin-top: 34px; }
.kt-faq h2 { font-size: 20px; margin: 0 0 14px; }
.kt-faq details {
  background: #fff; border: 1px solid var(--kt-line); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 10px;
}
.kt-faq details summary { cursor: pointer; font-weight: 600; font-size: 14.5px; outline: none; }
.kt-faq details p { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

.kt-hidden { display: none !important; }

@media (max-width: 820px) {
  .kt-compare, .kt-notes { grid-template-columns: 1fr; }
  .kt-view { min-height: 220px; }
  .kt-head { padding: 28px 18px 18px; }
  .kt-wrap { padding: 18px 18px 50px; }
  .kt-drop { padding: 30px 16px; }
}
