:root {
  --blue: #2f5bee; --blue-dark: #1d3fb8; --bg: #f4f6fb; --card: #ffffff;
  --ink: #1a2233; --muted: #5a6478; --line: #d6dce8; --ok: #178a50; --warn: #b95c00; --err: #c23a3a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; }
.badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e8edf9; color: #34405e; font-size: 12px; }
.badge-sample { background: #fff1d6; color: #8a5a00; }
.badge-real { background: #ddf5e7; color: #116a3c; }
.wrap { max-width: 960px; margin: 20px auto; padding: 0 14px; display: flex; flex-direction: column; gap: 16px; }
.wrap.narrow { max-width: 720px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card h2 { margin: 0 0 8px; font-size: 18px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 6px 0; }
.field { display: block; margin: 10px 0; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input[type="file"] { padding: 6px; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.field-row input, .field-row .file-field { flex: 1 1 160px; }
.btn { padding: 9px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.subtle { color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.result { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.result.ok { background: #e9f7ef; color: #116a3c; }
.result.err { background: #fdeeee; color: var(--err); }
.result.info { background: #edf1fd; color: #2c3e73; }
.hidden { display: none !important; }
.dims { display: flex; flex-direction: column; gap: 8px; }
.dim-row { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; flex-wrap: wrap; }
.dim-row .name { font-weight: 600; min-width: 90px; }
.dim-row input.w { width: 90px; }
.dim-row input.b { flex: 1 1 200px; }
.sum-line { margin-top: 10px; color: var(--muted); font-size: 13px; }
.status-line { padding: 8px 12px; background: #edf1fd; border-radius: 8px; margin: 8px 0; font-size: 14px; line-height: 1.6; }
.question-box { margin-top: 10px; }
.q-meta { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.q-text { font-size: 17px; font-weight: 600; line-height: 1.7; background: #f6f8ff; border: 1px solid var(--line); padding: 14px 16px; border-radius: 10px; }
.q-observation { color: var(--muted); font-size: 13px; margin-top: 8px; }
.ans-tabs { display: flex; gap: 8px; margin: 14px 0 10px; }
.btn.tab { border-radius: 999px; }
.btn.tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.voice-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.end-row { display: flex; gap: 12px; margin-top: 14px; align-items: center; }
.link { color: var(--blue); font-size: 13px; }
.decision-box { margin-top: 10px; }
.report-head { margin-bottom: 8px; }
.score-hero { display: flex; align-items: baseline; gap: 14px; margin: 12px 0; }
.score-value { font-size: 44px; font-weight: 700; color: var(--blue); }
.score-label { color: var(--muted); }
.alert { background: #fff4e5; border: 1px solid #e8a54b; padding: 8px 12px; border-radius: 6px; margin: 10px 0; font-size: 13px; }
.report-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.report-table th, .report-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.report-table th { background: #f0f3fa; }
.report-table.small { font-size: 13px; }
blockquote { margin: 0; padding: 4px 10px; border-left: 3px solid var(--blue); color: #34405e; background: #f6f8ff; font-size: 13px; }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.qa-item .muted { color: #97a0b5; }
.suggestions { margin: 8px 0; padding-left: 20px; font-size: 14px; }
@media (max-width: 640px) {
  .wrap { margin: 10px auto; }
  .card { padding: 14px; }
  .q-text { font-size: 16px; }
  .btn { padding: 10px 14px; }
  .report-table { font-size: 12px; }
  .report-table th, .report-table td { padding: 6px; }
}
