/* news 栏目样式 */
.news-wrap { padding: 48px 0 80px; min-height: 60vh; background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%); }
.news-wrap .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.news-hero { text-align: center; margin-bottom: 40px; }
.crumb { font-size: 13px; color: #94a3b8; margin-bottom: 14px; }
.crumb a { color: #3b82f6; text-decoration: none; }
.news-hero h1 { font-size: 2.4rem; font-weight: 900; margin: 0 0 12px; color: #0f172a; }
.news-hero .lead { font-size: .95rem; color: #64748b; max-width: 720px; margin: 0 auto; line-height: 1.7; }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sub-card { display: flex; align-items: center; gap: 14px; padding: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; text-decoration: none; transition: .3s; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.sub-card:hover { border-color: #ec4899; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(59,130,246,.12); }
.sub-card__ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #ec4899; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.sub-card h4 { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.sub-card p { font-size: .78rem; color: #64748b; margin: 0; }
/* 文章列表页 */
.news-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; align-items: center; }
.news-tag { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #eef2ff; color: #4f46e5; border: 1px solid transparent; text-decoration: none; transition: .25s; }
.news-tag:hover { background: #e0e7ff; }
.news-tag.is-active { background: linear-gradient(135deg,#3b82f6,#6366f1); color: #fff; box-shadow: 0 6px 16px rgba(59,130,246,.25); }
.news-count { margin-left: auto; font-size: .82rem; color: #94a3b8; }

.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-card { display: flex; gap: 22px; padding: 22px 24px; background: #fff; border: 1px solid #e8edf5; border-radius: 16px; text-decoration: none; transition: .3s; box-shadow: 0 2px 10px rgba(15,23,42,.04); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(59,130,246,.14); border-color: #c7d6f0; }
.post-card__badge { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.post-card__badge .d { font-size: 1.5rem; line-height: 1; }
.post-card__badge .m { font-size: .72rem; margin-top: 4px; }
.post-card--ann { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.post-card--blog { background: linear-gradient(135deg,#0ea5e9,#06b6d4); }
.post-card--vul { background: linear-gradient(135deg,#ef4444,#f97316); }
.post-card__body { flex: 1; min-width: 0; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .76rem; color: #94a3b8; margin-bottom: 8px; }
.post-card__cat { padding: 2px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-weight: 600; }
.post-card__cat.is-vul { background: #fef2f2; color: #ef4444; }
.post-card__cat.is-ann { background: #eff6ff; color: #2563eb; }
.post-card__cat.is-blog { background: #ecfeff; color: #0891b2; }
.post-card__title { font-size: 1.18rem; font-weight: 800; color: #0f172a; margin: 0 0 8px; line-height: 1.45; }
.post-card__excerpt { font-size: .9rem; color: #64748b; line-height: 1.75; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { font-size: .83rem; font-weight: 700; color: #3b82f6; }
.post-card:hover .post-card__more { color: #6366f1; }
.sev { padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .72rem; }
.sev--critical { background: #fef2f2; color: #dc2626; }
.sev--high { background: #fff7ed; color: #ea580c; }
.sev--medium { background: #fefce8; color: #ca8a04; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager a { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; text-decoration: none; font-size: .86rem; font-weight: 600; transition: .25s; }
.pager a:hover { border-color: #3b82f6; color: #3b82f6; }
.pager a.is-active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* 文章详情页（白底正规风格） */
.article-wrap { padding: 48px 0 80px; min-height: 60vh; background: #fff; }
.article-wrap .container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.article-head { border-bottom: 1px solid #eef2f7; padding-bottom: 28px; margin-bottom: 32px; }
.article-head h1 { font-size: 2rem; font-weight: 900; color: #0f172a; line-height: 1.4; margin: 16px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .82rem; color: #94a3b8; }
.article-meta .cat { padding: 3px 12px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-weight: 700; }
.article-tip { background: #f8fafc; border: 1px solid #e8edf5; border-left: 4px solid #3b82f6; border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: .88rem; color: #475569; margin: 0 0 26px; line-height: 1.8; }
.article-body { line-height: 1.95; color: #334155; font-size: 1rem; }
.article-body h2 { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin: 38px 0 16px; padding-left: 14px; border-left: 4px solid #3b82f6; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 28px 0 12px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #0f172a; }
.article-body code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 7px; font-size: .86em; color: #be185d; font-family: 'SFMono-Regular',Consolas,monospace; }
.article-body pre { background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 18px 20px; overflow-x: auto; margin: 0 0 20px; font-size: .85rem; line-height: 1.7; }
.article-body pre code { background: transparent; border: 0; color: inherit; padding: 0; }
.article-body blockquote { margin: 0 0 20px; padding: 14px 20px; background: #f8fafc; border-left: 4px solid #94a3b8; border-radius: 0 12px 12px 0; color: #475569; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .9rem; }
.article-body th, .article-body td { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; }
.article-body th { background: #f1f5f9; color: #0f172a; font-weight: 700; }
.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eef2f7; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 10px 22px; border-radius: 10px; background: linear-gradient(135deg,#3b82f6,#6366f1); color: #fff; text-decoration: none; font-weight: 700; transition: .3s; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(59,130,246,.3); }
@media (max-width: 640px) { .news-hero h1 { font-size: 1.7rem; } .post-card { flex-direction: column; gap: 14px; } .post-card__badge { flex-direction: row; width: auto; height: auto; padding: 6px 14px; gap: 8px; } .article-head h1 { font-size: 1.5rem; } }
