/** PoeticTheme 3.0.12文章题头、目录和轮播按钮修订。 */

.pt-article-header-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none !important;
}

.pt-article-header-stack .pt-article-category {
  order: 1;
}

.pt-article-header-stack h1 {
  order: 2;
  margin: 9px 0 10px;
}

.pt-article-header-stack .pt-article-meta {
  order: 3;
  margin: 0 0 14px;
}

.pt-article-header-stack .pt-article-lead {
  order: 4;
  max-width: 780px;
  margin: 0 0 18px;
  color: #506b7c;
}

.pt-article-header-stack > .wp-block-shortcode {
  order: 5;
  width: 100%;
  max-width: none !important;
  margin: 0;
}

.pt-article-header-stack .pt-article-cover {
  width: 100%;
  max-width: none;
  min-height: 180px;
  height: 180px;
  aspect-ratio: auto;
  border-radius: 18px;
}

.pt-article-header-stack .pt-article-cover img {
  object-fit: cover;
}

/* 兼容数据库中保存的3.0.11左右分栏题头。 */
.pt-article-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.pt-article-hero > .wp-block-column {
  width: 100% !important;
  max-width: none !important;
  flex-basis: auto !important;
}

.pt-article-hero > .wp-block-column:first-child {
  display: flex !important;
  flex-direction: column;
}

.pt-article-hero .pt-article-meta {
  order: 1;
  margin-bottom: 10px;
}

.pt-article-hero .pt-article-lead {
  order: 2;
}

.pt-article-hero .pt-article-cover {
  width: 100%;
  max-width: none;
  min-height: 180px;
  height: 180px;
  aspect-ratio: auto;
}

/* 首页阅读全文按钮与频道按钮共用紧凑视觉语言。 */
.pt-hero-slide-custom .pt-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0d89ca;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(4, 31, 47, 0.18);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.pt-hero-slide-custom .pt-hero-link i {
  transition: transform 180ms ease;
}

.pt-hero-slide-custom:hover .pt-hero-link,
.pt-hero-slide-custom:focus-visible .pt-hero-link {
  border-color: #0092dc;
  background: #0092dc;
  color: #fff;
  transform: translateY(-2px);
}

.pt-hero-slide-custom:hover .pt-hero-link i,
.pt-hero-slide-custom:focus-visible .pt-hero-link i {
  transform: translate(2px, -2px);
}

@media (max-width: 782px) {
  .pt-article-header-stack .pt-article-cover,
  .pt-article-hero .pt-article-cover {
    min-height: 150px;
    height: 150px;
  }
}

@media print {
  .pt-article-header-stack .pt-article-cover,
  .pt-article-hero .pt-article-cover {
    height: 45mm;
  }
}
