@charset "UTF-8";
.ai-ready{background:#eff5e9;border-color:#d9e7cf;color:#567a47}.ai-admin-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:22px}.ai-settings,.copy-brief{padding:25px}.ai-settings h2,.copy-brief h2{font-size:16px;margin-bottom:18px}.ai-hint{font-size:11px;color:#92a086;line-height:1.9}.ai-panel-note{margin:18px 23px;font-size:11px;color:#8e9c82;line-height:1.9}.ai-stat-value{font-size:25px;color:#41623a;font-weight:600;margin-top:14px;overflow-wrap:anywhere}.ai-section{margin-top:25px}.ai-company-table{max-height:360px}.ai-company-table th{position:sticky;top:0}.ai-log-filters{display:flex;gap:13px;align-items:flex-end;padding:18px 23px;flex-wrap:wrap}.ai-log-filters .field{margin:0;min-width:170px}.ai-log-filters .error{width:100%;margin:0}.ai-module-stats{margin:0 0 28px}.ai-module-stats>div{display:flex;justify-content:space-between;border-bottom:1px solid #edf2e7;padding:12px 0;font-size:12px;color:#8a9b7b}.ai-module-stats dd{margin:0;font-size:17px;color:#527246}.ai-settings h3{font-size:13px}.copy-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:23px;align-items:start}.copy-brief>.ai-hint{margin-top:-5px;margin-bottom:22px}.copy-brief .field textarea{font-size:12px;line-height:1.9}.copy-output{min-height:450px}.copy-result-heading{padding:22px 25px 0}.copy-result-heading h3{font-size:17px;overflow-wrap:anywhere;margin:0 0 8px}.copy-result-heading small{font-size:10px}.copy-content{font:13px/2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#5d7750;white-space:pre-wrap;overflow-wrap:anywhere;padding:24px 25px;margin:0}.copy-output-actions{display:flex;gap:10px;padding:0 25px;flex-wrap:wrap}.copy-brief .field-row .field{min-width:0}.copy-brief select{font-size:12px}.ai-admin-grid .table-wrap td{font-variant-numeric:tabular-nums}
@media(max-width:1100px){.ai-admin-grid,.copy-grid{grid-template-columns:1fr}.ai-stat-value{font-size:20px}.ai-log-filters .field{flex:1}.copy-output{min-height:320px}}
@media(max-width:760px){.ai-settings,.copy-brief{padding:21px}.ai-stat-value{font-size:21px}.ai-admin-grid{gap:18px}.ai-log-filters{padding:17px}.ai-log-filters .field{min-width:140px}.copy-grid{gap:18px}.copy-content{padding:22px;font-size:12px}.copy-result-heading{padding:21px 22px 0}.ai-panel-note{margin:17px 21px}.copy-output-actions{padding:0 22px}}

/* ---------------------------------------------------------------- 文案素材 v2
   原来的问题：没有页头、左栏七个字段一路平铺、右栏空态占了大半屏、
   历史是四列表格里再套上下两行的小字。这里改成「页头 → 左填右看 → 历史清单」。 */
.cp-head { margin: 0 0 20px; }
.cp-head h1 { margin: 0 0 8px; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.cp-head p { margin: 0; max-width: 780px; font-size: 13px; line-height: 1.8; color: var(--ink-3); }

.cp-grid { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }

.cp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.cp-panel-head h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-panel-head small { font-size: 11px; color: var(--ink-4); }
.cp-history-tools { display: flex; align-items: center; gap: 10px; }

.cp-form { padding: 4px 20px 18px; }
.cp-group { padding: 14px 0 2px; border-top: 1px solid var(--line-soft); }
.cp-group:first-of-type { border-top: 0; padding-top: 6px; }
.cp-group-title { font-size: 11px; font-weight: 600; color: var(--ink-4); letter-spacing: 0.06em; margin-bottom: 12px; }
.cp-form .field textarea { font-size: 12.5px; line-height: 1.85; }
.cp-hint { display: block; margin: 8px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--ink-5); }

/* 主按钮：淡蓝，不是一个整块高饱和蓝 */
.cp-submit-row { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cp-form .cp-submit {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.32);
  background: #d9e7ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.cp-form .cp-submit:hover:not(:disabled) { background: #c9dcff; border-color: rgba(37, 99, 235, 0.45); }
.cp-form .cp-submit:active:not(:disabled) { background: #bcd2ff; }
.cp-form .cp-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.cp-output { min-height: 420px; display: flex; flex-direction: column; }
.cp-placeholder { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 46px 24px; text-align: center; }
.cp-placeholder-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 12px; background: var(--card-2); color: var(--ink-5); }
.cp-placeholder-mark svg { width: 20px; height: 20px; }
.cp-placeholder h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cp-placeholder p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--ink-4); }

