:root {
  --navy: #1F3864;
  --blue: #2E5395;
  --red: #C0392B;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B7280;
  --line: #E5E7EB;
  --green: #188038;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a { color: #374151; }
.nav a:hover { color: var(--navy); }
.user { color: var(--muted); font-size: 13px; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.link-btn:hover { color: var(--navy); }
.danger { color: var(--red) !important; }

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 60px;
}

.messages { margin-bottom: 16px; }
.notice {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.notice.warn { background: #FFF7E6; border: 1px solid #FFD591; color: #8C5A00; }
.notice.info { background: #EEF3FB; border: 1px solid #C9D8EE; color: #2E5395; }
.notice code {
  background: rgba(0,0,0,.06);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 12px;
}
.msg {
  padding: 10px 14px;
  border-radius: 8px;
  background: #E8F5E9;
  color: #1B5E20;
  margin-bottom: 8px;
}
.msg.error { background: #FDECEA; color: #B71C1C; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { border-color: #C9D3E3; color: var(--navy); }
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: #16294A; color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-head h2 { font-size: 16px; margin: 0; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 { font-size: 24px; margin: 0 0 4px; }
.page-head p { margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.stat span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.stat strong { font-size: 30px; color: var(--navy); line-height: 1; }
.stat em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }
.batch-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .batch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.question-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}
.question-editor summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.question-editor label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.question-editor textarea,
.question-editor input[type=text],
.question-editor input[type=number],
.question-editor select {
  width: 100%;
  margin-top: 4px;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }
.table .score { color: var(--red); font-size: 17px; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: #EEF2F8;
  color: var(--blue);
  font-size: 11px;
}
.tag.failed { background: #FDECEA; color: #B71C1C; }

.empty { text-align: center; padding: 36px 10px; color: var(--muted); }
.empty p { margin: 0 0 14px; }

/* landing */
.landing { padding: 0; }
.hero {
  background: linear-gradient(135deg, #1F3864 0%, #2E5395 60%, #3F6DB5 100%);
  color: #fff;
  padding: 72px 24px 64px;
}
.hero-inner { max-width: 980px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  color: #C9D8EE;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.2; margin: 0 0 16px; }
.hero-sub { font-size: 16px; color: #D7E3F5; max-width: 620px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; }
.hero-points { display: flex; gap: 22px; margin-top: 26px; color: #C9D8EE; font-size: 13px; flex-wrap: wrap; }
.features {
  max-width: 1080px;
  margin: -28px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(31,56,100,.06);
}
.feature-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: #EEF3FB; color: var(--navy);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }

/* auth */
.auth-page { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 30px 20px; }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 22px; margin: 0 0 4px; }
.auth-card > .muted { margin: 0 0 18px; }
.form label { display: block; margin-bottom: 14px; font-size: 13px; color: #374151; }
.form input {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.form input:focus { outline: none; border-color: var(--blue); }
.form .btn { margin-top: 6px; }
.alert { background: #FDECEA; color: #B71C1C; padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.field-error { color: var(--red); font-size: 12px; display: block; margin-top: 4px; }

/* grade form */
.grade-form .card { margin-bottom: 16px; }
.dropzone {
  display: block;
  border: 2px dashed #C9D3E3;
  border-radius: 12px;
  min-height: 220px;
  padding: 18px;
  cursor: pointer;
  background: #FAFBFD;
  margin-bottom: 18px;
  position: relative;
  text-align: center;
}
.dropzone.dragging { border-color: var(--blue); background: #EEF3FB; }
.dropzone input[type=file] { display: none; }
.drop-hint { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.drop-hint strong { color: var(--navy); font-size: 15px; }
.preview-wrap img { max-width: 100%; max-height: 420px; border-radius: 8px; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.preview-grid img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 700px) {
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.grade-form label { display: block; margin-bottom: 14px; font-size: 13px; color: #374151; }
.grade-form input[type=checkbox] {
  width: auto;
  height: auto;
  margin: 0 6px 0 0;
  vertical-align: -2px;
}
.grade-form label.field-full { width: 100%; }
.grade-form label.field-full textarea { display: block; width: 100%; max-width: 100%; }
.grade-form input, .grade-form select {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.grade-form textarea {
  width: 100%;
  min-height: 92px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.7;
  background: #fff;
  resize: vertical;
}
.form-actions { display: flex; align-items: center; gap: 14px; }

.loading-mask {
  position: fixed; inset: 0; background: rgba(15,22,38,.55);
  display: grid; place-items: center; z-index: 100;
}
.loading-box {
  background: #fff; border-radius: 14px; padding: 28px 34px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #E5E7EB; border-top-color: var(--navy);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* job detail */
.detail-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.detail-head h1 { font-size: 22px; margin: 6px 0 4px; }
.detail-head p { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}
.stage-card { padding: 10px; }
.stage { position: relative; background: #fff; border-radius: 8px; overflow: hidden; }
.stage img { display: block; width: 100%; height: auto; }
.overlay { position: absolute; inset: 0; }
.marker {
  position: absolute;
  border: 2px solid var(--red);
  border-radius: 3px;
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  user-select: none;
}
.marker .badge {
  position: absolute; top: -9px; right: -9px;
  min-width: 18px; height: 18px; border-radius: 9px;
  color: #fff; font-size: 10px; line-height: 18px; text-align: center;
  padding: 0 4px;
  pointer-events: none;
}
.marker .resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  cursor: nwse-resize;
  touch-action: none;
}
.bbox-editor { margin-top: 10px; font-size: 12px; }
.bbox-editor summary { cursor: pointer; color: var(--muted); }
.bbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.bbox-grid label { font-size: 11px; color: var(--muted); }
.bbox-grid input { height: 34px; }
.ann-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.ann-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
}
.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 16px 20px; }
.modal-body label { display: block; margin-bottom: 12px; font-size: 13px; color: #374151; }
.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.modal-body textarea { resize: vertical; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 20px 18px;
}
.regrade-card { margin-bottom: 16px; }
.regrade-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.regrade-current > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.regrade-current strong { font-size: 17px; }
.regrade-score { text-align: right; }
.regrade-score strong { display: block; color: #B42318; font-size: 34px; line-height: 1; }
.regrade-score span { color: var(--muted); font-size: 12px; }
.marker.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.stage-tools { display: flex; align-items: center; gap: 12px; padding: 10px 4px 2px; flex-wrap: wrap; }
.save-status { margin-left: auto; font-size: 12px; color: var(--green); }

.side { display: flex; flex-direction: column; gap: 14px; }
.score-card { padding: 18px; }
.score-row { display: flex; align-items: center; gap: 8px; }
.score-row input {
  width: 84px; height: 52px; font-size: 30px; font-weight: 700;
  color: var(--red); border: 1px solid var(--line); border-radius: 8px;
  text-align: center; font-family: inherit;
}
.score-unit { color: var(--muted); }
.score-row select {
  margin-left: auto; height: 34px; border: 1px solid var(--line);
  border-radius: 8px; padding: 0 8px; font-family: inherit;
}
.score-card p { margin: 12px 0 0; }

.ann-list { display: flex; flex-direction: column; gap: 8px; }
.ann-item {
  display: flex; gap: 10px; padding: 10px; border-radius: 9px;
  border: 1px solid var(--line); cursor: pointer; background: #fff;
}
.ann-item:hover { border-color: #C9D3E3; }
.ann-item.active { background: #EEF3FB; border-color: #B9CBE6; }
.ann-num {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 10px;
  color: #fff; font-size: 11px; display: grid; place-items: center;
}
.ann-body { min-width: 0; }
.ann-type { font-size: 11px; color: var(--muted); }
.ann-quote { font-size: 12px; color: #374151; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-comment { font-size: 13px; margin-top: 3px; }
.ann-suggest { font-size: 12px; color: var(--red); margin-top: 3px; }

.editor label { display: block; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.editor input, .editor select, .editor textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
}
.editor textarea { resize: vertical; }

/* filters & pagination */
.filters { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.filters input, .filters select {
  height: 36px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: 13px; background: #fff;
}
.filters input[type=search] { flex: 1; min-width: 220px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 16px; color: var(--muted); font-size: 13px; }
.inline { display: inline; }

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .page-head, .detail-head { flex-direction: column; align-items: flex-start; }
  .topbar { padding: 0 16px; }
  .nav { gap: 10px; font-size: 13px; }
}


/* ===== 角色 / 导航徽标 ===== */
.nav { gap: 12px; }
.nav-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 6px;
  background: #FFF3E0;
  color: #B26A00;
  font-size: 10px;
  line-height: 16px;
  vertical-align: 1px;
}
.role-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 10px;
  background: #EEF2F8;
  color: var(--muted);
  font-size: 10px;
}
.role-badge.vip { background: #FFF7E6; color: #B7791F; }
.role-badge.admin { background: #EEF3FB; color: var(--navy); }

/* ===== 首页扩展 ===== */
.landing-notice {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFBF0;
  border: 1px solid #FFE2B8;
  border-radius: 10px;
  color: #8C5A00;
}
.landing-notice + .features { margin-top: 18px; }
.landing-section {
  max-width: 1080px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 22px; margin: 0 0 4px; }
.section-head p { margin: 0; }
.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dual-card {
  display: block;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dual-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31,56,100,.08); }
.dual-card.ready { border-top: 4px solid var(--navy); }
.dual-card.soon { border-top: 4px solid #E0B25C; background: #FFFDF8; }
.dual-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  background: #EEF3FB;
  color: var(--navy);
  font-size: 11px;
  margin-bottom: 10px;
}
.dual-tag.soon { background: #FFF3E0; color: #B26A00; }
.dual-card h3 { margin: 0 0 6px; font-size: 20px; }
.dual-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.dual-link { color: var(--blue); font-size: 13px; }

/* ===== 快捷卡 ===== */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.quick-card.ready { border-left: 4px solid var(--navy); }
.quick-card.soon { border-left: 4px solid #E0B25C; background: #FFFDF8; }
.quick-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #EEF3FB; color: var(--navy);
  display: grid; place-items: center; font-weight: 700;
}
.quick-card.soon .quick-icon { background: #FFF3E0; color: #B26A00; }
.quick-card h3 { margin: 0 0 2px; font-size: 15px; }
.quick-card p { margin: 0; color: var(--muted); font-size: 12px; }
.quick-arrow { margin-left: auto; color: var(--muted); }

/* ===== 文章 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--text);
}
.article-card:hover { border-color: #C9D3E3; }
.article-card h3 { font-size: 16px; margin: 8px 0 6px; }
.article-card p { color: var(--muted); font-size: 13px; margin: 0 0 12px; flex: 1; }
.article-category {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 9px;
  background: #EEF3FB;
  color: var(--navy);
  font-size: 11px;
}
.article-meta { color: var(--muted); font-size: 12px; }
.article-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.article-cover.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1F3864, #3F6DB5);
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
}
.article-list { display: flex; flex-direction: column; }
.article-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.article-list-item:last-child { border-bottom: 0; }
.article-list-title { flex: 1; }
.category-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.category-tabs a {
  padding: 6px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.category-tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.article-detail { max-width: 820px; margin: 0 auto; }
.article-head { margin: 14px 0 20px; }
.article-head h1 { font-size: 30px; margin: 8px 0 8px; }
.article-cover-full {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}
.article-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 30px;
  font-size: 15px;
  line-height: 1.9;
}
.article-content p { margin: 0 0 14px; }

/* ===== 平台管理 ===== */
.manage-head { margin-bottom: 14px; }
.manage-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.manage-tabs a {
  padding: 9px 16px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 14px;
}
.manage-tabs a.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.engine-current { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.engine-current p { width: 100%; margin: 6px 0 0; }
.quick-links { display: flex; flex-direction: column; gap: 10px; }
.narrow-card { max-width: 720px; }
.manage-form input[type=text],
.manage-form input[type=url],
.manage-form input[type=password],
.manage-form input[type=number],
.manage-form select,
.manage-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.manage-form label { display: block; margin-bottom: 14px; color: #374151; font-size: 13px; }
.manage-form textarea { resize: vertical; }
.manage-form input[type=checkbox] {
  width: auto;
  height: auto;
  margin: 0 8px 0 0;
  vertical-align: -2px;
}
.checkbox-line { display: flex; align-items: center; gap: 8px; }
.checkbox-line input { width: auto; margin: 0; }

/* ===== 作业占位 ===== */
.homework-hero h2 { margin-top: 0; }
.homework-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.homework-steps div {
  background: #FAFBFD;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.homework-steps strong { color: var(--navy); font-size: 18px; }
.homework-steps span { color: var(--muted); font-size: 12px; }

/* ===== 自定义评分标准 ===== */
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rubric-card h2 { font-size: 18px; margin: 0; }
.rubric-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.rubric-dim-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.rubric-dim-top {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 60px;
  gap: 10px;
  align-items: end;
}
.rubric-dim-top label,
.rubric-desc-field {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.rubric-dim-top input {
  width: 100%;
  height: 36px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.rubric-desc-field { margin-top: 10px; }
.rubric-dim-row .dim-desc {
  display: block;
  width: 100%;
  min-height: 66px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  background: #fff;
  resize: vertical;
}
.rubric-dim-row .remove-dim { align-self: end; height: 36px; }
.rubric-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}
.writing-prompt-card { margin-bottom: 16px; }
.writing-prompt-card strong { display: block; margin-bottom: 6px; color: var(--navy); }
.writing-prompt-card p { margin: 0; color: #374151; font-size: 14px; line-height: 1.8; }
.rubric-name { margin: 0 0 8px; font-weight: 600; }
.rubric-mini-list details { border-top: 1px solid var(--line); padding: 6px 0; }
.rubric-mini-list summary { cursor: pointer; font-size: 13px; }
.rubric-mini-list p { margin: 6px 0 0; }

@media (max-width: 900px) {
  .rubric-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rubric-dim-top { grid-template-columns: 1fr 60px; }
  .rubric-dim-top label:first-child { grid-column: 1 / -1; }
}

/* ===== 班级 / 批次 ===== */
.class-grid,
.batch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.class-card,
.batch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}
.class-card:hover,
.batch-card:hover { border-color: #C9D3E3; }
.class-card-head,
.batch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.class-card h2,
.batch-card h2 { margin: 0; font-size: 18px; }
.class-card-link { color: var(--blue); font-size: 13px; margin-top: auto; }
.batch-card-stats {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
}
.batch-card-stats strong { color: var(--navy); font-size: 18px; }
.batch-list { display: flex; flex-direction: column; }
.batch-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.batch-list-item:last-child { border-bottom: 0; }
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  white-space: nowrap;
  background: #EEF2F8;
  color: var(--muted);
}
.status-draft { background: #F3F4F6; color: #4B5563; }
.status-ready { background: #EEF3FB; color: #2E5395; }
.status-processing,
.status-running { background: #FFF7E6; color: #B26A00; }
.status-completed,
.status-success { background: #E8F7EF; color: #1F7A4D; }
.status-failed { background: #FDECEA; color: #B42318; }
.batch-upload-table input[type=file] {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
@media (max-width: 1000px) {
  .class-grid, .batch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .class-grid, .batch-grid { grid-template-columns: 1fr; }
}

/* ===== 文字诊断报告 ===== */.report-actions {
  max-width: 1000px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.report {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 38px;
}
.report-header { border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 20px; }
.report-brand { color: var(--navy); font-size: 13px; letter-spacing: 1px; }
.report-header h1 { font-size: 28px; margin: 8px 0 6px; }
.report-sub { color: var(--muted); margin: 0; font-size: 13px; }
.report-summary {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}
.report-score {
  background: #F5F8FD;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.report-score strong { display: block; color: #B42318; font-size: 46px; line-height: 1; }
.report-score span { display: block; color: var(--muted); margin-top: 8px; font-size: 13px; }
.report-summary-text h2 { margin: 0 0 8px; font-size: 18px; }
.report-summary-text h3 { margin: 14px 0 4px; font-size: 14px; color: var(--navy); }
.report-summary-text p { margin: 0; line-height: 1.8; font-size: 14px; }
.report section { margin-bottom: 26px; }
.report h2 { font-size: 18px; margin: 0 0 10px; padding-left: 9px; border-left: 3px solid var(--navy); }
.report h3 { font-size: 14px; margin: 16px 0 6px; color: #374151; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-table th, .report-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
.report-table th { background: #F7F9FC; color: #374151; font-weight: 600; }
.report-table-15 td:first-child { width: 15%; }
.report-table-15 td:nth-child(2) { width: 9%; white-space: nowrap; }
.report-table-15 td:nth-child(3), .report-table-15 td:nth-child(4) { width: 38%; }
.report-total-row td { background: #F7F9FC; font-weight: 600; }
.grade-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 9px;
  font-size: 12px;
}
.grade-a { background: #E8F7EF; color: #1F7A4D; }
.grade-b { background: #EEF3FB; color: #2E5395; }
.grade-c { background: #FFF7E6; color: #8C5A00; }
.grade-d { background: #FDECEA; color: #B42318; }
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.report-stats div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #FAFBFD;
}
.report-stats span { display: block; color: var(--muted); font-size: 12px; }
.report-stats strong { display: block; margin-top: 3px; font-size: 20px; color: var(--navy); }
.report-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 760px) {
  .report { padding: 20px 16px; }
  .report-summary { grid-template-columns: 1fr; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .report-table { display: block; overflow-x: auto; }
  .report-actions { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .dual-cards, .quick-actions, .article-grid, .manage-grid, .homework-steps {
    grid-template-columns: 1fr;
  }
  .article-detail { margin: 0; }
  .nav { flex-wrap: wrap; }
}
