/* EJU 記述（作文）单独提交页 · 手机优先 */
:root {
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --line: #e3e3e8;
  --bg: #f5f5f7;
  --card: #ffffff;
  --accent: #0a6cff;
  --ok: #128a4b;
  --warn: #b45309;
  --bad: #c0392b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.75 -apple-system, "PingFang SC", "Hiragino Sans", "Yu Gothic", sans-serif;
  padding: 0 0 40px;
}
header#top {
  padding: 20px 18px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 10px;
}
header h1 { font-size: 21px; margin: 0 0 6px; line-height: 1.5; }
header .sub { color: var(--muted); font-size: 14px; }
main { padding: 16px 14px 0; max-width: 820px; margin: 0 auto; }
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 16px 18px;
  margin: 0 0 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.card h2 {
  font-size: 16px;
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.card h2:first-child { margin-top: 0; }
.muted { color: var(--muted); font-size: 14px; }
.topic-pick { display: flex; gap: 10px; }
.topic-pick button {
  flex: 1;
  font: inherit;
  padding: 10px 6px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fafafc;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.topic-pick button b { font-size: 20px; line-height: 1.2; }
.topic-pick button span { font-size: 12px; color: var(--muted); line-height: 1.35; text-align: center; }
.topic-pick button.on span { color: var(--accent); }
.topic-pick button.on { border-color: var(--accent); background: #eaf2ff; color: var(--accent); font-weight: 600; }
textarea {
  width: 100%;
  min-height: 150px;
  font: inherit;
  line-height: 1.9;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafafc;
  resize: vertical;
}
.btn {
  font: inherit;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafafc;
  padding: 13px 18px;
}
.btn.primary {
  width: 100%;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  padding: 16px;
}
.btn:disabled { opacity: .55; }
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-row .btn { padding: 12px 16px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.thumbs figure { margin: 0; }
.thumbs img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  display: block; cursor: zoom-in; background: #eee; aspect-ratio: 3/4; object-fit: cover;
}
.thumbs figcaption { font-size: 11px; color: var(--muted); margin-top: 3px; text-align: center; }
.status {
  margin-top: 12px; font-size: 13px; padding: 8px 10px; border-radius: 10px;
  background: #f2f2f6; color: var(--muted);
}
.status.ok { color: var(--ok); background: #eaf7f0; }
.status.warn { color: var(--warn); background: #fff7e8; }
.status.bad { color: var(--bad); background: #fdecea; }
.qtopic { margin: 0 0 16px; }
.qtopic h3 { font-size: 15px; margin: 0 0 6px; color: var(--accent); }
.qtopic p { margin: 0 0 8px; white-space: pre-wrap; }
.qtopic .note { font-size: 13px; color: var(--muted); background: #f6f6f9; border-radius: 8px; padding: 6px 10px; }
footer { color: var(--muted); font-size: 12px; text-align: center; padding: 8px 20px 0; line-height: 1.7; }
