/* ==========================================================================
   官网文章页（blog/index.html、blog/post.html）
   与首页同一套配色与字体；只作用于 <main class="bt"> 内部。页头页尾直接使用首页的样式（site.css）。
   内容由 assets/blog.js 从业务系统读取后生成。
   ========================================================================== */
.bt {
  --navy-900: #071e34;
  --navy-800: #0b2e4f;
  --navy-700: #153f65;
  --blue: #005ea8;
  --blue-700: #1a4480;
  --blue-100: #d9eaf7;
  --blue-050: #eef7fd;
  --red: #d83933;
  --red-600: #c72c25;
  --gold-050: #fdf0d5;
  --gold-line: #f0d49b;
  --gold-ink: #7a4b00;
  --ink: #1b1b1b;
  --ink-2: #3d4551;
  --muted: #565c65;
  --line: #e3e3de;
  --off: #f6f6f3;
  --white: #fff;
  --r: 8px;
  --shadow-sm: 0 2px 8px rgba(7, 30, 52, 0.08);
  --shadow-md: 0 14px 36px rgba(7, 30, 52, 0.12);
  --sans: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 1180px;

  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
.bt ::selection { background: var(--blue-100); color: var(--navy-900); }
.bt :focus-visible { outline: 3px solid #fdb81e; outline-offset: 3px; }
.bt a { color: inherit; }
.bt img { max-width: 100%; }
.bt main { max-width: none; margin: 0; padding: 0; }
.bt h1, .bt h2, .bt h3 { letter-spacing: 0; }
.bt-container { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
@media (min-width: 768px) { .bt-container { width: min(var(--wrap), calc(100% - 64px)); } }
.bt-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--white); padding: 8px 12px; border-radius: var(--r); }
.bt-skip:focus { left: 8px; }
.bt-hide-sm { display: none !important; }
@media (min-width: 768px) { .bt-hide-sm { display: inline-flex !important; } }

/* 标题字体：中英文都用无衬线粗体（D-119：去掉 Georgia 衬线，显得更现代、不那么板正） */
.bt-display { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; }
.bt [lang|="zh"] .bt-display, .bt .bt-display:lang(zh) { font-family: var(--sans); letter-spacing: 0; }

/* ---------- 按钮 ---------- */
.bt .bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 0 20px; border: 0; border-radius: var(--r); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.bt .bt-btn-red { color: var(--white); background: var(--red); box-shadow: 0 1px 2px rgba(7, 30, 52, 0.14), 0 2px 6px -2px rgba(7, 30, 52, 0.18); }
.bt .bt-btn-red:hover { background: var(--red-600); }
.bt .bt-btn-blue { color: var(--white); background: var(--blue); box-shadow: 0 1px 2px rgba(7, 30, 52, 0.14), 0 2px 6px -2px rgba(7, 30, 52, 0.18); }
.bt .bt-btn-blue:hover { background: var(--blue-700); }
.bt .bt-btn-ghost { color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); }
.bt .bt-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- 列表页头图 ---------- */
.bt-hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(105deg, var(--navy-900) 0%, var(--navy-800) 62%, var(--blue-700) 100%); }
.bt-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.22; background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 85%); }
.bt-hero-in { position: relative; padding: 40px 0 36px; display: grid; gap: 24px; }
@media (min-width: 900px) { .bt-hero-in { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; padding: 64px 0 52px; } }
.bt-hero h1 { margin: 0 0 10px; font-size: 40px; line-height: 1.15; color: var(--white); }
@media (min-width: 768px) { .bt-hero h1 { font-size: 54px; } }
.bt-hero p { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.bt-search { display: flex; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-md); overflow: hidden; }
.bt-search label { display: grid; place-items: center; margin: 0; padding: 0 2px 0 14px; color: var(--muted); }
.bt .bt-search input { flex: 1; min-width: 0; min-height: 52px; margin: 0; padding: 0 12px; border: 0; border-radius: 0; box-shadow: none; background: transparent; font: 400 16px var(--sans); color: var(--ink); }
.bt .bt-search input:focus { box-shadow: none; }
.bt-search:focus-within { outline: 3px solid #fdb81e; outline-offset: 2px; }
.bt .bt-search button { margin: 0; width: auto; min-width: 0; min-height: 52px; padding: 0 20px; border: 0; border-radius: 0; background: var(--blue); color: var(--white); font: 600 15px var(--sans); line-height: 1; box-shadow: 0 1px 2px rgba(7, 30, 52, 0.14), 0 2px 6px -2px rgba(7, 30, 52, 0.18); }
.bt .bt-search button:hover { background: var(--blue-700); }

/* ---------- 分类标签栏（吸顶） ---------- */
.bt-tabs { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.3) blur(8px); backdrop-filter: saturate(1.3) blur(8px); }
.bt-tabs-in { display: flex; align-items: stretch; gap: 16px; }
.bt-tablist { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.bt-tablist::-webkit-scrollbar { display: none; }
.bt-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; transition: color 160ms ease, border-color 160ms ease; }
.bt-tab:hover { color: var(--blue); }
.bt-tab[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.bt-tab .n { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--off); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.bt-tab[aria-current="page"] .n { color: var(--white); background: var(--navy-900); border-color: var(--navy-900); }
.bt-lang { flex: none; display: none; align-items: center; gap: 2px; padding: 0 0 0 16px; border-left: 1px solid var(--line); }
@media (min-width: 768px) { .bt-lang { display: flex; } }
.bt-lang a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.bt-lang a:hover { color: var(--blue); }
.bt-lang a[aria-current="page"] { color: var(--blue); background: var(--blue-050); }
.bt-lang-sm { display: flex; gap: 6px; padding: 0 0 18px; }
@media (min-width: 768px) { .bt-lang-sm { display: none; } }
.bt-lang-sm a { min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.bt-lang-sm a[aria-current="page"] { color: var(--blue); border-color: var(--blue); background: var(--blue-050); }

/* ---------- 列表布局 ---------- */
.bt-body { padding: 28px 0 72px; background: var(--white); }
@media (min-width: 768px) { .bt-body { padding: 44px 0 96px; } }
.bt-layout { display: grid; gap: 40px; }
@media (min-width: 1080px) { .bt-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; } }
.bt-filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.bt-filter-note strong { color: var(--navy-900); }
.bt-chip-x { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--off); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.bt-chip-x:hover { border-color: var(--blue); color: var(--blue); }

.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--muted); }
.bt-meta .cat { color: var(--blue); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }
.bt-meta a.cat:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.bt-meta .t { display: inline-flex; align-items: center; gap: 5px; }
.bt-member { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r); border: 1px solid var(--gold-line); background: var(--gold-050); color: var(--gold-ink); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }

