/**
 * 前台博客布局（原 layout/head.html 内联样式）
 */
.blog-header {
  border-bottom: 1px solid #e5e5e5;
}

.blog-post {
  margin-bottom: 2rem;
}

.blog-post-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.blog-sidebar {
  position: sticky;
  top: 2rem;
  padding-right: 0.5rem;
}

/* 移动端：侧边栏占满宽，内容在下方 */
@media (max-width: 991.98px) {
  .blog-sidebar-col {
    margin-bottom: 1rem;
  }
  .blog-sidebar {
    position: static;
    top: auto;
    padding-right: 0;
  }
  .category-sidebar {
    padding: 0;
  }
}

/**
 * 仅写了 lg 断点的列，平板/手机下占满一行（避免与主内容左右挤压）
 */
@media (max-width: 991.98px) {
  .row > [class*="col-lg-"]:not([class*="col-12"]):not([class*="col-sm-"]):not([class*="col-6"]):not([class*="col-4"]):not([class*="col-3"]):not([class*="col-2"]) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

/**
 * 仅写了 md 断点的列，手机下占满一行
 */
@media (max-width: 767.98px) {
  .row > [class*="col-md-"]:not([class*="col-12"]):not([class*="col-sm-"]):not([class*="col-6"]):not([class*="col-4"]):not([class*="col-3"]):not([class*="col-2"]) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}
