* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 12px; }

.sub { color: #888; font-size: 13px; margin: 0; }

.brand { padding: 40px 0 28px; }

.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.field {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.field:last-of-type { border-bottom: none; }
.field > span { width: 76px; color: #333; font-size: 15px; }
.field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  text-align: right;
  background: transparent;
  color: #333;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  background: #eef0f3;
  color: #333;
}
.btn.primary { background: #2b5fd9; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.small { width: auto; display: inline-block; margin: 0; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: #fdecec; color: #d33; }

.msg { text-align: center; font-size: 14px; margin: 14px 0 0; min-height: 20px; color: #888; }
.msg.ok { color: #0a8f4c; }
.msg.err { color: #d33; }

.muted { color: #999; font-size: 13px; }
.center { text-align: center; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}
.deadline.warn { color: #d33; }
.link {
  background: none;
  border: none;
  color: #2b5fd9;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.hint { font-size: 13px; color: #999; margin: 0 0 14px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}
.pname { font-size: 17px; font-weight: 600; color: #1a1a1a; flex: 1; }
.pdept { font-size: 12px; color: #888; }
.subtotal { font-size: 13px; color: #576b95; white-space: nowrap; }
.subtotal-num { color: #2b5fd9; }

.item-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.item-row:last-child { border-bottom: none; }
.item-text { flex: 1; font-size: 13px; color: #444; line-height: 1.45; padding-right: 10px; }
.item-input-wrap { display: flex; align-items: center; flex-shrink: 0; }
.item-input {
  width: 58px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  outline: none;
}
.item-input:focus { border-color: #2b5fd9; }
.item-max { font-size: 12px; color: #999; margin-left: 4px; }

.tabs {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tab {
  flex: 1;
  text-align: center;
  font-size: 14px;
  padding: 9px 0;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
}
.tab.active { background: #e8f0ff; color: #2b5fd9; font-weight: 600; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.rank { background: #fff; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.rank-head { display: flex; align-items: center; padding: 14px; cursor: pointer; }
.rank-no { width: 30px; font-size: 16px; font-weight: 600; color: #2b5fd9; }
.rank-mid { flex: 1; }
.rank-name { font-size: 15px; color: #1a1a1a; }
.rank-sub { font-size: 12px; color: #999; margin-top: 2px; }
.rank-score { font-size: 17px; font-weight: 600; color: #d33; }
.rank-detail { border-top: 1px solid #f0f0f0; padding: 8px 14px; }
.judge-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 6px 0; border-bottom: 1px dashed #f5f5f5; }
.judge-row:last-child { border-bottom: none; }

.form-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.form-row:last-child { border-bottom: none; }
.form-row > span { width: 86px; color: #333; font-size: 14px; flex-shrink: 0; }
.form-row input, .form-row select {
  flex: 1;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  color: #333;
  background: #fff;
  min-width: 0;
}
.form-row input:focus { border-color: #2b5fd9; }

.editor-btns { display: flex; gap: 10px; margin-top: 12px; }
.editor-btns .btn { flex: 1; margin: 0; }

.manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mi-name { font-size: 15px; color: #1a1a1a; }
.mi-sub { font-size: 12px; color: #999; margin-top: 2px; }
.mi-btns { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.mi-info { flex: 1; min-width: 0; }
.drag-handle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f4f6fa;
  color: #8a93a6;
  font-size: 20px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.drag-handle:active { cursor: grabbing; background: #eef3ff; color: #2b5fd9; }
.manage-item.dragging { opacity: 0.65; background: #eef3ff; box-shadow: 0 6px 18px rgba(43, 95, 217, 0.18); }
body.dragging { user-select: none; -webkit-user-select: none; }
body.dragging .drag-handle { cursor: grabbing; }
.manage-tip { margin: 0 0 10px; font-size: 12px; color: #999; }

/* 项目导入 */
.import-hint { margin: 0 0 10px; }
.import-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.import-file-label { display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0; flex: none; }
.import-paste { margin-top: 10px; font-size: 13px; }
.import-paste summary { cursor: pointer; color: #2b5fd9; user-select: none; }
.import-paste textarea { width: 100%; margin-top: 8px; border: 1px solid #e3e6ee; border-radius: 8px; padding: 10px; font-size: 13px; font-family: inherit; resize: vertical; box-sizing: border-box; color: #333; }
.import-excel-tip { font-size: 12px; margin: 8px 0 0; }
.import-status { min-height: 0; text-align: left; margin: 6px 0 0; }
.import-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 13px; font-weight: 600; }
.import-table-wrap { max-height: 340px; overflow: auto; border: 1px solid #eef0f4; border-radius: 8px; }
.import-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12px; }
.import-table th { position: sticky; top: 0; background: #f7f8fb; color: #666; font-weight: 600; text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef0f4; z-index: 1; }
.import-table td { padding: 6px; border-bottom: 1px solid #f3f4f7; vertical-align: middle; }
.import-table td:first-child { width: 32px; text-align: center; color: #999; }
.import-table td:nth-child(2) { min-width: 200px; }
.import-table td:nth-child(3) { min-width: 100px; }
.import-table td:nth-child(4) { min-width: 160px; }
.import-table input { width: 100%; box-sizing: border-box; border: 1px solid #e3e6ee; border-radius: 6px; padding: 6px 7px; font-size: 12px; color: #333; background: #fff; }
.import-table input:focus { outline: none; border-color: #2b5fd9; }
.import-del { border: none; background: #fdecec; color: #d33; border-radius: 6px; padding: 5px 8px; font-size: 12px; cursor: pointer; }

.qr-box { text-align: center; padding: 10px 0; }
.qr-box img { width: 220px; height: 220px; display: inline-block; background: #fff; }
.qr-url { font-size: 13px; color: #2b5fd9; word-break: break-all; margin-top: 8px; }
.qr-tip { font-size: 12px; color: #999; margin-top: 6px; }

.gate { margin-top: 60px; }
.gate input {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  outline: none;
  margin-top: 8px;
}
.gate input:focus { border-color: #2b5fd9; }

[hidden] { display: none !important; }

/* ===== 评分页：分类 / 要素 / 评审项目 / 分值 ===== */
.table-head {
  display: grid;
  grid-template-columns: 1fr 56px 84px;
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
  color: #999;
  border-bottom: 1px solid #eee;
}
.th-item { text-align: left; }
.th-max { text-align: center; }
.th-score { text-align: center; }

.category-block { margin-top: 10px; }

.cat-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #eef3ff;
  color: #2b5fd9;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 4px solid #2b5fd9;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #2b5fd9;
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.5;
}
.tag-el { background: #8a93a6; }

.el-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  font-weight: 600;
  padding: 8px 2px 4px;
  border-bottom: 1px dashed #e8e8e8;
}
.element-block { margin-top: 6px; }

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(170px, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.item-row:last-child { border-bottom: none; }
.item-text { font-size: 13px; color: #444; line-height: 1.5; }

.item-max {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #f08c00;
  background: #fff7e6;
  border-radius: 6px;
  padding: 4px 0;
}

.item-input {
  width: 84px;
  height: 46px;
  border: 2px solid #2b5fd9;
  border-radius: 10px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1a3f9e;
  background: #f4f8ff;
  outline: none;
  box-shadow: 0 2px 6px rgba(43, 95, 217, 0.12);
}
.item-input.filled { background: #e3edff; }
.item-input:focus {
  border-color: #1a3f9e;
  box-shadow: 0 0 0 3px rgba(43, 95, 217, 0.2);
  background: #fff;
}
.item-input::placeholder { font-size: 12px; font-weight: 400; color: #9aa7c7; }
.item-input:disabled { opacity: 0.5; }

/* 滑条打分 */
.score-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.item-score {
  flex-shrink: 0;
  min-width: 52px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid #c9d9ff;
  border-radius: 10px;
  background: #eef3ff;
  color: #2b5fd9;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.item-score:active { background: #e3edff; }
.item-score:disabled { opacity: 0.55; cursor: not-allowed; }
.item-score-edit {
  width: 52px;
  height: 40px;
  padding: 0 2px;
  border: 2px solid #2b5fd9;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #1a3f9e;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 95, 217, 0.16);
}
.item-range {
  flex: 1;
  min-width: 90px;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, #2b5fd9 0%, #2b5fd9 var(--p, 0%), #e6e9f0 var(--p, 0%), #e6e9f0 100%);
  outline: none;
  margin: 0;
}
.item-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2b5fd9;
  box-shadow: 0 2px 6px rgba(43, 95, 217, 0.28);
  cursor: pointer;
}
.item-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2b5fd9;
  box-shadow: 0 2px 6px rgba(43, 95, 217, 0.28);
  cursor: pointer;
}
.item-range::-moz-range-track { height: 10px; border-radius: 999px; background: transparent; }
.item-range:disabled { opacity: 0.55; }
@media (max-width: 560px) {
  .item-row {
    grid-template-columns: minmax(0, 1fr) 40px 132px;
    gap: 6px;
    align-items: center;
  }
  .item-text { font-size: 12px; line-height: 1.4; padding-right: 2px; }
  .item-max { font-size: 12px; padding: 3px 0; }
  .score-control { grid-column: auto; gap: 6px; }
  .item-score {
    min-width: 38px;
    width: 38px;
    height: 36px;
    padding: 0 2px;
    font-size: 17px;
    border-radius: 8px;
  }
  .item-score-edit { width: 38px; height: 36px; font-size: 17px; }
  .item-range { min-width: 0; height: 8px; }
  .item-range::-webkit-slider-thumb { width: 18px; height: 18px; border-width: 2px; }
  .item-range::-moz-range-thumb { width: 16px; height: 16px; border-width: 2px; }
}

/* ===== 管理后台：删除评分 / 回收站 / 撤销 ===== */
.judge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.judge-name { flex: 1; }
.judge-score { color: #2b5fd9; font-weight: 600; white-space: nowrap; }
.judge-row .btn.small { margin: 0; flex-shrink: 0; }
.judge-time {
  display: block;
  font-size: 11px;
  color: #999;
  font-weight: 400;
  margin-top: 2px;
}

.lock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff7e6;
  border: 1px solid #ffe0a3;
  color: #a06a00;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 14px;
}
.lock-bar .btn.small { margin: 0; flex-shrink: 0; }

.trash-card { margin-top: 16px; }
.trash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.trash-head .card-title { margin: 0; }
.trash-actions { display: flex; gap: 8px; flex-shrink: 0; }

.award-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  background: #eef0f4;
  color: #5b6475;
}
.award-badge.gold { background: #fff4d6; color: #a06a00; }
.award-badge.blue { background: #e6efff; color: #1f4fb0; }
.award-badge.green { background: #e6f6ee; color: #0a8f4c; }
.award-badge.gray { background: #eef0f4; color: #5b6475; }
.trash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 13px;
}
.trash-row:last-child { border-bottom: none; }
.trash-info { color: #666; word-break: break-all; }

.undo-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 520px;
  background: #1f2a44;
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: center;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.undo-bar .btn.small { margin-left: 8px; vertical-align: middle; }

.toolbar-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 评分页：项目下拉选择 ===== */
.project-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.picker-label {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}
.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.picker-count {
  font-size: 12px;
  font-weight: 600;
  color: #2b5fd9;
  background: #eef3ff;
  padding: 2px 9px;
  border-radius: 999px;
}
.picker-count.done {
  color: #0a8f4c;
  background: #e6f6ee;
}
.project-select {
  width: 100%;
  height: 48px;
  border: 2px solid #2b5fd9;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: #1a3f9e;
  background: #f4f8ff;
  outline: none;
}
.project-select:focus { box-shadow: 0 0 0 3px rgba(43, 95, 217, 0.2); }
.pick-meta { font-size: 13px; color: #888; }

/* ===== 自定义项目下拉（彩色状态） ===== */
.green { color: #0a8f4c; }
.red { color: #d33; }

.project-toggle {
  width: 100%;
  height: 48px;
  border: 2px solid #2b5fd9;
  border-radius: 10px;
  padding: 0 14px;
  background: #f4f8ff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #1a3f9e;
  cursor: pointer;
}
.current-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: #2b5fd9; }

.dot { width: 12px; height: 12px; border-radius: 50%; background: #d33; flex-shrink: 0; }
.dot.complete { background: #0a8f4c; }
.dot.incomplete { background: #d33; }

.project-menu {
  margin-top: 8px;
  border: 1px solid #e0e6f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 55vh;
  overflow-y: auto;
}
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.menu-item.complete { color: #0a8f4c; }
.menu-item.incomplete { color: #d33; }
.project-number {
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: #fff;
}
.menu-item.complete .project-number { background: #e6f6ee; }
.menu-item.incomplete .project-number { background: #fdecea; }
.project-toggle .project-number.complete { color: #0a8f4c; border-color: #0a8f4c; background: #e6f6ee; }
.project-toggle .project-number.incomplete { color: #d33; border-color: #d33; background: #fdecea; }
.menu-item .menu-name { flex: 1; word-break: break-all; }
.menu-item .menu-status { font-size: 12px; opacity: 0.85; white-space: nowrap; }
.menu-empty { padding: 14px; color: #999; font-size: 14px; text-align: center; }

/* ===== 可拖动暂存悬浮按钮 ===== */
.draft-fab {
  position: fixed;
  right: 18px;
  bottom: 96px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: #2b5fd9;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(43, 95, 217, 0.45);
  z-index: 1000;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.draft-fab:active { transform: scale(0.96); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 180px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1001;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; }

.save-status {
  font-size: 12px;
  color: #888;
}
.save-status.ok { color: #0a8f4c; }
.save-status.err { color: #d33; }
.save-status.saving { color: #2b5fd9; }

/* ===== 分级标准弹窗 ===== */
.std-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #2b5fd9;
  background: #fff;
  border: 1px solid #2b5fd9;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.std-btn:active { background: #eef3ff; }

.std-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.std-dialog {
  background: #f5f7fb;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.std-head {
  background: #1f3a8a;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.std-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.std-sub { font-size: 12px; opacity: 0.82; margin-top: 4px; line-height: 1.4; }
.std-close {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.std-body { padding: 14px 16px 22px; overflow-y: auto; }
.std-intro {
  font-size: 13px;
  color: #555;
  background: #fff;
  border-left: 4px solid #2b5fd9;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.std-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.std-legend span { font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.score-hi { background: #e6f6ee; color: #0a8f4c; }
.score-mid { background: #fff3e0; color: #b26a00; }
.score-lo { background: #fdecea; color: #c0392b; }

.std-project {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.std-project-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #eef3ff;
}
.std-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2b5fd9;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.std-pname { font-size: 15px; font-weight: 700; color: #1f2a44; }

.std-level {
  padding: 12px 14px;
  border-top: 1px solid #f0f2f7;
  border-left: 3px solid transparent;
}
.std-level.hi { border-left-color: #0a8f4c; }
.std-level.mid { border-left-color: #e08a00; }
.std-level.lo { border-left-color: #c0392b; }
.std-level-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.std-score { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.std-dim { font-size: 13px; color: #333; font-weight: 600; }
.std-dim .sep { color: #bbb; margin: 0 4px; font-weight: 400; }
.std-type { font-size: 11px; color: #666; border: 1px solid #dcdfe6; border-radius: 4px; padding: 1px 5px; }
.std-std { font-size: 13px; color: #444; line-height: 1.65; margin-bottom: 8px; }
.std-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  background: #f8f9fc;
  border-radius: 8px;
  padding: 8px 10px;
}
.std-meta div { font-size: 12px; color: #666; line-height: 1.5; }
.std-meta b { color: #333; font-weight: 600; }
@media (min-width: 560px) {
  .std-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.std-note { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.std-note.warn { border-left: 4px solid #c0392b; }
.std-note.info { border-left: 4px solid #8a93a6; }
.std-note h4 { margin: 0 0 6px; font-size: 14px; color: #1f2a44; }
.std-note ol { margin: 0; padding-left: 20px; font-size: 13px; color: #444; line-height: 1.75; }

/* ===== 多期评分 · 管理后台 ===== */
.round-bar { margin-bottom: 14px; }
.round-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.round-label { font-size: 13px; color: #666; font-weight: 600; }
.round-select {
  flex: 1;
  min-width: 180px;
  height: 40px;
  border: 1px solid #d0d7e6;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
}
.round-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eef0f4; color: #5b6475; }
.round-badge.current { background: #e6f6ee; color: #0a8f4c; }
.round-badge.history { background: #fdecea; color: #c0392b; }
.round-badge.unlocked { background: #fff4d6; color: #a06a00; }
.round-badge.draft { background: #eef3ff; color: #2b5fd9; }
.round-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.round-hint { margin: 10px 0 0; font-size: 12px; }

.readonly-note {
  background: #fff7e6;
  border: 1px solid #ffe0a3;
  color: #a06a00;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 13px;
}

.side-log {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 1200;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: #1f2a44;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  line-height: 1.5;
}
.side-log-time { font-weight: 700; margin-bottom: 2px; }
.side-log-ip { color: #9fb3d9; font-size: 12px; margin-bottom: 4px; }
.side-log-detail { color: #fff; word-break: break-all; }

.modal { position: fixed; inset: 0; z-index: 1300; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-dialog { width: 100%; max-width: 460px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.modal-head { background: #1f3a8a; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.modal-close { background: rgba(255, 255, 255, 0.16); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.modal-body { padding: 16px; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.audit-filter { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
.audit-item { padding: 10px 0; border-bottom: 1px dashed #eef0f4; }
.audit-item:last-child { border-bottom: none; }
.audit-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.audit-action { font-size: 13px; font-weight: 700; color: #1f2a44; }
.audit-time { font-size: 12px; color: #999; }
.audit-detail { font-size: 13px; color: #444; margin-top: 4px; line-height: 1.5; }
.audit-meta { font-size: 11px; color: #999; margin-top: 4px; }

/* ===== 评分端 · 查看得分 / 只读 ===== */
.results-modal { position: fixed; inset: 0; z-index: 1400; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.results-dialog { width: 100%; max-width: 520px; max-height: 82vh; background: #f5f7fb; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.results-head { background: #1f3a8a; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.results-title { font-size: 16px; font-weight: 700; }
.results-sub { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.results-body { padding: 12px 14px 20px; overflow-y: auto; }
.result-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.result-rank { width: 28px; height: 28px; border-radius: 50%; background: #eef3ff; color: #2b5fd9; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-name { flex: 1; font-size: 14px; color: #1f2a44; word-break: break-all; }
.result-avg { font-size: 15px; font-weight: 700; color: #2b5fd9; white-space: nowrap; }
.result-count { font-size: 11px; color: #999; white-space: nowrap; }
.results-refresh { font-size: 12px; color: #2b5fd9; background: none; border: none; cursor: pointer; padding: 0; }
.readonly-bar { background: #fff7e6; border: 1px solid #ffe0a3; color: #a06a00; border-radius: 10px; padding: 10px 12px; margin: 12px 0; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.round-name { font-size: 14px; font-weight: 600; color: #1f2a44; margin-bottom: 2px; }
.bottom-actions { display: flex; gap: 10px; margin-top: 12px; }
.bottom-actions .btn { flex: 1; margin: 0; }

/* 得分页 · 返回评分按钮（更醒目） */
a.link[href="/score"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #2b5fd9;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(43, 95, 217, 0.28);
  margin-left: 10px;
}
a.link[href="/score"]::before { content: "← "; }
a.link[href="/score"]:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(43, 95, 217, 0.25); }

/* 本人不可评 / 得分浮层 / 二维码按钮 */
.blocked-bar { background: #fdecea; border-color: #f5c2c0; color: #c0392b; }
.blocked-note { background: #fdecea; border: 1px solid #f5c2c0; color: #c0392b; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.menu-item.blocked { opacity: 0.78; }
.menu-item.blocked .menu-status { color: #c0392b; font-weight: 700; }

.results-overlay { position: fixed; inset: 0; z-index: 1600; background: rgba(15, 23, 42, 0.55); display: flex; align-items: flex-end; justify-content: center; padding: 10px; }
.results-sheet { width: 100%; max-width: 600px; height: 78vh; background: #f5f7fb; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25); }
.results-sheet-head { background: #1f3a8a; color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.results-sheet-title { font-size: 16px; font-weight: 700; }
.results-sheet-close { background: rgba(255, 255, 255, 0.16); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.results-frame { flex: 1; width: 100%; border: 0; background: #f5f7fb; }
.embed-wrap { padding-top: 10px; }
@media (min-width: 600px) {
  .results-overlay { align-items: center; }
  .results-sheet { height: 82vh; border-radius: 16px; }
}
.qr-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* 备用入口 / 备用二维码 */
.fallback-link { text-align: center; font-size: 12px; color: #8a93a6; margin: 18px 0 6px; }
.fallback-link a { color: #2b5fd9; text-decoration: underline; }
.qr-fallback { margin-top: 16px; border-top: 1px dashed #e5e7eb; padding-top: 12px; }
.qr-fallback-title { font-size: 14px; font-weight: 700; color: #1f2a44; margin-bottom: 8px; }
.qr-fallback img { width: 160px; height: 160px; }
.qr-fallback .btn { margin-top: 10px; }



