/* ============================================================
   BodyShape 中文化覆盖样式（大潘黑橙主题）
   覆盖/补充原模板样式，适配中文技术博客
   ============================================================ */

/* ---------- 文字 Logo ---------- */
.brand-text {
  font-family: "Oswald", "Poppins", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.2;
  display: inline-block;
}
.logo-dark .brand-text {
  color: #fff;
}
.logo-dark .brand-text .text-primary {
  color: var(--primary) !important;
}

/* ---------- 中文正文排版 ---------- */
.dz-post-text {
  font-family: "Poppins", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}
.dz-post-text p {
  margin-bottom: 1.2em;
}
.dz-post-text h2, .dz-post-text h3, .dz-post-text h4 {
  font-family: "Oswald", "Microsoft YaHei", sans-serif;
  color: #222;
  margin: 1.4em 0 0.6em;
}
.dz-post-text img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.dz-post-text pre {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.dz-post-text code {
  background: #f4f4f4;
  color: #e0592a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.dz-post-text pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.dz-post-text blockquote {
  border-left: 4px solid var(--primary);
  background: #fff7f0;
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
  color: #666;
  margin: 1.2em 0;
}
.dz-post-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}
.dz-post-text table th, .dz-post-text table td {
  border: 1px solid #e5e5e5;
  padding: 8px 12px;
}
.dz-post-text table th {
  background: #fafafa;
  font-weight: 600;
}
.dz-post-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- 卡片标题/摘要 ---------- */
.dz-card .dz-title {
  font-family: "Oswald", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}
.dz-card .dz-title a:hover {
  color: var(--primary);
}
.dz-card .dz-info p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
}

/* ---------- 归档列表 ---------- */
.archives-list {
  list-style: none;
  padding-left: 0;
  border-left: 2px solid #eee;
  margin-left: 6px;
}
.archives-list li {
  position: relative;
  padding: 6px 0 6px 22px;
}
.archives-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}
.archives-list li a {
  color: #444;
  font-size: 15px;
}
.archives-list li a:hover {
  color: var(--primary);
}
.archives-date {
  color: #999;
  font-size: 13px;
  margin-left: 8px;
}

/* ---------- 页脚分类列表 ---------- */
.footer-cat-list {
  list-style: none;
  padding-left: 0;
}
.footer-cat-list li {
  padding: 4px 0;
}
.footer-cat-list li a {
  color: #b5b5b5;
  font-size: 14px;
  transition: all 0.3s;
}
.footer-cat-list li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* ---------- 友链 logo ---------- */
.link-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid #eee;
  padding: 4px;
  background: #fff;
}

/* ---------- 标签云 ---------- */
.tagcloud a {
  display: inline-block;
  background: #f7f7f7;
  color: #555;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0 6px 10px 0;
  font-size: 13px;
  transition: all 0.3s;
}
.tagcloud a:hover {
  background: var(--primary);
  color: #fff;
}
.tagcloud a span {
  font-size: 13px;
}

/* ---------- 页脚备案一行 ---------- */
.footer-bottom .copyright-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 14px;
  color: #b5b5b5;
  font-size: 14px;
}
.footer-bottom .copyright-text a {
  color: #b5b5b5;
}
.footer-bottom .copyright-text a:hover {
  color: var(--primary);
}
.footer-bottom .copyright-text .fa-shield-halved {
  margin-right: 4px;
  color: #9fc6ff;
}

/* ---------- 侧边栏 ---------- */
.widget .widget-title h4.title {
  font-family: "Oswald", "Microsoft YaHei", sans-serif;
  font-weight: 600;
}
.widget.widget_categories ul {
  list-style: none;
  padding-left: 0;
}
.widget.widget_categories ul li {
  border-bottom: 1px dashed #eee;
  padding: 10px 0;
}
.widget.widget_categories ul li a {
  color: #555;
  font-size: 14px;
}
.widget.widget_categories ul li a:hover {
  color: var(--primary);
  padding-left: 6px;
  transition: all 0.3s;
}
.widget_search .input-group-btn .btn {
  height: 100%;
}
.sticky-top {
  position: sticky;
  top: 100px;
}

/* ---------- 首页 hero 文字 ---------- */
.main-bnr-one .banner-content .title {
  font-size: 52px;
  line-height: 1.25;
}
@media (max-width: 991px) {
  .main-bnr-one .banner-content .title {
    font-size: 36px;
  }
}

/* ---------- section 标题 ---------- */
.section-head .title {
  font-family: "Oswald", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

/* ---------- 错误页 ---------- */
.error-404-box {
  padding: 60px 0;
}
