/* 网站套装 · 样板间（液态奶油语言） */

.kt-hero {
  max-width: 1180px; margin: 0 auto;
  padding: 150px 22px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.kt-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 750; letter-spacing: -.02em; line-height: 1.12;
  animation: rise .8s .08s var(--ease-expo) both;
}
.kt-sub {
  max-width: 640px; font-size: 15px; color: var(--muted);
  animation: rise .8s .16s var(--ease-expo) both;
}
.kt-ask {
  display: flex; gap: 10px; width: min(560px, 100%);
  animation: rise .8s .24s var(--ease-expo) both;
}
.kt-ask input {
  flex: 1; padding: 13px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-family: inherit; font-size: 14.5px;
}
.kt-ask input:focus { outline: none; border-color: var(--muted); }
.kt-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  animation: rise .8s .32s var(--ease-expo) both; }
.kt-chip {
  padding: 6px 15px; border-radius: var(--r-pill); cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  background: var(--glass); color: var(--muted); border: 1px solid var(--line);
  transition: transform .25s var(--ease-spring), color .2s;
}
.kt-chip:hover { color: var(--ink); transform: translateY(-1px); }

/* ── 样板间 ── */
.kt-kit { margin-top: 26px; animation: rise .6s var(--ease-expo) both; }
.kt-kit-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.kt-kit-name { font-size: 24px; font-weight: 750; letter-spacing: -.01em; }
.kt-kit-style { font-size: 12.5px; color: var(--muted); }
.kt-altkits { display: flex; gap: 8px; margin: 10px 0 22px; flex-wrap: wrap; }

.kt-roles { display: flex; flex-direction: column; gap: 14px; }
.kt-role {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: stretch;
  padding: 12px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease-spring), box-shadow .35s ease;
}
.kt-role:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.kt-role-label {
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  padding-left: 8px;
}
.kt-role-label b { font-size: 14.5px; font-weight: 700; }
.kt-role-label span { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }

.kt-slot { display: flex; gap: 14px; align-items: center; min-width: 0; }
.kt-thumb {
  flex: 0 0 168px; height: 105px; border-radius: var(--r-inner); overflow: hidden;
  background: var(--bg-soft); position: relative;
}
.kt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kt-slot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.kt-slot-name { font-size: 14px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-slot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kt-mini {
  padding: 6px 14px; border-radius: var(--r-pill); cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 650;
  background: var(--glass); color: var(--ink); border: 1px solid var(--line);
  transition: transform .25s var(--ease-spring), background .2s;
}
.kt-mini:hover { transform: scale(1.04); background: var(--glass-strong); }
.kt-mini.primary { background: var(--accent); color: var(--accent-fg); border: none; }

/* ── HEP 装配规格 ── */
.kt-spec { margin-top: 30px; }
.kt-spec pre {
  margin-top: 12px; padding: 18px 20px; border-radius: var(--r-inner);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.6; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow-y: auto;
}
.kt-spec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .kt-role { grid-template-columns: 1fr; }
  .kt-thumb { flex-basis: 130px; height: 82px; }
}

/* ── 需求对话 ── */
.kt-chat {
  width: min(640px, 100%); margin-top: 18px; padding: 18px;
  border-radius: var(--r-card); text-align: left;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: rise .5s var(--ease-expo) both;
}
.kt-chat-log { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.kt-msg { max-width: 86%; padding: 10px 16px; border-radius: 18px; font-size: 13.5px; line-height: 1.55; }
.kt-msg.bot { align-self: flex-start; background: var(--glass); border: 1px solid var(--line); }
.kt-msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-fg); }
.kt-msg.opts { align-self: flex-start; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; background: none; border: 0; }
.kt-chip.active { background: var(--accent); color: var(--accent-fg); }

/* ── GIF 挑选弹窗 ── */
.kt-picker { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.kt-picker-backdrop { position: absolute; inset: 0; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.kt-picker-card {
  position: relative; z-index: 1; width: min(980px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 24px 26px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  animation: dg-pop .45s var(--ease-expo) both;
}
.kt-picker-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kt-picker-head h3 { flex: 1; font-size: 18px; font-weight: 750; }
.kt-picker-head input {
  width: 200px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-family: inherit;
}
.kt-pick-label { font-size: 12.5px; font-weight: 750; color: var(--muted); margin: 14px 0 8px; }
.kt-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kt-pick-card {
  cursor: pointer; padding: 8px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.kt-pick-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lift); }
.kt-pick-card img, .kt-pick-card .glass-ph {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-radius: 9px; overflow: hidden; position: relative;
}
.kt-pick-card span { display: block; padding: 7px 3px 1px; font-size: 11.5px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-pick-empty { color: var(--muted); font-size: 12.5px; padding: 12px 0; }

/* ── 全屏预览 ── */
.kt-preview { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; }
.kt-preview-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-bottom: 1px solid var(--line); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.kt-preview-bar b { flex: 1; font-size: 14px; }
.kt-preview-box { flex: 1; min-height: 0; display: flex; }
.kt-preview-box iframe { flex: 1; border: 0; background: #fff; }
