/* 四个出海工具的结果区样式，外壳复用 studio.css 的 st-* / pn-* */

/* ---------- 通用块 ---------- */
.k-wrap { padding: 4px 2px 28px; }
.k-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.k-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.k-head .k-sub { font-size: 12.5px; color: var(--muted); }
.k-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.k-tag.ai { background: #eff6ff; color: #1d4ed8; }
.k-tag.local { background: #fffbeb; color: #92400e; }
.k-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12.5px; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.7; }
.k-note { background: #f8fafc; border-left: 3px solid #cbd5e1; font-size: 12.5px; color: #475569; border-radius: 0 8px 8px 0; padding: 10px 12px; margin-top: 16px; line-height: 1.75; }
.k-empty-line { color: var(--muted); font-size: 13px; }

/* ---------- 卡片 ---------- */
.k-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.k-card { border: 1px solid var(--st-line); border-radius: 12px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.k-card > .hd { padding: 11px 14px; background: #fbfcfe; border-bottom: 1px solid var(--st-line); display: flex; align-items: center; gap: 8px; }
.k-card > .hd b { font-size: 13.5px; }
.k-card > .hd .idx { width: 20px; height: 20px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.k-card > .bd { padding: 12px 14px 14px; flex: 1; }
.k-card .k-hook { font-size: 15px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }

/* ---------- 分镜表 ---------- */
.k-shots { display: flex; flex-direction: column; }
.k-shot { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--st-line); }
.k-shot:first-child { border-top: 0; }
.k-shot .t { flex: none; width: 62px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.k-shot .b { flex: 1; min-width: 0; }
.k-shot .b .l { font-size: 13px; font-weight: 600; line-height: 1.55; }
.k-shot .b .v { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.k-shot .b .s { display: inline-block; margin-top: 5px; font-size: 11.5px; background: #f1f5f9; color: #334155; border-radius: 5px; padding: 2px 7px; }

/* ---------- 关键词 / 搜索入口 ---------- */
.k-links { display: flex; flex-direction: column; gap: 8px; }
.k-link { display: flex; align-items: center; gap: 10px; border: 1px solid var(--st-line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); background: #fff; }
.k-link:hover { border-color: #bfdbfe; background: #f8fbff; }
.k-link .pf { flex: none; width: 74px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.k-link .kw { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-link .nt { font-size: 11.5px; color: var(--muted); display: none; }
.k-link .go { flex: none; font-size: 12px; color: var(--brand); font-weight: 700; }
@media (min-width: 900px) {
  .k-link .nt { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- 列表 ---------- */
.k-ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.9; color: #334155; }
.k-ul li::marker { color: var(--brand); }

/* ---------- 话术 ---------- */
.k-talk { border: 1px solid var(--st-line); border-radius: 10px; padding: 11px 13px; background: #fbfcfe; font-size: 13px; line-height: 1.75; margin-bottom: 9px; position: relative; }
.k-talk .lb { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }

/* ---------- 站点结构 ---------- */
.k-pages { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.k-page { border: 1px solid var(--st-line); border-radius: 9px; padding: 7px 12px; font-size: 12.5px; background: #fff; }
.k-page b { font-weight: 700; }
.k-page span { color: var(--muted); margin-left: 6px; font-size: 11.5px; }
.k-sec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; }
.k-sec { border: 1px solid var(--st-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.k-sec b { display: block; font-size: 13px; margin-bottom: 3px; }
.k-sec span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 复制按钮 ---------- */
.k-copy { border: 0; background: transparent; color: var(--muted); font-size: 11.5px; cursor: pointer; padding: 2px 4px; font-family: inherit; }
.k-copy:hover { color: var(--brand); }

/* ---------- 视频生成（分镜逐镜出片） ---------- */
.k-vid-btn { margin-top: 7px; border: 1px solid #dbeafe; background: #f5f9ff; color: #1d4ed8; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 7px; cursor: pointer; font-family: inherit; }
.k-vid-btn:hover { background: #eff6ff; border-color: #93c5fd; }
.k-vid-btn:disabled { opacity: .5; cursor: default; }
.vj-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.vj-card { border: 1px solid var(--st-line); border-radius: 12px; background: #fff; overflow: hidden; }
.vj-card > .vj-hd { padding: 10px 14px; background: #fbfcfe; border-bottom: 1px solid var(--st-line); display: flex; align-items: center; gap: 8px; }
.vj-hd b { font-size: 13px; }
.vj-hd .vj-meta { flex: 1; font-size: 11.5px; color: var(--muted); }
.vj-st { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.vj-st.running { background: #eff6ff; color: #1d4ed8; }
.vj-st.done { background: #f0fdf4; color: #15803d; }
.vj-st.failed { background: #fef2f2; color: #b91c1c; }
.vj-bd { padding: 12px 14px 14px; }
.vj-video { width: 100%; border-radius: 8px; background: #000; display: block; }
.vj-dl { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.vj-wait { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 30px 0; }
.vj-spin { width: 16px; height: 16px; border: 2px solid #e2e8f0; border-top-color: var(--brand); border-radius: 50%; animation: vjspin .9s linear infinite; }
@keyframes vjspin { to { transform: rotate(360deg); } }
.vj-err { font-size: 12.5px; color: #b91c1c; line-height: 1.65; padding: 6px 0; }

@media (max-width: 620px) {
  .k-cards { grid-template-columns: 1fr; }
  .k-wrap { padding-bottom: 40px; }
}
