/* 创业者社区周报 - 专题页样式 */

/* 顶部通栏：按容器宽度等比缩放，完整显示不裁剪。
   旧写法是固定 height:220px + object-fit:cover，宽幅通栏在窄屏（手机 140px）会把左右
   内容切掉大半，连图上自带的标题字都可能被裁。改为 height:auto 后任何屏幕都是整图可见。*/
.cyzwr-banner {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--tblr-border-radius, .5rem);
  background: var(--tblr-bg-surface, #f8f9fa);
  line-height: 0;
  text-decoration: none;
}
.cyzwr-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* 极端比例（如竖版海报误当通栏）时兜底，contain 只缩小不裁切 */
  max-height: 420px;
  object-fit: contain;
}
@media (max-width: 767.98px) {
  /* 手机端取消高度上限，整幅通栏等比铺满屏宽，一个字都不裁 */
  .cyzwr-banner img { max-height: none; }
}

/* 正文配图：Markdown ![说明](地址) 渲染结果 */
.cyzwr-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .6rem 0;
  border-radius: .375rem;
}
figure.cyzwr-figure {
  margin: 1rem 0;
  text-align: center;
}
figure.cyzwr-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: .375rem;
}
figure.cyzwr-figure figcaption {
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--tblr-secondary, #6c7a91);
}

.cyzwr-archive h1,
.cyzwr-detail h1 { font-weight: 600; }

.cyzwr-item .card-title a,
.cyzwr-archive a,
.cyzwr-detail a { color: var(--tblr-primary, #206bc4); text-decoration: none; }
.cyzwr-item .card-title a:hover,
.cyzwr-archive a:hover,
.cyzwr-detail a:hover { text-decoration: underline; }

.cyzwr-pick a { color: var(--tblr-primary, #206bc4); }

/* 精选条目的推荐等级标记：A 级「必读」用主色实心，B 级「推荐」用灰描边，不抢标题视觉 */
.cyzwr-level {
  display: inline-block;
  padding: 0 .35rem;
  margin-right: .3rem;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: .25rem;
  vertical-align: middle;
  white-space: nowrap;
}
.cyzwr-level-a { color: #fff; background: var(--tblr-primary, #206bc4); }
.cyzwr-level-b {
  color: var(--tblr-secondary, #6c7a91);
  background: transparent;
  border: 1px solid currentColor;
}

.cyzwr-md h1, .cyzwr-md h2, .cyzwr-md h3 { font-weight: 600; }
.cyzwr-md blockquote { margin: .5rem 0 .75rem; }
.cyzwr-md p { line-height: 1.75; word-break: break-word; }

@media (max-width: 575.98px) {
  .cyzwr-md p { font-size: .9rem; }
}
