/* 汇微课资源详情页：仅应用于带下载资源卡的文章。 */
body.hweike-resource-page {
  --resource-accent: var(--theme-color, #2f61d9);
  --resource-line: var(--main-border-color);
  --resource-muted: #626d7c;
}
body.hweike-resource-page.dark-theme { --resource-muted: #aeb7c5; }
.hweike-resource-page main.container { max-width: 1080px; }
.hweike-resource-page article.article { padding: 32px 36px; }
.hweike-resource-page .article-header { margin-bottom: 24px; }
.hweike-resource-page .article-title {
  font-size: 26px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -.3px;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0 0 20px;
  color: var(--key-color);
}
.hweike-resource-page .article-avatar { font-size: 13px; }
.hweike-resource-page .article-avatar .muted-2-color { color: var(--resource-muted); }
.hweike-resource-page .article-header .user-action .but { padding: 8px 12px; }
.hweike-resource-page #posts-pay.order-type-2:not(.paid-box) {
  padding: 24px;
  margin: 0 0 32px;
  border: 1px solid var(--resource-line);
  border-radius: 12px;
  background: var(--muted-bg-2-color);
  box-shadow: none;
}
.hweike-resource-page #posts-pay.order-type-2 > .pay-flexbox {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
}
.hweike-resource-page #posts-pay.order-type-2 .pay-thumb {
  display: block !important;
  width: 32%;
  max-width: 300px;
  margin: 0;
  flex: 0 0 32%;
  min-width: 0;
}
.hweike-resource-page #posts-pay.order-type-2 .pay-thumb .graphic {
  padding-bottom: 0;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: transparent;
}
.hweike-resource-page #posts-pay.order-type-2 .pay-thumb img {
  object-fit: contain;
  border-radius: 8px;
}
.hweike-resource-page #posts-pay.order-type-2 .pay-flexbox > :is(.flex1, .flex-auto-h) {
  min-width: 0;
  justify-content: flex-start;
  gap: 10px;
}
.hweike-resource-page #posts-pay.order-type-2 .pay-title {
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--key-color);
}
.hweike-resource-page #posts-pay.order-type-2 .pay-flexbox > :is(.flex1, .flex-auto-h) > .muted-2-color {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--resource-muted);
}
.hweike-resource-page #posts-pay.order-type-2 .pay-flexbox > :is(.flex1, .flex-auto-h) > .hide-sm { display: block !important; }
.hweike-resource-page #posts-pay.order-type-2 .price-box {
  justify-content: flex-start;
  text-align: left;
  margin: 0;
}
.hweike-resource-page #posts-pay.order-type-2 .price-box .em3x { font-size: 28px; line-height: 1.2; }
.hweike-resource-page #posts-pay.order-type-2 .pay-flexbox > :is(.flex1, .flex-auto-h) > .text-right { margin-top: 2px; text-align: left; }
.hweike-resource-page #posts-pay.order-type-2 .signin-loader.btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: auto;
  min-width: 180px;
  padding: 10px 24px;
  border-radius: 7px;
  background: var(--resource-accent);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.hweike-resource-page #posts-pay.order-type-2 .signin-loader:hover { filter: brightness(.93); }
.hweike-resource-page #posts-pay.order-type-2 .but:focus-visible {
  outline: 3px solid var(--resource-accent);
  outline-offset: 3px;
}
.hweike-resource-page #posts-pay.order-type-2 > .pay-tag {
  top: -1px;
  left: -1px;
  font-size: 12px;
  line-height: 1.6;
  padding: 4px 10px;
  border-radius: 12px 0 8px 0;
  background: var(--resource-accent);
  transform: none;
}
.hweike-resource-page .article-content {
  max-width: 780px;
  margin: 0 auto;
}
.hweike-resource-page .wp-posts-content {
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.hweike-resource-page .wp-posts-content h2 {
  margin: 32px 0 16px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--key-color);
}
.hweike-resource-page .wp-posts-content > h2:first-child,
.hweike-resource-page .wp-posts-content > .hweike-duplicate-cover + h2 { margin-top: 0; }
.hweike-resource-page .wp-posts-content p { margin: 0 0 16px; }
.hweike-resource-page .wp-posts-content li { margin-bottom: 8px; }
.hweike-resource-page .wp-posts-content figure { margin: 24px auto; }
.hweike-resource-page .wp-posts-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.hweike-resource-page .wp-posts-content .hweike-duplicate-cover { display: none; }
@media (max-width: 767px) {
  .hweike-resource-page main.container { padding-left: 12px; padding-right: 12px; }
  .hweike-resource-page article.article { padding: 22px 18px; }
  .hweike-resource-page .article-title { font-size: 22px; line-height: 1.55; margin-bottom: 16px; }
  .hweike-resource-page .article-header { margin-bottom: 22px; }
  .hweike-resource-page .article-header .user-action .but { padding: 8px; margin-left: 6px; }
  .hweike-resource-page #posts-pay.order-type-2:not(.paid-box) { padding: 24px 18px 18px; margin-bottom: 28px; }
  .hweike-resource-page #posts-pay.order-type-2 > .pay-flexbox { flex-direction: column; align-items: stretch; gap: 16px; }
  .hweike-resource-page #posts-pay.order-type-2 .pay-thumb { width: 100%; max-width: 340px; flex-basis: auto; margin: 0 auto; }
  .hweike-resource-page #posts-pay.order-type-2 .pay-thumb .graphic { aspect-ratio: 16 / 9; }
  .hweike-resource-page #posts-pay.order-type-2 .pay-title { font-size: 16px; }
  .hweike-resource-page #posts-pay.order-type-2 .signin-loader.btn-block { width: 100%; min-width: 0; }
  .hweike-resource-page .wp-posts-content { font-size: 16px; line-height: 1.85; }
  .hweike-resource-page .wp-posts-content h2 { font-size: 20px; }
}
