/* ============================================================
 * 老师使用指引 — 和 about.css 风格对齐，补充指引特有组件
 * ============================================================ */

/* 三步流水线 */
.g-pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.g-pipe-step {
  flex: 1 1 200px;
  max-width: 280px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.g-pipe-step.g-pipe-hl {
  background: linear-gradient(180deg, var(--brand-soft, #ecf0fb), #fff);
  border-color: var(--brand-soft-2, #e0e7fa);
  box-shadow: 0 8px 24px rgba(49,85,212,.08);
}
.g-pipe-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand, #3155d4);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: "SF Mono", Menlo, monospace;
}
.g-pipe-body {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
}
.g-pipe-arrow {
  display: flex;
  align-items: center;
  color: #cbd5e1;
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .g-pipe-arrow { transform: rotate(90deg); width: 100%; justify-content: center; }
  .g-pipe-step { max-width: none; }
}

/* 做 / 不做 */
.g-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 768px) { .g-notes { grid-template-columns: 1fr; } }
.g-note {
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 14.5px;
  line-height: 1.7;
  color: #374151;
}
.g-note-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.g-note-no { border-left: 4px solid #dc2626; }
.g-note-no .g-note-label { background: rgba(239,68,68,.1); color: #dc2626; }
.g-note-yes { border-left: 4px solid var(--brand, #3155d4); background: linear-gradient(180deg, rgba(49,85,212,.02), #fff); }
.g-note-yes .g-note-label { background: var(--brand-soft); color: var(--brand); }

/* Before / After 对比 */
.g-ba {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.g-ba-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 16px;
  align-items: center;
}
@media (max-width: 768px) {
  .g-ba-row { grid-template-columns: 1fr; gap: 8px; }
  .g-ba-arrow { transform: rotate(90deg); }
}
.g-ba-before, .g-ba-after {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.g-ba-before {
  background: #f1f5f9;
  color: #64748b;
  text-decoration: line-through;
  text-decoration-color: rgba(100,116,139,.25);
}
.g-ba-after {
  background: var(--brand-soft, #ecf0fb);
  color: #0f172a;
  border-left: 3px solid var(--brand, #3155d4);
}
.g-ba-after strong { color: var(--brand, #3155d4); font-weight: 700; }
.g-ba-arrow {
  text-align: center;
  color: var(--brand, #3155d4);
  font-size: 22px;
  font-weight: 700;
}

/* 三端分工 */
.g-triends {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) { .g-triends { grid-template-columns: 1fr; } }
.g-triend {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all .2s ease;
}
.g-triend:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.06); }
.g-triend-admin { border-top: 4px solid #f59e0b; }
.g-triend-student { border-top: 4px solid #10b981; }
.g-triend-display { border-top: 4px solid var(--brand, #3155d4); }
.g-triend-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 14px;
}
.g-triend-admin .g-triend-badge { background: rgba(245,158,11,.12); color: #d97706; }
.g-triend-student .g-triend-badge { background: rgba(16,185,129,.12); color: #10b981; }
.g-triend-display .g-triend-badge { background: var(--brand-soft); color: var(--brand); }
.g-triend-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.g-triend-path {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.g-triend-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
}

/* 流程时间线 */
.g-flow {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.g-flow-item {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  position: relative;
}
.g-flow-item-hl {
  background: linear-gradient(135deg, rgba(49,85,212,.03), #fff 60%);
  border-color: var(--brand-soft-2, #e0e7fa);
  box-shadow: 0 8px 24px rgba(49,85,212,.06);
}
.g-flow-time {
  display: inline-block;
  padding: 4px 12px;
  background: #0f172a;
  color: #fff;
  font-family: "SF Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: .3px;
}
.g-flow-item-hl .g-flow-time { background: var(--brand, #3155d4); }
.g-flow-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.g-flow-item p {
  margin: 0 0 8px;
  font-size: 15px;
  color: #475569;
  line-height: 1.75;
}
.g-flow-item strong { color: #0f172a; font-weight: 600; }
.g-flow-item em { font-style: normal; color: var(--brand, #3155d4); }
.g-flow-list {
  margin: 6px 0 0;
  padding-left: 20px;
  font-size: 15px;
  color: #475569;
  line-height: 1.9;
}
.g-flow-list li { padding: 2px 0; }
.g-flow-list strong { color: #0f172a; font-weight: 600; }

/* 截图 */
.g-shot {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px -12px rgba(0,0,0,.12);
  background: #f8fafc;
}
.g-shot img { display: block; width: 100%; height: auto; }
.g-shot-cap {
  padding: 10px 16px;
  font-size: 12.5px;
  color: #64748b;
  background: #fafbff;
  border-top: 1px solid #e5e7eb;
}

/* Chip 标签 */
.g-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.g-chip {
  padding: 6px 14px;
  background: var(--brand-soft, #ecf0fb);
  color: var(--brand, #3155d4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

/* 引导文案卡 */
.g-writing {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 900px) { .g-writing { grid-template-columns: 1fr; } }
.g-write-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  border-top: 3px solid var(--brand, #3155d4);
}
.g-write-name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.g-write-role {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e5e7eb;
}
.g-write-when {
  font-size: 13px;
  color: var(--brand, #3155d4);
  font-weight: 500;
}
.g-write-when::before {
  content: '什么时候写：';
  color: #94a3b8;
  font-weight: 400;
}

/* FAQ 手风琴 */
.g-faqs {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-faq {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all .2s ease;
}
.g-faq[open] {
  border-color: var(--brand-soft-2, #e0e7fa);
  box-shadow: 0 4px 16px rgba(49,85,212,.06);
}
.g-faq summary {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: '+';
  font-size: 20px;
  color: #94a3b8;
  margin-left: 12px;
  transition: transform .2s ease;
}
.g-faq[open] summary::after {
  content: '−';
  color: var(--brand, #3155d4);
}
.g-faq summary:hover { color: var(--brand, #3155d4); }
.g-faq p {
  margin: 0;
  padding: 0 24px 18px;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
}
.g-faq strong { color: #0f172a; font-weight: 600; }

/* ============ 手机端紧凑化（≤768px） ============ */
@media (max-width: 768px) {
  /* 三步流水线 */
  .g-pipeline { gap: 8px; margin-bottom: 20px; }
  .g-pipe-step { padding: 16px 14px; gap: 8px; border-radius: 12px; }
  .g-pipe-num { width: 28px; height: 28px; font-size: 14px; }
  .g-pipe-body { font-size: 13.5px; line-height: 1.5; }

  /* 做/不做 */
  .g-notes { gap: 10px; }
  .g-note { padding: 14px 16px; font-size: 13.5px; line-height: 1.6; border-radius: 10px; }
  .g-note-label { font-size: 11px; margin-bottom: 6px; }

  /* 三端分工 */
  .g-triends { gap: 12px; }
  .g-triend { padding: 18px 16px; border-radius: 12px; }
  .g-triend:hover { transform: none; }
  .g-triend-badge { margin-bottom: 10px; font-size: 11px; }
  .g-triend-title { font-size: 16px; }
  .g-triend-path { font-size: 12px; margin-bottom: 8px; }
  .g-triend-desc { font-size: 13px; line-height: 1.55; }

  /* 流程 */
  .g-flow { gap: 10px; }
  .g-flow-item { padding: 16px 18px; border-radius: 12px; }
  .g-flow-time { padding: 3px 10px; font-size: 11px; margin-bottom: 8px; }
  .g-flow-title { font-size: 16px; margin-bottom: 8px; }
  .g-flow-item p { font-size: 13.5px; line-height: 1.65; }
  .g-flow-list { font-size: 13.5px; line-height: 1.8; padding-left: 18px; }

  /* 截图：手机上缩小阴影和边距 */
  .g-shot { margin-top: 12px; border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.12); }
  .g-shot-cap { padding: 8px 12px; font-size: 11.5px; line-height: 1.5; }

  /* Chips */
  .g-chips { gap: 6px; margin-top: 8px; }
  .g-chip { padding: 4px 10px; font-size: 12px; }

  /* 引导文案卡 */
  .g-writing { gap: 10px; }
  .g-write-card { padding: 16px 18px; border-radius: 12px; }
  .g-write-name { font-size: 15px; margin-bottom: 6px; }
  .g-write-role { font-size: 13px; margin-bottom: 10px; padding-bottom: 10px; line-height: 1.55; }
  .g-write-when { font-size: 12px; }

  /* FAQ */
  .g-faqs { gap: 8px; }
  .g-faq summary { padding: 14px 18px; font-size: 14px; }
  .g-faq p { padding: 0 18px 14px; font-size: 13px; line-height: 1.65; }
}
