.enhancement-section {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}
.enhancement-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.enhancement-heading h2 { margin: 0; color: #0f172a; font-size: 1.15rem; }
.enhancement-heading p { margin: 0.35rem 0 0; color: #64748b; line-height: 1.6; font-size: 0.88rem; }
.enhance-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.enhance-tab {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
}
.enhance-tab.active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.enhance-panel { display: none; }
.enhance-panel.active { display: block; }
.enhance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.enhance-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.enhance-field { min-width: 0; }
.enhance-field > label { display: block; margin-bottom: 0.4rem; color: #334155; font-weight: 750; font-size: 0.86rem; }
.enhance-field input,
.enhance-field select,
.enhance-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: rgba(255,255,255,0.94);
  color: #0f172a;
  font: inherit;
}
.enhance-field textarea { min-height: 150px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.enhance-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.8rem; }
.enhance-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  background: #2563eb;
  color: white;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}
.enhance-actions button.secondary { background: #e2e8f0; color: #334155; }
.enhance-actions button.danger { background: #fee2e2; color: #b91c1c; }
.enhance-output {
  margin-top: 0.85rem;
  min-height: 58px;
  padding: 0.8rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  white-space: pre-wrap;
  overflow: auto;
  font: 0.84rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.enhance-output:empty::before { content: "结果将在这里显示"; color: #94a3b8; }
.enhance-note { margin: 0.65rem 0 0; color: #64748b; font-size: 0.82rem; line-height: 1.55; }
.diff-add { color: #15803d; background: #f0fdf4; }
.diff-remove { color: #b91c1c; background: #fef2f2; }
.diff-change { color: #a16207; background: #fefce8; }
.mini-list { display: grid; gap: 0.55rem; }
.mini-item { padding: 0.7rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.mini-item strong { color: #0f172a; }
@media (max-width: 760px) {
  .enhance-grid, .enhance-grid.three { grid-template-columns: 1fr; }
  .enhancement-heading { flex-direction: column; }
}