/* 头条：最新一篇（第一页、无筛选时） */
.bt-featured { display: grid; margin: 0 0 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; overflow: hidden; transition: box-shadow 200ms ease, transform 200ms ease; }
.bt-featured:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.bt-featured.has-cover { grid-template-rows: auto auto; }
@media (min-width: 900px) { .bt-featured.has-cover { grid-template-columns: 1.1fr 1fr; grid-template-rows: none; } }
.bt-featured-cover { display: block; width: 100%; height: 100%; min-height: 220px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--off); }
.bt-featured-text { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
@media (min-width: 768px) { .bt-featured-text { padding: 36px 40px; } }
.bt-featured h2 { margin: 0; font-size: 28px; line-height: 1.25; color: var(--navy-900); }
@media (min-width: 768px) { .bt-featured h2 { font-size: 34px; } }
.bt-featured:hover h2 { color: var(--blue); }
.bt-featured p.sum { margin: 0; font-size: 17px; line-height: 1.75; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bt-more { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 700; font-size: 15px; }
.bt-featured:hover .bt-more svg, .bt-card:hover .bt-more svg { transform: translateX(3px); }
.bt-more svg { transition: transform 200ms ease; }

/* 文章卡片网格 */
.bt-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 640px) { .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bt-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; overflow: hidden; transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.bt-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.bt-card-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--off); }
.bt-ph { position: relative; display: flex; align-items: flex-end; padding: 22px; overflow: hidden; color: var(--white); background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 70%, var(--blue-700)); }
.bt-ph::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 32px 32px; }
.bt-ph::after { content: ""; position: absolute; left: 22px; top: 24px; width: 44px; height: 4px; border-radius: 2px; background: #a9d8f4; }
.bt-ph-cat { position: relative; font-weight: 700; font-size: 22px; line-height: 1.3; letter-spacing: 0.02em; }
.bt-featured .bt-ph { padding: 32px; } .bt-featured .bt-ph::after { left: 32px; top: 32px; } .bt-featured .bt-ph-cat { font-size: 30px; }
.bt-card-text { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.bt-card .bt-display { margin: 0; font-size: 20px; line-height: 1.4; color: var(--navy-900); }
.bt-card:hover .bt-display { color: var(--blue); }
.bt-card p.sum { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.bt-empty { padding: 48px 28px; border: 1px dashed #c9c9c9; border-radius: var(--r); text-align: center; background: var(--off); }
.bt-empty h2 { margin: 0 0 8px; font-size: 22px; color: var(--navy-900); }
.bt-empty p { margin: 0 0 16px; color: var(--muted); }
.bt-empty a { color: var(--blue); font-weight: 700; }

.bt-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 44px 0 0; }
.bt-pager a, .bt-pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; background: var(--white); }
.bt-pager a:hover { border-color: var(--blue); color: var(--blue); }
.bt-pager [aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.bt-pager .gap { border: 0; min-width: 20px; padding: 0; }

/* 侧栏 */
.bt-aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1080px) { .bt-aside { position: sticky; top: 76px; } }
.bt-box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--white); }
.bt-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--navy-900); }
.bt-box h2 svg { color: var(--blue); }
.bt-box p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.bt-box-member { position: relative; overflow: hidden; border: 0; color: var(--white); background: var(--navy-900); }
.bt-box-member::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, 0.05); }
.bt-box-member h2 { color: var(--white); }
.bt-box-member h2 svg { color: #fdb81e; }
.bt-box-member p { color: rgba(255, 255, 255, 0.74); }
.bt-box-member .bt-btn { margin-top: 16px; }
.bt-box-member .login { display: block; margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.74); }
.bt-box-member .login a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.bt-catlist { list-style: none; margin: 0; padding: 0; }
.bt-catlist li + li { border-top: 1px solid var(--line); }
.bt-catlist a { display: flex; justify-content: space-between; align-items: center; min-height: 42px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.bt-catlist a:hover, .bt-catlist a[aria-current="page"] { color: var(--blue); }
.bt-catlist .n { font-size: 13px; color: var(--muted); font-weight: 400; }
.bt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--off); font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color 160ms ease, color 160ms ease; }
.bt-tags a:hover { border-color: var(--blue); color: var(--blue); }
.bt-tags a[aria-current="page"] { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }

