/* ==========================================================================
   mpf-blog-content.css — 博客归档/单篇 + 静态内容页（About/Contact/FAQ/政策）+ 404/搜索
   ========================================================================== */

/* ---------- 博客归档（Kadence 文章卡 + 自定义 .mpf-blog-grid 双支持） ---------- */
.blog .entry-card, .archive .entry-card, .post-article, .entry-content-wrap {
  background: #fff; border: 1px solid var(--mpf-line); border-radius: var(--mpf-radius-lg);
  overflow: hidden; box-shadow: var(--mpf-shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.blog .entry-card:hover, .archive .entry-card:hover { transform: translateY(-4px); box-shadow: var(--mpf-shadow-md); }
.entry-featured-image img, .post-thumbnail img { border-radius: 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.entry-title { font-size: 21px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; }
.entry-title a { color: var(--mpf-ink); }
.entry-meta { font-size: 13px; color: var(--mpf-ink-500); margin-bottom: 10px; }
.entry-meta a { color: var(--mpf-ink-500); }
.entry-excerpt, .entry-summary { color: var(--mpf-ink-700); font-size: 14.5px; line-height: 1.65; }
.blog .entry-card .entry-content-wrap { padding: 20px 22px 24px; }

/* ---------- 单篇博客 ---------- */
.single-post .entry-header { margin-bottom: 28px; }
.single-post .entry-title { font-size: 38px; font-weight: 800; line-height: 1.15; }
.single-post .entry-meta { font-size: 14px; }
.single-post .entry-featured-image { border-radius: var(--mpf-radius-xl); overflow: hidden; margin-bottom: 32px; }
.single-post .entry-featured-image img { aspect-ratio: 16/8; }
.entry-content { font-size: 17px; line-height: 1.85; color: var(--mpf-ink-700); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 28px; font-weight: 800; color: var(--mpf-ink); margin: 36px 0 14px; }
.entry-content h3 { font-size: 22px; font-weight: 700; color: var(--mpf-ink); margin: 28px 0 12px; }
.entry-content p { margin: 0 0 18px; }
.entry-content a { color: var(--mpf-coral-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 26px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--mpf-coral); background: var(--mpf-cream);
  border-radius: 0 var(--mpf-radius-md) var(--mpf-radius-md) 0; padding: 18px 24px; margin: 24px 0;
  font-size: 18px; font-weight: 600; color: var(--mpf-ink);
}
.entry-content img, .entry-content .wp-block-image { border-radius: var(--mpf-radius-lg); margin: 24px 0; }
.entry-content code { background: var(--mpf-mist); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.entry-content pre { background: var(--mpf-ink); color: #fff; padding: 18px; border-radius: var(--mpf-radius-md); overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--mpf-line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--mpf-cream); font-weight: 700; }

/* 作者盒 / 上下篇 / 评论 */
.mpf-author-box { display: flex; gap: 18px; background: var(--mpf-cream); border-radius: var(--mpf-radius-lg); padding: 24px; margin: 36px 0; }
.mpf-author-box .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.mpf-author-box h4 { margin: 0 0 6px; font-size: 17px; }
.post-navigation { border-top: 1px solid var(--mpf-line); padding-top: 24px; margin-top: 36px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.post-navigation a { font-weight: 700; color: var(--mpf-ink); }
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--mpf-mist); border-radius: var(--mpf-radius-lg); padding: 18px 20px; margin-bottom: 16px; }
.comment-author { font-weight: 700; color: var(--mpf-ink); }
.comment-metadata { font-size: 13px; color: var(--mpf-ink-500); }
.comment-respond { margin-top: 28px; }

/* ---------- 静态内容页（About/Contact/FAQ/政策） ---------- */
.page .entry-content { max-width: 820px; margin: 0 auto; }
.mpf-prose { font-size: 16.5px; line-height: 1.8; color: var(--mpf-ink-700); }
.mpf-prose h2 { font-size: 28px; margin: 32px 0 14px; }
.mpf-prose h3 { font-size: 21px; margin: 26px 0 12px; }
.mpf-prose p { margin-bottom: 18px; }
.mpf-prose ul { padding-left: 24px; }
.mpf-prose li { margin-bottom: 8px; }

/* FAQ 手风琴（原生 details，无需 JS） */
.mpf-faq details {
  border: 1px solid var(--mpf-line); border-radius: var(--mpf-radius-md);
  padding: 16px 20px; margin-bottom: 12px; background: #fff;
}
.mpf-faq summary { cursor: pointer; font-weight: 700; color: var(--mpf-ink); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mpf-faq summary::-webkit-details-marker { display: none; }
.mpf-faq summary::after { content: "+"; font-size: 22px; color: var(--mpf-coral-deep); font-weight: 400; }
.mpf-faq details[open] summary::after { content: "−"; }
.mpf-faq details p { margin: 12px 0 0; color: var(--mpf-ink-700); line-height: 1.7; }

/* 联系表单（CF7 / WP 原生通用） */
.wpcf7, .mpf-contact-form { max-width: 640px; }
.wpcf7-form label, .mpf-contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.wpcf7-form input, .wpcf7-form textarea, .mpf-contact-form input, .mpf-contact-form textarea { margin-bottom: 16px; }
.wpcf7-form .wpcf7-submit { width: 100%; }
.wpcf7-response-output { border-radius: var(--mpf-radius-md); padding: 12px 16px; margin-top: 14px; }
.wpcf7-validation-errors { background: #FBECEC; color: var(--mpf-danger); border: 1px solid var(--mpf-danger); }
.wpcf7-mail-sent-ok { background: var(--mpf-sage-soft); color: var(--mpf-sage); border: 1px solid var(--mpf-sage); }

/* 政策页（Privacy/Terms/Shipping/Returns） */
.mpf-policy-toc { background: var(--mpf-cream); border-radius: var(--mpf-radius-lg); padding: 20px 24px; margin-bottom: 28px; }
.mpf-policy-toc a { display: inline-block; margin: 4px 14px 4px 0; font-weight: 600; font-size: 14px; }

/* 404 / 搜索无结果 */
.error404 .entry-content, .search-no-results .entry-content { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 0; }
.error404 .mpf-404-code { font-size: 96px; font-weight: 800; color: var(--mpf-coral); line-height: 1; }
.error404 .search-form { display: flex; gap: 8px; max-width: 440px; margin: 24px auto 0; }
.error404 .search-form input { flex: 1; }

/* 搜索结果 */
.search-results .entry-card { margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .single-post .entry-title { font-size: 28px; }
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 24px; }
  .mpf-author-box { flex-direction: column; }
  .post-navigation .nav-links { flex-direction: column; }
}