.cp-result { padding: 16px 20px 18px; }
.cp-result h3 { margin: 0 0 9px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.cp-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-4); }
.cp-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-deep); font-size: 10.5px; }
.cp-content {
  margin: 14px 0 0;
  padding: 16px 18px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--card-2);
  color: var(--ink-2);
  font: 12.5px/1.95 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cp-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.cp-history-head,
.cp-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 70px 140px 140px;
  gap: 14px;
  align-items: center;
  padding: 11px 20px;
}
.cp-history-head { font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-5); border-bottom: 1px solid var(--line-soft); }
.cp-history-row { border-bottom: 1px solid var(--line-soft); transition: background 0.14s var(--ease); }
.cp-history-row:hover { background: var(--card-2); }
.cp-history-row > .cp-badge { justify-self: start; }
.cp-history-row:last-of-type { border-bottom: 0; }
.cp-history-title {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 550;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-history-title:hover { color: var(--brand); }
.cp-muted { font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.cp-history-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cp-link { font-size: 11.5px; color: var(--brand); text-decoration: none; }
.cp-link:hover { text-decoration: underline; }
.cp-empty { padding: 38px 20px; text-align: center; font-size: 12px; color: var(--ink-4); }
.cp-more { padding: 14px 20px 16px; }

@media (max-width: 1100px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-output { min-height: 300px; }
  .cp-history-head, .cp-history-row { grid-template-columns: minmax(0, 1fr) 100px 130px 130px; }
  .cp-history-head span:nth-child(3), .cp-history-row > .cp-muted:nth-of-type(1) { display: none; }
}
@media (max-width: 760px) {
  .cp-head h1 { font-size: 22px; }
  .cp-form { padding-left: 16px; padding-right: 16px; }
  .cp-panel-head { padding: 14px 16px; }
  .cp-history-head { display: none; }
  .cp-history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; }
  .cp-history-row > .cp-badge { grid-column: 2; grid-row: 1; justify-self: end; }
  .cp-history-row > .cp-muted { grid-column: 1; font-size: 11px; }
  .cp-history-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 4px; }
  .cp-result { padding: 14px 16px 16px; }
}

/* 后台「上游接入」状态：四家供应商配没配密钥，一眼可见 */
.ai-upstream { margin: 14px 0 16px; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--card-2); }
.ai-upstream-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.ai-upstream-head h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ai-upstream-head small { font-size: 10.5px; color: var(--ink-5); }
.ai-upstream ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ai-upstream li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-4); }
.ai-upstream li b { width: 92px; flex: none; font-weight: 550; color: var(--ink-3); }
.ai-upstream li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; background: #c9d3e0; }
.ai-upstream li.on { color: var(--ink-3); }
.ai-upstream li.on::before { background: #34a06a; box-shadow: 0 0 0 3px rgba(52, 160, 106, 0.14); }

/* 上游状态右侧的「可对外 / 仅评测」标签 */
.ai-upstream li em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--ink-5); }
.ai-upstream li em.ok { color: #2f7d55; }
.ai-upstream .ai-hint { margin: 10px 0 0; font-size: 10.5px; line-height: 1.75; color: var(--ink-5); }
.ai-upstream .ai-hint code { font-size: 10px; }
