/**
 * news.css - 资讯中心页专属样式
 * 依赖 common.css。引入顺序：common.css → news.css
 */

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.news-hero { padding: 72px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); text-align: center; }
.news-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.news-hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ─── 资讯列表 ──────────────────────────────────────────────────────────────── */
.news-sec { padding: 24px 0 64px; max-width: var(--site-max-width, 1200px); margin: 0 auto; padding-left: var(--site-side-pad, 24px); padding-right: var(--site-side-pad, 24px); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .3s, border-color .3s; display: flex; flex-direction: column; border: 1px solid var(--border-light); position: relative; isolation: isolate; }
.news-card:hover { transform: translateY(-4px); border-color: var(--primary-light); z-index: 10; }
.news-cover { width: 100%; height: 180px; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover .placeholder { font-size: 48px; opacity: .35; }
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-summary { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-light); font-size: 13px; color: var(--muted); }
.news-author { color: var(--primary); font-weight: 500; }

/* ─── 详情视图 ─────────────────────────────────────────────────────────────── */
.news-detail { max-width: 820px; margin: 0 auto; padding: 48px var(--site-side-pad, 24px) 64px; display: none; }
.news-detail.show { display: block; }

/* ─── 响应式 ─────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-hero { padding: 32px 0 24px; }
  .news-hero h1 { font-size: 24px; }
  .news-hero p { font-size: 14px; }
  .news-card { box-shadow: var(--shadow-sm); }
  .news-body { padding: 16px; }
  .news-title { font-size: 15px; }
  .news-summary { font-size: 13px; -webkit-line-clamp: 2; }
  .news-sec { padding: 0 16px 40px; }
  .detail-title { font-size: 20px; }
  .news-card img { height: 150px; }
}
