:root { color-scheme: dark; font-family: Inter, "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #0f1118; color: #e5e7eb; }
button, textarea { font: inherit; }
.page { min-height: 100vh; padding: 28px max(24px, calc((100vw - 1120px) / 2)); }
.loading-screen { min-height: 100vh; display: grid; place-items: center; color: #94a3b8; }
.header { display: flex; justify-content: space-between; gap: 20px; padding: 22px 26px; border: 1px solid #272a38; border-radius: 10px; background: #161823; }
.brand { color: #409eff; font-weight: 700; letter-spacing: 2px; }
h1 { margin: 8px 0 5px; font-size: 24px; }
.header p { margin: 0; color: #94a3b8; }
.tag { align-self: flex-start; padding: 6px 11px; border-radius: 5px; background: #35452f; color: #67c23a; font-size: 13px; }
.tag.readonly { background: #2b2e38; color: #a3a8b4; }
.alert { margin-top: 16px; padding: 13px 16px; border: 1px solid #783b42; border-radius: 7px; background: #3a2025; color: #f89898; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.summary > div { padding: 17px; border: 1px solid #272a38; border-radius: 8px; background: #161823; text-align: center; }
.summary strong { display: block; color: #409eff; font-size: 25px; }
.summary span { color: #94a3b8; font-size: 12px; }
.bulk-action-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 12px 14px; border: 1px solid #315b7d; border-radius: 8px; background: #172536; color: #94a3b8; font-size: 13px; }
.file-section, .questions { margin-top: 18px; padding: 18px; border: 1px solid #272a38; border-radius: 9px; background: #161823; }
.file-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.file-title small { color: #94a3b8; font-weight: 400; }
.file-title-actions { display: flex; align-items: center; gap: 10px; }
.file-translate-button { padding: 6px 10px; background: #263d58; color: #79bbff; font-size: 12px; }
.annotation { margin-top: 14px; padding: 16px; border: 1px solid #303442; border-radius: 8px; background: #1d202b; }
.annotation-index { margin-bottom: 10px; color: #94a3b8; font-size: 13px; }
.annotation img { display: block; max-width: 100%; max-height: 520px; margin: 0 auto 14px; border-radius: 5px; background: #0f1118; object-fit: contain; }
.choices { display: flex; gap: 10px; margin-bottom: 12px; }
.choice { position: relative; flex: 1; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 9px 12px; border: 1px solid #3a3e4d; border-radius: 5px; color: #c0c6d0; text-align: center; cursor: pointer; }
.choice input:checked + span { border-color: #409eff; background: #263d58; color: #66b1ff; }
.choice input:disabled + span { cursor: not-allowed; opacity: .7; }
textarea { width: 100%; padding: 10px 12px; resize: vertical; border: 1px solid #3a3e4d; border-radius: 5px; outline: none; background: #151821; color: #e5e7eb; }
textarea:focus { border-color: #409eff; }
.questions h2 { margin: 0 0 12px; font-size: 17px; }
.question { margin-top: 8px; padding: 10px 12px; border-left: 3px solid #409eff; border-radius: 4px; background: #202330; }
.question-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; align-items: end; }
button { padding: 9px 15px; border: 0; border-radius: 5px; background: #409eff; color: white; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button:disabled { cursor: not-allowed; opacity: .65; }
.submit-bar { position: sticky; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding: 15px 18px; border: 1px solid #35452f; border-radius: 8px; background: rgba(30, 38, 31, .96); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.submit-bar span { color: #b6c2b2; font-size: 13px; }
.submit-bar button { background: #67c23a; }
.toast { position: fixed; top: 20px; left: 50%; z-index: 20; transform: translateX(-50%); padding: 10px 16px; border-radius: 6px; background: #273545; box-shadow: 0 5px 18px rgba(0,0,0,.4); }
.toast.error { background: #5a292f; }
@media (max-width: 680px) {
  .page { padding: 14px; }
  .header { padding: 17px; }
  h1 { font-size: 20px; }
  .summary { gap: 8px; }
  .bulk-action-bar { align-items: stretch; flex-direction: column; }
  .file-section, .questions { padding: 12px; }
  .file-title { align-items: flex-start; }
  .file-title-actions { align-items: flex-end; flex-direction: column; }
  .question-form { grid-template-columns: 1fr; }
  .submit-bar { align-items: stretch; flex-direction: column; }
}
