/* ============================================================
   GeorgeLED · WordPress 补充样式（wp-extra.css）
   只放 WP 环境特有的样式，原设计系统 style.css 不改动
   ============================================================ */

/* ---------- WP 菜单适配（wp_nav_menu 会包一层 li，直接展开） ---------- */
.main-nav ul, .footer-col ul { list-style: none; margin: 0; padding: 0; display: contents; }
.main-nav li, .footer-col li { display: contents; }
.main-nav .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- WP 管理员工具条偏移（仅登录用户可见，访客无影响） ---------- */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ---------- 博客列表 ---------- */
.blog-grid { align-items: stretch; }
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card .img-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card .img-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h3 { font-size: 1.08rem; }

/* ---------- 文章页 ---------- */
.hero--article h1 { max-width: 860px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.article-meta { font-size: 0.95rem; }
.article-section { padding-top: 56px; }
.article-container { max-width: 780px; }
.article-featured { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.article-featured img { width: 100%; height: auto; display: block; }
.article-content { font-size: 1.02rem; line-height: 1.85; color: var(--text-body); }
.article-content h2 { margin: 1.6em 0 0.6em; font-size: 1.55rem; }
.article-content h3 { margin: 1.5em 0 0.5em; font-size: 1.2rem; }
.article-content p { margin-bottom: 1.1em; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1.1em; }
.article-content li { margin-bottom: 0.4em; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-content blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 10px 10px 0;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-content th { background: var(--bg-soft); }
.article-content a { color: var(--accent); font-weight: 600; }
.article-footer-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 0.95rem; flex-wrap: wrap;
}
.article-footer-nav a { color: var(--accent); }

/* ---------- 分页 ---------- */
.pagination { margin-top: 44px; text-align: center; }
.pagination .page-numbers {
  display: inline-block; padding: 9px 16px; margin: 0 3px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text-body); font-weight: 600; font-size: 0.92rem;
}
.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; border-color: transparent;
}
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }

/* ---------- 后台编辑器与前台对齐（块编辑器基础） ---------- */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-embed { margin: 1.4em 0; }

@media (max-width: 640px) {
  .article-footer-nav { justify-content: center; }
}
