/* 网格指标掌握度考核 APP 样式 */
.grid-exam-page {
  padding: 16px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  box-sizing: border-box;
}

.ge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  flex-wrap: wrap;
  gap: 12px;
}

.ge-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color, #111827);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge-subtitle {
  font-size: 13px;
  color: var(--muted-color, #6b7280);
  margin-top: 4px;
  display: block;
}

.ge-tabs {
  display: flex;
  background: var(--bg-tertiary, #f3f4f6);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.ge-tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-color, #4b5563);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ge-tab-btn.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: 600;
}

.ge-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 24px;
  margin-bottom: 20px;
}

.ge-card-head {
  margin-bottom: 16px;
}

.ge-card-head h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
}

.ge-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.ge-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.ge-manager-preview {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px dashed #cbd5e1;
}

.ge-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}

.ge-preview-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ge-preview-team-chip {
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.ge-rules {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.ge-rules h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #065f46;
}

.ge-rules ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #047857;
  line-height: 1.6;
}

.ge-start-action {
  text-align: center;
  padding: 10px 0;
}

/* 答题区域 */
.ge-exam-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ge-exam-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ge-badge-mgr {
  background: #4f46e5;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.ge-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.ge-timer-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ge-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ge-question-card {
  padding: 28px;
}

.ge-q-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ge-q-cat {
  background: #ede9fe;
  color: #6d28d9;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.ge-q-num {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
}

.ge-q-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 24px;
}

.ge-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.ge-option-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 15px;
  color: #1f2937;
  user-select: none;
}

.ge-option-item:hover {
  border-color: #a5b4fc;
  background: #f5f7ff;
}

.ge-option-item.selected {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #312e81;
  font-weight: 600;
}

.ge-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
  margin-right: 14px;
  color: #4b5563;
  flex-shrink: 0;
}

.ge-option-item.selected .ge-option-letter {
  background: #4f46e5;
  color: #fff;
}

.ge-q-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
  gap: 10px;
}

.ge-quick-dots {
  display: flex;
  gap: 6px;
}

.ge-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ge-dot.answered {
  background: #e0e7ff;
  color: #3730a3;
}

.ge-dot.active {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

/* 成绩报告单 */
.ge-result-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ge-score-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.ge-score-num {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.ge-score-unit {
  font-size: 12px;
  opacity: 0.9;
}

.ge-result-meta h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.ge-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ge-review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ge-review-item {
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.ge-review-item.correct {
  border-left: 5px solid #10b981;
}

.ge-review-item.wrong {
  border-left: 5px solid #ef4444;
  background: #fffafa;
}

.ge-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ge-tag-correct {
  background: #d1fae5;
  color: #065f46;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ge-tag-wrong {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ge-review-q {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.ge-review-ans {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 6px;
}

.ge-review-exp {
  font-size: 13px;
  color: #0369a1;
  background: #f0f9ff;
  padding: 8px 12px;
  border-radius: 6px;
}

/* 看板视图 & 实时监控 */
.ge-board-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.ge-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #d1fae5;
}

.ge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: gePulse 2s infinite;
}

@keyframes gePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ge-board-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ge-auto-refresh-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.ge-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.ge-kpi-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ge-kpi-num {
  font-size: 24px;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 4px;
}

.ge-kpi-label {
  font-size: 13px;
  color: #6b7280;
}

/* 待考催办专区 */
.ge-untested-card {
  border: 1px solid #fecaca;
  background: #fffafa;
}

.ge-untested-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.ge-untested-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge-untested-title h3 {
  margin: 0;
  font-size: 16px;
  color: #991b1b;
}

.ge-untested-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ge-untested-chip {
  background: #fee2e2;
  color: #b91c1c;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ge-branch-stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.ge-branch-stat-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.ge-branch-name {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 4px;
}

.ge-branch-score {
  font-size: 18px;
  font-weight: 800;
  color: #0284c7;
}

.ge-branch-progress {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.ge-board-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ge-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ge-chip {
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ge-chip.active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  font-weight: 600;
}

.ge-table-wrap {
  overflow-x: auto;
}

.ge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ge-table th, .ge-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.ge-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.ge-rank-1 { color: #d97706; font-weight: 800; }
.ge-rank-2 { color: #4b5563; font-weight: 800; }
.ge-rank-3 { color: #b45309; font-weight: 800; }

.ge-status-tested {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ge-status-untested {
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* 速记卡 */
.ge-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.ge-team-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ge-tc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.ge-tc-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ge-tc-worker {
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ge-tc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ge-metric-box {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.ge-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.ge-metric-val.warn {
  color: #dc2626;
}

.ge-metric-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.ge-modal-summary {
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 640px) {
  .grid-exam-page {
    padding: 12px 10px;
  }
  .ge-form-grid {
    grid-template-columns: 1fr;
  }
  .ge-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ge-question-card {
    padding: 18px 14px;
  }
}

.ge-exam-mode-tabs,
.ge-board-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ge-mode-btn,
.ge-board-mode-btn {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}

.ge-mode-btn.active,
.ge-board-mode-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.ge-blank-wrap {
  margin-top: 18px;
}

.ge-blank-input {
  max-width: 280px;
  font-size: 18px;
  padding: 12px 14px;
}

.ge-blank-hint {
  margin-top: 8px;
  font-size: 12px;
}
