/* 备考资讯 - 公共样式 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: 20px; font-weight: 700; color: #ff6a00; text-decoration: none; }
.logo:hover { opacity: .85; }
nav a { color: #555; text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 4px; }
nav a:hover, nav a.nav-active { color: #ff6a00; background: #fff5ee; }

/* Page */
.page-title { font-size: 22px; font-weight: 600; margin: 24px 0 16px; }
main { flex: 1; }

/* Article list */
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-card {
  background: #fff; border-radius: 8px; padding: 16px 20px;
  cursor: pointer; transition: box-shadow .2s;
  border-left: 3px solid transparent;
}
.article-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.article-card.pinned { border-left-color: #ff6a00; background: #fffbf5; }
.pin-badge { display: inline-block; background: #ff6a00; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-bottom: 4px; }
.article-title { font-size: 17px; font-weight: 500; margin-bottom: 6px; color: #222; }
.article-meta { font-size: 13px; color: #999; display: flex; gap: 16px; }
.article-summary { font-size: 14px; color: #666; margin-top: 8px; }

/* Detail */
.back-link { display: inline-block; margin: 16px 0; color: #ff6a00; text-decoration: none; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.article-detail { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 32px; }
.detail-title { font-size: 24px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.detail-meta { font-size: 13px; color: #999; display: flex; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.detail-content { font-size: 15px; line-height: 1.8; }
.detail-content h2 { font-size: 20px; margin: 24px 0 12px; }
.detail-content h3 { font-size: 17px; margin: 20px 0 10px; }
.detail-content p { margin: 10px 0; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin: 10px 0; }
.detail-content img { max-width: 100%; border-radius: 6px; margin: 12px 0; }
.detail-content blockquote { border-left: 3px solid #ff6a00; padding: 8px 16px; background: #fff8f0; margin: 12px 0; color: #555; }
.detail-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 14px; }
.detail-content pre { background: #f5f5f5; padding: 16px; border-radius: 6px; overflow-x: auto; margin: 12px 0; }
.detail-content pre code { background: none; padding: 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.pagination a { color: #ff6a00; cursor: pointer; text-decoration: none; padding: 6px 14px; border: 1px solid #ff6a00; border-radius: 4px; }
.pagination a:hover { background: #ff6a00; color: #fff; }
.page-info { color: #999; font-size: 14px; }

/* States */
.loading, .empty, .error { text-align: center; padding: 60px 20px; color: #999; font-size: 15px; }
.error { color: #e74c3c; }

/* Footer */
.site-footer { text-align: center; padding: 20px 0; color: #aaa; font-size: 13px; margin-top: auto; }

/* Mobile */
@media (max-width: 600px) {
  .page-title { font-size: 18px; }
  .article-card { padding: 12px 14px; }
  .article-title { font-size: 15px; }
  .article-detail { padding: 16px; }
  .detail-title { font-size: 20px; }
}
