/*
Theme Name: 笔试攻略站
Template: twentytwentyfive
Version: 1.0.7
Description: 笔试攻略站子主题：首页文章列表、简洁导航与页脚。
*/

.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { color: #2563eb; }
.wp-block-post-excerpt__excerpt { color: #4b5563; font-size: 15px; line-height: 1.85; }
.wp-block-post-featured-image { max-width: 420px; }
.wp-block-post-featured-image img { border-radius: 10px; object-fit: contain; background: #f4f6f8; }
.entry-content img { border-radius: 10px; }
.wp-block-navigation a { text-decoration: none; }
body { background: #ffffff; }

/* 图片自适应，避免移动端横向溢出 */
.entry-content img,
.wp-block-image img,
figure img { max-width: 100%; height: auto; }
.wp-block-image, figure { max-width: 100%; }
.wp-block-post-content { overflow-wrap: break-word; }
@media (max-width: 600px) {
  .wp-block-post-featured-image { max-width: 100%; }
  .wp-block-post-featured-image img { max-height: 60vh; object-fit: contain; }
}
.wp-block-image figcaption { text-align: center; font-size: 13px; color: #6b7280; margin-top: 8px; }

/* ===== 文章详情页（对齐样张样式） ===== */
.ifanl-breadcrumb { font-size: 12px; color: #6b7280; margin: 0 0 16px; line-height: 1.6; }
.ifanl-breadcrumb a { color: #2563eb; text-decoration: none; }
.ifanl-breadcrumb a:hover { text-decoration: underline; }
.ifanl-meta { font-size: 12px; color: #6b7280; display: flex; gap: 18px; flex-wrap: wrap;
  margin: 0 0 26px; padding-bottom: 16px; border-bottom: 1px solid #eef1f5; }

.entry-content .ifanl-abstract { background: #e8f0fe; border-left: 4px solid #3b82f6;
  border-radius: 8px; padding: 14px 20px; margin: 0 0 16px; }
.entry-content .ifanl-abstract .ifanl-abstract-label { font-size: 12px; font-weight: 700;
  color: #2563eb; letter-spacing: 2px; margin-bottom: 4px; }
.entry-content .ifanl-abstract p { font-size: 14px; line-height: 1.8; margin: 0; }

.entry-content .ifanl-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.entry-content .ifanl-tags span { font-size: 12px; color: #2563eb; background: #eef5ff;
  border: 1px solid #c9d6f3; border-radius: 20px; padding: 2px 12px; }

.entry-content h2 { border-left: 4px solid #3b82f6; padding-left: 14px; line-height: 1.4; }
.entry-content p { line-height: 1.9; }
.entry-content ul, .entry-content ol { line-height: 1.9; }

.entry-content .ifanl-callout { margin: 20px 0; padding: 14px 20px; background: #fff7ed;
  border-left: 4px solid #d97706; border-radius: 8px; }
.entry-content .ifanl-callout p { font-size: 15px; margin: 0; }

.entry-content figure { max-width: 620px; margin: 24px auto; text-align: center; }
.entry-content figure img { display: inline-block; }
.entry-content figure img { border-radius: 10px; max-width: 100%; height: auto; width: auto;
  box-shadow: 0 4px 18px rgba(15,30,51,0.10); }
.entry-content figcaption { font-size: 12px; color: #6b7280; margin-top: 10px; }

.entry-content .ifanl-summary { margin: 28px 0 8px; padding: 20px 24px;
  background: linear-gradient(135deg, #eef5ff 0%, #e8f0fe 100%);
  border: 1px solid #c9d6f3; border-radius: 12px; }
.entry-content .ifanl-summary .ifanl-summary-label { font-size: 13px; font-weight: 800;
  color: #2563eb; letter-spacing: 2px; margin-bottom: 8px; }
.entry-content .ifanl-summary p { font-size: 15px; margin: 0; }

@media (max-width: 600px) {
  .entry-content figure img { max-width: 100%; }
  .ifanl-meta { gap: 10px; }
}

/* ===== 来源条（高亮） ===== */
.entry-content .ifanl-source, .ifanl-source {
  margin: 0 0 22px; padding: 12px 18px;
  background: linear-gradient(135deg, #fff7e6 0%, #ffeccb 100%);
  border: 1px solid #f0c96a; border-left: 5px solid #f59e0b;
  border-radius: 8px; font-size: 14px; line-height: 1.8; color: #7c4a03;
}
.ifanl-source strong { color: #b45309; font-weight: 800; }
@media (max-width: 600px) { .ifanl-source { font-size: 13px; padding: 10px 14px; } }

/* ===== 来源条：公众号三字高亮 ===== */
.ifanl-source .ifanl-source-tag { color: #dc2626; font-weight: 700; }
