/* 洞察·博客：列表与单篇。
   外壳复用 content.css / intel-feed.css（.npage 三栏、.ifeed、.icard、.blog-art），
   这里只补博客特有的板块徽章、卡片细节、右栏榜单与文末导流块。
   变量沿用站点的 --m-* / --s* 体系，全部带兜底值，缺 token 时不会塌。 */

/* ── 板块徽章 ─────────────────────────────────────────────── */
.bbadge {
  --bb-hue: 268;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid hsl(var(--bb-hue) 60% 86%);
  background: hsl(var(--bb-hue) 78% 96%);
  color: hsl(var(--bb-hue) 62% 34%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.bbadge--tactics { --bb-hue: 268; }
.bbadge--eyes { --bb-hue: 186; }
.bbadge--ai { --bb-hue: 214; }
.bbadge--algo { --bb-hue: 140; }
.bbadge--owner { --bb-hue: 24; }
[data-theme="dark"] .bbadge,
html[data-theme="dark"] .bbadge {
  border-color: hsl(var(--bb-hue) 32% 30%);
  background: hsl(var(--bb-hue) 32% 18%);
  color: hsl(var(--bb-hue) 74% 76%);
}

/* ── 文章卡片 ─────────────────────────────────────────────── */
.bcard {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.bcard:hover { border-color: var(--m-brand, #8E37D7); }
.bcard:focus-visible { outline: 2px solid var(--m-brand, #8E37D7); outline-offset: 2px; }
.bcard .icard__time {
  font-size: 12px;
  color: var(--m-text-3, #86909C);
  font-variant-numeric: tabular-nums;
}
.bcard__h {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--m-text, inherit);
}
.bcard__dek {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--m-text-2, #4E5969);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcard__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.bcard__tags i {
  font-style: normal;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--m-surface-2, #F2F3F5);
  color: var(--m-text-3, #86909C);
  font-size: 11px;
  line-height: 1.7;
}
.bcard__go {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--m-brand, #8E37D7);
  white-space: nowrap;
}
.bcard__go i { font-style: normal; }

/* 头条：第一篇给一点分量，但不至于和列表割裂 */
.bcard.is-lead {
  padding: 18px 18px 14px;
  border-color: var(--m-brand-line, rgba(142, 55, 215, .28));
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(142, 55, 215, .07), rgba(142, 55, 215, 0) 62%),
    var(--m-surface, #fff);
}
.bcard.is-lead .bcard__h { font-size: 22px; line-height: 1.4; }
.bcard.is-lead .bcard__dek { font-size: 14px; -webkit-line-clamp: 3; }

/* ── 右栏 ─────────────────────────────────────────────────── */
.bside {
  padding: var(--s3, 12px);
  border: 1px solid var(--m-line, #E5E6EB);
  border-radius: 14px;
  background: var(--m-surface, #fff);
}
.bside--cta { margin-top: var(--s3, 12px); }
.bside__h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--m-text, inherit);
}
.bside__h span {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(90deg, #8E37D7, #5D5BF6);
}
.bside__list { margin: 0; padding: 0; list-style: none; }
.bside__i {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--m-line, #E5E6EB);
}
.bside__i:first-child { border-top: 0; padding-top: 2px; }
.bside__n {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--m-text-3, #86909C);
  background: var(--m-surface-2, #F2F3F5);
  font-variant-numeric: tabular-nums;
}
.bside__n.is-top { color: #fff; background: #8E37D7; }
.bside__a { min-width: 0; text-decoration: none; color: inherit; }
.bside__a b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--m-text, inherit);
}
.bside__a i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--m-text-3, #86909C);
}
.bside__a:hover b { color: var(--m-brand, #8E37D7); }

.bside__p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--m-text-2, #4E5969);
}
.bside__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--m-surface-2, #F7F8FA);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--m-text, inherit);
  text-decoration: none;
}
.bside__go i { font-style: normal; color: var(--m-brand, #8E37D7); }
.bside__go:hover { background: var(--m-surface-3, #EEF0F3); }

/* ── 单篇 ─────────────────────────────────────────────────── */
.blog-post .blog__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bpost-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2, 8px);
  margin: var(--s5, 32px) 0 0;
  padding-top: var(--s4, 20px);
  border-top: 1px solid var(--m-line, #E5E6EB);
}
.bpost-pager__next { text-align: right; }
.bpost-pager a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--m-line, #E5E6EB);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.bpost-pager a:hover { border-color: var(--m-brand, #8E37D7); }
.bpost-pager a span {
  display: block;
  font-size: 11.5px;
  color: var(--m-text-3, #86909C);
}
.bpost-pager a b {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.bpost-cta {
  margin: var(--s5, 32px) 0 0;
  padding: var(--s4, 20px);
  border-radius: 16px;
  border: 1px solid var(--m-brand-line, rgba(142, 55, 215, .26));
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(142, 55, 215, .09), rgba(142, 55, 215, 0) 60%),
    var(--m-surface, #fff);
}
.bpost-cta__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--m-brand, #8E37D7);
}
.bpost-cta__h {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--m-text, inherit);
}
.bpost-cta__p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--m-text-2, #4E5969);
}
.bpost-cta__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bpost-cta__links a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--m-line, #E5E6EB);
  background: var(--m-surface, #fff);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--m-text, inherit);
  text-decoration: none;
}
.bpost-cta__links a:hover { border-color: var(--m-brand, #8E37D7); color: var(--m-brand, #8E37D7); }

.blog__sideh--gap { margin-top: var(--s5, 28px); }

/* ── 窄屏 ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .bcard__h { font-size: 16.5px; }
  .bcard.is-lead { padding: 16px 14px 12px; }
  .bcard.is-lead .bcard__h { font-size: 18px; }
  .bcard__go { margin-left: 0; }
  .bpost-pager { grid-template-columns: 1fr; }
  .bpost-pager__next { text-align: left; }
}

/* ── 正文插图 ───────────────────────────────────────────── */
.blog__body .bfig {
  margin: var(--s4, 20px) 0 var(--s5, 28px);
}
.blog__body .bfig img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--m-surface-2, #F7F8FA);
}
.blog__body .bfig figcaption {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--m-text-3, #86909C);
}

/* ── 正文里的数据表（Markdown 表格）─────────────────────── */
.blog__body table {
  width: 100%;
  margin: var(--s3, 16px) 0 var(--s4, 20px);
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
  background: var(--m-surface, #fff);
}
.blog__body th,
.blog__body td {
  padding: 8px 12px;
  border: 1px solid var(--m-line, #E5E6EB);
  text-align: left;
  vertical-align: top;
}
.blog__body th {
  font-weight: 600;
  background: var(--m-surface-2, #F7F8FA);
  color: var(--m-text, #1D2129);
}
.blog__body table tr:first-child td { font-weight: 500; }
.blog__body td:first-child,
.blog__body th:first-child { white-space: nowrap; }

/* ── 二创稿来源标注 ───────────────────────────────────── */
.bpost-src {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--m-brand, #8E37D7);
  border-radius: 0 10px 10px 0;
  background: var(--m-surface-2, #F7F8FA);
}
.bpost-src__k {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--m-brand, #8E37D7);
}
.bpost-src p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--m-text-2, #4E5969); }
.bpost-src a { color: var(--m-brand, #8E37D7); text-decoration: none; }
.bpost-src a:hover { text-decoration: underline; }
.bpost-src__note { margin-top: 4px !important; color: var(--m-text-3, #86909C) !important; }