/* layout_L1.css — L1 左目录长文（Sandboxie 品牌化改版）
 * 需求11：目录左侧悬挂 —— 232px 左栏卡片（品牌色左竖条，sticky）；<=980px 折横向胶囊。
 * ⚠️ 本文件在 css/global.css 之后引入，是 .l1-layout/.l1-toc 的唯一权威定义。
 */
.l1-layout {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: 36px; align-items: start; max-width: 1140px; margin: 0 auto; padding: 30px 20px 8px;
}
.l1-toc {
  position: sticky; top: 84px; background: #fff;
  border: 1px solid #e8e8ec; border-left: 3px solid var(--brand, #0070F0);
  border-radius: 0 12px 12px 0; padding: 16px 14px;
  box-shadow: 0 1px 3px rgba(24,24,27,.07);
}
.l1-toc h3 {
  font-size: 12px; font-weight: 800; color: #9ca3af; text-transform: uppercase;
  letter-spacing: .8px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid #f4f4f5;
}
.l1-toc ul { list-style: none; margin: 0; padding: 0; }
.l1-toc li { margin: 2px 0; }
.l1-toc a {
  display: block; padding: 6px 10px; font-size: 13px; line-height: 1.45; color: #52525b;
  border-radius: 6px; text-decoration: none; transition: color .15s, background .15s;
}
.l1-toc a:hover, .l1-toc a.active { color: var(--brand-dk, #0057C2); background: var(--brand-soft, #EAF3FF); }
.l1-toc a.active { font-weight: 600; }
.l1-layout .main-content { min-width: 0; }
@media (max-width: 980px) {
  .l1-layout { grid-template-columns: 1fr; gap: 18px; padding: 22px 16px 8px; }
  .l1-toc { position: static; border-left-width: 1px; border-radius: 12px; }
  .l1-toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .l1-toc li { margin: 0; }
  .l1-toc a { padding: 5px 11px; background: #fafafa; border-radius: 999px; }
}