/* ---------- 文章页 ---------- */
.bt-ahero { background: var(--off); border-bottom: 1px solid var(--line); }
.bt-ahero-in { max-width: 820px; margin: 0 auto; padding: 32px 0 36px; }
@media (min-width: 768px) { .bt-ahero-in { padding: 52px 0 52px; } }
.bt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.bt-crumbs a { color: var(--blue); font-weight: 600; text-decoration: none; }
.bt-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bt-ahero h1 { margin: 14px 0 16px; font-size: 32px; line-height: 1.25; color: var(--navy-900); text-wrap: balance; }
@media (min-width: 768px) { .bt-ahero h1 { font-size: 44px; line-height: 1.2; } }
.bt-lede { margin: 0 0 24px; font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: 40em; }
.bt-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.bt-byline strong { color: var(--navy-900); font-weight: 700; }
.bt-byline .t { display: inline-flex; align-items: center; gap: 5px; }
.bt-preview { margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--gold-line); background: var(--gold-050); color: var(--gold-ink); border-radius: var(--r); font-size: 14px; font-weight: 600; }

.bt-cover { max-width: 1040px; margin: 36px auto 0; }
.bt-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-sm); }

.bt-read { display: grid; gap: 32px; max-width: 1040px; margin: 0 auto; padding: 36px 0 24px; }
@media (min-width: 1080px) { .bt-read.has-toc { grid-template-columns: minmax(0, 720px) 240px; justify-content: space-between; padding-top: 48px; } }
.bt-read:not(.has-toc) { max-width: 720px; }
.bt-read > article { min-width: 0; }

.bt-toc-sm { margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--off); }
.bt-toc-sm summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; font-weight: 700; color: var(--navy-900); cursor: pointer; list-style: none; }
.bt-toc-sm summary::-webkit-details-marker { display: none; }
.bt-toc-sm summary svg { color: var(--blue); }
.bt-toc-sm ol { margin: 0; padding: 0 16px 14px 16px; }
@media (min-width: 1080px) { .bt-toc-sm { display: none; } }
.bt-toc { display: none; }
@media (min-width: 1080px) { .bt-toc { display: block; position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; padding-left: 20px; border-left: 1px solid var(--line); } }
.bt-toc h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bt-toc ol, .bt-toc-sm ol { list-style: none; }
.bt-toc ol { margin: 0; padding: 0; }
.bt-toc li, .bt-toc-sm li { margin: 0; }
.bt-toc a, .bt-toc-sm a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-decoration: none; }
.bt-toc a:hover, .bt-toc-sm a:hover { color: var(--blue); }
.bt-toc .l3 a, .bt-toc-sm .l3 a { padding-left: 14px; font-size: 13px; color: var(--muted); }

