/* 深圳市鼎顺科技有限公司官网 - 新闻中心样式 */

/* ---------- 标题区 ---------- */
.news-hero {
  background: linear-gradient(135deg, #0f4a78, #1a6fb0);
  color: #fff; text-align: center; padding: 60px 20px;
}
.news-hero h1 { font-size: 34px; font-weight: 700; margin-bottom: 10px; }
.news-hero p { font-size: 15px; opacity: .88; }

/* ---------- 列表区 ---------- */
.news-section { padding: 50px 0; min-height: 300px; }

.news-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 24px; margin-bottom: 16px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.news-card:hover { box-shadow: 0 10px 26px rgba(26,111,176,.12); transform: translateY(-2px); border-color: var(--blue-light); }

.news-card-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.news-title { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.45; }
.news-card:hover .news-title { color: var(--blue); }
.news-summary { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.news-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 120px; }
.news-date { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.news-more { font-size: 13px; color: var(--blue); font-weight: 600; white-space: nowrap; }

/* 分类标签 */
.news-cat {
  flex: 0 0 auto; display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.cat-blue { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-light); }
.cat-green { background: #e8f7ee; color: #1a8f4a; border: 1px solid #b6e6c9; }
.cat-orange { background: #fff4e6; color: #d97b13; border: 1px solid #f5d3a6; }

/* ---------- 文章详情 ---------- */
.news-back {
  display: inline-block; margin-bottom: 22px; font-size: 14px; color: var(--blue);
  font-weight: 600; padding: 8px 0;
}
.news-back:hover { color: #0f4a78; }
.news-back-bottom { margin-top: 30px; margin-bottom: 0; }

.news-article {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 34px 40px; max-width: 860px;
}
.news-article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.news-article h2 { font-size: 24px; color: var(--text); line-height: 1.4; margin-bottom: 16px; }
.news-article-body { font-size: 15px; color: var(--text); line-height: 1.85; }
.news-article-body p { margin-bottom: 14px; }
.news-article-body ul { margin: 0 0 14px 22px; }
.news-article-body li { margin-bottom: 6px; }
.news-article-body strong { color: var(--blue); }

.news-empty { text-align: center; color: var(--text-2); padding: 60px 0; }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .news-hero { padding: 44px 20px; }
  .news-hero h1 { font-size: 26px; }
  .news-section { padding: 32px 0; }
  .news-card { flex-direction: column; gap: 10px; padding: 18px; }
  .news-meta { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-width: 0; }
  .news-title { font-size: 16px; }
  .news-article { padding: 22px 18px; }
  .news-article h2 { font-size: 19px; }
}

/* ---------- RTL ---------- */
html[dir="rtl"] .news-card { text-align: right; }
html[dir="rtl"] .news-meta { align-items: flex-start; }
