/**
 * Blog 详情页专用样式（对应原 Elementor post-617）
 */
@import url("../lib/blog-detail.css");

/* Latest Post：左缩略图 + 右文字（补齐静态站缺失的 Elementor posts 布局） */
.blog-latest-posts .blog-latest-posts__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-latest-posts .elementor-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(15, 40, 80, 0.08);
  box-sizing: border-box;
}

.blog-latest-posts .elementor-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-latest-posts .elementor-post__thumbnail__link {
  display: block;
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
}

.blog-latest-posts .elementor-post__thumbnail {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.blog-latest-posts .elementor-post__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-latest-posts .elementor-post__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.blog-latest-posts .elementor-post__title {
  margin: 0 0 6px;
  line-height: 1.35;
}

.blog-latest-posts .elementor-post__title a {
  font-size: 15px;
  font-weight: 600;
}

.blog-latest-posts .elementor-post__meta-data {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

/* 提问表单间距 */
.elementor-617 .elementor-element-c399884 {
  margin-top: 28px;
}

/* TOC 展开 / 收起 */
.elementor-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.elementor-toc__header-title {
  margin: 0;
  flex: 1 1 auto;
}

.elementor-toc__toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: inherit;
  cursor: pointer;
}

.elementor-toc__toggle-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.elementor-toc__toggle-button--expand {
  display: none;
}

.elementor-widget-table-of-contents.elementor-toc--collapsed .elementor-toc__toggle-button--expand {
  display: inline-flex;
}

.elementor-widget-table-of-contents.elementor-toc--collapsed .elementor-toc__toggle-button--collapse {
  display: none;
}

.elementor-widget-table-of-contents.elementor-toc--collapsed .elementor-toc__body {
  display: none;
}
