/* ============================================================
   芬香妈妈·督导师培训专用教材 — 统一排版样式 v2（可读性优化版）
   重点突出 / 条理清晰 / 卡片化 / 列表化 / 配图
   ============================================================ */
:root {
  --bg: #fff; --card: #fff; --border: #d9d9d9;
  --text: #2c2416; --muted: #6b6255; --accent: #8b4513;
  --orange: #c4732d; --green: #3a7d44; --blue: #4a6fa5; --purple: #8b5a9e;
}
@media print {
  @page { size: A4; margin: 2.2cm 1.8cm 2cm 1.8cm; }
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "SimSun", serif;
  background: var(--bg); color: var(--text); line-height: 1.9;
  padding: 44px 28px 72px; max-width: 100%; margin: 0 auto;
  font-size: 11pt;
}
@media screen { body { max-width: 210mm; background: #f5f5f5; } }

.page-header {
  position: fixed; top: 0; right: 0; left: 0;
  height: 40px; line-height: 40px;
  text-align: right; font-size: 10pt; color: #888;
  z-index: 11; border-bottom: 1px solid #eee; background: #fafafa;
  padding: 0 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== 标题 ===== */
h1 { font-size: 1.3em; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--accent); letter-spacing: 0.02em; }
h2 { font-size: 1.12em; margin: 26px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
h3 { font-size: 1.05em; margin: 24px 0 10px; color: var(--accent); padding-left: 10px; border-left: 4px solid var(--accent); }
h4 { font-size: 1em; margin: 18px 0 8px; color: #333; font-weight: 700; }

p { margin: 8px 0; text-indent: 2em; }
p.no-indent { text-indent: 0; }

/* ===== 列表 ===== */
ul, ol { margin: 8px 0 8px 26px; }
li { margin: 4px 0; }
ol.steps { list-style: none; counter-reset: step; margin-left: 0; }
ol.steps > li {
  counter-increment: step; position: relative; padding-left: 34px; margin: 8px 0;
}
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700;
}
strong { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--border); margin: 26px 0; }

/* ===== 引言/关键句 ===== */
blockquote {
  border-left: 4px solid var(--accent); padding: 12px 18px;
  margin: 14px 0; background: #fdf8f2; color: #5a4a30;
  border-radius: 0 8px 8px 0;
}
blockquote p { text-indent: 0; }
blockquote.key { background: #f0e7db; font-weight: 700; color: #5c3a16; border-left-color: #c4732d; font-size: 1.02em; }
blockquote.goal { background: #eef4ef; border-left: 4px solid var(--green); color: #2f5d3c; }

/* ===== 表格 ===== */
table { border-collapse: collapse; width: 100%; margin: 14px 0; overflow: hidden; border-radius: 6px; }
td, th { border: 1px solid var(--border); padding: 8px 12px; text-align: left; font-size: 10pt; vertical-align: top; }
th { background: #f5f0e8; font-weight: 700; color: #5c3a16; }
tr:nth-child(even) td { background: #faf8f5; }

/* ===== 教学参考 ===== */
.teach-ref { background: #f7f3ee; border: 1px dashed #c9b896; border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.teach-ref p { text-indent: 0; margin: 6px 0; }
.teach-ref .ref-label { color: var(--accent); font-weight: 700; }

/* ===== 产出物清单 ===== */
.output-list { background: #f0f7f2; border: 1px solid #bfd8c9; border-radius: 8px; padding: 12px 18px; margin: 14px 0; }
.output-list li { list-style: none; margin: 5px 0; }
.output-list li::before { content: "☐ "; color: var(--green); font-weight: 700; }

/* ===== 话术工具箱 ===== */
.script-box { background: #fdf8f2; border-left: 4px solid var(--orange); padding: 12px 16px; margin: 12px 0; border-radius: 0 8px 8px 0; }
.script-box p { text-indent: 0; }
.script-box .label { color: var(--orange); font-weight: 700; }

/* ===== 对照卡片（该做/不该做）===== */
.contrast { display: flex; gap: 12px; margin: 12px 0; }
.contrast .do, .contrast .dont { flex: 1; padding: 12px 14px; border-radius: 8px; font-size: 10pt; }
.contrast .do { background: #f0f7f2; border: 1px solid #bfd8c9; }
.contrast .dont { background: #fdf2f2; border: 1px solid #e5caca; }
.contrast .tag { display: inline-block; font-weight: 700; margin-bottom: 6px; font-size: 11px; }
.contrast .do .tag { color: var(--green); }
.contrast .dont .tag { color: #b33; }
.contrast ul { margin: 4px 0 0 18px; }
.contrast li { margin: 3px 0; }
@media print { .contrast { page-break-inside: avoid; } }

/* ===== 步骤流程条 ===== */
.steps { margin: 12px 0; }
.step-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.step-num { flex-shrink: 0; width: 24px; height: 24px; line-height: 24px; text-align: center; background: var(--blue); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; }
.step-text { font-size: 10.5pt; }

/* ===== 信号/提示框 ===== */
.callout { border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-size: 10.5pt; }
.callout p { text-indent: 0; margin: 4px 0; }
.callout.warn { background: #fdf2f2; border: 1px solid #e5caca; border-left: 4px solid #b33; }
.callout.tip { background: #eef4ef; border: 1px solid #bfd8c9; border-left: 4px solid var(--green); }
.callout.info { background: #edf2f8; border: 1px solid #c5d4e5; border-left: 4px solid var(--blue); }
.callout .c-label { font-weight: 700; color: inherit; }

/* ===== SVG 配图容器 ===== */
.diagram { margin: 18px 0; text-align: center; }
.diagram svg, .diagram img { max-width: 100%; height: auto; border-radius: 8px; }
.diagram .caption { font-size: 9.5pt; color: var(--muted); margin-top: 6px; }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--accent); text-decoration: none; font-size: 10pt; }
.back-link:hover { text-decoration: underline; }

@media print {
  .back-link, .page-header { display: none; }
  body { max-width: none; background: #fff; font-size: 11pt; padding-top: 0; }
}
