/* 教师入口与统计页 */

.teacher-entry {
  margin: 1.25rem 0 0;
}

.btn--blockish {
  width: 100%;
  margin-top: 0.65rem;
}

.teacher-top .badge {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.teacher-dash {
  margin: 0 auto 1.5rem;
  padding: clamp(1.35rem, 2vw, 1.85rem) clamp(1.25rem, 2.5vw, 2.25rem)
    clamp(1.5rem, 2.5vw, 2rem);
  max-width: 100%;
  width: 100%;
  text-align: left;
}

.card--wide {
  max-width: 100%;
}

.teacher-section-title {
  margin: 1.1rem 0 0.85rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 800;
  color: #0f172a;
}

.teacher-cohort-meta {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.teacher-cohort-foot {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.teacher-row--pending td {
  color: #94a3b8;
}

.teacher-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.teacher-tag--ok {
  background: rgba(5, 150, 105, 0.15);
  color: #047857;
}

.teacher-tag--wait {
  background: rgba(148, 163, 184, 0.25);
  color: #64748b;
}

.teacher-group-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 560px) {
  .teacher-group-picker {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 560px) and (max-width: 900px) {
  .teacher-group-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.teacher-picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.1rem 0.95rem;
  min-height: 6.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(15, 23, 42, 0.1);
  background: var(--surface-elevated);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.teacher-picker-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.teacher-picker-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.teacher-picker-card__icon {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1;
}

.teacher-picker-card__name {
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  font-weight: 800;
  color: #0f172a;
}

.teacher-picker-card__range,
.teacher-picker-card__stat {
  font-size: clamp(0.76rem, 0.95vw, 0.82rem);
  font-weight: 600;
  color: var(--muted);
}

.teacher-detail-panel {
  min-height: 4rem;
  margin-top: 0.35rem;
}

.teacher-detail-inner {
  padding-top: 0.25rem;
}

.teacher-detail-placeholder {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
  text-align: center;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

.teacher-detail-head h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.teacher-group-hint {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #334155;
  background: rgba(14, 165, 233, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(14, 165, 233, 0.55);
}

.teacher-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0.85rem 0 1rem;
}

.teacher-sort-bar__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.teacher-sort-btn.is-active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.teacher-muted {
  color: #94a3b8;
}

.teacher-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.teacher-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.teacher-table th,
.teacher-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.teacher-table th {
  font-weight: 700;
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}

.teacher-table tbody tr:last-child td {
  border-bottom: none;
}

.teacher-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.06);
}

@media (max-width: 640px) {
  .teacher-table {
    font-size: 0.75rem;
  }

  .teacher-table th,
  .teacher-table td {
    padding: 0.45rem 0.4rem;
  }
}