/* 正文排版：约 36 个中文字符 / 70 个英文字符一行 */
.bt .prose { font-size: 18px; line-height: 1.9; color: var(--ink); overflow-wrap: anywhere; }
.bt .prose:lang(en) { line-height: 1.75; }
.bt .prose > :first-child { margin-top: 0; }
.bt .prose p, .bt .prose ul, .bt .prose ol, .bt .prose blockquote, .bt .prose pre, .bt .prose .tablewrap, .bt .prose figure { margin: 0 0 1.25em; }
.bt .prose h2, .bt .prose h3, .bt .prose h4 { color: var(--navy-900); line-height: 1.35; scroll-margin-top: 80px; }
.bt .prose h2 { margin: 2em 0 0.7em; font-size: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bt .prose h3 { margin: 1.7em 0 0.6em; font-size: 21px; }
.bt .prose h4 { margin: 1.5em 0 0.5em; font-size: 18px; }
.bt .prose:lang(en) h2, .bt .prose:lang(en) h3 { letter-spacing: -0.01em; }
.bt .prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bt .prose a:hover { color: var(--blue-700); text-decoration-thickness: 2px; }
.bt .prose strong { color: var(--navy-900); }
.bt .prose ul, .bt .prose ol { padding-left: 1.4em; }
.bt .prose li { padding-left: 0.2em; }
.bt .prose li + li { margin-top: 0.35em; }
.bt .prose li::marker { color: var(--blue); }
.bt .prose li:has(> input[type=checkbox]) { list-style: none; margin-left: -1.3em; }
.bt .prose li > input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: 0 0.5em 0 0; vertical-align: -2px; accent-color: var(--blue); }
.bt .prose blockquote { position: relative; margin-left: 0; margin-right: 0; padding: 18px 22px 18px 52px; background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: var(--r); color: var(--navy-800); }
.bt .prose blockquote::before { content: "“"; position: absolute; left: 16px; top: 4px; font: 700 44px/1 var(--serif); color: var(--blue); }
.bt .prose blockquote > :last-child { margin-bottom: 0; }
.bt .prose code { font: 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--off); border: 1px solid var(--line); padding: 0.1em 0.35em; border-radius: var(--r); }
.bt .prose pre { padding: 16px 18px; border-radius: var(--r); background: var(--navy-900); color: #e6edf3; overflow-x: auto; }
.bt .prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; }
.bt .prose img { display: block; height: auto; margin: 1.6em auto; border-radius: var(--r); }
.bt .prose hr { border: 0; height: 1px; margin: 2.4em 0; background: var(--line); }
.bt .prose .tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.bt .prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.bt .prose th, .bt .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bt .prose th { background: var(--navy-900); color: var(--white); font-weight: 700; }
.bt .prose tr:last-child td { border-bottom: 0; }
.bt .prose tbody tr:nth-child(even) td { background: var(--off); }

/* 会员门槛 */
.bt-gate { position: relative; overflow: hidden; padding: 32px 28px; border-radius: var(--r); color: var(--white); background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .bt-gate { padding: 44px 48px; } }
.bt-gate .bt-member { margin-bottom: 14px; }
.bt-gate h2 { margin: 0 0 10px; font-size: 26px; color: var(--white); }
.bt-gate p { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.78); }
.bt-gate .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.bt-atags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.bt-atags > svg { color: var(--muted); }

.bt-related { background: var(--off); border-top: 1px solid var(--line); padding: 48px 0 64px; margin-top: 40px; }
.bt-related h2 { margin: 0 0 24px; font-size: 26px; color: var(--navy-900); }
.bt-related .bt-grid { gap: 20px; }
@media (min-width: 900px) { .bt-related .bt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bt-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; color: var(--blue); font-weight: 700; text-decoration: none; }
.bt-back:hover { text-decoration: underline; text-underline-offset: 3px; }


/* 首页页头里“Blog”在文章页显示为当前项 */
.desktop-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--blue-600, #005ea8); }
.desktop-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 currentColor; }
/* 文章页的标签栏吸顶时，避开首页页头（页头不吸顶，故 top:0） */
.bt { display: block; }
.bt-loading { padding: 40px 0; color: var(--muted); }
.bt-skel { display: grid; gap: 24px; }
.bt-skel span { display: block; height: 220px; border-radius: var(--r); background: linear-gradient(90deg, var(--off), #eef1f3, var(--off)); background-size: 200% 100%; animation: bt-shimmer 1.4s ease-in-out infinite; }
@keyframes bt-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .bt-skel span { animation: none; } }
.bt-error { padding: 40px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--off); }
.bt-error h2 { margin: 0 0 8px; font-size: 22px; color: var(--navy-900); }
.bt-error p { margin: 0 0 16px; color: var(--muted); }
.bt .prose .img-invalid { color: var(--muted); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bt-toc-sm summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform 160ms ease; }
.bt-toc-sm[open] summary::after { transform: rotate(-135deg); }
