/* 页面容器 - 防止底部被遮挡 */
.page-wrapper {
    min-height: calc(100vh - 200px);
    padding-bottom: 120px; /* 为固定底部footer留出空间 */
}

/* 头部 */
.header { background: #fff; padding: 20px 30px; border-radius: 10px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.header h2 { font-size: 24px; color: #333; }
.search-box { display: flex; gap: 10px; }
.search-box input { padding: 10px 20px; font-size: 15px; border: 2px solid #ddd; border-radius: 8px; outline: none; width: 280px; }
.search-box input:focus { border-color: #007bff; }
.search-box button { padding: 10px 25px; font-size: 15px; background: #007bff; color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.search-box button:hover { background: #0056b3; }

/* 文章列表 */
.article-list { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.article-item { display: flex; padding: 25px 30px; border-bottom: 1px solid #eee; transition: background 0.3s; }
.article-item:last-child { border-bottom: none; }
.article-item:hover { background: #f8f9fa; }
.article-item.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.article-thumb { width: 150px; height: 100px; border-radius: 8px; overflow: hidden; flex-shrink: 0; margin-right: 25px; background: #ddd; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-content { flex: 1; }
.article-title { font-size: 18px; color: #333; margin-bottom: 10px; cursor: pointer; }
.article-title:hover { color: #007bff; }
.article-title mark { background: #fff3cd; padding: 0 2px; }
.article-meta { font-size: 14px; color: #999; margin-bottom: 8px; }
.article-desc { font-size: 14px; color: #666; line-height: 1.6; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px auto 0; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); flex-wrap: wrap; margin-bottom: 0; width: 100%; box-sizing: border-box; }
.pagination button { padding: 8px 14px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; color: #333; min-width: 44px; }
.pagination button:hover:not(:disabled) { background: #007bff; color: #fff; border-color: #007bff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination button.active { background: #007bff; color: #fff; border-color: #007bff; }
.pagination .page-jump { display: flex; align-items: center; gap: 5px; margin-left: 10px; }
.pagination .page-jump input { width: 50px; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; text-align: center; font-size: 14px; }
.pagination .page-jump input:focus { outline: none; border-color: #007bff; }

/* 统计 */
.search-stats { padding: 15px 30px; background: #f8f9fa; font-size: 14px; color: #666; border-bottom: 1px solid #eee; }
.search-stats strong { color: #007bff; }
.no-result { text-align: center; padding: 60px; color: #999; }