/* 大熊视频转文字 · 博客文章公共样式 v2（所有 blog/<slug>/index.html 共用）
   布局：页面浅色底 + 白色文章卡片；主色蓝 #2563eb，辅助绿 #059669 */
:root {
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --green: #059669;
  --ink: #0f172a;
  --body-c: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
  color: var(--body-c);
  line-height: 1.9;
  background:
    radial-gradient(1100px 280px at 50% -80px, #dbeafe 0%, rgba(219, 234, 254, 0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #bfdbfe; }
img { max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---- 布局骨架：面包屑 / 文章卡片 / 博客列表页 / 页脚 ---- */
nav.breadcrumb, article, footer.site-footer, main.page-shell {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
article,
main.page-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 40px 36px;
  margin-top: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 40px -20px rgba(15, 23, 42, .14);
}

/* ---- 面包屑：胶囊导航 ---- */
nav.breadcrumb { padding-top: 20px; }
nav.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 0;
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}
nav.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
nav.breadcrumb a:hover { color: var(--brand-deep); border-color: #bfdbfe; background: #fff; }
nav.breadcrumb li[aria-hidden] { color: #cbd5e1; }
nav.breadcrumb li:last-child { color: var(--ink); font-weight: 600; }

/* ---- 标题体系 ---- */
h1 {
  font-size: 1.85rem;
  line-height: 1.35;
  margin: 8px 0 10px;
  color: var(--ink);
  letter-spacing: .01em;
  text-wrap: balance;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 42px 0 14px;
  padding-left: 12px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--brand), #60a5fa) 1;
  scroll-margin-top: 24px;
}
h3 { font-size: 1.08rem; margin: 24px 0 8px; color: var(--ink); }
h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  margin-right: 8px;
  vertical-align: 2px;
}

/* ---- 正文元素 ---- */
p { margin: 12px 0; }
p.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted);
  font-size: .88rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 18px 0 6px;
}
a { color: var(--brand-deep); text-decoration: none; }
article a:not(.cta-button) {
  border-bottom: 1px solid #bfdbfe;
  transition: color .15s ease, border-color .15s ease;
}
article a:not(.cta-button):hover { color: var(--brand); border-bottom-color: var(--brand); }

figure {
  margin: 26px 0;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border: 1px solid var(--line);
  border-radius: 14px;
}
figure img {
  display: block;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
figcaption { margin-top: 10px; color: var(--muted); font-size: .86rem; text-align: center; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
thead th {
  background: linear-gradient(180deg, #eff6ff, #e3edfd);
  color: var(--brand-deep);
  font-weight: 700;
}
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) td { background: #f8fafc; }
tbody tr:hover td { background: #f0f7ff; }
tbody tr:last-child td { border-bottom: none; }
td:first-child { color: var(--ink); font-weight: 600; }

ul { list-style: none; padding-left: 4px; margin: 12px 0; }
ul li { position: relative; padding-left: 18px; margin: 8px 0; }
ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #60a5fa);
}
article ol { padding-left: 24px; margin: 12px 0; font-size: .93rem; }
article ol li { margin: 8px 0; }
article ol li::marker { color: var(--brand-deep); font-weight: 600; }

/* ---- CTA 按钮 ---- */
.cta-button {
  display: inline-block;
  margin: 8px 12px 8px 0;
  padding: 13px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.cta-green { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 6px 16px -6px rgba(5, 150, 105, .45); }
.cta-button::after { content: " →"; font-weight: 700; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .55); }
.cta-green:hover { box-shadow: 0 10px 22px -8px rgba(5, 150, 105, .55); }
.cta-button:active { transform: translateY(0); }

/* ---- 页脚 ---- */
footer.site-footer {
  padding-top: 14px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  nav.breadcrumb, article, footer.site-footer, main.page-shell { padding-left: 16px; padding-right: 16px; }
  article, main.page-shell { padding: 24px 18px 28px; border-radius: 14px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.16rem; margin-top: 32px; }
  table { display: block; overflow-x: auto; }
  .cta-button { display: block; width: 100%; text-align: center; margin-right: 0; }
}

/* ---- 博客列表页 ---- */
main.page-shell h1 { margin-top: 16px; }
.post-list { display: grid; gap: 16px; margin: 24px 0 8px; }
.post-card {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.post-card:hover {
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, .25);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}
.post-card h2 { margin: 0 0 6px; padding: 0; border: none; font-size: 1.1rem; line-height: 1.5; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--brand); }
.post-card p { margin: 6px 0; font-size: .92rem; color: var(--muted); }
.post-card .post-card-meta { font-size: .84rem; color: #94a3b8; }
.post-card .post-card-meta span {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 10px;
  background: #eff6ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-deep);
  font-size: .8rem;
}
