/* 团队动态样式 - 主页板块 + 列表页 + 详情页 */

/* 主页#news板块 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.news-cards-viewport {
  grid-column: 1 / -1;
}

.news-grid .team-pager {
  grid-column: 1 / -1;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-cover {
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-card:hover .news-cover img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 20px;
}
.news-card-title {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-summary {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-date {
  font-size: 0.8rem;
  color: #aaa;
}

/* 列表页 news.html */
.news-list-page {
  min-height: 100vh;
}

.news-list-header {
  background: linear-gradient(135deg, var(--primary-color, #003D7A), var(--tech-blue, #0066CC));
  color: #fff;
  padding: 60px 0 40px;
  margin-bottom: 40px;
}
.news-list-header h1 { font-size: 2rem; }

.news-list-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.news-list-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.news-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.news-list-cover {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.news-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-list-body h3 {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.5;
}
.news-list-body p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-body .date {
  font-size: 0.8rem;
  color: #aaa;
}

/* 详情页 news-detail.html */
.news-detail-page {
  min-height: 100vh;
}

.news-detail-header {
  background: linear-gradient(135deg, var(--primary-color, #003D7A), var(--tech-blue, #0066CC));
  color: #fff;
  padding: 60px 0 40px;
}
.news-detail-header h1 {
  font-size: 1.8rem;
  max-width: 800px;
  line-height: 1.4;
}
.news-detail-header .meta {
  margin-top: 12px;
  opacity: 0.8;
  font-size: 0.9rem;
}

.news-detail-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.news-detail-cover {
  display: none;
}

.news-detail-content {
  line-height: 2;
  font-size: 1.05rem;
  color: #444;
}
.news-detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}
.news-detail-content p {
  margin-bottom: 16px;
}

.news-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.news-nav a {
  color: var(--tech-blue, #0066CC);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.news-nav a:hover { color: var(--primary-color, #003D7A); }

/* 响应式 */
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-list-cover { width: 100%; height: 180px; }
  .news-detail-header h1 { font-size: 1.4rem; }
}
