/* ===== 百度SEO静态文章样式 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #F5F6FA; color: #333; line-height: 1.8; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
a { color: #4F46E5; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { background: #fff; border-bottom: 1px solid #E8EAED; padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #1E1E2E; text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-size: 14px; color: #6B7280; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #4F46E5; border-bottom-color: #4F46E5; text-decoration: none; }

/* 面包屑 */
.breadcrumb { padding: 16px 0; font-size: 13px; color: #9CA3AF; }
.breadcrumb ol { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li::after { content: '/'; margin-left: 4px; color: #D1D5DB; }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: #6B7280; }
.breadcrumb a:hover { color: #4F46E5; text-decoration: none; }

/* ===== 文章列表页 ===== */
.article-list-page { padding: 32px 0 60px; }
.list-hero { text-align: center; padding: 40px 0 32px; }
.list-hero h1 { font-size: 32px; font-weight: 800; color: #1E1E2E; margin-bottom: 12px; }
.list-hero p { font-size: 16px; color: #6B7280; max-width: 560px; margin: 0 auto; }
.category-filter { margin-bottom: 32px; }
.cat-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cat-btn { display: inline-block; padding: 6px 16px; border-radius: 20px; background: #E8EBFF; color: #4F46E5; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; text-decoration: none; }
.cat-btn:hover { background: #D0D5FF; text-decoration: none; }
.cat-btn.active { background: #4F46E5; color: #fff; }
.articles-grid { display: flex; flex-direction: column; gap: 16px; }
.article-card { background: #fff; border-radius: 12px; padding: 20px 24px; border: 1px solid #F0F1F5; transition: all 0.2s; }
.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); border-color: #E0E3F0; }
.card-header { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.article-card h2 { font-size: 18px; font-weight: 700; color: #1E1E2E; margin-bottom: 6px; line-height: 1.4; }
.article-card p { font-size: 14px; color: #6B7280; line-height: 1.5; margin-bottom: 10px; }
.card-meta { font-size: 12px; color: #9CA3AF; display: flex; gap: 8px; align-items: center; }
.separator { color: #D1D5DB; }

/* 标签和分类 */
.category-badge { display: inline-block; padding: 2px 10px; background: #4F46E5; color: #fff; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag { display: inline-block; padding: 2px 8px; background: #F3F4F6; color: #6B7280; border-radius: 4px; font-size: 11px; }

/* ===== 文章详情页 ===== */
.article-detail { padding: 0 0 60px; }
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #E8EAED; }
.article-category { margin-bottom: 12px; }
.article-header h1 { font-size: 28px; font-weight: 800; color: #1E1E2E; line-height: 1.4; margin-bottom: 12px; }
.article-meta { font-size: 13px; color: #9CA3AF; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.article-content { background: #fff; border-radius: 12px; padding: 32px 36px; border: 1px solid #F0F1F5; font-size: 15px; line-height: 1.9; color: #374151; }
.article-content h2 { font-size: 22px; font-weight: 700; color: #1E1E2E; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #E8EBFF; }
.article-content h3 { font-size: 18px; font-weight: 700; color: #374151; margin: 24px 0 10px; }
.article-content h4 { font-size: 16px; font-weight: 600; color: #6B7280; margin: 20px 0 8px; }
.article-content p { margin-bottom: 12px; }
.article-content ul, .article-content ol { margin: 8px 0 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content code { background: #F3F4F6; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #E11D48; }
.article-content pre { background: #1E1E2E; color: #E2E8F0; padding: 16px 20px; border-radius: 8px; overflow-x: auto; margin: 16px 0; font-size: 13px; line-height: 1.6; }
.article-content strong { color: #1E1E2E; }
.article-footer { margin-top: 32px; padding: 24px; background: linear-gradient(135deg, #E8EBFF, #F5F3FF); border-radius: 12px; text-align: center; }
.article-footer p { font-size: 14px; color: #4B5563; margin-bottom: 4px; }
.brand-link { font-weight: 600; color: #4F46E5; }

/* 相关文章 */
.related-articles { margin-top: 40px; }
.related-articles h3 { font-size: 18px; font-weight: 700; color: #1E1E2E; margin-bottom: 16px; }
.related-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.related-item { background: #fff; border-radius: 10px; border: 1px solid #F0F1F5; transition: all 0.2s; }
.related-item:hover { border-color: #E0E3F0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.related-item a { display: block; padding: 16px 20px; text-decoration: none; }
.related-item h4 { font-size: 15px; font-weight: 600; color: #1E1E2E; margin-bottom: 4px; }
.related-item p { font-size: 13px; color: #9CA3AF; margin-bottom: 8px; }
.related-meta { display: flex; gap: 4px; }
.back-link { margin-top: 32px; text-align: center; }
.back-link a { font-size: 15px; color: #4F46E5; font-weight: 500; }

/* 底部 */
.site-footer { background: #fff; border-top: 1px solid #E8EAED; padding: 24px 0; margin-top: 40px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.footer-info { font-size: 12px; color: #9CA3AF; }
.footer-info p { margin-bottom: 2px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: #6B7280; }
.empty-state { text-align: center; padding: 60px 20px; color: #9CA3AF; }

/* 响应式 */
@media (max-width: 768px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 12px; }
  .article-content { padding: 24px 20px; }
  .article-header h1 { font-size: 22px; }
  .related-list { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .site-header .container { flex-direction: column; height: auto; padding: 10px 20px; gap: 8px; }
  .main-nav { gap: 16px; }
}
