.post_detail {
  padding: calc(7.7rem + 40px) 0 8rem;
}
/* 默认页面使用低优先级区块样式，保留编辑器自定义设置。 */
.post_detail.page_detail .tcon { max-width: none; }
.page_detail .tcon { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page_detail .tcon h1 { font-size: clamp(30px, 4vw, 48px); overflow-wrap: anywhere; }
.page_detail .post.page_content { max-width: none; }
.page_detail .page_content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  display: flow-root;
}
.page_content > :where(.alignwide, .alignfull) { width: 100%; max-width: none; }
.page_content :where(p, ul, ol, figure, blockquote, pre, .wp-block-group, .wp-block-columns, .wp-block-buttons, .wp-block-media-text, .wp-block-cover, .wp-block-details) {
  margin-top: 0;
  margin-bottom: 24px;
}
.page_content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}
.page_content :where(h1) { font-size: 36px; }
.page_content :where(h2) { font-size: 30px; }
.page_content :where(h3) { font-size: 24px; }
.page_content :where(h4) { font-size: 21px; }
.page_content :where(h5) { font-size: 19px; }
.page_content :where(h6) { font-size: 17px; }
.page_content > :first-child { margin-top: 0; }
.page_content :where(ul:not(.wp-block-social-links):not(.wp-block-navigation__container), ol) { padding-left: 1.5em; }
.page_content :where(ul:not(.wp-block-social-links):not(.wp-block-navigation__container) > li) { list-style: disc; }
.page_content :where(ol > li) { list-style: decimal; }
.page_content :where(li + li) { margin-top: 8px; }
.page_content :where(li > ul, li > ol) { margin-top: 8px; margin-bottom: 0; }
.page_content :where(em, i) { font-style: italic; }
.page_content :where(a:not(.wp-element-button):not(.wp-block-button__link)) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page_content :where(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.page_content :where(img, video, iframe) { max-width: 100%; }
.page_content :where(img, video) { height: auto; }
.page_content :where(figcaption, .wp-caption-text) { margin-top: 10px; font-size: 14px; line-height: 1.6; text-align: center; }
.page_content :where(blockquote) { padding: 22px 26px; border-left: 3px solid var(--secondary); background: var(--light); }
.page_content :where(blockquote > :last-child) { margin-bottom: 0; }
.page_content :where(cite) { font-size: 14px; }
.page_content :where(.wp-block-table) { overflow-x: auto; }
.page_content :where(table) { width: 100%; border-collapse: collapse; }
.page_content :where(th, td) { padding: 12px 16px; border: 1px solid var(--line); text-align: start; }
.page_content :where(th) { color: var(--title); background: var(--light); }
.page_content :where(pre) { padding: 20px; overflow-x: auto; background: var(--light); border-radius: 8px; white-space: pre; }
.page_content :where(code, pre) { font-family: monospace; font-size: 0.9em; }
.page_content :where(hr) { margin-top: 32px; margin-bottom: 32px; border: 0; border-top: 1px solid var(--line); }
.page_content :where(.wp-block-button__link) { padding: 12px 24px; border-radius: 6px; background-color: var(--primary); color: #fff; font-size: inherit; text-decoration: none; }
.page_content :where(.is-style-outline .wp-block-button__link) { background: transparent; color: var(--primary); }
.page_content :where(.wp-block-column) { min-width: 0; }
.page_content :where(.wp-block-cover) { color: #fff; }
.page_content :where(.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3, .has-text-color h1, .has-text-color h2, .has-text-color h3) { color: inherit; }
.page_content :where(.alignleft) { float: left; margin: 0 24px 24px 0; max-width: 50%; }
.page_content :where(.alignright) { float: right; margin: 0 0 24px 24px; max-width: 50%; }
.page_content :where(.aligncenter) { margin-left: auto; margin-right: auto; }
.page_content :where(summary) { cursor: pointer; color: var(--title); font-weight: 600; }
.page_content :where(.page_links) { display: flex; gap: 12px; margin-top: 32px; }
@media (max-width: 768px) {
  .page_detail .page_content { font-size: 16px; line-height: 1.75; }
  .page_content :where(h2) { font-size: 25px; }
  .page_content :where(h3) { font-size: 21px; }
  .page_content :where(blockquote, pre) { padding: 16px; }
  .page_content :where(th, td) { padding: 10px; }
  .page_content :where(.alignleft, .alignright) { float: none; max-width: 100%; margin-left: auto; margin-right: auto; }
}
.post_detail .crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  color: #68727a;
  font-size: 1.5rem;
  line-height: 1.9rem;
}
.post_detail .crumbs li {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.post_detail .crumbs li + li::before {
  content: '/';
  flex-shrink: 0;
  margin: 0 1rem;
}
.post_detail .crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.post_detail .crumbs a:hover {
  color: var(--primary);
}
.post_detail .crumbs a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.post_detail .crumbs li:last-child span {
  color: #102f51;
  font-weight: 600;
}
.post_detail .tcon {
  max-width: 860px;
  margin-bottom: 28px;
}
.post_detail .meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  opacity: 0.7;
}
.post_detail .cover {
  margin-bottom: 32px;
  border-radius: 18px;
  overflow: hidden;
}
.post_detail .post {
  max-width: 860px;
  min-width: 0;
}
.post_layout.has_toc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.post_toc {
  position: sticky;
  top: calc(7.7rem + 24px);
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--secondary);
  border-radius: 14px;
  background: var(--light);
}
.post_toc[hidden] {
  display: none;
}
.post_toc summary {
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.post_toc nav {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  margin-top: 16px;
}
.post_toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post_toc li + li {
  margin-top: 4px;
}
.post_toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.post_toc .toc_subheading a {
  padding-left: 24px;
  font-size: 13px;
}
.post_toc a:hover,
.post_toc a[aria-current] {
  color: var(--primary);
  background: #e8eff8;
}
.post_toc a:focus-visible,
.post_toc summary:focus-visible,
.post_related_card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.post_body {
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.post_body > :first-child {
  margin-top: 0;
}
.post_body p,
.post_body ul,
.post_body ol,
.post_body figure,
.post_body blockquote {
  margin-bottom: 24px;
}
.post_body h2,
.post_body h3 {
  margin: 36px 0 16px;
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  scroll-margin-top: calc(7.7rem + 24px);
}
.post_body h2 {
  font-size: 30px;
}
.post_body h3 {
  font-size: 23px;
}
.post_body ul,
.post_body ol {
  padding-left: 24px;
}
.post_body ul > li {
  list-style: disc;
}
.post_body ol > li {
  list-style: decimal;
}
.post_body li + li {
  margin-top: 8px;
}
.post_body img,
.post_body video,
.post_body iframe {
  max-width: 100%;
}
.post_body img,
.post_body video {
  height: auto;
  border-radius: 10px;
}
.post_body table,
.post_body pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.post_body blockquote {
  padding: 20px 24px;
  border-left: 3px solid var(--secondary);
  border-radius: 0 12px 12px 0;
  background: var(--light);
  color: var(--title);
}
.post_body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post_related {
  padding: 7rem 0 9rem;
  background: var(--light);
}
.post_related_head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.post_related_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
}
.post_related_card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.post_related_card:hover {
  box-shadow: 0 12px 32px rgba(10, 35, 80, 0.1);
}
.post_related_card .img {
  aspect-ratio: 16 / 10;
}
.post_related_card:hover .img img {
  transform: scale(1.04);
}
.post_related_text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}
.post_related_text time {
  color: var(--text);
  font-size: 13px;
}
.post_related_text h3 {
  margin-top: 12px;
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.post_related_text p {
  margin: 12px 0 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.post_related_text .more {
  margin-top: auto;
  font-size: 15px;
}
@media screen and (max-width: 1024px) {
  .post_layout.has_toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .post_toc {
    position: static;
  }
  .post_toc nav {
    max-height: 280px;
  }
  .post_related_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 768px) {
  .post_detail {
    padding: 96px 0 40px;
  }
  .post_detail .tcon h1 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }
  .post_detail .crumbs {
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 16px;
  }
  .post_detail .crumbs li + li::before {
    margin: 0 6px;
  }
  .post_toc {
    padding: 18px;
  }
  .post_body {
    font-size: 16px;
    line-height: 1.75;
  }
  .post_body h2 {
    font-size: 25px;
  }
  .post_body h3 {
    font-size: 21px;
  }
  .post_body h2,
  .post_body h3 {
    scroll-margin-top: 88px;
  }
  .post_related {
    padding: 40px 0;
  }
  .post_related_head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .post_related_list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .post_related_text {
    padding: 20px;
  }
}
