/* 新闻列表页样式 */
.news-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.news-page-head { text-align: center; margin-bottom: 32px; }
.news-page-head h1 { font-size: 32px; font-weight: 700; color: #2b2b2b; margin-bottom: 8px; font-family: "Noto Serif SC", serif; }
.news-page-head p { color: #999; font-size: 14px; }

.news-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; padding: 16px 20px; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.news-filter select, .news-filter input { height: 38px; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; font-size: 14px; outline: none; transition: border-color .2s; }
.news-filter select:focus, .news-filter input:focus { border-color: #c8161d; }
.news-filter button { height: 38px; padding: 0 20px; background: linear-gradient(135deg, #c8161d, #e84545); color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all .2s; }
.news-filter button:hover { box-shadow: 0 4px 12px rgba(200,22,29,.3); transform: translateY(-1px); }
.news-filter .cat-list { display: flex; gap: 6px; flex-wrap: wrap; }
.news-filter .cat-item { padding: 6px 14px; border-radius: 20px; font-size: 13px; background: #f5f5f5; color: #666; cursor: pointer; transition: all .2s; text-decoration: none; }
.news-filter .cat-item:hover, .news-filter .cat-item.active { background: #c8161d; color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: all .25s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.news-card .card-thumb { width: 100%; height: 180px; object-fit: cover; background: #f5f5f7; }
.news-card .card-thumb-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #f5f5f7, #e5e5e7); display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 36px; }
.news-card .card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.news-card .card-cat { display: inline-block; font-size: 12px; color: #c8161d; background: #fef2f2; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; align-self: flex-start; }
.news-card h3 { font-size: 16px; font-weight: 600; color: #2b2b2b; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #aaa; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.news-card .card-meta .card-date { font-family: "JetBrains Mono", monospace; }
.news-card .card-meta .card-hits { color: #999; }

.news-pagination { margin-top: 32px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.news-pagination a, .news-pagination span { padding: 8px 14px; border: 1px solid #e5e5e5; border-radius: 6px; font-size: 14px; min-width: 38px; text-align: center; text-decoration: none; color: #555; transition: all .2s; }
.news-pagination a:hover { border-color: #c8161d; color: #c8161d; }
.news-pagination .current { background: #c8161d; border-color: #c8161d; color: #fff; }
.news-pagination .disabled { color: #ccc; cursor: not-allowed; }
.news-pagination .total { color: #999; border: none; }

.news-empty { text-align: center; padding: 60px 20px; color: #999; }
.news-empty .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }

/* 文章详情页样式 */
.article-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.article-breadcrumb { font-size: 13px; color: #999; margin-bottom: 20px; }
.article-breadcrumb a { color: #c8161d; text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { color: #666; }

.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 40px 48px;
  transition: box-shadow .3s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.article-header { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid #f0f0f0; }
.article-header h1 { font-size: 30px; font-weight: 700; color: #2b2b2b; line-height: 1.4; margin-bottom: 18px; font-family: "Noto Serif SC", serif; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #999; align-items: center; }
.article-meta .meta-item { display: flex; align-items: center; gap: 6px; }
.article-meta .meta-cat { color: #c8161d; background: #fef2f2; padding: 3px 12px; border-radius: 20px; font-weight: 500; }
.article-meta .meta-date { font-family: "JetBrains Mono", monospace; }

.article-thumb-wrap { margin-bottom: 32px; border-radius: 10px; overflow: hidden; }
.article-thumb { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; display: block; }

.article-content { font-size: 16px; line-height: 1.9; color: #333; }
.article-content h1, .article-content h2, .article-content h3 { color: #2b2b2b; margin: 28px 0 14px; font-family: "Noto Serif SC", serif; }
.article-content h1 { font-size: 24px; }
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 18px; }
.article-content p { margin-bottom: 18px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 18px auto; display: block; }
.article-content a { color: #c8161d; text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 4px solid #c8161d; padding: 14px 22px; background: #fafafa; margin: 18px 0; color: #666; border-radius: 0 8px 8px 0; }
.article-content pre { background: #f5f5f7; padding: 16px; border-radius: 6px; overflow-x: auto; margin: 18px 0; }
.article-content code { font-family: "JetBrains Mono", monospace; font-size: 14px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-content th, .article-content td { border: 1px solid #e5e5e5; padding: 10px 14px; text-align: left; }
.article-content th { background: #f9f9f9; font-weight: 600; }

.article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.article-back { display: inline-flex; align-items: center; gap: 6px; color: #c8161d; text-decoration: none; font-size: 14px; padding: 6px 16px; border: 1px solid #c8161d; border-radius: 20px; transition: all .2s; }
.article-back:hover { background: #c8161d; color: #fff; }
.article-share { font-size: 13px; color: #999; }

.related-section { max-width: 1200px; margin: 40px auto; padding: 0 20px 60px; }
.related-section h2 { font-size: 22px; font-weight: 700; color: #2b2b2b; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #c8161d; font-family: "Noto Serif SC", serif; display: inline-block; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: all .25s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.related-card .r-thumb { width: 100%; height: 140px; object-fit: cover; background: #f5f5f7; }
.related-card .r-placeholder { width: 100%; height: 140px; background: linear-gradient(135deg, #f5f5f7, #e5e5e7); display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 28px; }
.related-card .r-body { padding: 14px 16px; }
.related-card h3 { font-size: 15px; font-weight: 600; color: #2b2b2b; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card .r-date { font-size: 12px; color: #aaa; font-family: "JetBrains Mono", monospace; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .article-page { padding: 20px 16px; }
  .article-card { padding: 24px 20px; }
  .article-header h1 { font-size: 22px; }
  .article-content { font-size: 15px; line-height: 1.8; }
  .article-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-page-head h1 { font-size: 24px; }
  .news-filter { flex-direction: column; align-items: stretch; }
  .news-filter select, .news-filter input { width: 100%; }
}
