/* /teach 教学工作区 — 使用站点 --zc-* token */
.teach-container {
  max-width: 960px;
}

.teach-hero-icon {
  font-size: 3.25rem;
  color: var(--zc-primary, #0d9488);
}

.teach-phase-badge {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.teach-ws-card {
  border: 1px solid var(--zc-border, #e5e7eb);
  border-radius: 0.75rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.teach-ws-card:hover {
  border-color: var(--zc-primary, #0d9488);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.teach-ws-card a.teach-ws-title {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.teach-ws-card a.teach-ws-title:hover {
  color: var(--zc-primary, #0d9488);
}

.teach-placeholder {
  border: 1px dashed var(--zc-border, #d1d5db);
  border-radius: 0.75rem;
  background: var(--zc-surface-muted, #f8fafc);
}

.teach-step-list {
  counter-reset: teach-step;
  list-style: none;
  padding-left: 0;
}

.teach-step-list li {
  counter-increment: teach-step;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.75rem;
}

.teach-step-list li::before {
  content: counter(teach-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--zc-primary-soft, #ccfbf1);
  color: var(--zc-primary, #0d9488);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-teal {
  color: var(--zc-primary, #0d9488) !important;
}

.teach-gate-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: #9ca3af;
}

.teach-gate-dot.ok {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.teach-gate-dot.no {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

#teach-flash {
  position: sticky;
  top: 0.5rem;
  z-index: 20;
}

.teach-chat-log {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--zc-surface-muted, #f8fafc);
}

.teach-chat-msg {
  margin-bottom: 0.75rem;
}

.teach-chat-role {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.teach-chat-bubble {
  display: inline-block;
  max-width: 95%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--zc-border, #e5e7eb);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
}

.teach-chat-user .teach-chat-bubble {
  background: var(--zc-primary-soft, #ccfbf1);
  border-color: transparent;
}

.teach-chat-assistant .teach-chat-bubble {
  background: #fff;
}

.teach-chat-user {
  text-align: right;
}

.teach-chat-user .teach-chat-bubble {
  text-align: left;
}

.teach-publish-pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
}
