/* ============================================================
   贵金属主题 · 归档页(archive.php) / 文章页(single.php) 样式
   配色变量沿用 static/index.css 中的 :root 定义
   ============================================================ */
:root {
  --serif: 'PingFang SC', 'Microsoft YaHei', Georgia, serif;
  --line: #efece4;
}

/* ===== 面包屑（functions.php: pmi_breadcrumb 输出） ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--grey);
  margin: 0 0 18px;
  padding: 0;
}
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: #c9c3b6; }

/* ===== 归档列表页 ===== */
.archive-sec { padding: 40px 0 72px; background: var(--paper); }
.archive-head { text-align: center; margin-bottom: 34px; }
.archive-head .bar {
  display: inline-block; width: 46px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  margin-bottom: 14px;
}
.archive-title { font-weight: 800; font-size: 1.7rem; color: var(--navy); margin-bottom: 10px; }
.archive-desc { color: var(--grey); max-width: 640px; margin: 0 auto; }

.art-cover-img { display: block; }

/* 列表卡片与首页一致：悬停浮起（.art-card / .art-body 已在 index.css 定义） */
.art-card .more { display: inline-block; }

.empty-tip { text-align: center; padding: 60px 0; color: var(--grey); }
.empty-tip i { font-size: 2.2rem; display: block; margin-bottom: 12px; opacity: 0.4; }
.empty-tip a { color: var(--gold); font-weight: 600; }

/* 分页（paginate_links type=list 输出 <ul.page-numbers>，按钮样式只作用于 a / span） */
.pagi { margin-top: 34px; text-align: center; }
.pagi ul.page-numbers { list-style: none; margin: 0; padding: 0; }
.pagi a.page-numbers,
.pagi span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; margin: 0 4px; padding: 0 12px;
  border: 1px solid #e3ded2; border-radius: 8px; color: #5a6474;
  text-decoration: none; font-size: 0.9rem; transition: all 0.2s;
}
.pagi span.page-numbers.current,
.pagi a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== 文章详情页 ===== */
.single-sec { padding: 40px 0 72px; background: var(--paper); }
.single-card {
  background: #fff; border: 1px solid #efece4; border-radius: 14px;
  padding: 30px 34px; box-shadow: 0 6px 22px rgba(18, 38, 63, 0.06);
}
.single-card .meta {
  font-size: 0.8rem; color: #9aa2b1; display: flex; gap: 14px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.single-card .meta .cat { color: var(--gold); font-weight: 700; text-decoration: none; }
.single-card .meta .cat:hover { text-decoration: underline; }
.single-title { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.5; margin-bottom: 18px; }

.single-thumb { margin: 0 0 22px; border-radius: 12px; overflow: hidden; }
.single-thumb img { width: 100%; height: auto; display: block; }

.single-content { font-size: 1rem; color: #3b423f; line-height: 1.95; word-break: break-word; }
.single-content h2 { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 28px 0 12px; }
.single-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 22px 0 10px; }
.single-content p { margin: 0 0 16px; }
.single-content img { max-width: 100%; height: auto; border-radius: 8px; }
.single-content ul, .single-content ol { padding-left: 22px; margin: 0 0 16px; }
.single-content li { margin-bottom: 6px; }
.single-content blockquote {
  border-left: 4px solid var(--gold); background: #faf8f3; padding: 12px 18px;
  margin: 0 0 16px; color: var(--grey); border-radius: 0 8px 8px 0;
}
.single-content a { color: var(--gold); }
.single-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.single-content th, .single-content td { border: 1px solid #efece4; padding: 8px 12px; }

.post-pages { margin: 18px 0; text-align: center; }
.post-pages a, .post-pages > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; margin: 0 3px; padding: 0 9px;
  border: 1px solid #e3ded2; border-radius: 6px; color: #5a6474; text-decoration: none; font-size: 0.85rem;
}
.post-pages > span, .post-pages a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.single-tags { margin-top: 24px; padding-top: 18px; border-top: 1px dashed #eee8da; }
.single-tags .art-tag {
  display: inline-block; background: #f3e5c3; color: #8a6516; border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; padding: 3px 10px; margin: 0 6px 6px 0; text-decoration: none;
}
.single-tags .art-tag:hover { background: var(--gold); color: #fff; }

/* 上一篇 / 下一篇 */
.post-nav { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.post-nav .pn {
  flex: 1; min-width: 200px; background: #fff; border: 1px solid #efece4; border-radius: 10px;
  padding: 14px 18px; text-decoration: none; transition: all 0.2s;
}
.post-nav .pn:hover { border-color: var(--gold-light); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18, 38, 63, 0.08); }
.post-nav .pn span { display: block; font-size: 0.78rem; color: var(--grey); margin-bottom: 4px; }
.post-nav .pn strong { color: var(--navy); font-size: 0.95rem; line-height: 1.5; }
.pn-next { text-align: right; }

/* 相关文章 */
.related-box { margin-top: 30px; background: #fff; border: 1px solid #efece4; border-radius: 14px; padding: 22px 24px; }
.related-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.related-title i { color: var(--gold); margin-right: 8px; }
.rel-card {
  display: flex; align-items: center; gap: 12px; background: #faf8f3;
  border: 1px solid #efece4; border-radius: 10px; padding: 12px 14px; text-decoration: none; height: 100%; transition: all 0.2s;
}
.rel-card:hover { border-color: var(--gold-light); transform: translateY(-3px); }
.rel-thumb {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 8px;
  background: linear-gradient(135deg, #d3ac52, var(--gold)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.rel-name { font-size: 0.9rem; color: var(--navy); font-weight: 600; line-height: 1.5; }

/* ===== 侧边栏组件（sidebar.php 输出，全站通用） ===== */
.sidebar-widgets .sidebar-widget {
  background: #fff; border: 1px solid #efece4; border-radius: 14px; padding: 20px 22px; margin-bottom: 20px;
}
.sidebar-widget .widget-title {
  font-family: var(--serif); color: var(--navy); font-size: 1.05rem; font-weight: 800;
  margin: 0 0 14px; border-left: 4px solid var(--gold); padding-left: 10px;
}
.widget-post-list { list-style: none; margin: 0; padding: 0; }
.widget-post-list li { border-bottom: 1px dashed #eee8da; padding: 10px 0; }
.widget-post-list li:last-child { border-bottom: none; }
.widget-post-list a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; color: #3b423f; font-size: 0.9rem; align-items: center; }
.widget-post-list a:hover { color: var(--gold); }
.widget-post-list .wp-date { color: #9aa2b1; font-size: 0.78rem; flex-shrink: 0; }

.widget-cat-list { list-style: none; margin: 0; padding: 0; }
.widget-cat-list li { border-bottom: 1px dashed #eee8da; padding: 8px 0; }
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list a { display: flex; justify-content: space-between; text-decoration: none; color: #3b423f; font-size: 0.9rem; }
.widget-cat-list a:hover { color: var(--gold); }
.widget-cat-list .wc-count { background: var(--paper); color: var(--gold); border-radius: 20px; font-size: 0.72rem; padding: 1px 9px; font-weight: 700; }

.widget-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-link {
  display: inline-block; background: var(--paper); border: 1px solid #efece4; color: #5a6474;
  border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; text-decoration: none; transition: all 0.2s;
}
.tag-cloud-link:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .single-card { padding: 22px; }
  .single-title { font-size: 1.45rem; }
  .archive-title { font-size: 1.45rem; }
}
@media (max-width: 576px) {
  .archive-sec, .single-sec { padding: 28px 0 48px; }
}
