
/* ---------- 生成向导：风格选择 ---------- */
.gen-style { margin: 4px 0 14px; }
.gen-style-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gen-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gen-preset { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg-card); }
.gen-preset.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.gen-preset input { position: absolute; opacity: 0; pointer-events: none; }
.gp-swatch { height: 30px; border-radius: 6px; background: linear-gradient(100deg, var(--pb), color-mix(in srgb, var(--pb) 38%, var(--pbg))); }
.gp-name { font-size: 13px; font-weight: 600; }
.gp-meta { font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) { .gen-presets { grid-template-columns: 1fr 1fr; } }
/* 最后一步：6 版式 × 6 风格 × 12 色 */
.gen-picker {
  position: relative; overflow: hidden; margin: 16px 0 16px; padding: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 16px; background: linear-gradient(160deg, #fff 0%, #f8f8ff 58%, #f4f6ff 100%);
}
.gen-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gen-picker-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.gen-picker-title b { font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.gen-picker-count { flex: none; font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.gen-picker-desc { margin: 9px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.gen-group { margin-top: 18px; }
.gen-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.gen-group-head b { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--navy); }
.gen-group-head b i { font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; color: var(--brand); }
.gen-group-head span { font-size: 11px; color: var(--muted); }
.gen-art-grid, .gen-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gen-art .gp-preview { background: linear-gradient(135deg, color-mix(in srgb, var(--pb) 12%, #fff), #fff); }
.gen-art .gp-preview i:nth-child(1) { background: var(--pb); opacity: .9; }
.gen-art .gp-preview i:nth-child(2) { background: var(--pb); opacity: .32; }
.gen-art .gp-preview i:nth-child(3) { background: var(--pb); opacity: .7; }
.gen-art .gp-name em { margin-right: 6px; font-style: normal; font-size: 9px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.gen-preset:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.gen-preset > small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.gen-fx { min-height: 88px; justify-content: space-between; }
.gen-fx .gp-name { font-size: 13px; }
.gen-colors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.gen-color { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.gen-color:hover { background: #fff; border-color: var(--line); }
.gen-color:has(input:checked) { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 10%, transparent); }
.gen-color span { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); }
.gen-color em { font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8.5px; color: var(--muted); }
@media (max-width: 760px) {
  .gen-picker { padding: 15px 13px; }
  .gen-picker-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .gen-art-grid, .gen-style-grid { grid-template-columns: 1fr 1fr; }
  .gen-colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .gen-art-grid, .gen-style-grid { grid-template-columns: 1fr; }
}


.gen-research { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.gen-research b { color: var(--navy); font-weight: 700; }
.gen-research a { color: var(--brand); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---------- 生成向导：AI 自动设计 ---------- */
.gen-auto {
  position: relative; overflow: hidden; margin: 14px 0 16px; padding: 20px 20px 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(110% 150% at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 58%),
    radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 60%),
    var(--bg-card);
}
.gen-auto::after {
  content: "AI"; position: absolute; right: -10px; bottom: -28px;
  font-size: 104px; font-weight: 900; letter-spacing: -.08em; line-height: 1;
  color: color-mix(in srgb, var(--brand) 9%, transparent); pointer-events: none;
}
.gen-auto-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.gen-auto-head b { font-size: 15.5px; color: var(--navy); letter-spacing: -.01em; }
.gen-auto-badge {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.gen-auto-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.gen-auto-desc {
  position: relative; z-index: 1; max-width: 620px; margin: 9px 0 0;
  color: var(--muted); font-size: 12.5px; line-height: 1.8;
}
.gen-auto-points {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 14px;
}
.gen-auto-points span {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 9px 10px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg-card) 78%, transparent);
  color: var(--ink); font-size: 11.5px; line-height: 1.45;
}
.gen-auto-points i {
  flex: none; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px; font-weight: 700; color: var(--brand); opacity: .8;
}
.gen-auto-note {
  position: relative; z-index: 1; margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
  color: var(--muted); font-size: 11.5px; line-height: 1.65;
}
.gen-auto-note::before { content: "首屏规则 "; color: var(--navy); font-weight: 700; }
@media (max-width: 680px) {
  .gen-auto { padding: 16px 14px; }
  .gen-auto-points { grid-template-columns: 1fr; }
  .gen-auto::after { font-size: 78px; bottom: -18px; }
}

/* ---------- 搜索确认式生成 ---------- */
.gen-profile{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--soft);margin-bottom:14px}
.gen-profile-main b{font-size:16px;color:var(--navy)}
.gen-profile-main p{margin:6px 0 0;line-height:1.7;color:var(--ink)}
.gen-profile-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.gen-presets-12{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.gen-preset .gp-preview{height:52px;border-radius:8px;overflow:hidden;position:relative;display:block;background:linear-gradient(135deg,#eef2ff,#fff)}
.gen-preset .gp-preview i{position:absolute;display:block;border-radius:2px}
.gen-preset .gp-preview i:nth-child(1){left:8px;top:8px;width:44%;height:12px;background:currentColor;opacity:.85}
.gen-preset .gp-preview i:nth-child(2){left:8px;top:26px;width:64%;height:7px;background:currentColor;opacity:.35}
.gen-preset .gp-preview i:nth-child(3){right:8px;bottom:8px;width:24px;height:18px;background:currentColor;opacity:.7}
.gen-colors{display:flex;flex-wrap:wrap;gap:10px}
.gen-color{position:relative;cursor:pointer}
.gen-color input{position:absolute;opacity:0;pointer-events:none}
.gen-color span{display:block;width:30px;height:30px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 2px #fff,0 0 0 1px var(--line)}
.gen-color input:checked+span{box-shadow:inset 0 0 0 2px #fff,0 0 0 3px var(--c)}

/* 12 风格缩略图 */
.gp-style-gov .gp-preview{background:linear-gradient(135deg,#7f1220,#b0182b);color:#f7d9b8}
.gp-style-tech .gp-preview{background:linear-gradient(135deg,#0b1430,#3b5bfd);color:#bcd0ff}
.gp-style-vivid .gp-preview{background:linear-gradient(135deg,#7a3cff,#39d3c2);color:#fff}
.gp-style-minimal .gp-preview{background:#fff;color:#111;border:1px solid #111}
.gp-style-warm .gp-preview{background:linear-gradient(135deg,#ffe3cc,#ffd7c2);color:#a34a28}
.gp-style-pixel .gp-preview{background:repeating-conic-gradient(#d8ffe8 0 25%,#f7fff9 0 50%) 0 0/12px 12px;color:#0b1f14;border:2px solid #0b1f14}
.gp-style-cyber .gp-preview{background:linear-gradient(135deg,#070b16,#0e3a5c);color:#22d3ee}
.gp-style-editorial .gp-preview{background:#f7f2e9;color:#9a3412;border:1px solid #1c1917}
.gp-style-glass .gp-preview{background:linear-gradient(135deg,#c7d2fe,#fbcfe8,#bae6fd);color:#4f46e5}
.gp-style-brutal .gp-preview{background:#facc15;color:#111;border:2px solid #111}
.gp-style-guochao .gp-preview{background:linear-gradient(135deg,#2a120c,#7f1d1d);color:#e6c98a}
.gp-style-future .gp-preview{background:#05070d;color:#a3e635;border:1px solid #1d2a1a}

/* 内容确认单（三轮检索后） */
.gen-content-sheet{margin-top:14px;border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#fff);border-radius:14px;padding:14px}
.gcs-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.gcs-head b{font-size:14px}
.gcs-lock{font-size:11px;color:#047857;background:#d1fae5;border-radius:99px;padding:3px 8px}
.gcs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gcs-grid>div{background:#fff;border:1px solid #e8eef8;border-radius:10px;padding:8px 10px}
.gcs-grid span{display:block;font-size:11px;color:#64748b;margin-bottom:2px}
.gcs-grid b{font-size:12px;line-height:1.5;word-break:break-word}
.gcs-excluded{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:9px;font-size:11px;color:#9a3412}
.gcs-excluded b{margin-right:2px}
.gcs-excluded span{background:#fff7ed;border:1px solid #fed7aa;border-radius:99px;padding:2px 7px}
.gcs-summary{margin-top:10px}
.gcs-summary b,.gcs-lists span{display:block;font-size:11px;color:#64748b;margin-bottom:3px}
.gcs-summary p{font-size:12px;line-height:1.75;color:#334155;margin:0}
.gcs-lists{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.gcs-lists>div{background:#fff;border:1px solid #e8eef8;border-radius:10px;padding:8px}
.gcs-lists em{display:block;font-style:normal;font-size:11px;color:#334155;line-height:1.6}
.gcs-lists small{font-size:11px;color:#94a3b8}
@media(max-width:680px){.gcs-grid{grid-template-columns:1fr}.gcs-lists{grid-template-columns:1fr}}

/* AI 首页内容方案（选版式之前） */
.content-plan-wrap{margin-top:16px;border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#fff);border-radius:16px;padding:16px}
.cp-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.cp-head b{display:block;font-size:15px;margin-bottom:3px}
.cp-head span{font-size:11px;color:#64748b}
.cp-badge{flex:none;background:#fef3c7;color:#92400e;border:1px solid #fde68a;border-radius:99px;padding:3px 9px;font-size:11px}
.cp-purpose{font-size:12px;color:#475569;line-height:1.7;margin:8px 0 12px}
.cp-hero{border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:13px;margin-bottom:10px}
.cp-hero>span{font-size:10px;color:#64748b;text-transform:uppercase;letter-spacing:.08em}
.cp-hero b{display:block;font-size:20px;line-height:1.35;margin:3px 0 2px;color:#0f172a}
.cp-hero p{margin:0 0 6px;color:#475569;font-size:13px}
.cp-hero small{font-size:11px;color:#94a3b8}
.cp-sections{display:grid;gap:9px}
.cp-section{border:1px solid #e8eef8;background:#fff;border-radius:11px;padding:11px 12px}
.cp-section-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.cp-section-head b{font-size:13px;color:#0f172a}
.cp-section-head span{font-size:10px;color:#94a3b8;text-align:right}
.cp-section p{margin:6px 0 0;font-size:12px;line-height:1.75;color:#475569}
.cp-items{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.cp-items>span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:5px 7px;font-size:11px;color:#334155}
.cp-items small{display:block;color:#94a3b8;font-size:10px}
.cp-stat{min-width:66px}
.cp-stat b{font-size:15px!important;color:#0f172a;line-height:1.15}
.cp-stat small{margin-top:2px;font-size:10px;color:#64748b}
.cp-src{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;align-items:center}
.cp-src em{font-style:normal;font-size:10px;color:#64748b;background:#f1f5f9;border-radius:5px;padding:2px 5px}
.cp-src small,.cp-rationale{font-size:10px;color:#94a3b8}
.cp-rationale{display:block;margin-top:4px}
.cp-missing{color:#b45309!important;font-size:11px!important}
.cp-missing-box,.cp-excluded{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:10px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:8px}
.cp-missing-box b,.cp-excluded b{margin-right:2px}
.cp-missing-box span,.cp-excluded span{color:#78350f}
.cp-excluded{color:#9a3412;background:#fff7ed;border-color:#fed7aa}
.cp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;align-items:center}
.cp-actions form{margin:0}
.cp-actions .chat-send{width:auto;padding:10px 16px}
@media(max-width:680px){.cp-head{flex-direction:column}.cp-section-head{flex-direction:column;gap:2px}.cp-section-head span{text-align:left}}

/* art thumbnails: six distinct miniature layouts */
.gen-art .gp-preview.gp-editorial { background: #f2ece1; border: 1px solid #d7c9b6; }
.gen-art .gp-preview.gp-editorial i:nth-child(1) { left: 9px; top: 11px; width: 64%; height: 10px; border-radius: 0; background: #191511; opacity: 1; }
.gen-art .gp-preview.gp-editorial i:nth-child(2) { left: 9px; top: 27px; width: 38%; height: 3px; border-radius: 0; background: #191511; opacity: .5; }
.gen-art .gp-preview.gp-editorial i:nth-child(3) { right: 10px; top: 9px; width: 25px; height: 28px; border-radius: 50%; background: transparent; border: 1px solid #7c1d1d; opacity: 1; }
.gen-art .gp-preview.gp-cinema { background: radial-gradient(70% 90% at 78% 18%, #1e3a8a, #0d0b0a 62%); border: 1px solid #2c2b29; }
.gen-art .gp-preview.gp-cinema i:nth-child(1) { left: 9px; top: 25px; width: 53%; height: 8px; border-radius: 0; background: #f4efe6; opacity: 1; }
.gen-art .gp-preview.gp-cinema i:nth-child(2) { left: 9px; top: 38px; width: 34%; height: 3px; border-radius: 0; background: #f4efe6; opacity: .45; }
.gen-art .gp-preview.gp-cinema i:nth-child(3) { right: 9px; top: 9px; width: 30px; height: 34px; border-radius: 0; background: transparent; border: 1px solid rgba(244,239,230,.65); opacity: 1; }
.gen-art .gp-preview.gp-swiss { background: repeating-linear-gradient(90deg, transparent 0 24px, #ededed 24px 25px), #fff; border: 1px solid #d9d9d9; }
.gen-art .gp-preview.gp-swiss i:nth-child(1) { left: 8px; top: 9px; width: 55%; height: 12px; border-radius: 0; background: #111; opacity: 1; }
.gen-art .gp-preview.gp-swiss i:nth-child(2) { left: 8px; top: 27px; width: 32%; height: 2px; border-radius: 0; background: #111; opacity: 1; }
.gen-art .gp-preview.gp-swiss i:nth-child(3) { right: 7px; bottom: 7px; width: 26px; height: 24px; border-radius: 0; background: var(--pb); opacity: 1; }
.gen-art .gp-preview.gp-warm { background: linear-gradient(135deg, #f6eadb, #efd9c3); border: 1px solid #e2c8ae; }
.gen-art .gp-preview.gp-warm i:nth-child(1) { left: 9px; top: 10px; width: 58%; height: 9px; border-radius: 4px; background: #8a4b2c; opacity: 1; }
.gen-art .gp-preview.gp-warm i:nth-child(2) { left: 9px; top: 24px; width: 44%; height: 3px; border-radius: 2px; background: #8a4b2c; opacity: .55; }
.gen-art .gp-preview.gp-warm i:nth-child(3) { right: 7px; top: 8px; width: 27px; height: 36px; border-radius: 7px; background: #fffaf3; border: 1px solid #e1c9b1; opacity: 1; }
.gen-art .gp-preview.gp-signal { background: repeating-linear-gradient(0deg, transparent 0 12px, rgba(163,230,53,.08) 12px 13px), #0b0e0c; border: 1px solid #26311f; }
.gen-art .gp-preview.gp-signal i:nth-child(1) { left: 9px; top: 10px; width: 58%; height: 9px; border-radius: 0; background: var(--pb); opacity: 1; }
.gen-art .gp-preview.gp-signal i:nth-child(2) { left: 9px; top: 25px; width: 38%; height: 2px; border-radius: 0; background: var(--pb); opacity: .45; }
.gen-art .gp-preview.gp-signal i:nth-child(3) { right: 8px; bottom: 8px; width: 27px; height: 22px; border-radius: 0; border: 1px solid var(--pb); background: transparent; opacity: 1; }
.gen-art .gp-preview.gp-poster { background: #f2c908; border: 2px solid #111; }
.gen-art .gp-preview.gp-poster i:nth-child(1) { left: 6px; top: 7px; width: 64%; height: 14px; border-radius: 0; background: #111; opacity: 1; transform: rotate(-1deg); }
.gen-art .gp-preview.gp-poster i:nth-child(2) { left: 6px; top: 27px; width: 42%; height: 5px; border-radius: 0; background: #111; opacity: 1; }
.gen-art .gp-preview.gp-poster i:nth-child(3) { right: 6px; top: 7px; width: 24px; height: 33px; border-radius: 0; background: #fffdf0; border: 2px solid #111; opacity: 1; transform: rotate(2deg); }
