body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f7fa;
  color: #1e2b3c;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
.sidebar {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: fit-content;
}
.main {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
h2, h3 {
  margin-top: 0;
  color: #0a4b6e;
  border-bottom: 2px solid #e6edf2;
  padding-bottom: 8px;
}
.category {
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #2c5f7e;
}
.tag-checkbox, .tag-radio {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: #eef4f8;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.tag-checkbox:hover, .tag-radio:hover {
  background: #d0e2ed;
}
select, textarea, button {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e0;
  margin: 5px 0;
  width: 100%;
  box-sizing: border-box;
}
button {
  background-color: #0a6e7a;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background-color: #0c8a99;
}
.prompt-area {
  background: #f1f9fc;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.prompt-area textarea {
  width: 100%;
  height: 200px;
  font-family: 'Courier New', monospace;
  background: #fff;
  font-family: "宋体", "SimSun", "Times New Roman", serif;
}
.ai-reply {
  background: #fafbfc;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #0a6e7a;
  min-height: 300px;
  overflow-x: auto;
}
.ai-reply pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  font-family: "宋体", "SimSun", "Times New Roman", serif;
}
.control-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.evaluation-report pre {
  font-family: "宋体", "SimSun", "Times New Roman", serif;
  font-size: 13px;      /* 保持原有字号，可自行调整 */
  line-height: 1.6;
}

/* ========== 多版本对比工作台（横版卡片网格） ========== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.question-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #e9edf2;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  height: fit-content;
}

.question-card:hover {
  box-shadow: 0 8px 20px rgba(10,110,122,0.12);
  border-color: #0a6e7a;
}

.card-header {
  background: #f0f7fa;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  color: #0a4b6e;
  border-bottom: 1px solid #d9e4ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 16px;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #1e2b3c;
  max-height: 400px;
  overflow-y: auto;
  background: #ffffff;
}

.card-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "宋体", "SimSun", "Times New Roman", serif;
  font-size: 13px;
  background: transparent;
  border: none;
  padding: 0;
}

.card-footer {
  padding: 12px 16px;
  background: #fafcfc;
  border-top: 1px solid #eef2f5;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-badge {
  background: #ffc107;
  color: #1e2b3c;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
}

.select-btn {
  background-color: #0a6e7a;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  width: auto;
}

.select-btn:hover {
  background-color: #0c8a99;
}

.select-btn:active {
  transform: scale(0.96);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #8899a8;
  padding: 40px;
  background: #f9fbfc;
  border-radius: 12px;
  font-size: 15px;
}

/* ========== 量化评分表样式 ========== */
.score-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 13px;
}

.score-table th {
  background: #0a4b6e;
  color: white;
  font-weight: 600;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #1a5e7a;
}

.score-table td {
  padding: 8px 6px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.score-table td:first-child {
  text-align: left;
  font-weight: normal;
}

.score-table .category-row td {
  background-color: #f0f7fa;
  font-weight: 600;
  border-top: 2px solid #b0d4e0;
}

.score-table .total-row td {
  background-color: #fef7e7;
  font-weight: 700;
  border-top: 2px solid #ffc107;
}

/* 评估报告整体容器微调 */
.evaluation-report {
  margin-top: 30px;
  padding: 20px;
  background: #f8fbfc;
  border-radius: 12px;
  border-left: 5px solid #0a6e7a;
}

.evaluation-report h5 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #0a4b6e;
}

.evaluation-report ul {
  margin: 4px 0 12px 0;
}

.evaluation-report li {
  margin-bottom: 4px;
  line-height: 1.5;
}