/* ============================================================
   shareware.cn · news.html 资讯列表页专属样式
   ============================================================ */

/* ---------- Hero：横幅图 + 标题叠层 ---------- */
.news-hero { position: relative; overflow: hidden; }
.news-hero img { width: 100%; height: 320px; object-fit: cover; display: block; }
.news-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,.25), rgba(26,26,26,.55));
}
.news-hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 44px;
}
.news-hero-inner .crumb { color: rgba(255,255,255,.85); }
.news-hero-inner .crumb a { color: rgba(255,255,255,.85); }
.news-hero-inner .crumb .cur { color: #fff; }
.news-hero-inner h1 { color: #fff; font-size: clamp(28px, 3.8vw, 40px); margin: 18px 0 8px; }
.news-hero-inner p { color: rgba(255,255,255,.85); font-size: 14px; margin: 0; }

/* ---------- 列表与侧栏 ---------- */
.news-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-item img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; display: block; }
.news-item-body h3 { font-size: 17px; margin: 0 0 10px; line-height: 1.5; }
.news-item-body h3 a { color: var(--ink); }
.news-item-body h3 a:hover { text-decoration: underline; }
.news-item-body p { font-size: 13.5px; color: var(--gray-700); line-height: 1.9; margin: 0 0 14px; }
.news-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--gray-600); }
.news-meta .news-time { display: flex; align-items: center; gap: 6px; }

/* ---------- 侧栏 ---------- */
.news-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-100); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--gray-200); font-size: 13.5px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--gray-800); flex: 1; }
.side-list a:hover { color: var(--ink); text-decoration: underline; }
.side-list .side-date { color: var(--gray-400); font-size: 12px; }
.side-contact { background: var(--ink); color: #fff; border-radius: 18px; padding: 24px; }
.side-contact h3 { color: #fff; }
.side-contact p { font-size: 13px; color: #bbb; line-height: 1.8; margin: 0 0 14px; }
.side-contact a { display: block; background: #fff; color: var(--ink); text-align: center; border-radius: 10px; padding: 11px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.news-more { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .news-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item img { height: 190px; }
  .news-hero img { height: 240px; }
}
