* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.news-header { background: #bf0200; color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.news-header .container { display: flex; align-items: center; justify-content: space-between; }
.news-header h1 a { color: #fff; text-decoration: none; font-size: 20px; }
.news-header nav a { color: rgba(255,255,255,0.85); text-decoration: none; margin-left: 20px; font-size: 14px; }
.news-header nav a.active, .news-header nav a:hover { color: #fff; border-bottom: 2px solid #fff; }

/* List */
.news-list { padding: 40px 0; }
.news-list h2 { font-size: 24px; margin-bottom: 20px; color: #333; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.article-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.article-card a { text-decoration: none; color: inherit; display: block; padding: 20px; }
.article-card .cat-tag { display: inline-block; background: #bf0200; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.article-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.article-card .summary { color: #666; font-size: 13px; margin-bottom: 8px; }
.article-card time { color: #999; font-size: 12px; }
.empty { text-align: center; padding: 60px 0; color: #999; }

/* Pagination */
.pagination { text-align: center; margin-top: 30px; }
.pagination a { display: inline-block; padding: 6px 12px; margin: 0 4px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; }
.pagination a.active { background: #bf0200; color: #fff; border-color: #bf0200; }

/* Detail */
.article-detail { padding: 40px 0; }
.article-detail header { margin-bottom: 20px; }
.article-detail h1 { font-size: 28px; margin-bottom: 10px; line-height: 1.3; }
.article-detail .meta { color: #666; font-size: 14px; }
.article-detail .meta .cat-tag { display: inline-block; background: #bf0200; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-right: 10px; }
.article-detail .content { background: #fff; padding: 30px; border-radius: 8px; font-size: 16px; line-height: 1.8; }
.article-detail .content h2 { font-size: 20px; margin: 20px 0 10px; }
.article-detail .content h3 { font-size: 18px; margin: 16px 0 8px; }
.article-detail .content p { margin-bottom: 12px; }

/* Related */
.related { margin-top: 30px; background: #fff; padding: 20px; border-radius: 8px; }
.related h3 { font-size: 18px; margin-bottom: 10px; }
.related ul { list-style: none; }
.related li { padding: 6px 0; border-bottom: 1px solid #eee; }
.related li:last-child { border-bottom: none; }
.related a { color: #bf0200; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Footer */
.news-footer { text-align: center; padding: 20px; color: #999; font-size: 13px; border-top: 1px solid #eee; margin-top: 40px; }

@media (max-width: 768px) {
    .article-grid { grid-template-columns: 1fr; }
    .news-header .container { flex-direction: column; gap: 10px; }
}
