/* ========================================================================
   news.css —— 行业新闻与动态：首页栏目 + 分类归档
   ======================================================================== */

/* ===== 首页栏目 ===== */
.news {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.35s ease;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow);
}
.news-card:hover::before { transform: scaleX(1); }
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.news-date { color: var(--gold); }
.news-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.news-card:hover .news-title { color: var(--accent-light); }
.news-excerpt {
  flex: 1;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.news-more {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent-light);
}
.news-empty {
  grid-column: 1 / -1;
  margin: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.news-all {
  margin-top: 32px;
  text-align: center;
}
.news-all a {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.news-all a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ===== 分类归档 ===== */
.news-archive {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 130px 24px 100px;
  min-height: 100vh;
}
.news-archive-head { margin-bottom: 8px; }
.news-archive-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
}
.news-archive h1 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.3;
  color: var(--text-primary);
}
.news-archive-desc {
  font-size: 14px;
  color: var(--text-secondary);
}
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}
.news-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--glow);
}
.news-item-date {
  grid-row: 1 / 3;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
}
.news-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s;
}
.news-item:hover .news-item-title { color: var(--accent-light); }
.news-item-excerpt {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 分页 */
.news-archive .pagination { margin-top: 36px; }
.news-archive .pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.news-archive .pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s;
}
.news-archive .pagination .page-numbers:hover,
.news-archive .pagination .page-numbers.current {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .news { padding: 80px 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-archive { padding: 100px 18px 70px; }
  .news-archive h1 { font-size: 26px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item-date { grid-row: auto; margin-bottom: 6px; }
}
