/* ============================================================
   模板：博客（独立模板 · 杂志式阅读站）
   布局：细顶栏 + 刊头 masthead + 分类导航 / 头条 + 双栏列表 + 侧边栏
   ============================================================ */
body.theme-blog {
  --p: #b45309;
  --p-dark: #92400e;
  --p-light: #fef3c7;
  --ink: #292524;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #faf6ef;
  --card: #fffdf9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(68, 40, 12, 0.05), 0 6px 18px rgba(68, 40, 12, 0.06);
}

body.theme-blog h1, body.theme-blog h2, body.theme-blog h3,
body.theme-blog .bt-brand, body.theme-blog .bt-article h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

/* ---------- 结构：顶栏 ---------- */
body.theme-blog .bt-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; }
body.theme-blog .bt-topbar {
  background: #292524; color: #d6d3d1; font-size: 12px;
  padding: 6px 0; position: relative; z-index: 5;
}
body.theme-blog .bt-topbar .bt-wrap { display: flex; justify-content: space-between; }
body.theme-blog .bt-toplinks a { color: #d6d3d1; margin-left: 14px; text-decoration: none; }
body.theme-blog .bt-toplinks a:hover { color: #fbbf24; }
body.theme-blog #p-admin-btn { color: #fbbf24; }
body.theme-blog .bt-login-btn {
  position: absolute; right: 24px; top: 54px; z-index: 6;
  background: #92400e; color: #fff; border: none; padding: 7px 16px;
  border-radius: 999px; cursor: pointer; font-size: 13px;
}
body.theme-blog .bt-login-btn:hover { background: #b45309; }

/* ---------- 刊头 masthead ---------- */
body.theme-blog .bt-masthead {
  background: var(--card);
  border-bottom: 3px double #d6c9b2;
  padding: 34px 0 26px;
}
body.theme-blog .bt-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 38px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 2px;
}
body.theme-blog .bt-brand img { width: 40px; height: 40px; }
body.theme-blog .bt-brand em {
  font-style: normal; font-size: 13px; color: #92400e; background: #fef3c7;
  padding: 3px 10px; border-radius: 4px; letter-spacing: 4px; margin-left: 2px;
}
body.theme-blog .bt-slogan { color: var(--muted); margin: 10px 0 0; font-size: 14px; letter-spacing: 1px; }
body.theme-blog .bt-search { position: absolute; right: 20px; bottom: 26px; display: flex; }
body.theme-blog .bt-search input {
  border: 1px solid var(--line); border-right: none; border-radius: 8px 0 0 8px;
  padding: 8px 14px; width: 200px; font-size: 13px; background: var(--bg);
}
body.theme-blog .bt-search button {
  border: none; background: #92400e; color: #fff; border-radius: 0 8px 8px 0;
  padding: 0 14px; cursor: pointer;
}
body.theme-blog .bt-search input:focus { outline: none; border-color: #b45309; }

/* ---------- 分类导航 ---------- */
body.theme-blog .bt-catnav {
  background: #92400e; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 10px rgba(146, 64, 14, 0.25);
}
body.theme-blog .bt-catnav a {
  display: inline-block; color: #fef3c7; text-decoration: none;
  padding: 12px 16px; font-size: 14px; letter-spacing: 1px;
}
body.theme-blog .bt-catnav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
body.theme-blog .bt-catnav a.active { background: #fbbf24; color: #292524; font-weight: 700; }

body.theme-blog .bt-main { background: var(--bg); min-height: 60vh; padding: 28px 0 60px; }
body.theme-blog .bt-crumb { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
body.theme-blog .bt-crumb a { color: #b45309; text-decoration: none; }

/* ---------- 头条 ---------- */
body.theme-blog .bt-lead {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow);
}
body.theme-blog .bt-lead a { display: flex; text-decoration: none; color: inherit; }
body.theme-blog .bt-lead-img { width: 46%; min-height: 260px; object-fit: cover; }
body.theme-blog .bt-lead-body { padding: 28px 30px; }
body.theme-blog .bt-lead-body h1 { font-size: 26px; margin: 10px 0 12px; line-height: 1.35; }
body.theme-blog .bt-lead-body h1 a { color: var(--ink); text-decoration: none; }
body.theme-blog .bt-lead-body h1 a:hover { color: #b45309; }
body.theme-blog .bt-lead-body p { color: var(--muted); line-height: 1.8; }
body.theme-blog .bt-lead-more { color: #92400e; font-weight: 600; font-size: 14px; }

/* ---------- 双栏 ---------- */
body.theme-blog .bt-cols { display: grid; grid-template-columns: 1fr 300px; gap: 26px; }
body.theme-blog .bt-list-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px;
}
body.theme-blog .bt-list-head h2 { font-size: 20px; }
body.theme-blog .bt-list-head small { color: var(--muted); font-size: 12px; }
body.theme-blog .bt-more, body.theme-blog .bt-sort a { color: #b45309; text-decoration: none; font-size: 13px; margin-left: 12px; }
body.theme-blog .bt-sort a:hover, body.theme-blog .bt-more:hover { text-decoration: underline; }

/* ---------- 文章条目：杂志式分隔 ---------- */
body.theme-blog .bt-article {
  display: flex; gap: 18px; padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
body.theme-blog .bt-cover { width: 160px; height: 108px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
body.theme-blog .bt-cover-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a); font-size: 34px;
}
body.theme-blog .bt-article-body { flex: 1; min-width: 0; }
body.theme-blog .bt-cat {
  font-size: 11px; color: #92400e; background: #fef3c7;
  padding: 2px 8px; border-radius: 3px; letter-spacing: 1px;
}
body.theme-blog .bt-article h2 { font-size: 19px; margin: 8px 0 6px; line-height: 1.4; }
body.theme-blog .bt-article h2 a { color: var(--ink); text-decoration: none; }
body.theme-blog .bt-article h2 a:hover { color: #b45309; }
body.theme-blog .bt-article p { color: var(--muted); font-size: 13.5px; line-height: 1.75; margin: 0 0 10px; }
body.theme-blog .bt-meta { display: flex; gap: 14px; color: #a8a29e; font-size: 12px; }
body.theme-blog .bt-empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 15px; }

/* ---------- 侧边栏 ---------- */
body.theme-blog .bt-widget {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 18px;
}
body.theme-blog .bt-widget h3 {
  font-size: 15px; border-bottom: 2px solid #fde68a; padding-bottom: 8px; margin-bottom: 12px;
}
body.theme-blog .bt-hot-item { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; }
body.theme-blog .bt-hot-item b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
body.theme-blog .bt-hot-item:hover b { color: #b45309; }
body.theme-blog .bt-hot-item em { font-style: normal; color: #a8a29e; font-size: 11.5px; }
body.theme-blog .bt-hot-rank {
  width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0;
  background: #e7e5e4; color: #78716c; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
body.theme-blog .bt-hot-rank.top { background: #b45309; color: #fff; }
body.theme-blog .bt-cats a {
  display: flex; justify-content: space-between; color: var(--ink); text-decoration: none;
  padding: 7px 10px; border-radius: 8px; font-size: 13.5px; margin-bottom: 2px;
}
body.theme-blog .bt-cats a:hover { background: #fef3c7; }
body.theme-blog .bt-cats span { color: #a8a29e; }
body.theme-blog .bt-statbox .bt-stat { display: inline-flex; flex-direction: column; width: 31%; text-align: center; margin-top: 6px; }
body.theme-blog .bt-stat b { font-size: 20px; color: #92400e; font-family: Georgia, serif; }
body.theme-blog .bt-stat span { font-size: 12px; color: var(--muted); }

/* ---------- 页脚 ---------- */
body.theme-blog .bt-footer {
  background: #292524; color: #d6d3d1; text-align: center; padding: 36px 20px;
}
body.theme-blog .bt-brand-sm { font-size: 20px; color: #fef3c7; font-family: Georgia, serif; margin-bottom: 8px; }
body.theme-blog .bt-footer p { font-size: 12.5px; color: #a8a29e; }
body.theme-blog .bt-links { margin: 14px 0; }
body.theme-blog .bt-links a { color: #d6d3d1; margin: 0 10px; text-decoration: none; font-size: 13px; }
body.theme-blog .bt-links a:hover { color: #fbbf24; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  body.theme-blog .bt-cols { grid-template-columns: 1fr; }
  body.theme-blog .bt-search { position: static; margin-top: 12px; }
  body.theme-blog .bt-lead a { flex-direction: column; }
  body.theme-blog .bt-lead-img { width: 100%; }
  body.theme-blog .bt-login-btn { display: none; }
}
