body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  color: #222;
  background: #fafafa;
}
h1 { font-size: 1.5rem; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
select { padding: 5px 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.prompt-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f4f6f8;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 420px;
  overflow: auto;
}
h2 { font-size: 1.1rem; margin-top: 0; }
.subtitle { color: #666; font-size: 0.9rem; }
section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
button {
  padding: 6px 14px;
  border: 1px solid #2b6cb0;
  background: #2b6cb0;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
button:disabled { background: #9db8d2; border-color: #9db8d2; cursor: not-allowed; }
button.secondary { background: #fff; color: #2b6cb0; }
.file-label {
  padding: 6px 14px;
  border: 1px dashed #2b6cb0;
  border-radius: 6px;
  cursor: pointer;
  color: #2b6cb0;
}
.file-label input { display: none; }
input[type="text"] { flex: 1; padding: 8px; border: 1px solid #ccc; border-radius: 6px; }
.status { font-size: 0.9rem; color: #555; margin: 6px 0; }
.status.ready { color: #276749; font-weight: bold; }
.status.error { color: #c53030; }
.progress-wrap { margin: 8px 0; }
progress { width: 100%; height: 14px; }
.hint { font-size: 0.8rem; color: #888; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.9rem; }
th, td { border-bottom: 1px solid #eee; padding: 6px 8px; text-align: left; }
td button { padding: 2px 10px; font-size: 0.8rem; background: #e53e3e; border-color: #e53e3e; }
ol#results { padding-left: 0; list-style: none; }
ol#results > li {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  background: #fdfdfd;
}
.result-meta { font-size: 0.8rem; color: #666; margin-bottom: 4px; }
.score { color: #2b6cb0; font-weight: bold; }
.result-text { white-space: pre-wrap; font-size: 0.9rem; line-height: 1.5; }
.result-text.clamped { max-height: 5.5em; overflow: hidden; cursor: pointer; position: relative; }
.result-text.clamped::after {
  content: "…点击展开";
  position: absolute; right: 0; bottom: 0;
  background: #fdfdfd; color: #2b6cb0; padding-left: 6px;
}
.hidden { display: none; }
