/* ==========================================================================
   儿童 ADHD 家长指导手册 专属样式
   加载顺序：common.css → handbook-parents.css → sidebar.css → theme-green.css
   注：--bg-light 由 common.css 统一定义为 #f5fbf9，此处不再重复
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --text: #2c2c2a;
  --text-2: #5f5e5a;
  --text-3: #888780;
  --border: #e4e2dc;
  --blue-100: #e6f1fb;
  --blue-600: #185fa5;
  --blue-800: #0c447c;
  --teal-100: #e1f5ee;
  --teal-600: #0f6e56;
  --teal-800: #085041;
  --amber-100: #faeeda;
  --amber-600: #854f0b;
  --red-100: #fcebeb;
  --red-600: #a32d2d;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ===== 正文排版 ===== */
.cover {
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px;
  margin-bottom: 44px;
}
.cover .kicker {
  font-size: 13px;
  color: var(--blue-600);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.cover h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.cover .desc {
  color: var(--text-2);
  font-size: 15px;
}
.cover .meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}

.notice {
  background: var(--amber-100);
  border-left: 3px solid var(--amber-600);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--amber-600);
  margin: 24px 0;
}

section.chapter {
  margin-bottom: 64px;
}
.ch-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 500;
}
.ch-tag.blue { background: var(--blue-100); color: var(--blue-800); }
.ch-tag.teal { background: var(--teal-100); color: var(--teal-800); }

h2.ch-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.45;
}
.ch-lead {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 24px;
}

.handbook-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.handbook-content h4 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 22px 0 8px;
}
.handbook-content p {
  margin-bottom: 14px;
}
.handbook-content ul,
.handbook-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.handbook-content li {
  margin-bottom: 6px;
}
.handbook-content strong {
  font-weight: 600;
}

.toolbox {
  border: 1.5px dashed var(--teal-600);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  background: rgba(225, 245, 238, 0.35);
}
.toolbox .tb-label {
  display: inline-block;
  background: var(--teal-600);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.toolbox h4 { margin-top: 4px; }
.toolbox ul,
.toolbox ol { margin-bottom: 8px; }

.handbook-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 18px 0;
}
.handbook-content th {
  text-align: left;
  background: var(--bg-soft);
  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: 13.5px;
}
.handbook-content td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.lvl {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.lvl-a { background: var(--teal-100); color: var(--teal-800); }
.lvl-b { background: var(--blue-100); color: var(--blue-800); }
.lvl-c { background: var(--amber-100); color: var(--amber-600); }
.lvl-d { background: var(--red-100); color: var(--red-600); }

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
  background: var(--bg);
}
.card .c-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.quote {
  border-left: 3px solid var(--blue-600);
  padding: 4px 16px;
  color: var(--text-2);
  font-size: 14.5px;
  margin: 18px 0;
  background: var(--blue-100);
  border-radius: 0 8px 8px 0;
}

.cmp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.cmp .col {
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
}
.cmp .no { background: var(--red-100); color: var(--red-600); }
.cmp .yes { background: var(--teal-100); color: var(--teal-800); }
.cmp .col b {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.closing {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  color: var(--text-2);
  font-size: 14px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item .q {
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 8px;
}

/* ===== 右侧栏目录样式 ===== */
.toc-group {
  font-size: 12px;
  color: var(--text-3);
  margin: 14px 0 6px 10px;
  letter-spacing: 1px;
}
.toc-group:first-child { margin-top: 0; }

.toc-link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.5;
  transition: all 0.2s ease;
}
.toc-link:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.toc-link.active {
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 600;
}

/* ===== 响应式 ===== */
@media (max-width: 991.98px) {
  .cover h1 { font-size: 24px; }
}
@media (max-width: 767.98px) {
  .cmp { grid-template-columns: 1fr; }
  .handbook-content table { font-size: 13px; }
  .handbook-content th,
  .handbook-content td { padding: 8px; }
}
